/**
 * Layout admin css.
 */

/* Layout listing form. */
.layout-list .layout-group td {
  background: #dddddd;
}
.layout-list .layout-group td:first-child {
  font-weight: bold;
}
.layout-list .layout-group td.missing-path,
 .layout-list .layout-group td.missing-path a {
   color: #c40d00;
 }
 .layout-list .layout-row td:first-child {
  padding-left: 24px;
}
.layout-list tr.disabled td {
  color: #999;
}
.layout-list td:last-child {
  min-width: 160px;
}

@media (min-width: 768px) {
  .layout-list span.priority-low {
    display: inline;
  }
}

.layout-list img {
  display: none;
  float: left; /* LTR */
  margin-right: 10px;
  max-width: 37px;
  height: auto;
}
[dir="rtl"] .layout-list img {
  float: right; /* LTR */
  margin-right: 0;
  margin-left: 10px;
}
@media (min-width: 768px) {
  .layout-list img {
    display: inline;
  }
}

.layout-list .layout-conditions-list ul {
  margin-left: 0;
}

@media (min-width: 768px) {
  .layout-list thead .layout-title {
     padding-left: 71px;
   }
   [dir="rtl"] .layout-list thead .layout-title {
     padding-right: 71px;
   }
}

/* Individual layout settings form. */
.layout-entity-admin-add-form .form-type-radios,
.layout-settings-page .form-type-checkboxes,
.layout-settings-form .form-type-radios {
  width: 100%;
}
.layout-entity-admin-add-form .layout-options .form-radios,
.layout-settings-page .layout-options .form-checkboxes,
.layout-settings-form .layout-options .form-radios {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  line-height: 1.3;
  max-width: calc(100vw - 60px); /* Fix flex-wrap issue in some browsers */
}
.layout-entity-admin-add-form .layout-options.no-flexbox .form-radios,
.layout-settings-page .layout-options.no-flexbox .form-checkboxes,
.layout-settings-form .layout-options.no-flexbox .form-radios {
  display: block;
}
.layout-entity-admin-add-form .layout-options .form-type-radio,
.layout-settings-page .layout-options .form-type-checkbox,
.layout-settings-form .layout-options .form-type-radio {
  width: 100px;
  margin: 0 5px 5px 0;
  padding: 0;
  text-align: center;
}
.layout-entity-admin-add-form .layout-options.no-flexbox .form-type-radio,
.layout-settings-page .layout-options.no-flexbox .form-type-checkbox,
.layout-settings-form .layout-options.no-flexbox .form-type-radio {
  float: left;
}
.layout-settings-page .layout-options .form-item input.form-checkbox {
  /* Needed to override Seven's style.css */
  margin-right: 0;
  margin-left: 0;
}

/* Inject a little space after the path matches text within the description. */
#layout-path-matches {
  margin-bottom: 0.5em;
}
.layout-placeholder-examples {
  margin-top: 0.5em;
}

/* Toggle for the placeholder examples */
.layout-placeholder-examples-toggle {
  white-space: nowrap;
}
.layout-placeholder-examples-toggle .arrow {
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-right-color: transparent;
  border-style: solid;
  border-width: 0.3333em 0.3333em 0;
  display: inline-block;
  height: 0;
  line-height: 0;
  width: 0;
  overflow: hidden;
  margin: 0.15em 0.3333em;
}
.layout-placeholder-examples-toggle .arrow.close {
  border-top-color: transparent;
  border-bottom-color: #0074bd;
  border-width: 0 0.3333em 0.3333em;
}

/* Menu item argument settings. */
#layout-arguments strong,
#layout-context-table strong {
  text-decoration: underline;
}

#layout-context-table {
  width: auto;
}

/* Buttons that are displayed as links. */
.layout-access-remove,
.layout-access-configure,
.layout-context-remove,
.layout-context-configure {
  padding-left: 10px; /* LTR */
}
[dir="rtl"] .layout-access-remove,
[dir="rtl"] .layout-access-configure,
[dir="rtl"] .layout-context-remove,
[dir="rtl"] .layout-context-configure {
  padding-left: 0;
  padding-right: 10px;
}

/* Layout dialogs. */
.layout-dialog {
  max-width: min(95vw, 48em);
}
.layout-block-list {
  max-height: 300px;
  overflow: auto;
  padding-right: 5px; /* LTR */
}
[dir="rtl"] .layout-block-list {
  padding-right: 0;
  padding-left: 5px;
}
.layout-block-add-row.form-item {
  padding: 5px;
  border-bottom: 1px solid #CCC;
  margin: 0;
}
.layout-block-add-row.odd {
  background-color: #F3F4EE;
}
.layout-block-list-wrapper {
  border: 1px solid #CCC;
  border-bottom: none;
}

/* Layout columns */
.layout-content-form .row > div,
.layout-content-form .row > main {
  display: flex;
}

/* Layout editor. */
.layout-editor-region {
  width: 100%;
  min-height: 70px;
  margin: 0 0 15px;
  padding: 8px 8px 16px 8px;
  border: 1px dashed #CCC;
  background: white;
  box-sizing: border-box;
}
.layout-editor-region-title {
  padding: 0 0 10px 0;
}
.layout-editor-region-title .label {
  float: left; /* LTR */
  margin: 0;
  padding: 4px 12px 4px 4px; /* LTR */
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: normal;
  color: #5b575b;
}
[dir="rtl"] .layout-editor-region-title .label {
  float: right;
  padding-right: 4px;
  padding-left: 12px;
}
.layout-editor-region-content {
  min-height: 40px;
}
.layout-editor-region-title .dropbutton-wrapper {
  float: left; /* LTR */
  width: 140px;
  margin: 4px 0 10px;
}
[dir="rtl"] .layout-editor-region-title .dropbutton-wrapper {
  float: right;
}
.layout-editor-region-title .buttons .dropbutton-wrapper {
  float: right; /* LTR */
  width: auto;
  margin: 4px 4px 10px
}
[dir="rtl"] .layout-editor-region-title .buttons .dropbutton-wrapper {
  float: left;
}
.layout-editor-region .dropbutton-wrapper a {
  display: inline-block;
  width: 100%;
  text-align: left; /* LTR */
}
[dir="rtl"] .layout-editor-region .dropbutton-wrapper a {
  text-align: right;
}
.layout-editor-region .dropbutton-wrapper .ajax-progress {
  position: absolute;
  padding: 0.1em 0;
}
.ui-sortable .layout-editor-block {
  cursor: move;
}
.layout-editor-block {
  margin: -1px 1px 15px -1px;
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 4px;
  box-shadow: 2px 2px 0 0 #d0d0d0;
}
.layout-editor-block:last-child {
  margin-bottom: 0;
}
.layout-editor-block-title {
  border: 0;
  background: #e9e8e8;
  border-radius: 4px 4px 0 0;
  padding: 0.4em 0.5em;
}
.layout-editor-block-title .handle {
  background: url(../../../misc/draggable.png) no-repeat 6px 9px;
  height: 13px;
  width: 13px;
  margin: 0 0.5em 0 0; /* LTR */
  padding: 0.25em 0.75em;
  box-sizing: content-box;
}
[dir="rtl"] .layout-editor-block-title .handle {
  margin: 0 0 0 0.5em;
}
.layout-editor-block-title .text {
  font-size: 1.1em;
  line-height: 1.75;
  font-weight: bold;
}
.layout-editor-block-title .buttons {
  float: right; /* LTR */
  width: 120px;
}
[dir="rtl"] .layout-editor-block-title .buttons {
  float: left;
}
.layout-editor-block-content {
  border: 1px solid #f7f7f7;
  border-top: none;
  border-bottom-width: 2px;
  border-radius: 0 0 4px 4px;
  padding: 0.4em 1em;
  min-height: 20px;
  background: #f7f7f7;
  font-size: 90%;
  line-height: 1.5;
}
.layout-editor-block-content p {
  margin: 0 0 12px;
}
.layout-editor-block-content p:last-child {
  margin: 0;
}
.layout-editor-block-content fieldset {
  border: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}
.layout-editor-block-content fieldset .fieldset-legend {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}
.layout-editor-block-content .item-list ul {
  margin: 0;
  padding: 0;
}
.layout-editor-block-content .item-list ul li {
  padding: 0;
  margin: 0 0 0 12px; /* LTR */
  list-style-type: disc;
}
[dir="rtl"] .layout-editor-block-content .item-list ul li {
  margin: 0 12px 0 0;
}
.layout-editor-placeholder {
  background-color: #bdf;
  border-radius: 4px;
}

.layout-content-form h1.page-title,
.layout-content-form h1.title {
  font-size: 1em;
}
.layout-content-form .page-title div.description,
.layout-content-form .title div.description {
  clear: both;
}
/* Remove the drop shadow indicating this item is movable */
.layout-content-form .page-title .layout-editor-block {
  box-shadow: none;
  background-color: #e9e8e8;
  padding: 0.4em 1em;
}
.layout-content-form .page-title .layout-editor-block-title {
  background-color: transparent;
  padding: 0;
}
.layout-content-form .page-title .layout-editor-block-title .description {
  padding: 0 0.8em;
  font-size: 90%;
}

/* Hero block provided by Layout module. */
.layout-hero-image-upload .layout-hero-background-preview-empty {
  padding-bottom: 0.5em;
}
.layout-hero-image-upload .form-file {
  max-width: 20em;
}

/* Layout Misc */
.layout-access-list ul {
  list-style: none;
  margin: 1em 0;
  padding: 0;
}
.layout-access-list ul li {
  background: #eee;
  border-bottom: 1px solid #ccc;
  padding: 0.1em 0.6em;
}
.layout-access-list .layout-condition .layout-operations {
  display: inline-block;
}
.layout-content-form main {
  /* Override Seven's styling. */
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .layout-access-list .layout-condition .layout-operations {
    float: right; /* LTR */
  }
  [dir="rtl"] .layout-access-list .layout-condition .layout-operations {
    float: left;
  }
}

.form-item .form-item.form-item-region-count {
  margin-right: 2em;
  display: inline;
}

.edit-layout-top {
  padding: 0.5em 0.5em;
  background: #e9e8e8;
  border-radius: 4px 4px 0 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin: 1em 0 0;
}
.edit-layout-top .dropbutton-wrapper {
  float: right; /* LTR */
  width: 140px;
}
[dir="rtl"] .edit-layout-top .dropbutton-wrapper {
  float: left;
}

.layout-editor-block-disabled {
  color: #999;
}
