/* Единый вид «ссылки» в таблицах кабинета: всё, что открывается по клику
 * (№ ПЗ, название маршрутной карты, станок и его ТО, бригада, «брак/потери»).
 * Синий жирный, подчёркнут сразу (без наведения), при наведении — голубая подложка.
 * Подложка рисуется тенью, а не отступами — ширина ячейки не прыгает.
 * Подключается последним среди стилей листов — перекрывает их цвет/толщину. */
.cab-link {
  color: #1556c0;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(21, 86, 192, 0.7);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  border-radius: 3px;
  transition: background-color 0.12s, box-shadow 0.12s, text-decoration-color 0.12s;
}
.cab-link:hover {
  background-color: #e2ecfc;
  box-shadow: 0 0 0 3px #e2ecfc;
  text-decoration-color: currentColor;
}
.cab-link:focus-visible { outline: 2px solid #1556c0; outline-offset: 2px; }
/* Кнопки-ссылки обрезают текст многоточием (overflow: hidden) — без запаса снизу
 * подчёркивание срезается краем кнопки. */
.eq-card-link.cab-link,
.rg-emp .bg-name.cab-link { padding-bottom: 3px; }

/* Ссылка-статус («брак», «потери») — цвет и толщина остаются свои (это смысл),
 * общее только подчёркивание и подложка при наведении. */
.cab-link.is-tone { font-weight: inherit; text-decoration-color: currentColor; }
.cab-link.is-tone:hover { box-shadow: none; }

/* Станок → ТО: ссылкой выглядит строка ближайшего ТО (просрочка — красным);
 * «не запланировано» остаётся серым, но тоже подчёркнуто — по нему открывается журнал. */
.eq-svc-link.cab-link { font-weight: inherit; color: inherit; text-decoration: none; }
.eq-svc-link.cab-link .eq-svc-next,
.eq-svc-link.cab-link .eq-svc-empty {
  text-decoration: underline; text-decoration-color: currentColor;
  text-decoration-thickness: 1.5px; text-underline-offset: 2px;
}
.eq-svc-link.cab-link .eq-svc-next { color: #1556c0; font-weight: 700; text-decoration-color: rgba(21, 86, 192, 0.7); }
.eq-svc-link.cab-link .eq-svc-next.is-overdue { color: #c0262e; text-decoration-color: currentColor; }
.eq-svc-link.cab-link:hover .eq-svc-next { text-decoration-color: currentColor; }
