.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: #999;
  text-decoration: none;
  margin-bottom: 1.25rem;
}
.back-link::before {
  content: "◂";
  font-size: 0.75rem;
}
.back-link:hover,
.back-link:focus {
  color: #0ea5e9;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.page-header h1,
.page-header h2,
.page-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}
.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}
.action-card {
  background: #2c3034;
  border: 1px solid #3a3f44;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  min-width: 260px;
  flex: 0 0 auto;
}
.action-card h4 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
}
.page-layout {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.page-layout-main {
  flex: 1 1 0;
  min-width: 0;
}
.page-layout-aside {
  flex: 0 0 280px;
}
.section-group {
  margin-bottom: 2rem;
}
.section-group h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #999;
  border-bottom: 1px solid #3a3f44;
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}
.card-heading {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
}
.form-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #999;
  margin: 0 0 0.75rem;
}
.field-hint {
  font-size: 0.78rem;
  color: #999;
  margin-top: 0.4rem;
}
.film-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid #3a3f44;
  padding-bottom: 0;
}
.film-tab {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #bbb;
  text-decoration: none;
  border-radius: 4px 4px 0 0;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.film-tab:hover {
  color: #fff;
  background: #2c3034;
  border-color: #3a3f44 #3a3f44 transparent;
}
.film-tab--active {
  color: #fff;
  background: #2c3034;
  border-color: #3a3f44 #3a3f44 #2c3034;
  border-bottom-color: #2c3034;
}
.film-tab--convert {
  margin-left: auto;
  color: #0ea5e9;
}
.film-tab--convert:hover {
  color: #37b9f3;
  background: transparent;
  border-color: transparent;
}
.nav-tabs {
  border-bottom-color: #3a3f44;
}
.nav-tabs .nav-link {
  color: #bbb;
  border-color: transparent;
  border-radius: 4px 4px 0 0;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.nav-tabs .nav-link:hover:not(.active) {
  color: #fff;
  background: #2c3034;
  border-color: #3a3f44 #3a3f44 transparent;
}
.nav-tabs .nav-link.active {
  color: #fff;
  background: #2c3034;
  border-color: #3a3f44 #3a3f44 #2c3034;
}
.nav-tabs .nav-link:focus-visible {
  box-shadow: none;
}
.tab-content.border {
  border-color: #3a3f44 !important;
}
.btn-outline-secondary {
  --bs-btn-color: #bbb;
  --bs-btn-border-color: #bbb;
}
.field:has(input[type=checkbox].toggle-cb) {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  max-width: 560px;
}
.field:has(input[type=checkbox].toggle-cb) label {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
input[type=checkbox].toggle-cb {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 14px;
  background: #3a3f44;
  border: 1px solid #555;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s;
}
input[type=checkbox].toggle-cb::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #888;
  transition: transform 0.25s, background 0.25s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
input[type=checkbox].toggle-cb:checked {
  background: #22c55e;
  border-color: #22c55e;
}
input[type=checkbox].toggle-cb:checked::after {
  transform: translateX(24px);
  background: #fff;
}
input[type=checkbox].toggle-cb:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.35);
}
input[type=checkbox].toggle-cb.toggle-cb--locked {
  opacity: 0.6;
  cursor: not-allowed;
}
input[type=checkbox].toggle-cb.toggle-cb--locked + label {
  cursor: not-allowed;
}
input[type=checkbox].toggle-cb.toggle-cb--danger:checked {
  background: #dc2626;
  border-color: #dc2626;
}
input[type=checkbox].toggle-cb.toggle-cb--danger:focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.35);
}
.result-table {
  width: 100%;
}
.result-table tr.result-row {
  cursor: pointer;
}
.result-table tr.result-row:hover td {
  background-color: rgba(233, 78, 44, 0.08);
}
#filter-wrap {
  margin-bottom: 1.5rem;
}
#filter-form {
  display: none;
}
.pagination {
  gap: 2px;
}
.pagination .page-item .page-link {
  background-color: transparent;
  border: none;
  color: #0ea5e9;
  border-radius: 4px;
  padding: 0.3rem 0.65rem;
  font-size: 0.85rem;
  transition: background-color 0.15s, color 0.15s;
}
.pagination .page-item .page-link:hover {
  background-color: rgba(14, 165, 233, 0.14);
  color: #2db5f2;
}
.pagination .page-item .page-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.3);
  outline: none;
}
.pagination .page-item.active .page-link {
  background-color: #0ea5e9;
  color: #fff;
  border: none;
}
.pagination .page-item.disabled .page-link {
  background-color: transparent;
  color: #999;
  border: none;
  cursor: not-allowed;
}
#results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2rem;
  margin-bottom: 0.5rem;
}
#results-header #results-info {
  color: #aaa;
  font-size: 0.85rem;
}
.sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #ccc;
}
.sort-wrap select {
  padding: 0.35rem 0.65rem;
  background-color: #2c3034;
  border: 1px solid #555;
  border-radius: 4px;
  color: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sort-wrap select:focus {
  border-color: #e94e2c;
  box-shadow: 0 0 0 0.2rem rgba(233, 78, 44, 0.3);
  outline: none;
}
.sort-wrap select option {
  background-color: #2c3034;
  color: #fff;
}
.films-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.films-search-bar {
  position: relative;
  flex: 1 1 220px;
  min-width: 0;
}
.films-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
}
.films-search-input {
  display: block;
  width: 100%;
  padding: 0.45rem 1rem 0.45rem 2.4rem;
  border: 1px solid #444;
  border-radius: 999px;
  background: #1e2124;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.films-search-input::placeholder {
  color: #666;
}
.films-search-input:focus {
  border-color: #e94e2c;
  box-shadow: 0 0 0 3px rgba(233, 78, 44, 0.3);
}
.films-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  background: transparent;
  border: 1px solid #444;
  border-radius: 999px;
  color: #ccc;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.films-filter-toggle:hover {
  border-color: #e94e2c;
  color: #fff;
}
.films-filter-toggle[aria-expanded="true"] {
  border-color: #e94e2c;
  color: #e94e2c;
}
.films-filter-toggle[aria-expanded="true"] .filter-chevron {
  transform: rotate(180deg);
}
.filter-chevron {
  transition: transform 0.2s ease;
}
.group {
  flex: 0 0 auto;
  min-width: 180px;
  margin-bottom: 1rem;
}
.group h3 {
  border-bottom: 1px solid #444;
  margin-top: 0;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #999;
}
.group input[type=button] {
  color: #ccc;
  background: #2a2d31;
  border: 1px solid #444;
  border-radius: 999px;
  margin: 0 0.3rem 0.4rem 0;
  padding: 0.2rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.group input[type=button]:hover {
  border-color: #e94e2c;
  color: #fff;
}
.group input[type=button].col-1 {
  width: 100%;
  text-align: left;
  border-radius: 4px;
}
.group input[type=button].col-2 {
  width: calc(48% - 0.35rem);
}
.group input[type=button]:not(.col-1):not(.col-2) {
  width: calc(23% - 0.35rem);
}
.group input[type=button].active {
  border-color: #e94e2c;
  background-color: rgba(233, 78, 44, 0.2);
  color: #fff;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 8.5rem;
  padding: 0.35rem 0.75rem;
  background: #2a2d31;
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 4px;
  color: #ccc;
  font-size: 0.82rem;
  cursor: pointer;
  margin: 0 0.4rem 0.45rem 0;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  text-align: left;
  white-space: nowrap;
}
.filter-chip i {
  flex-shrink: 0;
  width: 1rem;
  text-align: center;
  color: rgba(14, 165, 233, 0.6);
  transition: opacity 0.2s, color 0.2s;
}
.filter-chip:hover {
  border-color: #0ea5e9;
  color: #fff;
  background: rgba(14, 165, 233, 0.1);
}
.filter-chip:hover i {
  color: #0ea5e9;
}
.filter-chip.active {
  border-color: #0ea5e9;
  background: rgba(14, 165, 233, 0.18);
  color: #fff;
}
.filter-chip.active i {
  color: #0ea5e9;
}
#active-filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem 0 0.25rem;
}
.active-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem 0.2rem 0.7rem;
  background: rgba(233, 78, 44, 0.18);
  border: 1px solid rgba(233, 78, 44, 0.3);
  border-radius: 999px;
  font-size: 0.78rem;
  color: #ddd;
}
.active-filter-label {
  line-height: 1;
}
.active-filter-remove {
  background: none;
  border: none;
  color: #aaa;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.active-filter-remove:hover {
  color: #fff;
}
@media (max-width: 600px) {
  .films-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .films-search-bar {
    flex: 1 1 auto;
  }
}
@media (max-width: 992px) {
  .group input[type=button].col-2 {
    width: 100%;
  }
  .group input[type=button]:not(.col-1):not(.col-2) {
    width: calc(50% - 0.35rem);
  }
}
.ck.ck-editor {
  width: 100% !important;
  --ck-color-base-background: #2a2d31;
  --ck-color-base-foreground: #1e2124;
  --ck-color-base-border: #444;
  --ck-color-text: #e8e8e8;
  --ck-color-toolbar-background: #1e2124;
  --ck-color-toolbar-border: #444;
  --ck-color-button-default-background: transparent;
  --ck-color-button-default-hover-background: #2c3034;
  --ck-color-button-on-background: #2c3034;
  --ck-color-button-on-hover-background: #363a3e;
  --ck-color-list-background: #2c3034;
  --ck-color-list-button-hover-background: #363a3e;
  --ck-color-dropdown-panel-background: #2c3034;
  --ck-color-dropdown-panel-border: #444;
  --ck-focus-ring: 1px solid #e94e2c;
  --ck-focus-outer-shadow: 0 0 0 3px rgba(233, 78, 44, 0.3);
}
.ck.ck-editor__main > .ck-editor__editable {
  min-height: 180px;
  background-color: #2a2d31;
  color: #e8e8e8;
  border-color: #444 !important;
}
.ck.ck-editor__main > .ck-editor__editable p,
.ck.ck-editor__main > .ck-editor__editable li,
.ck.ck-editor__main > .ck-editor__editable h1,
.ck.ck-editor__main > .ck-editor__editable h2,
.ck.ck-editor__main > .ck-editor__editable h3,
.ck.ck-editor__main > .ck-editor__editable h4,
.ck.ck-editor__main > .ck-editor__editable span {
  color: #e8e8e8;
}
.ck.ck-editor__main > .ck-editor__editable a {
  color: #cccccc;
  text-decoration: underline;
  text-decoration-color: #F67F00;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.ck.ck-editor__main > .ck-editor__editable a:hover {
  color: #FFC280;
  text-decoration-color: #FFC280;
}
.ck.ck-toolbar .ck-icon {
  color: #ccc;
}
.ck.ck-dropdown__panel .ck-list__item .ck-button__label,
.ck.ck-list .ck-list__item .ck-button__label {
  color: #ccc;
}
#deleteConfirmModal .modal-dialog {
  max-width: 440px;
}
#deleteConfirmModal .modal-content {
  background: #2c3034;
  border: 1px solid #3a3f44;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}
#deleteConfirmModal .modal-header {
  border-bottom: 1px solid #3a3f44;
  padding: 1rem 1.25rem 0.85rem;
}
#deleteConfirmModal .modal-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}
#deleteConfirmModal .btn-close {
  filter: invert(1) grayscale(1) brightness(0.8);
  border: 0;
  box-shadow: none;
}
#deleteConfirmModal .modal-body {
  padding: 1.1rem 1.25rem;
  color: #999;
  font-size: 0.9rem;
  line-height: 1.55;
}
#deleteConfirmModal .modal-footer {
  border-top: 1px solid #3a3f44;
  padding: 0.75rem 1.25rem;
}
.spinner-wrap {
  text-align: center;
  padding-top: 3rem;
}
.spinner {
  width: 5rem;
  padding-bottom: 1rem;
}
.spinner-outer {
  position: relative;
}
.results-outer {
  position: relative;
  min-height: 6rem;
}
.spinner-outer .spinner-wrap,
.results-outer .spinner-wrap {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.6rem;
  padding-top: 0.6rem;
  text-align: unset;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  background: rgba(20, 22, 25, 0.88);
  border: 0;
  border-radius: 10px;
  line-height: 0;
}
.spinner-outer .spinner-wrap.is-loading,
.results-outer .spinner-wrap.is-loading {
  opacity: 1;
  pointer-events: auto;
}
.spinner-outer .spinner,
.results-outer .spinner {
  width: 4rem;
  padding-bottom: 0;
}
.autocomplete-suggestions {
  border: 1px solid #3a3f44;
  background: #2c3034;
  color: #ddd;
  overflow: auto;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.autocomplete-suggestion {
  padding: 0.35rem 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.1s;
}
.autocomplete-selected,
.autocomplete-suggestion:hover {
  background: #3a3f44;
  color: #fff;
}
.autocomplete-suggestions strong {
  font-weight: 600;
  color: #e94e2c;
}
.autocomplete-group {
  padding: 0.25rem 0.75rem;
  color: #888;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.autocomplete-group strong {
  display: block;
  border-bottom: 1px solid #3a3f44;
}
header,
footer {
  /*background-color: @color-background-header;*/
  background-color: #161616;
}
body .navbar .nav-item a.active {
  color: #e94e2c;
}
header .navbar-nav {
  --bs-navbar-nav-link-padding-y: 0rem;
}
@media (min-width: 576px) and (max-width: 850px) {
  .navbar {
    --bs-navbar-nav-link-padding-x: 0.25rem;
    --bs-navbar-nav-link-padding-y: 0.25rem;
  }
  .navbar a {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    /*text-overflow: ellipsis;*/
  }
}
.site-logo {
  max-height: 36px;
  width: auto;
}
.logo-text {
  font-size: 0.95rem;
  line-height: 1;
  align-self: flex-end;
}
.logo-row {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}
.footer {
  position: fixed;
  /* Låser footeren til selve nettleservinduet */
  bottom: 0;
  left: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 30px;
  font-size: 0.75rem;
  z-index: 1000;
  /* Sørger for at den ligger øverst av alle elementer */
}
dialog#deleteConfirmModal {
  padding: 0;
  border: none;
  border-radius: var(--bs-modal-border-radius, 0.5rem);
  background: transparent;
  width: 100%;
  max-width: 500px;
  box-shadow: none;
}
dialog#deleteConfirmModal::backdrop {
  background: rgba(0, 0, 0, 0.5);
}
dialog#deleteConfirmModal .modal-content {
  border-radius: var(--bs-modal-border-radius, 0.5rem);
}
dialog#deleteConfirmModal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
dialog#deleteConfirmModal .modal-footer {
  display: flex;
  gap: 0.75rem;
}
dialog#deleteConfirmModal .modal-footer .btn {
  flex: 1;
}
#pageLoadOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1060;
  align-items: center;
  justify-content: center;
}
#pageLoadOverlay.visible,
#pageLoadOverlay.htmx-request {
  display: flex;
}
#pageLoadOverlay .spinner-border {
  width: 3rem;
  height: 3rem;
}
.sidebar,
.sidebar-content {
  display: inline-block;
  vertical-align: top;
}
.sidebar {
  width: 29%;
  padding-right: 2rem;
}
.sidebar-content {
  width: 70%;
}
@media (max-width: 1600px) {
  .film {
    width: 19%;
  }
}
@media (max-width: 1200px) {
  .film {
    width: 24%;
  }
  .film h3 {
    font-size: 14px;
  }
}
@media (max-width: 992px) {
  .film {
    width: 32%;
  }
  .film h3 {
    font-size: 14px;
  }
  .jumbotron {
    padding: 40px 0;
  }
  .group input[type=button].col-2 {
    width: 100%;
  }
}
@media (max-width: 600px) {
  .film {
    width: 49%;
  }
  .group {
    width: 100%;
  }
  .group h3 {
    font-size: 14px;
  }
}
@media (max-width: 500px) {
  .jumbotron .search-wrap {
    width: 85%;
  }
}
@media (max-width: 400px) {
  .film {
    width: 100%;
  }
}
.films-section {
  margin-top: 1rem;
}
.films-count {
  font-size: 0.75rem;
  font-weight: 400;
  color: #777;
  letter-spacing: 0;
  text-transform: none;
  margin-left: 0.25rem;
}
ul#films {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}
.film-card {
  cursor: grab;
  list-style: none;
}
.film-card:active {
  cursor: grabbing;
}
.film-card__inner {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #1a1d20;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.film-card__inner:hover {
  border-color: #444;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.film-card__poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}
.film-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.2s;
}
.film-card__delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 50%;
  cursor: pointer;
  color: #ccc;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
  z-index: 2;
  margin: 0;
}
.film-card__delete-btn input[type=checkbox] {
  display: none;
}
.film-card__delete-btn:hover {
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
}
.film-card__inner:hover .film-card__delete-btn {
  opacity: 1;
}
.film-card__title {
  padding: 0.3rem 0.45rem;
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ccc;
  background: #1a1d20;
}
.film-card__inner.delete {
  border-color: #dc2626;
}
.film-card__inner.delete .film-card__poster img {
  filter: blur(2px) grayscale(0.7) opacity(0.5);
}
.film-card__inner.delete .film-card__delete-btn {
  opacity: 1;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
}
.film-card__inner.delete .film-card__title {
  color: #f87171;
  text-decoration: line-through;
}
.film-card-placeholder {
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.06);
  border: 2px dashed rgba(14, 165, 233, 0.3);
  aspect-ratio: 2 / 3;
}
.film-card.ui-sortable-helper .film-card__inner {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  border-color: #0ea5e9;
  opacity: 0.95;
}
.add-film-section {
  margin-top: 1rem;
}
.add-film-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.add-film-bar .films-search-bar {
  flex: 1 1 250px;
  max-width: 400px;
}
#header {
  margin-bottom: 1rem;
}
body > .wrap {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right;
}
.poster-wrap img {
  max-height: 400px;
}
.film-img-wrap {
  /*position: absolute;*/
}
.meta-field {
  display: block;
  color: #aaa;
  border-left: 4px solid #2563eb;
  padding-left: 1rem;
}
.detail-wrap {
  display: block;
  background-color: #ddd;
  background-color: rgba(119, 119, 119, 0.3);
  border-radius: 5px;
  padding: 0.5rem;
}
.detail-wrap.alt {
  background-color: #2563eb;
  background-color: rgba(37, 99, 235, 0.3);
}
.detail-wrap .title {
  display: inline-block;
  font-weight: bold;
  min-width: 12rem;
}
#player-wrap {
  height: 100%;
}
#player-wrap > .theoplayer {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  height: 100%;
}
.vjs-poster {
  background-size: contain;
}
.slick-list {
  overflow: hidden;
}
button.slick-arrow::before {
  color: #e94e2c !important;
}
.play-wrap {
  margin: 2rem 0;
}
.play-wrap a {
  color: white;
  background-color: black;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-right: 1rem;
  transition: background-color 0.3s;
}
.play-wrap a:hover {
  text-decoration: none;
  background-color: #e94e2c;
}
.similar-wrap {
  padding: 0 2rem 2rem;
}
.similar-wrap h2 {
  text-align: center;
  text-transform: uppercase;
  font-weight: bold;
  color: #8E9092;
  margin-bottom: 3rem;
}
.similar {
  display: inline-block;
  text-align: center;
  margin-bottom: 3rem;
}
.similar .poster {
  margin: 0 auto;
}
.similar .title {
  display: block;
  text-align: center;
  padding: 0 1rem;
}
.similar a {
  color: #fff;
  transition: color 0.3s;
}
.similar a:hover {
  text-decoration: none;
  color: #e94e2c;
}
@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.4;
  }
}
@-moz-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.4;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.4;
  }
}
#background-image {
  background-size: cover;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Source: https://fabriceleven.com/design/creating-fancy-css3-fade-in-animations-on-page-load/ */
  /*-ms-opacity:0;*/
  opacity: 0;
  /* make things invisible upon start */
  -webkit-animation: fadeIn ease-in 1;
  /* call our keyframe named fadeIn, use animattion ease-in and repeat it only 1 time */
  -moz-animation: fadeIn ease-in 1;
  animation: fadeIn ease-in 1;
  -webkit-animation-fill-mode: forwards;
  /* this makes sure that after animation is done we remain at the last keyframe value (opacity: 1)*/
  -moz-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  -webkit-animation-duration: 3s;
  -moz-animation-duration: 3s;
  animation-duration: 3s;
  -webkit-animation-delay: 0.1s;
  -moz-animation-delay: 0.1s;
  animation-delay: 0.1s;
}
/*@media (max-width: 992px) {*/
@media (max-width: 700px) {
  .container > .wrap > .left,
  .container > .wrap > .right {
    width: 100%;
    float: none;
  }
}
.films-section {
  margin-top: 1rem;
}
.films-count {
  font-size: 0.75rem;
  font-weight: 400;
  color: #777;
  letter-spacing: 0;
  text-transform: none;
  margin-left: 0.25rem;
}
ul#films {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}
.film-card {
  cursor: grab;
  list-style: none;
}
.film-card:active {
  cursor: grabbing;
}
.film-card__inner {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #1a1d20;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.film-card__inner:hover {
  border-color: #444;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.film-card__poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}
.film-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.2s;
}
.film-card__delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 50%;
  cursor: pointer;
  color: #ccc;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
  z-index: 2;
  margin: 0;
}
.film-card__delete-btn input[type=checkbox] {
  display: none;
}
.film-card__delete-btn:hover {
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
}
.film-card__inner:hover .film-card__delete-btn {
  opacity: 1;
}
.film-card__title {
  padding: 0.3rem 0.45rem;
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ccc;
  background: #1a1d20;
}
.film-card__inner.delete {
  border-color: #dc2626;
}
.film-card__inner.delete .film-card__poster img {
  filter: blur(2px) grayscale(0.7) opacity(0.5);
}
.film-card__inner.delete .film-card__delete-btn {
  opacity: 1;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
}
.film-card__inner.delete .film-card__title {
  color: #f87171;
  text-decoration: line-through;
}
.film-card-placeholder {
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.06);
  border: 2px dashed rgba(14, 165, 233, 0.3);
  aspect-ratio: 2 / 3;
}
.film-card.ui-sortable-helper .film-card__inner {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  border-color: #0ea5e9;
  opacity: 0.95;
}
.add-film-section {
  margin-top: 1rem;
}
.add-film-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.add-film-bar .films-search-bar {
  flex: 1 1 250px;
  max-width: 400px;
}
/* ── Card list ─────────────────────────────────────────────────────────────── */
#lists {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
/* ── Individual card ─────────────────────────────────────────────────────────*/
.fl-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  border: 1px solid #3a3f44;
  background: #2c3034;
  transition: box-shadow 0.15s, border-color 0.15s;
  cursor: default;
  user-select: none;
}
.fl-card:hover {
  border-color: #555;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.fl-card--published {
  border-left: 4px solid #22c55e;
}
.fl-card--unpublished {
  border-left: 4px solid #555;
}
/* ── Drag handle ─────────────────────────────────────────────────────────────*/
.fl-card__handle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  color: #666;
  cursor: grab;
  font-size: 1rem;
  transition: color 0.15s;
}
.fl-card__handle:hover {
  color: #aaa;
}
.fl-card:active .fl-card__handle,
.fl-card.ui-sortable-helper .fl-card__handle {
  cursor: grabbing;
}
/* ── Body (id + name + badges) ───────────────────────────────────────────────*/
.fl-card__body {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}
.fl-card__id {
  font-size: 0.75rem;
  font-weight: 600;
  color: #777;
  flex-shrink: 0;
}
.fl-card__name {
  font-size: 0.95rem;
  font-weight: 500;
  color: #e8e8e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* ── Status badges ───────────────────────────────────────────────────────────*/
.fl-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-left: auto;
  flex-shrink: 0;
}
.fl-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}
.fl-badge--published {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}
.fl-badge--unpublished {
  background: rgba(120, 120, 120, 0.12);
  border: 1px solid rgba(120, 120, 120, 0.3);
  color: #888;
}
.fl-badge--frontpage {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}
/* ── Action buttons ──────────────────────────────────────────────────────────*/
.fl-card__actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.fl-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid #444;
  background: transparent;
  color: #ccc;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.fl-action-btn:hover,
.fl-action-btn:focus {
  border-color: #0ea5e9;
  color: #fff;
  background: rgba(14, 165, 233, 0.12);
  text-decoration: none;
}
/* ── Sortable drag states ────────────────────────────────────────────────────*/
.list-placeholder {
  height: 56px;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.06);
  border: 2px dashed rgba(14, 165, 233, 0.35);
}
.fl-card.ui-sortable-helper {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border-color: #0ea5e9;
  opacity: 0.95;
}
/* ── Submit block ────────────────────────────────────────────────────────────*/
.submit-block {
  margin-top: 1rem;
}
/* ── Results / feedback ──────────────────────────────────────────────────────*/
#results-wrap {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
#results-wrap .success {
  color: #4ade80;
}
#results-wrap .error {
  color: #f87171;
}
.results-outer {
  display: block;
}
.pager-wrap {
  clear: both;
}
.result-info {
  vertical-align: middle;
  color: #aaa;
  margin-bottom: 20px;
}
@media (max-width: 1600px) {
  .film {
    width: 19%;
  }
}
@media (max-width: 1200px) {
  .film {
    width: 24%;
  }
  .film h3 {
    font-size: 14px;
  }
}
@media (max-width: 992px) {
  .film {
    width: 32%;
  }
  .film h3 {
    font-size: 14px;
  }
  .jumbotron {
    padding: 40px 0;
  }
}
@media (max-width: 600px) {
  .film {
    width: 49%;
  }
  .group h3 {
    font-size: 14px;
  }
}
@media (max-width: 400px) {
  .film {
    width: 100%;
  }
}
#edit-header {
  margin-bottom: 2rem;
}
#edit-header img,
#edit-header h2 {
  display: inline-block;
}
#edit-header img {
  vertical-align: top;
  margin-right: 2rem;
}
#edit-header h2 {
  vertical-align: bottom;
  margin-bottom: 0;
}
.edit-icon {
  width: 10rem;
}
.overridden-image-wrap .image-wrap {
  display: inline-block;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.overridden-image-wrap.delete .image-wrap {
  background-color: #dc2626;
  box-shadow: 0 0 10px #dc2626;
}
.overridden-image {
  transition: filter 0.3s, opacity 0.3s;
}
.overridden-image-wrap.delete .overridden-image {
  opacity: 0.5;
  background-color: #dc2626;
  filter: blur(2px);
}
.fs-admin-wrap {
  margin-bottom: 2rem;
}
.fs-admin-swiper {
  width: 100%;
  /*aspect-ratio: 1920 / 650;*/
  /*max-height: 500px;*/
  border-radius: 4px;
  overflow: hidden;
  background: #111;
}
.fs-admin-swiper .fs-admin-slide {
  height: 48vw;
  min-height: 200px;
  max-height: 650px;
  position: relative;
  background-size: cover;
  background-position: center;
}
.fs-admin-slide-overlay {
  position: absolute;
  cdinset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
}
.fs-admin-slide-text {
  position: absolute;
  z-index: 2;
  bottom: 2.5rem;
  left: 1.25rem;
  max-width: 70%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.fs-admin-title {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
.fs-admin-ingress {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.fs-admin-type {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.15rem;
}
.fs-admin-content-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}
.fs-admin-content-link:hover {
  color: #fff;
}
.fs-admin-slide-actions {
  position: absolute;
  z-index: 3;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.4rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.fs-admin-slide:hover .fs-admin-slide-actions {
  opacity: 1;
}
.fs-admin-pagination {
  bottom: 0.75rem;
}
.fs-admin-prev,
.fs-admin-next {
  --swiper-navigation-size: 28px;
  --swiper-navigation-color: rgba(255, 255, 255, 0.8);
}
.fs-admin-thumbs {
  position: relative;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  user-select: none;
}
.fs-admin-thumb-placeholder {
  width: 180px;
  height: 110px;
  border-radius: 3px;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  visibility: visible !important;
}
.fs-admin-thumb {
  position: relative;
  width: 180px;
  height: 110px;
  border-radius: 3px;
  overflow: hidden;
  cursor: grab;
  border: 2px solid transparent;
  background: #1a1a1a;
  transition: border-color 0.15s, transform 0.1s;
  flex-shrink: 0;
}
.fs-admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fs-admin-thumb:hover {
  border-color: #e94e2c;
  transform: translateY(-2px);
}
.fs-admin-thumb.ui-sortable-helper {
  cursor: grabbing;
  border-color: #e94e2c;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transform: scale(1.04);
  z-index: 100;
}
.fs-admin-thumb-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 0.75rem;
  color: #777;
}
.fs-admin-thumb-num {
  position: absolute;
  top: 6px;
  left: 6px;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.35rem;
  border-radius: 3px;
  background: #e94e2c;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.fs-admin-thumb-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2px 4px;
  font-size: 0.65rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fs-type-radios {
  display: flex;
  gap: 1.5rem;
  padding: 0.25rem 0;
}
.fs-type-radio {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-weight: 400;
  margin: 0;
}
.fs-selected-label {
  font-weight: 600;
  color: #e94e2c;
}
.image-upload-card {
  background: #2c3034;
  border: 1px solid #3a3f44;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  max-width: 560px;
}
.image-upload-card .field {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
}
.image-upload-card .field input,
.image-upload-card .field select {
  width: 100%;
  max-width: 100%;
}
.image-sections {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.image-sections .section-group {
  flex: 1 1 300px;
  min-width: 0;
}
.images {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}
.image-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: #2c3034;
  border: 1px solid #3a3f44;
  border-radius: 4px;
  padding: 0.6rem;
  width: 210px;
  transition: border-color 0.2s;
}
.image-wrap:hover {
  border-color: rgba(233, 78, 44, 0.3);
}
.image-wrap a {
  display: block;
  line-height: 0;
}
.image-wrap img {
  width: 190px;
  height: auto;
  border-radius: 2px;
  display: block;
}
.image-wrap form {
  width: 100%;
}
.image-wrap .delete-image {
  width: 100%;
  font-size: 0.78rem;
  padding: 0.2rem 0.5rem;
}
table {
  text-align: left;
  position: relative;
  border-collapse: collapse;
}
table th {
  border-left: 2px solid rgba(233, 78, 44, 0.3);
  border-right: 2px solid rgba(233, 78, 44, 0.3);
}
table td {
  border-left: 2px solid rgba(233, 78, 44, 0.3);
  border-right: 2px solid rgba(233, 78, 44, 0.3);
}
.table-header-top-css {
  position: sticky;
  top: 0;
}
.table-header-top-css th {
  background: var(--bs-gray-dark);
}
.table-header-top-css th:nth-child(odd) {
  background: var(--bs-gray-700);
}
.table-header-bottom-css {
  position: sticky;
  top: 25px;
  border-bottom: 4px solid rgba(233, 78, 44, 0.3);
}
.table-header-bottom-css th {
  background: var(--bs-gray-dark);
}
a.button-manual-override-budget {
  display: inline-block;
  margin-bottom: 10px;
  position: relative;
  max-width: 180px;
  background-color: red;
  color: white;
  padding: 1rem;
  border: none;
  transition: background-color 0.3s, box-shadow 0.3s;
}
a.button-manual-override-budget-disabled {
  display: inline-block;
  margin-bottom: 10px;
  position: relative;
  max-width: 180px;
  background-color: darkgray;
  color: white;
  padding: 1rem;
  border: none;
}
a.button-manual-override-budget-disabled:hover {
  text-decoration: none;
}
a.button-manual-override-budget:hover {
  background-color: #f39b88;
  box-shadow: 0 0 5px #f39b88;
}
p.last-manual-run {
  max-width: 320px;
}
p.next-manual-run {
  max-width: 320px;
}
.group {
  color: black;
  padding: 1rem;
}
.group.alternate {
  background-color: #F7E8AD;
}
.field {
  margin-bottom: 0;
}
.settlement-info-wrap {
  margin-bottom: 3rem;
}
.settlement-film-header {
  font-size: 130%;
}
.id-info {
  color: #888;
}
#select-player {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
#select-player a {
  padding: 0.3rem 1rem;
  background-color: #2c3034;
  border: 1px solid #444;
  border-radius: 4px;
  color: #ccc;
  text-decoration: none;
  font-size: 0.85rem;
  transition: border-color 0.15s, color 0.15s;
}
#select-player a:hover {
  border-color: #e94e2c;
  color: #fff;
}
#select-player span {
  padding: 0.3rem 0.75rem;
  background-color: #1e2124;
  border: 1px solid #444;
  border-radius: 4px;
  color: #888;
  font-size: 0.8rem;
}
#playerv3 {
  width: 100%;
  display: flex;
  justify-content: center;
}
#playerv3 iframe {
  width: 100%;
  min-width: 320px;
  aspect-ratio: 16/9;
}
.pu-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.pu-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0 1.25rem;
}
.pu-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 1rem 1.5rem;
  background: #2c3034;
  border: 1px solid #3a3f44;
  border-radius: 8px;
  gap: 0.25rem;
  transition: border-color 0.2s;
}
.pu-stat-card:hover {
  border-color: #515960;
}
.pu-stat-card[data-filter] {
  cursor: pointer;
  user-select: none;
}
.pu-stat-card[data-filter]:hover {
  border-color: #e94e2c;
}
.pu-stat-card[data-filter].active {
  border-color: #e94e2c;
  background: rgba(233, 78, 44, 0.12);
}
.pu-stat-card[data-filter].active .pu-stat-label {
  color: #e94e2c;
}
.pu-stat-card--total {
  border-color: rgba(233, 78, 44, 0.35);
  background: rgba(233, 78, 44, 0.06);
}
.pu-stat-card--deleted {
  border-color: rgba(180, 60, 60, 0.35);
  background: rgba(180, 60, 60, 0.05);
}
.pu-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.pu-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
}
.pu-filter-panel {
  padding: 0.75rem 0 1rem;
}
.pu-load-more {
  display: block;
  margin: 1.25rem auto 0;
  padding: 0.45rem 1.5rem;
  background: transparent;
  border: 1px solid #3a3f44;
  border-radius: 999px;
  color: #bbb;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.pu-load-more:hover {
  border-color: #e94e2c;
  color: #fff;
}
#results-wrap table {
  width: 100%;
}
#results-wrap tr.result-row {
  cursor: pointer;
}
#results-wrap tr.result-row:hover td {
  background-color: rgba(233, 78, 44, 0.08);
}
@media (max-width: 600px) {
  .pu-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .pu-overview {
    gap: 0.6rem;
  }
  .pu-stat-card {
    flex: 1 1 calc(50% - 0.6rem);
    min-width: 0;
  }
}
.ea-library-table {
  width: 100%;
  font-size: 0.9rem;
}
.ea-library-table td {
  padding: 0.35rem 0.6rem;
}
.ea-card--active {
  color: #22c55e;
  font-weight: 600;
}
.nu-form {
  max-width: 600px;
}
.nu-form__actions {
  margin-top: 0.5rem;
}
.nu-form__message {
  max-width: 560px;
  padding: 0.65rem 0.9rem;
  border-radius: 4px;
  border: 1px solid #3a3f44;
  background: #2c3034;
  font-size: 0.9rem;
}
html,
body {
  /*height: 100%;
    margin: 0;
    padding: 0;*/
  /*color: @text-color-main;*/
}
body {
  /*font-family: "SourceSansPro";*/
  /*background-color: @color-background;*/
}
/*
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}*/
/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
  white-space: normal;
}
/* Set width on the form input elements
input,
select,
textarea {
    max-width: 280px;
}*/
a {
  text-decoration: none;
  color: #e94e2c;
}
/*a {
    color: @main-color;
}
a:hover, a:focus {
    color: @main-color-highlight;
}
a:visited {
    color: @main-color-darken;
}*/
input[type=file] {
  display: inline-block;
}
.button {
  display: inline-block;
  background-color: #e94e2c;
  color: #fff;
  padding: 0.375rem 0.75rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.button:hover,
.button:focus {
  color: #fff;
  text-decoration: none;
  background-color: #ed6d51;
  box-shadow: 0 0 0 0.2rem rgba(233, 78, 44, 0.3);
  outline: none;
}
.button:disabled,
.button[disabled] {
  background-color: #6c757d;
  text-decoration: none;
  transition: none;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}
.danger {
  float: right;
}
table th,
table td {
  border: 1px solid rgba(233, 78, 44, 0.3);
  padding: 0.2rem 0.5rem;
}
table tr:hover td {
  background-color: rgba(33, 37, 41, 0.05);
}
#wrapper {
  min-height: 100%;
  position: relative;
}
.new-section {
  margin-top: 2rem;
  background: #2c3034;
  border-radius: 4px;
  padding: 1rem;
}
label.required::after {
  content: "*";
  font-weight: bold;
  color: red;
}
body .ui-widget-content {
  color: #aaa !important;
  background: #212529;
}
.section {
  /*border-bottom: 2px solid @main-color-faded;*/
  margin-bottom: 2.5rem;
}
.section-sub {
  margin-bottom: 1.5rem;
}
.pager-wrap {
  padding-top: 20px;
  padding-bottom: 20px;
}
.one-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ok {
  color: #22c55e;
}
.error {
  color: #dc2626;
}
/*
@media (max-width: 992px) {
    .container {
        max-width: 100%;
    }
}*/
/* Modal dialog adjustments */
.modal-dialog .field input[type=text],
.modal-dialog .field textarea,
.modal-dialog .field .cke {
  max-width: 100%;
}
/* Field stuff */
.field {
  margin-bottom: 1.25rem;
}
.field > label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}
label {
  display: inline-block;
  margin-bottom: 5px;
  font-weight: 600;
}
.field.i18n > label {
  margin-right: 0;
}
.field .inputs-wrap {
  display: grid;
  gap: 1rem;
  /*justify-items: start; */
  /* Hindrer elementene i � strekke seg */
}
.field .inputs-wrap .i18n-wrap {
  display: inline-flex !important;
  /* Tvinger flexbox p� beholderen */
  align-items: center;
  gap: 0.5rem;
}
.i18n-wrap > .flag {
  display: inline-block !important;
  /* Sikrer at flagget faktisk tegnes ut */
  width: 20px;
  height: auto;
  /* Beholder riktige proporsjoner p� flagget */
  margin: 0;
  /* Nullstiller gamle marginer som kan dytte det ut av syne */
  flex-shrink: 0;
  /* Hindrer at flagget blir klemt flatt hvis plassen er trang */
}
.ck-content {
  color: black;
}
.field input[type=text],
.field input[type=number],
.field input[type=date],
.field input[type=datetime-local],
.field input[type=email],
.field input[type=password],
.field input[type=url],
.field textarea {
  display: block;
  width: 100%;
  max-width: 560px;
  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=datetime-local]:focus,
.field input[type=email]:focus,
.field input[type=password]:focus,
.field input[type=url]:focus,
.field textarea:focus {
  border-color: #e94e2c;
  box-shadow: 0 0 0 0.2rem rgba(233, 78, 44, 0.3);
  outline: none;
}
.field select {
  display: block;
  width: 100%;
  max-width: 560px;
  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: #e94e2c;
  box-shadow: 0 0 0 0.2rem rgba(233, 78, 44, 0.3);
  outline: none;
}
.field select option {
  background-color: #2c3034;
  color: #fff;
}
.field select[multiple] {
  padding: 0;
}
.field select[multiple] option {
  padding: 0.3rem 0.65rem;
}
.field input[type=date],
.field input[type=text].number,
.field input.small {
  max-width: 15rem;
}
.field input[type=datetime-local] {
  max-width: 18rem;
  color-scheme: dark;
}
.field input[type=datetime-local]:focus {
  outline: none;
}
.field input[type=datetime-local]::-webkit-datetime-edit {
  padding: 0;
}
.field input[type=datetime-local]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}
.field input[type=datetime-local]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(0.6);
  padding: 0;
  margin-left: 0.25rem;
}
.field textarea {
  max-width: 100%;
  min-height: 150px;
  resize: vertical;
}
.field .cke {
  max-width: 560px;
  margin-bottom: 1rem;
}
.field.i18n input[type=text],
.field.i18n textarea,
.field.i18n .cke,
.field.i18n .ck-editor {
  max-width: 100%;
}
.field.i18n .ck-editor {
  margin-top: 5px;
  background-color: gainsboro;
}
.field.i18n .ck-content {
  height: 300px;
}
.field-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 2rem;
}
.field-group .field input[type=text],
.field-group .field input[type=number],
.field-group .field input[type=date],
.field-group .field input[type=email],
.field-group .field input[type=url],
.field-group .field select,
.field-group .field textarea {
  max-width: 100%;
}
@media (max-width: 800px) {
  .field-group {
    grid-template-columns: 1fr;
  }
}
.form-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1rem;
  row-gap: 1rem;
  align-items: start;
  margin-top: 2rem;
}
@media (max-width: 800px) {
  .form-cols {
    grid-template-columns: 1fr;
  }
}
.form-col .field input[type=text],
.form-col .field input[type=number],
.form-col .field input[type=date],
.form-col .field input[type=email],
.form-col .field input[type=url],
.form-col .field select,
.form-col .field textarea {
  max-width: 100%;
}
.form-section {
  padding-top: 1.5rem;
  border: 1px solid rgba(233, 78, 44, 0.3);
  border: 1px solid #343a40;
  background: #2c3034;
  border-radius: 4px;
  padding: 1rem;
}
.form-section + .form-section {
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  /*border-top: 1px solid @primary-faded;*/
}
.field .d-flex input[type=text] {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: none;
}
.actions {
  margin-top: 3rem;
}
.search-wrap {
  position: relative;
  display: block;
  max-width: 500px;
  width: 100%;
  bottom: 0;
  right: 0;
  z-index: 99;
}
.search-input {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: none;
  padding: 6px 50px 6px 10px;
  margin-right: 40px;
}
.search-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(233, 78, 44, 0.3);
}
.search-btn {
  border: none;
  background-color: transparent !important;
  background-image: url(/img/search.png);
  filter: invert(100%);
  background-size: 20px;
  background-repeat: no-repeat;
  background-position: center;
  width: 35px;
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
}
a {
  color: #e94e2c;
}
a:hover,
a:focus {
  color: #ed6d51;
}
.btn {
  border-radius: 4px;
}
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #e94e2c;
  --bs-btn-border-color: #e94e2c;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #db3a17;
  --bs-btn-hover-border-color: #db3a17;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #c33414;
  --bs-btn-active-border-color: #c33414;
  --bs-btn-focus-shadow-rgb: 233, 78, 44;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #e94e2c;
  --bs-btn-disabled-border-color: #e94e2c;
}
.btn-secondary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #2563eb;
  --bs-btn-border-color: #2563eb;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #1451d8;
  --bs-btn-hover-border-color: #1451d8;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #1249c1;
  --bs-btn-active-border-color: #1249c1;
  --bs-btn-focus-shadow-rgb: 37, 99, 235;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #2563eb;
  --bs-btn-disabled-border-color: #2563eb;
}
.btn-success {
  --bs-btn-color: #fff;
  --bs-btn-bg: #22c55e;
  --bs-btn-border-color: #22c55e;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #1da74f;
  --bs-btn-hover-border-color: #1da74f;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #199145;
  --bs-btn-active-border-color: #199145;
  --bs-btn-focus-shadow-rgb: 34, 197, 94;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #22c55e;
  --bs-btn-disabled-border-color: #22c55e;
}
.btn-danger {
  --bs-btn-color: #fff;
  --bs-btn-bg: #dc2626;
  --bs-btn-border-color: #dc2626;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #bf1f1f;
  --bs-btn-hover-border-color: #bf1f1f;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #a91b1b;
  --bs-btn-active-border-color: #a91b1b;
  --bs-btn-focus-shadow-rgb: 220, 38, 38;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #dc2626;
  --bs-btn-disabled-border-color: #dc2626;
}
.btn-warning {
  --bs-btn-color: #000;
  --bs-btn-bg: #f59e0b;
  --bs-btn-border-color: #f59e0b;
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: #d48809;
  --bs-btn-hover-border-color: #d48809;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: #bb7808;
  --bs-btn-active-border-color: #bb7808;
  --bs-btn-focus-shadow-rgb: 245, 158, 11;
  --bs-btn-disabled-color: #000;
  --bs-btn-disabled-bg: #f59e0b;
  --bs-btn-disabled-border-color: #f59e0b;
}
.btn-info {
  --bs-btn-color: #fff;
  --bs-btn-bg: #0ea5e9;
  --bs-btn-border-color: #0ea5e9;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0c8dc7;
  --bs-btn-hover-border-color: #0c8dc7;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0b7caf;
  --bs-btn-active-border-color: #0b7caf;
  --bs-btn-focus-shadow-rgb: 14, 165, 233;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #0ea5e9;
  --bs-btn-disabled-border-color: #0ea5e9;
}
.btn-xs,
.btn-group-xs > .btn {
  --bs-btn-padding-y: 0.1rem;
  --bs-btn-padding-x: 0.25rem;
  --bs-btn-font-size: 0.75rem;
  --bs-btn-border-radius: var(--bs-border-radius-sm);
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: #2563eb;
  border-color: #2563eb;
}
.form-control:focus,
.form-select:focus {
  border-color: #e94e2c;
  box-shadow: 0 0 0 0.2rem rgba(233, 78, 44, 0.3);
  outline: none;
}
.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}
.box-shadow {
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}
button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}
.save-notification {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 1;
  transition: opacity 0.4s ease;
}
.save-notification--success {
  background-color: #22c55e;
}
.save-notification--error {
  background-color: #dc2626;
}
.save-notification--hide {
  opacity: 0;
}
.hidden {
  display: none !important;
}
body.stg {
  padding-top: 22px;
}
body.stg::before {
  content: "STAGING";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #f59e0b;
  color: #000;
  text-align: center;
  padding: 4px 0;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}
