.app-header-wrapper {
  border-bottom: 1px solid var(--app-red);
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  align-self: stretch;
}

.logos {
  justify-content: space-between !important;
  display: flex !important;
  align-self: stretch;
  align-items: center;
  flex-direction: row;
}

.cornerstone-logo {
  cursor: pointer;
  margin-left: 3rem !important;
  margin-top: 1rem !important;
  flex: 1 1 auto;
  flex-direction: column;
  align-self: stretch;
  display: flex;
}

.app-header-logo {
  height: 40px;
  cursor: pointer;
  margin-left: auto !important;
  margin-right: 3rem !important;
  margin-top: 1rem !important;
  float: right !important;
  vertical-align: middle;
}

#app-title {
  text-align:center !important;
  font-size: 2rem;
  font-weight: 500;
}




#presentation-designer {
  font-family: "GothamHTF-book";
  font-size: 20px;
  user-select: none;
  display: flex;
  flex-flow: column nowrap;
  height: 100vh !important;
}

#main_interface {
  padding: .5rem !important;
  flex-grow: 1 !important;
  display: flex;
  flex-flow: column nowrap;

}

/*  Main elements in window */
/* Header */
.header-footer {
  height: 26px;
  border: none;
  background: var(--app-light-gray);
}

#header {
  /* font-family: "GothamHTF-book"; */
  font-weight: 700;
  color: var(--app-dark-gray);
  font-size: 22px;
  text-align: center;
  min-height: 38px;
  display: flex;
}

#project-name {
  flex-basis: 80%;
  order: -1;
  padding: 6px 0px;
}

#headeredit {
  text-align: center;
  /* font-family: "GothamHTF-book" !important; */
  font-weight: 700;
  color: var(--app-dark-gray);
  font-size: 22px !important;
  min-width: 90%;
  padding: 0 !important;
  box-shadow: none;
  outline: none;
  flex-basis: 95%;
  order: -1;
}

/* Control bar */
.controlbar {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  border: 1px solid #000;
  border-style: solid none solid none;
  /* font-family: "GothamHTF-book"; */
  font-weight: 700;
}

.barbutton {
  border: none;
  padding: 0px 6px;
  background-color: #fff;
  color: var(--app-medium-gray);
  /* font-family: "GothamHTF-book"; */
  font-weight: 700;
  font-size: 16px;
  line-height: 36px;
  vertical-align: middle;
  outline: none;
  border-radius: 0px;
}

/*  Room buttons stuff */
#roombuttons {
  display: flex;
  max-width: 72%;
  flex-basis: 72%;
}

#room-selection {
  display: flex;
  max-width: 80%;
}

.roomtoggle input {
  width: 0px;
  height: 0px;
  margin: 0px;
}

.roomtoggle label {
  display: inline-block;
  width: auto;
  padding: 0px 6px;
  margin: 0px;
  background-color: var(--app-light-gray);
  color: var(--app-dark-gray);
  font-size: 22px;
  text-align: center;
  vertical-align: middle;
  line-height: 36px;
  text-shadow: none;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  transition: flex-shrink .5s;
  border-right: 1px solid #000;
}

.roomtoggle label:hover {
  flex-shrink: 0;
}

.roomtoggle input:checked+label {
  background-color: #000;
  box-shadow: none;
  color: #fff;
  flex-shrink: 0;
  max-width: 600px;
}

.pencil {
  transform: scale(-1, 1);
  background-color: black;
  color: white;
}

.roompencil {
  filter: grayscale(1) invert(1) brightness(2);
  -webkit-filter: grayscale(1) invert(1) brightness(2);
  padding: 4px 2px;
}

.trash,
.duplicate {
  background-color: var(--app-light-gray);
  color: #000;
  font-size: 32px;
  vertical-align: bottom;
  padding: 0px 2px;
}

.roomtrash,
.roomcopy {
  transform: translate(0px, 3px);
}

#headerpencil {
  transform: scale(-1, 1);
  color: #000;
  flex-basis: 5%;
  padding: 9px 0px;
}

#headerpencil img {
  max-width: fit-content !important;
}

#tutorial {
  background: #fff;
  height: 24px;
  min-width: 24px;
  border: 2px solid var(--app-red);
  border-radius: 14px;
  margin: 5px 10px 0px 10px;
  padding: 0px 0px 1px 1px;
}

#headerright {
  display: flex;
  flex: auto;
  justify-content: flex-end;
}

#getquote {
  border: none;
  background-color: var(--app-red);
  color: #fff;
  /* font-family: "GothamHTF-book"; */
  font-weight: 700;
  font-size: 18px;
  line-height: 36px;
  vertical-align: middle;
  padding: 1px 0px;
  outline: none;
  border-radius: 0px;
  min-width: 180px;
}

.editname {
  width: auto !important;
  height: auto !important;
  font-size: 22px !important;
  /* font-family: "GothamHTF-book" !important; */
  font-weight: 700;
}

#rightbar {
  display: flex;
}

#addroom {
  color: var(--app-medium-gray);
  background-color: transparent
}

#addroom:focus,
#addroom:hover {
  border: none
}


/* Right side buttons */
#rightbuttons {
  flex: auto;
  min-width: 220px;
  max-width: 15%;
  text-align: right;
  font-size: 0px;
  display: flex;
  justify-content: flex-end
}

#rightbuttons button:active,
#rightbuttons button:hover {
  border: none;
}

#reset {
  color: var(--app-custom-gray);
  background-color: transparent;
}

#save {
  background-color: #000;
  color: #fff;
}

#export {
  background-color: var(--app-red);
  color: #fff;
}

/* Design container */
#designarea {
  flex: 1 1 auto;
  display: flex;
  flex-flow: row nowrap;
  position: relative;
}

#design-container {
  flex: 0 1 80%;
  min-width: 512px;
  text-align: center;
}

.roomsvg {
  width: 100%;
  height: 100%;
  position: relative;
}



.navbuttons-toggle {
  display: flex;
  flex-flow: row wrap;
  padding: 10px 0px;
}

.changenavtoggle {
  width: 0px;
  margin: 0px;
}

.navbuttons .changenavtoggle:checked+label {
  color: #fff;
  background-color: var(--app-red);
}



/*  manual expand arrow change */
.navtoggle .manual::after {
  content: "   \0025BC";
}

/* #micstylebutton .manual::after {
  content: "";
} */

/* .submenu-content {
  margin-left: 25px;
  width: auto;
}   */

.navseparator {
  border-top: 1px solid var(--app-red);
}



.sub-line select {
  border: none;
  background-color: var(--app-light-gray);
  height: 29px;
  outline: none;
  /* font-family: "Gotham-book"; */
  font-size: 16px;
  min-width: 150px;
}

.intiger-input {
  max-width: 100px;
  min-width: 100px;
}

.sub-line .button-toggle {
  min-width: 65px
}

.sub-line .shape-button:not(.spaceorientation-toggle .shape-button) {
  width: 50px;
}

.sub-line .spacelayout-toggle {
  /* min-width: 65px; */
  padding: 0px 0px;
}

.sub-line .spacelayout-toggle label {
  height: 40px;
}

/* #micstylebutton .submenu-content {
  margin-left: 0px;;
} */

/* #micstylebutton .micstyle-toggle {
  flex-basis: 100%;
  padding: 5px 0px;
} */

/* #micstylebutton .inline-button {
  width: 38px;
} */

/* .sub-line .micstyle-toggle {
  flex-basis: 25%
} */

.plusmin {
  display: inline-block;
  height: 23px;
  text-align: center;
  color: #fff;
  text-align: center !important;
  text-shadow: none;
  /* font-family: "GothamHTF-book"; */
  font-weight: 700;
  font-size: 13px !important;
  border: 1px solid var(--app-dark-gray);
  width: 72px;
  line-height: 26px;
  margin-right: 1px !important;
  margin-bottom: 1px !important;
}

.active {
  border: 1px solid var(--app-dark-gray);
  background: var(--app-red);
}

.disabled {
  border: 1px solid var(--app-medium-gray);
  background: var(--app-medium-gray);
}

.numberofmics {
  display: inline-block;
  width: 70px;
  height: 19px;
  text-align: center;
  vertical-align: middle;
  padding: 5px 0px;
  background: var(--app-light-gray);
}

.sub-line .family-button {
  height: 20px;
  width: 80px;
  border: 2px solid #000;
  padding: 4px;
  margin-right: 2px;
  margin-top: 5px;
}

.sub-line .productfamily-togglebuttons input:checked+label .family-button {
  border: 2px solid var(--app-red);
}

.svgThin {
  stroke-width: 1.5;
}

.svgSThin {
  stroke-width: 1;
}

#footer {
  font-size: 14px;
  line-height: 0px;
  color: #555;
  text-align: left;
  padding: 6px 24px;
  display: flex;
  align-items: center;
}

#footer input {
  padding: 0px
}

.legend {
  padding: 0px 10px;
}

.devicelegend-togglebuttons {
  display: flex;
  flex-grow: 1;
  max-width: 70%;
  justify-content: space-around;
}

.devicelegend-toggle label::after {
  content: "?" !important;
  white-space: pre;
  color: var(--app-red);
  border: 1px solid var(--app-red);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  text-align: center;
  /* font-family: "Gotham-book"; */
  font-size: 14px;
  margin-left: 5px;
  line-height: 16px;
}

.devicelegend-toggle label svg {
  width: 30px;
}

#mouse-actionbar {
  display: flex;
  min-height: 38px;
  align-items: center;
}

#mouse-actionbar label:first-child {
  display: none;
}

.mouseaction-toggle {
  margin-right: 4px;
}

.mouseaction-togglebuttons label {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--app-medium-gray);
  min-width: 60px;
  border: 2px solid var(--app-medium-gray)
}

.changemouseaction:checked+label {
  background-color: var(--app-red);
  border: 2px solid black;
}

.mouseaction-togglebuttons label svg {
  width: 32px;
  transform: scale(1.2);
}

#mouseaction-tip {
  font-size: 16px;
  color: var(--app-red);
  opacity: 1;
  /* transition: opacity .5s; */
  -webkit-transition: 0.2s opacity ease;
  -moz-transition: 0.2s opacity ease;
  -ms-transition: 0.2s opacity ease;
  -o-transition: 0.2s opacity ease;
  transition: 0.2s opacity ease;
}

#mouseaction-tip.slow {
  opacity: 0;
  -webkit-transition: 0.5s opacity ease 2.5s;
  -moz-transition: 0.5s opacity ease 2.5s;
  -ms-transition: 0.5s opacity ease 2.5s;
  -o-transition: 0.5s opacity ease 2.5s;
  transition: 0.5s opacity ease 2.5s;
}

#mouseaction-tip.normal {
  opacity: 0;
  -webkit-transition: 0.5s opacity ease 0.5s;
  -moz-transition: 0.5s opacity ease 0.5s;
  -ms-transition: 0.5s opacity ease 0.5s;
  -o-transition: 0.5s opacity ease 0.5s;
  transition: 0.5s opacity ease 0.5s;
}

#player-tooltip {
  display: inline-flex;
  align-items: center;
  width: 300px;
  height: 54px;
  position: fixed;
  z-index: 1;
  margin-top: 10px;
  margin-left: -40px;
  border: 2px solid #000;
  border-radius: 50px;
  background-color: #fff;
  font-size: 14px;
  text-align: center;
}

#player-tooltip::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 28px;
  border-width: 12px;
  border-style: solid;
  border-color: transparent transparent #000 transparent;
}

audio:focus {
  outline: none !important;
}

.roomtoggle label::after,
.unittoggle label::after,
.unitstoggle label::after,
.spaceorientation-toggle label::after,
.instructortoggle label::after,
.acousticstoggle label::after,
.mouseaction-toggle label::after,
.spacelayout-toggle label::after,
.navtoggle label::after {
  content: "";
}


/* table stuff */
.error {
  font-family: 'Gotham-Medium';
  font-size: 24px;
  color: var(--app-red);
  text-transform: uppercase;
}

.equipment-table-container {
  margin-top: 5%;
  width: 90%;
  padding: 0% 5%;
  height: 90%;
  /* overflow-x: auto; */
}

.equipment-table {
  width: 100%;
  display: block;
  position: relative;
  font-size: 16px;
  line-height: 26px;
  border-collapse: collapse;
  border: none;
  margin-left: auto;
  margin-right: auto;
}

.equipment-table.has-scrollbar {
  --scrollbar-width: 15px;
}

.equipment-table caption,
.equipment-table thead,
.equipment-table tfoot {
  display: table;
  width: calc(100% - var(--scrollbar-width, 0px));
  table-layout: fixed;
}

.equipment-table tbody {
  display: block;
  max-height: 44%;
  /* overflow-y: auto; this is needed for the vertical scroll bar in speakers */

  width: 100%;
}

.equipment-table tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}


.equipment-table th,
.equipment-table td {
  /* width: calc(100% / var(--column-count, 3)); */
  /* wwe don't know column count */
}

.equipment-table td,
.equipment-table th {
  padding: 4px;
  background: none;
}

.table-caption {
  font-weight: 700;
  font-size: 22px;
  text-align: left;
  color: var(--app-red);
  margin-bottom: 10px;
}

.equipment-table thead th:first-child,
.equipment-table tbody tr td:first-child {
  text-align: center;
  border-left: 0px;
}

.equipment-table tbody td,
th {
  border: 1px solid var(--app-medium-gray);
}

.equipment-table tbody tr:nth-child(even) {
  background: var(--app-light-gray);
  background-color: var(--app-light-gray);
}

.equipment-table tr:nth-child(odd):hover {
  background: #fff !important;
  background-color: #fff !important;
}

.equipment-table thead th {
  border-top: 0px
}

.equipment-table tbody tr:last-child td:not(.tablehead) {
  border-bottom: 0px
}

.equipment-table thead th:last-child,
.equipment-table tbody tr td:last-child {
  border-right: 0px;
}

.table-header {
  font-weight: 700;
  font-size: 18px;
  text-align: left;
  padding-left: 4px;
}

.equipment-table .table-notes td {
  color: var(--app-red);
  font-size: 12px;
  line-height: 18px;
  padding-top: 12px;
  border: none;
  text-align: left
}

.equipment-table col {
  width: auto;
}

/* table specific  */
/* sumary table  */
th.header-qty.column-0,
td.cell-qty.column-0 {
  width: 15%;
}

th.header-product.column-1,
td.cell-product.column-1 {
  width: 32%;
}

/* microphone position table */
th.header-microphone.column-0,
td.cell-microphone.column-0 {
  width: 20%;
}

.mic_positioning_detail td,
.mic_positioning_detail th {
  text-align: center;
}

/* microphone configuration table */
.mic_configuration_detail td,
.mic_configuration_detail th {
  text-align: center;
}

th.header-microphone.column-0,
td.cell-microphone.column-0 {
  width: 25%;
}

th.header-beam.column-1,
td.cell-beam.column-1 {
  width: 15%;
}

th.header-azimuth.angle.column-2,
td.cell-azimuth.angle.column-2 {
  width: 30%;
}

th.header-elevation.angle.column-3,
td.cell-elevation.angle.column-3 {
  width: 30%;
}

/* speaker position table */
.speaker_positioning_detail tbody {
  overflow-y: auto;
  /* this is needed for the vertical scroll bar in speakers */
}

th.header-speaker.column-0,
td.cell-speaker.column-0 {
  width: 20%;
}

.speaker_positioning_detail td,
.speaker_positioning_detail th {
  text-align: center;
}


/* Matrix Mixer Configuration */
.matrix_mixer_configuration {
  overflow-y: auto;
}

.matrix_mixer_configuration .table-caption {
  position: sticky;
  left: 0;
  z-index: 30;
  background-color: #fff;
}


.matrix_mixer_configuration td,
.matrix_mixer_configuration th {
  text-align: center;
  width: 5rem;
}

.matrix_mixer_configuration thead th:first-child,
td.cell-.column-0 {
  text-transform: uppercase;
  font-weight: bold;
  position: sticky;
  z-index: 20;
  left: 0;
  background-color: #fff;
}

.matrix_mixer_configuration td:not(:first-child)[data="-100"] {
  background-color: var(--app-medium-gray);
  color: white;
}

.matrix_mixer_configuration td:not(:first-child)[data]:not([data="-100"]) {
  background-color: var(--app-blue);
}