* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
.ui-tabs .ui-tabs-panel {
  padding: 0;
}
body {
  background-color: #f7f9fb;
  font-family: "TT Positive", sans-serif !important;
  accent-color: #496892;
}
.readonly {
  background-color: #f2f2f8;
}
fieldset {
  border: 0px solid #ccc;
}
legend {
  font-weight: bold;
}
.tooltip {
  display: inline-block;
  border-bottom: 1px dotted black;
  cursor: help;
}
.tab-content {
  padding: 10px;
}
.button-active {
  background-color: lightgreen;
}
input[readonly] {
  background-color: #f2f2f8;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-gap: 5px;
  align-items: center;
}
.grid label {
  margin-right: 5px;
}
/* Стили для grid-таблицы */
.grid-table {
  border: 0px solid #aaa;
  margin-bottom: 16px;
}
.grid-header {
  display: grid;
  grid-template-columns: 267px 100px auto !important;
  gap: 14px !important;
  margin-left: 24px;
  margin-top: 16px;
  color: rgba(0, 0, 0, 0.5);
}
.grid-row {
  display: grid;
  padding: 16px 32px;
  align-items: center;
}
.infra-section {
  margin-bottom: 15px;
}
.dynamic-block,
.vuln-block {
  padding: 8px 32px;
  padding-bottom: 32px;
  border-bottom: 2px rgba(216, 224, 235, 0.5) solid;
}
#hacker_infra .grid-table .grid-row[data-index="15"],
#hacker_infra .grid-table .grid-row[data-index="16"],
#hacker_infra .grid-table .grid-row[data-index="18"] {
  grid-template-columns: 376px 100px 100px 100px !important;
}

@font-face {
  font-family: "TT Positive";
  src: url("../fonts/TTPositive-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "TT Positive";
  src: url("../fonts/TTPositive-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "TT Positive";
  src: url("../fonts/TTPositive-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

.ui-widget input,
.ui-widget select,
.ui-widget textarea,
.ui-widget button,
.ui-widget {
  font-family: "TT Positive", sans-serif !important;
}

fieldset {
  border-radius: 10px;
  background: #fff;
  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
  padding-top: 4px;
  margin-top: 8px;
}
h2 {
  color: #000;
  font-size: 28px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin-top: 16px;
}
.readonly {
  width: 100px;
  height: 40px;
  display: flex;
  width: 100px;
  padding: 7px 0px 8px 0px;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 0;
  border-radius: 7px;
  background-color: #ebeff5;
  font-size: 20px !important;
  opacity: 1;
  transition: opacity 0.5s ease;
}
select {
  width: 361px;
  border-radius: 7px;
  border: 1px solid #d8e0eb;
  height: 40px;
  padding: 7px;
  padding-top: 6px;
  padding-right: 30px;
  font-size: 20px !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: url("../img/select.svg") no-repeat right 12px top 17px;
}
#basic_metrics label,
#results-fieldset label,
#dynamic_blocks label,
#results-fieldset-tab2 label,
.vuln-block label {
  color: rgba(0, 0, 0, 0.5);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
}
#basic_metrics .grid-row > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#period {
  border-radius: 7px;
  border: 1px solid #d8e0eb;
  width: 271px;
  height: 40px;
  flex-shrink: 0;
  padding: 8px;
  padding-top: 7px;
  padding-right: 35px;
  background-image: url("../img/calendar.svg");
  background-repeat: no-repeat;
  background-position: right 12px top 8px;
  font-size: 20px;
}
#period::placeholder {
  color: rgba(0, 0, 0, 0.5);
}
#basic_metrics .grid-table .grid-header,
#hacker_infra .grid-table .grid-row {
  grid-template-columns: 260px 100px 100px 100px 100px !important;
  column-gap: 16px;
}
#basic_metrics .grid-table .grid-row {
  grid-template-columns: 376px 100px 100px 100px !important;
  column-gap: 16px;
}
.tab-content {
  max-width: 1200px;
  margin: auto;
}
.flex-top {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
}
.last-price {
  display: flex;
  gap: 16px;
}
.input-wrapper {
  position: relative;
  display: inline-block;
}

.input-wrapper input {
  padding-top: 18px;
}
.input-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px !important;
  pointer-events: none;
  color: rgba(0, 0, 0, 0.5);
}
#results-fieldset,
#results-fieldset-tab2,
#final_values {
  padding: 20px 32px;
  padding-bottom: 0px;
}
#results-fieldset {
  padding-bottom: 32px;
}
.sticky-div {
  position: sticky;
  /* top:76px; */
  top: 96px;
}
.header-bar {
  position: sticky;
  top: 0;
  z-index: 100;
}
#results-fieldset label,
#results-fieldset-tab2 label {
  margin-bottom: 8px;
  display: block;
}
#results-fieldset .readonly,
#results-fieldset-tab2 .readonly {
  margin-bottom: 32px;
}
#final_values .readonly {
  margin-bottom: 20px;
}
.ui-tabs-nav {
  display: flex;
  gap: 80px;
}
.header-bar nav {
  max-width: 1200px !important;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-bar {
  background: #fff !important;
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.1);

  padding-top: 12px !important;
  padding-bottom: 12px !important;
}
.tabs ul {
  list-style: none;
  margin: auto;
}
#tabs {
  border: 0 !important;
  background: 0 !important;
}
.ui-widget-content {
  background: 0;
  border: 0 !important;
}
.ui-datepicker {
  background-color: #ffffff !important;
}
.logo {
  width: 50px;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #000;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

#hacker_infra {
  max-width: 788px;
}
#basic_metrics {
  width: 788px;
}

.hidden-fields {
  opacity: 0.3;
}

.toggle-check {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 17px;
  height: 17px;
  border: none;
  outline: none;
  margin-left: -8px;
  margin-right: 8px;
  background: url("../img/checkoff.svg") no-repeat center / cover;
  cursor: pointer;
}
.grid-row label {
  display: inline-flex;
  align-items: center;
}

.toggle-check:checked {
  background: url("../img/checkon.svg") no-repeat center / cover;
}

#hacker_infra label {
  font-size: 20px;
}

.special-border {
  border-top: 1.6px solid rgba(216, 224, 235, 0.5);
}

.input-vopr {
  color: rgba(0, 0, 0, 0.5);
  font-size: 16px !important;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

#input_15,
#input_16 {
  background-color: #ffffff;
  border-radius: 7px;
  border: 1px solid #d8e0eb;
  text-align: center;
  width: 100px;
  height: 40px;
  padding: 5px;
  font-size: 18px;
}

#input_15:disabled,
#input_16:disabled {
  opacity: 0.5;
}
.nav-panel {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 59px;
  padding: 32px 42px;
  margin-bottom: 40px;
}
.nav-panel a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #000;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-decoration: none;
}
.nav-panel a:hover img {
  opacity: 0.7;
  transition: all 0.5s ease;
}

.stage-title {
  font-size: 20px !important;
  font-weight: 500;
  margin: 10px 0;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.technique-input,
.tactic-input {
  border-radius: 7px;
  border: 1px solid #d8e0eb;
  width: 353px;
  height: 40px;
  padding: 7px 8px;
  font-size: 20px !important;
}
.qualification-select {
  width: 353px;
}
.time-hours,
.time-minutes {
  width: 100px;
  height: 40px;
  flex-shrink: 0;
  text-align: center;
  font-size: 20px !important;
  border-radius: 7px;
  border: 1px solid #d8e0eb;
}
#dynamic_blocks {
  margin-bottom: 100px;
}

.ui-datepicker {
  background-color: #f2f2f8 !important ;
}
.ui-datepicker .ui-state-default {
  color: #000000;
  background: #ffffff;
  border: none;
  border-radius: 3px;
  text-align: center;
}

.ui-datepicker .ui-state-hover {
  background-color: #f2f2f8;
  border: none;
  color: #496892;
}

.ui-datepicker .ui-state-active,
.ui-datepicker .ui-state-focus {
  background-color: #535972;
  color: #ffffff;
  border: none;
}
.ui-datepicker .ui-datepicker-header {
  background: #d8e0eb;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
  text-indent: -9999px;
  overflow: hidden;
  width: 32px;
  height: 32px;
  background-position: center center;
  background-repeat: no-repeat;
  cursor: pointer;
}
.ui-datepicker .ui-datepicker-prev {
  background-image: url("../img/select.svg");
  rotate: 90deg;
  background-size: 16px;
}
.ui-datepicker .ui-datepicker-next {
  background-image: url("../img/select.svg");
  rotate: -90deg;
  background-size: 16px;
}
.ui-autocomplete {
  background: #f4f4f4;
  border-radius: 5px;
}
.ui-menu .ui-menu-item {
  padding: 5px 10px;
  color: #000;
  border-bottom: rgba(170, 170, 170, 0.364) 1px solid;
}

.ui-menu .ui-menu-item:hover {
  background: #c5c5c5;
}

h3 {
  color: #000;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  margin-top: 26px;
}

#vulnerability_blocks {
  background: none;
  border: 0 !important;
  margin: 0;
  padding: 0;
  box-shadow: none;
  width: 100%;
  width: 787px;
}
.vuln-fieldset {
  padding: 20px 32px;
}
.vulnQuestion,
.vulnQuestion2 {
  color: #000;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.vulnQuestion2 {
  margin-top: 16px;
}
.grid-10 {
  display: grid;
  grid-template-columns: 361px 100px !important;
  column-gap: 32px;
  align-items: flex-end !important;
  margin-top: 32px;
}
.crit-input {
  width: 157px;
  height: 40px;
  border-radius: 7px;
  border: 1px solid #d8e0eb;
  text-align: center;
}
#big-label,
#big-label2,
#big-label3,
#big-label4 {
  color: #000;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  cursor: pointer;
}
::placeholder {
  font-size: 20px;
  color: rgba(0, 0, 0, 0.5);
}

input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin-bottom: -2px;
  width: 19px;
  height: 19px;
  background: url("../img/radio.svg") no-repeat;
  cursor: pointer;
  transition: all 0.5s ease;
}

input[type="radio"]:checked {
  background: url("../img/radiochecked.svg") no-repeat center center;
  background-size: contain;
}
.dynamic-block,
.vuln-block {
  border: 0;
}

#saved_list {
  margin-top: 16px;
}
#saved_list li {
  max-width: 788px;
}
.save-name {
  font-size: 20px;
}
.delete-btn {
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.4;
}
.delete-btn:hover {
  opacity: 1;
}
.rename-button {
  border: 1px #d8e0eb solid;
  background: #ffffff;
  padding: 4px 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.rename-button:hover {
  background: #d8e0eb;
}

#save_state_btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  background: 0;
  border: 0;
  cursor: pointer;
}
#save_state_btn img {
  transition: all 0.5s ease;
  width: 40px;
  height: 40px;
}
#save_state_btn:hover img {
  opacity: 0.5;
}
#results-fieldset {
  padding-top: 32px;
}
.result-time {
  display: flex;
  gap: 8px;
}

#save_state_btn {
  display: flex;
  width: 158px;
  height: 40px;
  padding: 9px 16px 10px 16px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border-radius: 7px;
  border: 1px solid #496892;
  background: #496892;
  color: #fff;
  transition: all 0.5s ease;
}
#clear_state_btn {
  display: flex;
  width: 158px;
  height: 40px;
  padding: 9px 16px 10px 16px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border-radius: 7px;
  border: 1px solid #496892;
  background: #ffffff;
  color: #000000;
  transition: all 0.5s ease;
  cursor: pointer;
}

.save-button-container {
  display: flex;
  gap: 16px;
}
#save_state_btn:hover {
  border: 1px solid #233a58;
  background: #233a58;
  color: #fff;
}
#clear_state_btn:hover {
  background: #ebeff5;
}
#clear_saves_btn {
  display: flex;
  height: 40px;
  padding: 9px 16px 10px 16px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border-radius: 7px;
  border: 1px solid #d8e0eb;
  background: #ffffff;
  color: #000000;
  transition: all 0.5s ease;
  cursor: pointer;
}
#clear_saves_btn:hover {
  background: #d8e0eb;
}
input[type="checkbox"] {
  transition: all 0.5s ease;
}
#tabs {
  min-height: 100.1vh;
}
#export_state_btn {
  display: flex;
  width: 158px;
  height: 40px;
  padding: 9px 16px 10px 16px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border-radius: 7px;
  border: 1px solid #496892;
  background: #496892;
  color: #fff;
  transition: all 0.5s ease;
  cursor: pointer;
}
#export_state_btn:hover {
  border: 1px solid #233a58;
  background: #233a58;
  color: #fff;
}

#import_state_btn {
  display: flex;
  width: 158px;
  height: 40px;
  padding: 9px 16px 10px 16px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border-radius: 7px;
  border: 1px solid #496892;
  background: #ffffff;
  color: #000;
  transition: all 0.5s ease;
  cursor: pointer;
}
#import_state_btn:hover {
  background: #ebeff5;
}
.export-import-buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  margin-bottom: 16px;
  margin-top: 16px;
}

/* Дополнительные стили для кнопки смены языка */
#lang-toggle {
  margin-left: auto;
  padding: 4px 8px;
  font-size: 14px;
  cursor: pointer;
}
nav {
  display: flex;
  align-items: center;
}
nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav ul li {
  margin-right: 16px;
}
.count-input {
  display: flex;
  width: 100px;
  height: 40px;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 7px;
  border: 1px solid #d8e0eb;
}

.hidden-fields + .input-label {
  opacity: 0;
}
.input-wrapper > input.hidden-fields {
  padding-top: 8px;
}
.input-wrapper > input {
  transition: all 0.3s ease;
}

/* Дополнительные стили для кнопки смены языка */
#lang-toggle {
  margin-left: auto;
  padding: 4px 8px;
  font-size: 14px;
  cursor: pointer;
}
nav {
  display: flex;
  align-items: center;
}
nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav ul li {
  margin-right: 16px;
}
.lang-toggle {
  display: inline-block;
}
.lang-toggle input[type="checkbox"] {
  display: none;
}

.toggle-wrapper {
  display: flex;
  align-items: center;
  width: 70px;
  height: 40px;
  background-color: #dce0e7;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.toggle-text {
  display: flex;
  width: 100%;
  justify-content: space-evenly;
  position: relative;
  z-index: 2;
  font-size: 14px;
  color: #000;
}
.toggle-circle {
  width: 34px;
  height: 34px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 1;
}
#toggleLang:checked + .toggle-wrapper .toggle-circle {
  transform: translateX(30px);
}
.ui-autocomplete {
  max-height: 290px; 
  overflow-y: auto;  
  overflow-x: hidden; 
  padding-right: 10px; 
}
.time-input{
  display: flex;
  width: 100px;
  height: 40px;
  padding: 7px 0px 8px 0px;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 7px;
border: 1px solid #D8E0EB;
color: #000;
font-size: 20px !important;
}


#results-fieldset label.small-line{
  line-height: 15px !important;
}

.divider{
  height: 78px;
  width: 1.6px;
  background-color: #f2f2f8;
}