/*
 * Back office no padrão visual do eveo (Minimals v7): Inter Variable e Barlow, paleta e sombras do
 * tema, cartões de 16px com sombra, selos "soft", campos com rótulo na borda e navegação vertical.
 * A CSP só aceita arquivos do próprio servidor: fontes, ícones e setas ficam aqui, em /fonts, em
 * /img ou em data URI. Fontes sob a SIL Open Font License (ver static/fonts/OFL-*.txt).
 */

/* Wordmark da marca (Anna Bank), igual ao do eveo: Hank Rounded só no logotipo, nunca no corpo. */
@font-face {
    font-family: "Hank Rounded";
    font-style: normal;
    font-display: swap;
    font-weight: 800 900;
    src: url("/fonts/hankrnd-black.woff2") format("woff2");
}

@font-face {
    font-family: "Inter Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
        U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Inter Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
        U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Barlow só para valores em destaque (saldo); latin basta para dígitos, "R$" e separadores. */
@font-face {
    font-family: "Barlow";
    font-style: normal;
    font-display: swap;
    font-weight: 600;
    src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
        U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Barlow";
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
        U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Paleta do tema Minimals */
    --primary-lighter: #c8fad6;
    --primary-light: #5be49b;
    --primary: #00a76f;
    --primary-dark: #007867;
    --primary-darker: #004b50;
    --primary-08: rgba(0, 167, 111, 0.08);
    --primary-16: rgba(0, 167, 111, 0.16);
    --primary-24: rgba(0, 167, 111, 0.24);

    --success: #22c55e;
    --success-dark: #118d57;
    --success-darker: #065e49;
    --success-lighter: #d3fcd2;
    --warning: #ffab00;
    --warning-dark: #b76e00;
    --warning-darker: #7a4100;
    --warning-lighter: #fff5cc;
    --error: #ff5630;
    --error-light: #ffac82;
    --error-dark: #b71d18;
    --error-darker: #7a0916;
    --error-lighter: #ffe9d5;
    --info: #00b8d9;
    --info-dark: #006c9c;
    --info-darker: #003768;
    --info-lighter: #cafdf5;

    --grey-50: #fcfdfd;
    --grey-100: #f9fafb;
    --grey-200: #f4f6f8;
    --grey-300: #dfe3e8;
    --grey-400: #c4cdd5;
    --grey-500: #919eab;
    --grey-600: #637381;
    --grey-700: #454f5b;
    --grey-800: #1c252e;
    --grey-900: #141a21;
    --grey-500-08: rgba(145, 158, 171, 0.08);
    --grey-500-12: rgba(145, 158, 171, 0.12);
    --grey-500-16: rgba(145, 158, 171, 0.16);
    --grey-500-20: rgba(145, 158, 171, 0.2);
    --grey-500-32: rgba(145, 158, 171, 0.32);

    --text: var(--grey-800);
    --text-secondary: var(--grey-600);
    --text-disabled: var(--grey-500);
    --background: #ffffff;
    --background-neutral: var(--grey-200);
    --divider: var(--grey-500-20);

    /* Forma e profundidade */
    --radius: 8px;
    --radius-card: 16px;
    --radius-outlined: 20px;
    --shadow-card: 0 0 2px 0 rgba(145, 158, 171, 0.2), 0 12px 24px -4px rgba(145, 158, 171, 0.12);
    --shadow-dropdown: 0 0 2px 0 rgba(145, 158, 171, 0.24), -20px 20px 40px -4px rgba(145, 158, 171, 0.24);
    --shadow-z1: 0 1px 2px 0 rgba(145, 158, 171, 0.16);
    --shadow-primary: 0 8px 16px 0 rgba(0, 167, 111, 0.24);
    --shadow-dialog: -40px 40px 80px -8px rgba(0, 0, 0, 0.24);

    --nav-mini-width: 88px;
    --nav-vertical-width: 300px;
    --nav-bg: var(--grey-900);
    --nav-text: var(--grey-500);
    /* O eveo usa grey-600 (3,6:1 sobre grey-900); grey-500 dá 6,4:1 para o título de 11px. */
    --nav-subheader: var(--grey-500);
    --header-height: 72px;
    --gutter: 40px;
    --font: "Inter Variable", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: Barlow, var(--font);
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 0.875rem;
    line-height: 1.5714;
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
p,
ul,
ol,
dl,
dd {
    margin: 0;
}

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

/* h4 do tema: título da página (20px, 24px a partir de 900px). */
h1 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

@media (min-width: 900px) {
    h1 {
        font-size: 1.5rem;
    }
}

/* h6 do tema: título de cartão (17px) */
h2 {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.5556;
}

a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

strong {
    font-weight: 600;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

::selection {
    background: var(--primary-24);
}

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

.mono {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    overflow-wrap: anywhere;
}

.strong {
    font-weight: 600;
}

.numeric {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.nowrap {
    white-space: nowrap;
}

/* Tipografia utilitária do tema: overline, caption, truncamento e valor em destaque. */
.overline {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.caption {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.truncate {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.font-display {
    font-family: var(--font-display);
    font-variant-numeric: tabular-nums;
}

/* Estrutura (casca do eveo): barra escura mini de 88px por padrão, larga (300px) em
   .shell.nav-expanded, drawer de navegação abaixo de 1200px, topbar transparente que ganha fundo
   e desfoque em .is-scrolled. O app.js põe "js" no <html>; sem ele, .js-only some e
   .no-js-only aparece, e o menu lateral vira blocos no topo das telas estreitas. */

html:not(.js) .js-only,
html.js .no-js-only {
    display: none !important;
}

.shell {
    --nav-current: var(--nav-mini-width);
    display: flex;
    min-height: 100vh;
}

.shell.nav-expanded {
    --nav-current: var(--nav-vertical-width);
}

.sidebar {
    width: var(--nav-current);
    flex: none;
    background: var(--nav-bg);
    color: var(--nav-text);
    padding: 0 8px 24px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(145, 158, 171, 0.32) transparent;
    transition: width var(--transition), padding var(--transition);
}

/* Sem animação até o app.js marcar .nav-ready: o estado inicial do menu nunca transiciona. */
.shell:not(.nav-ready),
.shell:not(.nav-ready) * {
    transition: none !important;
}

.shell.nav-expanded .sidebar {
    padding: 0 16px 40px;
}

/* Marca: wordmark de texto como o do eveo (brand-wordmark.tsx): primeira palavra na primária,
   a segunda no info (dark no fundo claro, light no menu escuro); no menu reduzido, só a inicial. */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 12px 16px;
    color: var(--text);
}

.brand:hover {
    color: var(--text);
    text-decoration: none;
}

.wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3em;
    white-space: nowrap;
    font-family: "Hank Rounded", "Nunito Sans", system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    user-select: none;
}

.wordmark-first,
.wordmark-initial {
    color: var(--primary);
}

.wordmark-rest {
    color: var(--info-dark);
}

.sidebar .wordmark-rest,
.nav-drawer .wordmark-rest {
    color: #61f3f3;
}

.wordmark-initial {
    display: none;
    font-family: "Hank Rounded", "Nunito Sans", system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    user-select: none;
}

.shell:not(.nav-expanded) .sidebar .wordmark {
    display: none;
}

.shell:not(.nav-expanded) .sidebar .wordmark-initial {
    display: inline-block;
}

.brand-centered {
    justify-content: center;
    padding: 0 0 8px;
}

.brand-mark {
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 8px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.25rem;
    display: grid;
    place-items: center;
}

/* Nome da marca só para leitor de tela: o wordmark é aria-hidden. */
.brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.brand-name small {
    display: block;
    margin-top: 2px;
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--text-disabled);
}

.sidebar .brand,
.nav-drawer .brand,
.sidebar .brand:hover,
.nav-drawer .brand:hover {
    color: #ffffff;
}

.sidebar .brand-name small,
.nav-drawer .brand-name small {
    color: var(--nav-text);
}

/* Mini: só a marca, centralizada na altura da topbar. */
.shell:not(.nav-expanded) .sidebar .brand {
    justify-content: center;
    min-height: var(--header-height);
    padding: 16px 0;
}

/* Só para leitor de tela: com display:none o link da marca ficaria sem nome acessível. */
.shell:not(.nav-expanded) .sidebar .brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Itens: na larga e no drawer, ícone ao lado do rótulo; na mini, ícone sobre o rótulo. */
.nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-group > summary {
    display: flex;
    align-items: center;
    padding: 16px 8px 8px 12px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--nav-subheader);
    cursor: pointer;
    list-style: none;
    transition: padding-left var(--transition), color var(--transition);
}

.nav-group > summary::-webkit-details-marker {
    display: none;
}

.nav-group > summary:hover {
    padding-left: 16px;
    color: #ffffff;
}

.nav-group > summary:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: -2px;
    border-radius: var(--radius);
}

.nav a {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 44px;
    padding: 4px 8px 4px 12px;
    margin-bottom: 4px;
    border-radius: var(--radius);
    color: var(--nav-text);
    font-weight: 500;
    font-size: 0.875rem;
    transition: background-color var(--transition), color var(--transition);
}

.nav a:hover {
    background: var(--grey-500-08);
    color: #ffffff;
    text-decoration: none;
}

.nav a:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: -2px;
}

.nav a.active {
    background: var(--primary-08);
    color: var(--primary-light);
    font-weight: 600;
}

.nav a.active:hover {
    background: var(--primary-16);
}

.nav svg {
    width: 24px;
    height: 24px;
    flex: none;
    fill: currentColor;
}

.nav-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shell:not(.nav-expanded) .sidebar .nav-group > summary {
    display: none;
}

.shell:not(.nav-expanded) .sidebar .nav a {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 56px;
    padding: 8px 2px 6px;
    text-align: center;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.2;
}

.shell:not(.nav-expanded) .sidebar .nav svg {
    width: 22px;
    height: 22px;
}

.shell:not(.nav-expanded) .sidebar .nav-label {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Na mini os grupos não têm título: um grupo recolhido na larga continua visível aqui. */
.shell:not(.nav-expanded) .sidebar .nav-group::details-content {
    content-visibility: visible;
}

/* Botão redondo de 26px sobre a borda da barra (só no desktop e com JS). */
.nav-toggle {
    position: fixed;
    top: calc(var(--header-height) / 2);
    left: var(--nav-current);
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid var(--grey-500-12);
    border-radius: 50%;
    background: var(--background);
    color: var(--text-secondary);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: left var(--transition), background-color var(--transition), color var(--transition);
}

.nav-toggle:hover {
    background: var(--background-neutral);
    color: var(--text);
}

.nav-toggle svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.shell:not(.nav-expanded) .nav-toggle svg:last-child,
.shell.nav-expanded .nav-toggle svg:first-child {
    display: none;
}

.main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--header-height);
    padding: 8px var(--gutter);
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 10;
    transition: background-color var(--transition);
}

.topbar.is-scrolled {
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.topbar form {
    margin: 0;
}

.topbar-spacer {
    flex: 1;
}

.topbar-account {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar .menu-button {
    display: none;
    margin-left: -8px;
    color: var(--text-secondary);
}

.topbar .menu-button svg {
    width: 24px;
    height: 24px;
}

/* Conta atual, sem menu: avatar de 24px e o nome do lojista. */
.account-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 260px;
    padding: 4px 10px 4px 4px;
    border-radius: 12px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Abre o drawer da conta: avatar de 40px com anel primary. */
.account-button {
    display: inline-flex;
    flex: none;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.account-button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.account-button:hover .avatar {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--primary);
}

/* Fallback sem JS: link da conta ao lado do "Sair". */
.operator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    border-radius: 999px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.875rem;
    overflow-wrap: anywhere;
    transition: background-color var(--transition);
}

.operator:hover {
    color: var(--text);
    background: var(--grey-500-08);
    text-decoration: none;
}

.avatar {
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--primary-lighter);
    color: var(--primary-darker);
    font-weight: 700;
    font-size: 0.9375rem;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--primary-24);
    transition: box-shadow var(--transition);
}

.avatar-24 {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    box-shadow: none;
}

.avatar-40 {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.avatar-96 {
    width: 96px;
    height: 96px;
    font-size: 2.25rem;
    box-shadow: 0 0 0 4px #ffffff, 0 0 0 6px var(--primary-24);
}

/* Drawer de navegação (celular): 288px escuro, com o mesmo menu da barra larga. */
.modal.nav-drawer {
    background: var(--nav-bg);
    color: var(--nav-text);
}

.nav-drawer .drawer-header {
    padding: 4px 8px 4px 4px;
}

.nav-drawer .drawer-header .brand {
    padding: 12px;
}

.nav-drawer .drawer-header .icon-button {
    color: var(--nav-text);
}

.nav-drawer .drawer-header .icon-button:hover {
    color: #ffffff;
}

.nav-drawer .drawer-body {
    gap: 0;
    padding: 0 16px 24px;
}

/* Drawer da conta: avatar de 96px, e-mail, perfil, atalhos e a saída. */
.account-drawer-close {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
}

.account-drawer .drawer-body {
    padding: 64px 20px 0;
    gap: 24px;
}

.account-drawer-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    min-width: 0;
}

.account-drawer-profile .avatar {
    margin-bottom: 16px;
}

.account-drawer-profile h2 {
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
}

.account-menu {
    margin: 0 -20px;
    padding: 12px 8px;
    border-top: 1px dashed var(--grey-500-20);
    border-bottom: 1px dashed var(--grey-500-20);
}

.account-menu a {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-weight: 500;
}

.account-menu a:hover {
    background: var(--grey-500-08);
    color: var(--text);
    text-decoration: none;
}

.account-menu svg {
    width: 24px;
    height: 24px;
    flex: none;
    fill: currentColor;
}

.account-drawer .drawer-footer {
    border-top: 0;
    padding: 20px;
}

.account-drawer .drawer-footer form {
    flex: 1;
    margin: 0;
}

/* Erro do flash (parts :: flash) e campo do #dialog-otp. */
.alert-message {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.field-error {
    margin: -16px 0 0;
    color: var(--error-dark);
    font-size: 0.75rem;
}

.otp-paste {
    align-self: flex-start;
    margin-top: -12px;
}

/* Sem JS, o aviso de sucesso fica no fluxo da página (não há como fechá-lo). */
html:not(.js) .toast-region {
    position: static;
    align-items: stretch;
    max-width: none;
    margin: 16px var(--gutter) 0;
}

html:not(.js) .toast {
    width: auto;
    max-width: none;
    animation: none;
}

/* Avatar de 48px sem anel, como nas listas de contas do eveo. */
.avatar-48 {
    width: 48px;
    height: 48px;
    font-size: 1.125rem;
    box-shadow: none;
}

/* Entidade: avatar, nome e documento empilhados ao lado. */
.entity {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.entity > :not(.avatar) {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.entity-name {
    color: var(--text);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.entity-doc {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content {
    padding: 8px var(--gutter) 64px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: none;
    width: 100%;
}

.content-narrow {
    max-width: 720px;
}

.content-medium {
    max-width: 900px;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

/* Dentro do .content o gap de 24px já separa o cabeçalho: o total fica em 24px e 40px, como o
   mb { xs: 3, md: 5 } do CustomBreadcrumbs. */
.content > .page-header {
    margin-bottom: 0;
}

.page-header > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

/* Título e trilha: h1 primeiro e a trilha logo abaixo, a 16px dele (CustomBreadcrumbs). */
.page-header .breadcrumbs {
    margin-top: 12px;
}

@media (min-width: 900px) {
    .page-header {
        margin-bottom: 40px;
    }

    .content > .page-header {
        margin-bottom: 16px;
    }
}

.page-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.page-actions form {
    margin: 0;
}

/* Trilha no formato do CustomBreadcrumbs: itens separados por um ponto. */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    font-size: 0.875rem;
    color: var(--text-disabled);
}

.breadcrumbs > [aria-hidden="true"] {
    width: 4px;
    height: 4px;
    margin: 0 16px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--text-disabled);
    font-size: 0;
}

.breadcrumbs a {
    color: var(--text);
    font-weight: 400;
}

.breadcrumbs a:hover {
    color: var(--text);
}

.breadcrumbs > [aria-current="page"],
.breadcrumbs > :last-child:not(a) {
    color: var(--text-disabled);
}

.hint {
    display: flex;
    gap: 12px;
    color: var(--warning-darker);
    background: var(--warning-lighter);
    border-radius: var(--radius);
    padding: 10px 16px;
    font-size: 0.875rem;
}

/* Grades e cartões */

.grid {
    display: grid;
    gap: 24px;
}

/* Indicadores: 4 colunas, 2 abaixo de 900px e 1 abaixo de 600px. Com 2 ou 3 cartões, a linha
   se divide entre eles em vez de deixar colunas vazias. */
.grid-kpi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
    .grid-kpi {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .grid-kpi:has(> :nth-child(3):last-child) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid-kpi:has(> :nth-child(2):last-child) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 599px) {
    .grid-kpi {
        grid-template-columns: minmax(0, 1fr);
    }
}

.grid-main {
    grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
    align-items: stretch;
}

.grid-halves {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.grid-detail {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    align-items: start;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.stack > .card {
    flex: 1;
}

/* Cartão no formato do Card do tema: sem borda, raio de 16px e sombra "card". */
.card {
    position: relative;
    background: var(--background);
    border: 0;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 24px;
    min-width: 0;
    overflow: hidden;
}

/* Superfície lisa com contorno, sem sombra: só no painel do admin (admin-dashboard-surface). */
.card-outlined {
    border: 1px solid var(--divider);
    border-radius: var(--radius-outlined);
    box-shadow: none;
}

/* Cartão sem respiro próprio: cabeçalho (CardHeader) e corpo (CardContent) trazem o seu. */
.card-flush {
    padding: 0;
}

.card-flush > .card-header {
    margin-bottom: 0;
    padding: 24px 24px 0;
}

.card-body {
    padding: 24px;
}

/* Divisor tracejado (Divider com borderStyle dashed). Dentro do cartão, vai de borda a borda. */
.divider {
    height: 0;
    margin: 0;
    border: 0;
    border-top: 1px dashed var(--divider);
}

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

.card > .divider {
    margin-left: -24px;
    margin-right: -24px;
}

.card-flush > .divider {
    margin-left: 0;
    margin-right: 0;
}

/* Seções da página: título fora dos cartões, como o SectionHeading do eveo. */
.section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.section + .section,
.section + .card {
    margin-top: 8px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 16px;
}

.section-heading h2 {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.5556;
}

.section-heading p {
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.section-heading > a {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.section-heading > a:hover {
    color: var(--text);
}

.section-heading > a::after {
    content: " ›";
}

/* Indicador: ícone na cor do tema, rótulo, valor e dica (AdminDashboardKpiCard). */
.kpi {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    --tone: var(--primary);
    --tone-soft: var(--primary-08);
}

.kpi-success {
    --tone: var(--success-dark);
    --tone-soft: rgba(34, 197, 94, 0.08);
}

.kpi-error {
    --tone: var(--error-dark);
    --tone-soft: rgba(255, 86, 48, 0.08);
}

.kpi-warning {
    --tone: var(--warning-dark);
    --tone-soft: rgba(255, 171, 0, 0.08);
}

.kpi-info {
    --tone: var(--info-dark);
    --tone-soft: rgba(0, 184, 217, 0.08);
}

.kpi-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.kpi-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--tone);
    background: var(--tone-soft);
}

.kpi-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.kpi-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
    font-weight: 500;
}

.kpi-value {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.kpi-hint {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.kpi-hint strong {
    color: var(--text);
    font-weight: 600;
}

.kpi-hint a {
    font-weight: 600;
}

.kpi .meter {
    margin: 10px 0 6px;
}

/* Saldo: total em destaque e os saldos que o compõem em atalhos (AdminDashboardBankBalanceCard). */
.card.balance-panel {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.balance-panel-body {
    padding: 24px 24px 20px;
}

.balance-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.balance-panel .card-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.balance-panel-head nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8125rem;
    font-weight: 700;
}

.balance-panel-head nav a {
    color: var(--text-secondary);
}

.balance-panel-head nav a:hover {
    color: var(--text);
}

.balance-panel-head nav a::after {
    content: " ›";
}

.balance-value {
    margin-top: 4px;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.balance-panel-body .card-foot {
    margin-top: 4px;
}

.balance-chips {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0 24px 24px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.balance-chips > div {
    flex: 1 0 168px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border: 1px solid var(--divider);
    border-radius: 12px;
    background: var(--background-neutral);
}

.balance-chips dt {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
}

.balance-chips dd {
    font-size: 0.9375rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.balance-panel .balance-actions {
    margin: auto 0 0;
    padding: 0 24px 24px;
}

/* Composição por situação: cada linha com a sua barra de participação (Mix por tipo). */
.mix-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mix-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mix-row a:hover {
    text-decoration: none;
}

.mix-row .status-count {
    margin-left: auto;
}

.mix-row .numeric {
    min-width: 110px;
    font-weight: 600;
}

.mix-list .meter {
    height: 8px;
    margin: 8px 0 0;
}

.card-label {
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5714;
}

.card-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 8px 0 4px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.card-foot {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.card-foot strong {
    color: var(--text);
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
}

.card-header .muted {
    font-size: 0.875rem;
}

.card-header-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.card-header-row > a {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.card-header-row > a:hover {
    color: var(--text);
}

.card-header-row > a::after {
    content: " ›";
}

.meter {
    width: 100%;
    height: 6px;
    margin: 4px 0 10px;
    border: 0;
    border-radius: 3px;
    overflow: hidden;
    background: var(--primary-24);
    accent-color: var(--primary);
    appearance: none;
}

.meter::-webkit-progress-bar {
    background: var(--primary-24);
}

.meter::-webkit-progress-value {
    background: var(--primary);
    border-radius: 3px;
}

.meter::-moz-progress-bar {
    background: var(--primary);
    border-radius: 3px;
}

.meter-success,
.meter-error,
.meter-warning,
.meter-info,
.meter-neutral,
.meter-success::-webkit-progress-bar,
.meter-error::-webkit-progress-bar,
.meter-warning::-webkit-progress-bar,
.meter-info::-webkit-progress-bar,
.meter-neutral::-webkit-progress-bar {
    background: var(--grey-500-12);
}

.meter-success::-webkit-progress-value {
    background: var(--success);
}

.meter-success::-moz-progress-bar {
    background: var(--success);
}

.meter-error::-webkit-progress-value {
    background: var(--error);
}

.meter-error::-moz-progress-bar {
    background: var(--error);
}

.meter-warning::-webkit-progress-value {
    background: var(--warning);
}

.meter-warning::-moz-progress-bar {
    background: var(--warning);
}

.meter-info::-webkit-progress-value {
    background: var(--info);
}

.meter-info::-moz-progress-bar {
    background: var(--info);
}

.meter-neutral::-webkit-progress-value {
    background: var(--grey-500);
}

.meter-neutral::-moz-progress-bar {
    background: var(--grey-500);
}

/* Selos no formato Label "soft" do Minimals */

.badge,
.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 24px;
    min-width: 24px;
    padding: 0 6px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    background: var(--grey-500-16);
    color: var(--text-secondary);
    vertical-align: middle;
}

.badge-large {
    height: 28px;
    padding: 0 10px;
    font-size: 0.8125rem;
}

.badge-neutral {
    background: var(--grey-500-16);
    color: var(--text-secondary);
}

.badge-success,
.chip-success {
    background: rgba(34, 197, 94, 0.16);
    color: var(--success-dark);
}

.badge-warning,
.chip-warning {
    background: rgba(255, 171, 0, 0.16);
    color: var(--warning-dark);
}

.badge-error,
.badge-danger {
    background: rgba(255, 86, 48, 0.16);
    color: var(--error-dark);
}

.badge-info {
    background: rgba(0, 184, 217, 0.16);
    color: var(--info-dark);
}

.chip {
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.75rem;
}

.chip::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.table td .badge + .badge {
    margin-left: 4px;
}

/* Botões: contido escuro (padrão "inherit" do tema), contornado, texto e "soft" */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.7143;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color var(--transition), box-shadow var(--transition), border-color var(--transition),
        color var(--transition);
}

.button:hover {
    text-decoration: none;
}

.button:disabled {
    cursor: default;
    color: rgba(145, 158, 171, 0.8);
    background: var(--grey-500-20);
    box-shadow: none;
}

.button-primary {
    background: var(--grey-800);
    color: #ffffff;
}

.button-primary:hover {
    background: var(--grey-700);
    color: #ffffff;
    box-shadow: 0 8px 16px 0 rgba(145, 158, 171, 0.16);
}

.button-outline {
    border-color: var(--grey-500-32);
    color: var(--text);
}

.button-outline:hover {
    border-color: currentColor;
    background: var(--grey-500-08);
    color: var(--text);
    box-shadow: 0 0 0 0.75px currentColor;
}

.button-ghost {
    color: var(--text);
}

.button-ghost:hover {
    background: var(--grey-500-08);
    color: var(--text);
}

.button-danger {
    background: rgba(255, 86, 48, 0.16);
    color: var(--error-dark);
}

.button-danger:hover {
    background: rgba(255, 86, 48, 0.32);
    color: var(--error-dark);
}

/* Botão "soft" no padrão Minimals / eveo (fundo translúcido, sem contorno forte). */
.button-soft {
    background: var(--grey-500-08);
    border-color: transparent;
    color: var(--text);
}

.button-soft:hover {
    background: var(--grey-500-16);
    color: var(--text);
}

.button-soft-warning {
    background: rgba(255, 171, 0, 0.16);
    color: var(--warning-darker);
}

.button-soft-warning:hover {
    background: rgba(255, 171, 0, 0.28);
    color: var(--warning-darker);
}

.button-soft-error {
    background: rgba(255, 86, 48, 0.16);
    color: var(--error-dark);
}

.button-soft-error:hover {
    background: rgba(255, 86, 48, 0.32);
    color: var(--error-dark);
}

/* Ícone dentro do botão: 20px na cor do texto. */
.button svg {
    width: 20px;
    height: 20px;
    flex: none;
    fill: currentColor;
}

.button-block {
    width: 100%;
}

.button-large {
    min-height: 48px;
    padding: 8px 16px;
    font-size: 0.9375rem;
    line-height: 1.7333;
}

.button-small {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 0.8125rem;
    line-height: 1.6923;
}

.button-small svg {
    width: 18px;
    height: 18px;
}

/* Envio em andamento: o app.js desliga o botão, põe aria-busy e esta classe com o spinner. */
.button.is-loading {
    position: relative;
    pointer-events: none;
}

.button.is-loading::before {
    content: "";
    flex: none;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* Botão só com ícone (IconButton): 36x36, redondo, hover neutro. */
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition);
}

.icon-button:hover {
    background: var(--grey-500-08);
    color: var(--text-secondary);
    text-decoration: none;
}

.icon-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.icon-button-small {
    width: 28px;
    height: 28px;
}

.icon-button-small svg {
    width: 18px;
    height: 18px;
}

.icon-button-error {
    color: var(--error);
}

.icon-button-error:hover {
    background: rgba(255, 86, 48, 0.08);
    color: var(--error);
}

.icon-button:disabled,
.icon-button[aria-disabled="true"] {
    opacity: 0.48;
    cursor: default;
    pointer-events: none;
}

/* Indicador de carregamento (CircularProgress). */
.spinner {
    display: inline-block;
    flex: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-24);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}

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

@media (prefers-reduced-motion: reduce) {
    .spinner,
    .button.is-loading::before {
        animation-duration: 2s;
    }
}

/* Grupo de alternância (período) no formato ToggleButtonGroup */
.segmented {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 10px;
    background: var(--background-neutral);
}

.segmented a {
    padding: 4px 12px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
}

.segmented a:hover {
    color: var(--text);
    text-decoration: none;
}

.segmented a.active {
    background: var(--background);
    color: var(--text);
    box-shadow: var(--shadow-z1);
}

/* Abas no formato Tabs do tema: indicador na cor do texto, sem fundo; 24px entre abas, 40px a
   partir de 600px. Inativa em peso 500 e cor secundária; ativa em 600. */
.tabs {
    display: flex;
    gap: 24px;
    box-shadow: inset 0 -2px 0 0 var(--grey-500-08);
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs a {
    padding: 8px 0;
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.5714;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}

.tabs a:hover {
    text-decoration: none;
    color: var(--text);
}

/* .tabs rola na horizontal (overflow corta o que passa da caixa): o anel de foco fica por dentro. */
.tabs a:focus-visible {
    outline-offset: -2px;
    border-radius: 4px;
}

.tabs a.active,
.tabs a[aria-selected="true"],
.tabs a[aria-current="page"] {
    color: var(--text);
    font-weight: 600;
    border-bottom-color: currentColor;
}

.tabs svg {
    width: 24px;
    height: 24px;
    flex: none;
    fill: currentColor;
}

/* Abas que dividem a largura toda (variant fullWidth). */
.tabs-full {
    gap: 0;
}

.tabs-full a {
    flex: 1 1 0;
}

@media (min-width: 600px) {
    .tabs {
        gap: 40px;
    }

    .tabs-full {
        gap: 0;
    }
}

/* Avisos no formato Alert "standard": fundo claro, texto escuro e ícone da cor principal. */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 16px var(--gutter) 0;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5714;
}

/* Ícone na cor "main" do tom (o texto fica na "darker"). */
.alert::before {
    content: "";
    flex: none;
    width: 22px;
    height: 22px;
    background: var(--alert-icon-color, currentColor);
    -webkit-mask: var(--alert-icon) center / contain no-repeat;
    mask: var(--alert-icon) center / contain no-repeat;
}

/* Botão de fechar no fim do aviso (data-dismiss no app.js). */
.alert-close {
    flex: none;
    margin: -6px -8px -6px auto;
    color: inherit;
}

.alert-close:hover {
    color: inherit;
}

.card .alert,
.auth-card .alert,
.content .alert {
    margin: 0;
}

.card .alert {
    margin-bottom: 16px;
}

.alert-success {
    background: var(--success-lighter);
    color: var(--success-darker);
    --alert-icon-color: var(--success);
    --alert-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20m4.3 7.6-5.1 5.2a1 1 0 0 1-1.4 0l-2.6-2.6a1 1 0 1 1 1.4-1.4l1.9 1.9 4.4-4.5a1 1 0 0 1 1.4 1.4'/%3E%3C/svg%3E");
}

.alert-error {
    background: var(--error-lighter);
    color: var(--error-darker);
    --alert-icon-color: var(--error);
    --alert-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20m0 15a1.2 1.2 0 1 1 0-2.4 1.2 1.2 0 0 1 0 2.4m1-4.5a1 1 0 0 1-2 0V7.5a1 1 0 0 1 2 0z'/%3E%3C/svg%3E");
}

.alert-warning {
    background: var(--warning-lighter);
    color: var(--warning-darker);
    --alert-icon-color: var(--warning);
    --alert-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22.6 18.4 14.3 3.9a2.6 2.6 0 0 0-4.6 0L1.4 18.4A2.6 2.6 0 0 0 3.7 22h16.6a2.6 2.6 0 0 0 2.3-3.6M12 18a1.2 1.2 0 1 1 0-2.4 1.2 1.2 0 0 1 0 2.4m1-4.5a1 1 0 0 1-2 0v-5a1 1 0 0 1 2 0z'/%3E%3C/svg%3E");
}

.alert-info {
    background: var(--info-lighter);
    color: var(--info-darker);
    --alert-icon-color: var(--info);
    --alert-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20m1 15a1 1 0 0 1-2 0v-5a1 1 0 0 1 2 0zm-1-8.8a1.2 1.2 0 1 1 0-2.4 1.2 1.2 0 0 1 0 2.4'/%3E%3C/svg%3E");
}

/* Variante "outlined": fundo da cor principal a 8%, contorno a 16% e texto na "dark". */
.alert-outlined {
    border: 1px solid var(--grey-500-16);
    background: var(--grey-500-08);
    color: var(--text);
}

.alert-outlined.alert-success {
    border-color: rgba(34, 197, 94, 0.16);
    background: rgba(34, 197, 94, 0.08);
    color: var(--success-dark);
}

.alert-outlined.alert-error {
    border-color: rgba(255, 86, 48, 0.16);
    background: rgba(255, 86, 48, 0.08);
    color: var(--error-dark);
}

.alert-outlined.alert-warning {
    border-color: rgba(255, 171, 0, 0.16);
    background: rgba(255, 171, 0, 0.08);
    color: var(--warning-dark);
}

.alert-outlined.alert-info {
    border-color: rgba(0, 184, 217, 0.16);
    background: rgba(0, 184, 217, 0.08);
    color: var(--info-dark);
}

.alert-error a,
.alert-success a,
.alert-warning a,
.alert-info a {
    color: inherit;
    text-decoration: underline;
}

/* Aviso passageiro (Snackbar "filled") no canto superior direito. O app.js fecha sozinho em 4s,
   menos enquanto houver foco ou ponteiro nele; sem JS ele fica até o botão de fechar. */
.toast-region {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1400;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    max-width: calc(100vw - 48px);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    max-width: min(420px, calc(100vw - 48px));
    min-height: 48px;
    padding: 4px 4px 4px 8px;
    border-radius: 12px;
    background: var(--grey-800);
    color: #ffffff;
    box-shadow: var(--shadow-dropdown);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5714;
    pointer-events: auto;
    animation: toast-in 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fora de .toast-region, o próprio aviso se fixa no canto. */
.toast:not(.toast-region > .toast) {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1400;
}

.toast::before {
    content: "";
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--toast-icon-bg, var(--grey-500-16)) var(--toast-icon, none) center / 24px no-repeat;
}

.toast-message {
    flex: 1;
    min-width: 0;
    padding: 6px 0;
    overflow-wrap: anywhere;
}

.toast .icon-button {
    color: rgba(255, 255, 255, 0.64);
}

.toast .icon-button:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.toast-success {
    --toast-icon-bg: rgba(34, 197, 94, 0.16);
    --toast-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2322c55e' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20m4.3 7.6-5.1 5.2a1 1 0 0 1-1.4 0l-2.6-2.6a1 1 0 1 1 1.4-1.4l1.9 1.9 4.4-4.5a1 1 0 0 1 1.4 1.4'/%3E%3C/svg%3E");
}

.toast-error {
    --toast-icon-bg: rgba(255, 86, 48, 0.16);
    --toast-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff5630' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20m0 15a1.2 1.2 0 1 1 0-2.4 1.2 1.2 0 0 1 0 2.4m1-4.5a1 1 0 0 1-2 0V7.5a1 1 0 0 1 2 0z'/%3E%3C/svg%3E");
}

.toast-info {
    --toast-icon-bg: rgba(0, 184, 217, 0.16);
    --toast-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2300b8d9' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20m1 15a1 1 0 0 1-2 0v-5a1 1 0 0 1 2 0zm-1-8.8a1.2 1.2 0 1 1 0-2.4 1.2 1.2 0 0 1 0 2.4'/%3E%3C/svg%3E");
}

.toast.is-hiding {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--transition), transform var(--transition);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .toast {
        animation: none;
    }
}

/* Estado vazio no formato EmptyContent "filled": coluna centralizada, ilustração de até 160px,
   título e descrição em text-disabled e ação opcional. Só com texto corrido (sem ilustração nem
   título), fica na versão compacta, em bloco, para o texto e o link seguirem na mesma linha. */
.empty {
    padding: 40px 16px;
    text-align: center;
    color: var(--text-disabled);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-card);
    background: rgba(145, 158, 171, 0.04);
    border: 1px dashed var(--grey-500-08);
}

.empty:has(> img, > .empty-title, > .empty-description) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 80px 24px;
}

.empty > img {
    width: 100%;
    max-width: 160px;
    height: auto;
    margin-bottom: 8px;
}

.empty-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5556;
    color: var(--text-disabled);
}

.empty-description {
    max-width: 480px;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5714;
    color: var(--text-disabled);
}

.empty > .button,
.empty > a.button,
.empty > form {
    margin-top: 16px;
}

/* Vazio dentro da tabela: a célula ocupa a linha toda e não recebe o hover da linha. */
.table td.empty-cell {
    padding: 24px;
    border-bottom: 0;
}

.table tbody tr:has(> td.empty-cell):hover {
    background: transparent;
}

/* Tabelas no formato do Table do tema: cabeçalho neutro de borda a borda do cartão. */

.table-scroll {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--grey-500-32) transparent;
}

.card > .table-scroll {
    margin: 0 -24px;
}

.card > .table-scroll:last-child {
    margin-bottom: -24px;
}

.card > .table-scroll:first-child {
    margin-top: -24px;
}

.card > .table-scroll + .filters {
    margin-top: 24px;
}

.card > .filters:last-child {
    margin-bottom: 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.table th {
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--background-neutral);
    padding: 16px;
    white-space: nowrap;
}

.table th.numeric {
    text-align: right;
}

.table td {
    padding: 16px;
    border-bottom: 1px dashed var(--divider);
    vertical-align: middle;
}

.card > .table-scroll .table th:first-child,
.card > .table-scroll .table td:first-child {
    padding-left: 24px;
}

.card > .table-scroll .table th:last-child,
.card > .table-scroll .table td:last-child {
    padding-right: 24px;
}

.table tbody tr {
    transition: background-color var(--transition);
}

.table tbody tr:hover {
    background: var(--grey-500-08);
}

.table td .muted {
    display: block;
    margin-top: 2px;
    font-size: 0.8125rem;
    font-weight: 400;
}

.table tbody tr:last-child td {
    border-bottom-color: transparent;
}

.row-selected,
.table tbody tr.row-selected:hover {
    background: var(--primary-08);
}

/* Linha de item inativo ou cancelado. */
.row-muted {
    opacity: 0.72;
}

.table-actions {
    text-align: right;
    white-space: nowrap;
}

.table-actions form {
    display: inline;
}

/* F22: "1–20 de 87" e as setas alinhados à direita (TablePaginationCustom). */
.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    min-height: 52px;
    margin: 0 -24px -24px;
    padding: 8px 24px;
    font-size: 0.875rem;
    border-top: 1px solid var(--divider);
}

.pagination-range {
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.pagination-links {
    display: flex;
    gap: 4px;
}

/* Formulários: campos contornados do TextField */

.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px 16px;
    margin-bottom: 24px;
}

.filters label {
    min-width: 0;
    max-width: 100%;
}

.filters select {
    max-width: 100%;
    min-width: 160px;
}

.filters-grow {
    flex: 1 1 260px;
}

.filters-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.form-actions {
    justify-content: flex-end;
    margin-top: 8px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form + .hint {
    margin-top: 16px;
}

label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

label > small,
label .muted {
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--text-disabled);
}

input,
select,
textarea {
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text);
    background: var(--background);
    border: 1px solid var(--grey-500-20);
    border-radius: var(--radius);
    padding: 11px 14px;
    min-height: 48px;
    width: 100%;
    transition: border-color var(--transition), box-shadow var(--transition);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-disabled);
    opacity: 1;
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--text);
    box-shadow: inset 0 0 0 1px var(--text);
}

input[readonly] {
    background: var(--grey-100);
}

input[readonly]:hover {
    border-color: var(--grey-500-20);
}

input:disabled,
select:disabled,
textarea:disabled {
    color: var(--text-disabled);
    background: var(--grey-500-08);
    border-color: var(--grey-500-20);
}

select {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23637381' d='M12 15.5a1 1 0 0 1-.7-.3l-4-4a1 1 0 1 1 1.4-1.4l3.3 3.3 3.3-3.3a1 1 0 0 1 1.4 1.4l-4 4a1 1 0 0 1-.7.3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    cursor: pointer;
}

input[type="date"] {
    min-width: 160px;
}

input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    min-height: 0;
    padding: 0;
    margin: 0;
    flex: none;
    accent-color: var(--primary);
    cursor: pointer;
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
    box-shadow: none;
}

textarea {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    resize: vertical;
}

/* Campo com rótulo na borda (TextField "outlined" com o InputLabel recolhido): o primeiro <span>
   do <label> vira o rótulo sobre o contorno. O <label> continua envolvendo o campo. Checkbox e
   rádio ficam fora: o <input> vem antes do texto (ou o label usa .check). */
.form label,
.filters label {
    position: relative;
}

.form label > span:first-child,
.filters label > span:first-child {
    position: absolute;
    top: -9px;
    left: 10px;
    z-index: 1;
    max-width: calc(100% - 20px);
    padding: 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 18px;
    color: var(--text-secondary);
    background: var(--background);
    pointer-events: none;
    transition: color var(--transition);
}

.form label > span:first-child small,
.filters label > span:first-child small {
    font-size: inherit;
    font-weight: 400;
}

.form label:focus-within > span:first-child,
.filters label:focus-within > span:first-child {
    color: var(--text);
}

.form label:has(> :disabled) > span:first-child,
.filters label:has(> :disabled) > span:first-child {
    color: var(--text-disabled);
}

.form label:has(> :user-invalid) > span:first-child,
.filters label:has(> :user-invalid) > span:first-child {
    color: var(--error);
}

.form label > :user-invalid,
.filters label > :user-invalid {
    border-color: var(--error);
}

.form label > :user-invalid:focus,
.filters label > :user-invalid:focus {
    box-shadow: inset 0 0 0 1px var(--error);
}

.form label > :is(input:not([type="checkbox"]):not([type="radio"]), select),
.filters label > :is(input:not([type="checkbox"]):not([type="radio"]), select) {
    min-height: 54px;
    padding-top: 16px;
    padding-bottom: 16px;
    line-height: 1.4667;
}

.form label > textarea,
.filters label > textarea {
    padding-top: 16px;
    padding-bottom: 16px;
}

/* Texto de ajuda sob o campo (FormHelperText). */
.form label > small,
.filters label > small {
    margin: -2px 14px 0;
}

/* Versão "small" (40px) nos filtros. */
.filters label > :is(input:not([type="checkbox"]):not([type="radio"]), select) {
    min-height: 40px;
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Checkbox ou rádio com o texto ao lado. */
.check {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text);
    cursor: pointer;
}

.form label.check > span:first-child,
.filters label.check > span:first-child {
    position: static;
    max-width: none;
    padding: 0;
    overflow: visible;
    white-space: normal;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    background: none;
    pointer-events: auto;
}

/* Abaixo de 600px, 16px evitam o zoom automático do Safari no foco. */
@media (max-width: 599px) {
    input,
    select,
    textarea {
        font-size: 1rem;
    }
}

/* Listas de dados */

.facts {
    display: flex;
    flex-direction: column;
}

.facts > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--divider);
}

.facts > div:first-child {
    padding-top: 0;
}

.facts > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.facts dt {
    color: var(--text-secondary);
    flex: none;
}

.facts dd {
    text-align: right;
    font-weight: 600;
    min-width: 0;
    overflow-wrap: anywhere;
}

.status-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--divider);
}

.status-list li:first-child {
    padding-top: 0;
}

.status-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.status-list a:hover {
    text-decoration: none;
}

.status-count {
    margin-left: auto;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.status-list .numeric {
    min-width: 110px;
    font-weight: 600;
}

.application-list li {
    align-items: flex-start;
}

.application-list li > div {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.application-list p {
    margin: 2px 0 0;
    overflow-wrap: anywhere;
}

/* Linha do tempo no formato Timeline do tema */

.timeline li {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    position: relative;
}

.timeline li:last-child {
    padding-bottom: 0;
}

.timeline li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 22px;
    bottom: 4px;
    width: 2px;
    border-radius: 1px;
    background: var(--grey-300);
}

.timeline-dot {
    width: 12px;
    height: 12px;
    margin-top: 5px;
    border-radius: 50%;
    flex: none;
    background: var(--grey-400);
}

.tone-success {
    background: var(--primary);
}

.tone-warning {
    background: var(--warning);
}

.tone-error {
    background: var(--error);
}

.tone-info {
    background: var(--info);
}

/* Eventos expansíveis */

.event-list li {
    border-bottom: 1px dashed var(--divider);
}

.event-list li:last-child {
    border-bottom: 0;
}

.event-list summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px 8px;
    border-radius: var(--radius);
    cursor: pointer;
    list-style: none;
    transition: background-color var(--transition);
}

.event-list summary::-webkit-details-marker {
    display: none;
}

.event-list summary::after {
    content: "";
    width: 20px;
    height: 20px;
    margin-left: auto;
    background: var(--text-disabled);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 15.5a1 1 0 0 1-.7-.3l-4-4a1 1 0 1 1 1.4-1.4l3.3 3.3 3.3-3.3a1 1 0 0 1 1.4 1.4l-4 4a1 1 0 0 1-.7.3'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 15.5a1 1 0 0 1-.7-.3l-4-4a1 1 0 1 1 1.4-1.4l3.3 3.3 3.3-3.3a1 1 0 0 1 1.4 1.4l-4 4a1 1 0 0 1-.7.3'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform var(--transition);
}

.event-list details[open] > summary::after {
    transform: rotate(180deg);
}

.event-list summary:hover {
    background: var(--grey-500-08);
}

.event-list details > p {
    padding: 0 8px 8px;
}

.code {
    margin: 0 0 16px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--grey-900);
    color: #d6e4f0;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.6;
    overflow-x: auto;
    white-space: pre;
}

/* QR code */

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

.qr-image {
    width: 232px;
    height: 232px;
    padding: 8px;
    border: 1px solid var(--grey-500-20);
    border-radius: 12px;
    background: #ffffff;
}

.qr-background {
    fill: #ffffff;
}

.qr-modules {
    fill: var(--grey-900);
}

.qr-copy {
    width: 100%;
}

/* Gráfico */

.chart {
    width: 100%;
    height: auto;
    display: block;
}

.chart-grid {
    stroke: var(--grey-500-20);
    stroke-width: 1;
    stroke-dasharray: 3 3;
}

.chart-axis {
    fill: var(--text-disabled);
    font-size: 12px;
    font-family: var(--font);
}

.chart-bar {
    fill: var(--primary);
    transition: fill var(--transition);
}

.chart-bar:hover {
    fill: var(--primary-dark);
}

.chart-bar-out {
    fill: var(--warning);
}

.chart-bar-out:hover {
    fill: var(--warning-dark);
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
}

.legend li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-in {
    background: var(--primary);
}

.legend-out {
    background: var(--warning);
}

/* Conta do lojista: saldo, entradas e saídas */

.balance-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.amount-in {
    color: var(--success-dark);
}

.amount-out {
    color: var(--error-dark);
}

/* Login e erro: cartão central sobre fundo claro com brilho da cor primária */

.centered {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(60% 50% at 15% 10%, rgba(0, 167, 111, 0.12) 0%, rgba(0, 167, 111, 0) 70%),
        radial-gradient(50% 50% at 90% 90%, rgba(0, 184, 217, 0.1) 0%, rgba(0, 184, 217, 0) 70%),
        var(--grey-100);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--background);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-dropdown);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-card h1 {
    justify-content: center;
    text-align: center;
    font-size: 1.25rem;
}

.auth-card .muted {
    text-align: center;
}

.auth-card .small {
    font-size: 0.8125rem;
    margin: 12px 0;
}

.error-status {
    text-align: center;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Verificação em duas etapas */

.steps {
    margin: 0 0 24px;
    padding-left: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
    list-style: decimal;
}

.manual-key {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-bottom: 24px;
}

.code-input,
.confirm-code input {
    font-size: 1.125rem;
    letter-spacing: 0.25em;
    font-variant-numeric: tabular-nums;
}

.confirm-code input {
    max-width: 200px;
}

.recovery-codes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    margin: 0 0 24px;
    padding: 16px 16px 16px 40px;
    border-radius: var(--radius);
    background: var(--background-neutral);
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    list-style: decimal;
}

.visually-hidden-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Credenciais exibidas uma única vez e ações dentro de um cartão */

.secret {
    display: flex;
    gap: 8px;
    align-items: center;
}

.secret input {
    flex: 1;
    min-width: 0;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

/* Aplicações de integração (padrão eveo api-v1: grade de cards + diálogo) */

.section-heading-actions {
    align-items: center;
}

.section-heading-actions .button {
    flex-shrink: 0;
}

.app-cards {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    height: 100%;
}

.app-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 24px 24px 0;
}

.app-card-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
}

.app-card-header h3 a {
    color: inherit;
    text-decoration: none;
}

.app-card-header h3 a:hover {
    color: var(--primary);
}

.app-card-header .muted {
    margin: 4px 0 0;
    font-size: 0.875rem;
}

.app-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 24px 8px;
    flex: 1;
}

.app-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding: 8px 24px 24px;
}

.section-label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.field-grid {
    display: grid;
    gap: 24px 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.labeled-detail {
    min-width: 0;
}

.labeled-detail-label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.labeled-detail-value {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}

.labeled-detail .button {
    margin-top: 2px;
}

.credential-action {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--divider);
}

.credential-action h3 {
    font-size: 0.9375rem;
    font-weight: 600;
}

.credential-action .muted {
    margin: 2px 0 12px;
    font-size: 0.8125rem;
}

.credential-action .filters {
    margin-bottom: 0;
}

.scope-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 4px 16px;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.scope-options legend {
    margin-bottom: 8px;
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.scope-options label {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: background-color var(--transition);
}

.scope-options label:hover {
    background: var(--grey-500-08);
}

.scope-options label:has(input:checked) {
    background: var(--primary-08);
}

/* Diálogo modal no formato Dialog do tema: sem borda, raio de 16px, sombra "dialog", 24px no
   cabeçalho e nas ações e 0 24px no corpo. */
.modal {
    width: min(600px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: var(--radius-card);
    background: var(--background);
    color: var(--text);
    box-shadow: var(--shadow-dialog);
    overflow: auto;
}

.modal-wide {
    width: min(900px, calc(100vw - 32px));
}

.modal-confirm {
    width: min(444px, calc(100vw - 32px));
}

.modal::backdrop {
    background: rgba(28, 37, 46, 0.48);
}

.modal-form {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 32px);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 24px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
}

.modal-header .icon-button {
    margin: -8px -8px -8px 0;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 24px;
    overflow: auto;
}

/* Espaço para o rótulo na borda do primeiro campo não ser cortado pela rolagem. */
.modal-body > :first-child {
    margin-top: 9px;
}

.modal-body .filters {
    margin: 0;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 24px;
}

.modal-actions form {
    margin: 0;
}

/* Drawer: o mesmo <dialog class="modal drawer …"> preso a uma lateral, na altura toda. Larguras
   fixas: .drawer 320px (conta, filtros simples), .drawer-left 288px (navegação),
   .drawer-filters 420px (filtros com busca avançada) e .drawer-detail 640px (detalhe). */
.modal.drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 100vw);
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-radius: 0;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-dialog);
}

.modal.drawer[open] {
    display: flex;
    animation: drawer-in-right 200ms cubic-bezier(0, 0, 0.2, 1);
}

.modal.drawer-left {
    inset: 0 auto 0 0;
    width: min(288px, 100vw);
    box-shadow: 40px 40px 80px -8px rgba(0, 0, 0, 0.24);
}

.modal.drawer-left[open] {
    animation-name: drawer-in-left;
}

.modal.drawer-filters {
    width: min(420px, 100vw);
}

.modal.drawer-detail {
    width: min(640px, 100vw);
}

.drawer > .modal-form,
.drawer > form {
    flex: 1;
    min-height: 0;
    max-height: none;
    display: flex;
    flex-direction: column;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: none;
    min-height: 68px;
    padding: 12px 8px 12px 20px;
}

.drawer-header h2 {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
}

.drawer-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 9px 20px 24px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--grey-500-32) transparent;
}

.drawer-body .filters {
    flex-direction: column;
    align-items: stretch;
    margin: 0;
}

.drawer-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    flex: none;
    padding: 16px 20px;
    border-top: 1px solid var(--divider);
}

.drawer-footer > .button {
    flex: 1;
}

@keyframes drawer-in-right {
    from {
        transform: translateX(100%);
    }
}

@keyframes drawer-in-left {
    from {
        transform: translateX(-100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .modal.drawer[open] {
        animation: none;
    }
}

/* Barra de progresso no topo enquanto a página seguinte carrega (body.is-navigating no app.js). */
body.is-navigating::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    width: 100%;
    height: 2.5px;
    background: var(--primary);
    transform-origin: left;
    animation: navigating 8s cubic-bezier(0.1, 0.6, 0.2, 1) forwards;
}

@keyframes navigating {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(0.9);
    }
}

/* Telas estreitas */

@media (max-width: 1199px) {
    :root {
        --gutter: 24px;
    }

    /* Com JS, a barra some e o hambúrguer abre o #nav-drawer. */
    html.js .sidebar,
    .nav-toggle {
        display: none;
    }

    html.js .topbar .menu-button {
        display: inline-flex;
    }

    /* Sem JS, o menu fica no topo da página, em blocos que quebram linha (sem rolagem lateral). */
    html:not(.js) .shell {
        flex-direction: column;
    }

    html:not(.js) .sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 0 8px 8px;
    }

    html:not(.js) .sidebar .nav {
        display: block;
    }

    html:not(.js) .sidebar .nav a {
        display: inline-flex;
        width: 80px;
        margin: 0 2px 4px 0;
        vertical-align: top;
    }

    html:not(.js) .sidebar .brand {
        min-height: 0;
    }

    .grid-main,
    .grid-halves {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    :root {
        --gutter: 16px;
        --header-height: 64px;
    }

    .topbar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .account-pill {
        max-width: 160px;
    }

    .operator {
        padding-right: 4px;
    }

    .operator > span:last-child {
        display: none;
    }

    .content {
        padding-bottom: 40px;
    }

    .grid-main,
    .grid-halves,
    .grid-detail,
    .app-cards,
    .field-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .section-heading-actions {
        align-items: stretch;
    }

    .section-heading-actions .button {
        width: 100%;
    }

    .balance-value {
        font-size: 1.75rem;
    }

    .card {
        padding: 20px;
    }

    .card-flush {
        padding: 0;
    }

    .card > .divider {
        margin-left: -20px;
        margin-right: -20px;
    }

    .card-flush > .divider {
        margin-left: 0;
        margin-right: 0;
    }

    .toast-region {
        top: 16px;
        right: 16px;
    }

    .toast:not(.toast-region > .toast) {
        top: 16px;
        right: 16px;
    }

    .card > .table-scroll {
        margin: 0 -20px;
    }

    .card > .table-scroll:last-child {
        margin-bottom: -20px;
    }

    .card > .table-scroll:first-child {
        margin-top: -20px;
    }

    .pagination {
        margin: 0 -20px -20px;
        padding: 8px 20px;
    }

    .card > .table-scroll .table th:first-child,
    .card > .table-scroll .table td:first-child {
        padding-left: 20px;
    }

    .card > .table-scroll .table th:last-child,
    .card > .table-scroll .table td:last-child {
        padding-right: 20px;
    }

    .facts > div {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .facts dd {
        text-align: left;
    }

    .auth-card {
        padding: 28px 20px;
    }

    .recovery-codes {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ==========================================================================
   Fundação 3: apoio aos fragmentos de parts.html (F21 a F26) e ao app.js (F28 a F32)
   ========================================================================== */

/* Texto só para leitor de tela (ex.: valor completo do fragmento money). */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Painéis de abas e itens escondidos pelo app.js não podem reaparecer por causa de um display. */
[role="tabpanel"][hidden],
[data-toggle-password][hidden],
[data-paste-target][hidden] {
    display: none !important;
}

/* F30: com JS, o código do autenticador é pedido no #dialog-otp depois da ação. Sem JS, o
   campo (fragments/confirm-code) continua visível e obrigatório no formulário. */
html.js form[data-otp]:not([data-otp="inline"]) .confirm-code {
    display: none;
}

/* Botões de dois estados (olho da senha, ocultar valores, copiado). */
.when-on {
    display: none;
}

.when-on,
.when-off {
    align-items: center;
    justify-content: center;
}

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

[aria-pressed="true"] > .when-on,
.is-copied > .when-on {
    display: inline-flex;
}

[aria-pressed="true"] > .when-off,
.is-copied > .when-off {
    display: none;
}

.is-copied {
    color: var(--success-dark);
}

/* Campo de senha com o olho dentro (data-toggle-password). */
.password-field {
    position: relative;
    display: block;
}

.password-field > input {
    width: 100%;
    padding-right: 52px;
}

.password-field > .password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
}

/* F24: valor em destaque. */
.money {
    display: inline-flex;
    align-items: baseline;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    white-space: nowrap;
}

.money-figure {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
}

.money-sign {
    margin-right: 2px;
}

.money-currency {
    margin-right: 4px;
    font-size: 0.6em;
    font-weight: 600;
    color: var(--text-secondary);
}

.money-integer {
    font-size: 1em;
}

.money-cents {
    font-size: 0.6em;
    align-self: flex-start;
    margin-top: 0.15em;
}

.money-small {
    font-size: 1.25rem;
}

.money-large {
    font-size: 2.5rem;
}

/* F25: barra de ações do cabeçalho de uma lista. */
.card-toolbar {
    margin-bottom: 16px;
}

.card-toolbar-summary {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.card-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.card-toolbar-actions form {
    margin: 0;
}

@media (max-width: 899.98px) {
    .card-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .card-toolbar-actions {
        margin-left: 0;
    }
}

/* F26: parte de uma transação (origem e destino). */
.party-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 20px;
    border-radius: 12px;
    background: rgba(145, 158, 171, 0.04);
    border: 1px dashed var(--grey-500-08);
}

.party-card .overline {
    margin: 0;
}

.party-card-in .avatar {
    background: rgba(34, 197, 94, 0.16);
    color: var(--success-dark);
}

.party-card-out .avatar {
    background: rgba(255, 86, 48, 0.16);
    color: var(--error);
}

/* F32: linha inteira clicável (tr[data-row-href], marcada .row-link pelo app.js). */
.table tr.row-link {
    cursor: pointer;
}

.table tr.row-link:focus-within td {
    background: var(--grey-500-08);
}

/* F32: contagem regressiva vencida. */
[data-countdown] {
    font-variant-numeric: tabular-nums;
}

[data-countdown].is-expired {
    color: var(--error);
}

/* Onda 1 — auth-erro
   login.html e two-factor-verify.html (body.auth-split) e error.html (body.simple). As regras
   antigas .centered, .auth-card e .error-status ficaram sem uso nessas telas. */

.auth-split,
.simple {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--background);
}

.auth-header {
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 0 16px;
}

.auth-header .brand {
    padding: 12px 0;
}

.auth-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.auth-hero {
    display: none;
}

.auth-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px 80px;
}

.auth-panel {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-panel .alert {
    margin: 0;
}

/* FormHead: título de 19px/700 e descrição secundária, centrados no celular. */
.form-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.form-head h1 {
    display: block;
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.5;
}

.form-head p {
    color: var(--text-secondary);
}

.form-head strong {
    color: var(--text);
    overflow-wrap: anywhere;
}

/* Campo de senha com o olho: o <input> não é filho direto do <label>, então repete a altura do F5. */
.form label > .password-field > input {
    min-height: 54px;
    padding-top: 16px;
    padding-bottom: 16px;
    line-height: 1.4667;
}

.form label:has(.password-field > :user-invalid) > span:first-child {
    color: var(--error);
}

.form label > .password-field > :user-invalid {
    border-color: var(--error);
}

.auth-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.5;
    text-align: center;
    color: var(--text-secondary);
}

.auth-note svg {
    width: 14px;
    height: 14px;
    flex: none;
    fill: currentColor;
}

.auth-hint {
    margin: 0;
    font-size: 0.8125rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Código do autenticador centralizado (OtpForm): 22px/600 com espaçamento largo. */
.auth-split .auth-code {
    align-self: center;
    width: 100%;
    max-width: 320px;
}

.auth-split .auth-code > .code-input {
    text-align: center;
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: 0.5em;
    text-indent: 0.5em;
}

.auth-split .auth-code > .code-input::placeholder {
    color: var(--text-disabled);
}

@media (min-width: 900px) {
    .auth-header {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 2;
        min-height: 72px;
        padding: 0 24px;
    }

    .auth-main {
        flex-direction: row;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .auth-hero {
        flex: 3 1 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 112px 40px 40px;
        border-right: 1px solid var(--grey-500-12);
        background:
            radial-gradient(circle at 20% 22%, rgba(0, 167, 111, 0.1) 0%, rgba(0, 167, 111, 0) 48%),
            radial-gradient(circle at 82% 76%, rgba(0, 184, 217, 0.08) 0%, rgba(0, 184, 217, 0) 52%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(244, 246, 248, 0.94) 100%);
    }

    .auth-hero-text {
        max-width: 560px;
    }

    .auth-hero h2 {
        font-size: 2rem;
        font-weight: 800;
        line-height: 1.15;
        letter-spacing: -0.02em;
    }

    .auth-hero .accent {
        display: block;
        color: var(--primary);
    }

    .auth-hero p {
        max-width: 540px;
        margin-top: 12px;
        font-size: 1rem;
        line-height: 1.6;
        color: var(--text-secondary);
    }

    .auth-content {
        flex: 2 1 0;
        justify-content: center;
        padding: 80px 32px;
    }

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

    .form-head-centered {
        text-align: center;
    }
}

@media (min-width: 1200px) {
    .auth-hero {
        padding: 112px 56px 40px;
    }

    .auth-hero h2 {
        font-size: 2.5rem;
    }

    .auth-content {
        padding: 80px 48px;
    }
}

/* Página de erro (SimpleLayout do eveo): bloco centralizado, sem cartão. */
.error-view {
    flex: 1 1 auto;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 16px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-view .overline {
    margin-bottom: 8px;
}

.error-view h1 {
    display: block;
    margin-bottom: 16px;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
}

.error-description {
    color: var(--text-secondary);
}

.error-illustration {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 40px 0;
}

.error-illustration .ill-shadow {
    fill: var(--grey-500-12);
}

.error-illustration .ill-paper {
    fill: var(--background);
    stroke: var(--grey-300);
    stroke-width: 2;
}

.error-illustration .ill-dot {
    fill: var(--background);
}

.error-illustration .ill-line {
    fill: var(--grey-300);
}

.error-illustration .ill-soft {
    fill: var(--primary-16);
}

.error-illustration .ill-main {
    fill: var(--primary);
}

.error-illustration .ill-ring {
    fill: none;
    stroke: var(--primary-dark);
    stroke-width: 12;
    stroke-linecap: round;
}

.error-illustration .ill-warning {
    fill: var(--warning);
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

@media (min-width: 600px) {
    .error-illustration {
        margin: 64px 0;
    }
}

@media (min-width: 900px) {
    .simple .auth-header {
        position: static;
    }
}

/* Onda 1 — detalhes (payment-detail.html e payout-detail.html) */

/* Campos em dl: dt/dd sem as margens do navegador. */
dl.field-grid {
    margin: 0;
}

dl.field-grid dd {
    margin: 0;
}

/* Topo do detalhe (ContentHeader do eveo): situação à esquerda e valor à direita. */
.detail-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.detail-amount {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.detail-subtitle {
    margin: 8px 0 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.detail-subtitle strong,
.detail-subtitle a {
    font-weight: 600;
}

.card > .detail-divider {
    margin-top: 24px;
    margin-bottom: 24px;
}

.detail-block-title {
    margin: 0 0 16px;
    font-size: 0.875rem;
    font-weight: 600;
}

.detail-parties {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Cobrança aguardando: validade do QR e as ações para seguir. */
.detail-pending {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.detail-pending-time {
    margin: 0;
}

.detail-pending-time dt {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.detail-pending-time dd {
    margin: 2px 0 0;
    font-size: 1.125rem;
}

.detail-pending-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Abas: sem JS, os painéis aparecem em sequência, cada um com o próprio título. */
.detail-tabs {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.detail-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.detail-panel-title {
    margin: 0;
}

/* Com as abas ativas, o título do painel repete o rótulo da aba: fica só para o leitor de tela. */
html.js .detail-tabs .tabs[role="tablist"] ~ .detail-panel > .detail-panel-title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.tabs .tab-count {
    height: 22px;
    min-width: 22px;
    padding: 0 6px;
    justify-content: center;
}

.webhook-summary {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px dashed var(--divider);
}

.labeled-detail-value .badge {
    margin-left: 6px;
    vertical-align: middle;
}

@media (max-width: 599px) {
    .detail-parties {
        grid-template-columns: minmax(0, 1fr);
    }

    .detail-pending-actions {
        width: 100%;
    }

    .detail-pending-actions .button {
        flex: 1 1 0;
    }
}

/* Onda 1 — listas (transactions.html, statement.html, ledger.html e os fragmentos
   transactions-table e statement-table do parts.html) */

/* Tabela no padrão TransactionTableRow: colunas fixas, células empilhadas e texto truncado. */
.table-fixed {
    table-layout: fixed;
    min-width: 600px;
}

.table-fixed .col-type {
    width: 30%;
}

.table-transactions .col-merchant {
    width: 20%;
}

.table-fixed .col-amount {
    width: 24%;
}

.table-statement .col-amount {
    width: 30%;
}

.cell-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

.cell-stack > * {
    max-width: 100%;
}

.cell-stack-end {
    align-items: flex-end;
    gap: 6px;
}

.cell-title {
    font-weight: 600;
    color: var(--text);
}

a.cell-title:hover {
    color: var(--text);
}

.cell-caption {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.cell-mono {
    font-family: var(--font-mono);
}

.cell-title.cell-mono {
    font-size: 0.8125rem;
}

.cell-empty {
    color: var(--text-disabled);
    font-weight: 500;
}

.cell-amount {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Barra da lista: o botão Filtros leva a contagem de filtros ativos. */
.filter-count {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

/* Drawer de filtros: período lado a lado no topo e "Busca avançada" recolhível. */
.drawer-body .filters.filters-period {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filters-advanced {
    border-top: 1px dashed var(--divider);
    padding-top: 16px;
}

.filters-advanced > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    list-style: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
}

.filters-advanced > summary::-webkit-details-marker {
    display: none;
}

.filters-advanced > summary::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform var(--transition);
}

.filters-advanced[open] > summary::after {
    transform: rotate(-135deg);
}

.filters-advanced > summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.filters-advanced > .filters {
    margin-top: 24px;
}

/* Sem JS não há como abrir o <dialog>: o drawer de filtros aparece aberto dentro do cartão. */
html:not(.js) .modal.drawer.filters-drawer {
    display: flex;
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    max-height: none;
    margin: 0 0 24px;
    border: 1px solid var(--divider);
    border-radius: 12px;
    box-shadow: none;
    animation: none;
    overflow: visible;
}

html:not(.js) .filters-drawer .drawer-body {
    overflow: visible;
}

html:not(.js) .filters-drawer .drawer-footer > .button {
    flex: 0 0 auto;
}

/* Extrato: saldo no topo. */
.statement-balance .balance-value {
    font-variant-numeric: tabular-nums;
}

/* Livro-razão: indicadores no formato KpiStatCard (contornado, sem ícone e sem tom). */
.card.kpi-plain {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px;
}

.kpi-plain-label {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.kpi-plain-value {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
}

.kpi-plain-error .kpi-plain-value {
    color: var(--error-dark);
}

.kpi-plain .badge {
    height: auto;
    min-height: 24px;
    max-width: 100%;
    white-space: normal;
    text-align: left;
}

/* Pagar (pix-pay) — padrão eveo: um card com cabeçalho interno e o fluxo centralizado em 880px
   (pagamentos-view + pix-unified-flow), escolha da forma em cards compactos (pagamentos-hub),
   valor grande sem moldura (pix-chave-form-amount-input), linha de saldo com o olho
   (pix-balance-line) e conferência do QR em duas colunas (pix-confirmation-review). */
.flow-card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 24px 16px;
}

.flow-card-header h2 {
    font-size: 1.0625rem;
    font-weight: 600;
}

.flow-card-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.flow-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 880px;
    margin-inline: auto;
    padding: 0 24px 32px;
}

.flow-body .alert {
    margin: 0;
}

.flow-body h3 {
    margin: 0;
}

.flow-form {
    gap: 24px;
    min-width: 0;
}

.flow-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.flow-link,
.flow-link:hover {
    color: var(--text);
}

.flow-link {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Forma de pagamento: links GET com aria-current, como as abas que substituem. */
.method-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.method-option {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--grey-500-16);
    border-radius: 12px;
    color: var(--text);
    transition: border-color var(--transition), background var(--transition);
}

.method-option:hover {
    color: var(--text);
    text-decoration: none;
    background: var(--grey-500-08);
}

.method-option svg {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
    fill: currentColor;
    color: var(--text-secondary);
}

.method-option-title {
    font-weight: 600;
}

.method-option-caption {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.method-option.active,
.method-option[aria-current="page"] {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
    background: var(--primary-08);
}

.method-option.active svg,
.method-option[aria-current="page"] svg {
    color: var(--primary);
}

/* grey-600 sobre o verde 8% fica em 4,48:1; no cartão ativo a legenda sobe para o texto principal. */
.method-option.active .method-option-caption,
.method-option[aria-current="page"] .method-option-caption {
    color: var(--text);
}

/* Valor em destaque: overline, "R$" colado e número grande centralizado. */
.amount-field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 4px;
}

.amount-field > label.overline {
    position: static;
    text-align: left;
}

.amount-input {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    min-height: 56px;
    min-width: 0;
}

.amount-currency {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    transform: translateY(-0.15em);
}

.amount-input input,
.amount-input input:hover,
.amount-input input:focus {
    border: 0;
    background: none;
    box-shadow: none;
}

.amount-input input {
    width: 8ch;
    max-width: 100%;
    min-height: 0;
    padding: 0;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

@supports (field-sizing: content) {
    .amount-input input {
        field-sizing: content;
        width: auto;
        min-width: 4ch;
    }
}

/* Sem moldura, o foco precisa de anel próprio. */
.amount-input input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

.amount-input input:user-invalid {
    color: var(--error);
}

.balance-line {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.balance-line strong {
    color: var(--text);
    font-weight: 700;
}

.flow-caption {
    margin-top: -16px;
    text-align: center;
}

.flow-caption-inline {
    text-align: center;
}

.flow-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: -8px;
}

.flow-question h3,
.flow-subtitle {
    min-width: 0;
    font-size: 1rem;
    font-weight: 600;
}

.flow-subtitle {
    margin-bottom: -8px;
}

.paste-button {
    flex: none;
    padding: 4px 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
}

.paste-button:hover {
    text-decoration: underline;
}

/* Conferência do QR code. */
.flow-step-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.flow-step-heading h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.flow-step-heading p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.flow-review {
    gap: 24px;
    align-items: start;
}

.review-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.review-amount {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px;
    border-radius: 12px;
    background: var(--background-neutral);
    text-align: center;
}

.review-amount-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.review-summary .party-card {
    padding: 16px;
    border: 0;
    border-radius: 12px;
    background: var(--background-neutral);
}

/* Dados bancários: [Banco | Agência] e [Conta | Tipo] como no pix-conta-form. */
.field-grid-wide-narrow {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

@media (max-width: 900px) {
    .flow-card-header {
        padding: 16px 16px 12px;
    }

    .flow-body {
        gap: 20px;
        padding: 0 16px 24px;
    }

    .field-grid-wide-narrow {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 599px) {
    .method-option {
        align-items: center;
        padding: 12px 8px;
        text-align: center;
    }

    .method-option-caption {
        display: none;
    }

    .method-option svg {
        width: 28px;
        height: 28px;
    }

    .method-option-title {
        font-size: 0.8125rem;
    }

    .amount-input input {
        font-size: 2.25rem;
    }

    .amount-currency {
        font-size: 1.25rem;
    }
}

/* Devlab (documentação e sandbox): mesmos cartões e abas do painel. */

.devlab-endpoint {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 1rem;
}

.http-method {
    display: inline-block;
    min-width: 52px;
    padding: 2px 8px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    background: var(--info-lighter);
    color: var(--info-darker);
}

.http-method-post {
    background: var(--success-lighter);
    color: var(--success-darker);
}

.http-method-delete {
    background: var(--error-lighter);
    color: var(--error-darker);
}

.http-method-put,
.http-method-patch {
    background: var(--warning-lighter);
    color: var(--warning-darker);
}

.devlab-code-list {
    display: inline-block;
    margin: 0 6px 4px 0;
}

.devlab-links {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.devlab-links li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.devlab-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.devlab-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.devlab-sandbox-actions {
    flex-wrap: wrap;
    gap: 16px;
}

/* Opção "manter a anterior" na rotação de credencial do sandbox: caixa e texto na mesma linha. */
.filters label.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* Guias renderizados do Markdown (HTML escapado e URLs saneadas no servidor). */
.prose {
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.prose > * + * {
    margin-top: 12px;
}

.prose h2 {
    margin-top: 28px;
    font-size: 1.125rem;
    font-weight: 600;
}

.prose h3 {
    margin-top: 20px;
    font-size: 1rem;
    font-weight: 600;
}

.prose ul,
.prose ol {
    padding-left: 24px;
}

.prose li + li {
    margin-top: 4px;
}

.prose code {
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--background-neutral);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

.prose pre {
    padding: 16px;
    border-radius: var(--radius);
    background: var(--grey-900);
    color: #d6e4f0;
    overflow-x: auto;
}

.prose pre code {
    padding: 0;
    background: none;
    color: inherit;
    white-space: pre;
}

/* Abas de linguagem dos guias do Devlab. Sem JS: um <details> por linguagem, o primeiro aberto. */
.code-tabs {
    margin: 12px 0;
    border: 1px solid var(--divider);
    border-radius: var(--radius);
}

.code-tab summary {
    padding: 8px 14px;
    font-weight: 600;
    cursor: pointer;
}

.code-tab + .code-tab {
    border-top: 1px solid var(--divider);
}

.prose .code-tabs pre {
    margin: 0;
    border-radius: 0 0 var(--radius) var(--radius);
}

.code-tabs-list {
    display: flex;
    gap: 4px;
    padding: 4px 8px 0;
    border-bottom: 1px solid var(--divider);
    overflow-x: auto;
}

.code-tabs-tab {
    min-height: 40px;
    padding: 8px 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--text-secondary);
    font: inherit;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.code-tabs-tab[aria-selected="true"] {
    color: var(--text);
    border-bottom-color: currentColor;
}

.code-tabs-tab:focus-visible {
    outline-offset: -2px;
}

.prose blockquote {
    margin-left: 0;
    padding: 8px 16px;
    border-left: 4px solid var(--warning);
    background: var(--warning-lighter);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.prose table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.prose th,
.prose td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--divider);
    text-align: left;
    vertical-align: top;
}

.devlab-detail {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

@media (max-width: 1100px) {
    .devlab-detail {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ==========================================================================
   Devlab no padrão do eveo (sections/developers e devlab-markdown-content), com os valores
   que o MUI 9 resolve a partir do tema do eveo. Tabela "componente → arquivo:linha → valores →
   classe" em docs/ux/devlab-eveo-estilos.md. A primária continua a nossa (#00A76F).
   Fragmentos em templates/fragments/devlab.html; filtro da barra e ambiente em js/devlab.js.
   ========================================================================== */

/* Tipografia do tema (typography.ts). Sem espaçamento entre letras: o createTypography do MUI só o aplica
   quando a fonte é a Roboto padrão, e o eveo usa Inter Variable. */
.t-h4 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
}

@media (min-width: 900px) {
    .t-h4 {
        font-size: 1.5rem;
    }
}

.t-h6 {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.5556;
}

@media (min-width: 600px) {
    .t-h6 {
        font-size: 1.125rem;
    }
}

.t-subtitle1 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.t-subtitle2 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5714;
}

.t-body1 {
    font-size: 1rem;
    line-height: 1.5;
}

.t-body2 {
    font-size: 0.875rem;
    line-height: 1.5714;
}

.t-caption {
    font-size: 0.75rem;
    line-height: 1.5;
}

.t-overline {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.5;
    text-transform: uppercase;
}

.t-secondary {
    color: var(--text-secondary);
}

.t-disabled {
    color: var(--text-disabled);
}

/* Chip do MUI com os overrides do eveo (chip.tsx): 32px, raio 10px, 13px/500; small 24px e raio 8px.
   Filled usa a "main" com o contrastText; o "default" filled é escuro (text.primary). */
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    max-width: 100%;
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
    vertical-align: middle;
    background: var(--grey-500-16);
    color: var(--text);
}

.pill-small {
    height: 24px;
    padding: 0 8px;
    border-radius: var(--radius);
}

.pill-primary {
    background: var(--primary);
    color: #ffffff;
}

.pill-info {
    background: var(--info);
    color: #ffffff;
}

.pill-success {
    background: var(--success);
    color: #ffffff;
}

.pill-warning {
    background: var(--warning);
    color: var(--grey-800);
}

.pill-error {
    background: var(--error);
    color: #ffffff;
}

.pill-default {
    background: var(--text);
    color: #ffffff;
}

/* Soft "default" (fundo grey-500 a 16%) e outlined "default" (contorno grey-500 a 32%). */
.pill-soft {
    background: var(--grey-500-16);
    color: var(--text);
}

.pill-outlined {
    padding: 0 11px;
    border: 1px solid var(--grey-500-32);
    background: transparent;
    color: var(--text);
}

.pill-small.pill-outlined {
    padding: 0 7px;
}

/* Bloco de código (DevlabCodeBlock): fundo grey-900, cabeçalho com a linguagem e o copiar. */
.code-block {
    margin: 8px 0;
    overflow: hidden;
    border: 1px solid var(--divider);
    border-radius: 10px;
    background: var(--grey-900);
}

.code-block-header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-block-lang {
    flex: 1 1 auto;
    min-width: 0;
    font-family: monospace;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--grey-400);
}

/* IconButton small: 5px de respiro em volta do ícone de 18px. */
.code-block-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 28px;
    height: 28px;
    padding: 5px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--grey-400);
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition);
}

.code-block-copy:hover {
    background: rgba(145, 158, 171, 0.16);
}

.code-block-copy:focus-visible {
    outline: 2px solid var(--grey-400);
    outline-offset: 1px;
}

.code-block-copy svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.code-block-copy.is-copied {
    color: var(--success);
}

.code-block-pre {
    margin: 0;
    padding: 10px 12px;
    overflow: auto;
    max-height: 280px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    line-height: 1.55;
    color: var(--grey-100);
    white-space: pre;
    scrollbar-width: thin;
    scrollbar-color: rgba(145, 158, 171, 0.4) transparent;
}

.code-block-pre code {
    font: inherit;
    color: inherit;
    background: none;
    padding: 0;
}

/* Código em linha (renderInline): 0.82em, raio 6px, fundo action.hover. */
.inline-code,
.docs-prose :not(pre) > code {
    padding: 1.2px 4.8px;
    border-radius: 6px;
    font-family: ui-monospace, monospace;
    font-size: 0.82em;
    background: var(--grey-500-08);
    color: var(--text);
}

/* Texto dos guias (renderTextBlock): body2 com entrelinha 1.65, ## em subtitle1, ### em subtitle2,
   lista com "•" em text.secondary. Serve ao HTML que o commonmark gera no servidor. */
.docs-prose {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text);
    overflow-wrap: anywhere;
}

.docs-prose > * {
    margin: 0;
}

.docs-prose > * + * {
    margin-top: 10px;
}

.docs-prose h1,
.docs-prose h2 {
    margin-top: 18px;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.docs-prose h1 {
    font-weight: 700;
}

.docs-prose h3 {
    margin-top: 18px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5714;
}

.docs-prose > :first-child {
    margin-top: 0;
}

.docs-prose :is(h1, h2, h3) + * {
    margin-top: 6px;
}

.docs-prose ul,
.docs-prose ol {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 0 0 4px;
    list-style: none;
    counter-reset: docs-item;
}

.docs-prose li {
    display: flex;
    gap: 8px;
}

.docs-prose li > * {
    margin: 0;
}

.docs-prose ul > li::before {
    content: "•";
    flex: none;
    color: var(--text-secondary);
}

.docs-prose ol > li {
    counter-increment: docs-item;
}

.docs-prose ol > li::before {
    content: counter(docs-item) ".";
    flex: none;
    min-width: 16px;
    color: var(--text-secondary);
}

.docs-prose a {
    color: var(--primary);
    font-weight: 400;
    text-decoration: underline;
}

.docs-prose strong {
    font-weight: 700;
}

/* Bloco de código gerado pelo Markdown, sem cabeçalho: o mesmo corpo do .code-block. */
.docs-prose pre {
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 10px 12px;
    overflow: auto;
    max-height: 280px;
    border: 1px solid var(--divider);
    border-radius: 10px;
    background: var(--grey-900);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    line-height: 1.55;
    color: var(--grey-100);
    white-space: pre;
}

.docs-prose pre code {
    font: inherit;
    color: inherit;
}

.docs-prose .code-block pre {
    margin: 0;
    border: 0;
    border-radius: 0;
}

/* Cabeçalho da página (CustomBreadcrumbs): h4, trilha com ponto de 4px e descrição em body2. */
.docs-heading {
    margin-bottom: 24px;
}

@media (min-width: 900px) {
    .docs-heading {
        margin-bottom: 32px;
    }
}

.docs-heading-description {
    margin: 0 0 24px;
    font-size: 0.875rem;
    line-height: 1.5714;
    color: var(--text-secondary);
}

/* Corpo (DevelopersDocsBody): barra de 280px fixa ao rolar e conteúdo; a barra some abaixo de 900px. */
.docs-layout {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.docs-layout-aside {
    display: none;
    width: 100%;
    flex-shrink: 0;
}

.docs-layout-main {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

@media (min-width: 900px) {
    .docs-layout {
        flex-direction: row;
    }

    .docs-layout-aside {
        display: block;
        position: sticky;
        top: 88px;
        width: 280px;
        max-height: calc(100vh - 120px);
        overflow: auto;
        scrollbar-width: thin;
    }
}

/* Barra lateral da referência (DevelopersReferenceSidebar). */
.docs-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.docs-search {
    margin: 0;
}

/* TextField small: 8.5px 14px de respiro e fonte de 15px (16px abaixo de 600px). */
.docs-search-input,
.docs-env select {
    min-height: 40px;
    padding: 8.5px 14px;
    font-size: 0.9375rem;
    line-height: 1.4375;
}

.docs-env select {
    padding-right: 40px;
}

.docs-filter-count {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.docs-groups {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.docs-group > summary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: var(--radius);
    list-style: none;
    cursor: pointer;
    transition: background-color var(--transition);
}

.docs-group > summary::-webkit-details-marker {
    display: none;
}

.docs-group > summary:hover {
    background: var(--grey-500-08);
}

.docs-group > summary:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: -2px;
}

.docs-group[open] > summary {
    margin-bottom: 2px;
}

.docs-group-arrow {
    display: inline-flex;
    flex: none;
    color: var(--text-secondary);
    transition: transform var(--transition);
}

.docs-group-arrow svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.docs-group[open] .docs-group-arrow {
    transform: rotate(90deg);
}

.docs-group-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    text-align: left;
    color: var(--text-secondary);
}

.docs-group-count {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-disabled);
}

.docs-ops {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 4px;
}

/* ListItemButton com py 0.75: coluna com método, caminho e resumo; selecionado em primary a 8%. */
.docs-op {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 6px 16px;
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 400;
    text-decoration: none;
    transition: background-color var(--transition);
}

.docs-op:hover {
    background: var(--grey-500-08);
    color: var(--text);
    text-decoration: none;
}

.docs-op.active,
.docs-op[aria-current="page"] {
    background: var(--primary-08);
}

.docs-op.active:hover,
.docs-op[aria-current="page"]:hover {
    background: rgba(0, 167, 111, 0.12);
}

.docs-op-method {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--primary);
}

.docs-op-path {
    font-size: 0.875rem;
    line-height: 1.5714;
    word-break: break-all;
}

.docs-op-summary {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.docs-sidebar [hidden],
.docs-group[hidden],
.docs-op[hidden] {
    display: none !important;
}

/* Detalhe da operação (DevelopersOperationDetail): Stack de 24px; cabeçalho com o método, o caminho
   em h4 e o botão "Testar" outlined small. */
.docs-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.docs-stack-tight {
    gap: 8px;
}

.docs-op-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.docs-op-title {
    margin: 0;
    font-family: var(--font);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
    word-break: break-all;
}

@media (min-width: 900px) {
    .docs-op-title {
        font-size: 1.5rem;
    }
}

.docs-section-title {
    margin: 0 0 8px;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.5556;
}

@media (min-width: 600px) {
    .docs-section-title {
        font-size: 1.125rem;
    }
}

/* Card variant="outlined" sx p 2: contorno grey-500 a 16%, raio 16px e a sombra "card" do MuiCard. */
.docs-panel {
    position: relative;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--grey-500-16);
    border-radius: var(--radius-card);
    background: var(--background);
    box-shadow: var(--shadow-card);
}

.docs-panel-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.docs-panel-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.docs-panel-head + * {
    margin-top: 8px;
}

/* Resposta do console: pre com fundo neutral, raio 8px e 13px. */
.docs-response-pre {
    margin: 0;
    padding: 16px;
    overflow: auto;
    border-radius: var(--radius);
    background: var(--background-neutral);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
}

/* Seletor de ambiente (DocsServerSelector): select small de largura total, rótulo na borda e
   texto de ajuda (FormHelperText com mt 8px e 14px nas laterais). */
.docs-env {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.docs-env-label {
    position: absolute;
    top: -9px;
    left: 10px;
    z-index: 1;
    max-width: calc(100% - 20px);
    padding: 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 18px;
    color: var(--text-secondary);
    background: var(--background);
    pointer-events: none;
}

.docs-env:focus-within .docs-env-label {
    color: var(--text);
}

.docs-env-helper {
    margin: 8px 14px 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Início e guias (DevelopersHomeView / DevelopersGuidesView): grade com 16px, cartões p 24px. */
.docs-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

@media (min-width: 900px) {
    .docs-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .docs-cards-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.docs-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.docs-card-tight {
    gap: 12px;
}

.docs-card > .button-small {
    align-self: flex-start;
}

.docs-servers {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 8px 0 0;
    padding-left: 16px;
    list-style: disc;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.docs-related {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.docs-related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Subitens do menu (nav-section vertical): 36px, recuo de 24px, linha de 2px e a curva do
   marcador desenhada com bordas (sem data URI). */
.subnav {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 4px 0 0;
    padding: 0 0 0 12px;
    margin-left: 24px;
    list-style: none;
}

.subnav::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 13px;
    width: 2px;
    background: #edeff2;
}

.subnav-item {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 4px 8px 4px 12px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5714;
    text-decoration: none;
}

.subnav-item::before {
    content: "";
    position: absolute;
    top: calc(50% - 7px);
    left: -12px;
    width: 12px;
    height: 12px;
    border-left: 2px solid #edeff2;
    border-bottom: 2px solid #edeff2;
    border-bottom-left-radius: 8px;
    transform: translateY(-4.8px);
}

.subnav-item:hover {
    background: var(--grey-500-08);
    color: var(--text-secondary);
    text-decoration: none;
}

.subnav-item.active,
.subnav-item[aria-current="page"] {
    background: var(--grey-500-08);
    color: var(--text);
    font-weight: 600;
}

.method-pill {
    text-transform: uppercase;
}

.status-pill {
    font-variant-numeric: tabular-nums;
}

.docs-env-field {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ---------- Devlab: início, guias e menu (parte "inicio-guias") ---------- */

/* Os cartões são coluna com gap: o parágrafo não soma margem própria. */
.docs-card > p,
.docs-card > h2 {
    margin: 0;
}

/* "Ambientes da API:" e a versão com mt 2 (16px), como no DevelopersHomeView. */
.docs-servers li {
    overflow-wrap: anywhere;
}

.docs-home-version {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 16px 0 0;
}

.docs-sandbox-block > .button {
    align-self: flex-start;
}

/* Subitens do Devlab no menu escuro: bullet #282F37 e cores do nav dark do eveo
   (layouts/dashboard/css-vars.ts: item grey-500, subitem ativo branco sobre action.hover). */
.nav .subnav {
    margin: 0 0 4px 24px;
    padding: 0 0 0 12px;
}

.nav .subnav::before,
.nav .subnav-item::before {
    border-color: #282f37;
}

.nav .subnav::before {
    background: #282f37;
}

.nav .subnav a.subnav-item {
    gap: 0;
    min-height: 36px;
    margin: 0;
    padding: 4px 8px 4px 12px;
    color: var(--nav-text);
    font-weight: 500;
}

.nav .subnav a.subnav-item:hover {
    background: var(--grey-500-08);
    color: #ffffff;
}

.nav .subnav a.subnav-item.active {
    background: var(--grey-500-08);
    color: #ffffff;
    font-weight: 600;
}

/* Na barra mini não há espaço para a árvore: o item Devlab basta (os subitens aparecem na larga e no drawer). */
.shell:not(.nav-expanded) .sidebar .subnav {
    display: none;
}

/* Abas de linguagem dentro do cabeçalho do bloco de código (mesmo tom grey-400 do rótulo). */
.code-tabs.code-block {
    margin: 8px 0;
    border-radius: 10px;
}

.code-tabs-header .code-tabs-list {
    flex: 1 1 auto;
    min-width: 0;
    gap: 2px;
    padding: 0;
    border-bottom: 0;
}

.code-tabs-header .code-tabs-tab {
    min-height: 32px;
    padding: 4px 8px;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--grey-400);
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 600;
}

.code-tabs-header .code-tabs-tab:hover {
    color: var(--grey-100);
}

.code-tabs-header .code-tabs-tab[aria-selected="true"] {
    color: #ffffff;
    border-bottom-color: currentColor;
}

.code-tabs-header .code-tabs-tab:focus-visible {
    outline: 2px solid var(--grey-400);
    outline-offset: -2px;
}

/* Sem JS: cada linguagem é um <details> com o resumo no estilo do cabeçalho. */
.code-tabs.code-block .code-tab + .code-tab {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.code-tabs.code-block .code-tab summary {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--grey-400);
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.code-tabs.code-block .code-tab[open] summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.docs-prose .code-tabs .code-block-pre,
.docs-prose .code-block .code-block-pre {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

/* Item de lista: o marcador fica na margem (como o Stack "• + texto" do eveo) e o texto corre em
   linha; com display:flex no <li>, cada código e negrito virava um item separado por 8px. */
.docs-prose li {
    display: block;
    position: relative;
    padding-left: 16px;
}

.docs-prose ul > li::before,
.docs-prose ol > li::before {
    position: absolute;
    left: 0;
    top: 0;
}

.docs-prose ol > li {
    padding-left: 24px;
}

/* Espaços do renderTextBlock do eveo com as linhas em branco que separam os blocos do Markdown
   (Stack de 2px + 8px por linha em branco): 12px entre blocos, 20px antes de um título (mt 8px),
   16px depois de ## e ### (mb 4px), 28px em volta do bloco de código (duas linhas em branco + my 8px).
   O item de lista é body2 (entrelinha 22/14); só o parágrafo usa 1.65. */
.docs-prose > * + * {
    margin-top: 12px;
}

.docs-prose > :is(h1, h2, h3):not(:first-child) {
    margin-top: 20px;
}

.docs-prose > :is(h2, h3) + * {
    margin-top: 16px;
}

.docs-prose > h1 + * {
    margin-top: 12px;
}

.docs-prose > :is(pre, .code-block):not(:first-child),
.docs-prose > :is(pre, .code-block) + * {
    margin-top: 28px;
}

.docs-prose > :is(pre, .code-block) {
    margin-bottom: 0;
}

.docs-prose li {
    line-height: 1.5714;
}

/* No fluxo da .content (coluna com gap de 24px) a trilha e a descrição somam o gap: aqui elas
   ficam com o que falta para os 24/32px do CustomBreadcrumbs e os 24px da descrição do eveo. */
.content > .docs-heading {
    margin-bottom: 0;
}

.content > .docs-heading-description {
    margin-bottom: 0;
}

@media (min-width: 900px) {
    .content > .docs-heading {
        margin-bottom: 8px;
    }
}

/* Início: o bloco de ambientes e versão e o do sandbox ficam a 32px (mt 4) do anterior. */
.docs-home-meta {
    margin-top: 8px;
}

.docs-home-meta .docs-home-label {
    margin: 0;
}

.docs-home-meta .docs-servers {
    list-style: none;
    padding-left: 16px;
    color: var(--text-secondary);
}

.docs-sandbox-block {
    margin-top: 8px;
}

/* Tabela do Markdown dos guias: rolagem própria, cabeçalho em subtitle2 sobre fundo neutro. */
.docs-prose table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.docs-prose th,
.docs-prose td {
    padding: 8px 12px;
    border-bottom: 1px dashed var(--divider);
    text-align: left;
    vertical-align: top;
}

/* Na tabela o identificador não quebra no meio: a tabela rola de lado no celular. */
.docs-prose table {
    overflow-wrap: normal;
}

.docs-prose td > code {
    white-space: nowrap;
}

.docs-prose th {
    background: var(--grey-500-08);
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}

/* Só as laterais e o fundo: o espaço de cima é o mesmo dos outros blocos (.docs-prose > * + *). */
.docs-prose blockquote {
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;
    padding: 8px 16px;
    border-left: 4px solid var(--warning);
    background: var(--warning-lighter);
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------- Devlab: referência e operação (parte "referencia") ---------- */

/* Barra lateral dentro do <details> (DevelopersDocsBody): no computador o resumo some e a barra é a
   coluna de 280px; abaixo de 900px vira um bloco recolhível no topo, com contorno de cartão. */
.docs-sidebar-toggle.docs-layout-aside {
    display: block;
}

.docs-sidebar-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--grey-500-16);
    border-radius: var(--radius);
    list-style: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5714;
    transition: background-color var(--transition);
}

.docs-sidebar-summary::-webkit-details-marker {
    display: none;
}

.docs-sidebar-summary:hover {
    background: var(--grey-500-08);
}

.docs-sidebar-summary:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

.docs-sidebar-summary-label {
    flex: 1 1 auto;
    min-width: 0;
}

.docs-sidebar-toggle[open] > .docs-sidebar-summary {
    margin-bottom: 12px;
}

.docs-sidebar-toggle[open] > .docs-sidebar-summary .docs-group-arrow {
    transform: rotate(90deg);
}

@media (min-width: 900px) {
    .docs-sidebar-summary {
        display: none;
    }
}

/* Metadados da operação como chips abaixo do título (escopo, idempotência, ambiente, operationId). */
.docs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.docs-chips code {
    font-family: ui-monospace, monospace;
    font-size: 0.75rem;
}

/* No Stack do detalhe o gap faz o espaçamento: parágrafos e títulos sem margem própria. */
.docs-stack > p,
.docs-stack > section > p,
.docs-panel > p {
    margin: 0;
}

.docs-panel > p + p {
    margin-top: 4px;
}

.docs-op-summary-text {
    margin: 0;
}

.docs-op-head .docs-op-title code {
    font: inherit;
    background: none;
    padding: 0;
}

.docs-panel-head code {
    overflow-wrap: anywhere;
}

/* Typography caption com mb 1 (Content-Type do request body) e o título "Exemplo" (h6 do eveo). */
.docs-stack .docs-content-type {
    margin: 0 0 8px;
}

.docs-subtitle {
    margin: 16px 0 0;
}

.docs-panel .code-block {
    margin: 8px 0 0;
}

.docs-stack .docs-errors-hint {
    margin: 8px 0 0;
}

.docs-stack .docs-example-note {
    margin: 0 0 8px;
}

.docs-env-nojs {
    margin: 0;
}

/* Resultados da busca sem JS: cartão inteiro clicável, como o ListItemButton da barra. */
a.docs-result {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--text);
    text-decoration: none;
    transition: background-color var(--transition);
}

a.docs-result:hover {
    background: var(--grey-500-08);
    color: var(--text);
    text-decoration: none;
}

a.docs-result:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

/* Catálogo de erros recolhido no fim do detalhe (não existe no eveo; ver devlab-eveo-estilos.md). */
.docs-errors > summary {
    cursor: pointer;
}

.docs-errors[open] > summary {
    margin-bottom: 12px;
}

/* O link global é 600: no cartão de resultado só o caminho fica em destaque. */
a.docs-result .docs-result-summary {
    font-weight: 400;
}

/* ---------- Devlab: console, sandbox e novidades (parte "console-sandbox-novidades") ---------- */

/* TextField outlined small do eveo (ApiConsoleCredentials / ApiConsoleRequestForm): rótulo na borda
   (o mesmo .docs-env do seletor de ambiente), 8.5px 14px de respiro, 15px, e o helperText abaixo. */
.docs-field input,
.docs-field textarea {
    min-height: 40px;
    padding: 8.5px 14px;
    font-size: 0.9375rem;
    line-height: 1.4375;
}

/* MuiInputBase do eveo (textfield.tsx): 16px abaixo de 600px, para o Safari do iPhone não ampliar
   a página ao focar o campo. O Body (JSON) fica nos 13px do slotProps, como no eveo. */
@media (max-width: 599px) {
    .docs-search-input,
    .docs-env select,
    .docs-field input,
    .docs-field textarea:not(.docs-field-mono) {
        font-size: 1rem;
    }
}

/* Body (JSON): textarea mono de 13px com line-height 1.6, como o slotProps do eveo. */
.docs-field textarea.docs-field-mono {
    padding: 16.5px 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    line-height: 1.6;
    resize: vertical;
    white-space: pre;
    overflow: auto;
}

/* No campo fixo de ambiente não há escolha: o select não abre a lista nem muda o cursor. */
.docs-console select {
    pointer-events: none;
}

.docs-field-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.docs-field-group .docs-env-helper code,
.docs-console-note code {
    overflow-wrap: anywhere;
}

/* Stack spacing 2 dentro do Card outlined p 2. */
.docs-console-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.docs-console-fields > .t-subtitle2,
.docs-console-fields > p,
.docs-console-curl > .t-subtitle2 {
    margin: 0;
}

.docs-console-result {
    gap: 8px;
}

.docs-console-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* Cabeçalho: Typography h6 component="code" com quebra em qualquer ponto do caminho. */
.docs-console-path {
    margin: 0;
    min-width: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.5556;
    word-break: break-all;
}

@media (min-width: 600px) {
    .docs-console-path {
        font-size: 1.125rem;
    }
}

.docs-console-path code {
    font: inherit;
    background: none;
    padding: 0;
}

.docs-console-summary {
    margin: 0;
}

.docs-console-url,
.docs-console-url code,
.docs-console .alert .mono {
    overflow-wrap: anywhere;
    word-break: break-all;
}

.docs-console-curl {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.docs-console .divider {
    margin: 0;
}

/* Seções das telas do sandbox: título h6 fora dos cartões e descrição body2 (Stack spacing 2). */
.docs-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.docs-section-header .docs-section-title {
    margin: 0;
}

.docs-section-header p {
    margin: 4px 0 0;
}

.docs-section-header p + p {
    margin-top: 8px;
}

.docs-card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.docs-card-header p,
.docs-card > p,
.docs-card-action {
    margin: 0;
}

/* Linha de pills (permissões e IPs da aplicação), com quebra. */
.docs-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* Linha abaixo do título da aplicação: situação, servidor e a ação de desativar à direita. */
.docs-app-head-text {
    flex: 1 1 240px;
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.docs-app-head-action {
    margin: 0;
}

/* Novidades: o corpo é o mesmo .docs-prose do guia, direto na página. */
.docs-changelog {
    max-width: 880px;
}

/* Celular (390px): nada passa da largura; código e tabelas rolam dentro do próprio bloco. */
@media (max-width: 599px) {
    .docs-layout-main,
    .docs-console,
    .docs-section,
    .docs-console-form {
        max-width: 100%;
    }

    .docs-console .code-block,
    .docs-section .code-block,
    .docs-changelog pre,
    .docs-changelog table {
        max-width: 100%;
    }

    .docs-changelog :not(pre) > code {
        overflow-wrap: anywhere;
    }

    .docs-app-head-action {
        width: 100%;
    }
}

.docs-response-pre code {
    font: inherit;
    padding: 0;
    background: none;
    color: inherit;
    white-space: pre;
}

/* ---------- Ações das transações (checar pagamento, checar status do saque, reenviar webhook) ---------- */

/* Coluna do "⋮" nas listas de transações e no extrato. */
.table-fixed .col-actions {
    width: 52px;
    text-align: right;
}

/* Menu de ações da linha (popover do TransactionTableRow do eveo/Minimals), sem JS: <details>. */
.row-menu {
    position: relative;
    display: inline-block;
}

.row-menu > summary {
    list-style: none;
    cursor: pointer;
}

.row-menu > summary::-webkit-details-marker {
    display: none;
}

.row-menu[open] > summary {
    background: var(--grey-500-08);
}

.row-menu-panel {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 220px;
    padding: 4px;
    border-radius: 10px;
    background: var(--background);
    box-shadow: var(--shadow-dropdown);
    text-align: left;
}

.row-menu-panel form {
    margin: 0;
}

.row-menu-panel a,
.row-menu-panel button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 36px;
    padding: 6px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.875rem;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.row-menu-panel a:hover,
.row-menu-panel button:hover,
.row-menu-panel a:focus-visible,
.row-menu-panel button:focus-visible {
    background: var(--grey-500-08);
    text-decoration: none;
}

.row-menu-panel svg {
    flex: none;
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

/* Com um menu aberto, a rolagem horizontal da tabela não recorta o popover. */
.table-scroll:has(.row-menu[open]) {
    overflow: visible;
}

/* Seção "Webhook" do detalhe (como no eveo): um bloco por aviso ao lojista. */
.webhook-events {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.webhook-event {
    padding: 16px;
    border: 1px dashed var(--divider);
    border-radius: var(--radius);
}

.webhook-event-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.webhook-event-header form {
    flex: none;
    margin: 0;
}

.webhook-event-header .button svg {
    width: 18px;
    height: 18px;
}

.webhook-event-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.webhook-event-fields .labeled-detail-value .badge {
    margin-left: 0;
}

.webhook-attempts {
    margin-top: 12px;
}

.webhook-attempts > summary,
.webhook-payloads > summary {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
}

.webhook-attempt-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
}

.webhook-attempt-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.webhook-events-note {
    margin: 0;
}

.webhook-payloads {
    margin-top: 16px;
}

@media (max-width: 599px) {
    .webhook-event-header {
        flex-direction: column;
    }
}
