/* ================================================================
   Módulo Gestión Servicio Técnico (GST) — clases con prefijo gst-
   Valores del Gestor MEL Design System (paleta real del producto:
   #2563eb primario, grises gray, radios 6/8/12, base 14px).
   ================================================================ */

/* ── Cabecera de página ── */
.gst-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.gst-titlebar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gst-header h1 { font-size: 1.4rem; font-weight: 700; color: #111827; margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gst-header p { font-size: 13px; color: #6b7280; margin: 4px 0 0; }
.gst-header-acciones { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gst-volver { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; color: #374151; font-size: 14px; cursor: pointer; white-space: nowrap; }
.gst-volver:hover { background: #f9fafb; }
.gst-fecha { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 13px; color: #374151; }
.gst-stack { display: flex; flex-direction: column; gap: 22px; }

/* ── Título con botón Volver ── */
.gst-titulo { font-size: 22px; font-weight: 700; color: #111827; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gst-subtitulo { font-size: 13px; color: #6b7280; margin-top: 2px; }

/* ── Checkbox propio ── */
.gst-check { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 3px; border: 1.5px solid #d1d5db; background: #fff; color: #fff; font-size: 12px; font-weight: 700; flex: none; cursor: pointer; }
.gst-check.on { background: #2563eb; border-color: #2563eb; }

/* ── Tarjetas ── */
.gst-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; }
.gst-card-head { display: flex; align-items: center; gap: 10px; padding: 15px 20px; background: #f9fafb; border-bottom: 1px solid #e5e7eb; font-size: .95rem; font-weight: 600; color: #111827; flex-wrap: wrap; }
.gst-card-head .gst-spacer, .gst-spacer { flex: 1; }
.gst-card-head .gst-sub { font-size: 12px; font-weight: 400; color: #6b7280; }
.gst-card-body { padding: 18px 20px; }
.gst-numero { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #2563eb; color: #fff; font-size: 12px; font-weight: 700; flex: none; }
.gst-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-top: 1px solid #f3f4f6; flex-wrap: wrap; }
.gst-card-pad { padding: 22px 24px; }
.gst-card-title { font-size: .95rem; font-weight: 600; color: #111827; }
.gst-card-sub { font-size: 12px; color: #6b7280; }
.gst-panel { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; }
.gst-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; font-size: 13px; font-weight: 700; color: #111827; }
.gst-vacio { padding: 40px; text-align: center; font-size: 13px; color: #6b7280; }

/* ── Íconos ── */
.gst-ico { display: inline-block; vertical-align: middle; flex: none; }
.gst-ico-box { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; flex: none; }

/* ── Badges, chips y nivel ── */
.gst-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.gst-tono-pend { background: #f3f4f6; color: #374151; }
.gst-tono-tran { background: #fef3c7; color: #92400e; }
.gst-tono-of   { background: #dbeafe; color: #1e40af; }
.gst-tono-rep  { background: #fee2e2; color: #b91c1c; }
.gst-tono-ok   { background: #d1fae5; color: #065f46; }
.gst-tono-bad  { background: #fee2e2; color: #b91c1c; }
.gst-nivel { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.gst-nivel-1 { background: #a7f3d0; color: #1f2937; }
.gst-nivel-2 { background: #fbbf24; color: #1f2937; }
.gst-nivel-3 { background: #dc2626; color: #fff; }
.gst-nivel-irr { background: #dc2626; color: #fff; }
.gst-nivel-0 { background: #f3f4f6; color: #374151; }
.gst-chip { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.gst-chip-amber { background: #fef3c7; color: #92400e; }
.gst-chip-red { background: #fee2e2; color: #b91c1c; }
.gst-chip-red-soft { background: #fef2f2; color: #b91c1c; }
.gst-chip-green { background: #d1fae5; color: #065f46; }
.gst-chip-gray { background: #f3f4f6; color: #374151; }
.gst-count.gst-chip-gray, .gst-count.gst-chip-amber, .gst-count.gst-chip-green { padding: 2px 8px; }
.gst-count { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }

/* ── Botones ── */
.gst-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; color: #374151; font-size: 12px; font-weight: 500; cursor: pointer; white-space: nowrap; font-family: inherit; text-decoration: none; }
.gst-btn:hover { background: #f9fafb; }
.gst-btn-azul { border-color: #2563eb; color: #2563eb; }
.gst-btn-azul:hover { background: #eff6ff; }
.gst-btn-rojo { color: #dc2626; }
.gst-btn-rojo:hover { background: #fef2f2; }
.gst-btn-verde { border: 0; background: #16a34a; color: #fff; padding: 0 12px; }
.gst-btn-verde:hover { background: #15803d; }
.gst-btn:disabled, .gst-btn-lg:disabled { opacity: .55; cursor: not-allowed; }
.gst-btn-lg { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border: 1px solid transparent; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; font-family: inherit; }
.gst-btn-primario { background: #2563eb; color: #fff; }
.gst-btn-primario:hover:not(:disabled) { background: #1d4ed8; }
.gst-btn-exito { background: #16a34a; color: #fff; }
.gst-btn-exito:hover:not(:disabled) { background: #15803d; }
.gst-btn-peligro { background: #dc2626; color: #fff; }
.gst-btn-peligro:hover:not(:disabled) { background: #b91c1c; }
.gst-btn-secundario { background: #fff; border-color: #d1d5db; color: #374151; }
.gst-btn-secundario:hover:not(:disabled) { background: #f9fafb; }
.gst-btn-gris { background: #e5e7eb; color: #374151; }
.gst-btn-gris:hover:not(:disabled) { background: #d1d5db; }
.gst-btn-md { height: 36px; padding: 0 14px; font-size: 13px; }
.gst-link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: #2563eb; font-size: 13px; font-weight: 500; cursor: pointer; }

/* ── Tablas ── */
.gst-tabla-wrap { overflow-x: auto; }
.gst-tabla { width: 100%; border-collapse: collapse; font-size: 13px; color: #374151; }
.gst-tabla th { text-align: left; padding: 11px 20px; background: #f9fafb; border-bottom: 1px solid #e5e7eb; font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #6b7280; white-space: nowrap; }
.gst-tabla td { padding: 12px 20px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.gst-tabla tbody tr:last-child td { border-bottom: none; }
.gst-tabla tbody tr:hover td { background: #f9fafb; }
.gst-tabla .gst-sticky { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 6px 0 6px -4px rgba(16,24,40,.10); }
.gst-tabla th.gst-sticky { background: #f9fafb; }
.gst-tabla tbody tr:hover td.gst-sticky { background: #f9fafb; }
.gst-tabla .gst-der { text-align: right; }
.gst-tabla .gst-acciones { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.gst-tabla.gst-tabla-limpia th { background: transparent; }
.gst-tabla tr.gst-fila-off td { background: #f9fafb; }
.gst-fuerte { font-weight: 700; color: #111827; }
.gst-inc { font-weight: 500; color: #2563eb; }
.gst-muted { color: #6b7280; }
.gst-faint { color: #9ca3af; }
.gst-item { color: #6b7280; }
.gst-hint { font-size: 11px; color: #6b7280; font-weight: 400; }
.gst-rojo { color: #dc2626; font-weight: 700; }

/* ── Progreso de etapas ── */
.gst-prog { display: flex; flex-direction: column; gap: 5px; min-width: 110px; }
.gst-prog-barra { display: flex; gap: 2px; }
.gst-prog-barra span { flex: 1; height: 6px; border-radius: 2px; background: #e5e7eb; }
.gst-prog-txt { font-size: 11px; color: #6b7280; }

/* ── Filtros y campos ── */
.gst-filtros { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 16px; align-items: end; padding: 16px 18px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
.gst-filtros label, .gst-campo { display: flex; flex-direction: column; gap: 6px; }
.gst-filtros label > span, .gst-campo > span { font-size: 12px; font-weight: 700; color: #374151; }
.gst-filtros-fin { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 38px; }
.gst-input { height: 38px; padding: 0 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; background: #fff; width: 100%; font-family: inherit; color: #374151; }
.gst-input:focus, .gst-textarea:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.gst-input:disabled, .gst-input[readonly] { background: #f3f4f6; color: #6b7280; }
.gst-input-lg { height: 40px; font-size: 14px; }
.gst-textarea { padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; background: #fff; width: 100%; font-family: inherit; color: #374151; resize: vertical; }
.gst-textarea.gst-error-campo { border-color: #dc2626; }
.gst-textarea-sl { border-style: dashed; font-family: Consolas, 'Courier New', monospace; font-size: 13px; background: #f9fafb; }
.gst-valor-fijo { height: 40px; display: flex; align-items: center; padding: 0 12px; border-radius: 6px; background: #f3f4f6; font-size: 14px; font-weight: 700; color: #111827; }
.gst-valor-fijo.vacio { color: #6b7280; }
.gst-caja { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; background: #fff; border: 1px solid #d1d5db; border-radius: 6px; }
.gst-caja input { flex: 1; min-width: 0; border: 0; outline: none; font-size: 13px; background: transparent; font-family: inherit; color: #374151; }
.gst-caja .gst-caja-lbl { font-size: 12px; color: #6b7280; white-space: nowrap; }
.gst-caja-x { border: 0; background: none; padding: 0 2px; cursor: pointer; color: #6b7280; font-size: 16px; line-height: 1; }
.gst-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 20px; }
.gst-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: #374151; }
.gst-form .gst-full { grid-column: 1 / -1; }
.gst-req { color: #dc2626; }
.gst-error { font-size: 11px; color: #dc2626; font-weight: 400; }
.gst-off { opacity: .5; }

/* ── Datos clave/valor (grilla con líneas) ── */
.gst-tira { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.gst-tira .gst-dato { border-bottom: 0; }
.gst-tira .gst-dato:last-child { border-right: 0; }
.gst-datos { display: grid; grid-template-columns: repeat(4, 1fr); }
.gst-dato { padding: 14px 18px; border-right: 1px solid #f3f4f6; border-bottom: 1px solid #f3f4f6; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gst-dato label { font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #6b7280; }
.gst-dato span { font-size: 13px; font-weight: 500; color: #111827; overflow-wrap: anywhere; }
.gst-dato label + span { margin-top: -1px; }
.gst-datos-libre { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.gst-obs { padding: 16px 20px; border-top: 1px solid #f3f4f6; }
.gst-obs label { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #6b7280; margin-bottom: 6px; }
.gst-obs p { margin: 0; font-size: 13px; color: #374151; white-space: pre-wrap; }

/* ── Avisos ── */
.gst-aviso { display: flex; gap: 10px; align-items: flex-start; border-radius: 6px; padding: 12px 14px; font-size: 13px; border: 1px solid transparent; }
.gst-aviso-info { background: #eff6ff; border-color: #dbeafe; color: #1e40af; }
.gst-aviso-warn { background: #fffbeb; border-color: #f59e0b; color: #92400e; }
.gst-aviso-error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.gst-aviso-ok { background: #ecfdf5; border-color: #d1fae5; color: #065f46; }
.gst-toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #ecfdf5; border: 1px solid #d1fae5; border-radius: 8px; font-size: 13px; color: #065f46; }
.gst-toast > span { flex: 1; }
.gst-toast button { border: 0; background: none; cursor: pointer; color: #065f46; font-size: 16px; }

/* ── Pestañas y selector ── */
.gst-tabs { display: flex; gap: 4px; border-bottom: 1px solid #e5e7eb; }
.gst-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 14px; font-weight: 500; color: #6b7280; cursor: pointer; }
.gst-tab.activo { border-bottom-color: #2563eb; color: #2563eb; font-weight: 700; }
.gst-seg { display: flex; gap: 4px; padding: 4px; background: #f3f4f6; border-radius: 8px; }
.gst-seg button { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 0; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; background: transparent; color: #6b7280; }
.gst-seg button.activo { background: #fff; color: #111827; box-shadow: 0 1px 2px rgba(16,24,40,.08); }
.gst-barra-filtros { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ── Stepper de los wizards ── */
.gst-stepper { display: flex; align-items: flex-start; justify-content: center; max-width: 640px; margin: 0 auto; width: 100%; }
.gst-step { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; position: relative; }
.gst-step-circulo { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; background: #e5e7eb; color: #6b7280; position: relative; z-index: 1; }
.gst-step.hecho .gst-step-circulo { background: #10b981; color: #fff; }
.gst-step.activo .gst-step-circulo { background: #f59e0b; color: #fff; box-shadow: 0 0 0 4px rgba(245,158,11,.2); }
.gst-step-label { font-size: 13px; font-weight: 700; color: #6b7280; text-align: center; }
.gst-step.activo .gst-step-label { color: #111827; }
.gst-step:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: calc(50% + 20px); right: calc(-50% + 20px); height: 2px; background: #e5e7eb; }
.gst-step.hecho:not(:last-child)::after { background: #10b981; }

/* ── KPIs y barras del Resumen ── */
.gst-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.gst-kpi { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start; text-align: left; cursor: pointer; font-family: inherit; }
.gst-kpi:hover { border-color: #2563eb; }
.gst-kpi-label { font-size: 13px; font-weight: 700; color: #111827; }
.gst-kpi-sub { font-size: 12px; color: #6b7280; }
.gst-kpi-valor { margin-top: 6px; font-size: 2rem; font-weight: 800; line-height: 1.1; }
.gst-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; align-items: start; }
.gst-barra { display: grid; grid-template-columns: 22px 210px 1fr 28px; align-items: center; gap: 10px; background: none; border: 0; padding: 2px 0; cursor: pointer; text-align: left; font-size: 13px; color: #374151; width: 100%; }
.gst-barra-num { font-size: 11px; font-weight: 700; color: #9ca3af; }
.gst-barra-pista { height: 10px; background: #f3f4f6; border-radius: 999px; overflow: hidden; }
.gst-barra-pista span { display: block; height: 100%; border-radius: 999px; }
.gst-barra-valor { font-weight: 700; text-align: right; color: #111827; }
.gst-niveles { display: flex; align-items: flex-end; gap: 12px; height: 150px; }
.gst-nivel-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.gst-nivel-barra { width: 100%; border-radius: 4px 4px 0 0; }
.gst-lista-fila { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-bottom: 1px solid #f3f4f6; font-size: 13px; }
.gst-lista-fila:hover { background: #f9fafb; }
.gst-lista-fila:last-child { border-bottom: none; }

/* ── Modales del módulo ── */
.gst-modal-exito { background: #fff; border-radius: 16px; box-shadow: 0 24px 64px rgba(0,0,0,.18); padding: 32px; width: 460px; max-width: 95vw; text-align: center; display: flex; flex-direction: column; align-items: center; }
.gst-modal-exito h3 { margin: 14px 0 0; font-size: 20px; font-weight: 700; color: #111827; }
.gst-modal-exito p { margin: 8px 0 22px; font-size: 13px; color: #374151; line-height: 1.5; }
.gst-modal-check { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: #ecfdf5; color: #16a34a; }
.gst-modal-acciones { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gst-modal-datos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-bottom: 22px; }
.gst-modal-dato { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; text-align: left; }
.gst-modal-dato label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6b7280; }
.gst-modal-dato span { font-size: 16px; font-weight: 700; color: #111827; }
.gst-modal-md { width: 520px !important; max-width: 95vw !important; }

/* ── Tarjetas de etapas del ciclo ── */
.gst-ciclo { overflow-x: auto; padding-bottom: 4px; }
.gst-ciclo-fila { display: flex; align-items: stretch; min-width: 1180px; }
.gst-etapa { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.gst-etapa.actual { border: 2px solid #2563eb; box-shadow: 0 4px 12px rgba(16,24,40,.12); }
.gst-etapa-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.gst-etapa.actual .gst-etapa-head, .gst-etapa.actual .gst-etapa-inferior { background: #eff6ff; }
.gst-etapa-circ { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #e5e7eb; color: #6b7280; font-size: 13px; font-weight: 700; flex: none; }
.gst-etapa-circ.hecho { background: #10b981; color: #fff; }
.gst-etapa-circ.actual { background: #2563eb; color: #fff; }
.gst-etapa-num { font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #6b7280; white-space: nowrap; }
.gst-etapa-cuerpo { padding: 14px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.gst-etapa-titulo { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: #111827; }
.gst-etapa-tag { display: inline-block; margin-top: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.gst-tag-hecho { background: #d1fae5; color: #065f46; }
.gst-tag-actual { background: #eff6ff; color: #1d4ed8; }
.gst-tag-tran { background: #fef3c7; color: #92400e; }
.gst-tag-pend { background: #f3f4f6; color: #4b5563; }
.gst-etapa-filas { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid #f3f4f6; }
.gst-etapa-inferior { display: flex; flex-direction: column; gap: 8px; flex: 1; margin: 0 -14px -14px; padding: 12px 14px 14px; background: #f9fafb; border-top: 1px solid #f3f4f6; }
.gst-etapa-fila { display: flex; flex-direction: column; gap: 2px; font-size: 12px; min-width: 0; align-items: flex-start; }
.gst-etapa-fila > label { color: #6b7280; }
.gst-etapa-fila > span { font-weight: 700; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.gst-etapa-fila > span.multi { white-space: normal; font-weight: 400; }
.gst-etapa-fila > span.chip { padding: 2px 8px; border-radius: 4px; }
.gst-etapa-inf { display: flex; align-items: center; gap: 4px; font-weight: 700; color: #2563eb; min-width: 0; max-width: 100%; }
.gst-etapa-inf span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gst-conector { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 64px; flex: none; }
.gst-conector-circ { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #f3f4f6; color: #9ca3af; }
.gst-conector-linea { width: 100%; height: 2px; background: #e5e7eb; }
.gst-conector-txt { font-size: 10px; font-weight: 700; text-align: center; line-height: 1.2; min-height: 12px; }
.gst-conector.transito .gst-conector-circ { background: #fef3c7; color: #92400e; }
.gst-conector.transito .gst-conector-linea { background: #f59e0b; }
.gst-conector.transito .gst-conector-txt { color: #92400e; }
.gst-conector.hecho .gst-conector-circ { background: #d1fae5; color: #047857; }
.gst-conector.hecho .gst-conector-linea { background: #10b981; }
.gst-conector.hecho .gst-conector-txt { color: #047857; }
.gst-conector.norecibido .gst-conector-circ { background: #fee2e2; color: #b91c1c; }
.gst-conector.norecibido .gst-conector-linea { background: #dc2626; }
.gst-conector.norecibido .gst-conector-txt { color: #b91c1c; }
/* Variante compacta (historial de Finalizados) */
.gst-ciclo-compacto { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 10px; min-width: 800px; }
.gst-ciclo-compacto .gst-etapa-head { gap: 8px; padding: 8px 10px; }
.gst-ciclo-compacto .gst-etapa-circ { width: 20px; height: 20px; font-size: 11px; }
.gst-ciclo-compacto .gst-etapa-titulo { font-size: 13px; }
.gst-ciclo-compacto .gst-etapa-filas { padding: 10px; border-top: 0; }
.gst-ciclo-compacto .gst-etapa-inferior { margin: 0; padding: 10px; }
.gst-etapa-lugar { font-size: 11px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Registrar Movimiento ── */
.gst-cambio { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gst-cambio label { display: block; font-size: 11px; color: #6b7280; margin-bottom: 4px; }
.gst-cambio-flecha { font-size: 18px; color: #6b7280; padding-top: 14px; }
.gst-opciones { display: flex; gap: 8px; flex-wrap: wrap; }
.gst-opcion { height: 40px; min-width: 72px; padding: 0 14px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; color: #374151; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.gst-opcion.activo { background: #2563eb; border-color: #2563eb; color: #fff; }
.gst-opcion.activo.gst-opcion-irr { background: #dc2626; border-color: #dc2626; }
.gst-opcion.activo.gst-opcion-rep { background: #d97706; border-color: #d97706; }
.gst-opcion:disabled { background: #f3f4f6; color: #6b7280; opacity: .55; cursor: not-allowed; }
.gst-guardar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.gst-divisor { border-top: 1px solid #e5e7eb; margin: 16px 0; }
.gst-adjuntar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px dashed #d1d5db; border-radius: 8px; background: #fff; cursor: pointer; position: relative; }
.gst-adjuntar:hover { border-color: #2563eb; }
.gst-adjuntar input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.gst-adjunto { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; flex-wrap: wrap; }
.gst-file-label { position: relative; overflow: hidden; }
.gst-file-label input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

@media (max-width: 768px) {
    .gst-datos { grid-template-columns: 1fr 1fr; }
    .gst-barra { grid-template-columns: 22px 1fr 1fr 28px; }
}
