/* backgound color and gradient */
html {
  background-color: LightCyan;
  background-image: linear-gradient(#E1F4FF 0%, #9CCEFC 60%, #2185D0 75%);
  background-image: linear-gradient(141deg, #E1F4FF 0%, #9CCEFC 55%, #2185D0 75%);
  background-position: center;
  background-attachment: fixed;

  height: 100%;
  width: 100%;
}

/* lock body with border padding and no scrolling */
body {
  min-height: 100%;
  min-width: 100%;
  height: 100%;
  width: 100%;
  background: none;
  padding: 2vh;
  overflow: hidden;
}

.posColor {
  color: #2C662D !important;
}

/* make text bold */
.bold, td.positive{
  font-weight: bold !important;
}

/* center element */
.cen {
  text-align: center;
}
/* align left */
.lefty {
  text-align: left;
}
/* align right */
.righty {
  text-align: right;
}

/* display inline block */
.blocky {
  display: inline-block;
}

/* hide elements */
.hidden {
  display: none !important;
}

/* position content off screen */
.offscreen {
  position: absolute;
  left: -999em;
  /* left: 10px;
  top: 10px;
  z-index: 999; */
}

/* logo positioning for pdf */
.absLogo {
  position: absolute !important;
  left: 2.5em;
  top: 2.5em;
}

/* double disable keeps same opacity as single disabled */
.disabled .disabled {
  opacity: 1 !important;
}

/* set single disabled opacity */
.disabled {
  opacity: 0.6 !important;
}

/* removes red background from error field */
.ui.form .fields.error .field .ui.dropdown,
.ui.form .fields.error .field .ui.dropdown .item,
.ui.form .field.error .ui.dropdown,
.ui.form .field.error .ui.dropdown .text,
.ui.form .field.error .ui.dropdown .item {
  background: none;
}

/* keep close button in same position of modal */
.ui.modal>.close {
  position: sticky;
  float: right;
  color: black;
  top: 1em;
}

.transDetails .menu {
  position: sticky;
  top: 1em;
  z-index: 2000;
}

/* center buttons in modals */
.modal>.actions {
  text-align: center !important;
}
/* no margin for long buttons */
.modal>.actions>.fluid {
  margin: 0 !important;
}

.modalMessage {
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  margin: 0 !important;
}

.modalMessage>.icon:not(.close) {
  font-size: 1.75em !important;
}

/* --------------------- portal --------------------- */

/* set height of portal segment to fill page */
.portalContent {
  height: 100%;
}

/* grid size of page minus border */
.portalGrid {
  height: 96vh;
  /* Fallback for browsers that do not support Custom Properties */
  height: calc(var(--vh, 1vh) * 96);
}

/* placeholder segment (in page filter) */
.phseg {
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 2vh !important;
  /* max-width: 680px !important; */
  display: block !important;
  position: relative !important;
  z-index: auto !important;
}

/* forces to fill full height */
.fillHeight {
  height: 100%;
  min-height: 0;
}
/* forces to fill full width */
.fillWidth {
  width: 100%;
}
/* width of pdf page content */
.pdfWidth {
  width: 97%;
}

/* label on top of everything */
.label {
  z-index: 800;
}

/* ribbon button on the left positioning */
.blue.ribbon {
  position: absolute !important;
  left: calc(-0.05rem - 1.2em) !important;
  padding-left: calc(0.05rem + 1.2em) !important;
}

/* nav ribbon positioning */
.nav.ribbon {
  position: absolute !important;
  left: calc(100% + 0.05rem + 1.2em) !important;
  padding-right: calc(0.05rem + 1.2em) !important;
}

.ribbon.mobileOnly {
  top: 5px !important;
}

/* --------------------- table --------------------- */
/* smaller padding on table header for mobile */
.ui.compact.table th {
  padding: 0.5em 0.7em !important;
}

.tableTop .ui.pagination,
.tableTop .ui.search,
.tableTop .reports,
.tableTop .ui.selection.dropdown,
.tableSearch {
  margin: 0 0.5em 0.5em 0 !important;
}

.noPadTop{
  padding-top: 0 !important;
}
.noPadBot{
  padding-bottom: 0 !important;
}

/* table header background color */
.transTable thead th,
.transTable thead {
  background-color: #9CCEFC !important;
}

/* table row alternating color background */
.transTable.ui.striped.table>tr:nth-child(2n),
.transTable.ui.striped.table tbody tr:nth-child(2n) {
  background-color: #E1F4FF;
}

/* remove top border from table */
.transTable {
  border-top: 0 !important;
}

/* set hover selection for table row */
.transTable.ui.striped.table.selectable>tr:hover,
.transTable.ui.striped.table.selectable tbody tr:hover {
  background-color: lightgrey;
  cursor: pointer;
}

/* extend search bar on mobile */
/* @media screen and (max-width: 400px) and (orientation: portrait) {
  .tableSearch>.ui.icon.input {
    width: 120%
  }
} */

/* smaller font for receipt slip popup */
.mySlip {
  font-size: 0.75em;
}

.shrinkFont {
  font-size: 0.8em;
}

.modalReceipt {
  text-align: center !important;
}

.modalReceipt .segment {
  display: inline-block !important;
  text-align: left !important;
}

/* smaller font for preformatted text */
pre {
  font-size: 0.9em;
}

/* float left or right */
.adjLeft {
  float: left;
}
.adjRight {
  float: right;
}

/* question mark cursor */
.tooltip {
  cursor: help;

}
/* pointer cursor */
.pointer {
  cursor: pointer;
}
/* display inline */
.dinline {
  display: inline-block;
}

.ui.icon.loader {
  margin: 0 0.25rem 0 0;
}

/* invisible icons */
.transparentIcon {
  color: transparent;
}

/* invisible label */
.sneakyLabel {
  border-color: transparent !important;
}

/* center dimmer */
.scrolling.dimmable>.dimmer+.dimmer {
  justify-content: center;
}

/* copy text label positioning */
.ui.floating.label.copy {
  top: 15%;
  right: 50%;
}

/* pointer cursor for click to copy */
.copy {
  cursor: pointer;
}

/* margin below element */
.spaceBelow {
  margin-bottom: 1em !important;
}
/* margin above element */
.spaceAbove {
  margin-top: 1em !important;
}
/* margin on all sides */
.spaceAround {
  margin: 1em !important;
}
/* margin left */
.spaceLeft {
  margin-left: 0.5em !important;
}
/* margin right */
.spaceRight {
  margin-right: 0.5em !important;
}

.pgin {
  visibility: hidden;
}

/* scrollable table container */
.tableContainer {
  min-height: 0;
  overflow: auto;
  height: 100%;
}

/* remove outline from active item */
.active.item {
  outline: none;
}

/* full width for transaction table */
.transTable.ui.selectable.table {
  width: 100%;
}

/* sticky headers for transaction table */
.transTable th {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 2;
}

/* only shows for printing */
.printOnly {
  display: none !important;
}


/* formatting for printing */
@media print {
  * {
    padding: 0 !important;
    margin: 0 !important;
    border-width: 1px !important;
    box-shadow: none !important;
    font-size: 13px !important;
    background: none !important;
  }

  body,
  h1,
  h2,
  h3,
  ol,
  ul,
  div {
    float: none !important;
    position: static !important;
    overflow: visible !important;
  }

  .dimmed *:not(.dimmer) {
    visibility: hidden !important;
    height: 0 !important;
  }

  .dimmer *:not(.noPrint) {
    visibility: visible !important;
    height: auto !important;
  }

  .raised.segment {
    border: 0 !important;
  }

  .basic.label {
    margin-right: 0.5em !important;
    padding: 0.2em !important;
    padding-left: 0.5em !important;
    padding-right: 0.5em !important;
  }

  .modalTable {
    margin-right: 1em !important;
    width: 100% !important;
    text-align: center;
    page-break-after: always !important;
  }

  .modalTable table {
    width: auto !important;
    display: inline-block !important;
  }

  .ui.grid.transDetails>.row>[class*="modalSlips"].column {
    width: 100vw !important;
  }

  .modalSlips {
    text-align: center;
    page-break-before: always !important;
    display: block !important;
  }

  .modalSlips table {
    width: auto !important;
    display: inline-block !important;
  }

  .modalSlips table td {
    vertical-align: top;
  }

  /* .transDetails {
    page-break-before: avoid !important;
    page-break-after: avoid !important;
    page-break-inside: always;
  } */

  .modalReceipt .segment {
    padding: 1em !important;
    padding-top: 2em !important;
    padding-bottom: 2em !important;
  }

  pre {
    font-size: 10px !important;
  }

  .modal {
    overflow: visible !important;
  }

  td {
    padding-left: 0.5em !important;
    padding-right: 0.5em !important;
  }

  .portalContent,
  .portalGrid {
    height: 100% !important;
  }
  
  .huge.header {
    font-size: 15px !important;
  }

  a:not(.exceptionLabel), .menu,
  .pagination, .input, .close,
  .transactionstatus, .reports,
  .dropdown, .checkbox, .button,
  .popup.visible, .noPrint.visible,
  .phseg, .noPrint {
    display: none !important;
  }

  .printOnly {
    display: inline-block !important;
  }
}

/* @media print and (orientation: portrait) {
  .icon,
  .transactionstatus,
  .authcode {
    display: none !important;
  }
} */

.cen {
  text-align: center !important;
}

.seg {
  padding: 2em;
}

.field {
  min-width: 30ch;
}
.input-range__slider {
  appearance: none;
  background: #3f51b5;
  border: 1px solid #3f51b5;
  border-radius: 100%;
  cursor: pointer;
  display: block;
  height: 1rem;
  margin-left: -0.5rem;
  margin-top: -0.65rem;
  outline: none;
  position: absolute;
  top: 50%;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  width: 1rem; }
  .input-range__slider:active {
    transform: scale(1.3); }
  .input-range__slider:focus {
    box-shadow: 0 0 0 5px rgba(63, 81, 181, 0.2); }
  .input-range--disabled .input-range__slider {
    background: #cccccc;
    border: 1px solid #cccccc;
    box-shadow: none;
    transform: none; }

.input-range__slider-container {
  transition: left 0.3s ease-out; }

.input-range__label {
  color: #aaaaaa;
  font-family: "Helvetica Neue", san-serif;
  font-size: 0.8rem;
  transform: translateZ(0);
  white-space: nowrap; }

.input-range__label--min,
.input-range__label--max {
  bottom: -1.4rem;
  position: absolute; }

.input-range__label--min {
  left: 0; }

.input-range__label--max {
  right: 0; }

.input-range__label--value {
  position: absolute;
  top: -1.8rem; }

.input-range__label-container {
  left: -50%;
  position: relative; }
  .input-range__label--max .input-range__label-container {
    left: 50%; }

.input-range__track {
  background: #eeeeee;
  border-radius: 0.3rem;
  cursor: pointer;
  display: block;
  height: 0.3rem;
  position: relative;
  transition: left 0.3s ease-out, width 0.3s ease-out; }
  .input-range--disabled .input-range__track {
    background: #eeeeee; }

.input-range__track--background {
  left: 0;
  margin-top: -0.15rem;
  position: absolute;
  right: 0;
  top: 50%; }

.input-range__track--active {
  background: #3f51b5; }

.input-range {
  height: 1rem;
  position: relative;
  width: 100%; }
