
/* Used -100px here as a workaround for iOS after spending about 3 hrs trying to identify the problem and fix.
   The problem is that iOS is reporting a smaller viewport width/height than it actually is when using all known
   DOM APIs and sizing mechanism. */
.md-datepicker-calendar-pane[is-mobile] {
  background-color: rgba(0,0,0,0.8);
  border: none;
  box-shadow: none;
  bottom: -100px;
  left: -100px;
  position: fixed;
  right: -100px;
  top: -100px;
}

.md-datepicker-calendar-pane[is-mobile] .md-datepicker-calendar {
  left: 50%;
  position: absolute;
  top: 50%;
}

.md-datepicker-calendar-pane .Close {
  background-color: #f0f0f0;
  border: none;
  font-family: 'Material Icons';
  padding: 8px 24px;
  text-align: right;
  width: 100%;
}

/* Used to convert text styled as headings in non-heading tags to heading text while keeping the styling unchanged.
   The styling of h2 wasn't updated because its usage was found to be largely inconsistent across Reference. */
h2.small {
  font-size: 14px;
}

/* NOTE: Ideally, the height should be 100%, but wasn't working in the context used probably due to
   flex layout, so using 32px for now until a solution is found... */
.vertical-divider {
  background-color: #aaa;
  display: inline-block;
  height: 32px;
  margin: 8px 12px;
  width: 1px;
}

.vAccordion-custom v-pane v-pane-header {
  margin: 0;
  padding: 20px;
}

.vAccordion-custom v-pane v-pane-header::after,
.vAccordion-custom v-pane v-pane-header::before {
  right: 20px;
}

.color-list-dark {
  background-color: rgba(0, 0, 0, 0.05);
}

.color-list-light {
  background-color: rgba(255, 255, 255, 0.05);
}

html.print-dialog .print-dialog-hide {
  display: none !important;
}

.material-icons.superscript {
  font-size: 0.9em;
  vertical-align: super;
}

.show-password-input-container {
  padding-right: 0px !important;
}

.show-password-icon {
  font-family: 'Material Icons';
  position: absolute;
  right: 7px !important;
  top: 7px !important;
  left: auto !important;
  outline: 0;
  font-size: 20px;
  color: rgba(0, 0, 0, 0.54);
}

.show-password-icon:hover {
  cursor: pointer;
}

/* angular-material not adhering to 'md-no-float' class for 'md-select', so adding custom selector here.
 * The rules and values are the same as what is done by angular-material when the input has focus.
 * Because angular material scales the text down by 25%, this selector shouldn't change that by default,
 * so an 'tp-no-scale' has to be added as well to use this selector and avoid affecting md's default behavior. */
md-input-container md-select.md-no-float.tp-no-scale label,
md-input-container md-select.md-no-float.tp-no-scale md-select-value.md-select-placeholder span {
  opacity: 1;
  -webkit-transform: translateY(-26px) translateX(-2px) !important; /* Using !important because its not easily possible to override MD's selector without more complexity */
  transform: translateY(-26px) translateX(-2px) !important;
}

md-input-container md-select.md-no-float.tp-no-scale md-select-value.md-select-placeholder .md-select-icon {
  -webkit-transform: translateY(-2px) translateX(0) !important;
  transform: translateY(-2px) translateX(0) !important;
}

table.tp-sortable thead tr th.sortable-column {
  cursor: pointer;
  user-select: none;
}

table.tp-sortable thead tr th.sortable-column span.sortable-indicator::after,
table.tp-sortable thead tr th.sortable-column span.sortable-indicator::before {
  font-size: 0.55em;
}

table.tp-sortable thead tr th.sortable-column span.sortable-indicator::after {
  position: relative;
  top: -7px;
}

table.tp-sortable thead tr th.sortable-column[data-sort="-1"] span.sortable-indicator::before {
  content: '\25BC';
}

table.tp-sortable thead tr th.sortable-column:not([data-sort]) span.sortable-indicator::before,
table.tp-sortable thead tr th.sortable-column[data-sort="0"] span.sortable-indicator::before {
  content: '\25BC';
}

table.tp-sortable thead tr th.sortable-column:not([data-sort]) span.sortable-indicator::after,
table.tp-sortable thead tr th.sortable-column[data-sort="0"] span.sortable-indicator::after {
  content: '\25B2';
  left: -9px;
}

table.tp-sortable thead tr th.sortable-column[data-sort="1"] span.sortable-indicator::after {
  content: '\25B2';
}

.booktrip-wrapper .tp-sortable .sort-section > label {
  text-transform: uppercase;
}

date-picker {
  display: inline-block;
  margin: 7px 2px;
}

/* Payment Profiles */
.processing-profile-creation-panel {
  transform: translateX(-50%) translateY(-50%);
  top: 50%;
  left: 50%;
}

.processing-profile-creation-panel md-dialog {
  opacity: 1;
  max-width: 100%;
}