main .column {
  height: max-content;
  max-width: 70rem;
}

main .column .box {
  overflow-x: hidden;
  height: max-content;
  aspect-ratio: unset;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: small;
}

.table_wrapper {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 1rem;
}

th {
  position: relative;
  border: 1px solid black;
  background-color: rgba(0, 0, 0, 0.03);
  padding: 0.5rem 0.5rem;
  vertical-align: bottom;
}

td {
  border: 1px solid black;
  text-align: center;
  /* padding: 0.5rem 0.5rem; */
}

td.input {
  padding: 0rem;
  position: relative;
  /* color: transparent; */
}

td.input[contenteditable="true"] {
  text-align: center;
  border: 1px solid;
  outline: none;
  padding: 0rem 0.2rem;
}

td.input input,
td.input textarea {
  background-color: transparent;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  /* width: 100%;
  height: 100%; */
  text-align: center;
  border: none;
  outline: none;
  padding: 0rem 0.2rem;
}

/* th.input {
  min-width: 3rem;
} */

td.input.string {
  min-width: 8rem;
  max-width: 11rem;
  /* height: 3rem; */
}

td.input textarea {
  resize: none;
  text-align: left;
}

#secondary_form td input {
  padding: 0.5rem 0.5rem;
}

#results td,
#secondary_form td:not(.input) {
  padding: 0.5rem 0.5rem;
}

td.input:focus,
td.input input:focus,
td.input textarea:focus {
  background-color: rgba(0, 0, 0, 0.03);
}

tr.thr:nth-child(2) th {
  padding: 0.2rem 0.5rem;
  background-color: rgba(0, 0, 0, 0.06);
}
tr.thr:nth-child(3) th {
  padding: 0.1rem 0.5rem;
  background-color: rgba(0, 0, 0, 0.09);
}

table h2 {
  padding: 0.5rem;
}

/* INPUT FORM */

.label_input {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding-bottom: 0.5rem;
}

.label_input input,
.label_input select {
  min-width: 5rem;
  height: 1.5rem;
  flex-grow: 1;
  padding: 0rem 0.2rem;
  margin: 0rem 0.1rem;
}

.label_input .input_list {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;

  flex-grow: 1;
  flex-wrap: wrap;
}

.label_input .input_list input {
  padding-right: 0.1rem;
  /* margin-bottom: 0.1rem; */
  width: 5rem;
}

.label_input > label {
  padding-right: 0.5rem;
  /* min-width: 9rem; */
  width: 9rem;
  font-size: small;
}

.input_group {
  margin-bottom: 1rem;
  padding: 0rem 0.5rem;
  height: max-content;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.column > div > h2 {
  /* margin-bottom: 1rem; */
  margin: 0.5rem;
  text-align: center;
}

h3 {
  text-align: center;
}

#criteria_group h2 {
  margin-bottom: 0.5rem;
  text-align: center;
}

button,
.file_input {
  width: 100%;
  padding: 0.5rem 0rem;
  margin: 0.2rem 0rem;
  background-color: rgba(0, 0, 0, 0.03);
  outline: none;
  border: none;
  transition: background-color 0.1s;
  font-size: small;
  text-align: center;
  text-decoration: none;
}

.input_group .btn_row {
  width: 1rem;
  margin-left: 0.1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.input_group > .items {
  padding: 0.5rem 0.5rem;
  padding-bottom: 0rem;
  border: 1px solid rgba(0, 0, 0, 0.25);
  height: 100%;
}

.input_group .btn_row button {
  color: white;
  font-weight: bold;
  margin: 0.1rem 0rem;
  min-height: 3rem;
}

.input_group button.green {
  background-color: rgb(0, 200, 50, 1);
}

.input_group button.red {
  background-color: rgba(255, 0, 0, 1);
}

button:active {
  background-color: rgba(0, 0, 0, 0.5);
}

.input_group button.green:active {
  background-color: rgba(0, 200, 50, 0.5);
}

.input_group button.red:active {
  background-color: rgba(255, 0, 0, 0.5);
}

button {
  user-select: none;
  -moz-user-select: none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -o-user-select: none;
}

.full_width {
  width: 100%;
}

#criteria_group {
  border: 1px solid rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5rem;
}

/* matrix */

.matrix {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  margin: 1rem;
}

.matrix_row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.matrix_item {
  margin-bottom: 0.1rem;
  margin-right: 0.1rem;
  width: 2.5rem;
  height: 2.5rem;
  flex-grow: 1;
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* .subcriteria_matrix div.matrix_item {
  font-size: x-small;
  font-weight: bold;
}

.subcriteria_matrix div.matrix_cr {
  font-size: small;
} */

.matrix_cr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgb(0, 0, 0);
  font-size: small;
  font-weight: bold;
  color: white;
}

/* non square matrix */

.nsq_matrix {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  margin: 1rem;
}

.nsq_matrix_row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.nsq_matrix_item {
  margin-bottom: 0.1rem;
  margin-right: 0.1rem;
  width: 4rem;
  height: 1.5rem;
  flex-grow: 1;
  text-align: center;
}

.matrix_cr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgb(0, 0, 0);
  font-size: small;
  font-weight: bold;
  color: white;
}

/* cost benefit criteria */

.cbc_name_check {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  text-align: center;
  padding: 0.2rem;
}

.cbc_name_check > div {
  /* width: 1.5rem; */
  height: 1.5rem;
  margin: 0.5rem;
}

.cbc_name_check > input {
  width: 1.5rem;
  height: 1.5rem;
}

.cbc_criteria {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.cbc_criteria > div:first-child {
  font-weight: bold;
  text-align: center;
  align-self: center;
}


#cbc_table {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.key_group {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: flex-start;
  width: 100%;
  flex-wrap: wrap;
}

.key_group h4 {
  text-align: center;
}
/* #matrix_group {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
} */

.key {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 1rem;
}

.key > h3 {
  margin-bottom: 0.5rem;
}

.key_row {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.cr_key {
  width: 16rem;
}

.cr_key > div > div:nth-child(1) {
  min-width: 1.8rem;
  min-height: 1.8rem;
  margin: 0.1rem;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  color: white;
  font-weight: bold;
}

.importance_key {
  width: 17rem;
}

.importance_key > div > div:nth-child(1) {
  min-width: 1.5rem;
  min-height: 1.5rem;
  margin: 0.1rem;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  color: white;
  font-weight: bold;
}

.topsis_key {
  width: 100%;
}

.topsis_key > div > div:nth-child(1) {
  min-width: 1.5rem;
  min-height: 1.5rem;
  margin: 0.1rem;
  margin-right: 0.3rem;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  color: white;
  font-weight: bold;
}

.topsis_key.key {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 0.2rem;
}

.topsis_key.key h3 {
  width: 100%;
  text-align: center;
}

.topsis_key .key_row {
  width: max-content;
  margin: 0.2rem 0.5rem;
}

.kano_key {
  width: 10rem;
}

.kano_key > div > div:nth-child(1) {
  min-width: 1.5rem;
  min-height: 1.5rem;
  margin: 0.1rem;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  color: white;
  font-weight: bold;
}

.attribute_key_group {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.attribute_key {
  width: 17rem;
}

.attribute_key > div > div:nth-child(1) {
  min-width: 1.5rem;
  min-height: 1.5rem;
  margin: 0.1rem;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  color: white;
  font-weight: bold;
}

.input_description_group {
  width: 100%;
  text-align: left;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* .input_description {
  align-self: flex-start;
  text-align: left;
} */

input[type="file"] {
  display: none;
}

.mslider_wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.mslider_wrapper label {
  padding-right: 0.5rem;
}

#primary_form_disabled {
  width: 100%;
}
#primary_form_disabled .blocker {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3);
}

#primary_form_disabled .message {
  width: 100%;
  border: 2px solid rgb(255, 128, 128);
  padding: 0.5rem;
  font-size: small;
  font-weight: bold;
}

.form_warnings {
  width: 100%;
  border: 2px solid rgb(255, 128, 128);
  padding: 0.5rem;
  font-size: small;
  font-weight: bold;
}

.form_warnings ol {
  margin-left: 1rem;
}

.indexed_container {
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  max-width: 100%;
  margin: 0.1rem;
}

.indexed_container label {
  background-color: rgb(87, 87, 87);
  color: white;
  min-width: 1.5rem;
  text-align: center;
  font-size: medium;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

.indexed_container input {
  flex-grow: 1;
  min-width: 2rem;
}
/* 
#dm_rank {
  max-width: calc(100% - 5rem);
} */

li.shift {
  margin-left: 1.2rem;
}

.alternative_selector_wrapper {
  align-self: center;
  margin: 0.5rem;
}

.alternative_selector_wrapper > label {
  margin-right: 1rem;
  font-weight: bold;
}

.alternative_selector_wrapper > select {
  min-width: 5rem;
}

.seperator {
  height: 2px;
  background-color: rgb(136, 136, 136);
  width: 100%;
  margin: 1rem 0rem;
}

.strong_red {
  font-weight: bold;
  color: darkorange;
}

.strong_blue {
  font-weight: bold;
  color: blue;
}

.underline {
  text-decoration: underline;
}

.checkbox[innerHTML="TRUE"] {
  background-color: greenyellow;
}

.title_matrix {
  margin: 1rem;
}

@media screen and (max-width: 600px) {
  .box {
    font-size: small;
  }
}
