/* ============================================================
   Estilos del MODO APP (teléfono) — extraído de Sistema_MD.html (Paso 3 modularización)
   Contenido idéntico al bloque <style> original (solo relocalizado).
   Carga después de estilos.css, en el mismo lugar (cascada intacta).
   ============================================================ */
      /* Al activar modo app, se esconde la vista de compu y se muestra #mvRoot */
      body.mv-on > .header,
      body.mv-on > #roleSelector,
      body.mv-on > #vistaEncargado,
      body.mv-on > #vistaTecnico { display: none !important; }
      #mvRoot { display: none; }
      body.mv-on #mvRoot {
        display: flex; flex-direction: column;
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        height: 100vh; height: 100dvh;   /* dvh = alto VISIBLE real del teléfono (sin la barra del navegador) */
        z-index: 50; background: #f4f6f9;
        font-family: -apple-system, "Segoe UI", Roboto, system-ui, sans-serif; color: #1c2530;
      }
      /* En teléfono, los modales operativos ocupan bien la pantalla */
      body.mv-on .modal { max-width: 96vw !important; width: 96vw !important; max-height: 92vh !important; }

      #mvRoot * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
      #mvHeader { background: linear-gradient(90deg,#080808,#241d02); color: #fff; padding: 14px 16px 12px; flex-shrink: 0; }
      #mvRoot .mv-htop { display: flex; align-items: center; gap: 12px; }
      #mvRoot .mv-marca { font-weight: 800; font-size: 1.02rem; }
      #mvRoot .mv-marca small { display: block; font-weight: 500; opacity: .7; font-size: .66rem; margin-top: 1px; }
      #mvRoot .mv-seg { display: inline-flex; background: rgba(255,255,255,.15); border-radius: 999px; padding: 3px; margin-top: 10px; }
      #mvRoot .mv-seg:empty { display: none; }
      #mvRoot .mv-seg button { border: 0; background: transparent; color: #cdd8e6; font-weight: 700; font-size: .78rem; padding: 6px 11px; border-radius: 999px; cursor: pointer; }
      #mvRoot .mv-seg button.on { background: #fff; color: #080808; }
      #mvRoot .mv-htitle { font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
      #mvRoot .mv-htitle .mv-back { background: rgba(255,255,255,.18); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 999px; font-size: 1.1rem; cursor: pointer; flex-shrink: 0; }
      #mvMain { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 14px 18px; -webkit-overflow-scrolling: touch; }
      #mvRoot .mv-tabbar { flex-shrink: 0; height: 62px; padding-bottom: env(safe-area-inset-bottom, 0px); background: #fff; border-top: 1px solid #e6eaf0; display: flex; box-shadow: 0 -2px 10px rgba(18,40,70,.06); }
      #mvRoot .mv-tabbar button { flex: 1; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #8a97a8; font-size: .64rem; font-weight: 600; cursor: pointer; }
      #mvRoot .mv-tabbar button .ic { line-height: 0; }
      #mvRoot .mv-tabbar button .ic svg { width: 23px; height: 23px; display: block; }
      #mvRoot .mv-tabbar button.on { color: #080808; }
      #mvRoot .mv-tabbar button.on .ic svg { stroke-width: 2.3; }
      #mvRoot .mv-tabbar button.on { color: #080808; }

      #mvRoot .mv-card { background: #fff; border-radius: 15px; box-shadow: 0 2px 10px rgba(18,40,70,.10); padding: 14px; margin-bottom: 11px; }
      #mvRoot .mv-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
      #mvRoot .mv-muted { color: #8a97a8; } #mvRoot .mv-small { font-size: .78rem; } #mvRoot .mv-tiny { font-size: .7rem; }
      #mvRoot h2.mv-sec { font-size: .76rem; text-transform: uppercase; letter-spacing: .5px; color: #8a97a8; margin: 4px 2px 8px; font-weight: 700; }
      #mvRoot .mv-chips { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; padding-bottom: 2px; }
      #mvRoot .mv-chip { flex-shrink: 0; border: 1.5px solid #e6eaf0; background: #fff; border-radius: 999px; padding: 8px 13px; font-weight: 700; font-size: .8rem; color: #080808; cursor: pointer; display: flex; align-items: center; gap: 7px; }
      #mvRoot .mv-chip.on { background: #080808; border-color: #080808; color: #fff; }
      #mvRoot .mv-chip .b { min-width: 19px; height: 19px; border-radius: 999px; background: #c0392b; color: #fff; font-size: .66rem; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
      #mvRoot .mv-chip .b.cero { background: #c3ccd6; }
      #mvRoot .mv-badge { display: inline-flex; align-items: center; font-size: .64rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: #f3eddd; color: #5f6a72; }
      #mvRoot .mv-pill { font-size: .64rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
      #mvRoot .mv-line { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; border: 0; background: #fff; border-radius: 15px; padding: 15px; margin-bottom: 10px; box-shadow: 0 2px 10px rgba(18,40,70,.10); cursor: pointer; }
      #mvRoot .mv-line .ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; background: #f3eddd; flex-shrink: 0; }
      #mvRoot .mv-line .t { font-weight: 800; font-size: .98rem; } #mvRoot .mv-line .d { font-size: .74rem; color: #8a97a8; margin-top: 1px; }
      #mvRoot .mv-line .cnt { margin-left: auto; font-size: 1.45rem; font-weight: 800; color: #080808; min-width: 28px; text-align: center; }
      #mvRoot .mv-line .cnt.cero { color: #c3ccd6; }
      #mvRoot .mv-ot { cursor: pointer; } #mvRoot .mv-ot .sol { font-weight: 800; font-size: 1rem; color: #080808; } #mvRoot .mv-ot .cli { font-weight: 700; margin: 4px 0 1px; }
      #mvRoot .mv-ot .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: #5b6675; font-size: .79rem; margin-top: 7px; } #mvRoot .mv-ot .meta b { color: #2a3340; }
      #mvRoot .mv-ot-head { cursor: pointer; }
      #mvRoot .mv-ot { margin-bottom: 12px; }
      #mvRoot .mv-ot .mv-ot-datos { font-size: .84rem; color: #8a97a8; font-weight: 400; margin-top: 7px; cursor: pointer; line-height: 1.4; }
      #mvRoot .mv-ot .mv-ot-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
      #mvRoot .mv-ot .mv-histico { border: 0; background: transparent; line-height: 0; padding: 2px; cursor: pointer; color: #171717; display: inline-flex; }
      #mvRoot .mv-ot .mv-fgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; margin-top: 9px; cursor: pointer; }
      #mvRoot .mv-ot .mv-f { display: flex; flex-direction: column; gap: 1px; }
      #mvRoot .mv-ot .mv-f span { font-size: .62rem; color: #8a97a8; text-transform: uppercase; letter-spacing: .3px; font-weight: 700; }
      #mvRoot .mv-ot .mv-f b { font-size: .85rem; color: #2a3340; }
      #mvRoot .mv-hist { border: 0; background: #f3eddd; color: #080808; border-radius: 9px; padding: 7px 13px; font-size: .78rem; font-weight: 700; cursor: pointer; }
      /* Asignación en móvil — 2 pasos (el modal vive fuera de #mvRoot → selector global) */
      /* Paso 1: lista de cuadrillas (solo el nombre) */
      .mv-asig-list { display: flex; flex-direction: column; gap: 9px; }
      .mv-asig-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; background: #fff; border: 1.5px solid #e6eaf0; border-radius: 12px; padding: 15px 14px; font-size: .98rem; font-weight: 700; color: #080808; cursor: pointer; box-shadow: 0 2px 8px rgba(18,40,70,.06); }
      .mv-asig-item:active { background: #f4f6f9; }
      .mv-asig-item.bloq { color: #97a3b2; background: #f7f8fa; }
      .mv-asig-item .mv-asig-go { color: #b6c0cd; font-size: 1rem; }
      /* Paso 2: detalle del técnico */
      .mv-asig-det { display: flex; flex-direction: column; }
      .mv-asig-back { align-self: flex-start; border: 0; background: transparent; color: #171717; font-weight: 700; font-size: .86rem; padding: 4px 0 10px; cursor: pointer; }
      .mv-asig-name { margin: 0 0 10px; font-size: 1.15rem; color: #080808; }
      .mv-asig-fields { background: #f7f9fb; border-radius: 12px; padding: 4px 12px; }
      .mv-asig-frow { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f3eddd; font-size: .85rem; }
      .mv-asig-frow:last-child { border-bottom: 0; }
      .mv-asig-frow span { color: #8a97a8; flex-shrink: 0; } .mv-asig-frow b { text-align: right; color: #2a3340; }
      .mv-asig-nota { background: #fdecea; color: #c0392b; font-weight: 600; font-size: .82rem; border-radius: 10px; padding: 10px 12px; margin-bottom: 11px; }
      .mv-asig-acts { display: flex; gap: 10px; margin-top: 16px; }
      .mv-asig-cancel { flex: 1; border: 1.5px solid #cfd8e3; background: #fff; color: #3a4655; border-radius: 11px; padding: 13px; font-weight: 700; font-size: .9rem; cursor: pointer; }
      .mv-asig-ok { flex: 2; border: 0; background: #080808; color: #fff; border-radius: 11px; padding: 13px; font-weight: 800; font-size: .9rem; cursor: pointer; }
      .mv-asig-ok:disabled { background: #c3ccd6; cursor: default; }
      #mvRoot .mv-kpi { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
      #mvRoot .mv-kpi .mv-card { flex: 1; margin: 0; text-align: center; padding: 14px 8px; min-width: 84px; }
      #mvRoot .mv-kpi .n { font-size: 1.7rem; font-weight: 800; color: #080808; line-height: 1; } #mvRoot .mv-kpi .l { font-size: .7rem; color: #8a97a8; margin-top: 4px; font-weight: 600; }
      #mvRoot .mv-big { display: block; width: 100%; text-align: left; border: 0; border-radius: 15px; padding: 16px; margin-bottom: 11px; color: #fff; cursor: pointer; box-shadow: 0 2px 10px rgba(18,40,70,.10); }
      #mvRoot .mv-big .num { float: right; font-size: 1.9rem; font-weight: 800; line-height: 1; } #mvRoot .mv-big .t { font-weight: 800; font-size: 1.02rem; } #mvRoot .mv-big .d { opacity: .9; font-size: .8rem; margin-top: 3px; }
      #mvRoot .mv-note { background: #e9f1ff; border: 1px solid #bcd3ff; color: #171717; border-radius: 12px; padding: 10px 12px; font-size: .78rem; margin-bottom: 12px; }
      #mvRoot .mv-viewbar { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: #3a4655; background: #fff; border-radius: 10px; padding: 9px 12px; margin-bottom: 11px; box-shadow: 0 2px 10px rgba(18,40,70,.06); }
      #mvRoot .mv-viewbar .mv-fecha { margin-left: auto; font-size: .7rem; color: #5f6a72; background: #f3eddd; padding: 3px 9px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
      /* Tarjetas KPI por línea (nivel 1 de Boletas) */
      #mvRoot .mv-kpigrid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 6px; }
      #mvRoot .mv-kpicard { background: #fff; border-radius: 15px; box-shadow: 0 2px 10px rgba(18,40,70,.10); padding: 16px 10px; text-align: center; cursor: pointer; }
      #mvRoot .mv-kpicard .ic { font-size: 1.5rem; line-height: 1; color: #171717; }
      #mvRoot .mv-kpicard .ic svg { width: 26px; height: 26px; display: inline-block; }
      #mvRoot .mv-kpicard .n { font-size: 1.95rem; font-weight: 800; color: #080808; line-height: 1.1; margin-top: 3px; }
      #mvRoot .mv-kpicard .n.cero { color: #c3ccd6; }
      #mvRoot .mv-kpicard .l { font-size: .8rem; color: #5f6a72; font-weight: 600; margin-top: 2px; }
      /* Almacén MD — tarjetas de stock con desglose */
      #mvRoot .mv-stockcard { position:relative; background:#fff; border-radius:20px; box-shadow:0 6px 20px rgba(18,40,70,.09); border:1px solid #f3eddd; padding:20px 16px 15px; margin-bottom:14px; cursor:pointer; text-align:center; transition:transform .08s ease, box-shadow .12s ease; }
      #mvRoot .mv-stockcard:active { transform:scale(.985); box-shadow:0 3px 12px rgba(18,40,70,.12); }
      #mvRoot .mv-stock-t { font-size:.72rem; font-weight:800; letter-spacing:1px; color:#90a0b2; text-transform:uppercase; }
      #mvRoot .mv-stock-n { font-size:3.3rem; font-weight:800; color:#080808; line-height:1; margin:7px 0 1px; letter-spacing:-1.5px; }
      #mvRoot .mv-stock-n2 { font-size:1.4rem; color:#aeb9c6; font-weight:700; letter-spacing:0; }
      #mvRoot .mv-stock-cap { font-size:.72rem; color:#9aa6b4; font-weight:600; margin-bottom:15px; }
      #mvRoot .mv-stock-see { position:absolute; top:17px; right:16px; font-size:.64rem; font-weight:800; color:#c0cad6; letter-spacing:.3px; }
      #mvRoot .mv-sbrow { display:flex; gap:7px; border-top:1px solid #f0f3f7; padding-top:13px; }
      #mvRoot .mv-sb { flex:1; min-width:0; background:#e4effb; border:1px solid #cbe0f4; border-radius:13px; padding:9px 4px; transition:background .1s; }
      #mvRoot .mv-sb:active { background:#cfe2f6; }
      #mvRoot .mv-sb-l { font-size:.61rem; font-weight:800; color:#5d7fa6; text-transform:uppercase; letter-spacing:.4px; }
      #mvRoot .mv-sb-v { font-size:1.18rem; font-weight:800; color:#080808; margin-top:3px; line-height:1; }
      #mvRoot .mv-sb-v small { font-size:.72rem; color:#aeb9c6; font-weight:700; }
      #mvRoot .mv-sb.low { background:#fdeeec; border-color:#f6d4cf; }
      #mvRoot .mv-sb.low .mv-sb-v { color:#c0392b; }
      /* Detalle: barra de resumen */
      #mvRoot .mv-sumbar { display:flex; align-items:center; gap:8px; margin:2px 2px 12px; }
      #mvRoot .mv-sumbar .h { font-size:.98rem; font-weight:800; color:#080808; }
      #mvRoot .mv-sumbar .c { margin-left:auto; font-size:.76rem; font-weight:800; color:#42566f; background:#f3eddd; padding:4px 11px; border-radius:999px; }
      /* Detalle de equipos: filas */
      #mvRoot .mv-eqrow { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px 2px; border-bottom:1px solid #f0f3f7; }
      #mvRoot .mv-eqrow:last-child { border-bottom:0; }
      #mvRoot .mv-eqrow .se { font-weight:800; font-size:.95rem; color:#080808; }
      #mvRoot .mv-tbadge { font-size:.61rem; font-weight:800; padding:4px 11px; border-radius:999px; white-space:nowrap; letter-spacing:.4px; background:#f3eddd; color:#5f6a72; }
      #mvRoot .mv-tbadge.ONT { background:#e3f5f1; color:#16887a; }
      #mvRoot .mv-tbadge.IPTV { background:#e7f0fd; color:#d9a900; }
      #mvRoot .mv-tbadge.ATV { background:#fdf2db; color:#a9760f; }
      /* Estado vacío elegante */
      #mvRoot .mv-empty { text-align:center; color:#aab6c4; padding:30px 10px; }
      #mvRoot .mv-empty .em { font-size:2rem; opacity:.6; }
      #mvRoot .mv-empty .em svg { width:40px; height:40px; opacity:.5; color:#9aa6b4; }
      #mvRoot .mv-search .mv-srch-ic { display:flex; color:#8a97a8; } #mvRoot .mv-search .mv-srch-ic svg { width:18px; height:18px; display:block; }
      #mvRoot .mv-filtbtn svg { width:20px; height:20px; vertical-align:-3px; }
      /* Ícono chico para marcar Prioridad / Inspección por boleta (al lado del historial) */
      #mvRoot .mv-mk { border:0; background:transparent; padding:2px; cursor:pointer; color:#c0cad6; display:inline-flex; line-height:0; }
      #mvRoot .mv-mk svg { width:19px; height:19px; }
      #mvRoot .mv-mk.on.prio svg { fill:currentColor; }
      #mvRoot .mv-mk.on.prio { color:#c0392b; }
      #mvRoot .mv-mk.on.insp { color:#9b59b6; }
      #mvRoot .mv-empty .et { font-size:.84rem; font-weight:600; margin-top:6px; }
      /* Barra de acciones (Registrar / Asignar / Devolver) */
      #mvRoot .mv-actbar { display:flex; gap:8px; margin:0 0 12px; }
      #mvRoot .mv-actbtn { flex:1; border:1.5px solid #d3dce6; background:#fff; color:#080808; border-radius:13px; padding:11px 4px; font-size:.74rem; font-weight:800; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:4px; transition:background .1s; }
      #mvRoot .mv-actbtn .ai { font-size:1.15rem; line-height:1; }
      #mvRoot .mv-actbtn .ai svg { width:20px; height:20px; display:block; }
      #mvRoot .mv-mas-ic svg { width:20px; height:20px; display:block; color:#171717; }
      #mvRoot .mv-acct-menu button svg { width:17px; height:17px; vertical-align:-3px; margin-right:8px; }
      #mvRoot .mv-actbtn:active { background:#f3eddd; }
      #mvRoot .mv-actbtn.primary { background:#080808; color:#fff; border-color:#080808; }
      #mvRoot .mv-actbtn.primary:active { background:#17263d; }
      #mvRoot .mv-eqrow .se-sub { font-size:.7rem; color:#9aa6b4; margin-top:2px; }
      #mvRoot .mv-eqrow .mv-rt { text-align:right; flex-shrink:0; }
      #mvRoot .mv-eqrow .mv-rt .bs { font-size:.74rem; color:#5f6a72; font-weight:700; margin-top:3px; }
      /* Tarjeta de equipo (estilo boleta): serie + subdato tenue + estado/Bs a la derecha */
      #mvRoot .mv-eqcard { padding:13px 14px; cursor:pointer; }
      #mvRoot .mv-eqcard:active { background:#f6f8fb; }
      #mvRoot .mv-eqcard .ti { font-weight:800; font-size:.82rem; color:#080808; }
      #mvRoot .mv-eqcard .mv-eqsub { font-size:.68rem; color:#9aa6b4; font-weight:400; margin-top:5px; }
      #mvRoot .mv-eqcard .mv-rt { text-align:right; flex-shrink:0; }
      #mvRoot .mv-eqcard .mv-rt .bs { font-size:.68rem; color:#9aa6b4; font-weight:400; margin-top:5px; }
      /* Etiqueta del filtro activo que viene de los chips de la tarjeta (con ✕ para quitarlo) */
      #mvRoot .mv-fpill { display:inline-flex; align-items:center; gap:7px; background:#e4effb; color:#171717; border:1px solid #cbe0f4; border-radius:999px; padding:4px 6px 4px 13px; font-size:.76rem; font-weight:700; margin:0 0 10px; }
      #mvRoot .mv-fpill button { border:0; background:#cbe0f4; color:#171717; width:19px; height:19px; border-radius:999px; cursor:pointer; font-weight:800; line-height:1; }
      /* Modo selección para asignar */
      #mvRoot .mv-eqrow.sel { cursor:pointer; }
      #mvRoot .mv-ck { width:24px; height:24px; border-radius:7px; border:2px solid #cfd8e3; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:.9rem; font-weight:800; color:#fff; }
      #mvRoot .mv-ck.on { background:#080808; border-color:#080808; }
      #mvRoot .mv-selbar { display:flex; align-items:center; gap:12px; margin:0 2px 12px; font-size:.92rem; font-weight:800; color:#080808; }
      #mvRoot .mv-selbar .lk { border:0; background:transparent; color:#171717; font-weight:700; font-size:.82rem; cursor:pointer; padding:2px; }
      #mvRoot .mv-bigbtn { width:100%; border:0; background:#080808; color:#fff; border-radius:13px; padding:15px; font-weight:800; font-size:.96rem; cursor:pointer; margin-bottom:12px; }
      #mvRoot .mv-bigbtn:active { background:#17263d; }
      #mvRoot .mv-bigbtn.ghost { background:#fff; color:#3a4655; border:1.5px solid #cfd8e3; }
      /* Filtro de fecha Desde / Hasta */
      #mvRoot .mv-datebar { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 11px; flex-wrap: wrap; }
      #mvRoot .mv-datebar label { flex: 1; min-width: 110px; font-size: .68rem; color: #5f6a72; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; display: flex; flex-direction: column; gap: 3px; }
      #mvRoot .mv-datebar input { border: 1.5px solid #e6eaf0; border-radius: 9px; padding: 8px; font-size: .82rem; font-family: inherit; background: #fff; }
      #mvRoot .mv-datebar .mv-limpiar { background: #f3eddd; border: 0; border-radius: 9px; padding: 9px 11px; font-size: .74rem; font-weight: 700; color: #080808; cursor: pointer; }
      /* Botón de cuenta (header) + menú cerrar sesión / cambiar contraseña */
      #mvHeader { position: relative; }
      #mvRoot .mv-acct { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); background: transparent; color: #fff; font-weight: 800; font-size: .82rem; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
      #mvRoot .mv-acct-menu { position: absolute; right: 14px; left: auto; top: 54px; background: #fff; border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.28); padding: 8px; min-width: 215px; display: none; z-index: 60; }
      body.mv-on #mvRoot .mv-acct-menu.open { display: block; }
      #mvRoot .mv-acct-name { font-weight: 800; color: #080808; padding: 8px 12px 0; }
      #mvRoot .mv-acct-role { color: #5f6a72; font-size: .78rem; padding: 2px 12px 9px; border-bottom: 1px solid #f3eddd; margin-bottom: 6px; }
      #mvRoot .mv-acct-menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 11px 12px; border-radius: 9px; font-size: .9rem; font-weight: 600; color: #1c2530; cursor: pointer; }
      #mvRoot .mv-acct-menu button:active { background: #f4f6f9; }
      /* Línea de vencimiento SLA en las tarjetas */
      #mvRoot .mv-sla { font-size: .73rem; font-weight: 700; margin-top: 6px; }
      /* Banner de urgencia (Inicio) */
      #mvRoot .mv-alert { display: block; width: 100%; text-align: left; border: 0; border-radius: 15px; padding: 14px 16px; margin-bottom: 13px; color: #fff; cursor: pointer; box-shadow: 0 2px 10px rgba(18,40,70,.10); }
      #mvRoot .mv-alert.rojo { background: linear-gradient(135deg,#c0392b,#922b21); }
      #mvRoot .mv-alert.naranja { background: linear-gradient(135deg,#d68910,#a55b09); }
      #mvRoot .mv-alert.ok { background: linear-gradient(135deg,#2e8b57,#1e7a34); }
      #mvRoot .mv-alert-row { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 600; padding: 3px 0; }
      #mvRoot .mv-alert-row .big { font-size: 1.5rem; font-weight: 800; min-width: 34px; }
      #mvRoot .mv-alert-cta { text-align: right; font-size: .78rem; opacity: .9; font-weight: 700; margin-top: 4px; }
      /* Tiles accionables (Inicio) */
      #mvRoot .mv-act { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; border: 0; background: #fff; border-radius: 15px; padding: 14px; margin-bottom: 10px; box-shadow: 0 2px 10px rgba(18,40,70,.10); cursor: pointer; }
      #mvRoot .mv-act .ic { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
      #mvRoot .mv-act .tx { flex: 1; } #mvRoot .mv-act .tx b { font-size: .95rem; }
      #mvRoot .mv-act .cnt { font-size: 1.6rem; font-weight: 800; min-width: 30px; text-align: center; }
      /* Buscador */
      #mvRoot .mv-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 4px 12px; margin-bottom: 11px; box-shadow: 0 2px 10px rgba(18,40,70,.08); }
      #mvRoot .mv-search input { flex: 1; border: 0; outline: 0; padding: 10px 0; font-size: .9rem; font-family: inherit; background: transparent; }
      #mvRoot .mv-search button { border: 0; background: #f3eddd; border-radius: 999px; width: 24px; height: 24px; font-size: .8rem; color: #5f6a72; cursor: pointer; flex-shrink: 0; }
      /* Chips rápidos de fecha */
      #mvRoot .mv-fchips { display: flex; gap: 7px; margin-bottom: 9px; overflow-x: auto; }
      #mvRoot .mv-fchip { flex-shrink: 0; border: 1.5px solid #e6eaf0; background: #fff; border-radius: 999px; padding: 6px 13px; font-size: .78rem; font-weight: 700; color: #080808; cursor: pointer; }
      #mvRoot .mv-fchip.on { background: #080808; border-color: #080808; color: #fff; }
      /* Botones de acción dentro de tarjetas (mapa, solicitudes, pagos) */
      #mvRoot .mv-btnrow { display: flex; gap: 8px; margin-top: 11px; }
      #mvRoot .mv-btn { flex: 1; text-align: center; border: 0; border-radius: 10px; padding: 10px; font-size: .84rem; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; }
      #mvRoot .mv-btn.primary { background: #080808; color: #fff; }
      #mvRoot .mv-btn.ghost { background: #f3eddd; color: #080808; }
      /* Indicador pull-to-refresh */
      #mvPtr { height: 0; opacity: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #f3eddd; color: #171717; font-size: .78rem; font-weight: 700; transition: height .15s ease, opacity .15s ease; flex-shrink: 0; }
      /* Esqueleto de carga inicial */
      #mvRoot .mv-skel { background: linear-gradient(90deg,#f3eddd,#f7f9fb,#f3eddd); border-radius: 14px; margin-bottom: 10px; }
      #mvRoot .mv-loadtxt { text-align: center; color: #5f6a72; font-size: .85rem; font-weight: 600; margin: 14px 0 12px; }
      /* Tiles de Boletas sin ícono */
      #mvRoot .mv-act.nolist { padding-left: 16px; }
      #mvRoot .mv-act .cnt.cero { color: #c3ccd6; }
      /* Punto azul marino al inicio de cada pendiente (en vez de emoji) */
      #mvRoot .mv-act .mv-dot { width: 12px; height: 12px; border-radius: 50%; background: #080808; flex-shrink: 0; margin-left: 3px; }
      /* Acordeón de pendientes (Inicio): TODO en un solo contenedor (encabezado + desglose) */
      #mvRoot .mv-acc { background: #fff; border-radius: 14px; border-left: 4px solid #171717; box-shadow: 0 2px 10px rgba(18,40,70,.10); margin-bottom: 11px; overflow: hidden; }
      #mvRoot .mv-acch { display: flex; align-items: center; justify-content: space-between; width: 100%; background: transparent; border: 0; padding: 16px 15px; cursor: pointer; }
      #mvRoot .mv-acch .mv-acc-t { font-weight: 800; font-size: 1rem; color: #080808; }
      #mvRoot .mv-acch .mv-acc-r { display: flex; align-items: center; gap: 11px; }
      #mvRoot .mv-acch .mv-acc-r b { background: #171717; color: #fff; font-size: 1rem; min-width: 30px; text-align: center; padding: 3px 12px; border-radius: 999px; }
      #mvRoot .mv-acch .chev { color: #8a97a8; font-size: .9rem; transition: transform .15s; }
      #mvRoot .mv-acc.open .chev { transform: rotate(180deg); }
      #mvRoot .mv-acc.open .mv-acch { border-bottom: 1px solid #f3eddd; }
      #mvRoot .mv-acc-body { padding: 4px 6px 6px; }
      /* Los pendientes dentro del acordeón = filas planas con sangría; número = pastilla gris */
      #mvRoot .mv-acc-body .mv-act { background: transparent; box-shadow: none; border-radius: 0; margin: 0; padding: 13px 9px 13px 20px; border-bottom: 1px solid #f1f4f8; }
      #mvRoot .mv-acc-body .mv-act:last-child { border-bottom: 0; }
      #mvRoot .mv-acc-body .mv-act .cnt { background: #f3eddd; color: #5f6a72; border-radius: 999px; padding: 3px 11px; font-size: .82rem; min-width: 0; }
      #mvRoot .mv-acc-body .mv-note { margin: 8px; }
      /* Filas del acordeón = color de su sección, SIN negrilla + punto del mismo color */
      #mvRoot .mv-acc-body .mv-act .tx b { font-weight: 400; font-size: .9rem; }
      #mvRoot .mv-acc-body .mv-dot { width: 8px; height: 8px; }
      #mvRoot .mv-acc-enc .mv-act .tx b { color: #171717; }
      #mvRoot .mv-acc-enc .mv-dot { background: #171717; }
      #mvRoot .mv-acc-tec .mv-act .tx b { color: #0fa3a0; }
      #mvRoot .mv-acc-tec .mv-dot { background: #0fa3a0; }
      /* SLA: contenedor azul degradado; cada fila = nº ENTEL · nº MD · bolita · detalle (texto blanco) */
      #mvRoot .mv-sla3 { display: flex; flex-direction: column; gap: 1px; background: linear-gradient(135deg,#171717,#080808); border-radius: 14px; padding: 8px 8px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(18,40,70,.18); }
      #mvRoot .mv-sla3row { display: grid; grid-template-columns: 42px 42px 16px 1fr; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; }
      #mvRoot .mv-sla3row .ent, #mvRoot .mv-sla3row .md { font-size: 1.4rem; font-weight: 800; color: #fff; text-align: center; background: transparent; border: 0; padding: 4px 0; border-radius: 8px; cursor: pointer; }
      #mvRoot .mv-sla3row .md { color: rgba(255,255,255,.82); }
      #mvRoot .mv-sla3row.on { background: rgba(255,255,255,.12); }
      #mvRoot .mv-sla3row .ent.on, #mvRoot .mv-sla3row .md.on { background: rgba(255,255,255,.28); color: #fff; box-shadow: 0 0 0 1.5px rgba(255,255,255,.6) inset; }
      #mvRoot .mv-sla3row .dot { width: 14px; height: 14px; border-radius: 50%; }
      #mvRoot .mv-sla3row .l { font-size: .9rem; font-weight: 700; color: #fff; }
      /* Encabezado de columnas (ENTEL / MD) */
      #mvRoot .mv-sla3head { padding-top: 2px; padding-bottom: 4px; }
      #mvRoot .mv-sla3head .ent, #mvRoot .mv-sla3head .md { font-size: .62rem; font-weight: 800; letter-spacing: .4px; color: rgba(255,255,255,.6); }
      /* Encabezado de la pantalla de desglose de una tarjeta de arriba */
      #mvRoot .mv-kpihdr { font-weight: 800; font-size: 1.05rem; color: #080808; margin: 2px 2px 6px; }
      /* Filtros activos del tablero: KPI línea + semáforo plazo resaltan cuando están elegidos */
      #mvRoot .mv-kpisel { cursor: pointer; transition: box-shadow .12s; }
      #mvRoot .mv-kpisel.on { box-shadow: 0 0 0 2px #171717 inset, 0 2px 10px rgba(18,40,70,.12); }
      #mvRoot .mv-kpisel.on .n { color: #171717; }
      #mvRoot .mv-sla3i.on { background: rgba(255,255,255,.16); }
      #mvRoot .mv-fchipline { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: #3a4655; margin: 0 2px 11px; }
      #mvRoot .mv-fchipline b { color: #080808; }
      #mvRoot .mv-fchipline button { margin-left: auto; border: 0; background: #f3eddd; color: #171717; border-radius: 999px; padding: 5px 12px; font-size: .76rem; font-weight: 700; cursor: pointer; }
      /* MAPA real (Leaflet) en el modo app */
      #mvRoot .mv-metabar { background: #fff; border-left: 4px solid #e8702a; border-radius: 10px; padding: 9px 12px; font-size: .8rem; font-weight: 700; color: #3a4655; margin-bottom: 10px; box-shadow: 0 2px 10px rgba(18,40,70,.06); }
      #mvRoot .mv-metabar.ok { border-left-color: #1e7a34; }
      #mvRoot .mv-mapfilt { display: flex; gap: 8px; margin-bottom: 10px; }
      #mvRoot .mv-mapfilt select { flex: 1; min-width: 0; border: 1.5px solid #e6eaf0; border-radius: 10px; padding: 9px; font-size: .8rem; font-family: inherit; background: #fff; }
      #mvRoot .mv-mapslot { height: 60vh; min-height: 320px; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(18,40,70,.12); }
      #mvRoot .mv-mapslot .leaflet-container { height: 100%; width: 100%; border-radius: 14px; }
      #mvRoot .mv-mapficha { position: fixed; left: 0; right: 0; bottom: 62px; z-index: 800; background: #fff; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.25); padding: 14px 16px; max-height: 60vh; overflow-y: auto; }
      #mvRoot .mv-mapficha .hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; font-size: .98rem; margin-bottom: 8px; }
      #mvRoot .mv-mapficha .hd button { border: 0; background: #f3eddd; border-radius: 999px; width: 28px; height: 28px; font-size: .9rem; cursor: pointer; flex-shrink: 0; }
      #mvRoot .mv-mapficha .rw { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid #f1f4f8; font-size: .82rem; }
      #mvRoot .mv-mapficha .rw span { color: #8a97a8; flex-shrink: 0; } #mvRoot .mv-mapficha .rw b { text-align: right; }
      #mvRoot .mv-mapficha .mv-mtags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
      #mvRoot .mv-mapficha .mv-mtag { color: #fff; font-size: .66rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
      #mvRoot .mv-mapficha .mv-mfotos { display: flex; gap: 6px; margin: 10px 0; }
      /* Boletas nivel 1: 4 botones flotantes separados que llenan el alto de la pantalla */
      #mvRoot .mv-linegrid { display: flex; flex-direction: column; justify-content: flex-start; gap: 11px; height: 100%; padding: 0; }
      #mvRoot .mv-linegrid .mv-linebtn { flex: 1; max-height: 13vh; display: flex; align-items: center; justify-content: center; width: 100%; max-width: none; margin: 0; background: #fff; border: 1.5px solid #cfd8e3; border-radius: 16px; font-size: 1.08rem; font-weight: 800; color: #080808; text-align: center; cursor: pointer; box-shadow: 0 3px 14px rgba(18,40,70,.12); }
      #mvRoot .mv-linegrid .mv-linebtn:active { background: #f4f6f9; transform: scale(.99); }
      /* Boletas nivel 2: barra buscador + botón de filtro */
      #mvRoot .mv-search2 { display: flex; gap: 8px; align-items: stretch; margin-bottom: 9px; }
      #mvRoot .mv-filtbtn { position: relative; border: 0; background: #fff; border-radius: 12px; padding: 0 15px; font-size: 1.1rem; color: #080808; cursor: pointer; box-shadow: 0 2px 10px rgba(18,40,70,.08); flex-shrink: 0; }
      #mvRoot .mv-filtbtn.on { background: #080808; color: #fff; }
      #mvRoot .mv-filtbtn .b { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; border-radius: 999px; background: #c0392b; color: #fff; font-size: .6rem; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
      #mvRoot .mv-count { font-size: .78rem; font-weight: 700; color: #5f6a72; margin: 2px 2px 10px; }
      /* Panel de filtros desplegable */
      #mvRoot .mv-filtpanel { background: #fff; border-radius: 14px; padding: 13px; margin-bottom: 11px; box-shadow: 0 2px 10px rgba(18,40,70,.10); }
      /* Hoja de acciones en grupo (Boletas) — lista prolija tappable */
      #mvRoot .mv-bulk { background: #fff; border-radius: 14px; padding: 6px 6px 8px; margin-bottom: 11px; box-shadow: 0 2px 10px rgba(18,40,70,.10); }
      #mvRoot .mv-bulk-h { font-size: .82rem; font-weight: 800; color: #171717; padding: 9px 10px 2px; }
      #mvRoot .mv-bulk-grp { font-size: .64rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #98a2ad; padding: 11px 10px 3px; }
      #mvRoot .mv-bulk-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; border: 0; background: transparent; text-align: left; padding: 12px 10px; font-size: .92rem; font-weight: 600; color: #171717; cursor: pointer; border-radius: 10px; }
      #mvRoot .mv-bulk-row + .mv-bulk-row { border-top: 1px solid #f1f4f8; }
      #mvRoot .mv-bulk-row:active { background: #f1f4f8; }
      #mvRoot .mv-bulk-row .n { flex: 0 0 auto; background: #f3eddd; color: #5f6a72; border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 700; }
      #mvRoot .mv-bulk-row .chev { flex: 0 0 auto; color: #c3ccd6; font-size: 1.1rem; }
      #mvRoot .mv-fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 8px; }
      #mvRoot .mv-flab { display: flex; flex-direction: column; gap: 3px; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: #5f6a72; }
      #mvRoot .mv-flab select, #mvRoot .mv-flab input { border: 1.5px solid #e6eaf0; border-radius: 9px; padding: 8px; font-size: .82rem; font-family: inherit; background: #fff; color: #1c2530; width: 100%; }
      /* ── Compactar la escala general (se sentía grande en el teléfono) ── */
      #mvMain { padding: 11px 11px 84px; }
      #mvRoot .mv-card { padding: 12px; margin-bottom: 9px; }
      #mvRoot .mv-line { padding: 12px; }
      #mvRoot .mv-htitle { font-size: 1.12rem; }
      #mvRoot .mv-kpi .n { font-size: 1.4rem; }
      #mvRoot .mv-act { padding: 12px; }
      #mvRoot .mv-act .ic { width: 38px; height: 38px; font-size: 1.1rem; }
      #mvRoot .mv-act .cnt { font-size: 1.35rem; }
      #mvRoot .mv-ot .cli { font-size: .92rem; }
      #mvRoot h2.mv-sec { margin: 2px 2px 7px; }
