/* Estilos de las apps del taller (Deco): orden, mostrador, compras, grúa, calificación, administración. */
.sub { color: var(--muted); font-size: 13px; display: block }
.warn-txt { color: var(--warn); font-weight: 700 }
.in.chico { height: 40px; font-size: 15px; border-radius: 10px; padding: 0 10px }
.cal { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; border-radius: 6px; padding: 1px 6px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); white-space: nowrap }
.cal-intermedio { background: var(--accent-soft); color: var(--accent); border-color: transparent }
.cal-alto { background: #E6F0FF; color: #1E4FA0; border-color: transparent }
.cal-premium { background: #FFF1D9; color: #8A4B00; border-color: transparent }
.cal-bajo { background: var(--bad-soft); color: var(--bad); border-color: transparent }
.chip-ro { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent) }
.chip-ro.mal { background: var(--bad-soft); color: var(--bad) }
.tarjeta.tarde { border-left-color: var(--bad) } .tarjeta.gar { border-left-color: var(--warn) }
.tarjeta .promesa { font-weight: 700 }
.grupo { border: 1px dashed var(--line); border-radius: 12px; padding: 0 10px; margin: 8px 0 }
.grupo-t { display: block; font-size: 12px; font-weight: 800; color: var(--accent); padding-top: 8px; text-transform: uppercase; letter-spacing: .04em }
.linea .desc .sub { margin-top: 2px }
.linea .desc select { margin-top: 6px; max-width: 260px }
.escogido { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--bg) }
.buscador { display: flex; flex-direction: column; gap: 6px }
.resultados { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; max-height: 360px; overflow-y: auto }
.res { display: flex; justify-content: space-between; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border: 0; border-top: 1px solid var(--line); background: var(--panel); width: 100%; font-size: 15px }
.res:first-child { border-top: 0 }
.card > .res { border: 1px solid var(--line); border-radius: 12px }
.res:hover, .res:focus-visible { background: var(--accent-soft) }
.res-n { min-width: 0; overflow-wrap: anywhere }
.res-d { display: flex; flex-direction: column; align-items: flex-end; flex: none; text-align: right }
.res-d small { font-size: 12px; color: var(--muted) }
.lista-simple { display: flex; flex-direction: column; gap: 6px }
.pedido { font-size: 14px; border-top: 1px solid var(--line); padding-top: 6px }
.estado { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 9px; background: var(--bg); color: var(--muted); white-space: nowrap }
.est-pedido, .est-autorizado { background: var(--warn-soft); color: var(--warn) }
.est-cotizado, .est-comprado { background: var(--accent-soft); color: var(--accent) }
.est-recibido, .est-entregado { background: var(--ok-soft); color: var(--ok) }
.pedido-card, .cotiz, .venta, .pregunta { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 6px; background: var(--bg) }
.pedido-card.urgente, .cotiz.vieja { border-color: var(--bad) }
.pregunta.abierta { border-color: var(--warn) }
.respuesta { background: var(--panel); border-radius: 10px; padding: 8px 10px; font-weight: 600 }
.venta.anulada { opacity: .6 }
.nota span { font-weight: 600 }
.tag.pieza { background: var(--accent-soft); color: var(--accent); border-color: transparent; text-transform: none; letter-spacing: 0; font-size: 12px }
.datos2.chico { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) }
.total.grande { font-size: 22px; font-weight: 800 }
details summary { cursor: pointer; font-weight: 700; color: var(--accent); padding: 6px 0 }
details[open] { display: flex; flex-direction: column; gap: 10px }
/* mecánico */
.quien { display: flex; gap: 12px; align-items: center }
.cara { border-radius: 50%; object-fit: cover; flex: none; background: var(--accent-soft); color: var(--accent); display: inline-grid; place-items: center; font-weight: 800; font-family: var(--f-display) }
.nivel { display: inline-block; font-size: 13px; font-weight: 800; color: var(--on-accent); background: var(--accent); padding: 2px 10px; border-radius: 999px; margin-top: 4px }
.barra-nivel { height: 10px; border-radius: 999px; background: var(--bg); overflow: hidden; border: 1px solid var(--line) }
.barra-nivel span { display: block; height: 100%; background: var(--accent) }
.estrellas { color: var(--line); letter-spacing: 1px } .estrellas .on { color: #F2A900 }
.medallas { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px }
.medalla { border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 2px; opacity: .55 }
.medalla.si { opacity: 1; border-color: var(--accent); background: var(--accent-soft) }
.medalla span { font-size: 24px } .medalla small { color: var(--muted); font-size: 12px }
.trabajo, .mec-fila { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding-top: 8px }
.trabajo > div:first-child, .mec-fila > div:nth-child(2) { flex: 1; min-width: 0 }
.der { text-align: right; flex: none }
.dato.yo { font-weight: 800; color: var(--accent) }
/* mostrador */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start }
@media (max-width: 900px) { .pos { grid-template-columns: minmax(0, 1fr) } }
.pos-linea { display: grid; grid-template-columns: minmax(0, 1fr) auto 96px auto; gap: 6px 8px; align-items: center; border-top: 1px solid var(--line); padding-top: 8px }
.pos-linea:has(input + input) { grid-template-columns: minmax(0, 1fr) auto 86px 86px auto }
.pos-n { grid-column: 1 / -1; font-size: 15px }
.pos-c { display: flex; gap: 6px; align-items: center } .pos-c .btn { width: 40px; padding: 0 }
.pos-linea > b { text-align: right; min-width: 70px }
@media print { .no-imprimir, .arriba, .tabs, .msg { display: none !important } .pagina { max-width: none; padding: 0 } .card { border: 0 } body { background: #FFFFFF } }
/* compras */
.opcion { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--bg) }
/* grúa */
.gps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 6px }
.gps .btn { flex-direction: column; gap: 0; min-height: 64px }
.gps .btn small { font-weight: 600; color: var(--muted); font-size: 12px }
.gps .btn.hecho { background: var(--ok-soft); border-color: var(--ok); color: var(--ok) }
.recomienda { border-radius: 16px; padding: 14px; background: var(--accent-soft); color: var(--accent); display: flex; flex-direction: column; align-items: center; text-align: center }
.recomienda b { font-size: 34px; font-family: var(--f-display) }
/* calificación en caja (tableta) */
.kiosco { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; padding: 10px 0 40px; text-align: center }
.kiosco h1 { font-size: 34px }
.k-logo img { width: 96px; height: 96px; border-radius: 50%; object-fit: contain; background: #FFFFFF; padding: 4px; border: 1px solid var(--line) }
.k-mec { display: flex; gap: 18px; align-items: center; justify-content: center; text-align: left }
.k-mec small { color: var(--muted); font-size: 16px }
.pregunta-k { display: flex; flex-direction: column; gap: 10px; font-size: 20px; font-weight: 700 }
.k-estrellas { display: flex; justify-content: center; gap: 8px }
.k-estrellas button { font-size: 64px; line-height: 1; border: 0; background: none; color: var(--line); padding: 4px }
.k-estrellas button.on { color: #F2A900 }
.btn.grande-k { min-height: 64px; font-size: 20px }
.btn.grande-k[aria-pressed="true"], .k-nps button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent) }
.k-nps { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px }
.k-nps button { min-height: 52px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-weight: 800; font-size: 18px; padding: 0 }
.kiosco.gracias { padding-top: 15vh } .kiosco.gracias p { font-size: 20px; color: var(--muted) }
/* administración */
.alertas { display: flex; flex-direction: column; gap: 8px }
.alerta { display: flex; gap: 12px; align-items: center; text-align: left; border: 0; border-radius: 12px; padding: 10px 12px; font-size: 15px; font-weight: 600 }
.alerta b { font-size: 20px; min-width: 40px }
.alerta.warn { background: var(--warn-soft); color: var(--warn) } .alerta.mal { background: var(--bad-soft); color: var(--bad) } .alerta.inf { background: var(--accent-soft); color: var(--accent) }
.barras { display: flex; flex-direction: column; gap: 4px }
.barras svg rect { fill: var(--accent) } .barras svg rect.aprox { fill: var(--accent); opacity: .5 }
.barras-ejes { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted) }
.barra-h { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px }
.barra-h .b { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden } .barra-h .b i { display: block; height: 100%; background: var(--accent) }
.marcas { display: flex; flex-wrap: wrap; gap: 6px } .marcas .chip small { color: var(--muted); margin-left: 4px }
.servicios { display: flex; flex-direction: column; gap: 12px }
.servicio { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px }
.servicio.inactiva { opacity: .6 }
.servicio .fila > * { flex: 1 1 110px }
.pago-fila { border-top: 1px solid var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 6px }
.tarjeta.ancha > span { min-width: 0; overflow-wrap: anywhere }
.tarjeta.ancha > span:first-child:not(.pl):not(.cara) { flex: 1 }
