:root {
    --velo-purple: #4a148c;
    --velo-purple-dark: #2c0b55;
    --velo-orange: #ff3d00;
    --velo-orange-hover: #e63700;
    --velo-bg: #f3f0f5;
    --velo-gray: #e0e0e0;
    --text-dark: #333;
    --border-radius: 8px;
    
    /* Adicionando as variáveis que faltavam para os cards de entrega */
    --primary: #4a148c;
    --primary-light: #7c43bd;
    --success: #2e7d32;
    --danger: #d32f2f;
    --text-main: #333;
    --text-muted: #666;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Roboto', sans-serif; }

body { background-color: #f4f7f9; color: var(--text-dark); min-height: 100vh; }

/* --- UTILITÁRIOS --- */
.hidden { display: none !important; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.full { width: 100%; }
.mt-20 { margin-top: 20px; }

/* --- LOGIN --- */
.login-wrapper { display: flex; justify-content: center; align-items: center; height: 100vh; background: var(--velo-purple); }
.login-box { background: white; padding: 40px; border-radius: 12px; width: 100%; max-width: 400px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.login-header { text-align: center; margin-bottom: 30px; color: var(--velo-purple); }
.btn-login { background: var(--velo-orange); color: white; border: none; padding: 15px; width: 100%; border-radius: 6px; font-weight: bold; cursor: pointer; margin-top: 10px; }

/* --- DASHBOARD PRINCIPAL --- */
.main-header { background: white; padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.logo-area h1 { color: var(--velo-purple); font-size: 1.5rem; }
.badge-status { padding: 5px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: bold; margin-right: 15px; }
.btn-icon { background: none; border: none; color: #666; font-size: 1.2rem; cursor: pointer; }

.dashboard-content { padding: 30px; max-width: 1400px; margin: 0 auto; }

.pdv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.pdv-action-card { background: white; padding: 30px; border-radius: 12px; text-align: center; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; border: 1px solid #eee; }
.pdv-action-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-color: var(--velo-purple); }
.pdv-action-card i { font-size: 3rem; color: var(--velo-purple); margin-bottom: 15px; display: block; }
.pdv-action-card h3 { font-weight: 500; color: #444; }

/* --- TELA VELO PDV (FULL SCREEN) --- */
.velo-pdv-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--velo-bg); z-index: 2000; display: flex; flex-direction: column; }

/* Header Velo */
.velo-header { height: 60px; background: var(--velo-purple); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; color: white; }
.velo-logo { font-size: 1.8rem; font-weight: 700; letter-spacing: -1px; }
.velo-message { font-size: 1.2rem; font-weight: 300; }
.velo-actions { display: flex; gap: 20px; }
.action-item { display: flex; flex-direction: column; align-items: center; font-size: 0.7rem; cursor: pointer; opacity: 0.9; }
.action-item:hover { opacity: 1; }
.action-item i { font-size: 1.1rem; margin-bottom: 2px; }

/* Body Velo */
.velo-body { flex: 1; display: flex; padding: 15px; gap: 15px; overflow: hidden; }

/* Esquerda */
.velo-left-col { width: 45%; display: flex; flex-direction: column; gap: 15px; }

.velo-search-box { background: white; border: 2px solid var(--velo-purple); border-radius: 6px; padding: 5px 15px; display: flex; align-items: center; height: 60px; }
.velo-search-box i { font-size: 1.5rem; color: var(--velo-purple); margin-right: 10px; }
.velo-search-input { border: none; font-size: 1.2rem; flex: 1; outline: none; width: 100%; background: transparent; }
.search-help { text-align: right; font-size: 0.8rem; color: #1976d2; margin-top: -10px; }

.velo-inputs-row { display: flex; gap: 15px; }
.input-block { flex: 1; }
.input-block label { display: block; font-weight: 700; color: var(--velo-purple); margin-bottom: 5px; }
.velo-big-input { width: 100%; height: 60px; border: 1px solid #ccc; border-radius: 6px; font-size: 2rem; text-align: right; padding: 0 15px; color: #333; outline: none; }
.velo-big-input:focus { border-color: var(--velo-purple); box-shadow: 0 0 0 3px rgba(74,20,140,0.1); }
.gray-bg { background: #f0f0f0; }

.velo-buttons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.velo-btn { border: none; padding: 15px 5px; border-radius: 6px; font-weight: bold; cursor: pointer; transition: 0.2s; color: white; font-size: 0.9rem; }
.velo-btn.purple { background: var(--velo-purple); }
.velo-btn.purple:hover { background: var(--velo-purple-dark); }
.velo-btn.light { background: #e3dce6; color: var(--velo-purple); }
.velo-btn.orange { background: var(--velo-orange); font-size: 1.5rem; }
.velo-btn:active { transform: scale(0.98); }

/* Direita */
.velo-right-col { width: 55%; background: white; border-radius: 8px; border: 1px solid #ddd; display: flex; flex-direction: column; }

.velo-selectors { background: #f9f9f9; padding: 10px 15px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; }
.sel-group label { display: block; font-size: 0.8rem; font-weight: bold; color: var(--velo-purple); }
.sel-group span { font-size: 0.9rem; color: #555; }

.velo-table-container { flex: 1; overflow-y: auto; }
.velo-table { width: 100%; border-collapse: collapse; }
.velo-table th { text-align: left; padding: 10px 15px; background: #fff; color: #888; font-weight: 500; border-bottom: 1px solid #eee; position: sticky; top: 0; }
.velo-table td { padding: 12px 15px; border-bottom: 1px solid #f5f5f5; font-size: 0.95rem; }
.empty-msg { text-align: center; color: #999; font-style: italic; padding: 40px; }

.velo-footer { background: #fff; border-top: 2px solid #eee; padding: 15px; display: flex; justify-content: space-between; align-items: flex-end; }
.footer-info { display: flex; gap: 20px; font-size: 0.8rem; color: #666; }
.footer-actions { display: flex; align-items: center; gap: 15px; }
.velo-btn-finalizar { background: var(--velo-orange); color: white; border: none; padding: 10px 20px; border-radius: 4px; font-weight: bold; font-size: 1.1rem; cursor: pointer; }
.total-big-display { font-size: 3rem; font-weight: 900; color: var(--velo-orange); line-height: 1; }

/* Painel de Pagamento Overlay na Venda */
.pagamento-panel { background: #fff; border: 2px solid var(--velo-orange); border-radius: 8px; padding: 15px; margin-top: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.pagamento-panel h3 { color: var(--velo-orange); margin-bottom: 10px; }
.mini-list-pagamentos { max-height: 80px; overflow-y: auto; margin: 10px 0; border: 1px dashed #ccc; padding: 5px; }
.troco-display { text-align: right; font-size: 1.1rem; font-weight: bold; }

/* --- MODAIS GERAIS --- */
.modal { display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(3px); }
.modal-content { background: white; margin: 5% auto; width: 90%; max-width: 500px; border-radius: 10px; padding: 25px; position: relative; animation: slideDown 0.3s; }
@keyframes slideDown { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close { position: absolute; right: 20px; top: 15px; font-size: 28px; cursor: pointer; color: #aaa; }
.card-style h3 { color: var(--velo-purple); margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; color: #555; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; font-size: 1rem; }
.btn-primary { background: var(--velo-purple); color: white; padding: 12px; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; }
.btn-danger { background: #d32f2f; color: white; padding: 10px; border: none; border-radius: 5px; cursor: pointer; }
.btn-success { background: #388e3c; color: white; padding: 10px; border: none; border-radius: 5px; cursor: pointer; }

/* Estilo Ticket */
.ticket-style { padding: 0; overflow: hidden; max-width: 400px; }
.ticket-header-bg { background: linear-gradient(135deg, #2196f3, #1565c0); padding: 20px; text-align: center; color: white; }
.ticket-body { padding: 20px; text-align: center; }
.ticket-number { font-size: 4rem; font-weight: 900; color: #333; margin: 10px 0; }
.ticket-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.close-white { position: absolute; right: 15px; top: 10px; color: white; font-size: 24px; cursor: pointer; }

/* Responsivo */
@media (max-width: 900px) {
    .velo-body { flex-direction: column; overflow-y: auto; }
    .velo-left-col, .velo-right-col { width: 100%; }
}
/* Alerta de Recebimento de Mercadoria */
.alert-box {
    background: white;
    border-left: 5px solid #2196f3;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideDown 0.5s ease;
}
.alert-icon { font-size: 1.5rem; color: #2196f3; margin-right: 15px; }
.alert-info h4 { margin: 0; color: #333; font-size: 1rem; font-weight: 700; }
.alert-info p { margin: 0; color: #666; font-size: 0.9rem; }
/* Estilo do Alerta de Recebimento */
.alert-box {
    background: white;
    border-left: 5px solid #2196f3;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideDown 0.5s ease;
}
.alert-icon { font-size: 1.5rem; color: #2196f3; margin-right: 15px; }
.alert-info h4 { margin: 0; color: #333; font-size: 1rem; font-weight: 700; }
.alert-info p { margin: 0; color: #666; font-size: 0.9rem; }

/* Destaque para o campo de Estoque Restante */
.border-purple {
    border: 2px solid var(--velo-purple) !important;
}
.bg-highlight {
    background-color: #fcfcfc;
}
/* =========================================
   MODAL PAGAMENTO VELO (STYLE REPLICA)
   ========================================= */

.velo-payment-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #f4f7f9; z-index: 4000;
    display: flex; flex-direction: column;
}

/* Header Gradiente */
.vp-header {
    height: 70px;
    background: linear-gradient(90deg, #4a148c 0%, #d84315 100%); /* Roxo p/ Laranja */
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 30px; color: white;
}
.vp-logo { font-size: 2rem; font-weight: 700; letter-spacing: -1px; }
.vp-title { font-size: 1.4rem; font-weight: 600; }
.vp-user { font-size: 0.9rem; font-weight: 500; display: flex; align-items: center; }

/* Corpo Principal */
.vp-body {
    flex: 1; display: flex; padding: 20px; gap: 20px;
    max-width: 1400px; margin: 0 auto; width: 100%;
}

/* Coluna Esquerda */
.vp-left { flex: 2; display: flex; flex-direction: column; gap: 15px; }

.vp-adjust-buttons { display: flex; gap: 10px; }
.vp-btn-adjust {
    background: #ff3d00; color: white; border: none; padding: 10px 20px;
    border-radius: 20px; font-weight: bold; cursor: pointer; flex: 1;
    max-width: 200px; transition: 0.2s;
}
.vp-btn-adjust:hover { background: #e63700; transform: scale(1.02); }

.vp-inputs-row { display: flex; gap: 20px; align-items: flex-end; }
.vp-input-group { flex: 1; display: flex; flex-direction: column; }
.vp-input-group label {
    font-size: 0.75rem; font-weight: 700; color: #4a148c; 
    text-transform: uppercase; margin-bottom: 5px;
}
.vp-input-big {
    height: 50px; border: 2px solid #ccc; border-radius: 8px;
    font-size: 1.5rem; padding: 0 15px; outline: none;
}
.vp-input-big:focus { border-color: #4a148c; }
.vp-input-big.readonly { background: #f0f0f0; border-color: #eee; }

/* Grid de Botões de Pagamento */
.vp-methods-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px;
    margin-top: 10px;
}
.vp-method-btn {
    background: white; border: 1px solid #ddd; border-radius: 8px;
    padding: 10px; display: flex; align-items: center; gap: 15px;
    cursor: pointer; transition: 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.vp-method-btn:hover { border-color: #4a148c; transform: translateY(-2px); }
.vp-method-btn span { font-weight: 600; color: #444; font-size: 0.95rem; }

.icon-box {
    width: 45px; height: 45px; border-radius: 8px; color: white;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.icon-box.green { background: #2e7d32; }
.icon-box.blue { background: #1565c0; }
.icon-box.purple { background: #4a148c; }
.icon-box.purple-light { background: #7b1fa2; }
.icon-box.purple-dark { background: #311b92; }
.icon-box.orange { background: #e65100; }
.icon-box.orange-dark { background: #ff6f00; }
.icon-box.pink { background: #c2185b; }

.vp-footer-actions { display: flex; gap: 15px; margin-top: auto; }
.vp-action-btn {
    background: #4a148c; color: white; border: none; padding: 15px;
    border-radius: 8px; font-weight: bold; flex: 1; cursor: pointer;
}
.vp-action-btn:hover { background: #38006b; }

.vp-footer-shortcuts { display: flex; gap: 10px; margin-top: 10px; }
.tag-shortcut {
    background: #e3dce6; color: #4a148c; padding: 5px 15px;
    border-radius: 15px; font-size: 0.8rem; font-weight: 600;
}

/* Coluna Direita */
.vp-right { flex: 1; display: flex; flex-direction: column; gap: 20px; }

.vp-summary-box {
    background: white; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden; display: flex; flex-direction: column;
}
.vp-box-header {
    background: #f9f9f9; padding: 10px 15px; font-weight: 600; color: #555;
    border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 10px;
}
.vp-list-content { height: 200px; overflow-y: auto; padding: 10px; }
.vp-payment-row {
    display: flex; justify-content: space-between; padding: 8px;
    border-bottom: 1px dashed #eee; font-size: 0.9rem;
}

.totals-box { padding: 0 0 20px 0; }
.vp-total-row {
    display: flex; justify-content: space-between; padding: 8px 20px;
    font-size: 0.95rem; color: #666;
}
.vp-total-row strong { color: #333; }
.vp-total-row.big { font-size: 1.2rem; margin-top: 5px; }
.vp-total-row.big span { font-weight: 500; }
.vp-total-row.big strong { font-weight: 800; color: #4a148c; }
.vp-total-row.received strong { color: #2e7d32; }
.vp-total-row.missing strong { color: #d32f2f; }

.vp-link-voltar {
    text-align: center; color: #1565c0; font-weight: 600; cursor: pointer;
    font-size: 1.1rem; margin-top: 10px;
}
.vp-link-voltar:hover { text-decoration: underline; }

/* Responsivo Mobile */
@media (max-width: 900px) {
    .vp-body { flex-direction: column; overflow-y: auto; }
    .vp-methods-grid { grid-template-columns: 1fr; }
}
/* =========================================
   CARDS DE ENTREGA (DESIGN MODERNO)
   ========================================= */

.delivery-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.delivery-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* Sombra suave */
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #f0f0f0;
    border-left: 5px solid var(--primary); /* Cor padrão */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-wrap: wrap; /* Para mobile */
    gap: 15px;
}

.delivery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Variações de Borda baseadas no status financeiro */
.delivery-card.debito { border-left-color: var(--danger); } /* Vermelho */
.delivery-card.quitado { border-left-color: var(--success); } /* Verde */

/* Informações do Cliente (Esquerda) */
.delivery-info {
    flex: 1;
    min-width: 250px;
}

.delivery-client {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.delivery-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
    align-items: center;
}

.delivery-meta i {
    color: var(--primary-light);
    margin-right: 4px;
}

/* Financeiro (Meio) */
.delivery-finance {
    text-align: right;
    padding: 0 20px;
    min-width: 150px;
}

.finance-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.finance-badge.red { background: #fee2e2; color: var(--danger); }
.finance-badge.green { background: #dcfce7; color: var(--success); }

.finance-amount {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
}

/* Ações (Direita) */
.delivery-actions {
    display: flex;
    gap: 10px;
}

.btn-wpp {
    background: white;
    border: 1px solid #25D366;
    color: #25D366;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}
.btn-wpp:hover { background: #25D366; color: white; }

.btn-confirm {
    background: var(--text-main); /* Cinza escuro/Preto */
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}
.btn-confirm:hover { background: black; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

.btn-print {
    background: #e0e7ff;
    color: #4338ca;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
}
.btn-print:hover { background: #c7d2fe; }

/* Responsivo */
@media (max-width: 768px) {
    .delivery-card { flex-direction: column; align-items: flex-start; }
    .delivery-finance { text-align: left; padding: 0; margin: 10px 0; }
    .delivery-actions { width: 100%; }
    .delivery-actions button { flex: 1; justify-content: center; }
}
/* =========================================
   HOME STYLE (MENU VERTICAL VELO)
   ========================================= */

/* Container Centralizado */
.home-menu-container {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espaço entre os botões */
    max-width: 700px; /* Largura máxima para não ficar esticado demais */
    margin: 40px auto; /* Centraliza na tela */
    padding: 0 20px;
}

/* Botão do Menu */
.home-menu-btn {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px; /* Bordas arredondadas suaves */
    padding: 25px; /* Altura confortável */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

.home-menu-btn:hover {
    transform: translateY(-2px); /* Efeito de levitar */
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--velo-purple);
}

/* Ícone do Botão */
.home-menu-btn .icon-circle {
    background: var(--velo-purple);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: white;
    font-size: 1.5rem;
    /* Opção alternativa: Ícone solto sem círculo */
    /* background: transparent; color: var(--velo-purple); font-size: 2.5rem; */
}

/* Alternativa Velo Original (Ícone Roxo Solto) */
.home-menu-btn i {
    font-size: 2.2rem;
    color: var(--velo-purple);
    margin-bottom: 8px;
}

/* Texto do Botão */
.home-menu-btn span {
    color: #444;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

/* Ajuste no Header para ficar igual à imagem */
.main-header {
    height: 80px; /* Um pouco mais alto */
    box-shadow: none; /* Remove sombra forte */
    border-bottom: 1px solid #f0f0f0;
}

.logo-area h1 {
    color: var(--velo-purple);
    font-weight: 800;
    letter-spacing: -0.5px;
    font-size: 1.4rem;
}

/* Responsivo para celular */
@media (max-width: 600px) {
    .home-menu-container {
        margin: 20px auto;
        gap: 10px;
    }
    .home-menu-btn {
        flex-direction: row; /* No celular, ícone ao lado do texto */
        justify-content: flex-start;
        padding: 20px;
        gap: 20px;
    }
    .home-menu-btn i {
        margin-bottom: 0;
        font-size: 1.8rem;
    }
}
/* =========================================
   HOME STYLE (MENU VERTICAL IMPERIUS)
   ========================================= */

/* Container Centralizado */
.home-menu-container {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Espaço entre os botões */
    max-width: 600px; /* Largura controlada para não esticar demais */
    margin: 40px auto; /* Centraliza na tela */
    padding: 0 20px;
}

/* Botão do Menu */
.home-menu-btn {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px; /* Altura do botão */
    display: flex;
    flex-direction: column; /* Ícone em cima, texto embaixo */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    text-decoration: none;
    color: inherit;
}

.home-menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: var(--velo-purple);
}

/* Ícone do Botão */
.home-menu-btn i {
    font-size: 2rem;
    color: var(--velo-purple);
    margin-bottom: 10px;
}

/* Círculo do ícone (Opcional, estilo sólido) */
.icon-circle-btn {
    background-color: var(--velo-purple);
    color: white !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.5rem !important;
}

/* Texto do Botão */
.home-menu-btn span {
    color: #444;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase; /* Letras maiúsculas como na imagem? Ou Normal */
    letter-spacing: 0.5px;
}

/* Ajuste no Header para ficar igual à imagem (Fundo branco, texto roxo) */
.main-header {
    background-color: white;
    height: 70px;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: none;
}

.logo-area h1 {
    color: var(--velo-purple);
    font-weight: 800;
    font-size: 1.4rem;
    text-transform: uppercase;
}

/* Responsivo para celular */
@media (max-width: 600px) {
    .home-menu-container {
        margin: 20px auto;
        gap: 10px;
    }
    /* No celular, pode ser melhor o ícone ao lado do texto para economizar altura */
    .home-menu-btn {
        flex-direction: row; 
        justify-content: flex-start;
        padding: 20px 30px;
        gap: 20px;
    }
    .home-menu-btn i, .icon-circle-btn {
        margin-bottom: 0;
    }
}
/* --- RODAPÉ DE MODAIS E BOTÕES MODERNOS --- */
.modal-footer {
    display: flex;
    justify-content: flex-end; /* Alinha botões à direita */
    align-items: center;
    gap: 12px; /* Espaço entre os botões */
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee; /* Linha sutil separando o conteúdo */
}

.btn-modal {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    min-width: 100px;
}

/* Botão Principal (Ação) */
.btn-primary {
    background-color: var(--velo-purple);
    color: white;
}
.btn-primary:hover {
    background-color: var(--velo-purple-dark);
    box-shadow: 0 4px 10px rgba(74, 20, 140, 0.2);
}

/* Botão Secundário (Cancelar - Estilo limpo) */
.btn-secondary {
    background-color: transparent;
    color: #666;
    border: 1px solid #ddd;
}
.btn-secondary:hover {
    background-color: #f5f5f5;
    color: #333;
    border-color: #bbb;
}
/* --- LAYOUT DESKTOP (ESTILO SISTEMA) --- */

/* Trava a rolagem da página inteira para parecer um app nativo */
body {
    overflow: hidden; 
    background-color: #f0f2f5; /* Cinza bem suave de fundo */
}

/* Container Principal usando CSS GRID */
.app-container {
    display: grid;
    grid-template-columns: 260px 1fr; /* Coluna 1: Sidebar (260px), Coluna 2: Conteúdo (Resto) */
    grid-template-rows: 70px 1fr;     /* Linha 1: Header (70px), Linha 2: Conteúdo (Resto) */
    height: 100vh;
    width: 100vw;
}

/* --- 1. SIDEBAR (Lateral Esquerda) --- */
.sidebar {
    grid-row: 1 / -1; /* Ocupa altura total */
    grid-column: 1 / 2;
    background: white;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.02);
    z-index: 10;
}

.sidebar-logo {
    padding: 0 25px 30px 25px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--velo-purple);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-menu {
    list-style: none;
    padding: 0 15px;
}

.menu-item {
    padding: 12px 20px;
    margin-bottom: 5px;
    border-radius: 8px;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.menu-item i {
    width: 20px;
    text-align: center;
}

.menu-item:hover {
    background-color: #f3e5f5; /* Roxo bem clarinho */
    color: var(--velo-purple);
}

.menu-item.active {
    background: linear-gradient(90deg, var(--velo-purple) 0%, #7c43bd 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(74, 20, 140, 0.3);
}

/* --- 2. HEADER (Barra de Topo) --- */
.desktop-header {
    grid-column: 2 / -1;
    grid-row: 1 / 2;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 1px solid #e0e0e0;
}

.header-search {
    background: #f0f2f5;
    padding: 10px 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    color: #888;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
}
.header-search:focus-within {
    border-color: var(--velo-purple);
    background: white;
}
.header-search input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    color: #333;
}

/* --- 3. ÁREA DE CONTEÚDO (Onde ficam os cards) --- */
.content-area {
    grid-column: 2 / -1;
    grid-row: 2 / -1;
    padding: 30px;
    overflow-y: auto; /* SÓ AQUI tem rolagem */
    background-color: #f8f9fa;
}

/* --- 4. CARDS ESTILO DASHBOARD (Igual à imagem) --- */
.desktop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.desktop-card {
    background: white;
    border-radius: 12px;
    height: 180px; /* Altura fixa para ficar quadrado */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
}

.desktop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: var(--velo-purple);
}

.card-icon-box {
    width: 70px;
    height: 70px;
    background-color: var(--velo-purple);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(74, 20, 140, 0.2);
}

.card-icon-box i {
    font-size: 2rem;
    color: white;
}

.desktop-card span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #555;
}

/* Custom Scrollbar (Para ficar chique) */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

#containerAlertasB2B {
    position: fixed;
    top: 20px; /* Mudar de 50% para o topo para permitir empilhamento */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: 90%;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 90vh; /* Limita a altura para não sumir da tela */
    overflow-y: auto; /* Permite rolar se houver muitos alertas */
}

.alerta-transferencia {
    background: rgba(15, 23, 42, 0.9); /* Fundo escuro profundo */
    backdrop-filter: blur(20px);
    border: 2px solid #00f2fe;
    border-radius: 24px;
    padding: 40px;
    color: white;
    box-shadow: 0 0 50px rgba(0, 242, 254, 0.3);
    text-align: center;
    animation: alertPulse 2s infinite alternate; /* Efeito de pulso */
}

.alerta-transferencia h4 {
    font-size: 24px;
    color: #00f2fe;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.alerta-transferencia p {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn-receber-grande {
    width: 100%;
    background: #00f2fe;
    color: #0f172a;
    border: none;
    padding: 20px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.4);
}

@keyframes alertPulse {
    from { box-shadow: 0 0 30px rgba(0, 242, 254, 0.2); }
    to { box-shadow: 0 0 60px rgba(0, 242, 254, 0.5); }
}

/* Estilo especial para o card de resumo */
.resumo-b2b {
    border: 2px solid #f1c40f !important; /* Cor amarela para indicar acumulado */
    box-shadow: 0 0 40px rgba(241, 196, 15, 0.2) !important;
}

#listaOcultaB2B button {
    background: #00f2fe;
    color: #0f172a;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

/* Scroll caso a lista seja muito longa */
#listaOcultaB2B {
    max-height: 250px;
    overflow-y: auto;
}

/* Container de Alertas (Nível Alto) */
#containerAlertasB2B {
    z-index: 9998 !important; /* Um pouco abaixo do modal */
}

/* Modais do Sistema (Nível Supremo) */
.modal, #modalAprovarTransferencia {
    z-index: 11000 !important; /* Sempre no topo de tudo */
}

/* Escurecimento do fundo (backdrop) do modal */
.modal-backdrop, .modal-overlay {
    z-index: 10500 !important;
}