/* ==========================================================================
   GERENCIADOR DE CUPONS - RESPONSIVO E CENTRALIZADO
   ========================================================================== */

   .a3-cupom-wrapper {
    max-width: 800px; /* Um pouco mais largo que a cortesia para acomodar bem a tabela */
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    font-family: 'Inter', sans-serif;
    color: #333;
    box-sizing: border-box;
}

/* Boxes (Criar e Limpar) */
.a3-cupom-box {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 20px;
}

.a3-cupom-box.danger-zone {
    background: #fff;
    border: 1px dashed #ccc;
}

.a3-cupom-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #111;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Tipografia e Labels */
.a3-cupom-label {
    font-size: 13px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    margin-top: 15px;
    color: #000;
}

/* Inputs e Selects */
.a3-cupom-input, 
.a3-cupom-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    height: 42px;
    font-size: 14px;
    background-color: #fff;
}

/* Grid de Formulários */
.a3-cupom-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

/* Botões */
.a3-btn {
    height: 45px;
    font-size: 15px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}
.a3-btn-dark { background: #111 !important; color: #fff; }
.a3-btn-dark:hover { background: #3e3e3e !important; }

.a3-btn-danger { background: #dc3545 !important; color: #fff; }
.a3-btn-danger:hover { background: #23c844 !important; }

/* Tabela de Cupons */
.a3-cupom-table-container {
    overflow-x: auto; /* Impede quebra no celular */
    margin-top: 10px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.a3-cupom-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.a3-cupom-table th {
    background: #f4f4f4;
    text-align: left;
    padding: 12px 15px;
    font-size: 13px;
    color: #333;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
    white-space: nowrap;
}

.a3-cupom-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #555;
    vertical-align: middle;
}

.a3-cupom-table tr:last-child td { border-bottom: none; }

.a3-cupom-delete {
    color: #dc3545;
    font-weight: bold;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    background: #fdeaea;
    transition: 0.2s;
    display: inline-block;
    text-align: center;
    font-size: 12px;
}
.a3-cupom-delete:hover {
    background: #dc3545;
    color: #fff;
}

/* ==========================================================================
   MOBILE RESPONSIVO (max-width: 768px)
   ========================================================================== */
@media(max-width: 768px) {
    .a3-cupom-wrapper {
        padding: 20px 15px;
        border: none;
        box-shadow: none;
        border-radius: 0;
    }
    
    .a3-cupom-grid-3 {
        grid-template-columns: 1fr; /* Transforma as 3 colunas em 1 */
        gap: 10px;
    }
    
    .a3-btn {
        margin-top: 10px;
    }
}