/* One table owns both the event spans and date-column geometry. */
.ttk8sr-schedule-table thead.hr8v2-planner-head {
  position: sticky;
  top: 0;
  z-index: 9;
}
.ttk8sr-schedule-table thead.hr8v2-planner-head th {
  position: relative;
  top: auto;
}
.ttk8sr-schedule-table thead.hr8v2-planner-head th.sticky-name {
  position: sticky;
  left: 0;
  z-index: 10;
}
.ttk8sr-schedule-table thead.hr8v2-planner-head .hr8v2-event-lane th {
  height: 40px;
  min-width: 0;
  padding: 0;
  border-bottom: 0;
  vertical-align: middle;
}
.ttk8sr-schedule-table thead.hr8v2-planner-head .hr8v2-event-heading {
  padding: 8px;
  text-align: left;
  font-size: 12px;
}
.ttk8sr-schedule-table .hr8v2-event-bar {
  position: absolute;
  inset: 3px 3px 3px 2px;
  display: block;
  width: calc(100% - 5px);
  min-width: 0;
  min-height: 0;
  height: calc(100% - 6px);
  margin: 0;
  padding: 0 9px;
  border: 1px solid #5ba6b1 !important;
  border-radius: 5px;
  background: linear-gradient(180deg, #285461, #193e4b) !important;
  color: #f6fafb !important;
  font: 600 12px/1.25 system-ui, sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: inset 0 1px 0 #ffffff26;
  cursor: pointer;
}
.ttk8sr-schedule-table .hr8v2-event-lane:nth-child(even) .hr8v2-event-bar {
  background: linear-gradient(180deg, #654258, #493246) !important;
  border-color: #b785a8 !important;
}
.ttk8sr-schedule-table .hr8v2-event-bar:hover {
  filter: brightness(1.2);
}
.ttk8sr-schedule-table .hr8v2-event-bar:focus-visible {
  outline: 2px solid #77d7e5;
  outline-offset: -3px;
}
.hr8v2-event-modal .hr8v2-event-sales table {
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
}
.hr8v2-event-sales :is(th, td) {
  padding: 8px 10px;
  border-bottom: 1px solid var(--smoke-line, #ccd8d4);
  text-align: left;
}
.hr8v2-event-sales :is(th, td):last-child { text-align: right; }
.hr8v2-event-note { overflow-wrap: anywhere; }
.hr8v2-event-source-error { color: var(--smoke-text, #4b3121); }

.hr8v2-period-navigation {
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
  margin: 8px 0;
}
.hr8v2-period-navigation label {
  flex: 0 1 290px;
  order: 0;
}
.hr8v2-period-navigation .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.hr8v2-period-navigation .button,
.hr8v2-period-navigation select,
.hr8v2-planner-filter select,
.hr8v2-planner-filter button {
  box-sizing: border-box;
  min-height: 40px !important;
  height: 40px;
  margin: 0;
  padding: 7px 12px;
  font-size: 14px !important;
  line-height: 24px;
  border-radius: 5px;
}
.hr8v2-period-navigation select { width: 100%; padding-right: 28px; }
.hr8v2-period-navigation .hr8v2-period-arrow {
  flex: 0 0 40px;
  width: 40px;
  padding: 0;
}
.hr8v2-period-navigation .hr8v2-period-current { font-weight: 500; }
.hr8v2-planner-filter {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
}
.hr8v2-planner-filter label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  font-size: 12px;
}
.hr8v2-planner-filter select { min-width: 180px; padding-right: 28px; }
.hr8v2-planner-filter button { width: auto; min-width: 80px; align-self: end; }
@media (max-width: 600px) {
  .hr8v2-period-navigation { gap: 6px; }
  .hr8v2-period-navigation label { flex: 1 1 calc(100% - 92px); max-width: 290px; }
  .hr8v2-period-navigation .hr8v2-period-current { flex-basis: 100%; max-width: 140px; }
  .hr8v2-planner-filter label { flex: 1 1 130px; min-width: 0; }
  .hr8v2-planner-filter select { width: 100%; min-width: 0; }
}
