/* =========================================================
   Kent Repertory — Radar (UI)
   ========================================================= */

/* Layout generale */
.kent-radar { width: 100%; }

.kent-radar__scroll-wrap { position: relative; width: 100%; overflow: visible !important; }

/* Scrollbar orizzontale superiore */
.kent-radar__scroll--top {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  height: 18px;
}

/* Area principale: scroll X+Y */
.kent-radar__scroll--main{
  width: 100%;
  overflow-x: auto !important;
  overflow-y: auto !important;
  max-height: 70vh !important;
  border: 1px solid #ddd;
}

/* Tabella */
.kent-radar__table{
  width: max-content;         /* fondamentale per scroll X */
  min-width: 100%;            /* occupa anche tutta la larghezza se “corta” */
  border-collapse: separate;  /* sticky più stabile */
  border-spacing: 0;
}

/* Bordi leggeri */
.kent-radar__table thead th,
.kent-radar__table td{
  border-bottom: 1px solid #e6e6e6;
  border-right: 1px solid #e6e6e6;
}

/* Sticky incrociato */
.kent-radar__table thead th{
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 3;
}

.kent-radar__table .kent-sticky-col{
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 2;
}

.kent-radar__table thead th.kent-sticky-col{
  z-index: 5; /* cella top-left sopra a tutte */
}

/* Colonna Sintomi: larga e leggibile */
.kent-radar .kent-sticky-col{
  min-width: 380px;
  max-width: 480px;
  width: 420px;
}

/* Testo sintomo: protagonista */
.kent-radar .kent-sym__txt{
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: #111;
  letter-spacing: 0.01em;
}

/* Azioni (Dettagli / Rimuovi): discrete */
.kent-radar .kent-sym__actions{
  display: flex;
  gap: 10px;
  margin-top: 4px;
  opacity: 0.15;
  transition: opacity 0.15s ease;
}

.kent-radar .kent-sticky-col:hover .kent-sym__actions{
  opacity: 1;
}

/* Link Dettagli */
.kent-radar .kent-link{
  padding: 0;
  font-size: 11px;
  font-weight: 400;
  color: #666;
  background: transparent;
  border: none;
  text-decoration: underline;
  cursor: pointer;
}

.kent-radar .kent-link:hover{ color: #000; }

/* Rimuovi: piccolo e sobrio */
.kent-radar .kent-btn--mini{
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.1;
  border-radius: 4px;
  background: #f3f3f3;
  color: #666;
  border: 1px solid #ddd;
  cursor: pointer;
}

.kent-radar .kent-btn--mini:hover{
  background: #e6e6e6;
  color: #000;
}

/* Neutralizza stili aggressivi del tema sui button */
.kent-radar button{
  min-height: unset !important;
  box-shadow: none !important;
}

/* Intestazioni rimedi: sigla verticale, meta orizzontale */
.kent-radar .kent-radar__table thead th.kent-remedy-head .kent-rot{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 150px;
  width: 38px;
  padding-bottom: 22px;
}

.kent-radar .kent-radar__table thead th.kent-remedy-head .kent-rot__txt{
  display: inline-block;
  transform: rotate(-90deg);
  transform-origin: center;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
  text-transform: capitalize;
}

.kent-radar .kent-radar__table thead th.kent-remedy-head .kent-rot__meta{
  display: inline-block;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  opacity: 0.85;
}
