/* Orden simple del taller (OrdenSimple.razor, prefijo ts-).
   Pensada para una persona mayor y para el celular: letra grande, botones grandes,
   buen contraste, un paso debajo del otro y nada que no haga falta. */

.ts-pagina {
    max-width: 760px;
    margin: 0 auto;
    padding: 12px 16px 48px;
    font-size: 1.15rem;
    color: #1f2328;
}

.ts-cab {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.ts-cab h1 { font-size: 1.7rem; font-weight: 700; margin: 0; flex: 1; }
.ts-volver, .ts-completa { font-size: 1rem; text-decoration: none; color: #0b5ed7; white-space: nowrap; }
.ts-cargando { color: #555; }

.ts-paso {
    background: #fff;
    border: 2px solid #d0d7de;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
}
.ts-paso.hecho { border-color: #2e7d32; }
.ts-paso.bloqueado { opacity: .55; }
.ts-paso h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 12px;
}
.ts-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1f2328;
    color: #fff;
    font-size: 1.1rem;
    flex: none;
}
.ts-paso.hecho .ts-num { background: #2e7d32; }
.ts-sub { font-size: 1.1rem; font-weight: 700; margin: 16px 0 8px; }

.ts-label { display: block; font-weight: 600; margin: 12px 0 4px; }
.ts-input {
    display: block;
    width: 100%;
    font-size: 1.15rem;
    min-height: 52px;
    padding: 10px 12px;
    border: 2px solid #8c959f;
    border-radius: 10px;
    background: #fff;
    color: inherit;
}
.ts-input:focus { outline: 3px solid #86b7fe; border-color: #0b5ed7; }
.ts-input-grande { font-size: 1.3rem; min-height: 58px; }
textarea.ts-input { min-height: 90px; }
.ts-ayuda { color: #555; margin: 8px 0; font-size: 1.05rem; }

/* Lista de clientes encontrados */
.ts-lista { display: grid; gap: 8px; margin: 10px 0 12px; }
.ts-opcion {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    min-height: 60px;
    padding: 10px 14px;
    border: 2px solid #8c959f;
    border-radius: 10px;
    background: #f6f8fa;
    font-size: 1.15rem;
}
.ts-opcion small { color: #555; font-size: 1rem; }
.ts-opcion:hover, .ts-opcion:focus { border-color: #0b5ed7; background: #eef4ff; }

/* Cliente elegido */
.ts-elegido { display: flex; align-items: flex-start; gap: 12px; }
.ts-elegido > div { flex: 1; }
.ts-elegido strong { font-size: 1.3rem; }

/* Botones de elección (tipo, marca, problemas, accesorios) */
.ts-botones {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.ts-botones-anchos { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ts-boton {
    min-height: 60px;
    padding: 8px 12px;
    border: 2px solid #8c959f;
    border-radius: 12px;
    background: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2328;
    line-height: 1.2;
}
.ts-boton-chico { min-height: 52px; font-size: 1.05rem; }
.ts-boton:hover { border-color: #0b5ed7; }
.ts-boton.activo {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #fff;
}

/* Botones de acción */
.ts-fila { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.ts-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    padding: 10px 18px;
    border: 2px solid #1f2328;
    border-radius: 12px;
    background: #1f2328;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: 12px;
}
.ts-btn:hover { color: #fff; filter: brightness(1.1); }
.ts-btn:disabled { opacity: .5; }
.ts-btn-verde { background: #2e7d32; border-color: #2e7d32; }
.ts-btn-claro { background: #fff; color: #1f2328; border-color: #8c959f; }
.ts-btn-claro:hover { color: #1f2328; background: #f6f8fa; }
.ts-btn-chico { min-height: 48px; font-size: 1rem; margin-top: 0; }
.ts-btn-enorme { width: 100%; min-height: 68px; font-size: 1.35rem; }

.ts-mas { margin-top: 14px; }
.ts-mas summary { cursor: pointer; font-weight: 600; color: #0b5ed7; padding: 6px 0; }

.ts-error {
    background: #fdecea;
    border: 2px solid #c62828;
    color: #8e1b1b;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
}

/* Orden guardada */
.ts-listo {
    text-align: center;
    background: #fff;
    border: 2px solid #2e7d32;
    border-radius: 16px;
    padding: 28px 16px;
}
.ts-listo > i { font-size: 3.5rem; color: #2e7d32; }
.ts-listo h1 { font-size: 1.8rem; font-weight: 700; margin: 8px 0; }
.ts-listo-numero { font-size: 2rem; font-weight: 800; letter-spacing: .5px; margin: 0 0 8px; }
.ts-listo-botones { display: grid; gap: 4px; max-width: 420px; margin: 12px auto 0; }
.ts-listo-botones .ts-btn { width: 100%; }

@media (max-width: 576px) {
    .ts-pagina { padding: 8px 12px 40px; }
    .ts-cab h1 { font-size: 1.45rem; }
    .ts-completa { display: none; }
    .ts-botones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ts-botones-anchos { grid-template-columns: 1fr; }
    .ts-elegido { flex-direction: column; }
}

/* Configuración del taller y tipos de equipo (ot-cfg-, ot-tipo-) */
.ot-cfg-seccion { padding: 16px; margin-bottom: 14px; }
.ot-cfg-seccion h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.ot-cfg-rubros { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 10px; }
.ot-cfg-rubro {
    display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px; text-align: left;
    border: 2px solid #d0d7de; border-radius: 12px; background: #fff; font-weight: 600;
}
.ot-cfg-rubro i { font-size: 1.4rem; }
.ot-cfg-rubro.activo { border-color: #2e7d32; background: #e8f5e9; }
.ot-cfg-switch { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.ot-cfg-switch input { margin-top: 4px; flex: none; }
.ot-cfg-ayuda { color: #57606a; font-size: .92rem; margin: 6px 0; }
.ot-cfg-guardar { display: flex; justify-content: flex-end; }
.ot-tipo-alta { display: flex; gap: 8px; padding: 12px; }
.ot-tipo-alta input { flex: 1; }
.ot-fila-inactiva td { opacity: .6; }
.ot-tabla-tipos input.form-control-sm { min-width: 160px; }

/* Lista de órdenes: aviso de "lista para retirar" */
.ot-btn-lista { background: #2e7d32; border-color: #2e7d32; color: #fff; }
.ot-btn-lista:hover { color: #fff; filter: brightness(1.1); }

/* Presupuesto de la orden: trabajos armados */
.ot-trabajos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.ot-trabajos > span { font-weight: 600; }
