/* claro-instalar.css — FROST «Claro» (14-11-2026). Dueño: un solo agente. Ver docs/diseno-14-11/BRIEF-IMPLEMENTAR.md */
/* Agente A2: Instalar en un solo camino + Mi empresa / Administración como Ajustes de iOS (informe C §1 y §3). */

/* =====================================================================================================
   1. INSTALAR: una pregunta grande, un botón lleno, «Paso X de Y» en vez de pastillas
   ===================================================================================================== */
#wz-steps, #wz-title { display: none; }
.wz-count { font-size: 15px; color: var(--muted); margin: 2px 0 6px; }
.wz-count i { display: block; height: 4px; margin-top: 8px; border-radius: 2px; background: var(--border); overflow: hidden; }
.wz-count i b { display: block; height: 100%; background: var(--accent); transition: width .3s; }
#wz .wz-org { font-size: 15px; }
#wz .wz-body h3 { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 8px; }
#wz .wz-body > .hint { font-size: 16px; line-height: 1.45; }
/* Un solo botón lleno por pantalla: lo demás de contorno o como enlace */
#wz-add { background: none; color: var(--accent); border: 1px solid var(--border-hi); box-shadow: none; }
#wz .primary:disabled { opacity: .45; cursor: default; filter: none; }
#wz-scan.is-sec { background: none; color: var(--accent); border: 1px solid var(--border-hi); box-shadow: none; }
#wz .wz-type, #wz .wz-choice .link-btn { align-self: center; min-height: 44px; font-size: 16px; font-weight: 600; color: var(--accent); text-decoration: none; }
#wz .wz-type:hover, #wz .wz-choice .link-btn:hover { text-decoration: underline; }
.wz-typebox { display: flex; flex-direction: column; gap: 6px; }
.wz-typebox .wz-code-hint { margin: 0; font-size: 14px; }
.wz-choice { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin-top: 6px; }
/* Jefe y operador: «Otras formas» no se muestra (el asistente puntual igual se abre solo desde «＋ Instalar punto»).
   BCM y distribuidor: «Herramientas», al pie y en letra chica */
.role-user #inst-other > summary, .role-user #inst-other > .hint, .role-user #inst-mode { display: none; }
#inst-other > summary { font-size: 14px; color: var(--muted); font-weight: 500; min-height: 44px; display: flex; align-items: center; }
.inst-back { width: min(620px, 100%); align-self: center; justify-content: flex-start; text-align: left; min-height: 44px; font-size: 16px !important; font-weight: 600; color: var(--accent) !important; text-decoration: none !important; }
.inst-back:hover { text-decoration: underline !important; }

/* Paso de cargas: de a un rastreador por pantalla */
.wz-of { margin: 0; font-size: 15px; color: var(--muted); }
.wz-of b { color: var(--text); font-weight: 600; }
.wz-card.wz-one { padding: 0; border: 0; background: none; gap: 12px; margin: 0; }
.wz-one .wz-pick { max-height: none; overflow: visible; gap: 8px; }
.wz-one .wz-pick button { min-height: 60px; padding: 10px 14px; border-radius: 14px; font-size: 16px; }
.wz-one .wz-pick b { font-size: 16px; }
.wz-one .wz-pick small { font-size: 14px; }
.wz-one .wz-pick .wz-new { border-style: dashed; }
.wz-one .wz-pick .wz-new .am-pin { font-size: 22px; color: var(--accent); }
.wz-one .wz-pick .wz-new.on { border-style: solid; }
.wz-photo-btn { position: relative; background: none !important; color: var(--accent) !important; border: 1px solid var(--border-hi) !important; box-shadow: none !important; }
.wz-photo-btn .ph { width: 40px; height: 40px; border-radius: 8px; background-size: cover; background-position: center; margin-left: 4px; }
.wz-more { border-top: 1px solid var(--border); padding-top: 4px; }
.wz-more > summary { min-height: 44px; display: flex; align-items: center; gap: 6px; font-size: 16px; color: var(--text); cursor: pointer; list-style: none; }
.wz-more > summary::-webkit-details-marker { display: none; }
.wz-more > summary u { color: var(--accent); text-decoration: none; font-weight: 600; }
.wz-more[open] > summary { margin-bottom: 8px; }
.wz-card.done .pill { font-size: 15px; }

@media (max-width: 860px) {
  /* En el celular la página entera es la que se desplaza: con «overflow: auto» aquí el botón fijo no se pegaba abajo */
  #panel-instalar .inst-wrap { overflow: visible; }
  /* El botón principal de cada paso queda fijo abajo, sobre la barra de pestañas: no hay que bajar a buscarlo */
  #wz .step-nav { position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); z-index: 5; margin: 16px -16px -16px; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--border); }
  #wz .step-nav .primary { flex: 1; min-height: 52px; font-size: 17px; }
  #wz .wz-body h3 { font-size: 24px; }
}

/* =====================================================================================================
   3. MI EMPRESA / ADMINISTRACIÓN como Ajustes de iOS (el grueso de .set-list/.set-group/.set-row está en style.css)
   ===================================================================================================== */
#admin-org .admin-nav { display: none !important; } /* lo reemplaza #org-menu; las secciones se abren desde sus filas */
#admin-org .sec-head .hint { display: none; }        /* párrafos fuera de la vista: van al manual («Ayuda») */
#org-menu.hidden { display: none; }
#org-menu h4:empty { margin-top: 28px; }
#org-back { min-height: 44px; font-size: 16px; font-weight: 600; color: var(--accent); background: none; border: 0; padding: 0; box-shadow: none; }
.set-row.danger { color: var(--bad); justify-content: center; }
.set-row.danger::after { content: none; }
.set-row .sr-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; padding: 10px 0; }
.set-row .sr-main b { font-weight: 600; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-row .sr-main small { margin-left: 0; font-size: 15px; color: var(--muted); }
.set-row .avatar { width: 38px; height: 38px; font-size: 16px; }
.set-row .pill { font-size: 12px; vertical-align: middle; }
/* Personas: lista de filas (antes tarjetas con selector, «Cambiar cargo», «Nueva clave» y «Eliminar» sueltos) */
ul.set-people { list-style: none; margin: 0; padding: 0; }
ul.set-people > li + li .set-row { border-top: 1px solid var(--border); }
ul.set-people > li .set-row { border-top: 0; }
ul.set-people .set-empty { padding: 16px; }
#sec-usuarios .sec-head, #sec-zonas .sec-head { align-items: center; }
/* Empresas (BCM): filas; «Sin empresa» al final y en gris */
.org-rows { max-width: none; }
.org-rows .set-row.unassigned .sr-main b { color: var(--muted); font-weight: 500; }
#org-form-wrap { margin: 0 0 14px; }
#org-form-wrap .inline-form { flex-wrap: wrap; }
.dist-orgs .dist-save { margin-top: 6px; min-height: 40px; }
.dist-orgs .dist-save:disabled { opacity: .45; cursor: default; }
/* Agregar persona: 3 cosas a la vista; usuario y clave plegados */
.fld-more { border-top: 1px solid var(--border); padding-top: 2px; }
.fld-more[open] > summary { margin-bottom: 8px; }
.fld-more > .fld { margin-top: 10px; }
#nu-done #nu-copy { margin-left: 8px; min-height: 40px; }
/* Ficha de la persona (hoja) */
.person-sheet { width: min(480px, 100%); max-height: calc(100dvh - 12vh); overflow-y: auto; gap: 14px; }
.person-sheet .ps-head { display: flex; align-items: center; gap: 12px; }
.person-sheet .ps-head .avatar { width: 44px; height: 44px; font-size: 18px; }
.person-sheet .ps-head h2 { margin: 0; font-size: 22px; }
.person-sheet .ps-head small { color: var(--muted); font-size: 14px; }
.person-sheet .ps-head .detail-close { margin-left: auto; align-self: flex-start; }
.person-sheet .fld > span { font-size: 14px; font-weight: 600; color: var(--muted); }
.person-sheet .fld input, .person-sheet .fld select { width: 100%; }
.person-sheet .role-opt b { font-size: 15.5px; }
.person-sheet .role-opt small { font-size: 14px; }
.person-sheet .ps-fixed { margin: 4px 0 0; font-size: 16px; }
.person-sheet .ps-link { border: 1px solid var(--border); border-radius: var(--radius); min-height: 50px; font-size: 16px; }
.person-sheet .ps-del { align-self: center; min-height: 44px; margin-top: 4px; padding-top: 12px; color: var(--bad) !important; font-size: 15px !important; font-weight: 600; text-decoration: none !important; }
@media (max-width: 860px) {
  .overlay:has(.person-sheet) { padding-top: calc(4vh + env(safe-area-inset-top)); }
  .person-sheet { max-height: calc(100dvh - 8vh); }
}
/* .modal-box pone columna y 42 px de alto a todo label/input: las opciones de permiso quedaban con un círculo gigante */
.person-sheet label.role-opt { flex-direction: row; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 500; color: var(--text); }
.person-sheet .role-opt input { width: 18px; height: 18px; padding: 0; margin: 3px 0 0; flex: none; border: 0; }
.person-sheet .role-opt > span { display: flex; flex-direction: column; gap: 2px; }
.person-sheet .ps-link span { flex: 1; }
.overlay:has(.person-sheet) { padding-top: calc(4vh + env(safe-area-inset-top)); }
.person-sheet { max-height: calc(100dvh - 8vh); }
