:root {
  --c-monospace-font: 'JetBrains Mono', monospace;
}

html {
  font-family: 'Roboto';
  height: 100%;
  overflow-y: auto !important;
}

body {
  margin: 0;
  padding: 0;
  --v-not_applicable: #6f6f6f;
}

.not_applicable {
  color: var(--v-not_applicable) !important;
  font-weight: 700;
}

.container_app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.hide {
  display: none !important;
}

.pointer:hover {
  cursor: pointer;
}

.footer {
  flex-grow: 0;
  flex-shrink: 1;
}

/* -- side nav -- */

.the_side_nav .v-list__tile--active {
  background-color: var(--v-primary-base);
  color: white;
}

/* extra specificity to override vuetify hover style */
.the_side_nav .v-list .v-list__tile--active:hover,
.the_side_nav .v-list .v-list__tile--active:focus {
  background-color: var(--v-primary-lighten1);
  color: white;
}

.the_side_nav .v-list__tile--active i {
  color: white;
}

.the_side_nav .v-list__tile {
  font-size: 14px;
  font-weight: 500;
}

/* -- end side nav -- */

/* overriding vuetify container max-width including breakpoints */
main.content > .container {
  padding: 0 !important;
  max-width: 100% !important;
}

.container .container {
  max-width: 100% !important;
}

.wrapper {
  width: 100%;
  padding: 0;
}

/* hack to shrink the header of tables and what not */
.v-toolbar__content {
  height: 48px !important;
}
.v-text-field .v-input__control {
  min-height: 40px !important;
}

.container .layout > div {
  width: 100%;
}

.v-window__container--is-active {
  height: auto !important;
}

.manage-formDisplayToggle {
  position: relative !important;
}

.summary > div:nth-of-type(odd) {
  background-color: #f5f5f5;
}

.closure_form {
  margin: auto;
  width: 85%;
}

.close_header {
  position: relative;
}
.close_header .close_icon {
  position: absolute;
  right: 20px;
}
.close_header .close_icon:hover {
  cursor: pointer !important;
}

div.v-overlay--active {
  z-index: 11;
}

:deep(.saving_loader) {
  height: 25px !important;
  width: 25px !important;
}

.inventory_change_set_section {
  margin-top: 16px;
  margin-bottom: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
  padding-left: 16px;
  border-bottom: 3px solid var(--v-change_sets-base);
}

.inventory_change_set_section:last-child {
  border-bottom: 0;
}

.inventory_change_set_section:last-of-type {
  border-bottom: none;
}

.chips_container .mini_chip,
.mini_chip {
  background: white !important;
  border-radius: 50px;
  border: 2px solid;
  color: black;
  font-size: min(1vw, 16px);
  margin: 5px;
  max-width: 350px;
  padding: 0.5vw 1vw;
  text-align: left;
}

.mini_chip .chip_icon {
  font-size: 18px !important;
}

.entity-mini {
  align-items: center;
  display: grid;
  font-weight: 400;
  grid-column-gap: 10px;
  grid-row-gap: 0px;
  grid-template-columns: 50px minmax(auto, 275px) 2fr minmax(0, auto);
  grid-template-rows: auto;
  padding: 6px;
}
.entity-mini.hasNoActions {
  grid-template-columns: 50px minmax(auto, 275px) 2fr !important;
}
.entity-mini.no-entity-icon {
  grid-template-columns: minmax(auto, 275px) 2fr minmax(0, auto) !important;
}
.entity-mini.no-entity-icon.hasNoActions {
  grid-template-columns: minmax(auto, 275px) 2fr !important;
}
.entity-mini .entity-mini-icon {
  color: white;
  font-size: 36px !important;
  text-align: center;
}
.entity-mini :deep(.status-icon) {
  font-size: 20px;
}
.entity-mini .entity-mini-name {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
}

.entity-mini .entity-mini-name .mini-name {
  width: 100%;
  font-size: 28px !important;
}

.entity-mini .entity-mini-name small {
  margin-top: 5px;
}
.entity-mini .mini_actions {
  display: flex;
  justify-content: flex-end;
}
.entity-mini .mini_actions i.manage_icon {
  transform: none !important;
}
.entity-mini .mini_actions i.refresh_icon {
  transform: none !important;
}
.entity-mini .mini_actions i.refresh_icon:active {
  transform: rotate(180deg) !important;
}
.entity-mini .mini_actions .fas,
.entity-mini .mini_actions .far,
.entity-mini .mini_actions .fal,
.entity-mini .mini_actions .fad,
.entity-mini .mini_actions .fab,
.entity-mini .mini_actions .fa {
  transition: text-shadow 100ms ease-in-out, transform 200ms ease-in-out;
  font-size: 2em;
  margin-right: 12px;
}
.entity-mini .mini_actions .fas:hover,
.entity-mini .mini_actions .far:hover,
.entity-mini .mini_actions .fal:hover,
.entity-mini .mini_actions .fad:hover,
.entity-mini .mini_actions .fab:hover,
.entity-mini .mini_actions .fa:hover {
  text-shadow: 1px 2px 3px black;
  cursor: pointer !important;
}

/* new version of mini actions. the goal is to transition to this class */
.entity-mini .mini_actions_v2 {
  display: flex;
}

.entity-mini .mini_actions_v2 > div:first-of-type {
  margin-left: 0;
}

.entity-mini .mini_actions_v2 > div:not(.v-menu) {
  margin-left: 8px;
}

.entity-mini .mini_actions_v2 > div:last-of-type(even) {
  margin-left: 0;
}

.entity-mini .mini_actions_v2 .mini_actions_v2_button {
  margin: 0;
  padding: 0;
}

.entity-mini .mini_actions_v2 .mini_actions_v2_button:first-of-type {
  margin-right: 0;
}

.entity-mini .mini_actions_v2 .mini_actions_v2_button:last-of-type {
  margin-left: 0;
}

.entity-mini div.vertical-display-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  align-items: center;
  text-align: center;
}
.entity-mini div.vertical-display-items div.vertical-display-item div {
  text-align: center;
  margin: 0 15px;
}
.entity-mini div.vertical-display-items div.vertical-display-item div.vertical-display-item-value {
  font-size: 1.2em;
  font-weight: 600;
}
.entity-mini div.vertical-display-items div.vertical-display-item.init_status div {
  margin: 0 10px;
}

.status-icon-container {
  text-align: center;
}

.fa-sm {
  font-size: 0.875em !important;
}

.fa-brands,
.fa-duotone,
.fa-light,
.fa-regular,
.fa-solid,
.fa-thin,
.fa,
.fab,
.fad,
.fal,
.far,
.fas {
  font-size: 24px;
}

.status-icon.small {
  font-size: 4em;
}
.status-icon.approved {
  color: #4caf50;
}
.status-icon.rejected {
  color: #fc3d21;
}
.status-icon.open {
  color: #bdbdbd;
}
.status-icon.null {
  color: #bdbdbd;
}

.status-text {
  letter-spacing: 1px;
  font-size: 1.6rem;
  text-decoration-line: overline;
  background-color: white;
}
.status-text.small {
  font-size: 1rem;
}
.status-text.approved {
  color: #4caf50;
}
.status-text.rejected {
  color: #fc3d21;
}
.status-text.open {
  color: #bdbdbd;
}

.height-auto {
  height: auto !important;
}

.manage-formDisplayToggle {
  display: relative;
}

div.v-tabs__slider {
  height: 8px;
}

div.v-tabs__bar {
  margin-bottom: 10px;
}

div.v-tabs__div:hover {
  cursor: pointer;
}

.monospace_font {
  font-family: var(--c-monospace-font) !important;
}

.nowrap {
  white-space: nowrap;
}

.monospace_font.danger {
  font-size: 1.4em;
  letter-spacing: -3px;
  text-decoration: underline;
  color: var(--v-secondary-darken1);
  margin-right: 2px;
}

div.vertical-display-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  align-items: center;
  text-align: center;
}
div.vertical-display-items div.vertical-display-item div {
  text-align: center;
  margin: 0 15px;
}
div.vertical-display-items div.vertical-display-item div.vertical-display-item-value {
  font-size: 1.2em;
  font-weight: 600;
}

.shake {
  animation: shake 0.82s cubic-bezier(0.96, 0.07, 0.19, 0.97) both;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}
/* https://css-tricks.com/snippets/css/shake-css-keyframe-animation/ */
@keyframes shake {
  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }

  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

/* setting height of inputs to match selects input height */
.v-text-field--box > .v-input__control > .v-input__slot,
.v-text-field--full-width > .v-input__control > .v-input__slot,
.v-text-field--outline > .v-input__control > .v-input__slot {
  min-height: 60px !important;
}

/* this is to counter the extra height from the rule above */
.v-text-field__prefix {
  margin-top: 18px !important;
}

ul.list-style-none {
  list-style-type: none;
}

/* App Hardware Display Global Styles */
.ahd--wrapper {
  height: 100%;
  overflow-y: auto;
  position: relative;
}
.ahd--grid-container {
  grid-template-areas: 'one two three four five six';
  grid-auto-flow: column;
  grid-auto-rows: 100%;
  place-items: stretch;
  position: relative;
  height: 100%;
  width: 100%;
  display: grid;
  padding: 10px;
}
.ahd--label {
  text-align: right;
  margin-right: 10px;
  margin-bottom: 0px;
}
.ahd--solo-row {
  display: flex;
  width: 100%;
  margin-bottom: 5px;
}

.desc--label {
  margin-bottom: 0 !important;
  margin-right: 10px;
  width: 130px;
  text-align: right;
}
.ahd--grid-container .ahd--column-one {
  grid-area: one;
}
.ahd--grid-container .ahd--column-two {
  grid-area: two;
}
.ahd--grid-container .ahd--column-three {
  grid-area: three;
  margin-right: 25px;
  text-align: right;
  width: max-content;
}
.ahd--grid-container .ahd--column-four {
  grid-area: four;
}
.ahd--grid-container .ahd--column-five {
  grid-area: five;
}
.ahd--grid-container .ahd--column-six {
  grid-area: six;
  max-height: 180px;
}
.ahd--grid-container .ahd--column-solo {
  grid-area: solo;
}
.ahd--button-wrapper {
  float: right;
}
.ahd--grid-item {
  align-items: center;
  display: grid;
  grid-template-columns: 125px fit-content(100%);
  padding: 5px;
}
.side_by_side_icon {
  flex-direction: row !important;
}

.side_by_side_icon i {
  max-width: 40px;
  text-align: center;
}

.ahd--grid-item span,
.ahd--grid-item a {
  font-weight: 600;
}

.ahd--grid-item p {
  margin-bottom: 0 !important;
}

span.ahd--label {
  font-weight: normal;
}

.mini-button {
  padding: 0 8px;
  min-width: 0 !important;
}

.mini-button .v-btn__content {
  margin-left: 6px !important;
}

.cosmic_alert .entity-mini {
  font-size: 14px !important;
}

.cosmic_alert .entity-mini div {
  margin-top: 0px !important;
}

.text-1x {
  font-size: 1em;
}

.text-2x {
  font-size: 2em;
}

.text-decoration-underline {
  text-decoration: underline;
}

.v-chip.v-chip--outline.off {
  background: lightgrey !important;
}

.v-chip.v-chip--outline.off .v-chip__content :not(.v-avatar) {
  text-decoration: line-through;
}

/* -- Accessibility -- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.sr-only-focusable:active,
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
}

.breakdown-chart > .v-card__title {
  user-select: none;
}

/* SHIT  */
.vjs-tree__brackets {
  cursor: pointer;
}

.vjs-tree__brackets:hover {
  color: #1890ff;
}

.vjs-check-controller {
  position: absolute;
  left: 0;
}

.vjs-check-controller.is-checked .vjs-check-controller__inner {
  background-color: #1890ff;
  border-color: #0076e4;
}

.vjs-check-controller.is-checked .vjs-check-controller__inner.is-checkbox:after {
  transform: rotate(45deg) scaleY(1);
}

.vjs-check-controller.is-checked .vjs-check-controller__inner.is-radio:after {
  transform: translate(-50%, -50%) scale(1);
}

.vjs-check-controller .vjs-check-controller__inner {
  display: inline-block;
  position: relative;
  border: 1px solid #bfcbd9;
  border-radius: 2px;
  vertical-align: middle;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  background-color: #fff;
  z-index: 1;
  cursor: pointer;
  transition: border-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46),
    background-color 0.25s cubic-bezier(0.71, -0.46, 0.29, 1.46);
}

.vjs-check-controller .vjs-check-controller__inner:after {
  box-sizing: content-box;
  content: '';
  border: 2px solid #fff;
  border-left: 0;
  border-top: 0;
  height: 8px;
  left: 4px;
  position: absolute;
  top: 1px;
  transform: rotate(45deg) scaleY(0);
  width: 4px;
  transition: transform 0.15s cubic-bezier(0.71, -0.46, 0.88, 0.6) 0.05s;
  transform-origin: center;
}

.vjs-check-controller .vjs-check-controller__inner.is-radio {
  border-radius: 100%;
}

.vjs-check-controller .vjs-check-controller__inner.is-radio:after {
  border-radius: 100%;
  height: 4px;
  background-color: #fff;
  left: 50%;
  top: 50%;
}

.vjs-check-controller .vjs-check-controller__original {
  opacity: 0;
  outline: none;
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
}

.vjs-tree__node {
  display: flex;
  position: relative;
}

.vjs-tree__node.has-selector {
  padding-left: 30px;
}

.vjs-tree__node.is-highlight,
.vjs-tree__node:hover {
  background-color: #e6f7ff;
}

.vjs-tree__node .vjs-tree__indent {
  flex: 0 0 1em;
}

.vjs-tree__node .vjs-tree__indent.has-line {
  border-left: 1px dashed #bfcbd9;
}

.vjs-comment {
  color: #bfcbd9;
}

.vjs-value__null {
  color: #ff4949;
}

.vjs-value__boolean,
.vjs-value__number {
  color: #1d8ce0;
}

.vjs-value__string {
  color: #4d9b70;
}

.vjs-tree {
  font-family: Monaco, Menlo, Consolas, Bitstream Vera Sans Mono, monospace;
  font-size: 14px;
}

.vjs-tree.is-virtual {
  overflow: auto;
}

.vjs-tree.is-virtual .vjs-tree__node {
  white-space: nowrap;
}
