/* ===========================
   AJUSTES SELECT2
=========================== */
.select2-container--default .select2-selection--multiple {
    min-height: 39px !important;
    height: 39px !important;
    padding-top: 2px;
    padding-bottom: 2px;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
    margin: 0;
    padding: 0;
    line-height: 28px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin-top: 0 !important;
}

/* ===========================
   PEDIDO VACÍO
=========================== */
#contenedorPedido.con-items #pedidoVacio {
    display: none !important;
}

/* ===========================
   DISPLAY POS (TOTAL / VUELTO)
=========================== */
input.form-control.total-display {
    max-width: 320px;
    height: 92px;
    font-size: 3.4rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-align: center;
    border-radius: 8px;
    line-height: 1;
}

/* Placeholder más discreto */
input.form-control.total-display::placeholder {
    font-size: 2rem;
    opacity: 0.4;
}

/* Vuelto deshabilitado */
.total-disabled {
    background: #f5f5f5;
    color: #6c757d;
}

/* Focus tipo POS */
input.form-control.total-display:focus {
    box-shadow: 0 0 0 4px rgba(82, 184, 72, 0.25);
    border-color: #52b848;
}

/* =========================
   BADGES SUNAT - SUTILES
========================= */

.badge-sunat {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 12px;
    background: #f4f5f7;
    color: #555;
    border: 1px solid rgba(0,0,0,0.06);
}

/* Estados */
.sunat-pendiente {
    color: #9a7b00;
    background: #fff7d6;
    border-color: #ffe58f;
}

.sunat-enviado {
    color: #005c99;
    background: #e6f2ff;
    border-color: #b3dbff;
}

.sunat-aceptado {
    color: #1f7a1f;
    background: #eaf6ea;
    border-color: #bfe6bf;
}

.sunat-rechazado {
    color: #9a1c1c;
    background: #fdeaea;
    border-color: #f5b5b5;
}

.sunat-error {
    color: #9a1c1c;
    background: #fdeaea;
    border-color: #f5b5b5;
}

/* XML */
.badge-xml {
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 10px;
    background: #eef3ff;
    color: #3b5bfd;
    border: 1px solid rgba(59,91,253,0.25);
    text-decoration: none;
}

.badge-xml:hover {
    background: #e0e8ff;
    color: #1f3af5;
    text-decoration: none;
}

/* CDR */
.badge-cdr {
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 10px;
    background: #e9f7ef;
    color: #1e7e34;
    border: 1px solid rgba(30,126,52,0.25);
    text-decoration: none;
}

.badge-cdr:hover {
    background: #dcf3e6;
    color: #145c2a;
    text-decoration: none;
}

/* ================= MODAL CAJA CHICA ================= */

.modal-caja {
    border-radius: 14px;
    padding: 10px;
  }
  
  .modal-caja .modal-body {
    padding: 30px;
  }
  
  #montoApertura {
    font-size: 28px;
    height: 65px;
  }
  
  .modal-backdrop.show {
    opacity: 0.85;
  }
  