html {
  height: 100%;
}

body {
  height: 98%;
  background-color: #343a40;
}

.ag-theme-rtube {
  --ag-background-color: #3e444a !important;
  --ag-header-background-color: #343a40 !important;
  --ag-odd-row-background-color: #343a40 !important;
  --ag-card-shadow: 0 1px 20px 1px #342d2d !important;
  --ag-selected-row-background-color: #61666b !important;
  --ag-row-hover-color: #61666b !important;
  --ag-range-selection-border-color: #68686e !important;
  --ag-header-foreground-color: #fff !important;
}

.ag-theme-rtube .ag-menu {
  background-color: #61666b !important;
}

.ag-dnd-ghost {
  background-color: #61666b !important;
  box-shadow: 0 1px 20px 1px #342d2d !important;
}

.page-content {
  display: flex;
  width: 100%;
  height: 100%;
}

.left-menu-modems {
  width: 22%;
  min-width: 300px;
  height: 100%;
  /* min-width: 25rem; */
  display: flex;
  flex-direction: column;
}

.left-menu-modems > div {
  flex: 1;
}

.left-menu-modems__bottom {
  padding: 1rem;
  color: #fff;
  border-right: 1px solid #68686e;
  border-left: 1px solid #68686e;
  overflow: auto;
}

.left-menu-modems__bottom > textarea::placeholder,
.left-menu-modems__bottom > textarea,
.saveButtonWrapper button,
.left-menu-modems__bottom,
.tube-info textarea{
  font-size: 0.85rem;
}

.left-menu-modems__bottom > h2 {
  font-size: 1.3em;
  margin-bottom: 0.5rem;
}

.left-menu-modems__bottom > textarea:focus,
.saveButtonWrapper  button:focus,
.tube-info textarea:focus
{
  color: #fff;
  background-color: rgb(97 102 107 / 0.4);
  border-color: #68686e;
  box-shadow: none;
}

.saveButtonWrapper button {
  width: max-content;
  padding: 5px 10px;
  height: max-content;
  background-color: rgb(97 102 107);
  margin: 0;
}
 .saveButtonWrapper{
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
}
.left-menu-modems__bottom > textarea {
  margin: 0.4rem 0px;
}

.left-menu-modems__bottom > p {
  margin: 0;
}

.current-modem-item {
  display: flex;
  margin-bottom: 0.4rem;
}

.current-modem-item > span {
  flex: 1;
  margin-right: 5px;
}

.current-modem-item > b {
  flex: 2;
  font-weight: 700;
}

.right-info-modems {
  width: 80%;
  height: 100%;
}
#chartContainer,
.modem-info-logs {
  height: calc(100% - 2.1rem);
}

.chart .date-range,
.right-info-modems .date-range {
  min-height: 2rem;
  padding: 0 0.7rem;
  line-height: 2rem;
}

.right-info-modems .date-range > button,
.right-info-modems .date-range > input {
  height: max-content;
  font-size: 0.85rem;
}

/* ------------------------------------------ */

.left-menu-table_active {
  background-color: #ffffff39 !important;
}
/* .left-menu-table_active:not(:first-child){
	color: #00000000 !important;
} */

nav {
  position: relative;
  height: 2rem;
  background-color: #273744;
  border-bottom: 1px solid grey;
}

nav a {
  display: inline-block;
  border: 1px solid grey;
  border-radius: 0.3rem 0.3rem 0 0;
  border-bottom: 0;
  padding-top: 0.2rem;
  padding-left: 1rem;
  padding-right: 1rem;
  height: 100%;
  font-weight: bold;
  color: gray;
  height: 100%;
}

#lang {
  position: absolute;
  right: 15px;
  height: 2rem;
  text-decoration: none;
  color: gray;
}

#lang button {
  color: gray;
  font-weight: bold;
}

#auth-lang {
  position: absolute;
  right: 15px;
  height: 2rem;
  text-decoration: none;
  color: gray;
}

#auth-lang button {
  width: auto;
  color: black;
}

.router-link-active {
  background-color: #343a40;
  color: white;
  height: calc(100% + 1px);
}

.login {
  background-color: lightgrey;
  width: 25rem;
  border: 1px solid black;
  left: 50%;
  position: absolute;
  margin-left: -12.5rem;
  height: 20rem;
  top: 50%;
  margin-top: -12rem;
  text-align: center;
  font-weight: bold;
}

.login input,
.login button {
  width: 15rem;
}

#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;

  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  overflow: none;
}

#qr-code {
  /* position: absolute; */
  margin: 10 0 0 0;
  border: 1px solid #808080;
  border-radius: 3px;
}

.qr-label a {
  font-weight: bold;
  text-decoration-line: underline;
  color: white;
}
.qr-label {
  margin-left: 15px;
  position: absolute;
}

.isol-box {
  width: 63px;
  height: 16px;
  background-color: white;
  border: 1px dotted grey;
  color: black;
  font-size: 0.65rem;
  white-space: nowrap;
}

.isol-inner-box {
  height: 100%;
}

.isol-inner-box div {
  padding-left: 3px;
}

.input-dark {
  border-color: #454d55;
  color: white;
  background-color: #343a40;
  height: 1.8rem;
  margin: 0.1rem;
}

.content {
  position: absolute;
  display: block;
  top: 2rem;
  left: 0px;
  right: 0px;
  bottom: 0px;
  overflow-y: scroll;
}

.left-menu {
  position: absolute;
  display: block;
  overflow: none;
  top: 0px;
  left: 0px;
  bottom: 0rem;
  width: 25rem;
}

.left-menu-table {
  position: absolute;
  display: block;
  overflow: scroll;
  scrollbar-color: darkgray black;
  top: 2rem;
  left: 0px;
  bottom: 2rem;
  width: 100%;
  cursor: pointer !important;
}

.left-menu-table table {
  overflow: scroll;
  width: 100%;
}

.left-menu-table .icons {
  background-color: #ffffff00;
  border: 0px;
}

.left-menu-table button {
  padding: 2px;
}

::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  background-color: #343a40;
}

::-webkit-scrollbar {
  width: 12px;
  background-color: #00000000;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #555;
}

.pagination {
  position: absolute;
  bottom: 0px;
  width: 25rem;
  margin: unset;
  border-color: #454d55;
  color: white;
  background-color: #343a4000;
  height: 1.8rem;
  margin: 0.1rem;
}

.pagination .page-item a,
.pagination .page-item span {
  margin: unset;
  border-color: #454d55;
  color: white;
  background-color: #343a4000;
  height: 1.6rem;
  margin: 0.1rem;
}

.pagination .page-item span {
  color: gray;
}

.pagination .page-item .page-link {
  padding: 0.1rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

#mapid {
  position: absolute;
  display: block;
  left: 25rem;
  top: 0px;

  width: calc(100% - 25rem);
  transition: width 1s, height 0.5s, top 1s, left 1s, background-color 2s,
    transform 2s;
}

.info-window {
  position: absolute;
  display: block;
  left: 25rem;
  bottom: 0px;

  width: calc(100% - 25rem);
  transition: width 1s, height 0.5s, top 1s, left 1s, background-color 2s,
    transform 2s;
}

.full-map #mapid {
  height: 100%;
}

.show-info #mapid {
  height: 50%;
}

.full-map .info-window {
  height: 0%;
}

.show-info .info-window {
  height: 50%;
}

.marker-shape {
  white-space: nowrap;
  background-color: lightgrey;
  height: 18px;
  display: inline;
  left: 5px;
  top: -12px;
  position: relative;
  border-radius: 5px 5px 5px 0;
  /* transform: rotate(45deg); */
  border-width: 1px;
  border-style: solid;
  font-size: 11px;
  padding: 3px;
  font-weight: bold;
  color: black;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.tube-info {
  width: 28%;
  border: 1px solid darkgray;
  padding: 0.5rem;
  margin: 0.5rem;
  overflow: auto;
  color: white;
  height: calc(100% - 1rem);
  font-size: 0.85rem;
}
.tube-info .saveButtonWrapper{
  margin-top: 5px;
}
.tube-info table {
  color: white;
}

.tube-info input {
  padding-left: 3px;
}

.tube-info td {
  padding-left: 3px;
  margin: 0px;
  font-size: 0.85rem;
}

.tube-info .value {
  vertical-align: top;
  width: 50%;
  font-weight: bold;
  padding-bottom: 8px;
}

.tube-info h6 {
  padding: 6px 0px 0px 8px;
}

.tube-info textarea {
  height: calc(50% - 7rem);
  min-height: 62px;
  width: calc(100% - 3px);
}

.user-info {
  width: 99%;
  border: 1px solid darkgray;
  padding: 0.5rem;
  margin: 0.5rem;
  overflow: auto;
  color: white;
  height: calc(100% - 1rem);
}

.user-info table {
  color: white;
}

.user-info input {
  padding-left: 3px;
}

.user-info td {
  padding: 0px;
  padding-bottom: 0.3rem;
  margin: 0px;
  font-size: 0.95rem;
}

.user-info .label {
  white-space: nowrap;
  font-weight: bold;
  width: 30rem;
}

.user-info div {
  display: inline;
}

.user-info .value {
  padding-left: 0.5rem;
}

.user-info textarea {
  height: calc(50% - 5rem);
}

.user-info button {
  height: 2.5rem;
}

.red {
  color: red;
}

.chart {
  position: absolute;
  left: 30%;
  border: 1px solid darkgray;
  padding: 0.5rem;
  top: 0.5rem;
  right: 0.5rem;
  bottom: 0.5rem;
  overflow: auto;
  color: white;
  height: calc(100% - 1rem);
}

.chartContainer {
  height: 50%;
  width: 100%;
}

.modem-info-window {
  position: absolute;
  display: block;
  left: 25rem;
  top: 0px;
  width: calc(100% - 25rem);
  height: 100%;
}

.modem-info-window .tube-info {
  height: 50%;
}

.modem-info-window .chart {
  height: 50%;
}

.modem-logs {
  height: 50%;
  overflow: auto;
  white-space: pre-line;
  font-size: 10px;
}

.logs-info {
  border: 1px solid darkgray;
  padding: 0.1rem;
  overflow: auto;
  color: white;
  height: 92%;
  width: 28%;
}

.modemlogs-search {
  position: absolute;
  display: flex;
  flex-direction: row;
  padding: 0.2rem;
  top: 52%;
  left: 29%;
  right: 0.5rem;
  width: 69%;
}
.modemlogs-search:first-child {
  width: 30% !important;
  height: auto;
}
.modemlogs-search:last-child {
  color: #fffbfb !important;
  min-height: 32px;
}

/* .modemlogs-table {
  position: absolute;
  display: block;
  border: 1px solid rgba(90, 90, 90, 0.555);
  top: 51.8%;
  left: 29%;
  right: 0.5rem;
  width: 70%;
  height: 45.1%;
  overflow: auto;
}

@media (max-width: 1600px) {
  .modemlogs-table {
    top: 53.3%;
    height: 44.3%;
  }
} */

.logs-pagination {
  position: absolute;
  display: block;
  top: 98%;
  left: 29%;
  right: 0.5rem;
  width: 37%;
}

.modemlogs-table table {
  color: white;
  font-size: 14px;
  width: 200%;
}

.modem-logs .label,
.value {
  color: white;
  font-size: 0.9em;
  padding: 0 0.6rem 0 0.2rem;
}

.modem-logs .value {
  padding-bottom: 0.7em;
}

.modem-logs h2 {
  font-size: 1.3em;
  color: white;
}

.modem-logs h3 {
  font-size: 1em;
  color: white;
  font-weight: bold;
  padding: 0.3em 0 0.1em 0;
}

.adding-window {
  color: white;
  position: absolute;
  display: block;
  top: 0px;
  margin: 0.2rem;
  left: 32rem;
  border: 1px solid grey;
}
.adding-window h1 {
  font-size: 1.4em;
  margin: 0.4rem;
}
.adding-window nav {
  font-size: 1rem;
  padding: 0 1rem 0 1.5rem;
}

.menu-tube {
  position: absolute;
  display: block;
  overflow: none;
  top: 0px;
  left: 0px;
  bottom: 0rem;
  width: 32rem;
}

.menu-tube-table {
  position: absolute;
  display: block;
  overflow: scroll;
  scrollbar-color: darkgray black;
  top: 2rem;
  left: 0px;
  bottom: 2rem;
  width: 100%;
  cursor: pointer !important;
}

.menu-tube-table table {
  overflow: scroll;
  width: 100%;
}

.menu-tube-table .icons {
  background-color: #ffffff00;
  border: 0px;
}

.menu-tube-table button {
  padding: 2px;
}

.scrolling {
  overflow-y: scroll;
}

.info-form {
  padding-bottom: 4px;
}

.info-form label {
  color: white;
}

.info-form input {
  height: 2rem;
  border: 1px solid #808080;
  border-radius: 4px;
  background-color: rgba(255, 255, 238, 0);
  color: rgb(255, 255, 255);
}
.info-form textarea {
  height: 4rem;
  border: 1px solid #808080;
  border-radius: 4px;
  background-color: rgba(255, 255, 238, 0);
  color: rgb(255, 255, 255);
}

.info-form label {
  padding: 0.7rem 0 0 0;
  font-size: 14px;
  margin-bottom: 2px;
}

.info-form button {
  margin: 2rem 0 0 0.2rem;
  font-size: 14px;
  padding: 0.4rem 0.6rem 0.4rem 0.6rem;
  border: 1px solid #ffffff;
  border-radius: 4px;
  background-color: #00000000;
}

.info-form .contacts {
  height: 7rem;
  overflow: auto;
  padding: 6px;
  border: 1px solid #68686831;
  border-radius: 4px;
}

.info-form .contacts label {
  padding: 0px;
  margin-bottom: 12px;
  font-size: 16px;
}

.info-form .phones-button button {
  margin: 12px 0px 0px 16px;
}

.info-form .main-button button {
  font-size: 14px;
  margin-left: 16px;
  margin-top: 16px;
}

.info-form .add-modem {
  background-color: #ffffff;
  color: #454d55;
  font-weight: bold;
  padding: 0.4rem 0.4rem 0.4rem 0.4rem;
}

.notifications {
  position: absolute;
  display: block;
  left: 25rem;
  bottom: 0px;
  width: calc(100% - 25rem);
  top: 0px;
}

.notification-table {
  position: absolute;
  display: block;
  overflow: auto;
  scrollbar-color: darkgray black;
  width: 60%;
  top: 0rem;
  bottom: 0rem;
  padding: 8px;
  margin: 8px;
  border: 1px solid darkgray;
}

.message-column-width {
  line-height: 160%;
  width: 10rem;
}

.filtration {
  position: absolute;
  display: block;
  left: 60%;
  top: 0px;
  border: 1px solid darkgray;
  padding: 16px;
  margin: 8px;
  color: white;
  font-size: 18px;
}
.checkbox-style label {
  font-size: 18px;
  margin-top: 12px;
}

.phone-list-table {
  position: absolute;
  display: block;
  overflow: auto;
  scrollbar-color: darkgray black;
  width: 60rem;
  top: 0rem;
  bottom: 0rem;
  padding: 8px;
  margin: 8px;
  border: 1px solid darkgray;
}

.phone-list-table button {
  padding: 2px;
  background-color: white;
  color: black;
  font-weight: 600;
}

.phone-list-table .icons {
  background-color: #ffffff00;
  border: 0px;
}

.buttons {
  position: absolute;
  display: block;
  padding: 8px;
  left: 60rem;
  margin: 8px;
}

.buttons button {
  background-color: white;
  color: black;
  font-weight: 600;
  width: 12rem;
  margin-left: 8px;
}

.popup {
  background-color: #454d55;
  position: absolute;
  width: 21rem;
  margin: 8px;
  border: 1px solid darkgray;
  border-radius: 4px;
  box-shadow: 0 10px 16px rgba(156, 156, 156, 0.2); /* Параметры тени */
  padding: 8px 8px 8px 0px;
}

#map {
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  width: 95%;
  height: 100%;
  transition: width 1s, height 0.5s, top 1s, left 1s, background-color 2s,
    transform 2s;
}

.date-range * {
  width: auto;
  height: 2rem;
  margin: 0px;
  display: inline-block;
  padding: 0px 5px;
}

.date-range .range_active {
  font-weight: bold;
  background-color: white;
  color: #343a40;
}

.bold {
  font-weight: bold;
}
.hidden{
  display: none;
}
#tubes-table tr td:first-child {
  width: 106px;
}

#tubes-table tr td:last-child,
#tubes-table thead th:nth-child(3){
  display: none;
}