.backoffice-shortcuts {
  margin-top: 8px;
  font-size: 13px;
}

#header {
  flex-wrap: wrap;
  gap: 14px 24px;
}

#branding {
  display: block;
  min-width: 0;
  max-width: 100%;
}

#site-name {
  overflow-wrap: anywhere;
}

.backoffice-language {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
}

#branding > .backoffice-language {
  margin-top: 12px;
}

.backoffice-language button {
  min-height: 36px;
  padding: 6px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.backoffice-language button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.backoffice-language button:focus-visible {
  outline: 3px solid var(--bo-accent, var(--link-fg, #126f70));
  outline-offset: 3px;
}

body.backoffice-staff .content-header > div {
  flex-wrap: wrap;
}

body.backoffice-staff .staff-form-navigation {
  margin-bottom: 24px;
  line-height: 1.8;
}

body.login #header {
  height: auto;
  padding: 20px;
}

body.login #branding {
  width: 100%;
}

@media (max-width: 760px) {
  .backoffice-language {
    max-width: 100%;
    gap: 8px;
  }
}

body.backoffice {
  --bo-text: #173f48;
  --bo-muted: #526b71;
  --bo-background: #f4f7f7;
  --bo-surface: #ffffff;
  --bo-sidebar: #eaf1f1;
  --bo-line: #d8e3e3;
  --bo-accent: #126f70;
  --bo-accent-hover: #0d5859;
  --bo-selected: #d3e6e4;
  --bo-hover: #dae9e8;
  --bo-on-accent: #ffffff;
  background: var(--bo-background);
  color: var(--bo-text);
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

html[data-theme="dark"] body.backoffice {
  --bo-text: #e0eeee;
  --bo-muted: #acc3c6;
  --bo-background: #14272c;
  --bo-surface: #1a3035;
  --bo-sidebar: #1b3439;
  --bo-line: #365158;
  --bo-accent: #82d3ce;
  --bo-accent-hover: #a3e6e1;
  --bo-selected: #2b5053;
  --bo-hover: #29464c;
  --bo-on-accent: #102c30;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] body.backoffice {
    --bo-text: #e0eeee;
    --bo-muted: #acc3c6;
    --bo-background: #14272c;
    --bo-surface: #1a3035;
    --bo-sidebar: #1b3439;
    --bo-line: #365158;
    --bo-accent: #82d3ce;
    --bo-accent-hover: #a3e6e1;
    --bo-selected: #2b5053;
    --bo-hover: #29464c;
    --bo-on-accent: #102c30;
  }
}

body.backoffice-shell *,
body.backoffice-shell *::before,
body.backoffice-shell *::after {
  box-sizing: border-box;
}

body.backoffice-shell ::selection {
  background: var(--bo-selected);
  color: var(--bo-text);
}

body.backoffice-shell a {
  color: var(--bo-accent);
  text-underline-offset: 4px;
}

body.backoffice-shell a:hover {
  color: var(--bo-accent-hover);
}

body.backoffice-shell #container a {
  text-decoration: none;
}

body.backoffice-shell #container a:hover,
body.backoffice-shell #container .backoffice-log-object[href] {
  text-decoration: underline;
}

body.backoffice-shell a:focus-visible,
body.backoffice-shell button:focus-visible {
  outline: 3px solid var(--bo-accent);
  outline-offset: 4px;
}

body.backoffice-shell #container {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  min-height: 100vh;
  height: auto;
  min-width: 0;
}

body.backoffice-shell #main {
  display: contents;
}

body.backoffice-shell #header {
  --header-link-color: var(--bo-accent);
  --header-bg: var(--bo-surface);
  grid-column: 2;
  grid-row: 1;
  min-height: 70px;
  height: auto;
  padding: 18px 36px;
  gap: 14px 24px;
  flex-direction: row;
  flex-wrap: wrap;
  background: var(--bo-surface);
  border-bottom: 1px solid var(--bo-line);
  color: var(--bo-muted);
}

body.backoffice-shell #branding #site-name,
body.backoffice-shell #branding > nav {
  display: none;
}

body.backoffice-shell #branding {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  float: none;
}

body.backoffice-shell #branding > .backoffice-language {
  margin: 0;
}

body.backoffice-shell .backoffice-location {
  font-size: 13px;
}

body.backoffice-shell #user-tools {
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0;
  text-align: end;
  color: var(--bo-muted);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

body.backoffice-shell #header #user-tools a,
body.backoffice-shell #logout-form button {
  color: var(--bo-accent);
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.backoffice-shell #logout-form button:hover {
  color: var(--bo-accent-hover);
}

body.backoffice-shell .theme-toggle {
  color: var(--bo-text);
}

body.backoffice-shell .backoffice-sidebar {
  grid-column: 1;
  grid-row: 1 / -1;
  padding: 30px 18px;
  background: var(--bo-sidebar);
  border-inline-end: 1px solid var(--bo-line);
  min-width: 0;
}

body.backoffice-shell .backoffice-brand {
  display: block;
  margin: 0 12px 38px;
  color: var(--bo-text);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.03em;
  text-decoration: none;
}

body.backoffice-shell .backoffice-brand span {
  display: block;
  margin-top: 7px;
  color: var(--bo-muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

body.backoffice-shell .backoffice-sidebar nav a {
  display: block;
  margin: 4px 0;
  padding: 12px;
  border-radius: 5px;
  color: var(--bo-text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

body.backoffice-shell .backoffice-sidebar nav a:hover {
  background: var(--bo-hover);
}

body.backoffice-shell .backoffice-sidebar nav .backoffice-current {
  background: var(--bo-selected);
  font-weight: 700;
}

body.backoffice-shell #content-start {
  grid-column: 2;
  grid-row: 3;
  width: 100%;
  min-width: 0;
  background: var(--bo-background);
}

body.backoffice-shell #content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 38px;
}

body.backoffice-shell #content > br.clear,
body.backoffice-shell #footer {
  display: none;
}

body.backoffice-shell .backoffice-overview h1 {
  margin: 0 0 10px;
  color: var(--bo-text);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.03em;
}

body.backoffice-shell .backoffice-intro {
  max-width: 70ch;
  margin: 0;
  color: var(--bo-muted);
  font-size: 15px;
}

body.backoffice-shell .backoffice-actions {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--bo-line);
  border-radius: 5px;
  background: var(--bo-surface);
}

body.backoffice-shell .backoffice-actions li {
  list-style: none;
}

body.backoffice-shell .backoffice-actions li + li {
  border-top: 1px solid var(--bo-line);
}

body.backoffice-shell .backoffice-actions a {
  position: relative;
  display: block;
  padding: 16px 42px 16px 18px;
  color: var(--bo-text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

body.backoffice-shell .backoffice-actions a::after {
  position: absolute;
  inset-inline-end: 20px;
  top: calc(50% - 4px);
  width: 7px;
  height: 7px;
  border-inline-end: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  content: "";
}

body.backoffice-shell .backoffice-action-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

body.backoffice-shell .backoffice-action-description {
  display: block;
  margin-top: 3px;
  color: var(--bo-muted);
  font-size: 13px;
  font-weight: 400;
}

body.backoffice-shell #container .backoffice-actions a:hover {
  text-decoration: none;
}

body.backoffice-shell .backoffice-actions a:hover .backoffice-action-title {
  text-decoration: underline;
}

body.backoffice-shell .backoffice-actions a:hover {
  background: var(--bo-hover);
}

body.backoffice-shell .backoffice-actions .backoffice-primary {
  border-radius: 4px 4px 0 0;
  background: var(--bo-accent);
  color: var(--bo-on-accent);
}

body.backoffice-shell .backoffice-actions .backoffice-primary:hover {
  background: var(--bo-accent-hover);
}

body.backoffice-shell .backoffice-primary .backoffice-action-description {
  color: var(--bo-on-accent);
}

body.backoffice-shell .backoffice-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 32px;
  margin-top: 32px;
}

body.backoffice-shell .backoffice-columns > section {
  min-width: 0;
}

body.backoffice-shell .backoffice-columns h2 {
  margin: 0 0 18px;
  color: var(--bo-text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

body.backoffice-shell .backoffice-empty {
  margin: 0;
  color: var(--bo-muted);
  font-size: 14px;
  line-height: 1.6;
}

body.backoffice-shell .backoffice-empty-log {
  padding: 20px 0;
  border-top: 1px solid var(--bo-line);
}

body.backoffice-shell .backoffice-empty-log strong {
  display: block;
  margin-bottom: 5px;
  color: var(--bo-text);
}

body.backoffice-shell .backoffice-empty-log p {
  margin: 0;
}

body.backoffice-shell .backoffice-log-caption {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--bo-line);
  color: var(--bo-muted);
  font-size: 13px;
}

body.backoffice-shell .backoffice-log {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.backoffice-shell .backoffice-log li {
  padding: 16px 0;
  border-bottom: 1px solid var(--bo-line);
  font-size: 14px;
  overflow-wrap: anywhere;
}

body.backoffice-shell .backoffice-log-action,
body.backoffice-shell .backoffice-log-type {
  display: block;
  color: var(--bo-muted);
  font-size: 12px;
}

body.backoffice-shell .backoffice-log-object {
  display: block;
  margin: 4px 0;
  font-weight: 600;
}

@media (max-width: 1100px) {
  body.backoffice-shell .backoffice-columns {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 24px;
  }

  body.backoffice-shell #content {
    padding: 30px;
  }
}

@media (max-width: 960px) {
  body.backoffice-shell .backoffice-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.backoffice-shell #container {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr;
  }

  body.backoffice-shell .backoffice-sidebar {
    grid-column: 1;
    grid-row: 1;
    padding: 20px;
    border-inline-end: 0;
    border-bottom: 1px solid var(--bo-line);
  }

  body.backoffice-shell .backoffice-brand {
    margin: 0 0 14px;
  }

  body.backoffice-shell .backoffice-brand span {
    display: inline;
    margin-inline-start: 10px;
  }

  body.backoffice-shell .backoffice-sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  body.backoffice-shell .backoffice-sidebar nav a {
    margin: 0;
    padding: 10px;
    font-size: 13px;
  }

  body.backoffice-shell #header {
    grid-column: 1;
    grid-row: 2;
    min-height: 56px;
    padding: 16px 20px;
    align-items: flex-start;
  }

  body.backoffice-shell #user-tools {
    width: 100%;
    text-align: start;
  }

  body.backoffice-shell #content-start {
    grid-column: 1;
    grid-row: 4;
  }

  body.backoffice-shell #content {
    padding: 25px 20px;
  }

  body.backoffice-shell .backoffice-overview h1 {
    font-size: 26px;
  }

  body.backoffice-shell .backoffice-actions a {
    padding: 15px 38px 15px 15px;
  }
}

#header #user-tools.backoffice-user-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  text-transform: none;
  font-size: 13px;
}

.backoffice-profile {
  position: relative;
  text-align: start;
}

.backoffice-profile summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 8px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.backoffice-profile summary::-webkit-details-marker {
  display: none;
}

.backoffice-profile summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.backoffice-profile-panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  z-index: 100;
  width: 220px;
  max-width: calc(100vw - 40px);
  padding: 8px;
  border: 1px solid var(--bo-line, var(--border-color));
  border-radius: 6px;
  background: var(--bo-surface, var(--body-bg));
  color: var(--bo-text, var(--body-fg));
  box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
}

body #header #user-tools .backoffice-profile-panel a,
body #header #user-tools .backoffice-profile-panel #logout-form button {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 10px 12px;
  color: inherit;
  text-decoration: none;
  text-align: start;
  font: inherit;
  text-transform: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

#header #user-tools .backoffice-profile-panel a:hover,
#header #user-tools .backoffice-profile-panel #logout-form button:hover {
  background: var(--bo-selected, var(--darkened-bg));
}

.backoffice-profile-panel #logout-form {
  display: block;
  margin: 0;
}

.backoffice-profile-theme {
  padding: 8px 12px;
}

.backoffice-profile-theme .theme-toggle {
  margin: 0;
}

.backoffice-profile-theme .theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  font: inherit;
  text-align: start;
}

.backoffice-profile-theme .theme-toggle .visually-hidden {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.backoffice-profile-theme .theme-toggle svg {
  flex-shrink: 0;
}

#header .backoffice-language strong,
.backoffice-language strong {
  font-weight: 700;
}

body.backoffice {
  --primary: var(--bo-accent);
  --secondary: var(--bo-accent);
  --accent: var(--bo-text);
  --body-fg: var(--bo-text);
  --body-bg: var(--bo-background);
  --body-quiet-color: var(--bo-muted);
  --body-loud-color: var(--bo-text);
  --header-color: var(--bo-text);
  --header-branding-color: var(--bo-text);
  --header-bg: var(--bo-surface);
  --header-link-color: var(--bo-accent);
  --breadcrumbs-fg: var(--bo-muted);
  --breadcrumbs-link-fg: var(--bo-accent);
  --breadcrumbs-bg: var(--bo-background);
  --link-fg: var(--bo-accent);
  --link-hover-color: var(--bo-accent-hover);
  --link-selected-fg: var(--bo-accent);
  --hairline-color: var(--bo-line);
  --border-color: var(--bo-line);
  --darkened-bg: var(--bo-sidebar);
  --selected-bg: var(--bo-selected);
  --selected-row: var(--bo-selected);
  --button-fg: var(--bo-on-accent);
  --button-bg: var(--bo-accent);
  --button-hover-bg: var(--bo-accent-hover);
  --default-button-bg: var(--bo-accent);
  --default-button-hover-bg: var(--bo-accent-hover);
  --close-button-bg: var(--bo-muted);
  --object-tools-bg: var(--bo-accent);
  --object-tools-hover-bg: var(--bo-accent-hover);
  caret-color: var(--bo-accent);
  scrollbar-color: var(--bo-muted) var(--bo-background);
}

body.backoffice-shell #container > nav {
  grid-column: 2;
  grid-row: 2;
}

body.backoffice-shell .breadcrumbs {
  margin: 0;
  padding: 16px 38px 0;
  font-size: 13px;
  line-height: 1.6;
}

body.backoffice-shell .backoffice-sidebar .backoffice-model-navigation {
  margin: 6px 0 18px;
}

body.backoffice-shell .backoffice-model-navigation a {
  margin: 0;
  padding: 8px 12px 8px 24px;
  font-size: 13px;
  color: var(--bo-muted);
}

body.backoffice-shell .backoffice-model-navigation a[aria-current] {
  color: var(--bo-accent);
  font-weight: 700;
}

body.backoffice-shell h1 {
  margin: 0 0 24px;
  color: var(--bo-text);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.03em;
}

body.backoffice-shell .titles-and-tools {
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

body.backoffice-shell .titles-and-tools h1 {
  margin: 0;
}

body.backoffice-shell .module,
body.backoffice-shell .inline-group,
body.backoffice-shell #changelist {
  background: var(--bo-surface);
  border: 1px solid var(--bo-line);
  border-radius: 5px;
}

body.backoffice-shell .module h2,
body.backoffice-shell .module caption,
body.backoffice-shell .inline-group h2 {
  padding: 16px 20px;
  background: var(--bo-sidebar);
  color: var(--bo-text);
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
}

body.backoffice-shell .module caption a {
  color: var(--bo-text);
}

body.backoffice-shell .form-row {
  padding: 18px 20px;
}

body.backoffice input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
body.backoffice select,
body.backoffice textarea {
  max-width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--bo-line);
  border-radius: 4px;
  background: var(--bo-surface);
  color: var(--bo-text);
  font: inherit;
}

body.backoffice input[type="checkbox"],
body.backoffice input[type="radio"] {
  accent-color: var(--bo-accent);
}

body.backoffice input:focus,
body.backoffice select:focus,
body.backoffice textarea:focus {
  outline: 2px solid var(--bo-accent);
  outline-offset: 2px;
}

body.backoffice-shell .aligned label {
  color: var(--bo-text);
  font-size: 14px;
}

body.backoffice-shell .aligned .flex-container {
  gap: 12px;
}

body.backoffice-shell .aligned div.help,
body.backoffice-shell .aligned .help {
  color: var(--bo-muted);
}

body.backoffice .button,
body.backoffice input[type="submit"],
body.backoffice-shell .submit-row a,
body.backoffice-shell .backoffice-task-form > button {
  min-height: 40px;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 14px;
}

body.backoffice-shell .object-tools a {
  padding: 11px 16px;
  border-radius: 4px;
  font-size: 13px;
  text-transform: none;
}

body.backoffice-shell .submit-row {
  padding: 16px 20px;
  background: var(--bo-surface);
  border: 1px solid var(--bo-line);
}

body.backoffice-shell table {
  font-variant-numeric: tabular-nums;
}

body.backoffice-shell table th,
body.backoffice-shell table td {
  padding: 13px 14px;
  font-size: 13px;
  line-height: 1.5;
  vertical-align: middle;
}

body.backoffice-shell table thead th {
  background: var(--bo-sidebar);
  color: var(--bo-muted);
  text-transform: none;
}

body.backoffice-shell #changelist #toolbar {
  padding: 16px;
  background: var(--bo-surface);
  border-bottom: 1px solid var(--bo-line);
}

body.backoffice-shell #changelist .actions {
  padding: 12px 16px;
  background: var(--bo-surface);
}

body.backoffice-shell #changelist-filter {
  background: var(--bo-sidebar);
}

body.backoffice-shell #changelist-filter h2 {
  background: var(--bo-sidebar);
  color: var(--bo-text);
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
}

body.backoffice-shell #changelist-filter h3 {
  color: var(--bo-text);
}

body.backoffice-shell .select2-container--admin-autocomplete .select2-selection {
  min-height: 40px;
  background: var(--bo-surface);
  border-color: var(--bo-line);
}

body.backoffice-shell .select2-container--admin-autocomplete .select2-selection__rendered {
  padding: 5px 12px;
  color: var(--bo-text);
}

body.backoffice-shell .select2-container--admin-autocomplete .select2-selection__arrow {
  height: 38px;
}

body.backoffice-shell .backoffice-task-form {
  max-width: 760px;
  padding: 24px;
  background: var(--bo-surface);
  border: 1px solid var(--bo-line);
  border-radius: 5px;
}

body.backoffice-shell .backoffice-task-form p {
  margin: 0 0 20px;
}

body.backoffice-shell .backoffice-task-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--bo-text);
  font-weight: 600;
}

body.backoffice-shell .backoffice-task-form input:not([type="checkbox"]),
body.backoffice-shell .backoffice-task-form select,
body.backoffice-shell .backoffice-task-form textarea {
  width: 100%;
}

body.backoffice-shell .backoffice-task-form h2 {
  margin: 28px 0 18px;
  font-size: 20px;
}

body.backoffice-shell .staff-sale-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 16px;
  padding: 16px 0 0;
  border-top: 1px solid var(--bo-line);
}

body.backoffice-shell .staff-sale-line .errorlist {
  grid-column: 1 / -1;
}

body.backoffice-shell .backoffice-task-form > button {
  border: 0;
  background: var(--bo-accent);
  color: var(--bo-on-accent);
  font-weight: 600;
  cursor: pointer;
}

body.backoffice-shell .backoffice-task-form > button:hover {
  background: var(--bo-accent-hover);
}

body.backoffice.login #container {
  background: var(--bo-surface);
  border: 1px solid var(--bo-line);
  border-radius: 5px;
}

body.backoffice.login #header {
  background: var(--bo-sidebar);
  color: var(--bo-text);
}

body.backoffice.login #site-name a {
  color: var(--bo-text);
  font-size: 23px;
  font-weight: 700;
}

@media (max-width: 760px) {
  body.backoffice-shell #container > nav {
    grid-column: 1;
    grid-row: 3;
  }

  body.backoffice-shell .breadcrumbs {
    padding: 16px 20px 0;
  }

  body.backoffice-shell #header #user-tools {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  body.backoffice-shell .backoffice-sidebar .backoffice-model-navigation {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
  }

  body.backoffice-shell .backoffice-model-navigation a {
    padding: 8px 10px;
  }

  body.backoffice-shell h1 {
    font-size: 26px;
  }

  body.backoffice-shell .backoffice-task-form {
    padding: 18px;
  }

  body.backoffice-shell .staff-sale-line {
    grid-template-columns: minmax(0, 1fr) 85px;
    gap: 12px;
  }

  body.backoffice-shell .aligned .flex-container {
    flex-wrap: wrap;
  }

  body.backoffice-shell .aligned label {
    width: 100%;
  }

  body.backoffice-shell .aligned div.help {
    margin-inline-start: 0;
    padding-inline-start: 0;
  }
}

body.backoffice-shell.change-form fieldset.module.aligned {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.backoffice-shell.change-form fieldset.module.aligned > h2,
body.backoffice-shell.change-form .form-row:has(textarea) {
  grid-column: 1 / -1;
}

body.backoffice-shell.change-form .aligned .form-row > div {
  width: 100%;
  min-width: 0;
}

body.backoffice-shell.change-form .aligned .flex-container {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

body.backoffice-shell.change-form .aligned label {
  width: auto;
}

body.backoffice-shell.change-form .aligned div.help {
  margin: 8px 0 0;
  padding: 0;
}

body.backoffice-shell.change-form .form-row input:not([type="checkbox"]):not([type="radio"]),
body.backoffice-shell.change-form .form-row textarea,
body.backoffice-shell.change-form .related-widget-wrapper {
  width: 100%;
}

body.backoffice-shell.change-form .related-widget-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

body.backoffice-shell.change-form .related-widget-wrapper .select2-container {
  max-width: calc(100% - 28px);
}

body.backoffice-shell.change-form .form-row:has(input[type="checkbox"]) .flex-container {
  flex-direction: row;
  align-items: center;
}

body.backoffice-shell .object-tools a.addlink {
  background-image: none;
}

body.backoffice-shell #changelist #toolbar input[type="submit"],
body.backoffice-shell #changelist .actions button {
  min-height: 40px;
  padding: 9px 14px;
  background: var(--bo-sidebar);
  color: var(--bo-text);
  border: 1px solid var(--bo-line);
  border-radius: 4px;
  box-shadow: none;
}

@media (max-width: 760px) {
  body.backoffice-shell.change-form fieldset.module.aligned {
    grid-template-columns: minmax(0, 1fr);
  }
}
