/* comprovante.css - Estilo Compatível com DOMPDF */
/* DOMPDF não suporta: grid, flex, gradientes, border-radius em alguns casos */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DejaVu Sans', 'Arial', 'Helvetica', sans-serif;
    font-size: 11px;
    line-height: 1.4;
    color: #333;
    background: #fff;
    margin: 0;
    padding: 20px;
}

.comprovante-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #ddd;
}

/* ==================== CABEÇALHO ==================== */
.cabecalho {
    width: 100%;
    border-bottom: 3px solid #ff6b35;
    background: #2c3e50;
    color: white;
}

.cabecalho-tabela {
    width: 100%;
    border-collapse: collapse;
}

.cabecalho-tabela td {
    padding: 15px;
    vertical-align: middle;
}

.logo-area {
    width: 25%;
    text-align: left;
}

.logo-img {
    max-height: 50px;
    max-width: 150px;
    background: white;
    padding: 5px;
}

.logo-texto {
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin: 0;
}

.info-empresa-topo {
    width: 50%;
    text-align: center;
}

.empresa-nome {
    font-size: 14px;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 5px;
}

.empresa-dados {
    font-size: 9px;
    color: #ccc;
}

.titulo-comprovante {
    width: 25%;
    text-align: right;
}

.titulo-comprovante h2 {
    color: #ff6b35;
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 5px 0;
}

.pedido-numero {
    font-size: 12px;
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    display: inline-block;
}

.pedido-data {
    font-size: 9px;
    color: #ccc;
    margin-top: 5px;
}

/* ==================== SEÇÃO TÍTULO ==================== */
.secao-titulo {
    background: #f8f9fa;
    padding: 8px 15px;
    border-bottom: 2px solid #ff6b35;
    margin: 0;
    font-size: 12px;
    font-weight: bold;
    color: #2c3e50;
}

/* ==================== TABELA 2 COLUNAS ==================== */
.tabela-2colunas {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.tabela-2colunas td {
    vertical-align: top;
    padding: 0;
}

.coluna-esquerda {
    width: 50%;
    padding-right: 10px;
}

.coluna-direita {
    width: 50%;
    padding-left: 10px;
}

.card {
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.card-header {
    background: #f8f9fa;
    padding: 8px 12px;
    border-bottom: 2px solid #ff6b35;
}

.card-header h3 {
    margin: 0;
    font-size: 11px;
    font-weight: bold;
    color: #2c3e50;
}

.card-body {
    padding: 12px;
}

/* ==================== INFO ROWS ==================== */
.info-row {
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-label {
    font-weight: bold;
    width: 90px;
    display: inline-block;
    color: #666;
    font-size: 10px;
}

.info-value {
    display: inline-block;
    color: #333;
    font-size: 10px;
}

/* ==================== CARD DE PAGAMENTO ==================== */
.pagamento-card {
    border: 1px solid #ffcc99;
    background: #fffaf5;
    margin: 0 15px 15px 15px;
}

.pagamento-header {
    background: #ff6b35;
    padding: 10px 15px;
}

.pagamento-header h3 {
    margin: 0;
    font-size: 11px;
    font-weight: bold;
    color: white;
}

.pagamento-body {
    padding: 15px;
}

.pagamento-valor-total {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ffcc99;
}

.pagamento-valor-total .label {
    font-size: 10px;
    color: #666;
    display: block;
}

.pagamento-valor-total .valor {
    font-size: 22px;
    font-weight: bold;
    color: #ff6b35;
    display: block;
    margin-top: 5px;
}

.pagamento-detalhes-tabela {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.pagamento-detalhes-tabela td {
    padding: 8px;
    text-align: center;
    border: 1px solid #ffe0cc;
    background: white;
}

.pagamento-detalhes-tabela .label {
    font-size: 9px;
    color: #666;
    display: block;
}

.pagamento-detalhes-tabela .value {
    font-size: 11px;
    font-weight: bold;
    color: #333;
    display: block;
    margin-top: 3px;
}

.pagamento-descricao {
    background: #f8f9fa;
    padding: 8px;
    font-size: 9px;
    color: #555;
    text-align: center;
    border: 1px solid #eee;
}

/* ==================== TABELA DE PRODUTOS ==================== */
.tabela-produtos {
    margin: 15px;
}

.tabela-produtos table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e0e0e0;
}

.tabela-produtos th {
    background: #f8f9fa;
    padding: 8px 10px;
    text-align: left;
    font-size: 10px;
    font-weight: bold;
    border-bottom: 2px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
}

.tabela-produtos td {
    padding: 8px 10px;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    font-size: 10px;
}

.tabela-produtos th:last-child,
.tabela-produtos td:last-child {
    border-right: none;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* Totais da tabela */
.tabela-produtos tfoot td {
    background: #fafafa;
    padding: 8px 10px;
}

.tabela-produtos tfoot tr.total-final td {
    background: #fff8f0;
    font-weight: bold;
    font-size: 11px;
}

/* ==================== STATUS ==================== */
.status-area {
    text-align: center;
    margin: 15px;
}

.status-badge {
    display: inline-block;
    padding: 6px 20px;
    font-weight: bold;
    font-size: 10px;
}

.status-badge.pendente {
    background: #fff3cd;
    color: #856404;
    border-left: 3px solid #ffc107;
}

.status-badge.confirmado {
    background: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
}

.status-badge.cancelado {
    background: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
}


/* ==================== RODAPÉ ==================== */
.rodape-comprovante {
    background: #f8f9fa;
    padding: 10px 15px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    margin-top: 15px;
}

.rodape-comprovante p {
    margin: 3px 0;
    font-size: 8px;
    color: #666;
}

.rodape-comprovante .data-emissao {
    font-size: 7px;
    color: #999;
}

/* ==================== MARGENS ==================== */
.mt-10 { margin-top: 10px; }
.mb-10 { margin-bottom: 10px; }
.ml-15 { margin-left: 15px; }
.mr-15 { margin-right: 15px; }