* {
  margin: 0;
  padding: 0;
  border: none;
  font-family: "Courier New", Courier, monospace;
  box-sizing: border-box;
  border-collapse: collapse;
  border-spacing: 0px;
  border-width: 0px;
}

a {
  text-decoration: none;
  color: #000000;
}

.bold_font {
  font-weight: 800;
}

form {
  align-items: center;
  display: flex;
  flex-flow: column;
  padding: 8px;
}

input,
button,
textarea {
  font-size: 1.4em;
  width: 100%;
  border: 1px solid #000000;
  display: inline-block;
  padding: 0 8px;
}

.nav_control {
  display: flex;
  flex-direction: row;
  max-width: 1200px;
  margin: 24px auto;
  justify-content: center;
  align-items: center;
}

.nav_control h3,
.nav_control a {
  display: inline-block;
  color: #000;
  padding: 4px;
  margin: 4px;
}

.nav_control a {
  border: 1px solid black;
}

.main_block,
.doc_section {
  display: flex;
  flex-direction: row;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

.form_block {
  margin: 25vh auto;
  max-width: 400px;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0px 0px 8px 2px black;
  text-align: center;
}

.form_block h4 {
  font-size: 2em;
  margin: 4px;
}

.form_block input,
button {
  border: 1px solid;
  margin-top: 12px;
}

.document_form {
  max-width: 200px;
  margin: 12px;
  text-align: center;
}

.doc_nav {
  display: flex;
}

.doc_block {
  margin: 4px 8px;
}

.doc_block a {
  padding: 4px;
  display: block;
}

.doc_block a:hover {
  cursor: pointer;
  background-color: #2500aa;
  color: #ffffff;
  transition: ease-in-out 0.4s;
  transform: scale(1.2);
}

.doc_block:active {
  border-bottom: 1px solid orange;
}

.add_timesheet_rows_button {
  border: 1px solid #2500aa;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  /* width: 100%; */
  text-align: center;
  margin: 8px;
}

.add_timesheet_rows_button:hover,
.add_doc_button:hover,
.list_of_docs_button:hover,
#change_profile_info:hover {
  background-color: #2500aa;
  cursor: pointer;
  color: #ffffff;
  transition: ease 0.8s;
}

.doc_section {
  margin-top: 20px;
}

.add_doc_button,
.list_of_docs_button {
  display: block;
  font-size: 2em;
  border: 2px solid #2500aa;
  margin: 12px;
  padding: 12px;
  border-radius: 12px;
}

.add_doc_form {
  width: 80%;
  margin-top: 24px;
}

.timesheet_rows {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.add_doc_form form table {
  width: 100%;
  border-radius: 2px;
}

td {
  text-align: center;
}

/* profile block */
.profile_block {
  text-align: center;
}

.profile_block .form_block {
  margin: 24px auto;
}

.profile_block .form_block input,
#add_signature,
#delete_pidpis,
#signature_form button {
  margin: 8px 0;
}

/* signature */
#add_signature,
#delete_pidpis {
  cursor: pointer;
  display: inline-block;
  background-color: lightgray;
  padding: 4px 12px;
}

#popup_signature {
  display: none;
  background-color: rgba(0, 0, 0, 0.7);
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
}

#signature_block {
  background: #ffffff;
  width: 80vw;
  height: 80vh;
  position: relative;
  top: 10%;
  left: 10%;
}

.sign_controls {
  display: flex;
  justify-content: end;
  align-items: center;
}
.sign_controls input {
  padding: 8px;
}

#sign_reset,
#sign_confirm {
  padding: 8px 12px;
  margin: 12px;
  cursor: pointer;
}
#sign_reset {
  background: lightblue;
}
#sign_confirm {
  background: lightgreen;
}

#img_signature_block {
  display: none;
}

#img_signature {
  width: 100%;
}

#change_profile_info {
  margin: 24px;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0px 0px 8px 2px black;
}

.add_doc_form form button {
  margin: 12px;
  height: 40px;
}

.tickets_body {
  width: 100%;
  text-align: center;
}

.ts_ticket {
  width: 100%;
  border: 1px solid #2500aa;
  padding: 12px;
  margin: 12px 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.open_ticket {
  cursor: pointer;
  background-color: #2500aa;
  padding: 8px;
  border: 1px solid #2500aa;
  color: #ffffff;
}

.open_ticket:hover {
  background-color: #ffffff;
  color: #2500aa;
}

.full_ticket {
  display: none;
  justify-content: center;
}

.full_ticket td,
.full_ticket th {
  padding: 8px;
  border: 1px solid rgb(46 46 98 / 40%);
}

.full_ticket img {
  max-height: 200px;
}

/* ts ticket */

.ticket_table,
.ticket_data {
  width: 100%;
}

.ticket_row {
  display: flex;
  margin: 8px 0;
}

.ticket_data {
  margin: 0 4px;
}

.result_table {
  width: 50%;
}

.result_data {
  outline: #2500aa solid 1px;
}

#add_timesheet_rows_tr {
  text-align: center;
}

.shop_time_data {
  display: flex;
  align-items: center;
  flex-flow: wrap;
  justify-content: center;
}

/*tablet*/
@media screen and (max-width: 800px) {
  .tickets_body {
    padding: 16px;
  }

  .add_doc_button,
  .list_of_docs_button {
    font-size: 1.2em;
    width: 50%;
  }

  .result_data {
    width: 100%;
  }

  .ticket_row {
    align-items: flex-end;
  }
}

/*phone*/
@media screen and (max-width: 480px) {
  .doc_nav {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
  }

  .doc_block {
    margin: 4px 12px;
    border: 1px solid #2500aa;
  }

  .profile_block,
  .tickets_body {
    padding: 16px;
  }

  .doc_section {
    flex-direction: column;
  }

  .add_doc_button,
  .list_of_docs_button {
    width: auto;
  }

  .ticket_row {
    align-items: flex-end;
  }
}
