/* classes */
.hide {
  display: none !important;
}
.show {
  display: block !important;
}
.inline,
.description-inline,
.title-inline {
  display: inline-block;
  vertical-align: middle;
}
.notice {
  font-style: italic;
}
.warning {
  font-style: italic;
  display: inline-block;
  padding-left: 5px;
}
.wpie-notice-msg {
  font-size: 12px;
  font-style: normal;
}
.strong {
  font-weight: bold;
}
.showonrequest {
  display: none !important;
}
.underline {
  text-decoration: underline;
}
.group:after {
  content: "";
  display: table;
  clear: both;
}
.toggler {
  margin: 0;
  font-size: 14px;
}
.toggler:hover {
  cursor: pointer;
}
.togglethis {
  display: block;
}
.wpie-sett-field-err {
  border: 1px solid #d54e21 !important;
}
.wpie-red {
  color: #d04c20;
}
.wpie-green {
  color: #7cdf46;
}
.wpie-red-light {
  color: #e47b58;
}
.wpie-red-bgd {
  background-color: #d04c20;
  color: #fff;
  padding: 2px 3px;
}
.wpie-red-light-bgd {
  background-color: #e47b58;
  color: #fff;
  padding: 2px 3px;
}

.form-table > tbody > tr.description > td {
  padding-top: 0;
}
.form-table > tbody > tr.description > td > p {
  color: #666;
  margin: 2px 0;
  padding: 0;
  font-style: italic;
}
.descr-i {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 5px;
}
.descr-i i {
  width: 100%;
  height: 100%;
  background: url(../img/i-icon.svg) no-repeat;
  display: block;
  background-size: cover;
}
.descr-i i:hover {
  background-image: url(../img/i-icon-hover.svg);
  cursor: pointer;
}

/* elements */
.icon-64 {
  float: left;
  height: 64px;
  margin: 0 15px 0 0;
  width: 68px;
}
code,
.code {
  font-style: italic;
  unicode-bidi: embed;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
}
.ajax-loading {
  vertical-align: middle;
  visibility: hidden;
  display: none;
}
.ajax-loading-wpie {
  width: 20px;
  height: 20px;
  background: url(../img/ajax-loading.gif) no-repeat;
}
a + .ajax-loading {
  margin-left: 5px;
  display: inline-block;
}
a:active,
a:focus,
input,
input:active,
input:focus {
  outline: 0;
  box-shadow: none;
}

/* admin header */
#wpie-plugin-header {
  min-height: 90px;
  height: auto;
  padding: 0 30px 5px 0;
}
#wpie-plugin-header .logo {
  width: 80px;
  height: 80px;
  background-repeat: no-repeat;
  background-size: contain;
  display: inline-block;
  vertical-align: top;
}
#wpie-plugin-header h2 {
  line-height: 80px;
  padding: 0;
  margin: 0 0 0 10px;
  display: inline-block;
  vertical-align: top;
}
span.description {
  margin-left: 5px;
}

/* navigation */
#wpie-nav-wrapper li,
input:active {
  outline: 0;
}
#wpie-nav-wrapper {
  padding-top: 10px;
}
#wpie-nav-wrapper > ul {
  height: 36px;
  clear: both;
  margin: 0;
  padding-left: 0;
  border-bottom: 2px solid #3d9fc4;
}
#wpie-nav-wrapper > ul.no-tabs {
  height: 1px;
}
#wpie-nav-wrapper > ul li {
  float: left;
  list-style: none;
  margin: 0 30px 0 0;
  padding: 10px 8px 9px;
}
#wpie-nav-wrapper > ul li.tab-active {
  border-bottom: 3px solid #3d9fc4;
}
#wpie-nav-wrapper > ul li a:not(#wpie-export-file-link) {
  font-size: 17px;
  font-weight: normal;
  cursor: pointer;
  height: 14px;
  text-decoration: none;
  display: block;
  color: #464646;
}
#wpie-nav-wrapper > ul li:first-child a {
  padding-left: 0;
}
#wpie-nav-wrapper > ul li.tab-active a {
  color: #3d9fc4;
  font-weight: bold;
}
#wpie-nav-wrapper > ul li a:hover {
  color: #3d9fc4;
  text-decoration: none;
}

/* Instructions link */
#wpie-nav-wrapper > ul .wpie-plugin-instr,
#wpie-nav-wrapper > ul .sublink {
  float: right;
  position: relative;
  top: 32px;
}
#wpie-nav-wrapper > ul.no-tabs .wpie-plugin-instr {
  top: 1px;
}
#wpie-nav-wrapper > ul .wpie-plugin-instr a,
#wpie-nav-wrapper > ul .sublink a:not(#wpie-export-file-link) {
  font-size: 16px;
  color: #d04c20;
}
#wpie-ei-wrapper {
  position: absolute;
  left: 0;
}
#wpie-ei-message {
}
textarea#wpie-ei-textarea {
  width: 400px;
  height: 200px;
}
#wpie-btn-export {
}
#wpie-btn-import {
  margin-left: 10px;
}

/* tab content */
.tab-content {
  display: block;
  padding: 30px 0 0 0;
}

/* WP editor */
.wp-editor-wrap,
textarea {
  margin: 10px 0;
}
.wptextareabasic textarea {
  white-space: pre-line;
}

.form-table * {
  box-shadow: none !important;
}
.form-table button + .filename {
  line-height: 26px;
  margin-right: 5px;
}
.form-table .filename {
  line-height: 26px;
}
.form-table button + .wpie-change-file {
  margin-left: 5px;
}
.form-table button + .filename + .preview {
  width: 28px;
  height: 28px;
  line-height: 33px;
  margin-right: 5px;
  float: none;
  display: inline-block;
}
.form-table button + button {
  margin-left: 5px;
}
.form-table > tbody > tr > td {
  padding: 15px 0;
}
.form-table > tbody > tr > th {
  width: 210px;
}
.form-table > tbody > tr > th + td {
  padding: 15px 10px;
}
.form-table > tbody > tr > td > div > label {
  font-weight: 600;
  line-height: 1.3;
}
.form-table input[type="text"] {
  height: 28px;
  padding: 3px 5px;
  margin: 0;
}

/* buttons */
.wp-core-ui .button-submit,
.wp-core-ui .wpie-btn-blue {
  background-color: #3d9fc4;
  color: #fff;
  border: 1px solid #3d9fc4;
  box-shadow: none;
  text-shadow: none;
}
.wp-core-ui .button-submit,
.wp-core-ui .wpie-btn-red,
.wp-core-ui .wpie-btn-blue {
  -webkit-transition: all 0.1s ease;
  -moz-transition: all 0.1s ease;
  -o-transition: all 0.1s ease;
  transition: all 0.1s ease;
}
.wp-core-ui .wpie-btn-red,
.wp-core-ui .wpie-btn-blue:hover,
.wp-core-ui .wpie-btn-blue:active,
.wp-core-ui .wpie-btn-blue:focus,
.wp-core-ui .button-submit:hover,
.wp-core-ui .button-submit:active,
.wp-core-ui .button-submit:focus {
  background-color: #d54e21;
  color: #fff;
  border-color: #d54e21;
  box-shadow: none;
  -ms-transform: none;
  -webkit-transform: none;
  transform: none;
}
button#reset {
  margin-left: 5px;
}

/* page content */
.wrap * {
  box-sizing: border-box;
}
.page-content {
  display: block;
  padding: 30px 0 0 0;
}

/* Post item list */
.form-table > tbody > tr.wpcpostlist_edit > td {
}
.wpie-list-wrapper .wpie-list-new-post {
  width: 514px;
}
.wpie-list-layout-compact.wpie-list-wrapper .wpie-list-new-post {
  width: 20%;
}
.wpie-list-wrapper .wpie-list-controls {
  margin-left: 5px;
}
.wpie-list-wrapper .wpie-list-controls .button {
  margin-left: 5px;
}

.wpie-list-wrapper table {
  border-collapse: collapse;
}
.wpie-list-wrapper .wpie-list-rows-table {
  width: 900px;
  margin: 0;
  padding: 0;
}
.wpie-list-wrapper.wpie-has-add .wpie-list-rows-table {
  margin-top: 10px;
  padding-top: 15px;
}
.wpie-list-wrapper .wpie-list-rows-table .wpie-list-heading,
.wpie-list-wrapper .wpie-list-rows-table .wpie-list-row {
  border: 1px solid #ddd;
  background-color: #f5f5f5;
  margin: 0 0 5px;
  padding: 0;
  border-collapse: initial;
}
.wpie-list-wrapper
  .wpie-list-rows-table
  .wpie-list-heading
  .wpie-list-heading-item {
  width: auto;
  padding: 5px;
  margin: 0;
  font-weight: bold;
  text-align: left;
}
.wpie-list-wrapper .wpie-list-rows-table .wpie-list-row {
  min-height: 60px;
}
.wpie-list-wrapper .wpie-list-rows-table .wpie-list-row .wpie-list-row-field {
  min-height: 30px;
  padding: 15px 5px;
  margin: 0;
}
.wpie-list-wrapper .wpie-list-rows-table .wpie-list-row > div + label {
  line-height: 14px;
}
.wpie-list-wrapper
  .wpie-list-rows-table
  .wpie-list-row
  input.wpie-list-row-field-post-title {
  width: 500px;
  background-color: #fff;
}
.wpie-list-wrapper
  .wpie-list-rows-table
  .wpie-list-row
  input[readonly="readonly"] {
  background-color: #fff;
  border: 1px solid #fff;
}
.wpie-list-wrapper
  .wpie-list-rows-table
  .wpie-list-row
  input[disabled="disabled"] {
  background-color: #fff;
  border: 1px solid #fff;
}
.wpie-list-wrapper .wpie-list-rows-table .wpie-list-row span.checkbox {
  background-color: #fff;
}
.wpie-list-wrapper .wpie-list-rows-table .wpie-list-row button {
  margin: 2px 0;
}
.wpie-list-wrapper.wpie-list-has-posts .no-items-msg {
  display: none;
}

/* compact modus active */
.wpie-list-layout-compact.wpie-list-wrapper .wpie-list-rows-table {
  width: auto;
  margin-top: 2px;
  padding-top: 5px;
}
.wpie-list-layout-compact.wpie-list-wrapper
  .wpie-list-rows-table
  .wpie-list-row-fields {
  width: 80%;
}
.wpie-list-layout-compact.wpie-list-wrapper
  .wpie-list-rows-table
  .wpie-list-row {
  width: 20%;
  min-height: 24px;
  padding: 6px 2px;
}
.wpie-list-layout-compact.wpie-list-wrapper
  .wpie-list-rows-table
  .wpie-list-row
  .wpie-list-row-field {
  text-align: center;
}
.wpie-list-layout-compact.wpie-list-wrapper
  .wpie-list-rows-table
  .wpie-list-row
  input.wpie-list-row-field-post-title {
  width: 100%;
}
.wpie-list-layout-compact.wpie-list-wrapper
  .wpie-list-rows-table
  .wpie-list-row
  input.wpie-list-row-field-meta-item:not([type="checkbox"]) {
  width: 100%;
}

/* click select active */
.wpie-click-select.wpie-list-wrapper .wpie-list-rows-table .wpie-list-row:hover,
.wpie-click-select.wpie-list-wrapper
  .wpie-list-rows-table
  .wpie-list-row:active,
.wpie-click-select.wpie-list-wrapper .wpie-list-rows-table .wpie-list-row:focus,
.wpie-click-select.wpie-list-wrapper
  .wpie-list-rows-table
  .wpie-list-row.wpie-list-row-selected {
  background-color: #3d9fc4;
}
.wpie-click-select.wpie-list-wrapper
  .wpie-list-rows-table
  .wpie-list-row:hover
  input[type="text"] {
  background-color: #3d9fc4;
  color: #fff;
}
.wpie-click-select.wpie-list-wrapper
  .wpie-list-rows-table
  .wpie-list-row:hover {
  cursor: pointer;
}

/* Post list meta fields */
.wpie-list-row-field-meta-item {
  width: 305px;
}

/* actions: add, delete, save */
.wpie-list-wrapper .wpie-list-rows-table .wpie-list-row-actions span {
  cursor: pointer;
}
.wpie-list-wrapper .wpie-list-rows-table .wpie-list-row-actions .wpie-btn-del {
  color: #e67575;
}
.wpie-list-wrapper .wpie-list-rows-table .wpie-list-row-actions .wpie-btn-save {
  width: 16px;
  height: 16px;
  background: url(../img/icon-save.svg) no-repeat 0 50%;
  background-size: contain;
  margin: 2px;
}
.wpie-list-wrapper .wpie-list-rows-table .wpie-list-row-actions {
  width: 7%;
  padding: 5px;
  text-align: right;
}

.wpie-list-wrapper.wpie-list-layout-compact
  .wpie-list-rows-table
  .wpie-list-row-actions {
  width: 20%;
}

/* Data table */
table.wpie-data-table {
  width: 30%;
  margin-top: 15px;
  border-collapse: collapse;
}
table.wpie-data-table-full {
  width: 100%;
}
table.wpie-data-table-half {
  width: 50%;
}
table.wpie-data-table-third {
  width: calc(100% / 3);
}
table.wpie-data-table thead tr {
  margin: 0 0 5px;
  background-color: #fff;
}
table.wpie-data-table thead tr > th {
  text-align: left;
  padding: 15px 10px;
  vertical-align: top;
}
table.wpie-data-table thead tr,
table.wpie-data-table tbody tr {
  margin: 0 0 5px;
  border: 1px solid #ddd !important;
  border-top-width: 0px !important;
  -webkit-transition: background-color 0.3s ease-in;
  -moz-transition: background-color 0.3s ease-in;
  -o-transition: background-color 0.3s ease-in;
  -ms-transition: background-color 0.3s ease-in;
  transition: background-color 0.3s ease-in;
}
table.wpie-data-table tbody tr td {
  min-height: 20px;
}
table.wpie-data-table tbody tr > th,
table.wpie-data-table tbody tr > td {
  text-align: left;
  padding: 15px 10px;
  vertical-align: top;
}
table.wpie-data-table tbody tr > .wpie-internal {
  font-style: italic;
}
table.wpie-data-table tbody tr.no-border {
  border: none !important;
}
table.wpie-data-table tbody tr.no-border > td,
table.wpie-data-table tbody tr.no-border > th {
  padding-left: 0;
}
table.wpie-data-table .automate-action {
  text-align: left;
}
/* scrollable data table */
table.wpie-data-table[class*="wpie-data-table-scroll"] tbody {
  overflow-y: auto;
  overflow-x: hidden;
  display: block;
}
table.wpie-data-table.wpie-data-table-scroll-200 tbody {
  height: 200px;
}
table.wpie-data-table.wpie-data-table-scroll-300 tbody {
  height: 300px;
}
table.wpie-data-table.wpie-data-table-scroll-400 tbody {
  height: 400px;
}
table.wpie-data-table.wpie-data-table-scroll-500 tbody {
  height: 500px;
}
table.wpie-data-table.wpie-data-table-scroll-600 tbody {
  height: 600px;
}
table.wpie-data-table[class*="wpie-data-table-scroll"] thead,
table.wpie-data-table[class*="wpie-data-table-scroll"] tbody tr {
  display: table;
  width: 100%;
  margin: 0;
}

/* Colorpicker */
.wrap .wp-picker-container * {
  box-sizing: initial;
}
.wp-picker-container {
  position: relative;
}
.wp-picker-container .wp-picker-holder {
  position: absolute;
  top: 28px;
  z-index: 2;
}
.form-table .wp-picker-container .colorpicker {
  height: auto;
  display: block;
  position: static;
  background: none;
}
/* Colorpicker inside a wpie list */
.wpie-list-wrapper .wp-picker-container .wp-color-result {
  margin: 0 6px 0;
  height: 26px;
}
.wpie-list-wrapper .wp-picker-container .wp-color-result::after {
  height: 26px;
  line-height: 26px;
}
.wpie-list-wrapper .wp-picker-container input.wp-color-picker[type="text"] {
  height: 20px;
}

@media screen and (max-width: 960px) {
  table.wpie-data-table {
    width: 100%;
  }
  .wpie-list-wrapper .wpie-list-rows-table {
    width: 100%;
  }
}
@media screen and (max-width: 782px) {
  table.wpie-data-table th,
  table.wpie-data-table td {
    display: table-cell;
  }
  .form-table > tbody > tr > th + td {
    padding-left: 0;
    padding-right: 0;
  }
}
