/* El espacio interno del equipo en el CELULAR. 30 de octubre de 2026.
 *
 * El panel de celular es el de Ani (public/admin-movil.css) y no se toca: esta hoja va aparte,
 * se carga después de team.css —que es a quien tiene que ganarle— y TODAS sus reglas viven
 * dentro de `@media (max-width:999px)`, el mismo corte que usa el panel móvil. Por encima de ese
 * ancho esta hoja no existe, así que el espacio del equipo en el computador queda exactamente
 * igual, hasta el píxel.
 *
 * Lo que hace: viste las pantallas del equipo con el idioma del panel de celular —la comanda, el
 * selector de pestañas, la hoja de filtros, los 44 px en todo lo tocable y el rojo escaso— sin
 * cambiar ni una ruta, ni un permiso, ni una validación. Lo único que cambia aquí es dónde se
 * dibuja cada cosa.
 *
 * Las fichas (`--admovil-card`, `--admovil-radio-comanda`, `--admovil-barra`…) las declara
 * admin-movil.css en `.adm-shell[data-movil=true]` y en `.adm-hoja`, que son los dos sitios donde
 * vive el equipo en el celular: la sección y la hoja que sube desde abajo. */

@media (max-width:999px){

/* ---- el armazón de la sección ------------------------------------------------------------ */
.adm-shell[data-movil=true] .team-workspace,.adm-hoja .team-form{gap:12px}
.adm-shell[data-movil=true] .team-workspace p,.adm-hoja .team-form p{font-size:14px;line-height:20px}

/* La cabecera de sección del celular ya dice en qué pantalla estás, así que aquí el encabezado
 * se queda con lo que ELLA no dice: el aviso de privacidad, el nombre del módulo en pequeño y la
 * línea que explica quién lo ve. La acción principal ocupa el ancho entero, como en el resto del
 * panel móvil. */
.adm-shell[data-movil=true] .team-section-head{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-items:stretch}
.adm-shell[data-movil=true] .team-section-head>div{flex:none;min-width:0}
.adm-shell[data-movil=true] .team-section-head h2{font-family:'Outfit',sans-serif;font-size:17px;line-height:22px;margin:0 0 4px}
.adm-shell[data-movil=true] .team-section-head h3{font-size:15px}
.adm-shell[data-movil=true] .team-section-head p{font-size:13px;line-height:18px;color:var(--adm-muted)}
.adm-shell[data-movil=true] .team-section-head>.adm-button{width:100%;justify-content:center;min-height:48px}
.adm-shell[data-movil=true] .team-private-label{font-size:11px!important;margin:0 0 2px!important;color:var(--adm-muted)}

/* ---- filtros: el botón, los chips y «Actualizar» ----------------------------------------- */
/* La hoja de filtros es la misma que usan Pedidos, Clientes y Solicitudes. «Actualizar» queda a
 * su lado como icono de 44 px: es una acción, no un filtro, y no cabe dentro de la hoja sin
 * mentir sobre lo que hace. */
.admovil-equipo-barra{display:flex;align-items:flex-start;gap:8px;margin-bottom:12px}
.admovil-equipo-barra>.admovil-filtros{flex:1 1 auto;min-width:0;margin-bottom:0}
.admovil-equipo-barra>.adm-icon{flex:none;min-width:44px;min-height:44px;border:1px solid var(--adm-line);border-radius:999px}

/* ---- la comanda del equipo: un registro por tarjeta -------------------------------------- */
/* En computador son dos columnas de fichas con sombra. En el celular son comandas: una columna,
 * 14 px de radio, 12 de relleno y la misma jerarquía que las de Pedidos —estado arriba, título,
 * resumen de dos líneas y la hora abajo—. */
.adm-shell[data-movil=true] .team-records{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.adm-shell[data-movil=true] .team-record-card{
 background:var(--admovil-card);border:1px solid var(--adm-line);border-radius:var(--admovil-radio-comanda);
 padding:12px;gap:5px;box-shadow:none;min-height:44px}
.adm-shell[data-movil=true] .team-record-card:hover{box-shadow:none}
.adm-shell[data-movil=true] .team-record-card>strong{font-family:'DM Sans',sans-serif;font-size:16px;line-height:22px}
.adm-shell[data-movil=true] .team-record-card>span:not([class]){font-size:13px;line-height:18px;color:var(--adm-muted)}
.adm-shell[data-movil=true] .team-record-card .team-clamp{font-size:13px;line-height:18px}
.adm-shell[data-movil=true] .team-record-card>small{font-size:12px;font-variant-numeric:tabular-nums}
.adm-shell[data-movil=true] .team-card-top{gap:8px;flex-wrap:nowrap}
.adm-shell[data-movil=true] .team-card-top>small{flex:none;font-variant-numeric:tabular-nums}
/* El estado se reconoce por texto, con el mismo chip gris del pase. El rojo del celular está
 * reservado para el «+», la acción principal de cada hoja y lo que pide atención. */
.adm-shell[data-movil=true] .team-status,.adm-hoja .team-status{
 font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;background:var(--adm-bg);
 border:1px solid var(--adm-line);white-space:nowrap}
.adm-shell[data-movil=true] .team-has-response{font-size:12px;font-weight:700}
.adm-shell[data-movil=true] .team-empty{padding:22px 16px;border-radius:var(--admovil-radio-comanda);background:var(--admovil-card)}
.adm-shell[data-movil=true] .team-empty h3{font-size:17px}
.adm-shell[data-movil=true] .team-empty p{font-size:13px;line-height:19px}
/* «Cargar registros anteriores» y «Cargar anteriores»: a todo el ancho, como el resto. */
.adm-shell[data-movil=true] .team-workspace>.adm-button{width:100%;justify-content:center}

/* ---- el formulario de registro dentro de la hoja ----------------------------------------- */
/* Los tres pasos quedan fijos bajo la cabecera de la hoja: en un teléfono, con el teclado
 * abierto, saber en qué paso vas es lo primero que se pierde. */
.adm-hoja .team-steps{position:sticky;top:0;z-index:2;background:var(--admovil-card);
 margin:-14px -16px 2px;padding:10px 16px 8px;gap:4px;border-bottom:1px solid var(--adm-line)}
.adm-hoja .team-steps span{font-size:11px;padding:4px 6px;white-space:nowrap}
.adm-hoja .team-two{grid-template-columns:minmax(0,1fr);gap:12px}
.adm-hoja .team-form fieldset{gap:14px}
.adm-hoja .team-summary{padding:12px;gap:10px;border-radius:var(--admovil-radio-control)}
.adm-hoja .team-summary>div{grid-template-columns:minmax(78px,.55fr) minmax(0,1fr);gap:10px}
.adm-hoja .team-summary dt{font-size:12px}
.adm-hoja .team-summary dd{font-size:14px}
.adm-hoja .team-response,.adm-hoja .team-info{padding:12px;border-radius:var(--admovil-radio-control)}
.adm-hoja .team-review h3,.adm-hoja .team-option-group h3{font-size:17px}
/* El estado del registro es un chip, no una barra: dentro de la hoja `.team-form` es una rejilla
 * y sus hijos se estiran de lado a lado, así que hay que decirle que se quede en su ancho. */
.adm-hoja .team-form>.team-status{justify-self:start}
/* Con el pie fijo de la hoja, el pie pegajoso del formulario de escritorio sobra: no se monta en
 * el celular. Esta regla solo recoge los que quedan sueltos, como el de la confirmación. */
.adm-hoja .team-form-footer{position:static;padding:0;background:none}
.adm-hoja .team-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.adm-hoja .team-actions>.adm-button{width:100%;min-height:48px}
.adm-hoja-pie .team-pie-precio{flex:0 0 auto;align-self:center;font-family:'Outfit',sans-serif;font-size:19px;
 font-weight:600;font-variant-numeric:tabular-nums;padding-left:4px}

/* ---- los soportes: archivo o cámara ------------------------------------------------------ */
/* Dos puertas a la MISMA subida: el selector de archivos de siempre y la cámara del teléfono.
 * El tope de 5 MB, los cuatro tipos y el permiso los sigue decidiendo el servidor. */
.team-files-acciones{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.team-files-acciones>.adm-button{width:100%;justify-content:center;min-height:48px;cursor:pointer;position:relative}
.adm-hoja .team-files small,.adm-shell[data-movil=true] .team-files small{font-size:12px;line-height:17px}
.adm-hoja .team-file,.adm-shell[data-movil=true] .team-file{min-height:44px;padding:4px 10px;border-radius:var(--admovil-radio-control)}


/* ---- turnos: la semana, día por día ------------------------------------------------------ */
.adm-shell[data-movil=true] .team-week-nav{padding:6px 4px;border-radius:var(--admovil-radio-comanda);background:var(--admovil-card)}
.adm-shell[data-movil=true] .team-week-nav strong{font-size:13px;line-height:17px}
.adm-shell[data-movil=true] .team-week-nav .adm-icon{width:44px;height:44px;min-width:44px}
.adm-shell[data-movil=true] .team-text-button{min-height:32px;font-size:13px}
.adm-shell[data-movil=true] .team-week-grid{grid-template-columns:minmax(0,1fr);gap:8px}
.adm-shell[data-movil=true] .team-day{
 background:var(--admovil-card);border-radius:var(--admovil-radio-comanda);padding:12px;gap:8px}
.adm-shell[data-movil=true] .team-day>h3{font-size:14px;line-height:19px}
/* El día de hoy se distingue por su fondo y por su etiqueta «Hoy», no por el rosa: en el panel
 * de celular ese relleno significa ELEGIDO (la pestaña activa, la fila activa de «Más»), y un
 * día no se elige. Es el mismo recurso que ya usaba team.css en pantallas estrechas. */
.adm-shell[data-movil=true] .team-day.is-today{background:var(--adm-bg)}
.adm-shell[data-movil=true] .team-shift{background:transparent;padding:0;gap:4px}
.adm-shell[data-movil=true] .team-shift>.team-card-top>strong{font-family:'Outfit',sans-serif;font-size:16px;font-variant-numeric:tabular-nums}
.adm-shell[data-movil=true] .team-shift p{font-size:13px;line-height:18px}
.adm-shell[data-movil=true] .team-shift .team-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.adm-shell[data-movil=true] .team-shift .team-actions .adm-button{min-height:44px!important;width:100%;justify-content:center;font-size:13px!important}
.adm-shell[data-movil=true] .team-publish-bar{
 background:var(--admovil-card);border:1px solid var(--adm-line);border-radius:var(--admovil-radio-comanda);
 padding:10px 12px;gap:8px;font-size:13px}
.adm-shell[data-movil=true] .team-publish-bar>.adm-button{flex:1 1 100%;justify-content:center}

/* ---- servicio: ubicación, carta y pedido ------------------------------------------------- */
.adm-shell[data-movil=true] .team-location{padding:14px;border-radius:var(--admovil-radio-comanda);background:var(--admovil-card);gap:14px}
.adm-shell[data-movil=true] .team-location .team-two{grid-template-columns:minmax(0,1fr);gap:12px}
.adm-shell[data-movil=true] .team-location>.adm-button{width:100%;justify-content:center;min-height:48px}
.adm-shell[data-movil=true] .team-location-summary{
 padding:10px 12px;border-radius:var(--admovil-radio-comanda);background:var(--admovil-card);gap:10px}
.adm-shell[data-movil=true] .team-location-summary strong{font-size:14px}
.adm-shell[data-movil=true] .team-location-summary span{font-size:12px}
.adm-shell[data-movil=true] .team-location-summary>.adm-button{flex:none;padding:0 12px}

/* La carta del equipo pasa de rejilla de tarjetas a la LISTA de 72 px del panel móvil: la foto a
 * la izquierda, el nombre y el precio en columna, y el «+» a la derecha. Es la misma fila que ya
 * usa la Carta del panel, así que tomar un pedido se parece a lo que la persona ya conoce. */
.adm-shell[data-movil=true] .team-product-grid{grid-template-columns:minmax(0,1fr);gap:6px;padding-bottom:70px}
.adm-shell[data-movil=true] .team-product{
 min-height:72px;padding:8px 10px;gap:10px;border-radius:var(--admovil-radio-comanda);
 background:var(--admovil-card);position:static;align-items:center}
.adm-shell[data-movil=true] .team-product>img{width:48px;height:48px}
.adm-shell[data-movil=true] .team-product strong{font-size:14px;line-height:19px;-webkit-line-clamp:2}
.adm-shell[data-movil=true] .team-product small{font-size:12px;padding-right:0;font-variant-numeric:tabular-nums}
.adm-shell[data-movil=true] .team-product-add{
 position:static;width:36px;height:36px;border-radius:999px;background:var(--admovil-active);color:var(--admovil-primary)}

/* La barra del pedido deja de ser pegajosa y se fija encima de la barra inferior, en su mismo
 * carril: así no tapa la última fila de la carta ni pelea con el «+». */
.adm-shell[data-movil=true] .team-cart-bar{
 position:fixed;left:12px;right:12px;bottom:calc(var(--admovil-barra) + var(--admovil-seguro) + 10px);z-index:38;
 padding:10px 12px;gap:10px;border-radius:var(--admovil-radio-comanda);background:var(--admovil-card);
 box-shadow:0 6px 20px #251c1c26}
.adm-work.has-publish-draft .adm-shell[data-movil=true] .team-cart-bar,
.adm-shell[data-movil=true] .adm-work.has-publish-draft .team-cart-bar{
 bottom:calc(var(--admovil-barra) + var(--admovil-borrador) + var(--admovil-seguro) + 10px)}
html[data-admovil-teclado=true] .adm-shell[data-movil=true] .team-cart-bar{position:static;box-shadow:none}
.adm-shell[data-movil=true] .team-cart-bar>span{font-size:13px;display:grid;gap:2px}
.adm-shell[data-movil=true] .team-cart-bar>.adm-button{flex:none;min-height:44px!important;padding:0 14px}

.adm-shell[data-movil=true] .team-order-review{gap:10px}
.adm-shell[data-movil=true] .team-cart-line{
 padding:12px;gap:10px;border-radius:var(--admovil-radio-comanda);background:var(--admovil-card)}
.adm-shell[data-movil=true] .team-cart-main>div>strong{font-size:15px;line-height:20px}
.adm-shell[data-movil=true] .team-cart-bottom>strong{font-family:'Outfit',sans-serif;font-size:17px;font-variant-numeric:tabular-nums}
.adm-shell[data-movil=true] .team-total{padding:10px 0}
.adm-shell[data-movil=true] .team-total>strong{font-family:'Outfit',sans-serif;font-size:22px;font-variant-numeric:tabular-nums}
.adm-shell[data-movil=true] .team-full{min-height:48px!important}
.adm-hoja .team-option-row{padding:9px 10px;border-radius:var(--admovil-radio-control)}
.adm-hoja .team-option-row strong{font-size:14px}
.adm-hoja .team-quantity{grid-template-columns:44px 26px 44px;gap:3px}
.adm-hoja .team-quantity button{width:44px;height:44px;border-radius:var(--admovil-radio-control)}
.adm-hoja .team-whatsapp-preview{font-size:13px;padding:12px;border-radius:var(--admovil-radio-control)}

/* ---- áreas, mesas y caja ------------------------------------------------------------------ */
.adm-shell[data-movil=true] .team-settings-row,.adm-shell[data-movil=true] .team-settings-table{
 padding:12px;gap:10px;border-radius:var(--admovil-radio-comanda);background:var(--admovil-card)}
.adm-shell[data-movil=true] .team-settings-row{grid-template-columns:minmax(0,1fr) auto}
.adm-shell[data-movil=true] .team-settings-row>.adm-field{grid-column:1/-1}
.adm-shell[data-movil=true] .team-settings-row>.team-check{margin-right:auto}
.adm-shell[data-movil=true] .team-settings-table .team-two{grid-template-columns:minmax(0,1fr);gap:10px}
.adm-shell[data-movil=true] .team-table-controls{grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.adm-shell[data-movil=true] .team-table-controls>.adm-field{max-width:none}
.adm-shell[data-movil=true] .team-table-controls>.team-order-buttons{grid-column:2}
.adm-shell[data-movil=true] .team-table-controls>.team-check{grid-column:1/-1}
.adm-shell[data-movil=true] .team-order-buttons{gap:4px}
.adm-shell[data-movil=true] .team-order-buttons .adm-icon{border:1px solid var(--adm-line);border-radius:var(--admovil-radio-control)}
/* El segundo «Guardar configuración», el del final del formulario, va a todo el ancho. */
.adm-shell[data-movil=true] .team-workspace>fieldset+.adm-button{width:100%;justify-content:center;min-height:48px}

/* ---- 360 px: el ancho más estrecho que se soporta ---------------------------------------- */
@media (max-width:365px){
 .adm-shell[data-movil=true] .team-record-card{padding:10px}
 .adm-shell[data-movil=true] .team-record-card>strong{font-size:15px}
 .adm-shell[data-movil=true] .team-week-nav strong{font-size:12px}
 .adm-shell[data-movil=true] .team-product{padding:7px 8px;gap:8px}
 .adm-shell[data-movil=true] .team-product>img{width:42px;height:42px}
 .adm-shell[data-movil=true] .team-cart-bar{left:8px;right:8px;padding:9px 10px}
 .adm-shell[data-movil=true] .team-cart-bar>span{font-size:12px}
 .adm-shell[data-movil=true] .team-table-controls{gap:8px}
 .adm-hoja .team-steps span{font-size:10px;padding:4px}
 .adm-hoja-pie .team-pie-precio{font-size:17px}
}

}
