/* kyc-user: estilos próprios (o CSS compilado do Filament não tem utilitários arbitrários). Cores de destaque: rgb(var(--primary-500)). */

/* ===== Configuração › Financeiro › KYC ===== */
.kyc-u-main { position: relative; }
.kyc-u-main .fi-section-header-heading { font-size: 16px; font-weight: 600; }
.kyc-u-main .fi-section-header-description { font-size: 12px; }
.kyc-u-main > .fi-section-content-ctn > .fi-section-content { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
/* Interruptor "Ativo" no canto do cabeçalho */
.kyc-u-active { position: absolute; top: 20px; right: 64px; z-index: 2; }
.kyc-u-active .fi-fo-field-wrp-hint { margin-left: 8px; }
@media (max-width: 767px) { .kyc-u-active { position: static; } }

/* Grupos (acordeões) */
.kyc-u-group { background: #15181F; border-radius: 8px; box-shadow: none; --tw-ring-color: rgba(255, 255, 255, .08); }
.kyc-u-group .fi-section-header { padding: 16px; }
.kyc-u-group .fi-section-header-heading { display: flex; flex: 1; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; color: #F3F5F8; }
.kyc-u-group-sum { font-size: 12px; font-weight: 400; color: #999FA6; text-align: right; }
.kyc-u-group > .fi-section-content-ctn { border-top: 1px solid rgba(255, 255, 255, .08); }
.kyc-u-group > .fi-section-content-ctn > .fi-section-content { padding: 0; }

/* Linhas */
.kyc-u-row { border-bottom: 1px solid rgba(255, 255, 255, .08); padding: 8px 16px; min-height: 56px; display: flex; align-items: center; }

.kyc-u-row > .fi-fo-component-ctn { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; width: 100%; }
.kyc-u-row > .fi-fo-component-ctn > div { width: auto; min-width: 0; grid-column: auto; }
.kyc-u-row .fi-fo-field-wrp-label span { font-size: 14px; font-weight: 400; color: #F3F5F8; }
.kyc-u-mute { color: #999FA6; margin-left: 4px; }
.kyc-u-word { font-size: 14px; color: #999FA6; }
.kyc-u-money { width: 148px; }
.kyc-u-days { width: 84px; }
.kyc-u-row .fi-input-wrp { background: #111419; }
.kyc-u-group > .fi-section-content-ctn > .fi-section-content > .fi-fo-component-ctn { gap: 0; }
.kyc-u-main .kyc-u-active { margin-bottom: -12px; }
.kyc-u-group .fi-section-header { cursor: pointer; }
.kyc-u-main > .fi-section-content-ctn > .fi-section-content > .fi-fo-component-ctn { gap: 12px; }
.kyc-u-main .kyc-u-active { margin-bottom: 0; }
.kyc-u-row { border-bottom-color: rgba(255, 255, 255, .1); }
.kyc-u-terms { padding: 16px; }
.kyc-u-group > .fi-section-content-ctn > .fi-section-content > .fi-fo-component-ctn > div:last-child .kyc-u-row { border-bottom: 0; }

/* ===== Usuário › aba KYC ===== */
.kyc-u-card { --kyc-u-text: #F3F5F8; --kyc-u-muted: #999FA6; --kyc-u-border: rgba(255, 255, 255, .08); background: #15181F; border-radius: 8px; padding: 24px; color: var(--kyc-u-text); font-family: Inter, system-ui, sans-serif; min-width: 0; }
.kyc-u-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.kyc-u-card-title { font-size: 16px; font-weight: 600; line-height: 1.4; }
.kyc-u-status svg { width: 16px; height: 16px; flex-shrink: 0; }
.kyc-u-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.kyc-u-badge svg { width: 12px; height: 12px; }
.kyc-u-badge--pending { background: rgba(255, 127, 59, .15); color: #FF7F3B; }
.kyc-u-badge--review { background: rgba(255, 255, 255, .06); color: #999FA6; }
.kyc-u-badge--approved { background: rgba(63, 193, 104, .15); color: #3FC168; }
.kyc-u-badge--rejected { background: rgba(239, 83, 80, .15); color: #EF5350; }
.kyc-u-facts { display: flex; flex-direction: column; gap: 12px; margin: 0 0 16px; font-size: 14px; }
.kyc-u-facts > div { display: flex; justify-content: space-between; gap: 16px; }
.kyc-u-facts dt { color: var(--kyc-u-muted); }
.kyc-u-facts dd { font-weight: 600; text-align: right; margin: 0; }
.kyc-u-reason { background: #111419; border: 1px solid var(--kyc-u-border); border-radius: 8px; padding: 12px; margin-bottom: 16px; }
.kyc-u-reason-label { display: block; font-size: 12px; font-weight: 600; color: var(--kyc-u-muted); margin-bottom: 4px; }
.kyc-u-reason p { margin: 0; font-size: 14px; line-height: 1.45; }
.kyc-u-muted { font-size: 12px; color: var(--kyc-u-muted); }
.kyc-u-wide { width: 100%; }

/* Cartão "Regra para este jogador" (Section nativa) */
.kyc-u-rule.fi-section { background: #15181F; box-shadow: none; --tw-ring-color: transparent; border-radius: 8px; }
.kyc-u-rule .fi-section-header { padding: 24px 24px 0; }
.kyc-u-rule .fi-section-header-heading { font-size: 16px; font-weight: 600; }
.kyc-u-rule .fi-section-header-description { font-size: 12px; }
.kyc-u-rule .fi-section-content-ctn { border-top: 0; }
.kyc-u-rule .fi-section-content { padding: 16px 24px 24px; }
.kyc-u-modes { display: block; margin: 0 !important; border: 1px solid var(--kyc-u-border, rgba(255, 255, 255, .08)); border-radius: 8px; overflow: hidden; background: #111419; columns: auto !important; }
.kyc-u-modes > div { padding: 16px !important; border-top: 1px solid rgba(255, 255, 255, .08); }
.kyc-u-modes > div:first-child { border-top: 0; }
.kyc-u-modes label > div > span { font-weight: 600 !important; }
.kyc-u-modes p { font-size: 12px; }
.kyc-u-changes { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.kyc-u-change { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 12px; padding-left: 14px; position: relative; }
.kyc-u-change::before { content: ""; position: absolute; left: 2px; top: 7px; width: 3px; height: 3px; border-radius: 50%; background: #999FA6; }
.kyc-u-change strong { color: #F3F5F8; font-weight: 600; }
.kyc-u-change span { color: #999FA6; }

/* Histórico */
.kyc-u-history { padding: 0; overflow: hidden; }
.kyc-u-history-title { padding: 20px 24px 16px; border-bottom: 1px solid var(--kyc-u-border); }
.kyc-u-history-scroll { overflow-x: auto; }
.kyc-u-history-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.kyc-u-history-table td { padding: 14px 16px; height: 48px; vertical-align: middle; }
.kyc-u-history-table td:first-child { padding-left: 24px; }
.kyc-u-history-table tr:nth-child(odd) { background: #111419; }
.kyc-u-h-when, .kyc-u-h-who { color: var(--kyc-u-muted); white-space: nowrap; }
.kyc-u-h-event { font-weight: 600; white-space: nowrap; }
.kyc-u-h-event a { color: inherit; text-decoration: none; }
.kyc-u-h-event a:hover { color: rgb(var(--primary-500)); }
.kyc-u-empty { padding: 16px 24px 24px; font-size: 14px; color: var(--kyc-u-muted); }
.kyc-u-rule.fi-section { background: #15181F !important; }
.kyc-u-facts dt { white-space: nowrap; }

/* ===== Gaveta "Editar regras" (mesmos grupos, versão sem acordeão) ===== */
.kyc-u-group--drawer.fi-section { background: transparent !important; box-shadow: none; --tw-ring-color: transparent; border-radius: 0; }
.kyc-u-group--drawer .fi-section-header { padding: 0 0 8px; }
.kyc-u-group--drawer .fi-section-header-heading { font-size: 12px; font-weight: 600; }
.kyc-u-group--drawer > .fi-section-content-ctn { background: #15181F; border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px; overflow: hidden; }
.kyc-u-group--drawer .kyc-u-money { width: 128px; }
.kyc-u-group--drawer .kyc-u-days { width: 72px; }
.kyc-u-group--drawer .kyc-u-terms { padding: 0; }
.kyc-u-row > .fi-fo-component-ctn > div:has(.kyc-u-tag) { margin-left: auto; }
.kyc-u-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #999FA6; white-space: nowrap; }
.kyc-u-tag--changed { background: rgba(255, 127, 59, .15); color: #FF7F3B; }
.kyc-u-tag-ic { width: 12px; height: 12px; }
.fi-modal-footer-actions:has(.kyc-u-restore) { justify-content: flex-end; }
.fi-modal-footer-actions:has(.kyc-u-restore) > .kyc-u-restore { order: -2; margin-right: auto; }
.fi-modal-footer-actions:has(.kyc-u-restore) > :last-child:not(.kyc-u-restore) { order: -1; }
.kyc-u-group--drawer .kyc-u-row > .fi-fo-component-ctn { gap: 8px; }
.kyc-u-group--drawer .kyc-u-money { width: 116px; }
.kyc-u-group--drawer .kyc-u-days { width: 64px; }
.kyc-u-tag { flex-shrink: 0; }
.kyc-u-group--drawer:has(.kyc-u-terms) > .fi-section-content-ctn { background: none; border: 0; border-radius: 0; overflow: visible; }
.kyc-u-terms .fi-fo-field-wrp-label span { font-size: 12px; font-weight: 600; }
@media (max-width: 639px) {
  .kyc-u-group .fi-section-header-heading { flex-direction: column; align-items: flex-start; gap: 2px; }
  .kyc-u-group-sum { text-align: left; }
  .kyc-u-facts > div { flex-wrap: wrap; }
  .kyc-u-row > .fi-fo-component-ctn > div:has(.kyc-u-tag) { margin-left: 0; }
}
