/**
* Miscellaneous
**/
.ptp-editor-required {
  box-shadow: 0 0 0 1px red;
}

/**
* Metadata Editor
**/
.ptp-metadata-editor {
  width: 100%;
  height: 2.25em;
  position: relative;
  cursor: pointer;
  border-radius: 4px;
  transition: box-shadow 0.45s;
  display: flex;
}

.ptp-metadata-editor .ptp-metadata-editor-button {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  transition: border-color 0.45s ease-in-out;
  z-index: 12;
}

.ptp-metadata-editor .ptp-metadata-editor-button.disabled {
  background-color: #ddd;
  cursor: default;
}

.ptp-metadata-editor .ptp-metadata-editor-button.disabled .fas {
  color: #888;
}

.ptp-metadata-editor .ptp-metadata-editor-button .fas {
  font-size: 1.25rem;
  vertical-align: middle;
}

.ptp-metadata-editor .ptp-metadata-editor-button .fas.fa-arrows-h {
  font-size: 1.5rem;
}

.ptp-metadata-editor.focus {
  box-shadow: 0 0 5px #999;
}

.ptp-metadata-editor.focus .ptp-editable-select-container {
  box-shadow: none;
}

.ptp-metadata-editor.focus .ptp-metadata-editor-button {
  border-right-color: #999;
  border-top-color: #999;
  border-bottom-color: #999;
}

.ptp-metadata-editor.focus input,
.ptp-metadata-editor.focus label,
.ptp-metadata-editor.focus select,
.ptp-metadata-editor.focus select:hover {
  background-color: #fafafa;
  border-color: #999 #ccc #999 #999 !important;
}

.ptp-metadata-editor.focus.scope-hidden input,
.ptp-metadata-editor.focus.scope-hidden label,
.ptp-metadata-editor.focus.scope-hidden select,
.ptp-metadata-editor.focus.scope-hidden select:hover {
  border-right-color: #999 !important;
}

.ptp-metadata-editor input,
.ptp-metadata-editor label,
.ptp-metadata-editor select {
  transition: border-color 0.45s ease-in-out;
}

.ptp-metadata-editor.scope-hidden input:not(.ptp-editable-select-input),
.ptp-metadata-editor.scope-hidden label,
.ptp-metadata-editor.scope-hidden select {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.ptp-metadata-editor label {
  width: 100%;
  height: 2.5em;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ptp-metadata-editor select {
  background-color: #fff;
  cursor: pointer;
  margin: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.ptp-metadata-editor select[disabled] {
  background-color: #ddd;
  cursor: default;
}

.ptp-metadata-editor select:hover:not([disabled]) {
  background-color: #fff;
  border: 1px solid #ccc;
}

.ptp-metadata-editor select:focus {
  outline: none;
  box-shadow: none;
  border-right-color: #ccc;
}

.ptp-metadata-editor input {
  margin: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.ptp-metadata-editor input:focus {
  box-shadow: none;
  border-right-color: #ccc;
}

.ptp-metadata-editor input[type="button"] {
  background-color: #f2f2f2;
}

.ptp-metadata-editor input[type="button"]:hover {
  border-color: #ccc;
}

.ptp-metadata-editor-input-container {
  width: 100%;
  max-width: calc(100% - 2.5rem);
  flex-grow: 2;
}

.ptp-metadata-editor.scope-hidden .ptp-metadata-editor-input-container {
  max-width: 100%;
}

.ptp-metadata-editor-button-container {
  width: 2.5rem;
  min-width: 2.5rem;
  flex-basis: 2.5rem;
}

.ptp-metadata-editor.scope-hidden .ptp-metadata-editor-button-container {
  display: none;
}

.ptp-metadata-editor-clear {
  width: 2.5em;
  height: 2.25em;
  position: absolute;
  top: 0;
  right: 0;
  text-align: center;
  color: #f00;
  background: #f2f2f2;
  border: 1px solid #ccc;
  border-radius: 4px;
  z-index: 11;
}

.ptp-metadata-editor-clear .fas.fa-times-circle {
  font-size: 24px;
  line-height: 2.3125rem;
}

.ptp-metadata-editor-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
}

.ptp-metadata-editor-modal {
  width: 50vw;
  height: 60vh;
}

.ptp-metadata-editor-modal .modal-header .fas {
  font-size: 1.5rem;
}

.ptp-metadata-editor-modal .modal-header .fas.fa-question-circle {
  position: absolute;
  top: 0.625rem;
  left: 1.375rem;
}

.ptp-metadata-editor-modal .modal-title {
  font-size: 1.4rem;
  font-weight: bold;
  text-align: center;
}

.ptp-metadata-editor-modal .modal-description {
  margin: 0;
  text-align: center;
}

.ptp-metadata-editor-modal .modal-clipboard {
  float: left;
}

.ptp-metadata-editor-modal .modal-clipboard .fas {
  font-size: 1.75rem;
}

.ptp-metadata-editor-modal .modal-clipboard .fa-copy {
  color: #000;
}

.ptp-metadata-editor-modal .modal-clipboard .fa-paste {
  color: #f9c425;
}

@media only screen and (max-width: 40em) {
  /* Small Screens */
  .ptp-metadata-editor-modal {
    width: 100vw;
    height: 100vh;
  }
}

@media only screen and (min-width: 40.063em) and (max-width: 64em) {
  /* Mediumn Screens */
  .ptp-metadata-editor-modal {
    width: 60%;
    min-height: 65%;
  }
}

/**
* Dimension Editor
**/
.ptp-dimension-editor {
  width: 100%;
  height: 2.25rem;
  color: rgba(0, 0, 0, 0.75);
  background-color: #fafafa;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
  font-size: 0.875rem;
  font-family: Roboto, Arial, sans-serif;
}

.ptp-dimension-editor.button-style {
  color: #fff;
  background-color: #2a93cc;
}

.ptp-dimension-editor.button-style:hover {
  background-color: #007095;
}

.ptp-dimension-editor:hover {
  background-color: #f3f3f3;
  border-color: #999;
}

.ptp-dimension-editor:focus {
  outline: none;
}

.ptp-dimension-editor-modal {
  width: 50vw;
  height: 60vh;
  transition: all 0.25s;
}

.ptp-dimension-editor-modal .modal-title {
  font-size: 1.4rem;
  font-weight: bold;
  text-align: center;
}

.ptp-dimension-editor-modal .modal-header .fas {
  font-size: 1.5rem;
}

.ptp-dimension-editor-modal .modal-header .fas.fa-question-circle {
  position: absolute;
  top: 0.625rem;
  left: 1.375rem;
}

.ptp-dimension-editor-modal .modal-header .fas.resize-reveal-modal {
  position: absolute;
  top: 0.625rem;
  right: 1.375rem;
  margin-right: 1.28571429em;
  color: #aaaaaa;
  cursor: pointer;
}

.ptp-dimension-editor-modal .modal-header .fas.resize-reveal-modal:hover {
  color: #383838;
}

.ptp-dimension-editor-modal .ptp-dimension-editor-select-column {
  display: flex;
  flex-direction: column;
}

.ptp-dimension-editor-modal .ptp-dimension-editor-select-container {
  flex-grow: 2;
  background-color: #fafafa;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: auto;
}

.ptp-dimension-editor-modal .ptp-dimension-editor-table,
.ptp-dimension-editor-modal .ptp-dimension-editor-select {
  transition: height 0.25s;
}

.ptp-dimension-editor-modal .ptp-dimension-editor-select .columns {
  height: 100%;
}

.ptp-dimension-editor-modal .ptp-dimension-editor-select label {
  cursor: pointer;
}

.ptp-dimension-editor-modal .ptp-dimension-editor-select .select-text-filter {
  margin-bottom: 2px;
}

.ptp-dimension-editor-modal .ptp-dimension-editor-select select {
  width: auto;
  min-width: 100%;
  height: auto;
  border: none;
}

.ptp-dimension-editor-modal .ptp-dimension-editor-select select:focus,
.ptp-dimension-editor-modal .ptp-dimension-editor-select select:hover {
  outline: none;
  border: none;
  box-shadow: none;
  background-color: #fafafa;
}

.ptp-dimension-editor-modal .ptp-dimension-editor-select .button-group {
  position: relative;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
}

.ptp-dimension-editor-modal .ptp-dimension-editor-select .button-group li {
  margin-bottom: 5px;
}

.ptp-dimension-editor-modal .ptp-dimension-editor-select .button-group a {
  height: 2.3125rem;
  padding: 0.65rem;
}

.ptp-dimension-editor-modal .ptp-dimension-editor-select .button-group a .fas {
  position: relative;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
}

.ptp-dimension-editor-modal
  .ptp-dimension-editor-select
  .button-group
  a
  .fa-caret-left,
.ptp-dimension-editor-modal
  .ptp-dimension-editor-select
  .button-group
  a
  .fa-caret-right {
  font-size: 1.5rem;
}

@media only screen and (max-width: 40em) {
  /* Small Screens */
  .ptp-dimension-editor-modal {
    width: 100vw;
    height: 100vh;
  }
}

@media only screen and (min-width: 40.063em) and (max-width: 64em) {
  /* Mediumn Screens */
  .ptp-dimension-editor-modal {
    width: 60%;
    min-height: 65%;
  }
}

/**
* Tri-State Checkbox
**/
.ptp-tristate-checkbox-label {
  height: 2.3125rem;
  padding: 0.5rem;
  text-align: center;
  border: 1px solid #ccc;
}

.ptp-tristate-checkbox-label.disabled {
  background-color: #ddd;
  cursor: default;
}

.ptp-tristate-checkbox-label input {
  cursor: pointer;
  margin: 3px;
  /* oversized checkboxes */
  -ms-transform: scale(1.5); /* IE */
  -moz-transform: scale(1.5); /* FF */
  -webkit-transform: scale(1.5); /* Safari and Chrome */
  -o-transform: scale(1.5); /* Opera */
}

.triStateChkLbl {
  text-align: center;
  cursor: auto;
}

.triStateChkLbl input.triStateChk {
  margin: 0;
  vertical-align: middle;
  /* oversized checkboxes */
  -ms-transform: scale(1.5); /* IE */
  -moz-transform: scale(1.5); /* FF */
  -webkit-transform: scale(1.5); /* Safari and Chrome */
  -o-transform: scale(1.5); /* Opera */
}

/**
* Editable Select
**/
.ptp-editable-select-container {
  width: 100%;
  height: 2.3125rem;
  position: relative;
  border-radius: 4px;
}

.ptp-editable-select-container.focus {
  box-shadow: 0 0 5px #999;
}

.ptp-editable-select-container .ptp-editable-select {
  height: 100%;
  position: absolute;
  z-index: 1;
  padding-right: 2.5rem;
  background-position-x: calc(100% - 0.5rem);
  transition: border-color 0.45s ease-in-out;
}

.ptp-editable-select-container.focus .ptp-editable-select {
  box-shadow: none;
  border-color: #999;
}

.ptp-editable-select-container .ptp-editable-select-input {
  height: 100%;
  width: calc(100% - 2.5rem);
  position: absolute;
  z-index: 2;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  transition: border-color 0.45s ease-in-out;
}

.ptp-editable-select-container.focus .ptp-editable-select-input {
  box-shadow: none;
  border-color: #999;
}

.ptp-editable-select-container .ptp-editable-select-filter {
  width: 100%;
  max-height: 240px;
  position: absolute;
  top: 100%;
  z-index: 13;
  margin: 0;
  background: #fff;
  font-size: 0.875rem;
  border: 1px solid #ccc;
  list-style-type: none;
  overflow: auto;
  display: none;
}

.ptp-editable-select-container .ptp-editable-select-filter li {
  padding-left: 0.55rem;
}

.ptp-editable-select-container
  .ptp-editable-select-filter
  li:not(.ptp-not-found):hover {
  background: #328efe;
  color: #fff;
}

.ptp-editable-select-container .ptp-editable-select-filter li.ptp-not-found {
  font-style: italic;
  cursor: default;
}

/**
* Flowday Picker
**/
.ptp-flowday-picker-label {
  min-width: 115px;
  display: inline-block;
  cursor: pointer;
  position: relative;
}

.ptp-flowday-picker-label input[type="text"].ptp-flowday-picker {
  display: inline-block;
  border-radius: 4px;
  cursor: pointer;
}

.ptp-flowday-picker-label input[type="text"].ptp-flowday-picker[disabled],
.ptp-flowday-picker-label
  input[type="text"].ptp-flowday-picker[disabled]
  + .fa-calendar {
  background-color: hsl(0, 0%, 96%);
  color: #383838;
  cursor: default;
}

.ptp-flowday-picker-label
  input[type="text"].ptp-flowday-picker.no-icon
  + .fa-calendar {
  display: none;
}

.ptp-flowday-picker-label .fa-calendar {
  color: #2a93cc;
  background: #fff;
  font-size: 16px;
  padding-top: 2px;
  cursor: pointer;
  position: absolute;
  right: 0.5em;
  top: 0.35em;
}

/**
* Override Grid
**/
.ptp-override-grid-wrap {
  height: 100%;
}

.ptp-override-grid-wrap .ui-iggrid-headertable .ui-iggrid-headertext .fas {
  display: inline;
  margin-left: 0.5rem;
}

.ptp-override-grid-wrap .ui-iggrid-headertable .ui-iggrid-multiheader-cell {
  background-color: #383838;
  border-left: 1px solid #fff;
  border-bottom: 1px solid #fff;
}

.ptp-override-grid-wrap
  .ui-iggrid-headertable
  .ui-iggrid-header:not([rowspan]) {
  border-left: 1px solid #fff;
}

.ptp-override-grid-wrap .ui-iggrid-headertable .ui-iggrid-filterrow {
  display: none; /* Remove ability for user to manually filter rows */
}

.ptp-override-grid .ui-iggrid-modifiedrecord {
  background-color: #fff;
}

.ptp-override-grid
  .ui-ig-altrecord.ui-iggrid-altrecord.ui-iggrid-modifiedrecord {
  background-color: #dadada;
}

.ptp-override-grid .ui-iggrid-modifiedrecord > td,
.ptp-override-grid
  .ui-ig-altrecord.ui-iggrid-altrecord.ui-iggrid-modifiedrecord
  > td {
  color: #222;
  font-style: normal;
  webkit-animation-duration: 0s;
  moz-animation-duration: 0s;
  o-animation-duration: 0s;
  animation-duration: 0s;
}

.ptp-override-grid .ui-iggrid-modifiedrecord > td.col-itvl-modified,
.ptp-override-grid
  .ui-ig-altrecord.ui-iggrid-altrecord.ui-iggrid-modifiedrecord
  > td.col-itvl-modified {
  color: #fff;
  font-style: italic;
  background-color: #27c335;
}

.ptp-override-grid .col-no-padding {
  padding: 0;
}

.ptp-override-grid .col-no-padding.col-itvl-required {
  outline: 1px solid red;
}

.ptp-override-grid .col-data-point {
  width: 100%;
  height: 100%;
  padding: 4px 13px 4px 4px;
}

.ptp-override-grid .col-data-point.col-not-applicable {
  background-color: darkgray;
}

.ptp-override-grid-header .ptp-override-grid-periodicity-select {
  width: 35%;
  margin-left: 0.5rem;
}

.override-editor-wrap {
}

.override-editor-wrap .override-editor-overlay {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 10;
  color: #000;
  padding: 6px;
  font-style: italic;
}

.override-editor-wrap .override-editor-value-input {
  width: 80%;
  height: 100%;
  display: inline-block;
  border-radius: 0;
}

.override-editor-wrap .override-editor-value-input[disabled] {
  background-color: #ddd !important;
}

.override-editor-wrap .override-editor-block-input {
  width: 20%;
  cursor: pointer;
  vertical-align: middle;
  /* oversized checkboxes */
  -ms-transform: scale(1.5); /* IE */
  -moz-transform: scale(1.5); /* FF */
  -webkit-transform: scale(1.5); /* Safari and Chrome */
  -o-transform: scale(1.5); /* Opera */
  display: none;
}

.override-editor-wrap .override-editor-block-icon {
  width: 20%;
  height: 100%;
  float: right;
  color: #999;
  font-size: 1.5rem;
  line-height: normal;
  text-align: center;
  padding-top: 0.1rem;
  background: #fff;
  cursor: pointer;
}

.override-editor-wrap .override-editor-block-icon:hover,
.override-editor-wrap
  .override-editor-value-input[disabled]
  + .override-editor-block-icon {
  color: #f00;
}
