/* ----------------- DEBUGGING RULES ----------------- */
.debug-bar-ndisplay, #debug-bar {
  max-height: 50px;
}
.debug-bar-ndisplay svg, #debug-bar svg {
  height: 45px;
}

/* ----------------- GENERIC RULES ----------------- */
@media (max-width: 1023px) {
  .hide_under_1024 {
    display: none;
  }
}
@media (min-width: 1024px) {
  .hide_eqandup_1024 {
    display: none;
  }
}
.float-right {
  float: right;
}

.border-none {
  border: none !important;
}

.width20pc {
  width: 20%;
}

.width100pc {
  width: 100%;
}

.width10pc {
  width: 10%;
}

.width65pc {
  width: 65%;
}

.max-width-800px {
  max-width: 800px;
}

.flex-basis-content {
  flex-basis: content;
}

.valign-middle {
  vertical-align: middle;
}

.valign-top {
  vertical-align: top;
}

.marginl4vw {
  margin-left: 4vw;
}

.marginl12vw {
  margin-left: 12vw;
}

.marginr4vw {
  margin-right: 4vw;
}

.no-bg-border-outline {
  background: inherit;
  border: none;
  outline: none;
}

/* ----------------- GLOBAL ELEMENTS ----------------- */
label {
  user-select: none;
}

th {
  text-align: center !important;
}

input[type=checkbox] {
  transform: scale(1.75);
  margin: 8px 6px;
}

input[type=radio] {
  transform: scale(1.75);
  margin: 8px 6px;
}

fieldset {
  padding-bottom: 12px;
  padding-left: 16px;
  padding-right: 16px;
  border-color: #888;
  border-style: inset;
  background-color: #fafafa;
  margin-bottom: 8px;
}
fieldset legend {
  font-size: 28px;
}

/* ----------------- BULMA OVERRIDES / ALTERNATIVES ----------------- */
div.control.has-icons-left .icon {
  color: #bbb;
  width: 2em;
  left: 6px;
}
div.control.has-icons-left svg {
  padding: 0px 5px;
}

.card .card-header-title {
  color: white;
}

.modal-background {
  opacity: 40%;
}

.table.is-narrow td, .table.is-narrow th {
  padding: 0.25em 0.25em;
}

.field-label.is-normal-all {
  padding-top: 0.375em;
}

/* ----------------- NAVBAR / HAMBURGER ----------------- */
.main-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  height: 80px;
  padding-left: 1%;
  padding-right: 1%;
}
.main-nav .logo-outer {
  align-self: center;
  margin-left: -6px;
  min-width: 200px;
}
.main-nav .logo-outer .logo-image {
  padding: 0 4px 0 4px;
  width: 60px;
  display: inline-block;
}
.main-nav .logo-outer .logo-text {
  display: inline-block;
}
.main-nav .logo-outer .logo-text .slogan {
  font-size: 9pt;
  color: #999;
}
.main-nav .nav-items {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}
.main-nav .nav-items a {
  font-family: "Red Hat Display";
  font-style: normal;
  font-weight: 500;
  font-size: 28px;
  color: #545454;
}
.main-nav .nav-items a:link {
  text-decoration: none;
}
.main-nav .nav-items .nav-list a {
  margin-right: 1.9vw;
}
.main-nav .nav-items .dropdown a {
  margin-right: 8px;
}
.main-nav .nav-items .dropdown-item {
  padding-top: 0;
  padding-bottom: 0;
}
.main-nav .nav-items .dropdown-item * {
  display: block;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  font-size: 1.1rem;
  font-family: "Red Hat Display";
  font-style: normal;
  font-weight: 500;
  color: #545454;
}
.main-nav .nav-items .dropdown-item *:hover {
  color: blue !important;
}
.main-nav .nav-items .login-info {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}
.main-nav .nav-items .login-info hr {
  width: 4px;
  height: 52px;
  margin-right: 15px;
  background: #545454;
}

.hamburger {
  position: absolute;
  right: 8px;
  top: 0;
  z-index: 9999;
}
.hamburger .dropdown-item {
  padding-top: 0;
  padding-bottom: 0;
}
.hamburger .dropdown-item * {
  display: block;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  font-size: 1.1rem;
  font-family: "Red Hat Display";
  font-style: normal;
  font-weight: 500;
  color: #545454;
}
.hamburger .dropdown-item *:hover {
  color: blue !important;
}

/* ----------------- CREATE ACCOUNT PAGE ----------------- */
.page-createaccount .field.is-horizontal .field-label .label {
  width: 13em;
}
.page-createaccount #button-address-container .field.is-grouped {
  justify-content: center !important;
}
.page-createaccount #button-address-container #button-address-manual {
  margin-right: 16px;
}

/* ----------------- LABELS PAGES ----------------- */
.page-labels\/edittest .card .card-content .section-header, .page-labels\/orderlabels .card .card-content .section-header {
  font-size: 130%;
  font-weight: bold;
}
.page-labels\/edittest .card .card-content .section-header2, .page-labels\/orderlabels .card .card-content .section-header2 {
  font-size: 120%;
}
.page-labels\/edittest .card .card-content .section-content, .page-labels\/orderlabels .card .card-content .section-content {
  padding: 4px 8px;
  word-wrap: break-word;
}
.page-labels\/edittest .invalid-input, .page-labels\/orderlabels .invalid-input {
  background-color: #FF6060;
}
.page-labels\/edittest .label-preview, .page-labels\/orderlabels .label-preview {
  margin-top: 16px;
  display: inline-block;
  text-align: left;
  border: 1px dashed gray;
  padding: 8px;
}
.page-labels\/edittest .section-container, .page-labels\/orderlabels .section-container {
  margin-bottom: 16px;
}
.page-labels\/edittest .dim-input, .page-labels\/orderlabels .dim-input {
  width: 3em;
}
.page-labels\/edittest .order-labels-tile-section1, .page-labels\/orderlabels .order-labels-tile-section1 {
  border: 3px solid #80FF8080;
  background-color: #D0FFD0;
  padding-bottom: 4px;
  margin-bottom: 16px;
}
.page-labels\/edittest .order-labels-tile-section2, .page-labels\/orderlabels .order-labels-tile-section2 {
  border: 3px solid #80FF8080;
  background-color: #D0FFD0;
  border-style: inset;
  margin-bottom: 2px;
}
.page-labels\/edittest .order-range-input, .page-labels\/orderlabels .order-range-input {
  width: 6em;
}

/* ----------------- VENDOR OPTIONS PAGE ----------------- */
.page-options\/vendoroptions .field.is-horizontal .field-label .label {
  width: 13em;
}
.page-options\/vendoroptions #times_validation_msg {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ff808080;
  color: black;
}
.page-options\/vendoroptions fieldset .field.has-addons:not(:first-child) {
  margin-left: 10px;
}

/* ----------------- ORDERS PAGE ----------------- */
.page-orders\/orders #outstanding_orders_details_level_buttons .onState, .page-orders\/orders #complete_orders_details_level_buttons .onState {
  background-color: #10F010 !important;
}
.page-orders\/orders #complete_orders_time_period_buttons .onState {
  background-color: #9090FF !important;
}
.page-orders\/orders .orderinfo {
  border: 3px outset #888888bb;
  margin-bottom: 2em;
}
@media only print {
  .page-orders\/orders .orderinfo {
    border: 1px outset #777;
  }
}
.page-orders\/orders .orderinfo .orderinfo-main {
  padding: min(1vw, 16px) min(1vw, 16px) 0 min(1vw, 16px);
}
@media only screen {
  .page-orders\/orders .orderinfo {
    background: #f9f9f9;
    background: linear-gradient(180deg, #f9f9f9 0%, #f1f1f1 100%);
    box-shadow: 2px 10px 20px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(0, 0, 0, 0.18);
  }
}
.page-orders\/orders .orderinfo .orderitems {
  border-top: 1px solid black;
  border-bottom: 1px solid black;
}
@media only screen {
  .page-orders\/orders .orderinfo .orderitems {
    background-color: #eeeeeeee;
  }
}
.page-orders\/orders .orderinfo .orderitems .orderitem-header {
  border-top: 1px solid black;
  border-bottom: 1px solid black;
}
.page-orders\/orders .orderinfo .orderitems .orderitem .orderitem-details .details {
  font-size: 95%;
}
.page-orders\/orders .orderinfo .orderitems .ordertotalitem .orderitem_main {
  border-top: 1px solid black;
  font-size: 120%;
}
.page-orders\/orders .orderinfo .orderitems .orderdeliveryitem .orderitem_main {
  border-top: 1px solid black;
}
.page-orders\/orders .orderinfo button {
  padding: min(2.4vw, 16px);
}
.page-orders\/orders .browser-os-select {
  padding: 6px;
  border: 1px solid black;
  margin: 16px 0;
}
.page-orders\/orders code {
  margin-bottom: 16px;
  padding: 16px 4px;
  color: blue;
  background: none;
  overflow: scroll;
  white-space: nowrap;
  display: block;
}

/* ----------------- PRODUCTS EDITOR PAGE ----------------- */
.page-products\/products .attrselector-all-container {
  margin-left: auto;
}
.page-products\/products .attrselector-icon-deselected {
  filter: grayscale(100%) contrast(0.2) brightness(1.5);
}
.page-products\/products .button.is-small .attrselector-icon {
  width: 22px !important;
  height: 22px !important;
  margin: 4px !important;
}
.page-products\/products .button.is-small .attrselector-icon-all {
  margin-left: auto !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 8px 0 16px !important;
}
.page-products\/products .button.is-small.attrselector-container {
  padding: 2px;
  width: 146px;
}
.page-products\/products .attrselector-icon {
  width: 32px !important;
  height: 32px !important;
  margin: 4px 6px !important;
}
.page-products\/products .attrselector-icon-all {
  margin-left: auto !important;
  width: 28px !important;
  height: 28px !important;
  margin: 0 8px 0 16px !important;
}
.page-products\/products .attrselector-container {
  padding: 2px;
  width: 256px;
}
.page-products\/products .remove-button {
  color: red;
  padding: 0;
  padding-right: 4px;
  border: none;
  background: none;
  box-shadow: none !important;
}
.page-products\/products .add-button {
  color: green;
}
.page-products\/products .move-button {
  color: blue;
}
.page-products\/products .create-itemset-button {
  color: orangered;
}
.page-products\/products .button-small {
  width: 36px;
  padding: 0;
}
.page-products\/products .productsitemsmodal-arrows, .page-products\/products .attributesmodal-arrows {
  margin: 16px 0 0 0;
}
.page-products\/products .productsitemsmodal-product-select-arrows, .page-products\/products .attributesmodal-group-select-arrows {
  margin-right: 16px;
}
.page-products\/products #pimodal-title-secname, .page-products\/products #amodal-title-typename {
  margin-bottom: 8px;
}
.page-products\/products .modal-upfile {
  display: inline-block;
}
.page-products\/products .attribute-price {
  width: 108px;
}
.page-products\/products .proded-section {
  padding-top: 6px;
  padding-bottom: 18px;
  padding-left: min(1vw, 20px);
  padding-right: 2px;
  border-color: #888;
  border-style: inset;
  background-color: #fafafa;
  margin-bottom: 8px;
}
.page-products\/products .proded-section legend {
  font-size: 20px;
}
.page-products\/products .buttonAttributeIcon {
  filter: drop-shadow(0 0 2px black);
}
.page-products\/products .optionAttributeIcon {
  width: 20px !important;
  height: 20px !important;
  display: inline !important;
  vertical-align: middle !important;
  margin-right: 4px;
}
.page-products\/products .products-modal-editor-hr {
  width: 100%;
  border: 1px solid blue;
  margin: 6px 0;
}
.page-products\/products .proded-cat {
  border: 1px inset blue;
}

/* ----------------- MANAGE USERS PAGE ----------------- */
.page-manageusers #user_details .field.is-horizontal .field-label {
  flex-grow: 0;
}
.page-manageusers #user_details .field.is-horizontal .field-label .label {
  width: 2em;
}
.page-manageusers #access .field.is-horizontal .field-label .label {
  width: 15em;
}
.page-manageusers .user {
  border-color: #888;
  border-style: inset;
  background-color: #fafafa;
  margin-bottom: 8px;
}
.page-manageusers .user .user_remove {
  margin-right: 8px;
  color: red;
  border-color: #777;
  border-radius: 50%;
}
.page-manageusers .user .user_name {
  font-weight: bold;
}
.page-manageusers .user .user_type_icon {
  display: flex;
}

#error_container {
  margin: 8px 0 8px 0;
}

.modal-card {
  opacity: 97%;
  border: 4px solid #4040f0e0;
  border-radius: 8px;
}

.th-tab {
  color: #AAAAEE;
  user-select: none;
  font-size: min(5.8vw, 32px);
  font-weight: bold;
}
.th-tab:hover {
  color: black;
}

.th-current-tab {
  color: #2020FF;
  pointer-events: none;
}

.th-hidden-tab {
  display: none;
}

.th-tab-l2 {
  font-size: min(5.2vw, 28px);
}

.upfile-thumb1 {
  width: 48px;
  height: 30px;
  border: 1px solid gray;
}

.upfile-thumb2 {
  width: 30px;
  height: 30px;
  border: 1px solid gray;
}

.upfile-thumb3 {
  width: 96px;
  height: 60px;
  border: 1px solid gray;
}

.upfile-thumb4 {
  width: 60px;
  height: 60px;
  border: 1px solid gray;
}

.upfile-thumb-img {
  width: 100%;
  height: 100%;
}

.onState {
  background-color: #FF8000 !important;
}

.iconBlue {
  color: #C0C0E0;
}
.iconBlue:hover[disabled], .iconBlue:focus[disabled], .iconBlue:active[disabled] {
  color: #C0C0E0 !important;
  box-shadow: none !important;
}
.iconBlue:hover:not([disabled]), .iconBlue:focus:not([disabled]), .iconBlue:active:not([disabled]) {
  color: #C0C0E0 !important;
  box-shadow: none !important;
  outline: 1px solid #aaa !important;
}
.iconBlue[disabled] {
  opacity: 0.8;
}

.onStateIconBlue {
  color: #3030FF;
}
.onStateIconBlue:hover[disabled], .onStateIconBlue:focus[disabled], .onStateIconBlue:active[disabled] {
  color: #3030FF !important;
  box-shadow: none !important;
}
.onStateIconBlue:hover:not([disabled]), .onStateIconBlue:focus:not([disabled]), .onStateIconBlue:active:not([disabled]) {
  color: #3030FF !important;
  box-shadow: none !important;
  outline: 1px solid #aaa !important;
}
.onStateIconBlue[disabled] {
  opacity: 0.7;
}

.button-filler-element {
  background-color: transparent;
  border-color: transparent;
  pointer-events: none;
}

.page_container {
  padding-top: 32px;
  max-width: 100%;
  min-height: 1080px;
}

.iconify-20x20 {
  width: 20px !important;
  height: 20px !important;
}

.iconify-24x24 {
  width: 24px !important;
  height: 24px !important;
}

.iconify-32x32 {
  width: 32px !important;
  height: 32px !important;
}

.iconify-40x40 {
  width: 40px !important;
  height: 40px !important;
}

.corner-label {
  position: absolute;
  left: 5px;
  z-index: 999;
  top: -12px;
  text-align: left;
  background-color: white;
  border: 1px solid white;
  font-size: 90%;
  font-weight: bold;
}
.corner-label.faded-label {
  color: #A0A0A0;
  font-size: 85%;
  transition: color 0.1s;
}

.corner-msg {
  position: absolute;
  left: 6px;
  z-index: 1000;
  bottom: -10px;
  text-align: left;
  background-color: white;
  font-size: 80%;
  font-weight: bold;
  color: red;
}

.main-prefs-button, .main-help-button {
  vertical-align: middle;
  margin-left: 16px;
  margin-bottom: 8px;
}

.main-help-button {
  border: none;
}

.med-modal {
  height: 90vh;
  max-height: 660px;
}

.tall-modal {
  height: 100vh;
  max-height: 740px;
}

td.cell-checkbox, th.cell-checkbox {
  width: 48px;
}

.inherited-value::placeholder {
  color: #1010aa !important;
}

.input.darker-border::not(.is-danger) {
  border-color: #888;
}
