body.backoffice {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top, #1c1e2e 0%, rgb(12, 13, 20) 55%),
    rgb(12, 13, 20);
  overflow-x: clip;
}

.backofficeHeader {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(26, 27, 40, 0.92);
}

.backofficeBrand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #fff;
}

.backofficeBrand:hover {
  color: var(--nav-icon-color-active);
}

.backofficeHeaderLabel {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.backofficeHeaderActions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.backofficeHeaderActions form {
  margin: 0;
  padding: 0;
}

button.backofficeSignOut {
  display: flex;
}

.backofficeUser {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.backofficeSignOut,
.backofficeSignOut:hover {
  font-size: 0.85rem;
  margin: 0;
  padding: 0 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
}

.backofficeSignOut:hover {
  border-color: var(--nav-icon-color-active);
  color: var(--nav-icon-color-active);
}

.backofficeFlash {
  display: block;
}

.backofficeShell {
  display: flex;
  justify-content: center;
  padding: 40px 20px 80px;
}

body.backoffice main.layoutMain {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 520px;
}

body.backoffice main.layoutMain.pageLayout {
  background: transparent;
  height: auto;
  padding-bottom: 0;
  margin: 0;
  display: block;
}

body.backoffice .pageContent {
  width: 100%;
  max-width: 520px;
  min-width: 0;
  margin: 0;
  padding: 28px;
  box-sizing: border-box;
  background: rgba(26, 27, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

body.backoffice .pageContent h2 {
  margin-top: 0;
}

/* Admin shell with sidebar */
.backofficeBody {
  display: flex;
  min-height: calc(100vh - 57px);
  align-items: stretch;
}

.backofficeSidebar {
  width: 200px;
  flex-shrink: 0;
  padding: 24px 16px;
  box-sizing: border-box;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 19, 28, 0.95);
}

.backofficeSidebarLabel {
  margin: 0 0 12px 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
}

.backofficeNav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.backofficeNav a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.backofficeNav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.backofficeNav a.is-active {
  background: rgba(119, 123, 235, 0.22);
  color: #fff;
}

.backofficeMain {
  flex: 1;
  min-width: 0;
  padding: 24px;
  box-sizing: border-box;
}

.backofficePanel {
  background: #2c2f45;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 24px;
  color: rgba(255, 255, 255, 0.92);
}

.backofficePanel h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
}

.backofficePanelHeader {
  margin-bottom: 16px;
}

.backofficePanelHeader--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.backofficeToolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.backofficeToolbarGroup {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.backofficeToolbar .backofficeButton,
.backofficeToolbar a.backofficeButton,
.backofficeToolbar button.backofficeButton,
.backofficeToolbarGroup .backofficeButton,
.backofficeToolbarGroup a.backofficeButton,
.backofficeToolbarGroup button.backofficeButton {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  margin: 0;
  padding: 0 12px !important;
  border-width: 1px;
  border-style: solid;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1 !important;
  text-transform: none;
  text-decoration: none;
  vertical-align: middle;
  white-space: nowrap;
}

.backofficeButton--primary {
  background: rgba(119, 123, 235, 0.35);
  border-color: rgba(119, 123, 235, 0.85);
}

.backofficeButton--primary:hover {
  background: rgba(119, 123, 235, 0.48);
}

.backofficeGameForm.is-editing .backofficeControl:not(:disabled) {
  border-color: rgba(119, 123, 235, 0.45);
}

.backofficeFormGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.backofficeField {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.backofficeField--full {
  grid-column: 1 / -1;
}

.backofficeFieldLabel {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.68);
}

.backofficeFieldLabelRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.backofficeModeSwitch {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: #1a1c2a;
}

.backofficeModeSwitchButton {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 6px 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.backofficeModeSwitchButton:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.backofficeModeSwitchButton.is-active {
  background: rgba(119, 123, 235, 0.35);
  color: #fff;
}

.backofficeHtmlSource {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92rem;
  line-height: 1.45;
  resize: vertical;
  white-space: pre;
  tab-size: 2;
}

.backofficeControl {
  width: 100%;
  box-sizing: border-box;
  height: auto;
  min-height: 0;
  background: #1a1c2a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.45;
}

select.backofficeControl {
  -webkit-appearance: none;
  appearance: none;
  background-color: #1a1c2a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%239aa0ff' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  padding-right: 36px;
}

select.backofficeControl:focus,
.backofficeGameForm.is-editing select.backofficeControl:not(:disabled) {
  background-color: #1a1c2a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23777beb' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
}

.backofficeControl:focus {
  outline: none;
  border-color: rgba(119, 123, 235, 0.7);
}

.backofficeControl[readonly],
.backofficeControl:disabled {
  opacity: 0.85;
  cursor: default;
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
}

.backofficeControl--tall {
  resize: vertical;
  white-space: pre-wrap;
  height: 120px;
}

textarea.backofficeControl.backofficeHtmlSource,
.backofficeControl.backofficeHtmlSource {
  height: calc(100vh - 280px);
  min-height: 420px;
  max-height: none;
  padding: 12px 14px;
}

.backofficeRichText,
.backofficeField trix-editor.backofficeRichText,
.backofficeField trix-editor,
.backofficeHtmlPreview {
  height: calc(100vh - 280px);
  min-height: 420px;
  max-height: none;
  overflow-y: auto;
  background: #1a1c2a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1.05rem;
  line-height: 1.5;
}

.backofficeHtmlPreview h1,
.backofficeHtmlPreview h2,
.backofficeHtmlPreview h3 {
  color: #fff;
  margin: 1.1em 0 0.5em;
}

.backofficeHtmlPreview h2:first-child,
.backofficeHtmlPreview h3:first-child {
  margin-top: 0;
}

.backofficeHtmlPreview p,
.backofficeHtmlPreview ul {
  margin: 0 0 1em;
}

.backofficeHtmlPreview a {
  color: #9aa0ff;
}

.backofficeField trix-editor:focus {
  outline: none;
  border-color: rgba(119, 123, 235, 0.7);
}

.backofficeField trix-editor.is-readonly {
  opacity: 0.9;
  border-color: rgba(255, 255, 255, 0.1);
  cursor: default;
}

.backofficeField trix-toolbar {
  margin-bottom: 8px;
}

.backofficeField trix-toolbar .trix-button {
  background: #1a1c2a;
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.backofficeField trix-toolbar .trix-button.trix-active {
  background: rgba(119, 123, 235, 0.35);
}

.backofficeField trix-toolbar .trix-button--icon::before {
  opacity: 0.9;
  filter: invert(1);
}

@media (max-width: 800px) {
  .backofficeFormGrid {
    grid-template-columns: 1fr;
  }
}

.backofficeMuted {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
}

.backofficeTableWrap {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  min-height: 280px;
}

.backofficeTableWrap .dt-container {
  width: 100%;
}

.backofficeTableWrap.is-loading > table,
.backofficeTableWrap.is-loading .dt-container {
  display: none !important;
}

.backofficeTableWrap.is-ready {
  min-height: 0;
}

.backofficeTableWrap.is-ready .backofficeTableSkeleton {
  display: none !important;
}

.backofficeTableWrap.is-ready > .dt-container,
.backofficeTableWrap.is-ready > table {
  animation: backofficeTableFadeIn 0.16s ease;
}

.backofficeTableSkeleton {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 4px 0 2px;
}

.backofficeTableSkeletonToolbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
}

.backofficeTableSkeletonToolbar .backofficeSkeletonBone--length {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 96px;
  height: 38px;
  border-radius: 6px;
}

.backofficeTableSkeletonToolbar .backofficeSkeletonBone--search {
  width: min(360px, 70%);
  height: 38px;
  border-radius: 6px;
}

.backofficeTableSkeletonTable {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.12);
}

.backofficeTableSkeletonHead {
  display: grid;
  grid-template-columns: minmax(160px, 1.6fr) minmax(90px, 0.7fr) minmax(120px, 1.2fr) 88px;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.backofficeTableSkeletonRows {
  display: flex;
  flex-direction: column;
}

.backofficeTableSkeletonRow {
  display: grid;
  grid-template-columns: minmax(160px, 1.6fr) minmax(90px, 0.7fr) minmax(120px, 1.2fr) 88px;
  gap: 14px;
  align-items: center;
  min-height: 52px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.backofficeTableSkeletonRow:last-child {
  border-bottom: 0;
}

.backofficeTableSkeletonTitle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.backofficeTableSkeletonFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
}

.backofficeTableSkeletonPaging {
  display: flex;
  align-items: center;
  gap: 8px;
}

.backofficeSkeletonBone {
  display: block;
  height: 12px;
  border-radius: 5px;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.05) 38%,
    rgba(255, 255, 255, 0.16) 50%,
    rgba(255, 255, 255, 0.05) 62%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 220% 100%;
  animation: backofficeSkeletonShimmer 1.35s ease-in-out infinite;
  animation-delay: var(--skeleton-delay, 0s);
}

.backofficeSkeletonBone--thumb {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.backofficeSkeletonBone--title {
  width: 68%;
  max-width: 220px;
  height: 13px;
}

.backofficeSkeletonBone--cell {
  width: 58%;
  height: 12px;
}

.backofficeSkeletonBone--cellWide {
  width: 78%;
}

.backofficeSkeletonBone--action {
  width: 64px;
  height: 28px;
  margin-left: auto;
  border-radius: 4px;
}

.backofficeSkeletonBone--head {
  width: 52px;
  height: 10px;
  opacity: 0.85;
}

.backofficeSkeletonBone--headMid {
  width: 64px;
}

.backofficeSkeletonBone--headWide {
  width: 40px;
}

.backofficeSkeletonBone--headActions {
  width: 28px;
  margin-left: auto;
}

.backofficeSkeletonBone--info {
  width: 180px;
  height: 12px;
}

.backofficeSkeletonBone--page {
  width: 34px;
  height: 32px;
  border-radius: 4px;
}

@keyframes backofficeSkeletonShimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@keyframes backofficeSkeletonPulse {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (max-width: 800px) {
  .backofficeTableSkeletonHead,
  .backofficeTableSkeletonRow {
    grid-template-columns: minmax(120px, 1.4fr) minmax(70px, 0.8fr) 72px;
  }

  .backofficeTableSkeletonHead > :nth-child(3),
  .backofficeTableSkeletonRow > :nth-child(3) {
    display: none;
  }
}

@keyframes backofficeTableFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.backofficeTable {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.backofficeThumbCol,
.backofficeThumbCell {
  width: 52px;
  min-width: 52px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.backofficeTitleWithThumb {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.backofficeTitleText {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backofficeCategoryCol,
.backofficeCategoryCell {
  width: 16%;
}

.backofficeLinkCol,
.backofficeLinkCell {
  width: 28%;
}

.backofficeActionsCol,
.backofficeActionsCell {
  width: 100px;
  text-align: right;
  white-space: nowrap;
}

.backofficeNumCol,
.backofficeNumCell {
  width: 3rem;
  min-width: 3rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

#admin-games-table .backofficeTitleCol,
#admin-games-table .backofficeTitleCell {
  width: 32%;
}

#admin-games-table .backofficeCategoryCol,
#admin-games-table .backofficeCategoryCell {
  width: 14%;
}

#admin-games-table .backofficeLinkCol,
#admin-games-table .backofficeLinkCell {
  width: 28%;
}

#admin-games-table .backofficeIndexCol,
#admin-games-table .backofficeIndexCell {
  width: 14%;
  overflow: visible;
}

#admin-games-table .backofficeActionsCol,
#admin-games-table .backofficeActionsCell {
  width: 88px;
}

.backofficeIndexBadge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: help;
}

.backofficeIndexBadge:focus-visible {
  outline: 2px solid var(--nav-icon-color-active, #a666cc);
  outline-offset: 2px;
}

.backofficeIndexBadge--indexed {
  border-color: rgba(52, 199, 89, 0.45);
  background: rgba(52, 199, 89, 0.14);
  color: #7dffb0;
}

.backofficeIndexBadge--discovered {
  border-color: rgba(90, 168, 255, 0.45);
  background: rgba(90, 168, 255, 0.14);
  color: #9ec9ff;
}

.backofficeIndexBadge--crawled_not_indexed {
  border-color: rgba(255, 184, 77, 0.45);
  background: rgba(255, 184, 77, 0.14);
  color: #ffd18a;
}

.backofficeIndexBadge--unknown,
.backofficeIndexBadge--unchecked {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.55);
}

.backofficeIndexBadge--error {
  border-color: rgba(255, 99, 99, 0.45);
  background: rgba(255, 99, 99, 0.14);
  color: #ff9d9d;
}

.backofficeTooltip {
  position: fixed;
  z-index: 4000;
  max-width: min(360px, calc(100vw - 24px));
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #1c1e2c;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.01em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.12s ease,
    transform 0.12s ease;
}

.backofficeTooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.backofficeTable th,
.backofficeTable td {
  text-align: left;
  padding: 6px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
}

.backofficeTable th {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 10px;
  padding-bottom: 10px;
}

.backofficeSlugCell {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
}

.backofficeCountCol,
.backofficeCountCell {
  width: 88px;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
}

#admin-categories-table .backofficeActionsCol,
#admin-categories-table .backofficeActionsCell {
  width: 180px;
}

.backofficePanel table.dataTable > tbody > tr > td {
  padding: 6px 16px;
}

.backofficePanel table.dataTable thead > tr > th {
  padding: 10px 12px;
}

.backofficePanel table.dataTable img.backofficeThumb {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
}

.backofficeThumb {
  display: block;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  max-width: 36px;
  max-height: 36px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.backofficeThumb--empty {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.backofficeTruncate {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.75);
}

.backofficeButton {
  display: inline-block;
  padding: 0 12px;
  border: 1px solid rgba(119, 123, 235, 0.55);
  border-radius: 4px;
  background: rgba(119, 123, 235, 0.18);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
}

.backofficeButton:hover {
  border-color: var(--nav-icon-color-active);
  color: var(--nav-icon-color-active);
}

.backofficeButton--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}

a.backofficeButton.backofficeButton--success,
button.backofficeButton.backofficeButton--success,
.backofficeButton--success {
  background: #2fa86a;
  border-color: #2fa86a;
  color: #fff;
}

a.backofficeButton.backofficeButton--success:hover,
button.backofficeButton.backofficeButton--success:hover,
.backofficeButton--success:hover {
  background: #27945c;
  border-color: #27945c;
  color: #fff;
}

a.backofficeButton.backofficeButton--danger,
button.backofficeButton.backofficeButton--danger,
.backofficeButton--danger {
  background: #c44b5a;
  border-color: #c44b5a;
  color: #fff;
}

a.backofficeButton.backofficeButton--danger:hover,
button.backofficeButton.backofficeButton--danger:hover,
.backofficeButton--danger:hover {
  background: #a83d4a;
  border-color: #a83d4a;
  color: #fff;
}

.backofficeButton--danger.is-disabled,
.backofficeButton.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.backofficeActionGroup {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.backofficeActionGroup form {
  margin: 0;
  display: inline-flex;
}

.backofficeActionsCell .backofficeButton,
.backofficeActionGroup .backofficeButton {
  padding: 6px 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.backofficeInlineForm {
  margin-bottom: 28px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(12, 13, 20, 0.35);
}

.backofficeInlineFormTitle {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
}

.backofficeInlineFormRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.backofficeInlineFormRow .backofficeControl {
  flex: 1 1 220px;
  max-width: 360px;
}

.backofficeRevealPanel {
  margin-bottom: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #1a1c2a;
}

.backofficeRevealPanelHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.backofficeRevealPanelTitle {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.backofficeRevealForm {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 16px;
  margin-bottom: 10px;
}

.backofficeField--grow {
  flex: 1 1 260px;
  max-width: 420px;
}

.backofficeRevealFormActions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 1px;
}

.backofficeCode {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  color: #c5c9ff;
  background: transparent;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

body.backoffice code {
  background: transparent;
  margin: 0;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}

a.backofficeButton--ghost, a.backofficeButton {
  padding: 12px;
}

.backofficeActionsCell a.backofficeButton,
.backofficeActionGroup a.backofficeButton,
.backofficeActionGroup button.backofficeButton {
  padding: 6px 10px;
}

.backofficePagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.backofficePageNumbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 8px;
}

.backofficePageLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  text-decoration: none;
  color: #fff;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.backofficePageLink:hover {
  border-color: var(--nav-icon-color-active);
  color: var(--nav-icon-color-active);
}

.backofficePageLink.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.backofficePageLink.is-current {
  background: rgba(119, 123, 235, 0.28);
  border-color: rgba(119, 123, 235, 0.7);
  pointer-events: none;
}

.backofficePageEllipsis {
  color: rgba(255, 255, 255, 0.4);
  padding: 0 4px;
}

.backofficeBreadcrumb {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.backofficeBreadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.backofficeBreadcrumb a:hover {
  color: var(--nav-icon-color-active);
}

.backofficeDetailList {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.backofficeDetailRow {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.backofficeDetailRow dt {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
}

.backofficeDetailRow dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  word-break: break-word;
}

.backofficePreWrap {
  white-space: pre-wrap;
}

.backofficeExternalLink {
  color: #9aa0ff;
  text-decoration: none;
  word-break: break-all;
}

.backofficeExternalLink:hover {
  color: var(--nav-icon-color-active);
}

.backofficeTableLink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  word-break: normal;
}

.backofficeTableLinkText {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backofficeExternalIcon {
  display: inline-flex;
  flex-shrink: 0;
  color: inherit;
  opacity: 0.85;
}

.backofficeLinkCell {
  overflow: hidden;
}

.backofficeImageDetail {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.backofficePreviewRect {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.backofficePreviewSquare {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.backofficeFormActions {
  margin-top: 24px;
}

/* DataTables (dark backoffice) */
.backofficePanel .dt-container,
.backofficePanel .dataTables_wrapper {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-top: 0;
  max-width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
}

.backofficePanel .dt-container *,
.backofficePanel .dt-container *::before,
.backofficePanel .dt-container *::after {
  box-sizing: border-box;
}

.backofficePanel .dt-layout-table,
.backofficePanel .dt-layout-table > div {
  max-width: 100%;
  min-width: 0;
}

.backofficePanel .dt-layout-row,
.backofficePanel .dataTables_wrapper .row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  padding: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.backofficePanel .dt-layout-row:last-child {
  margin: 14px 0 0;
}

.backofficePanel .dt-layout-row div.dt-layout-cell {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  margin: 0 !important;
  padding: 0;
}

.backofficePanel .dt-layout-row div.dt-layout-cell.dt-layout-start {
  justify-content: flex-start;
  flex: 0 0 auto;
}

.backofficePanel .dt-layout-row div.dt-layout-cell.dt-layout-end {
  justify-content: flex-end;
  flex: 1 1 auto;
}

.backofficePanel .dt-layout-row:has(.dt-search),
.backofficePanel .dt-layout-row:has(.dataTables_filter) {
  position: relative;
  justify-content: center;
  align-items: center;
}

.backofficePanel .dt-layout-row:has(.dt-search) .dt-layout-start,
.backofficePanel .dt-layout-row:has(.dataTables_filter) .dt-layout-start {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.backofficePanel .dt-layout-row:has(.dt-search) .dt-layout-end,
.backofficePanel .dt-layout-row:has(.dataTables_filter) .dt-layout-end {
  flex: 0 0 auto;
  justify-content: center;
  width: auto;
  max-width: 100%;
}

.backofficePanel .dt-layout-cell.dt-layout-full {
  width: 100%;
  display: flex;
  justify-content: center;
}

.backofficePanel .dt-length,
.backofficePanel .dataTables_length {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  white-space: nowrap;
}

.backofficePanel .dt-length select,
.backofficePanel .dataTables_length select {
  background: #1a1c2a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.95rem;
  height: 38px;
}

.backofficePanel .dt-length select:focus,
.backofficePanel .dataTables_length select:focus {
  outline: none;
  border-color: rgba(119, 123, 235, 0.7);
}

.backofficePanel .dt-search,
.backofficePanel .dataTables_filter {
  display: flex;
  justify-content: center;
  width: min(360px, 100%);
  max-width: 360px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.7);
}

.backofficePanel .dt-search input,
.backofficePanel .dataTables_filter input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 38px;
  background: #1a1c2a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  padding: 8px 12px;
  font-size: 0.95rem;
}

.backofficePanel .dt-search input:focus,
.backofficePanel .dataTables_filter input:focus {
  outline: none;
  border-color: rgba(119, 123, 235, 0.7);
}

.backofficePanel .dt-layout-row:has(.dt-paging),
.backofficePanel .dt-layout-row:has(.dataTables_paginate) {
  align-items: center;
  gap: 16px;
}

.backofficePanel .dt-paging,
.backofficePanel .dataTables_paginate {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
}

.backofficePanel .dt-paging nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}

.backofficePanel .dt-paging .dt-paging-button,
.backofficePanel .dataTables_paginate .paginate_button {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 6px !important;
  color: #fff !important;
  margin: 0 !important;
  padding: 6px 12px !important;
  box-shadow: none !important;
  cursor: pointer;
  line-height: 1.2;
}

.backofficePanel .dt-paging .dt-paging-button:hover:not(.disabled),
.backofficePanel .dataTables_paginate .paginate_button:hover:not(.disabled) {
  border-color: var(--nav-icon-color-active) !important;
  color: var(--nav-icon-color-active) !important;
  background: transparent !important;
}

.backofficePanel .dt-paging .dt-paging-button.current,
.backofficePanel .dataTables_paginate .paginate_button.current {
  background: rgba(119, 123, 235, 0.28) !important;
  border-color: rgba(119, 123, 235, 0.7) !important;
}

.backofficePanel .dt-paging .dt-paging-button.disabled,
.backofficePanel .dataTables_paginate .paginate_button.disabled {
  opacity: 0.35 !important;
  cursor: default !important;
}

.backofficePanel .dt-info,
.backofficePanel .dataTables_info {
  color: rgba(255, 255, 255, 0.55);
  padding-top: 0 !important;
  min-width: 0;
  flex: 1 1 auto;
}

.backofficePanel table.dataTable thead > tr > th {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.55);
  background: transparent !important;
}

.backofficePanel table.dataTable.no-footer,
.backofficePanel table.dataTable {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  width: 100% !important;
  max-width: 100% !important;
}

.backofficePanel table.dataTable tbody tr {
  background: transparent !important;
}

.backofficePanel table.dataTable tbody tr:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

.backofficePanel table.dataTable > tbody > tr > td {
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

@media (max-width: 720px) {
  .backofficePanel .dt-layout-row:has(.dt-paging),
  .backofficePanel .dt-layout-row:has(.dataTables_paginate) {
    flex-direction: column;
    align-items: stretch;
  }

  .backofficePanel .dt-paging,
  .backofficePanel .dataTables_paginate {
    justify-content: center;
  }

  .backofficePanel .dt-info,
  .backofficePanel .dataTables_info {
    text-align: center;
  }
}

@media (max-width: 800px) {
  .backofficeBody {
    flex-direction: column;
  }

  .backofficeSidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .backofficeNav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .backofficeDetailRow {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}


.backofficePanel .dt-input {
	text-align: center;
	margin: 5px 0;
	padding: 5px;
}


.backofficePanel .dt-length label {
	margin-bottom: 0;		
}