/* 208 · Tickets. Paleta CTI: marino #0B1B4B, lima #C4E000, blanco y gris. Sin degradados. */
.tk-head .tk-new { margin-top: .25rem; }
.tk-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin: 1rem 0; }
.tk-stat { display: flex; flex-direction: column; gap: .2rem; padding: .8rem 1rem; border: 1px solid #d5dae3; border-radius: 10px; background: #fff; color: #0B1B4B; text-decoration: none; }
.tk-stat strong { font-size: 1.6rem; line-height: 1; }
.tk-stat span { font-size: .85rem; color: #5A6478; }
.tk-stat:hover, .tk-stat.is-active { border-color: #0B1B4B; box-shadow: inset 0 -3px 0 #C4E000; }
.tk-stat--esperando_aprobacion strong { color: #0B1B4B; text-decoration: underline 3px #C4E000; }
.tk-filter { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0; }
.tk-filter input[type="search"] { flex: 1 1 260px; min-width: 0; }
.tk-filter-label { margin: .25rem 0 .75rem; }
.tk-list { display: flex; flex-direction: column; gap: .5rem; }
.tk-row { display: flex; flex-direction: column; gap: .25rem; padding: .75rem 1rem; border: 1px solid #d5dae3; border-left: 4px solid #0B1B4B; border-radius: 8px; background: #fff; color: #0B1B4B; text-decoration: none; }
.tk-row:hover { border-left-color: #C4E000; }
.tk-row-top { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.tk-row-title { font-weight: 600; }
.tk-row-meta, .tk-row-refs { font-size: .85rem; color: #5A6478; }
.tk-ref { display: inline-block; margin-right: .5rem; }
.tk-chip { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: #F2F3F5; color: #0B1B4B; border: 1px solid #d5dae3; }
.tk-chip--abierto { background: #0B1B4B; color: #fff; border-color: #0B1B4B; }
.tk-chip--en_analisis { background: #fff; border-color: #0B1B4B; }
.tk-chip--esperando_piso { background: #C4E000; color: #0B1B4B; border-color: #C4E000; }
.tk-chip--esperando_aprobacion, .tk-chip--aprob { background: #fff; color: #0B1B4B; border: 2px solid #C4E000; }
.tk-chip--resuelto { background: #F2F3F5; color: #5A6478; }
.tk-chip--cerrado { background: #F2F3F5; color: #8FA0B8; }
.tk-chip--agente { background: #fff; border-style: dashed; }
.tk-prio { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #5A6478; }
.tk-prio--urgente { color: #0B1B4B; text-decoration: underline 2px #C4E000; }
.tk-prio--alta { color: #0B1B4B; }
.tk-form .tk-grid, .tk-refs .tk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.tk-form .tk-span2 { grid-column: 1 / -1; }
.tk-form textarea, .tk-comment textarea { width: 100%; }
.tk-refs { border: 1px solid #d5dae3; border-radius: 8px; padding: .5rem .9rem .9rem; margin: .9rem 0; }
.tk-info dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0 0 .75rem; }
.tk-info dt { color: #5A6478; }
.tk-desc { padding: .6rem .8rem; background: #F2F3F5; border-radius: 8px; margin-bottom: .75rem; }
.tk-status { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin-top: .75rem; }
.tk-sol { border-left: 4px solid #C4E000; }
.tk-sol--piso { border-left-color: #0B1B4B; }
.tk-aprob-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .5rem; }
.tk-aprob-actions input { flex: 1 1 200px; }
.tk-thread h2 { margin-bottom: .5rem; }
.tk-msg { border: 1px solid #d5dae3; border-radius: 10px; padding: .6rem .85rem; margin-bottom: .6rem; background: #fff; }
.tk-msg header { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; font-size: .85rem; margin-bottom: .3rem; }
.tk-msg header time { color: #8FA0B8; margin-left: auto; }
.tk-msg--agente { border-color: #0B1B4B; background: #fff; box-shadow: inset 4px 0 0 #C4E000; }
.tk-msg--sistema { background: #F2F3F5; color: #5A6478; }
.tk-msg--api { border-style: dashed; }
.tk-badge { font-size: .7rem; font-weight: 700; padding: .05rem .45rem; border-radius: 4px; background: #0B1B4B; color: #C4E000; }
.tk-meta-tag { font-size: .8rem; color: #5A6478; margin: .3rem 0 0; }
.tk-adjs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.tk-adj { display: flex; flex-direction: column; gap: .2rem; max-width: 220px; font-size: .75rem; color: #5A6478; text-decoration: none; margin: 0; }
.tk-adj img, .tk-adj video { max-width: 220px; max-height: 180px; border-radius: 6px; border: 1px solid #d5dae3; background: #0B1B4B; }
.tk-adj--doc { padding: .5rem .7rem; border: 1px solid #d5dae3; border-radius: 6px; color: #0B1B4B; }
.tk-comment { margin-top: .75rem; display: flex; flex-direction: column; gap: .5rem; }
.tk-hist ul { margin: .5rem 0 0; padding-left: 1.1rem; font-size: .85rem; color: #5A6478; }
.tk-levantar-wrap { margin: .4rem 0; }
.tk-levantar { border: 1px solid #0B1B4B; }
.tk-nav-badge { margin-left: auto; min-width: 1.3rem; padding: 0 .35rem; border-radius: 999px; background: #C4E000; color: #0B1B4B; font-size: .7rem; font-weight: 700; text-align: center; }
.tk-empty { padding: 1rem; }
@media (max-width: 640px) {
  .tk-stats { grid-template-columns: repeat(2, 1fr); }
  .tk-info dl { grid-template-columns: 1fr; }
  .tk-adj, .tk-adj img, .tk-adj video { max-width: 100%; }
}

.tk-head-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.tk-config h2 { margin: 1.25rem 0 .35rem; }
.tk-config label { display: block; margin: .5rem 0 1rem; font-weight: 600; }
.tk-config textarea { display: block; width: 100%; margin-top: .35rem; min-height: 7rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 400; }
.tk-people { margin: .25rem 0 0.75rem; padding-left: 1.1rem; }
.tk-people code { font-size: .9em; }

/* Botón Soporte (encabezado de escritorio y app). No forma parte del menú azul. */
.soporte-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 2.25rem;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  background: #C4E000;
  color: #0B1B4B;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 0 0 1px color-mix(in srgb, #0B1B4B 12%, transparent);
}
.soporte-btn[hidden] { display: none !important; }
.soporte-btn:hover,
.soporte-btn:focus-visible {
  background: #d4ee33;
  color: #0B1B4B;
}
.soporte-badge {
  position: absolute;
  top: -0.4rem;
  right: -0.35rem;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #E11D2E;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2rem;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.soporte-badge[hidden] { display: none !important; }
.soporte-home-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0 0 1rem;
  padding: 0.85rem 1.1rem 0.95rem;
  border-radius: 14px;
  background: #C4E000;
  color: #0B1B4B;
  text-decoration: none;
  box-shadow: 0 0 0 1px color-mix(in srgb, #0B1B4B 12%, transparent);
}
.soporte-home-label {
  font-size: 1.15rem;
  font-weight: 700;
}
.soporte-home-copy {
  font-size: 0.88rem;
  font-weight: 500;
  color: #0B1B4B;
  opacity: 0.85;
}
.soporte-home-btn .soporte-badge {
  top: 0.55rem;
  right: 0.7rem;
}
