/* Tipografia de Fintech e Configurações Globais do Módulo */
        body {
            background: radial-gradient(circle at top right, #fbfcfd 0%, var(--fundo-hover) 100%);
            color: #1e293b;
            min-height: 100vh;
            min-height: 100dvh;
        }

        .app-wrapper {
            max-width: 1240px;
            margin: 0 auto;
            padding: 30px 20px 80px 20px;
        }

        
        
        /* 1. SELETOR DE LOJA GLASSMORPHIC PREMIUM */
        .loja-selector-bar {
            background: rgba(255, 255, 255, 0.85);
            -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
            padding: 20px 30px;
            border-radius: 20px;
            box-shadow: 0 10px 40px -10px rgba(var(--primaria-escura-rgb), 0.06);
            margin-bottom: 30px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            border: 1px solid rgba(255, 255, 255, 0.7);
            border-left: 6px solid var(--azul-caixa);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .loja-selector-bar:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 45px -10px rgba(var(--primaria-escura-rgb), 0.1);
        }

        .loja-selector-bar > div:first-child {
            flex: 1 1 240px;
            max-width: 420px;
            min-width: 0;
        }

        .loja-select {
            width: 100%;
            min-width: min(100%, 220px);
            max-width: 100%;
            padding: 12px 38px 12px 18px;
            font-size: 1rem;
            font-weight: 700;
            color: var(--azul-caixa);
            border: 1.5px solid rgba(226, 232, 240, 0.9);
            border-radius: 12px;
            outline: none;
            cursor: pointer;
            transition: all 0.25s ease-in-out;
            background-color: #ffffff;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
            box-sizing: border-box;
        }
        @media (max-width: 768px) {
            .loja-selector-bar > div:first-child {
                flex: none;
                max-width: 100%;
                width: 100%;
            }
            .loja-select {
                width: 100%;
                min-width: 0;
            }
        }

        .loja-select:focus {
            border-color: var(--laranja-caixa);
            background-color: white;
            box-shadow: 0 0 0 4px rgba(240, 130, 0, 0.15);
        }

        /* 2. GRID DE SNAPSHOTS FINANCEIROS (FINTECH GLASSMORPHISM) */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
            gap: 20px;
            margin-bottom: 35px;
        }

        .stat-card {
            background: rgba(255, 255, 255, 0.85);
            -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
            border-radius: var(--radius-md, 12px);
            padding: 24px;
            box-shadow: 0 8px 32px 0 rgba(var(--primaria-escura-rgb), 0.02);
            display: flex;
            align-items: center;
            gap: 20px;
            border: 1px solid rgba(255, 255, 255, 0.7);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @media (hover: hover) {
            .stat-card:hover {
                transform: translateY(-5px);
                box-shadow: 0 20px 40px -10px rgba(var(--primaria-escura-rgb), 0.12);
                border-color: rgba(240, 130, 0, 0.2);
            }
        }

        .stat-card[onclick]:active,
        .stat-card[role="button"]:active,
        .stat-card[style*="pointer"]:active {
            transform: scale(0.98);
        }

        .stat-icon {
            border-radius: 14px;
            background: rgba(var(--primaria-escura-rgb), 0.05);
            color: var(--azul-caixa);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            transition: all 0.3s ease;
        }

        .stat-card:hover .stat-icon {
            transform: scale(1.1) rotate(5deg);
            background: var(--azul-caixa);
            color: white;
        }

        .stat-card:nth-child(2) .stat-icon {
            background: rgba(40, 167, 69, 0.06);
            color: var(--sucesso);
        }
        .stat-card:nth-child(2):hover .stat-icon {
            background: var(--sucesso);
            color: white;
        }

        .stat-card:nth-child(3) .stat-icon {
            background: rgba(240, 130, 0, 0.06);
            color: var(--laranja-caixa);
        }
        .stat-card:nth-child(3):hover .stat-icon {
            background: var(--laranja-caixa);
            color: var(--azul-caixa);
        }

        .stat-card:nth-child(4) .stat-icon {
            background: rgba(100, 116, 139, 0.06);
            color: #64748b;
        }
        .stat-card:nth-child(4):hover .stat-icon {
            background: #64748b;
            color: white;
        }

        .stat-card.active-filter {
            background: rgba(254, 243, 199, 0.9);
            border-color: var(--laranja-caixa);
            box-shadow: 0 0 0 4px rgba(240, 130, 0, 0.2);
        }

        .stat-info {
            display: flex;
            flex-direction: column;
        }

        .stat-label {
            font-size: 0.75rem;
            color: #64748b;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .stat-info h3 {
            font-size: 1.45rem;
            font-weight: 800;
            color: #0f172a;
            margin: 6px 0 0 0;
            letter-spacing: -0.5px;
        }

        /* 3. PAINEL DE CADASTRO PREMIUM */
        .admin-card-custom {
            background: rgba(255, 255, 255, 0.9);
            -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
            border-radius: var(--radius-lg, 16px);
            padding: 28px;
            box-shadow: 0 10px 30px -5px rgba(var(--primaria-escura-rgb), 0.04);
            margin-bottom: 35px;
            border: 1px solid rgba(255, 255, 255, 0.7);
            border-top: 5px solid var(--azul-caixa);
        }

        .form-grid-custom {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr;
            gap: 20px;
            align-items: center;
        }

        @media (max-width: 768px) {
            .form-grid-custom {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            .loja-selector-bar {
                flex-direction: column;
                align-items: stretch;
                padding: 20px;
            }
        }

        .select-wrapper-custom {
            position: relative;
            display: flex;
            align-items: center;
        }

        .select-wrapper-custom select {
            width: 100%;
            padding: 14px 38px 14px 18px;
            font-size: 0.95rem;
            font-weight: 600;
            color: #0f172a;
            border: 1.5px solid rgba(226, 232, 240, 0.9);
            border-radius: 12px;
            outline: none;
            background-color: #ffffff;
            cursor: pointer;
            transition: all 0.25s;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.01);
        }

        .select-wrapper-custom select:focus {
            border-color: var(--azul-claro);
            background-color: white;
            box-shadow: 0 0 0 4px rgba(var(--primaria-rgb), 0.15);
        }

        .btn-submit-custom {
            background: linear-gradient(135deg, var(--azul-caixa) 0%, var(--azul-claro) 100%);
            color: white;
            border: none;
            padding: 14px 24px;
            font-size: 0.95rem;
            font-weight: 800;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
            height: 50px;
            box-shadow: 0 6px 20px -5px rgba(var(--primaria-escura-rgb), 0.3);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .btn-submit-custom:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 24px -5px rgba(var(--primaria-escura-rgb), 0.45);
        }

        /* 4. FILTROS E CABE├çALHOS DA GRID */
        .grid-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
        }

        .grid-title {
            font-size: 1.35rem;
            font-weight: 800;
            color: var(--azul-caixa);
            display: flex;
            align-items: center;
            gap: 10px;
            letter-spacing: -0.5px;
        }

        .filter-badge {
            background: rgba(240, 130, 0, 0.08);
            color: var(--laranja-texto);
            border: 1px solid rgba(240, 130, 0, 0.2);
            padding: 8px 18px;
            border-radius: 100px;
            font-size: 0.8rem;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.25s;
            box-shadow: 0 2px 8px rgba(240, 130, 0, 0.05);
        }

        .filter-badge:hover {
            background: var(--azul-claro);
            color: white;
            box-shadow: 0 4px 12px rgba(var(--primaria-rgb), 0.2);
        }

        /* 5. GRID DE CART├òES DE DEVEDORES */
        .grid-3-cols {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
            gap: 24px;
            padding-bottom: 50px;
        }

        @media(max-width: 640px) {
            .grid-3-cols {
                grid-template-columns: 1fr;
            }
        }

        /* CARD DE COLABORADOR - DESIGN DE ALTO N├ìVEL E CLEAN */
        .card-devedor {
            background: rgba(255, 255, 255, 0.95);
            -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
            border-radius: 24px;
            padding: 26px;
            box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
            border: 1px solid rgba(var(--primaria-escura-rgb), 0.06);
            border-top: 6px solid var(--azul-caixa);
            position: relative;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .card-devedor:hover {
            transform: translateY(-6px);
            box-shadow: 0 20px 40px -15px rgba(var(--primaria-escura-rgb), 0.12);
            border-color: rgba(var(--primaria-rgb), 0.15);
        }

        /* Indicador sutil e premium no topo para ativos, em vez de deixar o card todo vermelho */
        .card-devedor-alerta {
            border-top-color: var(--laranja-caixa);
        }

        /* Avatar circular do colaborador */
        .dev-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 20px;
        }

        .dev-avatar {
            width: 46px;
            height: 46px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 800;
            font-size: 1.25rem;
            box-shadow: 0 4px 12px rgba(var(--primaria-escura-rgb), 0.15);
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
        }

        .btn-icon-delete {
            background: none;
            border: none;
            cursor: pointer;
            color: #94a3b8;
            padding: 8px;
            border-radius: 10px;
            transition: all 0.25s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn-icon-delete:hover {
            background: #fee2e2;
            color: var(--perigo);
            transform: scale(1.05);
        }

        /* Display do Saldo Financeiro - REFORMULADO para Visual Fintech Coerente e Elegante */
        .saldo-display {
            background: linear-gradient(135deg, var(--fundo-sutil) 0%, var(--fundo-hover) 100%);
            border-radius: 16px;
            padding: 18px 20px;
            margin-bottom: 22px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 4px;
            border-left: 5px solid var(--azul-caixa);
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
            transition: all 0.3s ease;
        }

        /* Em vez de fundo todo vermelho, aplicamos um tom azul-acinzentado chique com borda laranja corporativa */
        .saldo-display-alerta {
            border-left-color: var(--laranja-caixa);
            background: linear-gradient(135deg, #fdf8f5 0%, #f7eae1 100%);
        }

        .saldo-display .label {
            font-size: 0.75rem;
            color: #64748b;
            text-transform: uppercase;
            font-weight: 800;
            letter-spacing: 0.8px;
        }

        .saldo-display .value {
            font-size: 1.6rem;
            font-weight: 800;
            color: var(--azul-caixa);
            letter-spacing: -0.5px;
        }

        @media (max-width: 480px) {
            .saldo-display {
                flex-direction: column;
                align-items: flex-start;
                gap: 4px;
                padding: 14px 16px;
            }
            .saldo-display .value {
                font-size: 1.35rem;
            }
        }

        /* 6. CONTAINER DE A├ç├òES R├üPIDAS (LAN├çAR) */
        .quick-action-container {
            display: flex;
            flex-direction: column;
            gap: 12px;
            margin-bottom: 24px;
            background: var(--fundo-sutil);
            padding: 16px;
            border-radius: var(--radius-md, 12px);
            border: 1px solid rgba(226, 232, 240, 0.8);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01);
        }

        .input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .input-prefix-icon {
            position: absolute;
            left: 14px;
            color: #94a3b8;
            font-size: 0.95rem;
        }

        .modern-input {
            width: 100%;
            padding: 12px 14px 12px 40px;
            font-size: 1.05rem;
            font-weight: 800;
            color: #0f172a;
            border: 1.5px solid rgba(226, 232, 240, 0.9);
            border-radius: 12px;
            outline: none;
            transition: all 0.25s;
            background: white;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
        }

        .modern-input:focus {
            border-color: var(--azul-caixa);
            box-shadow: 0 0 0 4px rgba(var(--primaria-escura-rgb), 0.12);
        }

        .action-buttons-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

        .btn-action-custom {
            border: none;
            padding: 11px 8px;
            font-size: 0.82rem;
            font-weight: 800;
            border-radius: 10px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            min-width: 0;
            overflow: hidden;
            white-space: nowrap;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            text-transform: uppercase;
        }

        /* Bot├úo Pagar: Sucesso Suave */
        .btn-payment {
            background: #d1fae5;
            color: #065f46;
            border: 1px solid rgba(5, 150, 105, 0.15);
        }

        .btn-payment:hover {
            background: #059669;
            color: white;
            box-shadow: 0 6px 15px rgba(5, 150, 105, 0.25);
            transform: translateY(-1px);
        }

        /* Botão Devendo: Coral Suave em vez de Vermelho Agressivo */
        .btn-debt {
            background: #ffedd5;
            color: #c2410c;
            border: 1px solid rgba(240, 130, 0, 0.15);
        }

        .btn-debt:hover {
            background: var(--laranja-caixa);
            color: var(--azul-caixa);
            box-shadow: 0 6px 15px rgba(240, 130, 0, 0.25);
            transform: translateY(-1px);
        }

        /* 7. LINHA DO TEMPO (TIMELINE) PREMIUM DE LANÇAMENTOS */
        .history-container {
            margin-top: 18px;
            border-top: 1px dashed rgba(226, 232, 240, 0.9);
            padding-top: 20px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .timeline-item {
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding: 12px 14px;
            background: var(--fundo-sutil);
            border-radius: 12px;
            border: 1px solid rgba(226, 232, 240, 0.7);
            transition: all 0.25s ease;
            position: relative;
            border-left: 4px solid var(--sucesso);
        }

        .timeline-item:hover {
            background: var(--fundo-hover);
            transform: translateX(2px);
        }

        .timeline-item.acrescimo {
            border-left-color: var(--laranja-caixa);
        }

        .timeline-item.pendente {
            border-left-color: var(--aviso);
            background: #fffdf5;
            border: 1px solid rgba(245, 158, 11, 0.35);
            border-left: 4px solid var(--aviso);
        }

        .timeline-row-main {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }

        .timeline-date {
            font-size: 0.82rem;
            font-weight: 800;
            color: #0f172a;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .timeline-value {
            font-size: 0.95rem;
            font-weight: 800;
            white-space: nowrap;
            text-align: right;
            letter-spacing: -0.2px;
            font-variant-numeric: tabular-nums;
        }

        .timeline-row-sub {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }

        .timeline-tags {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
        }

        .timeline-badge {
            font-size: 0.68rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            padding: 2px 7px;
            border-radius: 6px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .timeline-badge.pgto {
            background: #d1fae5;
            color: #065f46;
        }

        .timeline-badge.acrescimo {
            background: #ffedd5;
            color: #c2410c;
        }

        .timeline-pending-tag {
            font-size: 0.68rem;
            font-weight: 700;
            color: #b45309;
            background: #fef3c7;
            padding: 2px 7px;
            border-radius: 6px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .timeline-actions {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-left: auto;
        }

        /* Botões ícone menores e mais elegantes */
        .btn-icon-mini {
            background: white;
            border: 1px solid rgba(226, 232, 240, 0.9);
            cursor: pointer;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            color: #64748b;
            transition: all 0.25s;
            box-shadow: 0 2px 4px rgba(0,0,0,0.02);
            flex-shrink: 0;
        }

        @media (pointer: coarse) {
            .timeline-actions {
                gap: 10px;
            }
            .btn-icon-mini {
                width: 36px;
                height: 36px;
                font-size: 0.88rem;
            }
        }

        .btn-icon-mini:hover {
            background: var(--fundo-hover);
            color: var(--azul-caixa);
            border-color: rgba(0,0,0,0.12);
            transform: scale(1.05);
        }

        .btn-icon-mini.approve:hover {
            background: #d1fae5;
            color: var(--sucesso);
            border-color: rgba(16, 185, 129, 0.3);
        }

        .btn-icon-mini.delete:hover {
            background: #fee2e2;
            color: var(--perigo);
            border-color: rgba(239, 68, 68, 0.3);
        }

        .text-success { color: #059669; }
        .text-danger { color: #c2410c; }
        .text-warning { color: #d97706; }
        .text-muted { color: #64748b; }

        

        .pulse-logo {
            animation: pulse 1.8s infinite ease-in-out;
            margin-bottom: 24px;
            width: 76px;
        }

        @keyframes pulse {
            0% { transform: scale(0.95); opacity: 0.85; }
            50% { transform: scale(1.05); opacity: 1; }
            100% { transform: scale(0.95); opacity: 0.85; }
        }

        /* Skeleton Animation */
        @keyframes pulse-bg {
            0% { background-color: var(--fundo-hover); }
            50% { background-color: #e2e8f0; }
            100% { background-color: var(--fundo-hover); }
        }
        .skeleton-card {
            background: #ffffff;
            border-radius: var(--radius-md);
            padding: 24px;
            box-shadow: var(--shadow-sm);
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        .skeleton-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            animation: pulse-bg 1.2s infinite;
        }
        .skeleton-title {
            width: 140px;
            height: 20px;
            border-radius: 4px;
            animation: pulse-bg 1.2s infinite;
        }
        .skeleton-subtitle {
            width: 100px;
            height: 12px;
            border-radius: 4px;
            animation: pulse-bg 1.2s infinite;
        }
        .skeleton-bar {
            width: 100%;
            height: 32px;
            border-radius: 6px;
            animation: pulse-bg 1.2s infinite;
        }
