/* Spellimus GOV.UK overrides */

/* Header: blue style matching design-system.service.gov.uk */
.govuk-header {
  background-color: #1d70b8;
  border-bottom-color: #1d70b8;
}

.govuk-header__container {
  border-bottom-color: rgba(255, 255, 255, 0.3);
  display: flex !important;
  align-items: center !important;
}

/* Always show header nav inline (override responsive breakpoint) */
.govuk-header__menu-button {
  display: none !important;
}

.govuk-header__navigation-list {
  display: block !important;
}

/* Bold service name in the header */
.govuk-header__logotype-text {
  font-weight: 700;
}

/* Push Sign out to the right in the header */
.govuk-header__content {
  margin-left: auto;
  display: block !important;
  text-align: right;
}


/* Weekly lists table: narrow columns that fit content and push right */
.app-table__cell--fit {
  width: 1%;
  white-space: nowrap;
}

/* Center column headers text */
.app-table__header--center {
  text-align: center !important;
}

/* Right-pad tags inside table cells */
.govuk-table__cell .govuk-tag {
  margin-right: 5px;
}

/* Inline form elements */
.app-inline-form {
  display: flex;
  align-items: flex-end;
  gap: 15px;
}

.app-inline-form .govuk-form-group {
  margin-bottom: 0;
}

/* Tabs panel with turbo frame */
.app-tabs-panel {
  padding-top: 20px;
}

/* Align tabs panel content with first tab text (19px list-item padding + 1px border) */
.govuk-tabs__panel {
  padding-right: 20px !important;
  padding-left: 20px !important;
}

/* Service navigation: always show inline */
.govuk-service-navigation__toggle {
  display: none !important;
}

.govuk-service-navigation__list {
  display: flex !important;
  gap: 15px;
}

.govuk-service-navigation__container {
  display: flex !important;
  flex-direction: row !important;
}

.govuk-service-navigation__wrapper {
  display: flex !important;
}

/* Service navigation: light blue background */
.govuk-service-navigation {
  background-color: #f4f8fb;
  border-bottom-color: #8eb8dc;
}

/* Student selector: compact toggle dropdown above content */
.app-student-selector {
  position: relative;
  margin-bottom: 15px;
}

.app-student-selector__toggle {
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 25px;
  color: #1d70b8;
  background: none;
  border: none;
  padding: 0 20px 0 0;
  cursor: pointer;
  position: relative;
}

.app-student-selector__toggle:hover {
  text-decoration: underline;
}

.app-student-selector__toggle::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #1d70b8;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.app-student-selector__toggle[aria-expanded="true"]::after {
  border-top: none;
  border-bottom: 6px solid #1d70b8;
}

.app-student-selector__list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
  background: #ffffff;
  border: 1px solid #b1b4b6;
  min-width: 200px;
}

.app-student-selector__item {
  border-bottom: 1px solid #f3f2f1;
}

.app-student-selector__item:last-child {
  border-bottom: none;
}

.app-student-selector__link {
  display: block;
  padding: 10px 15px;
  color: #1d70b8;
  text-decoration: none;
  font-family: "GDS Transport", arial, sans-serif;
  font-size: 16px;
}

.app-student-selector__link:hover {
  background: #f3f2f1;
  color: #003078;
}

.app-student-selector__item--active .app-student-selector__link {
  font-weight: 700;
}

/* Notification banner auto-hide transition */
.app-notification-banner--hidden {
  display: none;
}
