/* Учёт рабочего времени — табель / график / календарь */

.hr-ts-wrap .card {
  box-shadow: none;
}

.hr-year-cal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 0.75rem;
}

.hr-cal-month {
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 0.75rem;
  padding: 0.5rem 0.55rem 0.65rem;
  background: var(--bs-body-bg, #fff);
}

.hr-cal-month__title {
  font-size: 0.8rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
  text-transform: capitalize;
}

.hr-cal-month__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.hr-cal-month__dow {
  font-size: 0.65rem;
  text-align: center;
  color: var(--bs-secondary-color, #6c757d);
  line-height: 1.4;
}

.hr-cal-day {
  aspect-ratio: 1;
  min-height: 1.15rem;
  border-radius: 0.3rem;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.hr-cal-day--empty {
  background: transparent;
}

.hr-cal-day--work {
  background: #e8f1ea;
  color: #1f3d2a;
}

.hr-cal-day--weekend {
  background: #e7eef8;
  color: #1e3a5f;
}

.hr-cal-day--holiday {
  background: #f8e4e4;
  color: #6b1f1f;
  font-weight: 650;
}

.hr-cal-day--short {
  background: #f7edd8;
  color: #5c4010;
}

.hr-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.hr-cal-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hr-cal-swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 0.25rem;
  display: inline-block;
}

.hr-user-combo {
  position: relative;
}

.hr-user-combo__input {
  padding-right: 2.25rem;
}

.hr-user-combo__toggle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2.1rem;
  border: 0;
  background: transparent;
  color: var(--bs-secondary-color, #6c757d);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hr-user-combo__toggle:hover,
.hr-user-combo__toggle:focus-visible {
  color: var(--bs-body-color, #212529);
}

.hr-user-combo.is-open .hr-user-combo__toggle .bi {
  transform: rotate(180deg);
}

.hr-user-suggest {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  max-height: 16rem;
  overflow: auto;
}

.hr-user-suggest .list-group-item {
  cursor: pointer;
  font-size: 0.875rem;
}

.hr-user-suggest .list-group-item.active,
.hr-user-suggest .list-group-item:active {
  background-color: var(--bs-primary-bg-subtle, #cfe2ff);
  color: var(--bs-body-color, #212529);
  border-color: var(--bs-border-color, #dee2e6);
}

.hr-collapse-toggle {
  gap: 0.5rem;
}

.hr-collapse-toggle__icon {
  transition: transform 0.15s ease;
}

.hr-collapse-toggle[aria-expanded="true"] .hr-collapse-toggle__icon {
  transform: rotate(180deg);
}

.hr-history__item {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--bs-border-color, #dee2e6);
}

.hr-history__item:last-child {
  border-bottom: 0;
}

.hr-history__when {
  font-size: 0.72rem;
  color: var(--bs-secondary-color, #6c757d);
}

.hr-history__what {
  font-weight: 550;
}

@media print {
  .hr-ts-wrap .btn,
  #hrRespForm,
  #hrAddEmpForm,
  #hrCalReload {
    display: none !important;
  }
}


/* Отчёт табеля в документах — паттерн omts-mts-card (как МТС/пайки) */
.omts-mts-block {
  border: 1px solid color-mix(in srgb, var(--bs-primary, #2563eb) 28%, var(--border-color, #dee2e6));
  border-left: 4px solid var(--bs-primary, #2563eb);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--bs-primary, #2563eb) 7%, var(--card-bg, #fff));
  padding: 1rem 1.15rem 1.15rem;
}
.omts-mts-block__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed color-mix(in srgb, var(--bs-primary, #2563eb) 28%, transparent);
}
.omts-mts-block .omts-mts-card {
  background: var(--card-bg, #fff);
  box-shadow: none;
}
.omts-mts-card__toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  width: auto;
  max-width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}
.omts-mts-card__toggle:hover .h6 { text-decoration: underline; }
.omts-mts-card__chevron {
  display: inline-block;
  transition: transform 0.15s ease;
  margin-top: 0.2rem;
}
.omts-mts-card.is-collapsed .omts-mts-card__chevron { transform: rotate(-90deg); }
.omts-mts-card.is-collapsed .omts-mts-card__body { display: none; }
.omts-mts-card.is-collapsed .omts-mts-card__lead { display: none; }
.omts-mts-card__summary { display: none; }
.omts-mts-card.is-collapsed .omts-mts-card__summary { display: block; }
.hr-ts-docs-report__months { margin: 0; }
.hr-ts-docs-report__months table { margin-bottom: 0; }

.hr-ts-docs-card .btn { flex: 0 0 auto; }

/* Иерархия отделов в документах — как в админке (parent/children) */
.hr-ts-dept-group { margin-bottom: 0.35rem; }
.hr-ts-dept-group:last-child { margin-bottom: 0; }
.hr-ts-dept-group.is-collapsed > .hr-ts-dept-group__children { display: none; }
.hr-ts-dept-group__children {
  margin: 0.15rem 0 0.5rem 0;
  padding-left: 0.75rem;
  border-left: 2px solid var(--bs-border-color, #dee2e6);
}
.hr-ts-docs-card--child {
  margin-left: calc(0.55rem * var(--hr-dept-depth, 1));
}
.hr-ts-docs-card--parent .hr-ts-group-toggle {
  flex: 0 0 auto;
}
.hr-ts-dept-group.is-collapsed > .hr-ts-docs-card--parent .hr-ts-group-toggle {
  opacity: 0.85;
}
.hr-ts-dept-group:not(.is-collapsed) > .hr-ts-docs-card--parent .hr-ts-group-toggle {
  background: var(--bs-primary-bg-subtle, #e7f1ff);
  border-color: var(--bs-primary, #0d6efd);
  color: var(--bs-primary, #0d6efd);
}



/* Сетка табеля / графика сменности */
.hr-ts-grid-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--card-bg, #fff);
  /* отдельный stacking context: дни не вылезают над sticky */
  isolation: isolate;
  position: relative;
  z-index: 0;
}

.hr-ts-grid {
  width: max-content;
  min-width: 100%;
  /* separate: sticky + opaque bg (collapse + BS inset-shadow просвечивают дни) */
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 0.8125rem;
  --hr-ts-sticky-bg: var(--card-bg, #ffffff);
  --hr-ts-sticky-head-bg: #f1f5f9;
  --hr-ts-sticky-hours-bg: #f1f5f9;
  background-color: var(--hr-ts-sticky-bg);
}

[data-theme="dark"] .hr-ts-grid {
  --hr-ts-sticky-bg: var(--card-bg, #1e293b);
  --hr-ts-sticky-head-bg: #0f172a;
  --hr-ts-sticky-hours-bg: #0f172a;
}

.hr-ts-grid > :not(caption) > * > * {
  /* Bootstrap 5: фон ячеек через inset box-shadow — обнуляем, иначе sticky «дырявый» */
  box-shadow: none !important;
}

.hr-ts-grid > thead > tr > th,
.hr-ts-grid > tbody > tr > td {
  vertical-align: middle;
  box-sizing: border-box;
  border: 1px solid var(--border-color, var(--bs-border-color, #dee2e6));
  background-clip: border-box;
}

.hr-ts-grid > thead > tr > th {
  text-align: center;
  white-space: nowrap;
  font-weight: 600;
  padding: 0.35rem 0.25rem;
  background-color: var(--hr-ts-sticky-head-bg) !important;
}

/* Общий непрозрачный слой sticky (mark + hours + thead) */
.hr-ts-grid th.hr-ts-sticky,
.hr-ts-grid td.hr-ts-sticky,
.hr-ts-grid th.hr-ts-sticky-2,
.hr-ts-grid td.hr-ts-sticky-2,
.hr-ts-grid th.hr-ts-sticky-3,
.hr-ts-grid td.hr-ts-sticky-3,
.hr-ts-grid th.hr-ts-sticky-4,
.hr-ts-grid td.hr-ts-sticky-4 {
  position: sticky;
  /* выше дней (1) и focus/select (2) */
  z-index: 30;
  background-color: var(--hr-ts-sticky-bg) !important;
  background-image: none !important;
  /* BS-совместимая заливка: inset того же непрозрачного цвета */
  box-shadow: inset 0 0 0 9999px var(--hr-ts-sticky-bg) !important;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  isolation: isolate;
}

.hr-ts-grid thead th.hr-ts-sticky,
.hr-ts-grid thead th.hr-ts-sticky-2,
.hr-ts-grid thead th.hr-ts-sticky-3,
.hr-ts-grid thead th.hr-ts-sticky-4 {
  z-index: 40;
  background-color: var(--hr-ts-sticky-head-bg) !important;
  box-shadow: inset 0 0 0 9999px var(--hr-ts-sticky-head-bg) !important;
}

.hr-ts-grid tr.hr-ts-hours-row > td.hr-ts-sticky,
.hr-ts-grid tr.hr-ts-hours-row > td.hr-ts-sticky-2 {
  background-color: var(--hr-ts-sticky-hours-bg) !important;
  box-shadow: inset 0 0 0 9999px var(--hr-ts-sticky-hours-bg) !important;
}

/* Фиксированная левая панель: № + ФИО + должность + таб.№ */
.hr-ts-grid th.hr-ts-sticky,
.hr-ts-grid td.hr-ts-sticky {
  left: 0;
  width: 2.5rem;
  min-width: 2.5rem;
  max-width: 2.5rem;
  text-align: center;
}

.hr-ts-grid th.hr-ts-sticky-2,
.hr-ts-grid tr.hr-ts-mark-row > td.hr-ts-sticky-2 {
  left: 2.5rem;
  width: 16.5rem;
  min-width: 16.5rem;
  max-width: 16.5rem;
  text-align: left;
  padding: 0.35rem 0.55rem;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  -webkit-hyphens: none;
  line-height: 1.25;
}

.hr-ts-grid thead th.hr-ts-sticky-2 {
  text-align: left;
}

.hr-ts-grid th.hr-ts-sticky-3,
.hr-ts-grid tr.hr-ts-mark-row > td.hr-ts-sticky-3 {
  left: 19rem; /* 2.5 + 16.5 */
  width: 9.5rem;
  min-width: 9.5rem;
  max-width: 9.5rem;
  text-align: left;
  padding: 0.35rem 0.45rem;
  white-space: normal;
  word-break: normal;
  hyphens: none;
}

.hr-ts-grid th.hr-ts-sticky-4,
.hr-ts-grid tr.hr-ts-mark-row > td.hr-ts-sticky-4 {
  left: 28.5rem; /* 19 + 9.5 */
  /* +2rem к прошлому 5.75 — явный зазор до колонки дня 1 */
  width: 7.75rem;
  min-width: 7.75rem;
  max-width: 7.75rem;
  text-align: center;
  white-space: nowrap;
  padding: 0.35rem 0.85rem 0.35rem 0.5rem;
  /* правая кромка панели поверх дней + непрозрачная заливка */
  box-shadow:
    inset 0 0 0 9999px var(--hr-ts-sticky-bg),
    4px 0 0 0 var(--border-color, #dee2e6) !important;
}

.hr-ts-grid thead th.hr-ts-sticky-4 {
  box-shadow:
    inset 0 0 0 9999px var(--hr-ts-sticky-head-bg),
    4px 0 0 0 var(--border-color, #dee2e6) !important;
}

/* Строка «часы»: № + одна ячейка на ФИО/должность/таб */
.hr-ts-grid tr.hr-ts-hours-row > td.hr-ts-sticky-2 {
  left: 2.5rem;
  width: 33.75rem; /* 16.5 + 9.5 + 7.75 */
  min-width: 33.75rem;
  max-width: 33.75rem;
  text-align: left;
  padding: 0.2rem 0.55rem;
  color: var(--text-muted, #6c757d);
  font-weight: 500;
  box-shadow:
    inset 0 0 0 9999px var(--hr-ts-sticky-hours-bg),
    4px 0 0 0 var(--border-color, #dee2e6) !important;
}

/* Дни ниже sticky по z-index */
.hr-ts-grid thead th.text-center:not([class*="hr-ts-sticky"]):not(.hr-ts-total),
.hr-ts-grid td.hr-ts-cell {
  position: relative;
  z-index: 1;
  width: 2.15rem;
  min-width: 2.15rem;
  max-width: 2.15rem;
  padding: 0 !important;
  text-align: center;
  background-color: var(--hr-ts-sticky-bg) !important;
  box-shadow: inset 0 0 0 9999px var(--hr-ts-sticky-bg) !important;
}

.hr-ts-mark-row > td.hr-ts-cell {
  height: 2.05rem;
}

.hr-ts-hours-row > td.hr-ts-cell {
  height: 1.85rem;
  background-color: var(--hr-ts-sticky-hours-bg) !important;
  box-shadow: inset 0 0 0 9999px var(--hr-ts-sticky-hours-bg) !important;
}

.hr-ts-grid .hr-ts-mark,
.hr-ts-grid .hr-ts-hours,
.hr-ts-grid .hr-ts-forecast-begin {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 0.1rem 0.05rem;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  font-size: inherit;
  line-height: 1.1;
}

.hr-ts-mark-row .hr-ts-mark {
  min-height: 2.05rem;
  height: 2.05rem;
}

.hr-ts-hours-row .hr-ts-hours {
  min-height: 1.85rem;
  height: 1.85rem;
  font-size: 0.75rem;
  color: var(--text-muted, #6c757d);
}

.hr-ts-grid .hr-ts-val {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 0.1rem;
  line-height: 1.1;
}

.hr-ts-mark-row .hr-ts-val { min-height: 2.05rem; }
.hr-ts-hours-row .hr-ts-val { min-height: 1.85rem; font-size: 0.75rem; }

.hr-ts-grid .hr-ts-hol {
  background-color: #f8e4e4 !important;
  box-shadow: inset 0 0 0 9999px #f8e4e4 !important;
}
.hr-ts-grid .hr-ts-short {
  background-color: #f7edd8 !important;
  box-shadow: inset 0 0 0 9999px #f7edd8 !important;
}
[data-theme="dark"] .hr-ts-grid .hr-ts-hol {
  background-color: #4a2020 !important;
  box-shadow: inset 0 0 0 9999px #4a2020 !important;
}
[data-theme="dark"] .hr-ts-grid .hr-ts-short {
  background-color: #4a3b18 !important;
  box-shadow: inset 0 0 0 9999px #4a3b18 !important;
}

.hr-ts-hours-row > td:not(.hr-ts-cell):not(.hr-ts-sticky):not(.hr-ts-sticky-2) {
  background-color: var(--hr-ts-sticky-hours-bg) !important;
  box-shadow: inset 0 0 0 9999px var(--hr-ts-sticky-hours-bg) !important;
}

/* Итоги справа — не слипаются */
.hr-ts-grid th.hr-ts-total,
.hr-ts-grid td.hr-ts-total {
  position: relative;
  z-index: 1;
  min-width: 5.25rem;
  width: 5.25rem;
  max-width: none;
  white-space: nowrap;
  padding: 0.35rem 0.55rem !important;
  text-align: center;
  letter-spacing: 0.01em;
  overflow: visible;
  background-color: var(--hr-ts-sticky-bg) !important;
  box-shadow: inset 0 0 0 9999px var(--hr-ts-sticky-bg) !important;
}

.hr-ts-grid thead th.hr-ts-total {
  background-color: var(--hr-ts-sticky-head-bg) !important;
  box-shadow: inset 0 0 0 9999px var(--hr-ts-sticky-head-bg) !important;
}

.hr-ts-grid td.hr-ts-total.p-0 {
  padding: 0 !important;
  min-width: 5.5rem;
  width: 5.5rem;
}

.hr-ts-grid .hr-ts-forecast-begin {
  min-width: 5.5rem;
  padding: 0.25rem 0.35rem;
}

.hr-ts-grid .hr-ts-mark.form-control,
.hr-ts-grid .hr-ts-hours.form-control,
.hr-ts-grid .hr-ts-forecast-begin.form-control {
  border-radius: 0 !important;
}

.hr-ts-grid .hr-ts-mark.form-control:focus,
.hr-ts-grid .hr-ts-hours.form-control:focus,
.hr-ts-grid .hr-ts-forecast-begin.form-control:focus {
  box-shadow: inset 0 0 0 1px var(--bs-primary, #0d6efd);
  background: var(--bs-primary-bg-subtle, #e7f1ff);
  z-index: 2;
  position: relative;
}

/* focus дня ниже sticky-панели */
.hr-ts-grid td.hr-ts-cell:focus-within {
  outline: 1px solid var(--bs-primary, #0d6efd);
  outline-offset: -1px;
  z-index: 2;
}

.hr-ts-grid select.hr-ts-mark {
  display: block;
  width: 100%;
  height: 2.05rem;
  min-height: 2.05rem;
  padding: 0 0.05rem;
  margin: 0;
  border: 0;
  border-radius: 0 !important;
  box-shadow: none;
  background-color: transparent;
  background-image: none !important;
  font-size: 0.75rem;
  line-height: 1.1;
  text-align: center;
  text-align-last: center;
  /* без треугольника — клик по ячейке открывает список кодов */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  /* не поднимать над sticky при фокусе */
  position: relative;
  z-index: 0;
}
.hr-ts-grid select.hr-ts-mark::-ms-expand {
  display: none;
}

.hr-ts-grid select.hr-ts-mark:focus {
  box-shadow: inset 0 0 0 1px var(--bs-primary, #0d6efd);
  background: var(--bs-primary-bg-subtle, #e7f1ff);
  z-index: 0;
  position: relative;
}

.hr-ts-month-settings .hr-user-suggest {
  max-height: 14rem;
}

/* Сотрудники отчёта — тот же collapse, что у карточек МТС (ПЭО/кадры) */
.hr-ts-staff-card {
  box-shadow: none;
  background: var(--bs-body-bg, #fff);
}
.hr-ts-staff-card .omts-mts-card__toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  width: auto;
  max-width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.hr-ts-staff-card .omts-mts-card__toggle:hover .h6 {
  text-decoration: underline;
}
.hr-ts-staff-card .omts-mts-card__chevron {
  display: inline-block;
  transition: transform 0.15s ease;
  margin-top: 0.2rem;
}
.hr-ts-staff-card.is-collapsed .omts-mts-card__chevron {
  transform: rotate(-90deg);
}
.hr-ts-staff-card.is-collapsed .omts-mts-card__body {
  display: none !important;
}
.hr-ts-staff-card.is-collapsed .omts-mts-card__lead {
  display: none;
}
.hr-ts-staff-card .omts-mts-card__summary {
  display: none;
}
.hr-ts-staff-card.is-collapsed .omts-mts-card__summary {
  display: block;
}



/* Форма ОКУД 0504421 — шапка и подписи (AVR-42 / Excel окт 2026) */
.hr-ts-form-header {
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  background: var(--card-bg, #fff);
}
.hr-ts-form-header__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.hr-ts-form-header__tabel {
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 1.15rem;
  line-height: 1.2;
}
.hr-ts-form-header__sub {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.hr-ts-form-header__period {
  font-size: 0.9rem;
}
.hr-ts-form-header__approve {
  min-width: 14rem;
  max-width: 20rem;
  text-align: right;
  font-size: 0.85rem;
}
.hr-ts-form-header__approve-label {
  font-weight: 700;
  letter-spacing: 0.04em;
}
.hr-ts-form-header__signline {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  margin: 0.35rem 0;
  color: var(--bs-secondary-color, #6c757d);
  font-size: 0.75rem;
  border-top: 1px solid var(--bs-border-color, #dee2e6);
  padding-top: 0.2rem;
}
.hr-ts-form-header__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px dashed var(--bs-border-color, #dee2e6);
  padding-top: 0.75rem;
  font-size: 0.9rem;
}
.hr-ts-form-header__k {
  display: inline-block;
  min-width: 11.5rem;
  color: var(--bs-secondary-color, #6c757d);
  margin-right: 0.35rem;
}
.hr-ts-form-header__codes {
  min-width: 12rem;
  font-size: 0.85rem;
}
.hr-ts-colnum {
  display: block;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--bs-secondary-color, #6c757d);
}
.hr-ts-collabel {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.15;
  white-space: normal;
  min-width: 4.5rem;
  max-width: 6.5rem;
}
.hr-ts-signatures {
  border: 1px solid var(--bs-border-color, #dee2e6);
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  background: var(--card-bg, #fff);
}
.hr-ts-signatures__title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.hr-ts-signatures__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem 1.5rem;
}
.hr-ts-signatures__role {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.hr-ts-signatures__line {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem;
  font-size: 0.85rem;
  min-height: 1.6rem;
}
.hr-ts-signatures__blank {
  flex: 1 1 5rem;
  border-bottom: 1px solid var(--bs-border-color, #adb5bd);
  min-width: 4rem;
  height: 1em;
}
@media print {
  .hr-ts-toolbar .btn,
  .hr-ts-month-settings,
  #hrMonthHistoryCard,
  .hr-ts-toolbar nav {
    display: none !important;
  }
  .hr-ts-form-header,
  .hr-ts-signatures {
    break-inside: avoid;
  }
}

.hr-ts-hours--blocked {
  background: #f1f5f9 !important;
  color: #94a3b8 !important;
  cursor: not-allowed;
}
[data-theme="dark"] .hr-ts-hours--blocked {
  background: #0f172a !important;
}


/* Hub: month cards — phone = 1 col, no mid-word month names */
.hr-ts-hub-months .hr-ts-hub-month-card {
  min-width: 0;
  overflow: hidden;
}
.hr-ts-hub-months .hr-ts-hub-month-name {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  -webkit-hyphens: none;
  line-height: 1.25;
}
.hr-ts-hub-months .hr-ts-hub-month-actions .btn {
  white-space: nowrap;
}
@media (max-width: 575.98px) {
  .hr-ts-hub-months .hr-ts-hub-month-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hr-ts-hub-months .hr-ts-hub-month-actions .btn {
    width: 100%;
  }
}
