@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

:root {
  --container-width: 60vw;
  /* --get-reports-button-width: 60v; */
  --header-height: 4rem;
  --urls-color: #3450e7;
  --important-color: #ff2600;
  --submit-color: #21af14;
  --basic-color: rgb(173, 222, 205);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
}

.wrapper a {
  color: var(--urls-color, #000000);
}

.wrapper p::first-letter {
  padding-left: 0.5rem;
}

select {
  cursor: pointer;
}

h4 {
  font-size: 1.1em;
  /* font-weight: bold; */
}

select[multiple] {
  overflow: hidden; /* скрываем полосы прокрутки */
  height: auto; /* устанавливаем автоматическую высоту */
}

body {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.wrapper {
  min-height: 100vh;
  background-color: azure;
}

.block-space {
  border-radius: 5px;
  padding: 0.5rem 0.5rem 0.25rem 0.5rem;
  background-color: white;
  box-shadow: 0 0 3px 1px #8c8c8c;
  margin-bottom: 0.5rem;
}

.block-space pre.estr {
  color: #000000;
  text-decoration: none;
  font-style: italic;
  font-size: 1.2em;
  margin: 0 0 0 0.5em;
}
/*
    START ADAPTIVE
*/

.container {
  margin: auto;
  /*border: 1px solid red;*/
  /*width: 1200px;*/
  width: var(--container-width, 100vw);
}

.work-space {
  /*width: 1200px;*/
  width: var(--container-width, 100vw);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr max-content;
  grid-column-gap: 10px;
}

/* .filters,
.sorting {
} */

.filter,
.sort {
  display: grid;
  grid-template-columns: 110px 1fr;
}

/* FOOTER */
footer {
  background-color: rgb(73, 73, 73);
  color: #dedede;
  box-shadow: 0 4px 5px 3px black;
  padding: 0.5rem;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

footer a {
  color: white;
  text-decoration: underline;
}

/*
    RESPONSE
*/
.response-row {
  border: 2px solid var(--basic-color, rgb(173, 222, 205));
  border-radius: 5px;
  /* cursor: pointer; */
  display: grid;
  grid-template-columns: 1fr max-content;
  padding: 0.25rem;
  margin-bottom: 0.35rem;
  transition: 0.4s;
}

.in_row__response-row {
  display: flex;
  align-items: center; /* Выравнивание по вертикали */
}

.response-row:hover {
  background-color: azure;
  box-shadow: 0 0 4px 1px var(--basic-color, rgb(173, 222, 205));
  /*border-bottom: 2px solid var(--basic-color, rgb(173, 222, 205));*/
}

.response-row__message {
  /* cursor: pointer; */
  padding: 0.25rem;
  margin-bottom: 0.35rem;
  transition: 0.4s;
}

.lable__response-row {
  display: inline-block;
  padding: 2px 4px;
  font-size: 12px;
  font-weight: bold;
  line-height: 14px;
  color: white;
  background-color: #12718f;
  border-radius: 3px;
  vertical-align: text-top;
  white-space: nowrap;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

button.lable__response-row {
  appearance: none;
  border-radius: 3px;
  background: white;
  padding: 0 0.1rem;
  margin: 0 0.1rem 0 0.1rem;
  outline: none;
  font: inherit;
  /* color: inherit; */
  cursor: pointer;
  white-space: nowrap;
}

button.download_button__response-row {
  padding: 0.1rem;
  cursor: pointer;
  border: 2px solid var(--submit-color, #000000);
  color: var(--submit-color, #000000);
}

button.open_button__response-row {
  padding: 0.1rem;
  cursor: pointer;
  border: 2px solid var(--submit-color, #000000);
  color: var(--submit-color, #000000);
}

@media (max-width: 1200px) {
  :root {
    --container-width: 60vw;
  }
}
@media (max-width: 1000px) {
  :root {
    --container-width: 70vw;
  }
}

@media (max-width: 768px) {
  .work-space {
    width: var(--container-width, 100vw);
    grid-template-columns: 1fr;
  }
  aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 10px;
  }

  :root {
    --container-width: 80vw;
  }
}

@media (max-width: 560px) {
  .work-space {
    width: var(--container-width, 100vw);
    grid-template-columns: 1fr;
  }
  aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 10px;
  }

  :root {
    --container-width: 90vw;
  }
}

@media (max-width: 480px) {
  .work-space {
    width: var(--container-width, 100vw);
    grid-template-columns: 1fr;
  }
  aside {
    grid-template-columns: 1fr;
  }
  :root {
    --container-width: 92vw;
    --header-height: 3.6rem;
  }
  footer .container {
    display: block;
  }
  footer .copyright {
    margin-top: 1rem;
    text-align: end;
  }
}

/*
    END ADAPTIVE
*/

header {
  height: var(--header-height);
  margin-bottom: 0.5rem;
  box-shadow: 0 -4px 5px 3px black;
}

.wrapper__header {
  position: absolute;
  top: 0;
  left: calc((100% - var(--container-width)) / 2);
  width: var(--container-width);
}

.logo-img__header {
  position: relative;
  z-index: 1;
}

.logotype__header {
  height: var(--header-height, 100%);
  padding: 0.25rem;
  filter: drop-shadow(5px 3px 5px rgba(0, 0, 0, 0.3));
  transition: 0.5s;
}

.logotype__header:hover {
  filter: contrast(1.15) drop-shadow(5px 3px 5px rgba(0, 0, 0, 0.3));
}

.text-holder__header {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.logo-background__header {
  height: calc(var(--header-height) / 2);
  background-color: var(--basic-color, rgb(173, 222, 205));
  font-size: calc((var(--header-height) / 2) * 0.8);
  /*font-size: 75%;*/
}

.logo-text__header {
  padding-left: calc(var(--header-height) + 0.4rem);
  font-weight: bold;
}

.sublogo-background__header {
  height: calc(var(--header-height) / 2);
  background-color: white;
  font-size: calc((var(--header-height) / 2) * 0.55);
  /*font-size: 50%;*/
}

.sublogo-text__header {
  padding-left: calc(var(--header-height) + 0.4rem);
}

.sublogo-background__header .text-holder__header {
  display: flex;
  justify-content: space-between;
}

.sublogo-nav__header {
  height: calc(var(--header-height) / 2);
  display: flex;
  align-items: center;
}

div.sublogo-nav__header > a:first-of-type {
  border-left: 3px solid var(--basic-color, rgb(173, 222, 205));
}

.sublogo-nav__header a {
  /* color: var(--important-color, #000000); */
  color: #000000;
  height: 75%;
  padding: 0 0.4rem;
  display: flex;
  align-items: center;
  text-shadow: 1px 2px 7px rgba(0, 0, 0, 0.3);
  border-right: 3px solid var(--basic-color, rgb(173, 222, 205));
  transition: all 1s ease;
  transform: scale(1);
}

.sublogo-nav__header a:hover {
  color: #07a4ed;
  transform: scale(1.045) perspective(1px);
}

a.selected-page {
  color: var(--important-color);
}

/*
    MANUAL
*/
.manual__main {
  padding-bottom: 0.25rem;
  border-bottom: 3px solid var(--basic-color, rgb(173, 222, 205));
  /*margin-bottom: 0.25rem;*/
}

.about__main {
  padding-bottom: 0.25rem;
  border-bottom: 3px solid var(--basic-color, rgb(173, 222, 205));
  margin-bottom: 0.25rem;
}

.title-block__main {
  border-bottom: 3px solid var(--basic-color, rgb(173, 222, 205));
  margin-bottom: 0.25rem;
}

.validation-message__main {
  color: red;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

/*
    SEARCH
*/

.search-box__form {
  display: grid;
  grid-template-columns: 1fr 2rem;
  grid-template-rows: 2rem;
}

.search-button {
  cursor: pointer;
  background-color: #c7c7c7;
  border-radius: 5px;
}

.search-button img {
  height: 100%;
}

.search-input input {
  border-radius: 5px;
  padding-left: 0.5rem;
  font-size: 1rem;
  width: 100%;
  height: 100%;
}

/* отступ на страницу reports */

.search-button__form {
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-button__form button {
  background: none;
  border: 2px solid var(--submit-color, #000000);
  color: var(--submit-color, #000000);
  padding: 0;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
  outline: inherit;
  padding: 0.2rem;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  text-align: center;
  /* background: rgb(17, 209, 103); */
  transition: 0.2s linear;
}

.search-button__form button:hover {
  box-shadow: azure 0 0px 0px 40px inset;
}

/* 
    ERROR 404
*/

.block-space.error-page {
  border-radius: 5px;
  padding: 0.5rem 0.5rem 0.25rem 0.5rem;
  background-color: white;
  box-shadow: 0 0 3px 1px #8c8c8c;
  margin-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.error-404-container {
  width: 100%;
}

.error-404-container img {
  width: 100%;
  flex-shrink: 0;
}
