html {
  font-size: 15px;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #20313d;
  background: #f4f6f8;
}

.btn:focus-visible, .btn-link.nav-link:focus-visible, .form-control:focus-visible, .form-check-input:focus-visible, a:focus-visible {
  outline: 3px solid rgba(43, 152, 165, .45);
  outline-offset: 2px;
  box-shadow: none;
}

.admin-header {
  color: #fff;
  background: #142b3b;
  box-shadow: 0 3px 14px rgba(13, 35, 49, .15);
}

.admin-header .navbar {
  min-height: 76px;
}

.navbar-brand {
  font-weight: 750;
  letter-spacing: .03em;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 12px;
  color: #fff;
  background: #258b96;
  font-size: 1.15rem;
}

.brand-light {
  color: #a9c5cc;
  font-weight: 400;
}

.brand-caption {
  display: block;
  margin-top: -3px;
  color: #a9c5cc;
  font-size: .58rem;
  letter-spacing: .22em;
}

.admin-header .nav-link {
  margin: 0 .15rem;
  padding: .55rem .85rem !important;
  border-radius: 8px;
  color: #d3e0e5;
  transition: background-color .15s ease, color .15s ease;
}

.admin-header .nav-link:hover,
.admin-header .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .5rem 0;
}

.account-name {
  max-width: 220px;
  overflow: hidden;
  color: #c2d0d5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-main {
  flex: 1;
  width: 100%;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.admin-footer {
  padding: 1.2rem 0;
  border-top: 1px solid #e1e7eb;
  color: #73818a;
  font-size: .9rem;
}

.admin-footer span {
  padding: 0 .35rem;
  color: #258b96;
}

.page-heading {
  margin-bottom: 2rem;
}

.page-heading h1 {
  margin-bottom: .45rem;
  color: #142b3b;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.035em;
}

.eyebrow, .card-kicker {
  margin-bottom: .45rem;
  color: #258b96;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.admin-cards {
  margin-top: .5rem;
}

.admin-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid #e4e9ec;
  border-radius: 16px;
  color: inherit;
  background: #fff;
  box-shadow: 0 8px 24px rgba(19, 47, 62, .045);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.admin-card:hover {
  transform: translateY(-3px);
  border-color: #b7d8db;
  color: inherit;
  box-shadow: 0 14px 30px rgba(19, 47, 62, .1);
}

.admin-card-primary {
  min-height: 250px;
  border-color: #b7d8db;
  border-left: 6px solid #258b96;
  background: linear-gradient(115deg, #e8f4f4 0%, #fff 70%);
  box-shadow: 0 12px 30px rgba(19, 85, 94, .12);
}

.admin-card-primary .card-title {
  font-size: 1.65rem;
}

.admin-card-primary .card-kicker {
  color: #187580;
}

.admin-card-primary:hover {
  border-color: #258b96;
  box-shadow: 0 18px 36px rgba(19, 85, 94, .18);
}

.admin-cards-secondary {
  margin-top: 1.5rem;
}

.card-title {
  margin: .25rem 0 .5rem;
  color: #142b3b;
  font-size: 1.35rem;
  font-weight: 700;
}

.card-description {
  color: #65747d;
}

.card-action {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.4rem;
  color: #187580;
  font-weight: 650;
}

.table-card, .form-card {
  overflow: hidden;
  border: 1px solid #e4e9ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(19, 47, 62, .045);
}

.table-card .table {
  margin-bottom: 0;
}

.table-card thead th {
  border-bottom-color: #e4e9ec;
  color: #65747d;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.table-card td, .table-card th {
  padding: .9rem 1rem;
  vertical-align: middle;
}

.form-card {
  max-width: 800px;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.form-control, .form-select {
  border-color: #d9e1e5;
  border-radius: 8px;
}

.form-control:focus, .form-select:focus {
  border-color: #258b96;
  box-shadow: 0 0 0 .2rem rgba(37, 139, 150, .15);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.screening-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .75rem;
  padding: .25rem .1rem 1rem;
}

.screening-day {
  min-height: 260px;
  padding: .75rem;
  border: 1px solid #e1e7eb;
  border-radius: 12px;
  background: #edf1f3;
}

.screening-day-heading {
  display: flex;
  justify-content: space-between;
  margin: 0 0 .75rem;
  color: #142b3b;
  font-size: 1rem;
  font-weight: 700;
}

.screening-day-heading small {
  color: #65747d;
  font-size: .82rem;
}

.screening-day-empty {
  margin: 1.5rem 0;
  color: #819099;
  font-size: .88rem;
  text-align: center;
}

.screening-card {
  position: relative;
  z-index: 0;
  min-height: 88px;
  margin-bottom: .65rem;
  padding: .65rem .75rem;
  border: 1px solid #e0e7eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(19, 47, 62, .04);
}

.screening-card:hover,
.screening-card:focus-within {
  z-index: 2;
}

.screening-card-time {
  color: #187580;
  font-size: 1.05rem;
  font-weight: 750;
}

.screening-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: .2rem 0;
  color: #142b3b;
  font-size: .92rem;
  font-weight: 700;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.screening-card-meta {
  overflow: hidden;
  margin: 0;
  color: #65747d;
  font-size: .82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screening-card-details {
  position: absolute;
  top: -1px;
  left: -1px;
  z-index: 1;
  visibility: hidden;
  width: calc(100% + 2px);
  padding: .65rem .75rem;
  border: 1px solid #b9c9d0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(19, 47, 62, .2);
  opacity: 0;
  transition: opacity .12s ease;
}

.screening-card:hover .screening-card-details,
.screening-card:focus-within .screening-card-details {
  visibility: visible;
  opacity: 1;
}

@media (hover: none) {
  .screening-card {
    min-height: 0;
  }

  .screening-card-details {
    position: static;
    visibility: visible;
    width: auto;
    padding: .65rem 0 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
  }
}

.screening-inline-edit summary {
  color: #187580;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 650;
}

@media (max-width: 991.98px) {
  .screening-week {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .account-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: .55rem;
    padding: .85rem 0 1rem;
  }

  .admin-header .nav-link {
    margin: .1rem 0;
  }
}

@media (max-width: 575.98px) {
  .screening-week {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
