/* Reset para impressão e visualização */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: #f1f2f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    color: #2d3436;
}

/* Container que simula o papel da impressora térmica */
.recibo-container {
    background: #fff;
    width: 380px; /* Largura padrão de bobina */
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 4px;
    position: relative;
}

/* Logo no Recibo */
.recibo-logo {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
}
.logo-main { font-weight: 300; }
.logo-sub { font-weight: 800; }

.info-venda {
    text-align: center;
    font-size: 0.85rem;
    color: #636e72;
    margin-bottom: 20px;
    border-bottom: 1px dashed #dfe6e9;
    padding-bottom: 15px;
}

/* Itens */
.item-linha {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 5px;
}
.item-nome { flex: 1; padding-right: 10px; }
.item-valor { font-weight: 700; }

.item-desc {
    font-size: 0.75rem;
    color: #d63031;
    margin-bottom: 10px;
    display: block;
}

/* Total */
.total-bloco {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #2d3436;
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 800;
}

/* QR Code */
.qr-container {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    border: 1px solid #f1f2f6;
    border-radius: 8px;
}
.qr-code { width: 150px; height: 150px; }

/* Botões */
.botoes-acao { margin-top: 30px; display: flex; gap: 10px; }
button {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 700;
}
.btn-print { background: #2d3436; color: white; }
.btn-voltar { background: #dfe6e9; color: #2d3436; }

/* REGRAS DE IMPRESSÃO */
@media print {
    body { background: white; padding: 0; }
    .botoes-acao { display: none; }
    .recibo-container { 
        box-shadow: none; 
        width: 100%; 
        padding: 10px;
    }
}

