/* ==========================================================================
   ENTREHIERRO — firmas de falla (panel navy con lienzos) y tolerancias (tabla)
   Niveles de la tabla con pills de estado (§5.2). Sin ámbar.
   ========================================================================== */
.screen--entrehierro { background: var(--bg-2); }
.eh { position: absolute; inset: 0; padding: 32px 40px 32px; display: flex; flex-direction: column; }
.eh-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.eh-cab .intro { max-width: 980px; }
.eh-vistas { flex: none; }

/* ---------- Vista firmas ---------- */
.eh-firmas { flex: 1; min-height: 0; margin-top: 22px; display: grid; grid-template-columns: 320px 1fr 400px; gap: 20px; }
.screen--entrehierro.ver-tolerancias .eh-firmas { display: none; }
.eh-conds { display: flex; flex-direction: column; gap: 10px; }
.eh-cond { display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 12px 18px; min-height: 88px; text-align: left; }
.eh-cond b { font: 700 20px/1.15 var(--font-display); color: var(--fg-brand); }
.eh-cond small { font: 400 15px/1.3 var(--font-sans); color: var(--fg-2); }
.eh-cond:active { background: var(--bg-3); }
.eh-cond.is-active { border-color: var(--gamt-teal); box-shadow: inset 0 0 0 2px var(--gamt-teal); }

.eh-panel { display: flex; flex-direction: column; padding: 18px 20px 14px; background: var(--gamt-navy); border-color: var(--gamt-navy); min-width: 0; }
.eh-panel__arriba { display: grid; grid-template-columns: 330px 1fr; gap: 18px; align-items: center; }
.eh-cv-polar { width: 330px; height: 330px; }
.eh-leyenda { display: flex; flex-direction: column; gap: 10px; }
.eh-leyenda__i { display: flex; align-items: center; gap: 12px; font: 500 16px/1.2 var(--font-mono); color: rgba(255,255,255,.9); }
.eh-leyenda__i svg { width: 40px; height: 8px; flex: none; }
.eh-leyenda__nota { margin-top: 6px; font: 400 14px/1.45 var(--font-sans); color: rgba(255,255,255,.74); }
.eh-cv-xy { flex: 1; min-height: 0; width: 100%; margin-top: 8px; }
.eh-panel__pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }

.eh-info { padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.eh-info__h { font: 700 30px/1.1 var(--font-display); color: var(--fg-brand); margin-top: -4px; }
.eh-blk { display: flex; flex-direction: column; gap: 6px; }
.eh-blk .texto { font-size: 17px; color: var(--fg-1); }
.eh-sen { display: flex; flex-direction: column; gap: 8px; }
.eh-sen .chip { font-family: var(--font-mono); font-size: 15px; }

/* ---------- Vista tolerancias ---------- */
.eh-tol { display: none; flex: 1; min-height: 0; margin-top: 22px; grid-template-columns: 1fr 460px; gap: 20px; }
.screen--entrehierro.ver-tolerancias .eh-tol { display: grid; }
.eh-tabla { padding: 28px 32px; display: flex; flex-direction: column; gap: 14px; }
.eh-tabla__h { font: 700 28px/1.15 var(--font-display); color: var(--fg-brand); margin-top: -4px; }
.eh-tabla table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.eh-tabla th, .eh-tabla td { padding: 13px 14px; border-bottom: 1px solid var(--border-1); text-align: left; }
.eh-tabla thead th { padding-top: 6px; }
.eh-tabla tbody th { font: 600 18px/1.25 var(--font-sans); color: var(--fg-1); }
.eh-tabla td { font-size: 20px; color: var(--gamt-navy); white-space: nowrap; }
.eh-tabla .pill { font-size: 13px; }
.eh-defs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.eh-defs div { padding: 14px 18px; border-radius: 12px; background: var(--bg-2); }
.eh-defs b { display: block; font: 600 13px/1.2 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-teal); margin-bottom: 6px; }
.eh-defs span { font: 400 16px/1.4 var(--font-sans); color: var(--fg-1); }

.eh-tol__r { display: flex; flex-direction: column; gap: 20px; min-height: 0; }
.eh-regla { padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; background: var(--gamt-navy); border-color: var(--gamt-navy); }
.eh-regla__v b { font: 500 64px/1 var(--font-mono); font-feature-settings: "tnum" 1, "zero" 1; color: var(--gamt-mint); }
.eh-regla__v small { display: block; margin-top: 6px; font: 500 16px/1.2 var(--font-mono); color: rgba(255,255,255,.78); }
.eh-regla__t { font: 400 17px/1.5 var(--font-sans); color: rgba(255,255,255,.9); }
.eh-fuerzas { flex: 1; padding: 24px 28px; display: flex; flex-direction: column; gap: 12px; }
.eh-fuerzas .texto { color: var(--fg-1); font-size: 16px; }
.eh-fuerzas__barras { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.eh-barra { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 14px; column-gap: 12px; row-gap: 6px; align-items: end; }
.eh-barra__k { font: 600 15px/1.2 var(--font-sans); color: var(--fg-2); }
.eh-barra__v { grid-row: 1 / span 2; grid-column: 2; font-size: 30px; font-weight: 500; color: var(--gamt-navy); align-self: center; }
.eh-barra__v small { font-size: 14px; color: var(--fg-3); margin-left: 4px; }
.eh-barra__t { grid-column: 1; height: 14px; border-radius: 999px; background: var(--bg-3); overflow: hidden; }
.eh-barra__t i { display: block; height: 100%; width: 100%; background: var(--gamt-navy); border-radius: 999px; transform-origin: 0 50%; }
/* Rótulo discreto «Propia»: marca interna para el contenido que viene del curso de VibroSystM */
.screen--entrehierro .propia { font: 500 12px/1.2 var(--font-mono); letter-spacing: .08em; color: var(--fg-3); }
.screen--entrehierro .eh-info .propia { margin-top: auto; }
.screen--entrehierro .propia--dark { color: rgba(255,255,255,.55); }
