/* Fonts
@font-face {
  font-family: 'SourceSansPro';
  src: url('../fonts/SourceSansPro-Regular.ttf');
}
@font-face {
  font-family: 'SourceSansProBold';
  src: url('../fonts/SourceSansPro-Bold.ttf');
}
*/
html {
  position: relative;
  min-height: 100%;
}
body {
  margin-bottom: 60px;
}
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem #258cfb;
}
.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;
}
.lang-switcher .flag {
  width: 26px;
  height: 18px;
  object-fit: cover;
  display: block;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.lang-switcher .lang-caret {
  font-size: 1.1rem;
  color: #9ca3af;
  transition: color 0.15s ease-in-out;
}
.lang-switcher .nav-link:hover .lang-caret,
.lang-switcher .nav-link[aria-expanded="true"] .lang-caret {
  color: #d1d5db;
}
.lang-switcher .lang-menu {
  min-width: auto;
}
.lang-switcher .lang-menu .dropdown-item {
  padding: 0.35rem 0.6rem;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.page-head__title {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0;
}
/* Secondary line under the page title, e.g. the group the library belongs to. */
.page-head__sub {
  color: #999;
  font-size: 0.9rem;
  margin: 0.25rem 0 0;
}
.dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.dash-card {
  display: flex;
  flex-direction: column;
  background-color: #2c3034;
  border: 1px solid #3a3f44;
  border-radius: 6px;
  padding: 1.25rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.dash-card:hover {
  border-color: #e94e2c;
  transform: translateY(-2px);
  color: inherit;
  text-decoration: none;
}
.dash-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.dash-card__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}
.dash-card__icon {
  color: #e94e2c;
}
.dash-card__meta {
  color: #999;
  font-size: 0.85rem;
}
/* "Go to page" affordance at the bottom of the card. A bare arrow does not say where it
   leads, so the label is spelled out the same way as on the HowTo and Report cards.
   margin-top: auto pins it to the bottom, so it lines up across cards of unequal height. */
.dash-card__open {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.9rem;
  color: #e94e2c;
  font-weight: 600;
  font-size: 0.9rem;
}
.dash-card__open i {
  transition: transform 0.2s;
}
.dash-card:hover .dash-card__open i {
  transform: translateX(3px);
}
.dash-card__desc {
  color: #999;
  font-size: 0.875rem;
  margin: 0.5rem 0 0;
}
/* The numbers sit at the outer edges of the card rather than bunched together on the
   left, so a card with two stats reads as a comparison between them. */
.dash-card__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1rem;
}
.dash-card__stat:last-child {
  text-align: right;
}
/* A single stat has nothing to be compared against, so it stays left-aligned. */
.dash-card__stat:only-child {
  text-align: left;
}
.dash-card__note {
  color: #999;
  font-size: 1.05rem;
  font-weight: 500;
  margin: 1rem 0 0;
}
.dash-card__stat {
  display: flex;
  flex-direction: column;
}
.dash-card__stat-label {
  color: #999;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
/* Marks a number whose period has not finished yet, so it can only grow. */
.dash-kpi__live {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0 0.3rem;
  border-radius: 4px;
  background: rgba(14, 165, 233, 0.2);
  color: #0ea5e9;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: middle;
}
.dash-card__stat-value {
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.15;
}
.dash-card__stat-sub {
  color: #999;
  font-size: 0.8rem;
}
.stats-period {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.stats-period > .field {
  margin-bottom: 0;
}
.stats-period > .field select {
  width: auto;
  min-width: 200px;
}
.stats-period > .btn {
  white-space: nowrap;
}
.stats-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stats-total {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background-color: #2c3034;
  border: 1px solid #3a3f44;
  border-radius: 6px;
  padding: 1.25rem;
}
.stats-total__label {
  color: #999;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.stats-total__value {
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.15;
}
.stats-total--empty {
  grid-column: 1 / -1;
}
.stats-total__value--empty {
  color: #999;
  font-size: 1.05rem;
  font-weight: 500;
}
#films-search-input {
  max-width: 30rem;
  flex: 1;
}
#disabled-films .poster {
  height: 12rem;
}
#results-wrap {
  font-size: 0;
}
.no-results {
  font-size: 14px;
}
.item {
  font-size: 14px;
  margin-bottom: 5rem;
  text-align: center;
  width: 16.6666%;
  display: inline-block;
  vertical-align: top;
}
@media (max-width: 374px) {
  .item {
    padding: 0 0.5rem;
  }
}
@media (min-width: 375px) and (max-width: 767px) {
  .item {
    padding: 0 0.75rem;
  }
}
@media (min-width: 768px) {
  .item {
    padding: 0 1.5rem;
  }
}
.item a {
  display: block;
}
.item a:hover {
  text-decoration: none;
}
.item a:hover .title,
.item a:hover .info {
  /*color: @secondary-color-highlight;*/
  color: #e94e2c;
}
.item .title {
  white-space: nowrap;
  overflow: hidden;
  font-size: 120%;
  /*font-weight: bold;*/
  /*color: @text-color-main;*/
  color: white;
  transition: color 0.3s;
  margin: 1.5rem 0 0;
}
.item .image {
  width: 100%;
  border: none;
  transition: filter 0.3s;
}
.item a:hover .image {
  -webkit-filter: saturate(130%) contrast(110%) brightness(105%);
  filter: saturate(130%) contrast(110%) brightness(105%);
}
.pager-wrap {
  clear: both;
  font-size: 14px;
}
@media (max-width: 1600px) {
  .item {
    width: 20%;
  }
}
@media (max-width: 1200px) {
  .item {
    width: 25%;
  }
}
@media (max-width: 992px) {
  .item {
    width: 33.3333%;
  }
}
@media (max-width: 600px) {
  .item {
    width: 50%;
  }
}
.howto {
  max-width: 1100px;
  margin: 0 auto;
}
.howto-hero {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: linear-gradient(135deg, #353a3f 0%, #2c3034 60%);
  border: 1px solid #3a3f44;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
}
.howto-hero__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-color: rgba(233, 78, 44, 0.15);
  color: #e94e2c;
  font-size: 1.5rem;
}
.howto-hero__body {
  flex: 1 1 auto;
}
.howto-hero__title {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.howto-hero__lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #bbb;
  margin: 0;
}
.howto-group {
  margin-bottom: 2rem;
}
.howto-group__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bbb;
  margin: 0 0 0.9rem;
}
.howto-group__title i {
  color: #e94e2c;
  font-size: 1rem;
}
.howto-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.howto-card {
  background-color: #2c3034;
  border: 1px solid #3a3f44;
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.howto-card:hover {
  border-color: rgba(233, 78, 44, 0.45);
}
.howto-card--wide {
  grid-column: 1 / -1;
}
.howto-card--link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.howto-card--link:hover,
.howto-card--link:focus-visible {
  border-color: #e94e2c;
  color: inherit;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.howto-card--link:hover .howto-card__link i,
.howto-card--link:focus-visible .howto-card__link i {
  transform: translateX(3px);
}
.howto-card--link:focus-visible {
  outline: 2px solid #e94e2c;
  outline-offset: 2px;
}
.howto-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.9rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #e94e2c;
}
.howto-card__link i {
  transition: transform 0.2s;
}
.howto-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}
.howto-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: rgba(233, 78, 44, 0.12);
  color: #e94e2c;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.howto-card__text {
  color: #bbb;
  line-height: 1.65;
  margin: 0 0 0.75rem;
}
.howto-card__text:last-child {
  margin-bottom: 0;
}
.howto-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid #e94e2c;
  border-radius: 0 6px 6px 0;
  background-color: rgba(233, 78, 44, 0.08);
  color: #bbb;
  line-height: 1.6;
}
.howto-note i {
  color: #e94e2c;
  margin-top: 0.2rem;
}
.howto-contact {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background-color: #2c3034;
  border: 1px solid #3a3f44;
  border-radius: 10px;
  padding: 2rem;
}
.howto-contact__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(233, 78, 44, 0.12);
  color: #e94e2c;
  font-size: 1.25rem;
}
.howto-contact__body {
  flex: 1 1 auto;
}
.howto-contact__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.howto-contact__text {
  color: #bbb;
  line-height: 1.6;
  margin: 0 0 0.25rem;
}
.howto-contact__team {
  font-weight: 600;
  margin: 0 0 1rem;
}
@media (max-width: 576px) {
  .howto-hero,
  .howto-contact {
    flex-direction: column;
    padding: 1.5rem;
  }
}
#pageLoadOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
#pageLoadOverlay.is-active {
  display: flex;
}
#pageLoadOverlay.htmx-request {
  display: flex;
}
#pageLoadOverlay .spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3em;
  color: #e94e2c;
}
.btn > .btn-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.45rem;
  vertical-align: -0.125em;
  border: 0.15em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spinner-rotate 0.75s linear infinite;
}
@keyframes btn-spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn > .btn-spinner {
    animation-duration: 1.5s;
  }
}
.promo {
  max-width: 1100px;
  margin: 0 auto;
}
.promo-hero {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: linear-gradient(135deg, #353a3f 0%, #2c3034 60%);
  border: 1px solid #3a3f44;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.promo-hero__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background-color: rgba(233, 78, 44, 0.15);
  color: #e94e2c;
  font-size: 1.5rem;
}
.promo-hero__body {
  flex: 1 1 auto;
}
.promo-hero__title {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.promo-hero__lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #bbb;
  margin: 0 0 1.25rem;
}
.promo-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.promo-points {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  max-width: 62ch;
}
.promo-points__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid #3a3f44;
  line-height: 1.6;
}
.promo-points__icon {
  flex: 0 0 auto;
  width: 1.25rem;
  margin-top: 0.2rem;
  color: #e94e2c;
  text-align: center;
}
.promo-points__body {
  color: #bbb;
}
.promo-points__title {
  display: block;
  /* Same colour as the body text — @text-color-main is #000 and would be unreadable
	   on the dark surface. Only the size sets the title apart. */
  font-size: 1.05rem;
  font-weight: 600;
}
@media (max-width: 576px) {
  .promo-hero {
    flex-direction: column;
    padding: 1.5rem;
  }
}
:root {
  --report-chart-color: #e94e2c;
}
.report-graph {
  background-color: #2c3034;
  border: 1px solid #3a3f44;
  border-radius: 10px;
  padding: 1.5rem;
}
.report-graph__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.report-graph__title {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0;
}
.report-graph__series {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.report-graph__kpi {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
  background-color: transparent;
  border: 1px solid #3a3f44;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.report-graph__kpi:hover {
  border-color: rgba(233, 78, 44, 0.55);
}
.report-graph__kpi:focus-visible {
  outline: 2px solid #e94e2c;
  outline-offset: 2px;
}
.report-graph__kpi--active {
  border-color: #e94e2c;
  background-color: rgba(233, 78, 44, 0.1);
}
.report-graph__kpi-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #bbb;
}
.report-graph__kpi-value {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
}
.report-graph__kpi-sub {
  font-size: 0.75rem;
  color: #888;
}
.report-graph__notice {
  display: flex;
  align-items: center;
  background-color: rgba(233, 78, 44, 0.12);
  border-left: 3px solid #e94e2c;
  border-radius: 4px;
  padding: 0.65rem 0.9rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: #bbb;
}
.report-graph__chart-wrap {
  position: relative;
  height: 380px;
}
.report-graph__chart-wrap--horizontal {
  height: auto;
}
.report-graph__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 220px;
  color: #bbb;
  text-align: center;
}
.report-graph__empty i {
  font-size: 1.75rem;
  color: #888;
}
.report-graph__empty p {
  margin: 0;
}
html,
body {
  font-size: 14px;
}
header,
footer {
  background-color: #161616;
}
a {
  text-decoration: none;
  color: #e94e2c;
}
input[type=file] {
  display: inline-block;
}
body .navbar .nav-item a.active {
  color: #e94e2c;
  font-weight: 600;
}
.section {
  background-color: #2c3034;
  border: 1px solid #3a3f44;
  border-radius: 6px;
  padding: 1.25rem 1.5rem 1.5rem;
  margin-bottom: 1.5rem;
}
.new-section {
  margin-top: 1.5rem;
}
.section-sub {
  margin-bottom: 1.5rem;
}
.actions {
  margin-top: 1rem;
}
table th,
table td {
  padding: 0.35rem 0.6rem;
}
a.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #bbb;
  font-size: 0.875rem;
}
a.back-link:hover {
  color: #fff;
}
.dl-horizontal dt {
  white-space: normal;
}
.one-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ok {
  color: #22c55e;
}
.error {
  color: darkred;
}
.danger {
  display: inline-block;
}
.field {
  margin-bottom: 1.25rem;
}
.field > label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.field input[type=text],
.field input[type=number],
.field input[type=date],
.field input[type=email],
.field input[type=password],
.field textarea {
  display: block;
  width: 100%;
  max-width: 480px;
  padding: 0.4rem 0.65rem;
  background-color: transparent;
  border: 1px solid #555;
  border-radius: 4px;
  color: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input[type=text]:focus,
.field input[type=number]:focus,
.field input[type=date]:focus,
.field input[type=email]:focus,
.field input[type=password]:focus,
.field textarea:focus {
  border-color: #4a7fc1;
  box-shadow: 0 0 0 0.2rem rgba(74, 127, 193, 0.25);
  outline: none;
}
.field select {
  display: block;
  width: 100%;
  max-width: 480px;
  padding: 0.4rem 0.65rem;
  background-color: #2c3034;
  border: 1px solid #555;
  border-radius: 4px;
  color: inherit;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select:focus {
  border-color: #4a7fc1;
  box-shadow: 0 0 0 0.2rem rgba(74, 127, 193, 0.25);
  outline: none;
}
.field select option {
  background-color: #2c3034;
  color: #fff;
}
.field input[type=date],
.field input[type=text].number,
.field input.small {
  max-width: 15rem;
}
.field textarea {
  max-width: 100%;
  min-height: 120px;
  resize: vertical;
}
.ui-widget-content {
  color: #888 !important;
}
.btn-primary {
  --bs-btn-bg: #4a7fc1;
  --bs-btn-border-color: #4a7fc1;
  --bs-btn-hover-bg: #3a6ba8;
  --bs-btn-hover-border-color: #3a6ba8;
  --bs-btn-active-bg: #325d92;
  --bs-btn-active-border-color: #325d92;
  --bs-btn-disabled-bg: #4a7fc1;
  --bs-btn-disabled-border-color: #4a7fc1;
}
#login-submit {
  --bs-btn-bg: #e94e2c;
  --bs-btn-border-color: #e94e2c;
  --bs-btn-hover-bg: #ee755a;
  --bs-btn-hover-border-color: #ee755a;
  --bs-btn-active-bg: #701e0c;
  --bs-btn-active-border-color: #701e0c;
}
.footer {
  position: absolute;
  font-size: 0.9rem;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 30px;
}
