/* THIS ARE ALL NEW EXTRA ELEMENTS BESIDE TWITTER BOOTSTRAP */
/* stylelint-disable property-no-vendor-prefix */
/* stylelint-disable selector-class-pattern */
/* stylelint-disable selector-id-pattern */
/* stylelint-disable number-max-precision */
/* stylelint-disable no-descending-specificity */

/* glow btn group */
.btn-group.large button.glow {
  padding: 6px 15px;
  font-size: 13px;
}

.btn-group.large i {
  font-size: 13px;
}

.btn-group .dropdown-menu > li > a {
  font-size: 12px;
}

.btn-group button.glow {
  float: left;
  padding: 5px 10px;
  font-family: 'Open sans', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  color: #313d4c;
  background: linear-gradient(to bottom, #fefefe 0%, #f7f7f7 100%);
  border: 1px solid #d0dde9;
  transition: color 0.1s linear;
}

.btn-group button.glow.large {
  font-size: 12px;
}

.btn-group button.glow:active,
.btn-group button.glow.active {
  color: #a8b5c7;
  box-shadow: 0 1px 0 rgb(0 0 0 / 20%) inset;
}

.btn-group button.glow:hover {
  color: #a8b5c7;
}

.btn-group button.glow.left {
  border-right: 0;
  border-radius: 4px 0 0 4px;
}

.btn-group button.glow.middle {
  border-right: 0;
}

.btn-group button.glow.right {
  border-radius: 0 4px 4px 0;
}

.btn-group > .btn.glow {
  float: left;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  color: #313d4c;
  border: 1px solid #d0dde9;
}

.btn-group > .btn.glow:hover {
  background: linear-gradient(to bottom, #fefefe 0%, #f7f7f7 100%);
}

.btn-group > .btn.glow.dropdown-toggle {
  padding: 6px 9px;
}

.btn-link.minimal {
  padding: 0;
  font-size: inherit;
  vertical-align: unset;
  text-decoration: underline;
}

/* FLAT BUTTONS */
.btn-flat {
  display: inline-block;
  padding: 7px 14px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
  vertical-align: middle;
  color: #fff;
  text-shadow: none;
  cursor: pointer;
  background: #4387bf;
  background-image: none;
  border: 1px solid #3883c0;
  border-radius: 4px;
  box-shadow: none;
  transition: all 0.1s linear;
}

.btn-flat [class^='icon-'],
.btn-flat [class*=' icon-'] {
  margin-right: 3px;
}

.btn-flat:active {
  background: #30628b;
  box-shadow: 0 2px 2px 0 rgb(0 0 0 / 30%) inset;
  opacity: 1;
}

label:has(input:focus-visible) {
  /* custom upload buttons */
  outline: 5px auto Highlight;
  outline: 5px auto -webkit-focus-ring-color;
}

label:has(input[type='file']:disabled),
.btn-flat[aria-disabled='true'],
.btn-flat:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn-flat:hover {
  color: #fff;
  text-decoration: none;
  opacity: 0.87;
}

.btn-flat.large {
  padding: 10px 16px;
  font-size: 13px;
}

.btn-flat.small {
  padding: 5px 9px;
  font-size: 11px;
}

.btn-flat.inverse {
  background: #343e4b;
  border: 1px solid #000;
}

.btn-flat.inverse:active {
  background: #000;
}

.btn-flat.gray {
  background: #7e91aa;
  border: 1px solid #888e97;
}

.btn-flat.gray:active {
  color: #f3f3f3;
  background: #5d6b7e;
}

.btn-flat.primary {
  background: #3b9ff3;
  border: 1px solid #3596e7;
}

.btn-flat.primary:active {
  color: #edf6fd;
  background: #2b76b6;
}

.btn-flat.success {
  font-weight: 600;
  text-shadow: 1px 1px 0 rgb(0 0 0 / 30%);
  background: #96bf48;
  border: 1px solid #7ea13d;
}

.btn-flat.white {
  color: #626263;
  background: #fff;
  border: 1px solid #d0dde9;
}

.btn-flat.white:hover {
  color: #000;
  border-color: #bbb;
}

.btn-flat.info {
  color: #fff;
  background: #5ba0a3;
  border-color: #5ba0a3;
}

.btn-flat.info:active {
  background: #30696c;
}

.btn-flat.danger {
  color: #fff;
  background: #b85e80;
  border-color: #b85e80;
}

.btn-flat.danger:active {
  background: #6e354a;
}

.btn-flat.icon {
  padding: 7px 10px;
  color: #1a2129;
  background: #e6ebf3;
  border: 1px solid #d8dde4;
  box-shadow:
    0 1px 0 0 rgb(255 255 255 / 40%) inset,
    0 1px 0 0 #ccc;
}

.btn-flat.icon:active {
  background: #e0e6ef;
  box-shadow: 0 2px 1px 0 rgb(0 0 0 / 30%) inset;
}

.btn-flat.icon i {
  font-size: 14px;
}

.btn-flat.icon.text,
.btn-flat.icon.text:active {
  background: none;
  border: none;
  box-shadow: none;
}

/* GLOW BUTTONS */
.btn-glow {
  display: inline-block;
  padding: 5px 10px;
  font-size: 13px;
  vertical-align: middle;
  color: #333;
  text-align: center;
  cursor: pointer;
  background: linear-gradient(to bottom, white 0%, #eef0f1 100%);
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  box-shadow:
    0 1px 0 0 rgb(255 255 255 / 20%) inset,
    0 1px 0 0 #ccc;
}

.btn-glow:hover {
  text-decoration: none;
  background: linear-gradient(to bottom, white 0%, #e6e6e6 100%);
}

.btn-glow.large {
  padding: 9px 16px;
  font-size: 14px;
}

.btn-glow.small {
  padding: 4px 7px;
  font-size: 11px;
}

.btn-glow:active,
.btn-glow.active {
  box-shadow: 0 1px 0 rgb(0 0 0 / 20%) inset !important;
}

.btn-glow [class^='icon-'],
.btn-glow [class*=' icon-'] {
  margin-right: 3px;
}

.btn-glow i.shuffle {
  top: 2px;
}

.btn-glow.inverse {
  color: #fff;
  background: linear-gradient(to bottom, #353f4c 0%, #222a33 100%);
  border-color: #000;
  box-shadow: inset 0 1px 0 0 rgb(255 255 255 / 50%);
}

.btn-glow.inverse:hover {
  background: linear-gradient(to bottom, #434c58 0%, #424a53 100%);
}

.btn-glow.primary {
  color: #fff;
  text-shadow: rgb(0 0 0 / 35%) 0 1px 0;
  background: linear-gradient(to bottom, #54b3ff 0%, #0078d9 100%);
  border-color: #2480c2;
  box-shadow: inset 0 1px 0 0 rgb(255 255 255 / 50%);
}

.btn-glow.primary:hover,
.btn-glow.primary:active {
  background: linear-gradient(to bottom, #389beb 0%, #0078d9 100%);
}

.btn-glow.primary:disabled {
  cursor: default;
  background: #81b7e2 !important;
  border: 0;
  box-shadow: none !important;
}

.btn-glow.success {
  color: #fff;
  text-shadow: rgb(0 0 0 / 24.7%) 0 1px 0;
  background: linear-gradient(to bottom, #a9d651 0%, #96bf48 100%);
  border: 1px solid #99bd56;
  box-shadow: inset 0 1px 0 0 rgb(255 255 255 / 50%);
}

input[readonly].form-control-plaintext {
  display: block;
  width: 100%;
  padding: 0.375rem 0;
  margin-bottom: 0;
  line-height: 1.5;
  color: var(--text-color);
  background-color: transparent;
  border: solid transparent;
  border-width: var(--bs-border-width, 1px) 0;
  box-shadow: none;
}

input[readonly].form-control-plaintext:focus {
  outline: 0;
}

/* Switch slider button */
.slider-frame {
  position: relative;
  display: inline-block;
  width: 67px;
  height: 23px;
  margin: 6px auto;
  background-color: #d5dde4;
  border-radius: 15px;
  box-shadow: inset 0 1px 5px 0 rgb(0 0 0 / 30%);
}

.slider-frame.info {
  background-color: rgb(92 160 163 / 90%);
}

.slider-frame.success {
  background-color: rgb(151 192 73 / 90%);
}

.slider-frame.primary {
  background-color: rgb(91 158 214 / 90%);
}

.slider-frame.danger {
  background-color: #d94774;
}

.slider-button {
  display: block;
  width: 37px;
  height: 23px;
  font-family: sans-serif;
  font-size: 11px;
  font-weight: bold;
  line-height: 23px;
  color: #000;
  text-align: center;
  cursor: pointer;
  background: #fff;
  border: 1px solid #d0dde9;
  border-radius: 9px;
  transition: all 0.25s ease-in-out;
}

.slider-button.on {
  margin-left: 29px;
}

/****
Slider using checkbox input {
****/
.toggle-slider {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: start;
}

.toggle-slider label {
  margin: 0;
}

.toggle-slider input[role='switch'] {
  position: relative;
  display: inline-block;
  width: 66px;
  height: 23px;
  margin: 0;
  vertical-align: text-bottom;
  appearance: none;
  cursor: pointer;
  background-color: #3596e7;
  border-radius: 15px;
  box-shadow: inset 0 1px 5px 0 rgb(0 0 0 / 30%);
}

.toggle-slider input[role='switch']::before {
  position: absolute;
  left: 0;
  width: 37px;
  height: 23px;
  font-family: sans-serif;
  font-size: 11px;
  font-weight: bold;
  line-height: 23px;
  text-align: center;
  content: 'NO';
  background: #fff;
  border: 1px solid #d0dde9;
  border-radius: 9px;
  transition: all 0.25s ease-in-out;
}

.toggle-slider input[role='switch']:checked::before {
  margin-left: 29px;
  content: 'YES';
}

.toggle-slider input[role='switch']:disabled {
  background-color: #d5dde4;
}

/****
}
****/

/* Custom Select */
.ui-select {
  position: relative;
  display: inline-block;
  width: 137px;
  min-width: 100px;
  height: 25px;
  min-height: 25px !important;
  margin-left: 0 !important;
  overflow: hidden;
  vertical-align: middle;
  background: url('../../img/select-bg.png'), linear-gradient(to bottom, white 0%, #f0f1f2 100%);
  background-repeat: no-repeat;
  background-position: 94%;
  border: 1px solid #cfdde8;
  border-radius: 5px;
}

.ui-select select {
  width: 135%;
  height: 21px;
  padding: 1px 30px 0 7px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 12px;
  line-height: inherit;
  color: #737f8d;
  text-shadow: 1px 1px 1px #fff;
  appearance: none;
  background: transparent;
  border: none;
}

/* jQuery UI Slider overrides */
.ui-slider {
  height: 7px;
  background: #edeeef;
  border: 1px solid #cfdde8;
  box-shadow: inset 0 -3px 7px 0 #fff;
}

.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default {
  top: -6px;
  width: 16px;
  height: 17px;
  outline: 0;
  background: url('../../img/jquery-ui/slider-handler.png') no-repeat;
  border: none;
}

.ui-slider.vertical-handler .ui-state-default {
  top: -8px;
  width: 11px;
  height: 21px;
  background: url('../../img/jquery-ui/slider-handler2.png') no-repeat;
}

.ui-slider .ui-slider-range {
  background: #4faeef;
  border: 1px solid #30a1ec;
  box-shadow: inset 0 0 3px 0 white;
}

.ui-slider.success .ui-slider-range {
  background: #96bf48;
  border: 1px solid #79af5e;
}

.ui-slider.info .ui-slider-range {
  background: #5ba0a3;
  border: 1px solid #5ba0a3;
}

/* Custom Dialog */
.pop-dialog {
  z-index: 10000;
  display: inline-block;
}

.pop-dialog.is-visible {
  display: block;
  animation: reveal 0.2s ease-out;
}

.pop-dialog .pointer {
  position: relative;
  top: -22px;

  /* pop-dialog with pointer to the right */
}

.pop-dialog .pointer .arrow,
.pop-dialog .pointer .arrow_border {
  position: absolute;
  top: 7px;
  left: 25px;
  z-index: 1002;
  cursor: pointer;
  border-color: transparent transparent #fff;
  border-style: solid;
  border-width: 8px;
}

.pop-dialog .pointer .arrow_border {
  top: 4px;
  left: 24px;
  z-index: 1001;
  border-color: transparent transparent #a1a1a1;
  border-width: 9px;
}

.pop-dialog .pointer.right .arrow {
  right: 25px;
  left: auto;
}

.pop-dialog .pointer.right .arrow_border {
  right: 24px;
  left: auto;
}

.pop-dialog .body {
  width: auto;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #a1a1a1;
  border-radius: 5px;
  box-shadow: 0 0 9px 0 #d6d6d6;
}

/* Dropdown with dialog */
.ui-dropdown {
  position: relative;
  display: inline-block;
}

.ui-dropdown .head {
  position: relative;
  padding: 4px 46px 4px 12px;
  font-size: 13px;
  color: #272727;
  text-shadow: 1px 1px 1px #fff;
  cursor: pointer;
  background: linear-gradient(to bottom, white 0%, #f8f8f8 47%, #f4f4f4 100%);
  border: 1px solid #dedede;
  border-radius: 4px;
  box-shadow: 1px 1px 4px 0 #efefef;
}

.ui-dropdown .head:hover,
.ui-dropdown .head.active {
  background: linear-gradient(to bottom, white 0%, #fdfdfd 47%, #f1f1f1 100%);
}

.ui-dropdown .head:active,
.ui-dropdown .head.active {
  box-shadow:
    inset 0 1px 3px rgb(0 0 0 / 15%),
    0 1px 2px rgb(0 0 0 / 5%);
}

.ui-dropdown .head i.arrow-down {
  position: absolute;
  top: 12px;
  right: 16px;
}

.ui-dropdown .dialog {
  position: absolute;
  top: 42px;
  right: 0;
  z-index: 100;
  display: none;
}

.ui-dropdown .dialog.is-visible {
  display: block;
  animation: reveal 0.2s ease-out;
}

.ui-dropdown .dialog .pointer {
  position: relative;
  top: -22px;
}

.ui-dropdown .dialog .pointer .arrow,
.ui-dropdown .dialog .pointer .arrow_border {
  position: absolute;
  top: 7px;
  right: 25px;
  z-index: 1002;
  cursor: pointer;
  border-color: transparent transparent #fff;
  border-style: solid;
  border-width: 8px;
}

.ui-dropdown .dialog .pointer .arrow_border {
  top: 4px;
  right: 24px;
  z-index: 1001;
  border-color: transparent transparent #a1a1a1;
  border-width: 9px;
}

.ui-dropdown .dialog .body {
  width: 440px;
  padding: 8px 10px;
  background-color: #fff;
  border: 1px solid #a1a1a1;
  border-radius: 5px;
  box-shadow: 0 0 9px 0 #d6d6d6;
}

.ui-dropdown .dialog .body p.title {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
}

.ui-dropdown .dialog .body form select {
  display: inline-block;
  width: 120px;
  height: 27px;
  margin-right: 2px;
  vertical-align: top;
}

.ui-dropdown .dialog .body form input[type='text'] {
  width: 90px;
  height: 17px;
  margin-right: 2px;
}

.ui-dropdown .dialog .body form a {
  vertical-align: top;
}

fieldset[disabled] .slider-frame.primary {
  background-color: #d5dde4;
}

.transaction-type-filter .filter-option-inner-inner {
  font-size: 13px;
}

.refund-disclaimer-div {
  display: inline-flex;
}

.refund-disclaimer-lbl {
  margin-left: 5px;
  font-weight: bold;
}

@keyframes reveal {
  0% {
    margin-left: -999px;
    opacity: 0;
  }

  1% {
    margin-left: 0;
    opacity: 0;
    transform: scale(0.98) translateY(-15px);
  }

  80% {
    transform: scale(1);
  }

  100% {
    transform: translateY(0);
  }
}
