/* «Equipos por centros» (30-10-2026) · misma familia visual que «Equipos por cotejar». */
:root{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#132f41;background:#f3f7f9}*{box-sizing:border-box}body{margin:0}
.eq-head{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;padding:12px 16px;background:#fff;border-bottom:1px solid #dfe7ec}
.eq-back{justify-self:start;color:#0B2D5B;font-weight:700;text-decoration:none;border:1px solid #cfd9e0;border-radius:10px;padding:10px 14px;white-space:nowrap}
.eq-logo img{height:38px;width:auto;display:block}
.eq-main{max-width:860px;margin:0 auto;padding:18px 16px 40px}
.eq-main h1{margin:4px 0 6px;font-size:26px;color:#0B2D5B}
.eq-intro{margin:0 0 12px;color:#425c6d}
.eq-status{padding:14px;border-radius:10px;background:#eef3f6}.eq-status.error{background:#fdecea;color:#8a1f11}
.eq-stale{padding:12px 14px;border-radius:10px;background:#fff7e6;border:1px solid #f1d39a;color:#7a4b00;font-weight:600}
/* Tarjetas por centro (rediseño 31-10-2026): nombre grande, equipos · cotejados · por cotejar y barra de avance; grupos pequeños abajo. */
.eq-sites{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:12px}
.eq-card{display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid #dfe7ec;border-left:6px solid #0B2D5B;border-radius:14px;padding:14px 16px 14px;color:inherit;text-decoration:none}
.eq-card.is-done{border-left-color:#2EA04A}
.eq-card:active{transform:scale(.995);background:#f7fafc}.eq-card:focus-visible{outline:3px solid #0B2D5B;outline-offset:2px}
.eq-card-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.eq-card-top h2{margin:0;font-size:21px;line-height:1.2;color:#0B2D5B}
.eq-chev{flex:none;width:34px;height:34px;border-radius:50%;background:#0B2D5B;color:#fff;font-size:24px;line-height:32px;text-align:center;font-weight:800}
.eq-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.eq-stat{background:#f3f7f9;border-radius:10px;padding:8px 10px;text-align:center}.eq-stat b{display:block;font-size:26px;line-height:1.1;color:#0B2D5B}.eq-stat span{display:block;font-size:12.5px;font-weight:700;color:#5f7484;margin-top:2px}
.eq-stat.ok{background:#eaf6ee}.eq-stat.ok b{color:#15803d}.eq-stat.pend b{color:#B54708}.eq-stat.ok.pend b{color:#15803d}
.eq-prog{height:8px;border-radius:999px;background:#e6edf2;overflow:hidden}.eq-prog span{display:block;height:100%;background:#2EA04A;border-radius:999px;transition:width .3s}
.eq-badges{display:flex;flex-wrap:wrap;gap:6px}
.eq-b{display:inline-flex;align-items:center;gap:5px;font-weight:800;font-size:12.5px;color:#fff;background:#64748b;border-radius:7px;padding:4px 8px;white-space:nowrap}.eq-b i{font-style:normal;background:rgba(255,255,255,.22);border-radius:5px;padding:0 5px}
.eq-g-RS{background:#B42318}.eq-g-RH{background:#1D4ED8}.eq-g-GEN{background:#B54708}.eq-g-SB{background:#0B2D5B}.eq-g-AR,.eq-g-EST,.eq-g-POR_DEFINIR{background:#5b6b7a}
/* Dentro de un centro */
.eq-tools{display:flex;flex-direction:column;gap:10px;margin:0 0 12px}
#q{width:100%;font:inherit;font-size:17px;padding:12px 14px;border:1px solid #cfd9e0;border-radius:12px;background:#fff}
.eq-chips{display:flex;flex-wrap:wrap;gap:8px}
.eq-chip{font:inherit;font-weight:800;font-size:15px;padding:9px 12px;border-radius:999px;border:1px solid #cfd9e0;background:#fff;color:#0B2D5B;cursor:pointer}.eq-chip i{font-style:normal;color:#5f7484;margin-left:4px}
.eq-chip.on{background:#0B2D5B;color:#fff;border-color:#0B2D5B}.eq-chip.on i{color:#cfe0f5}
.eq-group{margin:14px 0}.eq-group h2{display:flex;align-items:center;gap:8px;font-size:19px;margin:0 0 8px;color:#0B2D5B}.eq-group h2 small{font-size:14px;color:#5f7484;font-weight:600}
.eq-item{background:#fff;border:1px solid #dfe7ec;border-left:4px solid #E9A23B;border-radius:12px;margin:0 0 8px}.eq-item.is-ok{border-left-color:#2EA04A;background:#f6fbf7}
.eq-item summary{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:12px 14px;cursor:pointer;list-style:none;min-height:72px}.eq-item summary::-webkit-details-marker{display:none}
.eq-item summary:focus-visible{outline:3px solid #0B2D5B;outline-offset:2px;border-radius:12px}
.eq-code{font-weight:800;font-size:15px;color:#fff;background:#64748b;border-radius:8px;padding:8px 10px;white-space:nowrap}
.eq-body{min-width:0;display:flex;flex-direction:column;gap:2px}.eq-body b{font-size:17px}.eq-body small{color:#425c6d}
.eq-state{font-weight:800;color:#B54708;text-align:right;white-space:nowrap}.eq-item.is-ok .eq-state{color:#15803d}.eq-state em{display:block;font-style:normal;font-weight:700;font-size:13px;color:#0B2D5B;text-decoration:underline}
.eq-item[open] .eq-state em{text-decoration:none;color:#5f7484}
.eq-ficha{margin:0;padding:4px 14px 12px;border-top:1px dashed #dfe7ec;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px 16px}
.eq-ficha div{padding:6px 0}.eq-ficha dt{font-size:13px;color:#5f7484;font-weight:700;text-transform:uppercase;letter-spacing:.02em}.eq-ficha dd{margin:2px 0 0;font-size:16px;overflow-wrap:anywhere}
.eq-note{margin:0;padding:0 14px 8px;color:#425c6d}
.eq-go{display:flex;justify-content:center;align-items:center;margin:0 14px 14px;min-height:50px;border-radius:12px;background:#B54708;color:#fff;font-weight:800;text-decoration:none;font-size:17px}.eq-item.is-ok .eq-go{background:#fff;color:#15803d;border:1px solid #b7dfc3}
.eq-empty{background:#fff;border:1px dashed #cfd9e0;border-radius:12px;padding:16px;text-align:center;color:#425c6d}
body.tech-readable .eq-body small{font-size:15px}body.tech-readable .eq-chip,body.tech-readable .eq-go{overflow-wrap:normal}
@media (max-width:520px){.eq-sites{grid-template-columns:1fr}.eq-item summary{grid-template-columns:auto 1fr}.eq-state{grid-column:1/-1;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:10px}}

/* Agregar equipo, ramales y estado local (31-10-2026) */
.eq-titlebar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.eq-titlebar h1{margin:4px 0 6px}
.eq-add{display:inline-flex;align-items:center;min-height:46px;padding:0 16px;border-radius:12px;background:#0B2D5B;color:#fff;font-weight:800;text-decoration:none;white-space:nowrap}
.eq-item.eq-child{margin-left:28px;border-left-style:dashed}.eq-item.eq-local{background:#f4f7fb}.eq-body i{font-style:normal;color:#0B2D5B;font-weight:700}
.eq-state.tablet{color:#0B2D5B}.eq-item.is-ok .eq-state.tablet{color:#15803d}
.eq-stale.eq-msg{background:#eaf6ee;border-color:#b7dfc3;color:#14532D}

/* Botón verde «+» y carpetas/subcarpetas (31-10-2026, «autorizo botón agregar») */
body.tech-readable .eq-fab,.eq-fab{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:calc(22px + env(safe-area-inset-bottom));z-index:40;width:64px;height:64px;min-height:0;padding:0;border:0;border-radius:50%;background:#0B6E4F;color:#fff;font:400 40px/1 system-ui;display:grid;place-items:center;box-shadow:0 8px 22px #0B6E4F66;cursor:pointer;transition:transform .2s;overflow-wrap:normal}
.eq-fab[hidden]{display:none}.eq-fab.open{transform:rotate(45deg)}.eq-fab:focus-visible{outline:3px solid #0B2D5B;outline-offset:3px}
.eq-fab-menu{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:calc(98px + env(safe-area-inset-bottom));z-index:40;display:grid;gap:8px;min-width:240px}.eq-fab-menu[hidden]{display:none}
body.tech-readable .eq-fab-menu a,body.tech-readable .eq-fab-menu button,.eq-fab-menu a,.eq-fab-menu button{display:flex;align-items:center;min-height:54px;padding:10px 18px;border-radius:14px;border:1px solid #D4D9DF;background:#fff;color:#16202B;font:700 18px system-ui;text-align:left;text-decoration:none;box-shadow:0 6px 18px #0B2D5B26;cursor:pointer;overflow-wrap:normal}
.eq-fab-menu [hidden]{display:none}
.eq-branch-pick{position:fixed;inset:auto 0 0 0;max-height:80vh;z-index:45;display:flex;flex-direction:column;gap:10px;padding:16px 16px calc(16px + env(safe-area-inset-bottom));background:#fff;border-radius:18px 18px 0 0;box-shadow:0 -10px 40px #0005}.eq-branch-pick[hidden]{display:none}
.eq-bp-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.eq-bp-head b{font-size:19px;color:#0B2D5B}
body.tech-readable .eq-bp-head button,.eq-bp-head button{width:46px;height:46px;min-height:0;padding:0;border-radius:50%;border:1px solid #D4D9DF;background:#fff;font-size:20px}
.eq-branch-pick input{min-height:48px;padding:8px 12px;border:1px solid #C9D2DE;border-radius:10px;font-size:17px}
.eq-bp-list{overflow:auto;display:grid;gap:6px}.eq-bp-list a{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border:1px solid #E4E7EB;border-radius:10px;background:#F8FAFC;color:#16202B;text-decoration:none}.eq-bp-list a[hidden]{display:none}.eq-bp-list span{font-size:15px;color:#5f7484}
body.tech-readable .eq-subt,.eq-subt{margin:-2px 0 8px 14px;min-height:40px;padding:6px 12px;border-radius:999px;border:1px solid #C9D2DE;background:#F4F7FB;color:#0B2D5B;font:700 15px system-ui;cursor:pointer;overflow-wrap:normal}
.eq-sub{margin:0 0 10px 18px;padding-left:10px;border-left:2px solid #C9D2DE}.eq-sub[hidden]{display:none}.eq-fold{font-style:normal}
.eq-main{padding-bottom:110px}
.eq-sub .eq-item.eq-child{margin-left:0}

/* Cotejos por enviar (cotejo libre, 02-11-2026) */
.eq-pending{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:0 0 12px;padding:10px 14px;border:1px solid #f0c98a;background:#fff7e8;border-radius:12px;font-size:15px}
.eq-pending b{color:#7a4b00}.eq-pending span{color:#5c6b7a;flex:1 1 200px}
.eq-pending button{min-height:44px;border:0;border-radius:10px;padding:0 16px;background:#09283b;color:#fff;font-weight:800}.eq-pending button:disabled{opacity:.5}
/* en1 (10-11-2026): fichas que quedaron solo en este aparato (no están en ZUREX). */
.eq-localonly{flex:1 1 100%;padding:10px 12px;margin:0 0 4px;border-left:6px solid #b3261e;background:#fff1f0;border-radius:8px}
.eq-localonly b{display:block;color:#8c1d18}.eq-localonly span{display:block;color:#5c6b7a;margin:2px 0 6px}
.eq-localonly ul{margin:0;padding-left:18px}.eq-localonly li{margin:4px 0}.eq-localonly a{color:#0B2D5B;font-weight:700}
.eq-was{display:block;color:#93370d;font-size:13px}
