/*
 * Description: Common css file for any Seravo Plugin page to apply
 * styles for postboxes, widgets etc.
 */

/* Dashboard widgets and postboxes */

.side-by-side-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 15px 0 15px 0;
}

.side-by-side-container.evenly {
  justify-content: space-evenly;
}

.side-by-side-container > div {
  padding: 0 10px 0 0;
}

.seravo-spinner-wrapper {
  display: inline-block;
}

.seravo-spinner {
  background: url('../images/spinner.gif') no-repeat;
  background-size: 20px 20px;
  vertical-align: middle;
  opacity: 0.7;
  filter: alpha(opacity=70);
  width: 20px;
  height: 20px;
  margin-right: -5px;
}

.postbox-ul {
  list-style-type: disc;
  padding-left: 18px;
}

.seravo-ajax-lazy-load pre {
  overflow: scroll;
  max-width: 100%;
  max-height: 30vh;
}

.seravo-postbox .seravo-nag {
  margin: -5px 0 10px 0;
  padding: 2px 30px 2px 12px;
  padding-right: 15px !important;
}

.seravo-nag table {
  width: 100%;
}

.seravo-nag .side-by-side-container {
  margin: 0 0 0 0;
  flex-wrap: nowrap;
  float: right;
}

div#low-disk-space.postbox,
div#php-warning-widget.postbox {
  border-left: 0.2em solid #e8ba1b;
}

.seravo-tooltip {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.success-box {
  padding: 10px;
  border: 1px solid#ccd0d4;
  border-left: solid 0.3em #038103;
  border-bottom: none;
}

.issue-box {
  padding: 10px;
  border: 1px solid#ccd0d4;
  border-left: solid 0.3em red;
  border-bottom: none;
}

.success-box .tooltip,
.issue-box .tooltip {
  padding-left: 0;
  margin-right: 5px;
}

.success-box .tooltip a,
.issue-box .tooltip a {
  color: inherit;
  text-decoration: underline;
}

/* Dashicon styles */
.dashicons.dashicons-external {
  line-height: 1.4;
  padding-left: 3px;
}

.dashicons.dashicons-no {
  line-height: 1.4;
}

/* Misc common elements */

p.success, h3.success {
  color: green !important;
}

p.failure, h3.failure {
  color: red !important;
}

p.warning, h3.warning {
  color: orange !important;
}

p.bold {
  font-weight: bold;
}

table.widefat {
  width: 100%;
  border: none;
}

.statistics {
  background: #44A1CB;
  color: #fff;
  padding: 3px;
  width: auto;
  display: inline-block;
  white-space: nowrap;
}

.wrap-anywhere {
  overflow-wrap: anywhere;
}

.seravo-container {
  overflow-y: scroll;
  overflow-x: hidden;
  max-height: 400px;
  white-space: pre-line;
  padding-right: 15px;
}

.seravo-container.large {
  max-height: 700px;
}

.result-table-wrapper {
  max-height: 30vh;
  overflow-y: scroll;
}

.result-table {
  width: 100%;
  table-layout: fixed;
}

.result-table th {
  text-align: left;
}

.seravo-label-textfield {
  padding-top: 5px;
}

.seravo-label-textfield label {
  margin-right: -10px;
}

.form-table .description td {
  padding: 0 15px 0 0;
}

.form-table input[type=text], .form-table input[type=email], .form-table input[type=number]  {
  width: 200px;
}

/* Email list */

.email-button {
  height: 20px;
  padding-left: 0 !important;
}

.email-button-content {
  overflow: hidden;
  display: inline-block;
  text-overflow: ellipsis;
  font-size: 13px !important;
  padding: 0 5px 0 10px;
}

.email-button .dashicons  {
  float: right;
}

/* Tooltip css */

.tooltip {
  position: relative;
  padding-left: 5px;
  content: "\f348";
}

.tooltip .tooltiptext {
  font-size: 0.6em;
  visibility: hidden;
  width: 130px;
  background-color: #555555;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
  line-height: 1.3;
  font-family: sans-serif;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.dashicons-info {
  color: #b1b2b3;
}

.seravo-ellipsis {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.arrow-box {
  font-size: 11px;
  padding: 3px;
}

/* Result wrapper components */

.seravo-ajax-fancy-form {
  margin-top: 2em;
}

.seravo-result-wrapper {
  -moz-transition: border 1s ease-in;
  -o-transition: border 1s ease-in;
  -webkit-transition: border 1s ease-in;
  background-color: white;
  border-left: solid 0.5em #e8ba1b;
  box-shadow: 1px 1px 1px 1px rgba(0,0,0,0.12);
  display: block;
  margin-top: 1em;
  max-width: 55em;
  min-height: 5em;
  overflow: hidden;
  transition: border 0.5s ease-in;
}

.seravo-result-wrapper-output {
  box-shadow: 0 1px 1px 1px rgba(0,0,0,0.2);
  display: none;
  margin: 1em;
  max-height: 30em;
  padding: 1em;
  overflow-y: scroll;
}

.seravo-result-wrapper-title {
  font-size: 15px;
  font-weight: bold;
  margin-top: 1.6em;
  margin-left: 0.5em;
  padding: 0 5px 7px 0;
  text-align: center;
}

.seravo-result-wrapper-title .seravo-spinner {
  margin: -2px -4px 0 0;
}

.seravo-result-wrapper-title > .seravo-spinner-wrapper > div {
  margin: 0;
}

.seravo-show-more-wrapper {
  -ms-transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  float: right;
  height: 1em;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  margin: 5px;
}

.seravo-show-more,
.seravo-show-more:hover,
.seravo-show-more:active,
.seravo-show-more:focus {
  box-shadow: none;
  color: inherit;
  text-decoration: none;
}
