{%load static%}

body {
    margin: 0;
    padding: 0;
    background-color: #FAFBFC;
    font-family: "Poppins", sans-serif;
    font-weight: normal;
    font-size: 18px;
    line-height: 27px;
    color: #444240;
}

input,
button,
select,
textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.container {
    margin: 0 auto;
    padding: 0;
    width: 1600px;
    display: flex;
    justify-content: space-between;
}


/*Шляпа*/
.main-header {
    margin: 0;
    padding: 10px 20px;
    background-color: #01194E;
    color: #fff;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-general{
    display:flex;
}

.main-navigate {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 0;
}

.main-navigat_static {
  margin-right: 20px;
   width: 350px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-general_title {
    text-decoration: none;
    color: #fff;
    display: block;
    margin: 0;
}

.nav-general_title img {
    margin-top: 7px;
}

.nav-general_title-descripton {
    margin: 0;
    padding: 8px 0 10px 20px;
    font-size: 24px;
    line-height: 26px;
    margin-right: auto;
    text-align: left;
}
.site-nav {
    display: flex;
    list-style: none;

    padding: 0;
}

.site-nav_item {
  display: flex;
  align-items: center;
    margin: 0;
    padding: 0;
    position: relative;
    margin: 0 20px 0 0;

}

.site-nav_item-link {
    list-style: none;
    text-decoration: none;
    color: #fff;
    vertical-align: middle;
    padding-left: 46px;
}

.site-nav_item-link svg {
    position: absolute;
    margin: 0;
    left: 0;
    fill: #B3BACA;
}

.item-active {
    font-size: 18px;
    font-weight: 400;
}

.item-active svg {
    fill: #fff;
}


/*Правая часть меню (пользователь)*/
.user-navigation {
    display: flex;
    align-items: center;
    font-size: 18px;
    line-height: 20px;
    justify-content: center;

}

.user-navigation_point {
    margin: 0 0 0 10px;
}


.user-menu {
    margin-top: 23px;
}

.user-dropdown, .user-menu {
  cursor: pointer;
  z-index: 1000;
}

.user-menu.show .user-dropdown {
  box-shadow: 2px 2px 5px #B3BACA;
  display: block;
}

.user-dropdown {
  position: absolute;
  top: 96px;
  display: none;
  width: 240px;
  background-color: #fff;
}

.dropdown-item {
  color: #000;
    font-size: 16px;
  display: block;
  padding: 10px;
  text-decoration: none;
}

.dropdown-item:active, .dropdown-item:hover {
  background-color: #01194E;
  color: #fff;
    font-weight: 600;
}



/*Заголовок и фильтры*/
.hat-spacer {
    display: flex;
    justify-content: space-between;
}

.subhat-spacer {
    font-size: 36px;
    font-weight: 700;
    margin: 50px 0 30px 0;
    padding: 0;
}


.main {
  height: 90vh;
}


/*Блок с карточками*/
.left-group {
  min-width: 75%;
}

.summary-cards {
    margin: 40px auto;
}
.card-list {
    list-style: none;
    margin: 50px 0 30px 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
}

.card-list_item {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 2px 2px 5px #B3BACA;
    padding: 20px;
    display: flex;
    align-items: center;
    flex-grow: 1;
    margin-right: 20px;
    justify-content: space-between;
}
.card-list_item:last-child {
  margin-right: 0;
}

/* .item-info {
    margin-bottom: -20px;
    padding-bottom: -20px;
} */

.card-list_item-value {
    font-size: 50px;
    line-height: 20px;
    font-weight: 700;
    margin: 0 0 15px 0;
    padding: 0;
}

.card-list_item-description {
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 14px;
    font-weight: 400;
    text-transform: uppercase;
}

.card-list_item::after {
  content: "";
  border-radius: 5px;
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  -webkit-transition: all 2.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-list_item:hover {
  -webkit-transform: scale(1.01, 1.01);
  transform: scale(1.01, 1.01);
}

.box:hover::after {
    opacity: 1;
}


.card-list_grad {
    width: 80px;
    height: 80px;
    padding: 0;
    border-radius: 15px;
    background-image: linear-gradient(135deg, #5630C3, #CE25F4);

    display: flex;
    justify-content: center;
    align-items: center;
}

/*Тепловая карта*/
.map-vis {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 2px 2px 5px #B3BACA;
    padding: 30px;
}

.heat-map {
    display: flex;
    justify-content: space-between;
}

.heat-map_head {
    margin: 0 0 20px 0;
    padding: 0;
    font-size: 22px;
    font-weight: 600;
}

.heat-map_status {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.heat-map_status li {
    padding-left: 25px;
    font-size: 16px;
}





/*правый блок с новостишкой*/

.outage-news {
  margin-top: 50px;
  display: flex;
  flex-direction: row;
  max-width: 19%;
}

.outage-news:after {
    content: "";
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background: transparent;
    background-image: linear-gradient(to right, rgba(86, 48, 195, 1), rgba(86, 48, 195, 0.5));
	opacity: 0.8;
    border-radius: 15px;
}

.outage-news-content {
    color: #fff;
    position: relative;
    font-size: 24px;
    line-height: 36px;
    font-weight: 600;
    z-index: 10;
    min-height: 30%;
}

.moar {
    text-decoration: none;
    color: #FFE000;
    font-size: 18px;
}

.moar img {
    margin-left: 10px;
}


/*Стили для СПИСКА*/
.container {
    margin: 0 auto;
    padding: 0;
    width: 1660px;
    display: flex;
    justify-content: space-between;
}

/*Фильтр*/
.filter-headline {
  width: 100%;
  margin: 0 0 40px 0;
  padding: 0;
  box-shadow: 2px 2px 5px #B3BACA;
}

.filter-group {
  display: flex;
  flex-direction: row;
  align-items:center;
}

.filter-el__list {
  border: none;
  margin: 0 30px 0 0;
  padding: 0;
  padding-bottom: 40px;
}

.filter-listing {
  position: relative;
  top: 40px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
  margin-left: 0;
  padding-left: 0;
}

.filter-listing li {
  margin: 0 20px 0 0;
}

.filter-listing label {
  position: relative;
  display: inline-block;
  line-height: 10px;
}

.enter-lab,
.exit-lab {
  top: -35px;
  left: 10px;
  width: 0;
}

.exit,
.enter {
  box-sizing: border-box;
  font-size: 16px;
  padding: 5px;
  cursor: pointer;
  border: none;
  user-select: none;
  background-color: #FAFBFC;
  border-bottom: 1px solid #FAFBFC;
}

.exit:focus,
.enter:focus {
  outline: 0;
  outline-offset: 0;
  border-bottom: 1px solid #5630C3;
  line-height: 12px;
  font-weight: 400;
}

.date-lab {
  margin-top: -20px;
}

/*Тоггл активности*/
.filter-check {
  height: 0;
  width: 0;
  visibility: hidden;
}

.filter-check-text {
  cursor: pointer;
  width: 44px;
  height: 22px;
  background: #A3A3A3;
  display: block;
  border-radius: 30px;
  position: relative;
    margin-bottom: 3px;
    margin-top: -10px;
}

.filter-check-text:after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.filter-check:checked + label {
  background: #01194E;
}

.filter-check:checked + label:after {
  left: calc(100% - 5px);
  transform: translateX(-100%);
}

.filter-check:active:after {
  width: 20px;
}

/*Кнопка фильтра*/
.form-button {
  text-decoration: none;
  margin-right: 30px; 
  margin-top: 15px;
  padding: 15px 25px;
  border: 2px solid #01194E;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 12px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: #01194E;
  background-color: transparent;
  cursor: pointer;
}
.form-button:hover {
  background-color: #fff;
  box-shadow: 2px 2px 2px #ced4da;
}
.form-button:active {
  color: #fff;
  background-color: #01194E;
  border: solid 2px #01194E;
}
.form-button:focus {
  border: solid 2px #01194E;
  outline: none;
}


/*ТАБЛИЧКА*/
.tabular-data {
  overflow: hidden;
  position: relative;
  color: #3D4655;
}
.data-group {
  border-bottom: 2px solid #F2F2F2;
}
.data-header {
  font-weight: 500;
  font-size: 20px;
  color: #919BAC;
}
.row {width: 100%;}


.exp-info {
  min-width: 65%;
}


.exp-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding-left: 20px;
}
.exp-table {
    right: 0;
    margin-top: 5px;
    margin-left: 40px;
    min-width: 25%;
}

.incedent-close {
    position: relative;
    display:inline-block;
    overflow: hidden;
  padding: 20px 32px;
  line-height: 1.5;
  background-image: linear-gradient(135deg, #5630C3, #CE25F4);

  color: #fff;
  font-weight: 400;
  border-radius: 0;
  margin: .5em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  letter-spacing: .05em;
  transition: .5s ease all;
  max-width:100%;
  border-radius: .25em;
    text-align: center;
    margin: 0;
  padding: .75em 0;
  width: 100%;
    cursor: pointer;
		user-select: none
		transform: translate(-50%, -50%);

	font-weight: 600;
    float: right;
}

.incedent-activate {
  border: 1px solid #919BAC;
  background-color: #FAFBFC;
  position: relative;
  display:inline-block;
  overflow: hidden;
padding: 20px 32px;
line-height: 1.5;
  color: #919BAC;;
  font-weight: 400;
  border-radius: 0;
  margin: .5em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  letter-spacing: .05em;
  transition: .5s ease all;
  max-width:100%;
  border-radius: .25em;
    text-align: center;
    margin: 0;
  padding: .75em 0;
  width: 100%;
    cursor: pointer;
		user-select: none
		transform: translate(-50%, -50%);

	font-weight: 600;
    float: right;
}

.header-row, .tb-row {
  display: flex;
  padding: 0;
  margin: 8px;
}
.tab-1 {width: 6%; padding-left: 15px;}
.tab-2 {width: 6%; margin-right: 20px; text-align: center;}
.tab-3 {width: 6%; margin-right: 20px;}
.tab-4 {width: 12%; margin-right: 20px;}
.tab-5 {width: 25%; margin-right: 40px;}
.tab-6 {width: 12%; margin-right: 20px; text-align: center;}
.tab-7 {width: 12%; margin-right: 20px; text-align: center;}
.tab-8 {width: 8%; text-align: center;}

.oval-green {
    stroke: #10A75E;
    stroke-width: 5px;
}

.oval-red {
    fill: #FAF1F1;
    stroke: #FF4B55;
    stroke-width: 5px;
    filter: drop-shadow(0 0 10px #F89CA1);
}

.row-alarm {
    font-weight: 700;
}

.info-desc p:last-child {
    margin-bottom: 30px;
}

.info-desc p:first-child {
    line-height: 12px;
}

.info-desc-head {
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
}
.open-modal-sticky {
  display: flex;
  background-color: #fff;
  position: sticky;
  top: 0;
  padding: 20px 0;
  margin: 0;
}
.info-desc-content {
  font-size: 14px;
  max-width: 100%;
}
.info-desc-content-list {
  list-style: none;
    margin: 0;
    padding: 0;
  height: 100px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap
}
.info-desc-content-list li {
  page-break-inside: avoid;
  break-inside: avoid;
  margin-right: 40px;
    font-size: 14px;
}
.info-desc-area {
  color: #5630C3;
    font-size: 14px;
    border-bottom: 2px solid #F2F2F2;
}
.info-desc-area:after {
  position: absolute;
  content: '';
  height: 2px;
	bottom: -10px;
  margin: 0 auto;
	left: 0;
  right: 0;
	width: 100%;
	background: #5630C3;
}
.data-right {
    cursor: auto;
    margin-bottom: 20px;
}

.data-right td {
  font-size: 14px;
    padding: 5px 10px;
}
.data-right td:last-child {
  text-align: center;
}
.right-title {
  color: #B3BACA;
  font-size: 12px;
}
.right-title td {
    border-bottom: 1px solid #F2F2F2;
    padding: 0 20px 0 10px;
}


.row-open {
    border-left:3px solid #01194E;
    margin-top: 10px;
    padding-left: 10px;
    cursor: auto;
    padding-bottom: 20px;
}

.data-group:last-child {border:none;}
.data-group .data-expands,
.data-group .expandable {
  will-change:
    max-height,
    padding,
    opacity,
    background;
  transition:
    ease max-height .5s,
    ease padding .5s,
    ease opacity .5s,
    ease background .5s;
}
.data-group .data-expands {
  cursor: pointer;
  padding: 10px 0;
  float:left;
  width: 100%;
}
.data-group .title {font-weight:600}
.data-group .expandable {
  transform-origin: top;
  margin: 0;
  padding: 0;
  font-weight: 400;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}
.data-group .expandable p {
  color: #3D4655;
}

.row-active, .row-open {
  opacity: 1 !important;
}
.row-open {
  max-height: 3000px !important;
  display: flex;
  justify-content: space-between;
}

.expandable {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
}

/*Кнопка таблички*/
.modal-window {
  position: fixed;
  background-color: rgba(255, 255, 255, 0.25);
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  overflow: visible;
}
.modal-window:target {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.modal-window > div {

  width: 50%;
  max-height: 70%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 30px 30px 30px;
  background-color: #fff;
  overflow-y: auto;
  z-index: 200;

  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 2px 2px 8px #B3BACA;
}
.modal-window header {
  font-weight: bold;
}

.modal-close {
  color: #aaa;
  line-height: 50px;
  font-size: 24px;
  position: absolute;
  right: 0;
  text-align: center;
  top: 10px;
  text-decoration: none;
}
.modal-close:hover {
  color: black;
}
.info-desc-text {
  font-size: 12px;
  line-height: 18px;
  margin: 0;
  padding: 0 0 10px 0;
}


/*ЛОГ СОБЫТИЙ*/
.info-desc-log {
  margin: 30px 0;
}

.log-content-btn {
  text-decoration: none;
  color: #5630C3;
  padding: 20px 10px;
  font-size: 16px;
  font-weight: 600;
}

.info-act-messages {
  color: #3D4655;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;

  display: block;
  overflow-block:auto;
  max-height: 300px;
  overflow-y: auto;
}

.info-desc-content {
  padding: 10px;
  border-bottom: 2px solid #F2F2F2;
}

.content-technical,
.comment-technical {
  font-weight: 600;
  color: #919BAC;
}

.message-form {
  margin-top: 1.5rem;
  width: 80%;
}

.message {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #919BAC;
  border-radius: 3px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
  min-height: 100px;
  margin-bottom: 10px;
}

.message-form-btn {
  display: inline-block;
  border-radius: 4px;
  border: none;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 16px 30px;
  color: ;
  margin: 0;
  text-align: center;
  border: 1px solid #919BAC;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.message-form-btn:active {
  color: white;
  background-image: linear-gradient(135deg, #5630C3, #CE25F4);
}

.message-form-btn:hover {
  opacity: 0.75;
  cursor: pointer;
}


/* Карты */
#heat-custom-map {
  max-height: 78vh;
}


@media screen and (max-width: 992px) {
  main {
    width: 100%;
  }
  .data-group .title {display:inline-block;padding-bottom: 1em;}

.card-list {
  flex-wrap: wrap;
}
.main-navigate {
  padding: 10px;
}
.card-list_item,
.card-list_item:last-child {
  width: 34%;
  margin: 20px 20px 0 0;
  flex-grow: 1;
}
.card-list_item:nth-child(even) {
  margin-right: 0;
}
.map-vis {
  max-width: 90%;
}

.left-group {
  padding: 0 !important;
  width: 100%;
  min-width: 100%;
}
.second-line {
  text-align: center;
}
.data-header {
      font-size: 16px;
}
.table-right-desc {
  font-size: 14px;
}
  .main-header,
  .main-head {
    max-width: 100%;
  }
  .container {
    width: 96%;
    text-align: center;
  }
  .user-menu {
    margin-left: auto;
    order: 2;
  }

  .outage-news {
    min-width: 90% !important;
  }
  #heat-custom-map {
    height: 86vh !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .exp-table {
    margin-right: 20px;
    width: 90% !important;
  }
  .exp-info {
    margin-top: 20px;
    margin-left: 0;
    width: 90% !important;
    text-align: left;
    padding-left: 10px;
  }

  .exp-content {
    flex-direction: column-reverse;
    margin-left: 0;
    padding-left: 0;
  }
  .exp-table, .data-right {
    width: 94%;
    justify-content: center;
    text-align: left;
  }

  /* .exp-info {
    text-align: left;
    max-width: 94%;
  } */
.header-row {
  max-width: 96%;
}
.filter-el__list {
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  margin-right: 30px;
}
.filter-listing {
  flex-direction: column;
}
.filter-listing li {
  margin-bottom: 40px;
}
.filter-listing label {
  font-size: 16px;
}
}



@media (max-width: 1299px) {
  .substation-map {
    min-width: 100%;
    margin: 0;
    padding: 0;
  }
.container {
  margin: 0;
  padding: 0;
  max-width: 100%;
  flex-wrap: wrap;
}
.site-nav {
  order: 3;
  margin: 0 auto;
}
.main-navigate {
  padding: 10px 20px;
}
.user-menu {
  position: relative;
  right: 20px;
}
.user-navigation {
  display: flex;
  flex-direction: row-reverse;
  font-size: 16px;
}
.user-navigation_point {
  padding-right: 20px;
}
.nav-general_title-descripton {
  font-size: 20px;
  line-height: 20px;
}

.site-nav_item-link {
  font-size: 16px;
}
.site-nav_item-link svg {
  max-height: 16px;
}

.left-group {
  width: 100%;
  padding: 20px;
}
.user-navigation {
  /* max-width: 70px; */
  font-size: 14px;
}
.card-list {}
.card-list_grad {
  margin-top: 0;
  visibility: hidden;
}

.outage-news {
  all: none;
  margin: 20px;
  min-width: 90%;
  background-image: none;
}

.outage-news-content {
    color: #fff;
    position: relative;
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
    z-index: 10;
    margin: 0;
    padding: 0;
    margin-bottom: 30px;
}

.moar {
  font-size: 16px;
}
.moar img {
  width: 14px;
  margin-left: 5px;
}
.main-footer {
  margin: 0;
  padding: 0 !important;
}
#heat-custom-map {
  height: 82vh !important;
  width: 100%;
  margin: 0;
  padding: 0;
}
}


@media (max-width: 1699px) {
.container {
  width: 100%;
  padding: 10px;
  margin: 0;
}

.site-nav_item-link {
  font-size: 18px;
}
.site-nav_item-link svg {
  max-height: 24px;
}
.card-list_grad {
  max-width: 70px;
  max-height: 70px;
}
.card-list_grad img {
  max-height: 30px;
}
.card-list_item-value {
  margin: 0 0 15px 0;
  font-size: 44px;
  line-height: 15px;
}
.card-list_item-description {
  font-size: 12px;
  line-height: 12px;
}
.outage-news {
  margin-left: 10px;
}
.second-line {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.exp-table {
  margin-right: 30px;
  width: 30%;
}
.exp-info {
  margin-left: 30px;
}
}



/*Футер*/
.main-footer {
    /* margin-top: auto; */
    color: #86939E;
    padding-top: 20px;
    text-align: center;
}
.main-footer p {
  font-size: 16px;
  line-height: 12px;
}


.visually-hidden {
  position: absolute;

  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;

  white-space: nowrap;

  -webkit-clip-path: inset(100%);
          clip-path: inset(100%);

  clip: rect(0 0 0 0);
  overflow: hidden;
}
