.form-actions .dropbutton-wrapper {
  margin: 0.5rem 1rem 0.5rem 0;
}

[dir="rtl"] .form-actions .dropbutton-wrapper {
  margin-right: 0;
  margin-left: 1rem;
}

.dropbutton-widget {
  position: relative;
  flex: 1 1 auto;
}

.js .dropbutton-wrapper.open .dropbutton-widget {
  z-index: 100;
  overflow: visible;
}

/**
 * Dropbutton list.
 */

.dropbutton {
  display: block;
  overflow: visible;
  margin: 0;
  list-style: none;
}

.js .dropbutton-widget .dropbutton {
  overflow: visible;
}

[dir="rtl"] .dropbutton {
  margin: 0;
}

.js .dropbutton {
  height: 3rem;
}

/* Variants. */

.js.no-touchevents .dropbutton--small {
  height: 2rem;
}

.js.no-touchevents .dropbutton--extrasmall {
  height: 1.5rem;
}

/**
 * First dropbutton list item.
 */

/* First dropbutton list item variants */

.js.no-touchevents .dropbutton--multiple.dropbutton--small .dropbutton__item:first-of-type {
  margin-right: calc(2rem + 1px); /* LTR */
}

[dir="rtl"].js.no-touchevents .dropbutton--multiple.dropbutton--small .dropbutton__item:first-of-type {
  margin-right: 0;
  margin-left: calc(2rem + 1px);
}

.js.no-touchevents .dropbutton--multiple.dropbutton--extrasmall .dropbutton__item:first-of-type {
  margin-right: calc(1.5rem + 1px); /* LTR */
}

[dir="rtl"].js.no-touchevents .dropbutton--multiple.dropbutton--extrasmall .dropbutton__item:first-of-type {
  margin-right: 0;
  margin-left: calc(1.5rem + 1px);
}

/**
 * Dropbutton toggler.
 */
 
.dropbutton-toggle {
  margin-bottom: 0;
}

.dropbutton__toggle {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0; /* LTR */
  bottom: 0;
  width: 3rem;
  height: 3rem;
  border: 1px solid transparent !important; /* 1 */
  border-radius: 0 2px 2px 0; /* LTR */
  background: #d3d4d9;
  font-size: 1px; /* iOS Safari sets a minimum button-width based on font-size. */
  -webkit-appearance: none;
  appearance: none;
}

[dir="rtl"] .dropbutton__toggle {
  right: auto;
  left: 0;
  border-radius: 2px 0 0 2px;
}

.dropbutton__toggle::before {
  position: absolute;
  top: 50%;
  right: 50%;
  width: 0.875rem;
  height: 0.5625rem;
  content: "";
  transform: translate(50%, -50%) rotate(0);
  background: url("data:image/svg+xml,%3csvg width='14' height='9' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M.238 1.938L1.647.517 7 5.819 12.354.517l1.408 1.421L7 8.636z' fill='%23222330'/%3e%3c/svg%3e") no-repeat center;
  background-size: contain;
}

/* Toggler states. */

.dropbutton__toggle:hover {
  color: #232429;
  background-color: #c1c2c7;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.dropbutton__toggle:focus {
  z-index: 2;
}

.dropbutton__toggle:active {
  color: #232429;
  background-color: #adaeb3;
}

.dropbutton-wrapper.open .dropbutton__toggle::before {
  transform: translate(50%, -50%) rotate(180deg);
}

[dir="rtl"] .dropbutton-wrapper.open .dropbutton__toggle::before {
  transform: translate(50%, -50%) rotate(-180deg);
}

/* Toggler variants */

.no-touchevents .dropbutton--small .dropbutton__toggle {
  width: 2rem;
  height: 2rem;
}

.no-touchevents .dropbutton--extrasmall .dropbutton__toggle {
  width: 1.5rem;
  height: 1.5rem;
}

.no-touchevents .dropbutton--small .dropbutton__toggle::before,
.no-touchevents .dropbutton--extrasmall .dropbutton__toggle::before {
  width: 0.75rem; /* 12px */
}

/* High contrast. */

@media (-ms-high-contrast: active), (forced-colors: active) {
  /* Default. */
  .dropbutton__toggle::before {
    width: 0.5625rem;
    height: 0.5625rem;
    margin-top: -0.19886rem;
    transform: translate(50%, -50%) rotate(135deg); /* LTR */
    border: 0.125rem solid;
    border-width: 0.125rem 0.125rem 0 0;
    background: none;
  }

  .dropbutton-wrapper.open .dropbutton__toggle::before {
    margin-top: 0.19886rem;
    transform: translate(50%, -50%) rotate(315deg);
  }
  [dir="rtl"] .dropbutton-wrapper.open .dropbutton__toggle::before {
    transform: translate(50%, -50%) rotate(-45deg);
  }

  /* Variants */

  .no-touchevents .dropbutton--small .dropbutton__toggle::before,
  .no-touchevents .dropbutton--extrasmall .dropbutton__toggle::before {
    width: 0.4375rem;
    height: 0.4375rem;
    margin-top: -0.15467rem;
  }

  .dropbutton-wrapper.open .dropbutton__toggle::before {
    margin-top: 0.15467rem;
  }
}

/**
 * Item in the first dropbutton list item (that looks like a button).
 *
 * Duplicates base button styles.
 */

.dropbutton__item:first-of-type > * {
  display: inline-block;
  margin: 0;
  padding: calc(1rem - 1px) calc(1.5rem - 1px);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  color: #232429;
  border: 1px solid transparent !important; /* 1 */
  border-radius: 2px;
  background-color: #d3d4d9;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1rem;
  -webkit-appearance: none;
  appearance: none;
  -webkit-font-smoothing: antialiased;
}

.dropbutton--multiple .dropbutton__item:first-of-type > * {
  padding-right: calc(1rem - 1px);
  padding-left: calc(1rem - 1px);
}

/* Variants */

.no-touchevents .dropbutton--small .dropbutton__item:first-of-type > * {
  padding-top: calc(0.625rem - 1px);
  padding-bottom: calc(0.625rem - 1px);
  font-size: 0.79rem;
  line-height: 0.75rem;
}

.no-touchevents .dropbutton--extrasmall .dropbutton__item:first-of-type > * {
  padding-top: calc(0.375rem - 1px);
  padding-bottom: calc(0.375rem - 1px);
  font-size: 0.79rem;
  line-height: 0.75rem;
}

.dropbutton__item:first-of-type > *:hover,
.dropbutton__item:first-of-type > .button:hover {
  text-decoration: none;
  color: #232429;
  background-color: #c1c2c7;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.dropbutton__item:first-of-type > *:focus:hover,
.dropbutton__item:first-of-type > .button:focus:hover {
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px #26a769;
}

.dropbutton__item:first-of-type > *:focus {
  text-decoration: none;
}

.dropbutton__item:first-of-type > *:active {
  color: #232429;
  background-color: #adaeb3;
}

.dropbutton--multiple .dropbutton__item:first-of-type > * {
  position: relative;
  z-index: 3;
}

.dropbutton--multiple .dropbutton__item:first-of-type > *:focus {
  z-index: 2;
}

.js .dropbutton--multiple .dropbutton__item:first-of-type > * {
  border-radius: 2px 0 0 2px; /* LTR */
}

[dir="rtl"].js .dropbutton--multiple .dropbutton__item:first-of-type > * {
  border-radius: 0 2px 2px 0;
}

.dropbutton > .dropbutton__item > a,
.dropbutton > .dropbutton__item > .button {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  text-align: left; /* LTR */
}

[dir="rtl"] .dropbutton > .dropbutton__item > a,
[dir="rtl"] .dropbutton > .dropbutton__item > .button {
  text-align: right;
}

.js .dropbutton-wrapper:not(.open) .dropbutton__item:first-of-type ~ .dropbutton__item {
  display: none;
}

/**
 * Non-first dropbutton list elements.
 */

.dropbutton__item:first-of-type ~ .dropbutton__item {
  border: 1px solid #d3d4d9;
  border-bottom: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.dropbutton__item:first-of-type ~ .dropbutton__item ~ .dropbutton__item {
  border-top: 0;
}

.dropbutton__item ~ .dropbutton__item:last-child {
  border-bottom: 1px solid #d3d4d9;
  border-radius: 0 0 2px 2px;
}

/**
 * Dropbutton items of non-first dropbutton list elements.
 */

.dropbutton__item:first-of-type ~ .dropbutton__item > a,
.dropbutton__item:first-of-type ~ .dropbutton__item > .button {
  position: relative;
  padding: calc(1rem - 1px);
  text-decoration: none;
  color: #55565b;
  border: 1px solid transparent !important; /* 1 */
  border-radius: 2px;
  background: #fff;
  box-shadow: 0;
  font-size: 1rem;
  font-weight: normal;
  line-height: 1rem;
  -webkit-font-smoothing: antialiased;
}

/**
 * Set the inherited button border color to transparent for high contrast
 * mode.
 */

@media screen and (-ms-high-contrast: active) {
  .dropbutton__item:first-of-type ~ .dropbutton__item > a,
  .dropbutton__item:first-of-type ~ .dropbutton__item > .button {
    border-color: transparent !important;
  }
}

.dropbutton__item:first-of-type ~ .dropbutton__item > a:not(:focus),
.dropbutton__item:first-of-type ~ .dropbutton__item > .button:not(:focus) {
  z-index: 1;
}

/* Variants. */

.no-touchevents .dropbutton--small .dropbutton__item:first-of-type ~ .dropbutton__item > a,
.no-touchevents .dropbutton--small .dropbutton__item:first-of-type ~ .dropbutton__item > .button {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  font-size: 0.79rem;
  line-height: 0.75rem;
}

.no-touchevents .dropbutton--extrasmall .dropbutton__item:first-of-type ~ .dropbutton__item > a,
.no-touchevents .dropbutton--extrasmall .dropbutton__item:first-of-type ~ .dropbutton__item > .button {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  font-size: 0.79rem;
  line-height: 0.75rem;
}

/* States. */

.dropbutton__item > *:focus {
  position: relative;
  z-index: 3;
}

.dropbutton__item:first-of-type ~ .dropbutton__item > *:hover {
  color: #232429;
  background: #f3f4f9;
}

.dropbutton__item > .button:not(:focus) {
  box-shadow: none;
}

.dropbutton__item:first-of-type ~ .dropbutton__item > *:focus {
  border-color: #26a769 !important; /* 1 */
  box-shadow: inset 0 0 0 1px #26a769, 0 0 0 1px #26a769;
}


table {
  width: 100%;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border-collapse: collapse;
}

.sticky-header {
  min-width: 0;
}

caption {
  text-align: left; /* LTR */
}

[dir="rtl"] caption {
  text-align: right;
}

th {
  position: relative;
  box-sizing: border-box;
  height: 3rem;
  padding: 0.5rem 1rem;
  text-align: left; /* LTR */
  color: #232429;
  background: #f3f4f9;
  line-height: 1.25rem; /* 20px */
}

[dir="rtl"] th {
  text-align: right;
}

/**
 * Table sort.
 */

/* Table head cell containing sort link. */

.sortable-heading {
  padding: 0 1rem;
}

/* The actual sort link. */

.sortable-heading > a {
  display: block;
  padding: 0.5rem 1.5rem 0.5rem 0; /* LTR */
  text-decoration: none;
  color: inherit;
}

[dir="rtl"] .sortable-heading > a {
  padding-right: 0;
  padding-left: 1.5rem;
}

.sortable-heading > a::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 1rem;
  bottom: 0;
  left: 1rem;
  display: block;
  content: "";
  border-bottom: 0.125rem solid transparent;
}

/* stylelint-disable-next-line selector-type-no-unknown */

_:-ms-fullscreen, /* Only IE 11 */
.sortable-heading > a::before {
  top: auto;
  height: 100%;
}

.sortable-heading > a::after {
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 0.875rem;
  height: 1rem;
  margin-top: -0.5rem;
  content: "";
  opacity: 0.5;
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3e%3cpath d='M1.75.25v1.5h10.5V.25zm0 3v1.5h7.5v-1.5zm0 3v1.5h4.5v-1.5z' fill='%23222330'/%3e%3c/svg%3e") no-repeat 50% 50%;
  background-size: contain
}

@media (forced-colors: active) {

.sortable-heading > a::after {
    opacity: 1;
    background: linktext;
    -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3e%3cpath d='M1.75.25v1.5h10.5V.25zm0 3v1.5h7.5v-1.5zm0 3v1.5h4.5v-1.5z' fill='%23222330'/%3e%3c/svg%3e") no-repeat 50% 50%;
    mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3e%3cpath d='M1.75.25v1.5h10.5V.25zm0 3v1.5h7.5v-1.5zm0 3v1.5h4.5v-1.5z' fill='%23222330'/%3e%3c/svg%3e") no-repeat 50% 50%
}
  }

/* stylelint-disable-next-line selector-type-no-unknown */

_:-ms-fullscreen, /* Only IE 11 */
.sortable-heading > a::after {
  position: static;
  float: right;
  margin-top: 0.125rem; /* 2px */
  margin-right: -1.5rem; /* -24px */
}

[dir="rtl"] .sortable-heading > a::after {
  right: auto;
  left: 1rem;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3e%3cpath d='M12.25.25v1.5H1.75V.25zm0 3v1.5h-7.5v-1.5zm0 3v1.5h-4.5v-1.5z' fill='%23222330'/%3e%3c/svg%3e")
}

@media (forced-colors: active) {

[dir="rtl"] .sortable-heading > a::after {
    background: linktext;
    -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3e%3cpath d='M12.25.25v1.5H1.75V.25zm0 3v1.5h-7.5v-1.5zm0 3v1.5h-4.5v-1.5z' fill='%23222330'/%3e%3c/svg%3e") no-repeat 50% 50%;
    mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3e%3cpath d='M12.25.25v1.5H1.75V.25zm0 3v1.5h-7.5v-1.5zm0 3v1.5h-4.5v-1.5z' fill='%23222330'/%3e%3c/svg%3e") no-repeat 50% 50%
}
  }

/* stylelint-disable-next-line selector-type-no-unknown */

_:-ms-fullscreen, /* Only IE 11 */
[dir="rtl"] .sortable-heading > a::after {
  float: left;
  margin-right: 0;
  margin-left: -1.5rem; /* -24px */
}

/* Sortable cell's link focus/hover state. */

.sortable-heading > a:focus,
.sortable-heading > a:hover {
  text-decoration: none;
}

.sortable-heading > a:focus::before,
.sortable-heading > a:hover::before {
  border-color: inherit;
}

.sortable-heading > a:focus::after,
.sortable-heading > a:hover::after {
  opacity: 1;
}

/* Sortable cell's active state. */

.sortable-heading.is-active > a {
  color: #003cc5;
}

.sortable-heading.is-active > a::before {
  border-bottom: 0.1875rem solid #003cc5;
}

.sortable-heading.is-active > a::after {
  content: none;
}

tr {
  border-bottom: 0.0625rem solid #d3d4d9;
}

tr,
.draggable-table.tabledrag-disabled tr {
  color: #232429;
  background: #fff;
}

thead tr {
  border: 0;
}

tr:hover,
tr:focus {
  color: #232429;
  background: #f0f5fd;
}

tr.color-warning:hover,
tr.color-warning:focus {
  color: #232429;
  background: #fdf8ed;
}

tr.color-error:hover,
tr.color-error:focus {
  color: #232429;
  background: #fcf4f2;
}

td {
  box-sizing: border-box;
  height: 4rem;
  padding: 0.5rem 1rem;
  text-align: left; /* LTR */
}

[dir="rtl"] td {
  text-align: right;
}

td .item-list ul {
  margin: 0;
}

/* This is required to win over specificity of [dir="rtl"] .item-list ul */

[dir="rtl"] td .item-list ul {
  margin: 0;
}

td.is-active {
  background: none;
}

/**
 * Target every .form-element input that parent is a form-item of a table cell.
 * This ignores the filter format select of the textarea editor.
 */

td > .form-item > .form-element,
td > .ajax-new-content > .form-item > .form-element {
  width: 100%;
}

/* Win over table-file-multiple-widget. */

th.is-disabled.is-disabled {
  color: #828388;
}

/* Force browsers to calculate the width of a 'select all' <th> element. */

th.select-all {
  width: 1px;
}

/**
 * Captions.
 */

.caption {
  margin-bottom: 1.25rem; /* 20px */
}

tfoot {
  font-weight: bold;
}

tfoot tr:last-child {
  border-bottom: 0;
}

tfoot tr:first-child td {
  border-top: 0.0625rem solid #919297;
}

/**
 * Responsive table cells.
 */

th.priority-low,
th.priority-medium,
td.priority-low,
td.priority-medium {
  display: none;
}

@media screen and (min-width: 38em) {
  th.priority-medium,
  td.priority-medium {
    display: table-cell;
  }
}

@media screen and (min-width: 60em) {
  th.priority-low,
  td.priority-low {
    display: table-cell;
  }
}

.tabledrag-toggle-weight-wrapper {
  margin-top: 1.5rem;
  line-height: 1.75rem;
}

.tabledrag-toggle-weight-wrapper + table,
.tabledrag-toggle-weight-wrapper + .tableresponsive-toggle-columns + table {
  margin-top: 0;
}