@import "font-styles.css";

body {
  font-family: "Outfit", sans-serif, system-ui;
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: 18px;
  font-style: normal;
  display: block;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -moz-box-shadow: none;
}

*:focus {
  outline: none !important;
}

h1 {
  margin-top: 0;
}

form {
  margin: 0 auto;
  width: 360px;
  padding: 1em;
  border: 1px solid #cccccc;
  border-radius: 1em;
}

input,
select,
textarea,
button {
  -moz-box-shadow: none;
}

input,
textarea {
  font:
    0.95rem "Outfit",
    sans-serif,
    system-ui;
  width: 250px;
  box-sizing: border-box;
  border: 1px solid #999999;
}

input[type="text"],
input[type="number"] {
  height: 25px;
}

select {
  font-family: "Outfit", sans-serif, system-ui;
  width: 250px;
  height: 25px;
  font-size: 0.95rem;
  margin-top: 0.1em;
}

option {
  font-family: "Outfit", sans-serif, system-ui;
}

input:focus,
textarea:focus {
  border-color: black;
}

textarea {
  vertical-align: top;
  height: 5em;
  resize: vertical;
}

fieldset {
  width: 250px;
  box-sizing: border-box;
  border: 1px solid #999999;
}

button {
  background-color: white;
  border: 2px solid black;
  color: black;
  padding: 16px 44px;
  font-family: "Outfit", sans-serif, system-ui;
  font-size: 18px;
  margin: 4px 1px;
  transition-duration: 0.2s;
  cursor: pointer;
}

button:hover {
  background-color: #999999;
  color: white;
}

label {
  display: inline flow-root;
}

p label {
  width: 100%;
  font-size: 18px;
  font-weight: 500;
}

.submitButton {
  padding-top: 40px;
}

.menu {
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
}

.menu .currentPage {
  color: black;
  font-weight: 900;
}

.menu a {
  text-decoration: none;
  color: rgb(116, 116, 116);
}

.menu ul {
  display: flex;
}

.menu li {
  list-style-type: none;
  margin-right: 30px;
}

.userMenu {
  margin-right: 2em;
}

.companyName {
  font-size: 36px;
  margin: 30px 30px 15px 30px;
  font-family: "Doto", sans-serif, system-ui;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings: "ROND" 0;
}

.form {
  display: flex;
  margin-top: auto;
  margin-bottom: 60px;
}

.radioBox p {
  margin-bottom: 5px;
  font-weight: 500;
}

input[type="radio"] {
  vertical-align: top;
  margin: 0.3rem 4rem 0rem 0.2rem;
}

input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  border-radius: 30%;
  width: 16px;
  height: 16px;
  border: 2px solid #999999;
  transition: 0.2s all linear;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  border: 8px solid gray;
}

input[type="date"] {
  font-family: "Outfit", sans-serif, system-ui;
  width: 250px;
  height: 25px;
  font-size: 0.95rem;
  margin-top: 0.1em;
}

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 50px white inset;
}

input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 50px white inset;
}

.wipBox {
  text-align: center;
}

.wipBox h2 {
  margin-top: -30px;
  color: grey;
  font-size: x-large;
}

.stopScanBox {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}

#stopScanButton,
#showRecordSummaryButton,
#enterCylinderCodeButton,
#returnScanningButton,
#closeEnterCylinderCodePageButton,
#cylinderCodeFormBox {
  display: none;
}

#enterCylinderCodeButton,
#returnScanningButton {
  border-radius: 25px;
  border: 2px solid #999999;
  padding: 8px 44px;
  margin-top: 2em;
  background-color: #999999;
  color: white;
}

#enterCylinderCodeButton:hover,
#returnScanningButton:hover,
#closeEnterCylinderCodePageButton:hover {
  background-color: grey;
}

#closeEnterCylinderCodePageButton {
  font-size: 40px;
  border-radius: 10px;
  border: 2px solid #999999;
  padding: 10px 21px;
  margin-top: 2em;
  background-color: #999999;
  color: white;
}

#reader {
  display: flex;
  justify-content: center;
}

#readerUi {
  border: 1px solid #cccccc;
  border-radius: 1em;
  align-items: center;
  display: flex;
  flex-direction: column;
  padding-top: 2em;
  width: 360px;
  margin-top: 1.5em;
}

#readerUi img {
  height: auto;
  width: auto;
  max-width: 180px;
  max-height: 180px;
}

.scanButtonBox {
  margin-top: 2em;
  margin-bottom: 1.5em;
}

.tableBox {
  overflow: auto;
  margin: 0 3em;
  margin-bottom: 3em;
  max-height: 60vh;
}

.tableTitle {
  text-align: center;
}

table {
  /* border-collapse: collapse; */
  border: 2px solid rgb(200, 200, 200);
  letter-spacing: 1px;
  font-size: 0.85rem;
  border-spacing: 0;
}

tbody {
  white-space: nowrap;
}

td,
th {
  border: 1px solid rgb(190, 190, 190);
  padding: 10px 20px;
  border-top-width: 0;
  border-left-width: 0;
  text-align: center;
}

th {
  background-color: rgb(235, 235, 235);
  position: sticky;
  top: -1px;
}

th:last-child,
td:last-child {
  border-right-width: 0;
}

tr:last-child td {
  border-bottom-width: 0;
}

tr:nth-child(even) td {
  background-color: rgb(240, 240, 240);
}

tr:nth-child(odd) td {
  background-color: rgb(250, 250, 250);
}

tr:hover td {
  background-color: #999999;
  color: white;
  transition-duration: 0.6s;
}

caption {
  padding: 10px;
}

@media print {

  /* print styles go here */
  .companyName,
  .menu {
    display: none !important;
  }
}

@page {
  margin: 4mm;
  size: A4 landscape;
}

.dashboardBox {
  display: grid;
  /* grid-template-columns: 130px 130px 130px;
  grid-template-rows: 130px 130px 130px; */
  grid-template-columns: repeat(auto-fit, 130px);
  grid-template-rows: repeat(auto-fit, 130px);
  grid-auto-rows: 130px;
  justify-content: center;
  gap: 40px 60px;
  /* overflow: auto; */
  max-width: 700px;
  margin: 0 auto;
}

.dashboardBox>a {
  display: inline-flex;
  background-color: white;
  border: 2px solid grey;
  border-radius: 0.35em;
  color: rgb(82, 82, 82);
  text-align: center;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 18px;
  transition-duration: 0.4s;
  cursor: pointer;
  font-family: "Outfit", sans-serif, system-ui;
}

.dashboardBox>a:hover {
  background-color: #999999;
  color: white;
}

.trackingRecordDetailsBox {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -5px;
}

.trackingRecordDetailsBox * {
  margin: 0;
  margin-bottom: 0.5em;
  color: rgb(77, 77, 77);
}

dialog {
  border: 1px solid grey;
  border-radius: 0.5em;
  /* max-height: 600px; */
  max-height: 90vh;
}

.dialogForm {
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* width: 340px; */
  max-width: 80vw;
}

#dataInputBox,
.horizontalButtonBox {
  display: flex;
  flex-direction: row;
  gap: 60px;
}

.horizontalButtonBox {
  width: 310px;
  justify-content: space-between;
}

.verticalButtonBox {
  display: flex;
  flex-direction: column;
}

#cylinderTypeButtonBox,
#trackingTypeButtonBox,
#isFilledButtonBox {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#cylinderTypeButtonBox {
  margin: 0;
  margin-bottom: 10px;
}

#ownButton {
  color: #aa0000;
}

.cylinderTypeButton {
  border: 0;
  padding: 0;
  font-family: "Tourney",
    sans-serif, system-ui;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  color: #c8c8c8;
  font-size: 35px;
}

.cylinderTypeButton:hover {
  background-color: #11ffee00 !important;
  color: #aa0000 !important;
}

.trackingTypeButton {
  padding: 0.5em;
  border-radius: 0.5em;
  height: 110px;
  width: 110px;
}

#isFilledButton {
  background: linear-gradient(to top, #003568 50%, white 50%) top;
  background-size: 120% 220%;
  transition: all 0.7s ease-out;
  writing-mode: vertical-rl;
  text-orientation: upright;
  padding: 0;
  border-radius: 0.5em;
  height: 346px;
  width: 100px;
}

#preScanConfirmBox,
#postScanConfirmBox,
#warningConfirmBox {
  display: flex;
  margin-top: 50px;
  gap: 30px;
}

#preScanConfirmBox button,
#postScanConfirmBox button,
.closeButtonBox button,
#warningConfirmBox button {
  padding: 0;
  width: 160px;
  height: 54px;
  background-color: #5D76A9;
  color: white;
}

#preScanConfirmBox button:hover,
#postScanConfirmBox button:hover,
.closeButtonBox button:hover,
#warningConfirmBox button:hover {
  background-color: #39558d;
  color: white;
}

#isFilledButton:hover,
.trackingTypeButton:hover {
  background-color: #11ffee00;
  color: black;
}

#dataOutputBox {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#cylinderListBox {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#cylinderListBox .tableBox {
  margin: 0;
}

#cylinderListBox .tableBox tbody {
  white-space: normal;
}

#cylinderListBox td:last-child {
  text-align: center;
}

.closeButtonBox button {
  margin-top: 35px;
  width: 300px;
}

#returnButton {
  display: none;
}

#tempOutputBox,
#tempContentBox,
#warningMessageBox {
  text-align: center;
}

#reader {
  max-height: 55vh;
}

#cylinderCodeFormBox * {
  text-align: center;
}

#cylinderCodeFormBox {
  margin-bottom: 0;
}