/*
	Styles for ti-register-readwrite-popup.

	This overlay is intentionally `position: fixed` and covers the full
	viewport, so this component looks correct no matter where in the DOM
	it gets placed (it does not rely on a specific ancestor being
	position:relative, unlike the popup it was extracted from).

	Shared building blocks this still relies on (imported from
	../ti-mdbu-custom-css/general.css, same as the rest of the app):
	  .hide, .visible, .bouncein-animate, .bounceout-animate
*/

.reg-rw-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.reg-rw-overlay.hide {
  display: none;
}

.popup-position {
  position: relative;
}

.popup-panel {
  background-color: #FFFFFF;
  border: 1px solid #979797;
  border-radius: 4px;
  height: 450px;
  width: 550px;
}

.popup-panel > .header {
  align-items: center;
  background-color: #FFFFFF;
  border-bottom: 1px solid #E6E6E6;
  color: #C00;
  display: flex;
  font-family: Roboto;
  font-size: 22px;
  font-weight: bold;
  justify-content: center;
  line-height: 21px;
  height: 48px;
  padding: 0 20px 0 20px;
  width: calc(100% - 2px);
}

.popup-panel > .content {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-family: roboto;
  font-size: 16px;
  justify-content: center;
  padding: 20px 20px 0 30px;
  width: calc(100% - 1px);
  text-align: justify;
}

.hidden-controls-content {
  height: calc(100% - 118px);
  padding: 0 !important;
}

.popup-panel > .footer {
  align-items: center;
  background-color: #FFFFFF;
  display: flex;
  font-size: 18px;
  justify-content: center;
  line-height: 21px;
  height: 70px;
  padding: 0 20px 0 20px;
  width: calc(100% - 2px);
}

.hidden-controls-footer {
  border-top: 1px solid #E6E6E6;
}

.popup-footer-btn {
  align-items: center;
  background-color: #63666a;
  border: 1px solid #63666a;
  border-radius: 3px;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  font-family: Roboto;
  font-size: 14px;
  margin: 0 20px;
  width: 125px;
  height: 35px;
  justify-content: center;
  line-height: 13px;
  padding: 1px 10px;
  transition: .1s;
  -webkit-transition: .1s;
}

.popup-footer-btn:active {
  font-size: 13px;
}

.disable-button {
  pointer-events: none;
  opacity: 0.3;
}

.hidden-key-popup-controls {
  color: #555555;
  font-family: Roboto;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  width: 100% !important;
  height: 100% !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
}

.userInputAndRegsiterValue {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.selectWriteType,
.getUserAddr {
  height: 50px;
  width: 330px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.getUserInput,
.showRegisterValue {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 150px;
  width: 200px;
  margin: 10px 0px;
}

.sendSPIWriteCommand,
.sendSPIReadCommand {
  height: 50px;
  width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#SPIWriteButton {
  width: 170px;
}

#SPIReadButton {
  width: 170px;
}

.hex-value-input {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 80px;
  height: 34px;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0px 10px;
}

#userValue, #userAddr {
  width: 40px;
  text-align: center;
}

.decimal-value-display {
  height: 34px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  width: 80px;
  border-radius: 4px;
  text-align: center;
}

#registerValue {
  display: block;
  width: 80px;
  text-align: center;
}

#registerValue ::shadow input {
  height: 34px;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  cursor: no-drop;
  background-color: #eeeeee;
}

.disabled-display {
  cursor: no-drop;
  background-color: #eeeeee;
}

.row-alignment {
  width: 170px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.control-label {
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.margin-bottom-5 {
  margin-bottom: 5px;
}

#spiReadToast,
#spiWriteToast {
  position: fixed;
  right: 0;
  top: 45px;
}

#writeType {
  width: 180px;
  border-radius: 4px;
}

#writeType ::shadow select {
  height: 34px !important;
  padding: 6px 12px !important;
}
