/* Facturación en el panel del operador: interruptor, pasos, tarjetas de saldo y barras. Usa los colores del panel. */
.fx-cabeza { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.fx-cabeza h3 { margin: 0 12px 6px 0; display: inline-block; }
.chip.aviso { background: var(--ambar-fondo); color: var(--ambar); }

.fx-interruptor { position: relative; display: inline-block; width: 64px; height: 36px; cursor: pointer; flex: none; }
.fx-interruptor input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.fx-interruptor span { position: absolute; inset: 0; border-radius: 999px; background: var(--regla); transition: background .18s; }
.fx-interruptor span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--blanco); box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .18s; }
.fx-interruptor input:checked + span { background: var(--hoja); }
.fx-interruptor input:checked + span::after { transform: translateX(28px); }
.fx-interruptor input:focus-visible + span { outline: 3px solid var(--tinta); outline-offset: 2px; }

.fx-pasos { list-style: none; margin: 8px 0 16px; padding: 0; display: grid; gap: 2px; }
.fx-paso { display: flex; align-items: flex-start; gap: 12px; padding: 8px 4px; }
.fx-paso small { display: block; color: var(--tinta-suave); font-weight: 400; }
.fx-marca { flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--regla); display: grid; place-items: center; font-size: .85rem; font-weight: 800; color: #fff; }
.fx-paso.hecho .fx-marca { background: var(--hoja); border-color: var(--hoja); }
.fx-paso.aviso .fx-marca { background: var(--jitomate); border-color: var(--jitomate); }

.fx-tarjeta { background: var(--papel-2); border: 1px solid var(--regla); border-radius: 10px; padding: 14px 16px; margin: 0 0 14px; }
.fx-tarjeta h4 { margin: 14px 0 6px; font-size: 1rem; }
.fx-tarjeta > h4:first-child { margin-top: 0; }
.fx-saldo { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.fx-saldo span, .fx-saldo small { display: block; color: var(--tinta-suave); font-size: .85rem; }
.fx-saldo strong { display: block; font-size: 2.6rem; line-height: 1.05; font-family: var(--f-cifra); }
.fx-saldo .der { text-align: right; }
.fx-saldo .der b { font-size: 1.3rem; }

.fx-medidor { height: 12px; border-radius: 999px; background: var(--regla); overflow: hidden; margin: 6px 0 4px; }
.fx-medidor i { display: block; height: 100%; background: var(--hoja); border-radius: 999px; transition: width .3s; }
.fx-medidor.poco i { background: var(--etiqueta-osc); }
.fx-medidor.sin i { background: var(--jitomate); }

.fx-alerta { margin: 6px 0; padding: 8px 12px; border-radius: 8px; background: var(--jitomate-fondo); color: var(--jitomate); font-weight: 700; }
.fx-botones { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-botones .btn.elegido { background: var(--activo-bg); color: var(--activo-tx); border-color: var(--activo-bg); }

.fx-movs { margin-top: 10px; }
.fx-movs > summary { cursor: pointer; font-weight: 700; padding: 10px 0; min-height: 44px; }

.fx-clientes { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.fx-clientes li { background: var(--papel-2); border: 1px solid var(--regla); border-radius: 10px; padding: 10px 14px; cursor: pointer; }
.fx-clientes li:hover { border-color: var(--tinta); }
.fx-clientes li:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }
.fx-fila { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fx-fila small { display: block; color: var(--tinta-suave); }
.fx-fila .der { text-align: right; white-space: nowrap; }

@media (max-width: 480px) { .fx-saldo strong { font-size: 2.1rem; } .fx-botones .btn { flex: 1 1 28%; } }
@media (prefers-reduced-motion: reduce) { .fx-interruptor span, .fx-interruptor span::after, .fx-medidor i { transition: none; } }

.fx-exacta { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.fx-exacta .campo { flex: 1 1 180px; margin: 0; }
.fx-exacta .btn { min-height: 46px; }
