.gem-positions-editor{
	overflow:hidden;
}
.gem-positions-editor #adminmenumain {  height: 100%;position: absolute;}

.gem-positions-editor #adminmenuwrap {
    overflow-x:hidden;
	overflow-y: auto;
    height: 100%;
	scrollbar-color: #aaa #eee;
    scrollbar-width: thin;
}
  .gem-positions-editor #adminmenuwrap::-webkit-scrollbar {
    width: 0.5rem;
  }

  .gem-positions-editor #adminmenuwrap::-webkit-scrollbar-track-piece {
    background-color: #eee;
    border: 1px solid #eee;
  }

  .gem-positions-editor #adminmenuwrap::-webkit-scrollbar-thumb {
    background-color: #aaa;
    background-image: none;
    cursor: pointer;
    border-radius: 1rem;
  }
.gem-positions-editor #wpcontent{
	height: 100%;
 	padding-left: 0px;
    position: absolute;
	top:0;
	left:160px;
	right:0;
	margin:0;
}
.gem-positions-editor.folded #wpcontent{
	left:36px;
	}
.gem-positions-editor #wpbody-content{
	height: 100%;
    padding: 0;
    float: none;
	position:relative;
}

.gem-positions-editor #wpbody {
    position: relative;
    width: 100%;
    height: 100%;
}

.gem-positions-editor-wrap{
	height: 100%;
    position: absolute;
    width: 100%;
    bottom: 0;
    top: 0;
}

.gem-wrap {
  max-width: 960px;
  width: 100%;
}
.ui-dialog {
  position: fixed;
}
table.form-table .CodeMirror {
  height: 600px;
}
code {
  background: #ddd;
  display: inline-block;
  padding: 1rem;
}

h2 {
  margin: 3rem 0 1rem 0;
}

pre {
  background: #ddd;
  margin: 0 1rem;
}
.wrap h1.wp-heading-inline,
.gem-wrap h1.wp-heading-inline {
  margin: 10px 0 0 0;
}
h3.wp-heading-desc{
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 400;
}
article{
  padding: 3px;
  margin: 10px 0;
  min-height: 40px;
}
.gem-wrap article.gem-position-input {
  cursor: pointer;
  background: #fff;
  border-radius: 2px;
  -webkit-box-shadow: 0 0 2px #ccc;
  box-shadow: 0 0 2px #ccc;
  -webkit-transition: all 0.15s cubic-bezier(0.4, 0, 1, 1);
  transition: all 0.15s cubic-bezier(0.4, 0, 1, 1);

}
  
.form-table td:hover article.gem-position-input {
  -webkit-box-shadow: 0 0 2px #aaa;
  box-shadow: 0 0 2px #aaa;
  -webkit-transform: scale(1.01);
  -ms-transform: scale(1.01);
  transform: scale(1.01);
}

#featured_article_search_input {
  padding: 3px 8px;
  font-size: 1.2em;
  line-height: 100%;
  height: 2.25em;
  width: 100%;
  outline: 0;
  margin: 0;
  background-color: #fff;
}

.search_result {
  cursor: pointer;
  padding: 8px;
  min-height: 40px !important;
  clear: both;
  margin: 6px 0;
}

.search_result.selected {
  pointer-events: none;
  cursor: not-allowed;
  background-color: rgba(160, 160, 210, 0.2);
}

.search_result:hover {
  background-color: rgba(0, 160, 210, 0.2);
}

.search_result:active {
  background-color: rgba(0, 160, 210, 0.3);
}

.search_result h2,
.search_result p {
  padding: 0;
  margin: 0 0 5px 0;
  line-height: 100%;
  font-size: 13px;
 }
.search_result h2{
  font-weight: 600;
}

#gem-multi-post-search-results,
#gem-single-post-search-results,
#post_search_results {
  max-height: 560px;
  overflow-y: auto;
}

article .post-thumbnail img {
  height: 40px;
  width: 40px;
}

.search_result p.post-title,
article .post-title {
  font-weight: 500;
  margin: 0;
  padding: 0;
  line-height: 115%;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
}
article .post-meta > span{
  margin-right: 8px;
  font-size: 13px;
}

article .post-thumbnail {
  float: left;
  width: 40px;
  padding: 0 8px 0 0;
}


.gem-wrap .form-table {
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
}
table.form-table th,
table.form-table td{
  border-bottom: 1px dashed #ddd;
  padding: 10px;
  vertical-align: middle;
}
table.form-table td article{
  margin: 0;
}
 
.form-table td p{
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}
.gem-wrap .button.action {
  color: #f9f9f9;
  border-color: #0073aa;
  background: #5b9dd9;
  box-shadow: 0 1px 0 #00a0d2;
  vertical-align: top;
  padding: 10px 20px;
  line-height: 100%;
  height: auto;
  font-size: 14px;
}

.gem-wrap .button.action:hover {
  background: #328cdc;
  border-color: #0073aa;
  color: #fff;
}

.gem-dialog {
  padding: 0;
  max-width: 960px;
  width:100% !important;
}

.gem-dialog .wrap {
  margin: 0;
}

.gem-dialog .input-wrap {
  padding: 20px;
  background: #eee;
  box-shadow: 0 0 5px #aaa;
  z-index: 1;
  position: sticky;
}

#post_search_results ul {
  margin: 20px;
}

.ui-dialog {
  position: fixed;
  z-index: 2;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
}
.ui-widget-overlay {
  position: fixed;
  z-index: 1;
  top:0;
  right: 0;
  left: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.5) !important;
}

.row{
  height: 100%;
  flex-direction: row;
  box-sizing: border-box;
  display: flex;
  place-content: flex-start space-between;
  align-items: flex-start
}
.row > div{
  box-sizing: border-box;
}
.multi-post{
  place-content: stretch space-between;
    align-items: stretch;
  }

.multi-post > div{
  width: 50%;
}

.bg-light{
  background: #ddd;
  padding: 3px;
  box-shadow: inset 0 0 5px #bebebe;
  flex-direction: column;
  box-sizing: border-box;
  display: flex;
  place-content: flex-end space-between;
  align-items: flex-end;
}

.drag-list article p,
.drag-list article h2,
.drag-list{
  font-size: 14px;
  margin: 0;
  width: 100%;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
}

.drag-list article{
  cursor: move;
  position: relative;
  padding-right:  30px;
}

.drag-list article:hover{
  background: #fff;
}

.drag-list article .remove{
    height: 24px;
    width: 24px;
    border: 0;
    background: #ccc;
    border-radius: 50%;
    font-family: monospace;
    cursor: pointer;
    position: absolute;
}
.drag-list article .remove{
  display: none;
  right: 6px;
  top: calc(50% - 12px);}

.remove:before, .remove:after {
  position: absolute;
  left: 11px;
  content: ' ';
  height: 12px;
  width: 2px;
  background-color: #fff;
  top: 6px;
}
.remove:before {
  transform: rotate(45deg);
}
.remove:after {
  transform: rotate(-45deg);
}

.drag-list article:hover .remove{
  display: block;
}
.drag-list article .remove:hover{
  background:#bd0000;
}

.right-sidebar {
  position: sticky;
  top: 30px;
  background: #fff;
  min-width: 300px;
  border: 1px solid #ddd;
  margin: 7px 0 0 10px;
}

.right-sidebar .header{
  padding: 10px;
  border-bottom: 1px solid #ccc;
}
.right-sidebar .action{
  padding: 10px;
  text-align: right;
  background: #f5f5f5;
}


.select-btn{
  border: 1px solid #ccc;
  background: #fff;
  padding: 20px;
  text-align: center;
  width: 100%;
}

.wrap .button {
  color: #fff;
  border-color: #0071a1;
  background: #0071a1;
}
 .wrap .button:hover {
    color: #0071a1;
    background: #f3f5f6;
}

article:before,
article:after{
 content: '';
 display: block;
}



/* ui-dialog*/
.ui-dialog {
  max-width: 820px;
  padding: .2em;}

.ui-dialog .ui-dialog-titlebar {
  padding: .4em 1em;
  height: 24px;
  position: relative;
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
  border: 1px solid #aaa;
  background: #ccc;
  color: #222;
  font-weight: bold;
}
.ui-dialog-titlebar:before, .ui-dialog-titlebar:after {
  content: "";
  display: table;
  border-collapse: collapse;
  clear: both;
}
.ui-dialog .ui-dialog-title {
  float: left;
  margin: .1em 0;
  white-space: nowrap;
  width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ui-dialog .ui-dialog-titlebar-close {
  position: absolute;
  right: .3em;
  top: 50%;
  width: 20px;
  margin: -10px 0 0 0;
  padding: 1px;
  height: 20px;
  border: 1px solid #d3d3d3;
  background: #e6e6e6 url(ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x;
  font-weight: normal;
  color: #555;
  font-size: 1em;
}
.ui-state-default .ui-icon {
  background-image: url(ui-icons_888888_256x240.png);
  background-position: -96px -128px;
  width: 16px;
  height: 16px;
  left: 50%;
  margin-left: -8px;
  position: absolute;
  top: 50%;
  margin-top: -8px;}

.ui-button .ui-button-text{
  padding: .4em;
  text-indent: -9999999px;
  display: block;
  line-height: normal;
}

.ui-dialog .ui-dialog-content {
  padding: 0 !important;}

.ui-dialog-titlebar .ui-button.ui-dialog-titlebar-close {
  top: 16px !important;
  right: 6px;
}

table.form-table td > div,
#gem-multi-post-selected-posts {
  max-height: 520px;
  overflow-y: auto;
  overflow-x: hidden;
}