/**
 * All of the CSS for your admin-specific functionality should be
 * included in this file.
 */

main#main {
  min-height: calc(100vh - 50px);
}

a.tooltip-product-serial {
  position: relative;
  display: inline-block;
}

a.tooltip-product-serial .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 50%;
  margin-left: -60px;
  white-space: normal;
}

a.tooltip-product-serial:hover .tooltiptext {
  visibility: visible;
}

form[name=product-serial-search-form] {
  width: 100%;
  /*width: calc(100% - 50px);*/
  /*float: left*/
}

form[name=product-serial-search-form] input[type=search] {
  border-radius: 10px;
  width: calc(100% - 140px);
  margin-bottom: 10px;
  background: url(/wp-content/plugins/qr-product-authentication/public/img/search-icon.png) left 10px center no-repeat;
  background-size: 20px auto;
  padding-left: 40px;
  box-shadow: 0 0 10px rgb(0 0 0 / 10%);
  border: 0;
}

form[name=product-serial-search-form] input[type=submit].button {
  float: right;
  margin: 0 10px 10px !important;
}

form[name=product-serial-search-form] + button {
  /*display: inline-block;*/
  display: none;
  float: right;
  width: auto;
  padding: 10px 10px;
  height: auto;
  line-height: 1;
  margin-bottom: 10px;
}

form[name=product-serial-search-form] + button img {
  max-width: 20px;
}

form[name=product-serial-search-form] div.p-inputgroup span.p-button {
  padding: 10px 20px;
  border-radius: 10px;
}

/*button.qsr-dialog-scanner-button-camera {*/
/*  display: none;*/
/*}*/ /* was disabled */

/*.login-page .cleanlogin-container {*/
/*  max-width: none;*/
/*}*/ /* was disabled */

/*.login-page .cleanlogin-form label {*/
/*  text-align: left;*/
/*}*/ /* was disabled */

/*.login-page .cleanlogin-container {*/
/*  padding: 0;*/
/*  border: 0;*/
/*  box-shadow: none;*/
/*}*/ /* was disabled */

/*.login-page .ux-logo-link {*/
/*  padding: 0 !important;*/
/*  margin-bottom: 30px !important;*/
/*}*/ /* was disabled */

/*.login-page .cleanlogin-form-bottom {*/
/*  height: auto;*/
/*}*/ /* was disabled */

/*.login-page .cleanlogin-field-remember {*/
/*  margin-bottom: 0;*/
/*}*/ /* was disabled */

/*.login-page .cleanlogin-form input[type="submit"] {*/
/*  height: auto;*/
/*}*/ /* was disabled */

/*.login-page [class*=" bi-"]::before {*/
/*  line-height: 36px;*/
/*  vertical-align: top;*/
/*}*/ /* was disabled */

.product-serial-results {
  box-shadow: 0 0 10px rgb(0 0 0 / 10%);
  padding: 100px 30px;
  border-left: 30px solid var(--primary-color);
}

.product-serial-fail {
  box-shadow: 0 0 10px rgb(0 0 0 / 10%);
  padding: 50px 30px;
  border-left: 30px solid #ccc;
}

.product-serial-results .col.no-padding-bottom, .product-serial-fail .col.no-padding-bottom {
  padding-bottom: 0;
}

.product-serial-results h3 {
  font-size: 50px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.product-serial-results p {
  color: #999;
  margin-bottom: 0;
}

.product-serial-results p strong {
  color: #000;
}

.product-serial-results .product-serial-details {
  border-left: 1px solid rgba(0,0,0,0.2);
  padding-left: 30px !important;
}

.product-serial-results .product-serial-details .col {
  padding: 30px 15px !important;
}

.product-serial-results .product-serial-value a.button {
  padding: 10px;
  width: 100%;
}

.product-serial-results .product-serial-value a.button:hover {
  text-decoration: none;
}

.dataTables_scrollBody {
  overflow: visible !important;
}

table.dataTable td.action-col {
  text-align: center;
}

form.product-serial-filter input, form.product-serial-filter select {
  margin: 0;
  box-shadow: none;
}

form.product-serial-filter table td {
  vertical-align: middle;
}

.alert-success, .alert-warning {
  padding: 5px;
}

.alert-success a.button {
  margin: 0;
  margin-left: 10px;
}

table.dataTable tbody tr.even td {
  background: #f0f0f0;
}

.header-notice {
  position: fixed;
  background: #8dc63f;
  width: 100vw;
  height: auto;
  bottom: 0;
  left: 0;
  z-index: 999;
  padding: 10px;
  text-align: center;
  color: #FFF;
  border: 0;
  /*display: none;*/
}

.header-notice p {
  margin: 0;
}

.header-notice a {
  font-weight: 700;
  text-decoration: underline;
}

button.small-qr img {
  width: 20px;
  margin-right: 5px;
  margin-top: -3px;
  display: none;
}

button.small-qr.primary img, button.small-qr.success img, button.small-qr.secondary img {
  filter: invert(100);
}

td.no-break {
  word-break: keep-all;
}

.dataTables_wrapper {
  overflow: scroll;
}

body {
  max-width: 100vw;
  overflow-x: hidden;
}

main .alert {
  z-index: 1982303;
  margin-bottom: 0 !important;
  color: #FFF;
}

img.product-serial-qr {
  min-width: 180px;
  max-width: 100%;
}

form[name=edit-product-serial] select[readonly]
{
  pointer-events: none;
  opacity: 0.7;
}

.product-authentication {
  width: 50%
}

.product-authentication #qrscannerredirect .jss2 {
  width: 9em;
}


@media screen and (max-width: 849px) {

  .vproduct-serial-results .product-serial-details {
    border-left: 0;
  }

  .product-serial-results .product-serial-details .col {
    padding: 15px !important;
  }

  .product-authentication {
    width: 100%
  }

}


@media print {

  .button.success{
    display: none;
  }

  .product-serial-results .product-serial-details .col{
    padding-top: 10px !important;
    padding-bottom: 0px !important;
  }

  .product-serial-results .col.no-padding-bottom{
    width: 50% !important;
  }

  .small-12{
    flex-basis: unset !important;
  }

}
