.campo { width: 100%; border: 1px solid #cbd5e1; border-radius: .5rem; padding: .5rem .75rem; background: #fff; }
.campo:focus { outline: 2px solid #10b981; border-color: #10b981; }
.etiqueta { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; color: #475569; }
.boton { border-radius: .5rem; padding: .5rem 1rem; font-weight: 600; cursor: pointer; transition: background .15s; }
.boton:focus-visible, .enlace-menu:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
.boton-primario { background: #059669; color: #fff; }
.boton-primario:hover { background: #047857; }
.boton-gris { background: #e2e8f0; color: #334155; }
.boton-gris:hover { background: #cbd5e1; }
.tarjeta { background: #fff; border: 1px solid #e2e8f0; border-radius: .75rem; padding: 1rem; }
.tabla { width: 100%; font-size: .9rem; border-collapse: collapse; }
.tabla th { text-align: left; padding: .5rem; color: #475569; border-bottom: 2px solid #d1fae5; white-space: nowrap; }
.tabla td { padding: .5rem; border-bottom: 1px solid #f1f5f9; }
.fila-roja { background: #fef2f2; }
.fila-amarilla { background: #fffbeb; }
.insignia { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.tarjeta { box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.titulo-tarjeta { font-weight: 600; color: #1e293b; }
.pastilla { border: 1px solid #cbd5e1; background: #fff; border-radius: .6rem; padding: .4rem .8rem; font-size: .85rem; }
.enlace-menu { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .6rem .8rem; border-radius: .6rem; color: #475569; text-align: left; cursor: pointer; }
.enlace-menu:hover { background: #f1f5f9; }
.enlace-menu.activo { background: #e8f0fe; color: #1d4ed8; font-weight: 600; }

/* Modal de vista previa de boleta y formato térmico */
.modal-ticket { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 0; background: rgba(15,23,42,.48); }
.modal-ticket.hidden { display: none; }
.modal-ticket-caja { width: min(100%, 820px); max-height: 100vh; background: #fff; border-radius: .75rem; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal-ticket-cabecera { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.25rem; border-bottom:1px solid #e2e8f0; }
.modal-ticket-cabecera h2 { font-size:1.2rem; font-weight:600; }
.modal-ticket-cabecera p { color:#64748b; font-size:.85rem; margin-top:.2rem; }
.modal-ticket-cabecera button { font-size:1.5rem; color:#64748b; padding:.2rem .5rem; }
.modal-ticket-contenido { overflow:auto; padding:1rem; background:#f1f5f3; }
.modal-ticket-pie { display:flex; justify-content:flex-end; gap:.5rem; padding:.8rem 1rem; border-top:1px solid #e2e8f0; }
.boleta-80 { width: min(100%, 390px); margin:0 auto; padding:20px 22px; background:#fff; color:#111827; font:12px/1.45 'Courier New',monospace; box-shadow:0 1px 5px rgba(0,0,0,.08); }
.boleta-centro { text-align:center; }
.boleta-logo { color:#07945f; font: bold 32px/1 Arial,sans-serif; }
.boleta-centro h1 { font: bold 18px/1.2 Arial,sans-serif; margin:4px 0; }
.boleta-centro h2 { font-weight:800; margin:7px 0 2px; }
.boleta-centro p { margin:1px 0; }
.boleta-linea { border-top:1px dashed #64748b; margin:9px 0; }
.boleta-datos p { margin:3px 0; overflow-wrap:anywhere; }
.boleta-tabla-cab,.ticket-producto { display:flex; justify-content:space-between; gap:8px; }
.boleta-tabla-cab { font-weight:bold; }
.boleta-items>small { display:block; margin:3px 0 7px; color:#475569; }
.ticket-desc { max-width:75%; overflow-wrap:anywhere; }
.ticket-producto { margin-top:5px; }
.ticket-producto-detalle { padding-left:8px; margin-bottom:4px; }
.boleta-totales div { display:flex; justify-content:space-between; gap:8px; margin:3px 0; }
.boleta-total { font-size:14px; font-weight:bold; border-top:1px solid #111; border-bottom:1px solid #111; padding:5px 0; margin:6px 0!important; }
.boleta-footer { margin-top:6px; }
.boleta-aviso { font-size:9px; font-weight:bold; margin-top:8px!important; }
@media(max-width:640px) { .modal-ticket-caja { border-radius:0; } .modal-ticket-contenido { padding:.5rem; } .boleta-80 { padding:15px 12px; } }

/* Logotipo oficial proporcionado para MinkaFarma */
.boleta-logo-img{display:block;width:25mm;height:25mm;object-fit:contain;margin:0 auto 2mm}
