/* Layout listing form. */
.layout-list .layout-group td {
  background: #dddddd;
}
.layout-list .layout-group td:first-child {
  font-weight: bold;
}
.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;
}

.layout-list .layout-title {
  font-weight: bold;
}

/* Individual layout settings form. */
.layout-settings-page .form-type-checkboxes,
.layout-settings-form .form-type-radios {
  width: 100%;
}
.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-settings-page .layout-options.no-flexbox .form-checkboxes,
.layout-settings-form .layout-options.no-flexbox .form-radios {
  display: block;
}
.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-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;
}

/* 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: 600px;
}
.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;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.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: #908990;
}
[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: #FFF;
  border-radius: 4px;
  -webkit-box-shadow: 2px 2px 0 0 #d0d0d0;
  -moz-box-shadow: 2px 2px 0 0 #d0d0d0;
  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;
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  -o-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%;
}

/* 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;
  }
}

.layout-flexible-region-buttons {
  padding-bottom: 5px;
}

.layout-flexible-editor .flexible-row {
  padding: 15px 0 0;
}

.layout-flexible-editor .flexible-row:hover {
  background-color: #ffffff;
  -webkit-box-shadow: 2px 2px 0 0 #d0d0d0;
  -moz-box-shadow: 2px 2px 0 0 #d0d0d0;
  box-shadow: 2px 2px 0 0 #d0d0d0;
  cursor: move;
}

.flexible-layout-add-row {
  margin: 20px 40px 0;
}

.flexible-icon {
  border: 2px solid #999;
  border-radius: 3px;
  padding: 1px;
}

.flexible-icon-region {
  background-color: #ccc;
  color: #fff;
  background-clip: content-box;
  text-align: center;
}

.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;
  margin: 1em 0;
}
.edit-layout-top .dropbutton-wrapper {
  float: right; /* LTR */
  width: 140px;
}
[dir="rtl"] .edit-layout-top .dropbutton-wrapper {
  float: left;
}
