body {
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  color: #707070;
  background-color: #f9f9f9;
}
h3 {
  font-size: 1.2em;
  margin: 1em 0 0.5em 0;
  font-weight: bold;
}
h4 {
  margin: 1em 0 0.5em 0;
  font-weight: bold;
}
strong {
  font-weight: bold;
}
thead,
.thead {
  background-color: #f5f5f5;
}
.break {
  word-break: break-all;
  white-space: break-spaces;
}
thead td {
  word-break: keep-all;
}
table.sysinfo_table tr td:first-of-type {
  word-break: break-word;
}
input:disabled, textarea:disabled {
  cursor: not-allowed;
}
/* NAVIGATION */
nav {
  position: fixed;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
  padding: 1em;
  width: 100%;
  letter-spacing: 0.1em;
  top: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  color: #888;
  z-index: 101;
}
nav a {
  cursor: pointer;
  margin-right: 2em;
  color: #888;
  text-decoration: none;
}
nav a.active {
  color: #ff0068;
}
nav a:last-of-type {
  margin-right: 0;
}
.logo {
  margin-left: auto;
  padding: 0 1em;
  color: #ff0068;
}
.version {
  margin-right: 2em;
  font-size: 0.7em;
  line-height: 1.4em;
}
.choose_lang {
  cursor: pointer;
  margin: 0 1em;
}
/* CONTAINER */
.container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  margin-top: 3em;
  background-color: white;
  min-height: calc(100vh - 3em);
}
.container section {
  display: none;
  flex-direction: column;
  padding: 2em 1em 1em 1em;
  align-items: center;
  padding-bottom: 3em;
}
.container section.active {
  display: flex;
}
.spoiler {
  display: none;
}
.spoiler span {
  margin-right: 1em;
}
.last {
  position: relative;
  cursor: pointer;
  width: 2em;
  text-align: center;
  vertical-align: middle;
}
.last:hover {
  background-color: #f5f5f5;
}
.last i:before,
.last svg {
  /* display: block; */
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}
.last.active i:before,
.last.active svg {
  transform: rotate(180deg);
}
td.context {
  position: relative;
  text-align: center;
}
td.context .flags_digits {
  border-bottom: 1px dashed #ccc;
}
td.context svg {
  height: 1em;
  width: 1.5em;
}
.last:hover .tooltip,
.context:hover .tooltip {
  opacity: 1;
  box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.1);
  transform: translate(-50%, -185%);
}
.badge {
  padding: 0.2em 0.7em 0.2em 0.5em;
  display: inline-block;
  background-color: #f5f5f5;
  border-radius: 0.7em;
  text-decoration: none;
  margin-top: 0.5em;
  color: #707070;
  cursor: pointer;
}
.badge:hover {
  background-color: #ff0068;
  color: #fff;
}
.certificate .badge {
  display: block;
}
.error_result {
  color: #ff0068;
}
.success_result {
  color: teal;
}
#tlv_data {
  word-break: break-all;
  height: 2.5em;
  overflow: hidden;
  margin-bottom: 0.5em;
}
/* FORMS */
.form-field {
  display: flex;
  margin-bottom: 2em;
}
.column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.form-field.column label {
  margin-bottom: 0.5em;
}
.form-field.column.left {
  width: 58%;
  margin-right: 2em;
}
.row {
  display: flex;
  flex-direction: row;
  align-items: center;
}
input[type='text']:disabled, textarea:disabled {
  color: #ccc;
}
form input[type="button"], .btn {
  border: none;
  padding: 0.7em 1.3em;
  border-radius: 1.5em;
  background-color: #ff0068;
  color: white;
  margin-right: 1em;
  cursor: pointer;
  outline: none;
  box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease;
}
form input[type="button"]:hover, label.btn:hover {
  box-shadow: 0px 10px 10px 0px rgba(0, 0, 0, 0.1);
}
form input[type="button"]:last-of-type {
  margin-right: 0;
}
form.add-license {
  margin-top: 2em;
}
form input[type="text"],
form input[type="date"],
form input[type="time"] {
  padding: 0.5em;
  border: none;
  border-bottom: 1px solid #707070;
  background-color: #f9f9f9;
}
form input[type="text"].error, form textarea.error {
  border-bottom: 1px solid #ff0068;
}
label[for="gost_imit"] span {
  display: none;
  color: #ff0068;
  padding-left: 1em;
  font-size: small;
}
label[for="gost_imit"] span.error {
  display: inline-block;
}
input#exclude_deleted {
  display: none;
}
label[for="exclude_deleted"] {
  width: 3.5em;
  height: 2em;
  border-radius: 1em;
  display: block;
  background-color: #efefef;
  margin-right: 1em;
  position: relative;
  cursor: pointer;
}
label[for="exclude_deleted"]:after {
  position: absolute;
  top: 0.2em;
  left: 0.2em;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  content: "";
  display: block;
  background-color: white;
  margin-right: 1em;
  box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.3);
  transform: translateX(0);
  transition: transform 0.3s ease;
}
input#exclude_deleted:checked ~ label {
  background-color: teal;
}
input#exclude_deleted:checked ~ label:after {
  transform: translateX(1.5em);
}
form label {
  margin-right: 1em;
}
input[type="date"],
input[type="time"] {
  margin-right: 1em;
}
fieldset {
  padding: 1em;
  background-color: #f0f0f0;
  margin-bottom: 2em;
  display: inline-block;
}
textarea {
  border: none;
  border-bottom: 1px solid #707070;
  background-color: #f9f9f9;
}
.file-wrapper {
  padding: 0.2em 1em 0.2em 0.25em;
  background-color: #707070;
  border-radius: 1.5em;
  display: inline-block;
}
.file-wrapper input {
  display: none;
}
.form-field.column .file-wrapper label {
  padding: 0.5em;
  background-color: white;
  border-radius: 1.5em;
  display: inline-block;
  margin-bottom: 0;
  margin-right: 0.5em;
}
.file-wrapper label {
  cursor: pointer;
}
.file-wrapper span {
  display: inline-block;
  padding: 0.8em;
  font-size: 0.8em;
  color: white;
}
a.clear {
  text-decoration: none;
  display: block;
  padding: 0.1em 0.35em;
  background: #fff;
  border-radius: 1.5em;
  color: #ff0068;
  font-size: 1.3em;
  margin-left: 0.5em;
  box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.3);
  position: relative;
}
.text-label {
  display: flex;
  width: 100%;
  align-items: flex-end;
}
.text-label label {
  flex: 1;
}
.text-wrapper {
  margin-left: auto;
  padding: 0.5em 1em;
  background: #707070;
  color: white;
  margin-bottom: 0.5em;
  border-radius: 1.5em;
  font-size: 0.8em;
  display: flex;
  align-items: center;
  font-weight: bold;
  position: relative;
}
.tooltip {
  position: absolute;
  left: 50%;
  top: 50%;
  background-color: #ff0068;
  color: white;
  font-size: 10px;
  padding: 1em;
  border-radius: 1.5em;
  width: 150px;
  display: block;
  transform: translate(-50%, -155%);
  box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.3);
  text-align: center;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}
.tooltip#flags {
  font-size: smaller;
  text-align: left;
  width: 250px;
}
.tooltip#flags hr{
  border: none;
  border-bottom: 1px dotted #fff;
}
.context:hover .tooltip#flags {
  transform: translate(-50%, -127%);
}

.tooltip:after {
  content: "";
  display: block;
  position: absolute;
  width: 1em;
  height: 1em;
  transform: translate(-50%, 50%) rotate(45deg);
  bottom: 0;
  left: 50%;
  background-color: #ff0068;
}
.text-wrapper:hover .tooltip,
a.clear:hover .tooltip {
  opacity: 1;
  box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.1);
  transform: translate(-50%, -185%);
}
.text-wrapper input {
  display: none;
}
.text-wrapper label {
  width: 3.5em;
  height: 2em;
  background-color: #aaa;
  border-radius: 1.5em;
  margin: 0 1em !important;
  position: relative;
  cursor: pointer;
}
.text-wrapper label:after {
  position: absolute;
  top: 0.2em;
  left: 0.2em;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  content: "";
  display: block;
  background-color: white;
  margin-right: 1em;
  box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.3);
  transform: translateX(0);
  transition: transform 0.3s ease;
}
#new_line ~ #_n,
#new_line:checked ~ #_rn {
  color: white;
}
#new_line:checked ~ #_n,
#new_line ~ #_rn {
  color: #aaa;
}
#new_line:checked ~ label:after {
  transform: translateX(1.5em);
}
.error-msg {
  color: #ff0068;
  font-size: 0.8em;
  display: none;
}
.error-msg.error {
  display: block;
}
#request_results {
  width: 100%;
}
table table {
  margin-left: 2em;
}
td,
th {
  padding: 0.5em;
  border: 1px solid grey;
}
.print-only {
  display: none;
}
.print_form_data {
  display: none;
}
#copy_wrapper {
  position: relative;
}
#copied {
  position: absolute;
  right: 0.3em;
  padding: 0.2em;
  opacity: 0;
}
#copied.success {
  animation: copied 1s ease;
}
svg.icons {
  height: 0.8em;
}
@keyframes copied {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
#dark_bg {
  background-color: rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}
#dark_bg.visible {
  opacity: 1;
  pointer-events: all;
}
#modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 80%;
  max-width: 1200px;
  max-height: 80vh;
  transform: translate(-50%,-50%);
  background-color: rgb(250,250,250);
  box-shadow: 0 0 20px 0px #ccc;
  opacity: 0;
  pointer-events: none;
  padding: 1em;
  word-break: break-all;
  z-index: 100;
  transition: all 0.3s;
}
#modal_content {
  overflow-y: scroll;
  padding: 1em;
  height: calc(80vh - 4em);
  font-size: 0.9em;
}
#modal.visible {
  opacity: 1;
  pointer-events: all;
}
#close_btn {
  position: absolute;
  top: -0.8em;
  right: -0.8em;
  border-radius: 50%;
  padding: 0.3em 0.5em;
  color: white;
  background-color: #ff0068;
  cursor: pointer;
}

#hash {font-size: 0.8em;}
#hash .hidden {display:none}
#hash_result, #same_result {
  padding: 0.5em;
  margin: 0.5em 0;
  border: 1px solid #707070;
  word-break: break-all;
}
.badge.grey {
  background-color: #707070;
}

@media print {
  @page {
    margin: 1cm;
  }
  .print-only {
    display: block;
  }
  .print_form_data {
    display: block;
  }
  body {
    font-size: 12px;
    padding-left: 5mm;
  }
  h1 {
    padding-bottom: 0.3em;
    font-size: 2em;
    border-bottom: 1px solid;
    width: 100%;
    margin-bottom: 1em;
  }
  form,
  nav,
  .last {
    display: none;
  }
  div {
    float: none !important;
  }
  section {
    display: none !important;
  }
  section.active {
    display: block !important;
  }
  .container {
    width: unset;
    padding: unset;
    margin: unset;
  }
  #details,
  #signcheck,
  #report {
    display: block;
  }
  table {
    max-width: 19cm;
  }
  td {
    padding: 0.2em;
    float: none !important;
  }
  thead {
    display: table-header-group;
  }
  tfoot {
    display: table-row-group;
  }

  tr,
  td {
    page-break-inside: avoid;
    page-break-before: always;
  }
}
