/* =====================================================================
   Conjunto — Design System (sobre Bootstrap 5)
   ===================================================================== */
:root {
  --c-primary: #4f5bd5;
  --c-primary-600: #4350c4;
  --c-primary-50: #eef0fd;
  --c-primary-100: #dfe2fb;
  --c-positive: #059669;
  --c-positive-50: #e7f7f1;
  --c-negative: #dc2626;
  --c-negative-50: #fdecec;
  --c-warning: #d97706;
  --c-warning-50: #fef5e6;
  --c-neutral: #64748b;

  --c-bg: #f5f6fa;
  --c-surface: #ffffff;
  --c-surface-2: #f8f9fc;
  --c-border: #e7e9f0;
  --c-text: #1d2233;
  --c-muted: #6b7289;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 45, .05);
  --shadow: 0 1px 2px rgba(20, 24, 45, .04), 0 6px 24px -8px rgba(20, 24, 45, .10);
  --shadow-lg: 0 20px 50px -12px rgba(20, 24, 45, .25);
  --sidebar-w: 260px;
  --sidebar-w-collapsed: 78px;
  --topbar-h: 68px;

  --bs-primary: var(--c-primary);
  --bs-primary-rgb: 79, 91, 213;
  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-color: var(--c-text);
  --bs-body-bg: var(--c-bg);
  --bs-border-color: var(--c-border);
  --bs-link-color: var(--c-primary);
  --bs-link-color-rgb: 79, 91, 213;
  --bs-link-hover-color: var(--c-primary-600);
}

body { background: var(--c-bg); color: var(--c-text); font-size: .9375rem; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -.015em; color: var(--c-text); }
a { text-decoration: none; }
.text-muted, .text-secondary { color: var(--c-muted) !important; }
.small-caps { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--c-muted); }
.fw-semibold { font-weight: 600 !important; }
.tabular { font-variant-numeric: tabular-nums; }

/* Cores semânticas */
.text-positive { color: var(--c-positive) !important; }
.text-negative { color: var(--c-negative) !important; }
.text-neutral  { color: var(--c-neutral) !important; }
.bg-positive-soft { background: var(--c-positive-50) !important; color: var(--c-positive) !important; }
.bg-negative-soft { background: var(--c-negative-50) !important; color: var(--c-negative) !important; }
.bg-warning-soft  { background: var(--c-warning-50) !important; color: var(--c-warning) !important; }
.bg-primary-soft  { background: var(--c-primary-50) !important; color: var(--c-primary) !important; }
.bg-neutral-soft  { background: #eef1f5 !important; color: var(--c-neutral) !important; }

/* Botões */
.btn { border-radius: 12px; font-weight: 600; padding: .55rem 1rem; transition: all .15s ease; }
.btn-sm { border-radius: 9px; padding: .35rem .7rem; font-size: .82rem; }
.btn-lg { border-radius: 14px; padding: .8rem 1.3rem; }
.btn-primary { --bs-btn-bg: var(--c-primary); --bs-btn-border-color: var(--c-primary); --bs-btn-hover-bg: var(--c-primary-600); --bs-btn-hover-border-color: var(--c-primary-600); --bs-btn-active-bg: var(--c-primary-600); --bs-btn-disabled-bg: var(--c-primary); box-shadow: 0 6px 16px -6px rgba(79, 91, 213, .6); }
.btn-soft { background: var(--c-primary-50); color: var(--c-primary); border: 0; }
.btn-soft:hover { background: var(--c-primary-100); color: var(--c-primary-600); }
.btn-light { background: var(--c-surface); border: 1px solid var(--c-border); color: var(--c-text); }
.btn-light:hover { background: var(--c-surface-2); border-color: #d9dce6; }
.btn-icon { width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; }
.btn-icon.btn-sm { width: 32px; height: 32px; border-radius: 9px; }

/* Cards */
.card { border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--c-surface); }
.card-header { background: transparent; border-bottom: 1px solid var(--c-border); padding: 1.1rem 1.35rem; font-weight: 700; }
.card-body { padding: 1.35rem; }
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 0; }
.card-hover { transition: transform .15s ease, box-shadow .15s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.stat-card { position: relative; overflow: hidden; }
.stat-card .stat-icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.stat-card .stat-label { font-size: .8rem; font-weight: 600; color: var(--c-muted); }
.stat-card .stat-value { font-size: clamp(1.1rem, 1.35vw, 1.5rem); white-space: nowrap; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: .15rem; line-height: 1.2; }
.stat-card .stat-hint { font-size: .78rem; color: var(--c-muted); }

/* Formulários */
.form-control, .form-select { border-radius: 12px; border-color: var(--c-border); padding: .6rem .85rem; background-color: var(--c-surface); }
.form-control:focus, .form-select:focus { border-color: var(--c-primary); box-shadow: 0 0 0 4px var(--c-primary-50); }
.form-label { font-weight: 600; font-size: .85rem; margin-bottom: .35rem; }
.form-check-input:checked { background-color: var(--c-primary); border-color: var(--c-primary); }
.input-group-text { border-radius: 12px; background: var(--c-surface-2); border-color: var(--c-border); }
.form-text { color: var(--c-muted); }

/* Badges */
.badge { font-weight: 600; border-radius: 999px; padding: .38em .7em; }
.badge-soon { background: var(--c-warning-50); color: var(--c-warning); font-size: .65rem; }

/* Avatares */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-weight: 700; flex-shrink: 0; overflow: hidden; background: var(--c-neutral); object-fit: cover; user-select: none; }
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar { border: 2px solid var(--c-surface); margin-left: -8px; }
.avatar-stack .avatar:first-child { margin-left: 0; }

/* =============================== Layout =============================== */
.app { min-height: 100vh; }
.sidebar { width: var(--sidebar-w); background: var(--c-surface) !important; border-right: 1px solid var(--c-border); }
.sidebar .offcanvas-body { background: var(--c-surface) !important; }
.sidebar .nav-text { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sidebar .nav-badge { font-size: .6rem; padding: .3em .55em; flex-shrink: 0; }
@media (min-width: 992px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1030; display: flex; flex-direction: column; transition: width .2s ease; }
  .main { margin-left: var(--sidebar-w); transition: margin .2s ease; }
  body.sidebar-collapsed .sidebar { width: var(--sidebar-w-collapsed); }
  body.sidebar-collapsed .main { margin-left: var(--sidebar-w-collapsed); }
  body.sidebar-collapsed .sidebar .nav-text,
  body.sidebar-collapsed .sidebar .nav-section,
  body.sidebar-collapsed .sidebar .brand-text,
  body.sidebar-collapsed .sidebar .submenu,
  body.sidebar-collapsed .sidebar .nav-badge,
  body.sidebar-collapsed .sidebar .chev { display: none !important; }
  body.sidebar-collapsed .sidebar .nav-link { justify-content: center; padding-left: 0; padding-right: 0; }
  body.sidebar-collapsed .sidebar .brand { justify-content: center; }
  body.sidebar-collapsed .sidebar .collapse-btn i { transform: rotate(180deg); }
}
.sidebar .offcanvas-body { display: flex; flex-direction: column; padding: 0; height: 100%; overflow-y: auto; }
.sidebar .brand { height: var(--topbar-h); display: flex; align-items: center; gap: .7rem; padding: 0 1.3rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--c-text); flex-shrink: 0; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, var(--c-primary), #8b5cf6); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; box-shadow: 0 6px 16px -6px rgba(79, 91, 213, .7); flex-shrink: 0; }
.sidebar .nav { padding: .5rem .85rem 1rem; gap: 2px; }
.sidebar .nav-section { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9aa0b4; padding: 1rem .75rem .4rem; }
.sidebar .nav-link { display: flex; align-items: center; gap: .8rem; color: #4a5068; font-weight: 500; padding: .62rem .8rem; border-radius: 11px; transition: background .12s, color .12s; white-space: nowrap; }
.sidebar .nav-link i { font-size: 1.1rem; width: 1.25rem; text-align: center; flex-shrink: 0; }
.sidebar .nav-link:hover { background: var(--c-surface-2); color: var(--c-text); }
.sidebar .nav-link.active { background: var(--c-primary-50); color: var(--c-primary); font-weight: 600; }
.sidebar .nav-link.disabled-module { opacity: .55; }
.sidebar .submenu { margin: 2px 0 4px 1.55rem; padding-left: .7rem; border-left: 2px solid var(--c-border); }
.sidebar .submenu .nav-link { padding: .45rem .7rem; font-size: .88rem; }
.sidebar .chev { margin-left: auto; font-size: .75rem !important; transition: transform .2s; }
.sidebar [aria-expanded="true"] .chev { transform: rotate(90deg); }
.sidebar .sidebar-footer { margin-top: auto; border-top: 1px solid var(--c-border); padding: .75rem .85rem; }
.collapse-btn i { transition: transform .2s; }

.topbar { position: sticky; top: 0; z-index: 1020; height: var(--topbar-h); background: rgba(245, 246, 250, .85); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--c-border); display: flex; align-items: center; gap: .75rem; padding: 0 1.5rem; }
.group-switcher { display: flex; align-items: center; gap: .6rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; padding: .35rem .75rem .35rem .4rem; font-weight: 600; color: var(--c-text); max-width: 320px; }
.group-switcher:hover { border-color: #d0d4e2; }
.group-thumb { width: 30px; height: 30px; border-radius: 9px; background: var(--c-primary-50); color: var(--c-primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; object-fit: cover; flex-shrink: 0; }
.notif-dot { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--c-negative); color: #fff; font-size: .65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--c-bg); }
.dropdown-menu { border: 1px solid var(--c-border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: .4rem; }
.dropdown-item { border-radius: 9px; padding: .5rem .75rem; font-weight: 500; }
.dropdown-item:active { background: var(--c-primary); }
.notif-menu { width: 360px; max-width: calc(100vw - 24px); }
.notif-item { display: flex; gap: .7rem; padding: .65rem .7rem; border-radius: 10px; white-space: normal; color: var(--c-text); font-size: .85rem; }
.notif-item:hover { background: var(--c-surface-2); }
.notif-item.unread { background: var(--c-primary-50); }
.notif-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--c-surface-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--c-primary); }

.content { padding: 1.75rem 1.5rem 6rem; max-width: 1400px; margin: 0 auto; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-header h1 { font-size: 1.6rem; margin: 0; }
.page-header .subtitle { color: var(--c-muted); margin: .25rem 0 0; }

/* Botão flutuante (mobile) */
.fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 60px; height: 60px; border-radius: 20px; background: var(--c-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; box-shadow: 0 12px 28px -8px rgba(79, 91, 213, .8); z-index: 1040; }
.fab:hover { color: #fff; background: var(--c-primary-600); }

/* Toasts */
.toast-container { z-index: 1090; }
.toast { border: 0; border-radius: 14px; box-shadow: var(--shadow-lg); }

/* Tabelas */
.table { --bs-table-bg: transparent; margin: 0; }
.table > :not(caption) > * > * { padding: .85rem 1rem; border-bottom-color: var(--c-border); }
.table thead th { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); background: var(--c-surface-2); border-bottom: 1px solid var(--c-border); white-space: nowrap; }
.table-hover tbody tr:hover { --bs-table-bg-state: var(--c-surface-2); }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select, div.dt-container .dt-search input, div.dt-container .dt-length select { border-radius: 10px; border: 1px solid var(--c-border); padding: .35rem .6rem; }
div.dt-container .dt-paging .dt-paging-button.current, div.dt-container .dt-paging .dt-paging-button.current:hover { background: var(--c-primary) !important; color: #fff !important; border-color: var(--c-primary) !important; border-radius: 9px; }
div.dt-container .dt-paging .dt-paging-button { border-radius: 9px; }

/* Ícone de categoria */
.cat-icon { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.cat-icon.sm { width: 32px; height: 32px; border-radius: 9px; font-size: .95rem; }

/* ============================ Timeline ============================ */
.timeline { position: relative; padding-left: 0; list-style: none; margin: 0; }
.timeline::before { content: ''; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px; background: var(--c-border); }
.timeline-item { position: relative; display: flex; gap: 1rem; padding-bottom: 1.25rem; }
.timeline-item .avatar { position: relative; z-index: 1; box-shadow: 0 0 0 4px var(--c-bg); }
.timeline-card { flex: 1; min-width: 0; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1rem 1.15rem; box-shadow: var(--shadow-sm); transition: box-shadow .15s; }
.timeline-card:hover { box-shadow: var(--shadow); }
.timeline-card .t-head { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; flex-wrap: wrap; }
.timeline-card .t-action { font-size: .9rem; }
.timeline-card .t-when { font-size: .78rem; color: var(--c-muted); white-space: nowrap; }
.timeline-card .t-body { display: flex; align-items: center; gap: .85rem; margin-top: .75rem; padding: .8rem; background: var(--c-surface-2); border-radius: 12px; }
.timeline-card .t-amount { font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; white-space: nowrap; margin-left: auto; }
.timeline-card .t-meta { font-size: .8rem; color: var(--c-muted); margin-top: .6rem; display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.timeline-card.is-deleted .t-body { opacity: .6; text-decoration: line-through; }
.timeline-day { font-size: .75rem; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .08em; margin: .5rem 0 1rem 64px; }

/* ====================== Formulário de despesa ====================== */
.amount-input { font-size: 2.4rem; font-weight: 800; text-align: center; border: 0; background: transparent; letter-spacing: -.02em; width: 100%; color: var(--c-text); font-variant-numeric: tabular-nums; }
.amount-input:focus { outline: none; box-shadow: none; }
.amount-wrap { background: linear-gradient(135deg, var(--c-primary-50), #f4f0ff); border-radius: var(--radius); padding: 1.1rem 1rem .9rem; text-align: center; }
.amount-wrap .currency { font-weight: 700; color: var(--c-primary); font-size: 1rem; }
.chip-group { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--c-border); background: var(--c-surface); font-weight: 500; font-size: .85rem; cursor: pointer; transition: all .12s; user-select: none; }
.chip:hover { border-color: #cfd3e1; }
.btn-check:checked + .chip { border-color: var(--chip-color, var(--c-primary)); background: color-mix(in srgb, var(--chip-color, var(--c-primary)) 10%, white); color: var(--chip-color, var(--c-primary)); font-weight: 600; }
.btn-check:focus-visible + .chip { box-shadow: 0 0 0 3px var(--c-primary-100); }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--c-surface-2); border: 1px solid var(--c-border); border-radius: 12px; padding: 4px; gap: 4px; }
.segmented .btn { border: 0; background: transparent; color: var(--c-muted); font-weight: 600; font-size: .85rem; padding: .45rem .5rem; border-radius: 9px; box-shadow: none; }
.segmented .btn-check:checked + .btn { background: var(--c-surface); color: var(--c-primary); box-shadow: var(--shadow-sm); }
.participant-row { display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; border-radius: 12px; border: 1px solid var(--c-border); background: var(--c-surface); transition: all .12s; }
.participant-row + .participant-row { margin-top: .5rem; }
.participant-row.off { background: var(--c-surface-2); opacity: .6; }
.participant-row .share-input { width: 120px; text-align: right; }
.participant-row .share-value { min-width: 96px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.split-status { border-radius: 12px; padding: .65rem .9rem; font-weight: 600; font-size: .85rem; display: flex; align-items: center; gap: .5rem; }
.receipt-drop { border: 2px dashed var(--c-border); border-radius: var(--radius); padding: 1.1rem; text-align: center; cursor: pointer; transition: all .15s; color: var(--c-muted); }
.receipt-drop:hover, .receipt-drop.drag { border-color: var(--c-primary); background: var(--c-primary-50); color: var(--c-primary); }
.receipt-thumb { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; border: 1px solid var(--c-border); }
.sticky-submit { position: sticky; bottom: 0; background: linear-gradient(to top, var(--c-bg) 70%, transparent); padding: 1rem 0 calc(.5rem + env(safe-area-inset-bottom)); z-index: 5; }

/* ======================== Acerto de contas ======================== */
.transfer { display: flex; align-items: center; gap: .9rem; padding: .95rem 1.1rem; border: 1px solid var(--c-border); border-radius: 14px; background: var(--c-surface); }
.transfer + .transfer { margin-top: .6rem; }
.transfer .arrow { color: var(--c-muted); font-size: 1.2rem; }
.transfer .amount { margin-left: auto; font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.transfer.mine-pay { border-color: #f5c2c2; background: #fffafa; }
.transfer.mine-receive { border-color: #b7e6d3; background: #f8fdfb; }
.balance-bar { height: 8px; border-radius: 99px; background: var(--c-surface-2); overflow: hidden; position: relative; }
.balance-bar > span { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.balance-bar::after { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: #cbd0dd; }

/* ============================ Grupos ============================ */
.group-card .cover { height: 110px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(135deg, var(--c-primary), #8b5cf6 60%, #ec4899); background-size: cover; background-position: center; position: relative; }
.group-card .cover .status { position: absolute; top: 12px; right: 12px; }
.module-pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600; padding: .3rem .6rem; border-radius: 99px; }
.module-pill.on { background: var(--c-positive-50); color: var(--c-positive); }
.module-pill.off { background: var(--c-surface-2); color: #9aa0b4; }
.hero { background: linear-gradient(135deg, #4f5bd5 0%, #7c5ce0 55%, #a855f7 100%); color: #fff; border-radius: 22px; padding: 1.75rem; position: relative; overflow: hidden; box-shadow: 0 20px 40px -18px rgba(79, 91, 213, .7); }
.hero::after { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .08); right: -80px; top: -140px; }
.hero h1, .hero h2 { color: #fff; }
.hero .muted { color: rgba(255, 255, 255, .78); }
.shortcut { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1.1rem .5rem; border-radius: var(--radius); background: var(--c-surface); border: 1px solid var(--c-border); color: var(--c-text); font-weight: 600; font-size: .85rem; text-align: center; transition: all .15s; box-shadow: var(--shadow-sm); height: 100%; }
.shortcut i { font-size: 1.35rem; width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.shortcut:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--c-text); }

/* ============================ Auth ============================ */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 992px) { .auth-wrap { grid-template-columns: 1.05fr 1fr; } }
.auth-aside { background: linear-gradient(145deg, #4f5bd5 0%, #7c5ce0 55%, #a855f7 100%); color: #fff; padding: 3rem; display: none; position: relative; overflow: hidden; }
@media (min-width: 992px) { .auth-aside { display: flex; flex-direction: column; justify-content: space-between; } }
.auth-aside::before { content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%; background: rgba(255, 255, 255, .07); right: -160px; bottom: -160px; }
.auth-aside h2 { color: #fff; font-size: 2.2rem; line-height: 1.15; }
.auth-feature { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1rem; }
.auth-feature i { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.auth-card { width: 100%; max-width: 420px; }
.preview-card { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); border-radius: 16px; padding: 1rem 1.1rem; backdrop-filter: blur(6px); }

/* Estados vazios e skeleton */
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--c-muted); }
.empty-state .icon { width: 64px; height: 64px; border-radius: 20px; background: var(--c-primary-50); color: var(--c-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.7rem; margin-bottom: 1rem; }
.skeleton { background: linear-gradient(90deg, #eceef4 25%, #f6f7fa 37%, #eceef4 63%); background-size: 400% 100%; animation: skeleton 1.4s ease infinite; border-radius: 8px; color: transparent !important; }
@keyframes skeleton { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.loading-overlay { position: relative; }
.loading-overlay.is-loading::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .55); border-radius: inherit; }
.chart-box { position: relative; height: 290px; }
.chart-box.sm { height: 240px; }

.list-row { display: flex; align-items: center; gap: .85rem; padding: .8rem 0; border-bottom: 1px solid var(--c-border); }
.list-row:last-child { border-bottom: 0; }
.progress { border-radius: 99px; background: var(--c-surface-2); }

.filters-bar { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: .9rem; box-shadow: var(--shadow-sm); }
.filters-bar .form-select, .filters-bar .form-control { padding-top: .45rem; padding-bottom: .45rem; font-size: .88rem; }

/* ============================ Responsivo ============================ */
@media (max-width: 991.98px) {
  .topbar { padding: 0 1rem; }
  .content { padding: 1.25rem 1rem 7rem; }
  .page-header h1 { font-size: 1.35rem; }
  .group-switcher { max-width: 190px; }
  .stat-card .stat-value { font-size: 1.25rem; }
}
@media (max-width: 575.98px) {
  .card-body { padding: 1.1rem; }
  .timeline::before { left: 19px; }
  .timeline-item { gap: .7rem; }
  .timeline-day { margin-left: 52px; }
  .participant-row .share-input { width: 92px; }
  .participant-row .share-value { min-width: 80px; }
  .amount-input { font-size: 2.1rem; }
  .hero { padding: 1.35rem; border-radius: 18px; }
  .transfer { flex-wrap: wrap; }
}
@media print {
  .sidebar, .topbar, .fab, .no-print { display: none !important; }
  .main { margin: 0 !important; }
  .card { box-shadow: none; }
}

/* utilitários e ajustes finos */
.min-w-0 { min-width: 0; }
.participant-row .share-input { flex-wrap: nowrap; flex-shrink: 0; }
.participant-row .share-value { white-space: nowrap; }
@media (max-width: 575.98px) {
  .participant-row { gap: .5rem; padding: .55rem .6rem; }
  .participant-row .share-input { width: 78px; }
  .participant-row .share-input .input-group-text { display: none; }
  .participant-row .share-value { min-width: 0; font-size: .88rem; }
  .participant-row .avatar { width: 30px !important; height: 30px !important; font-size: 12px !important; }
}
@media (max-width: 575.98px) { .stat-card .stat-value { white-space: normal; font-size: 1.1rem; } }
