:root {
  --content-padding: 20px;
  --main-gap-y: 20px;
  --main-content-gap-x: 10px;
  --bottles-group-gap-x: 10px;
  --bottles-gap-x: 5px;
  --main-container-gap-x: 10px;
  --worload-val-font: 120px;
  --worload-percent-font: 120px;
  --loading-factory-val-font: 28px;
  --loading-factory-title-font: 18px;
  --camers-block-gap-y: 8%;
  --bottle-icon-h: 50px;
  --bottles-group-font: 12px;
  --bottles-groupe-counter-font: 18px;
  --bottle-counter-font: 16px;
  --bottles-groupe-padding: 15px;
  --doughnut-height: 240px;
  --doughnut-width: 240px;
  --workload-diagram-font: 23px;
  --camera-padding: 25px;
  --btn-export-size: 40px;
  --toggle-gap-y: 10px;
  --chart-periods-font: 12px;
  --camera-btn-fullscreen-size: 40px;
  --camera-btn-fullscreen-margin: 40px;
  --container-x-padding: 0;
}

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

/* common */
/* ------------------------------------------------------ */

.body {
  display: flex;
  /* min-height: 100vh; */
  /* background-image: url("../img/background/background-1.png");
    background-size: 13px;
    background-repeat: repeat; */
  color: white;
  font-family: "Century Gothic", sans-serif;
  font-style: normal;
  background-image: url("../img/insystem_wallpaper.png");
  background-size: 100%;
  /* overflow: hidden; */

  height: var(--vh);
  min-height: var(--vh);
  max-height: var(--vh);

}

.body-background-1 {
  /* background: linear-gradient(to left, #33363ced 10%, #191e26f0 30%, #0f141c 100%); */
  min-height: 100%;
  width: 100%;
  height: 100%;
}

/* auto-container */
/* ------------------------------------------------------ */
.auto-container {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
}

.auto-container__top-lay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.auto-container__content {
  position: relative;
  width: 100%;
  height: 100%;
}

/* svg-container */
/* ------------------------------------------------ */
.svg-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.svg-container svg {
  width: 100%;
  height: 100%;
}

/* btn-guide */
/* ------------------------------------------------ */
.btn-guide--min {
  z-index: 100;
  position: absolute;
  top: 0;
  right: 0;
  --size: 13px;
  width: var(--size);
  height: var(--size);
}


/* main content */
/* ================================================ */
.be-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  overflow: hidden;
}

.be-content {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  flex: 1 1 auto;
  /* width: 100%; */
  padding: var(--content-padding);
}

.be-content__elem {}

.be-content__elem:not(:first-child) {
  margin-top: var(--main-gap-y);
}

#icon1 {
  display: block;
  margin: 0;
  padding: 0;
  background: none;
  width: auto;
  height: auto;
}

.main-content {
  position: relative;
  display: flex;
  padding: 0;
  margin-left: calc((var(--main-content-gap-x)) * -1);
  margin-right: calc((var(--main-content-gap-x)) * -1);
  flex: 0 1 auto;
  max-height: 200px;
}

.main-content__elem {
  --margin-x: 10px;
  padding-left: var(--main-content-gap-x);
  padding-right: var(--main-content-gap-x);
  flex: 1 1 auto;
}

.main-content__bottles {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
}

.bottles-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  content: '';
  width: var(--container-x-padding);
  cursor: pointer;
}

.bottles-btn:active {
  background-color: #ffffff6b;
}

.bottles-btn--left {
  top: 0;
  bottom: 0;
  left: 0;
}

.bottles-btn--right {
  top: 0;
  bottom: 0;
  right: 0;
}

.bottles-btn__container {
  width: 12px;
}

.bottles-btn--left .bottles-btn__container {
  transform: rotate(90deg);
}

.bottles-btn--right .bottles-btn__container {
  transform: rotate(-90deg);
}

.main-content__bottles .simplebar-horizontal {
  display: none;
}

.main-container {
  display: flex;
  justify-content: space-between;
  flex: 1 1 auto;
  margin-left: calc((var(--main-container-gap-x)) * -1);
  margin-right: calc((var(--main-container-gap-x)) * -1);
}

.main-container__elem {
  position: relative;
  margin-left: var(--main-container-gap-x);
  margin-right: var(--main-container-gap-x);
}

.main-container__elem-chart {
  flex: 1 0 55%;
}

.main-container__elem-cam {
  flex: 1 1 45%;
  overflow: hidden;
  max-height: 100%;
}

/* ================================================ */

/* bottles block */
/* ================================================ */
/* .main-content__bottles .simplebar-content-wrapper {
    min-height: 100% !important;
    height: 100% !important;
}

.main-content__bottles .simplebar-content {
    min-height: 100%;
    height: 100%;
} */

.bottles-block {
  /* display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-left: calc((var(--bottles-group-gap-x)) * -1);
  margin-right: calc((var(--bottles-group-gap-x)) * -1); */
  /* height: 100%; */
}

.bottles-block {
  display: table;
  margin: 0 calc(var(--bottles-group-gap-x) * -1);
  width: 100%;
  max-height: 100%;
  border-spacing: var(--bottles-group-gap-x) 0;
}



.bottles-block__head {
  display: table-header-group;
  line-height: 1;
}

.bottles-block__head-row {}

.bottles-block__row {
  display: table-row;
}

.bottles-block__cell {
  position: relative;
  display: table-cell;
  padding: 5px 0;
}

.bottles-block__column-gradient {
  bottom: 0;
  left: 0;
  right: 0;
  top: -100px;
  background-image: linear-gradient(rgba(25, 30, 38, 0), rgba(41, 44, 51, 0.5));
  border-radius: 3px;
}

.bottles-block .bottle-counter, .bottles-block .bottle-icon__img {
  z-index: 2;
  position: relative !important;
}

.bottles-block .bottles-block__column-gradient {
  z-index: 1;
  position: absolute !important;
}

.bottles-block__elem {
  margin-left: var(--bottles-group-gap-x);
  margin-right: var(--bottles-group-gap-x);
  height: 100%;
}

.main-content__bottles .simplebar-offset,
.main-content__bottles .simplebar-content-wrapper,
.main-content__bottles .simplebar-content {
  height: 100% !important;
}

/* bottles group */
/* ================================================ */
.bottles-groupe {
  position: relative;
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  align-items: center;
  flex: 1 1 auto;
  /* padding: var(--bottles-groupe-padding); */
  /* padding-top: 0; */
  background-image: linear-gradient(rgba(25, 30, 38, 0), rgba(41, 44, 51, 0.5));
  border-radius: 3px;
  /* overflow: hidden; */
}

.bottles-groupe__elem:not(:last-child) {
  /* margin-bottom: 10px; */
}

.bottles-groupe__btn-guide {
  top: 10px;
  right: 10px;
}

.bottles-groupe__title {
  padding: var(--bottles-groupe-padding);
  padding-bottom: 5px;
}

.bottles-groupe__title-text {
  font-size: var(--bottles-group-font);
  font-weight: 400;
  text-align: center;
}

.bottles-groupe__body {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bottles-groupe__bottles {
  display: flex;
  justify-content: space-around;
  /* margin-top: 10px; */
  padding: var(--bottles-groupe-padding);
  padding-top: 0;
  padding-bottom: 0;
  width: 100%;
  /* margin-left: calc((var(--bottles-gap-x)) * -1); */
  /* margin-right: calc((var(--bottles-gap-x)) * -1); */
}

.item-bottle {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* margin-left: var(--bottles-gap-x); */
  /* margin-right: var(--bottles-gap-x); */
  padding: 0 var(--bottles-gap-x);
}

.item-bottle__elem:not(:last-child) {
  margin-bottom: 7px;
}

.bottle-icon {
  display: flex;
  height: var(--bottle-icon-h);
  width: calc(var(--bottle-icon-h) * .6);
  justify-content: center;
}

.bottle-icon__img {
  width: auto;
  max-width: 100%;
  height: 100%;
}

.bottles-groupe__footer {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  padding: 5px;
  width: 100%;
}

.bottle-counter {
  z-index: 100;
  display: inline-block;
  line-height: 1;
  font-size: var(--bottle-counter-font);
}

.bottles-groupe__counter {
  width: 100%;
  text-align: center;
  font-size: var(--bottles-groupe-counter-font);
  font-weight: 600;
}

/* chart */
/* ------------------------------------------ */
.chart-widget-wrap {
  height: 100%;
}

.chart-widget-wrap__top-lay {
  height: 100%;
}

.chart-widget {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.text-left {
  font-size: var(--chart-periods-font);
  display: grid;
  grid-template-columns: 1fr auto auto;
  justify-content: space-between;
}

.text-left__btn-guide {
  position: relative;
}

.btns-mobile-frame {
  display: flex;
  justify-self: stretch;
  justify-content: space-around;
}

.text-left__btn {
  margin: auto;
  border-bottom: 1px;
  border-style: solid;
  border-image: linear-gradient(90deg, transparent, #292C33, transparent);
  cursor: pointer;
  color: white;
  background: none;
  border: none;
}

.interval-btn-radio:checked+.interval-btn-text {
  color: #50A91A;
}

.datepicker-wrap {}

.datetime-local-input {
  border-bottom: 1px;
  border-style: solid;
  border-image: linear-gradient(90deg, transparent, #292C33, transparent);
  cursor: pointer;
  color: white;
  background: none;
  text-align: center;
  border: 0px;
  text-align: left;
}

.number-input1 {
  font-family: inherit;
  font-size: inherit;
}

.input-sizer {
  display: inline-grid;
  vertical-align: top;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font-family: inherit;
  font-size: inherit;
}

.input-sizer::after {
  content: attr(data-value) "  ";
  visibility: hidden;
  font-family: inherit;
  font-size: inherit;
  white-space: pre-wrap;
  height: 0;
}

.datetime-local-input:hover, .text-left__btn:hover {
  color: #50A91A;
}

.trash-chart {
  display: flex;
  height: 100%;
  max-height: 100%;
  width: 100% !important;
}

.trash-chart__canvas {
  max-width: 100%;
  height: 100% !important;
  width: auto !important;
}

/* camers block */
/* ------------------------------------------ */
.camers-block {
  display: flex;
  height: 100%;
}

.camers-block__elem:not(:last-child) {
  margin-right: 15px;
}

.camers-block__btn-guide {
  top: 7px;
  right: 7px;
}

.camers-block__current {
  position: relative;
  padding: var(--camera-padding);
  width: 100%;
  background-color: #3a3e49;
  border: solid 1px #585858;
  border-radius: 5px;
}

.row-camers {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-height: 100%;
  height: 100%;
}

.row-camers__elem {
  flex: 0 1;
}

.row-camers__elem:not(:last-child) {
  margin-bottom: var(--camers-block-gap-y);
  max-height: 70%;
}

.col-camera-stream {
  flex: 1 1;
}

.camera-stream__img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 100%;
  background-color: rgb(17, 17, 17)
}

.camera-stream__img {
  /* width: auto;
    max-width: 100%; */
  object-fit: contain;
  object-position: center;
  /* height: auto; */
  /* width: 100%; */
  /* max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: 50% 50%; */

  /* height: 100%;
    width: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center; */
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.camera-stream__title {
  position: absolute;
  top: 0;
  left: 0;
  max-width: 100%;
  padding: 3px 5px;
  color: white;
  background-color: rgba(0, 0, 0, .7);
  font-size: 14px;
}

.camers-block__btn-fullscreen {
  position: absolute;
  bottom: var(--camera-btn-fullscreen-margin);
  right: var(--camera-btn-fullscreen-margin);
}

.camera-btn-fullscreen {
  width: var(--camera-btn-fullscreen-size);
  height: var(--camera-btn-fullscreen-size);
  cursor: pointer;
  border-radius: 5px;
}

.camera-btn-fullscreen:hover {
  background-color: rgba(255, 255, 255, .1);
}

.camera-btn-fullscreen__img-wrap {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 5px;
}

.camera-btn-fullscreen__img {
  width: 100%;
  height: 100%;
}

.camers-block__select-control {
  margin-left: 25px;
}

.stat-block {
  position: relative;
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-rows: auto auto;
  grid-row-gap: 10px;
  grid-column-gap: 4%;

  justify-items: center;
  justify-content: center;
  --margin: 5px;
  /* margin-left: calc(var(--margin) * -1); */
  /* margin-right: calc(var(--margin) * -1); */
  height: 100%;
  max-height: 100%;
}

.stat-block {}

.stat-block__elem {
  --margin: 5px;
  /* margin-left: var(--margin); */
  /* margin-right: var(--margin); */
}

.stat-block__btn-guide {
  top: 5px;
  right: 10px;
}

.loading_factory {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: 1fr auto;
  align-items: center;
}

.loading_factory {
  grid-column-start: 1;
  grid-column-end: 4;
  grid-row: 1;
  justify-self: center;
  font-family: 'Fira Sans';
}

.loading_factory {
  grid-template-columns: auto auto;
  grid-template-rows: auto;
  align-items: center;
  justify-content: center;
  width: min-content;
  margin: auto;
}

.loading_factory__elem:not(:last-child) {
  /* margin-right: 10px; */
}

.stat-block__loading_factory {
  flex: 0 1;
}

.stat-block__diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1;
  height: 100%;
  max-height: 100%;
}

.diagram-block {
  display: flex;
  justify-content: space-evenly;
  --margin: 5px;
  margin-left: calc(var(--margin) * -1);
  margin-right: calc(var(--margin) * -1);
  width: 100%;
  height: 100%;
  max-height: 100%;
  flex: 0 1;
}

.diagram-block__elem {
  width: 27%;
  --margin: 5px;
  margin-left: var(--margin);
  margin-right: var(--margin);
  height: 100%;
  max-height: 100%;
  flex: 0 1;
}

.diagram-wrap {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 80%;
  height: 80%;

  /* height: 100%;
    max-width: 100%;
    width: 100%;
    max-width: 150px;
    height: 100%;
    max-height: 100%;
    flex: 0 1;

    height: 100%;
    max-height: 100%;
    width: 100% !important;
    display: flex; */
}

.diagram {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  height: 100%;
  max-height: 100%;
  flex: 0 1;
  max-width: 170px;
  justify-self: center;
  width: 100%;
  min-width: 150px;
}

.diagram__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.diagram__elem:not(:first-child) {
  /* margin-top: 10px; */
}

.diagram__img {
  /*width: auto !important;*/
  /*width: auto !important;*/
  flex: 0 1;
}

canvas#diagram1.diagram__img, canvas#diagram2.diagram__img {
  /*height: var(--doughnut-height);*/
  width: var(--doughnut-width);
}

.diagram__title {
  text-align: center;
  font-size: var(--workload-diagram-font);
  font-family: "Century Gothic", sans-serif;
  font-weight: 400;
}

.workload {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFBA0A;
  line-height: 95px;
  font-family: 'Consolas';
}

.workload_total {}


.loading_factory {
  display: contents;
}

.work_time_block {
  display: flex;
  width: -webkit-fill-available;
  align-items: center;
  justify-content: space-around;
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 400;
}

.workload__val {
  font-size: var(--worload-val-font);
}

.workload__percent {
  /* font-weight: 400; */
  font-weight: normal;
  font-size: var(--worload-percent-font);
}

.workload__title {
  font-size: var(--loading-factory-title-font);
}

.uptime {
  color: #05FF00;
}

.downtime {
  color: #FF0000;
}


#downtime_label, #breaktime_label, #uptime_label {
  font-size: var(--loading-factory-val-font);
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
}

.breaktime {
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  margin-left: 10px;
  margin-right: 10px;
  /*margin-left: -5px;*/
  /*margin-bottom: -5px;*/
  color: #FFBA0A;
}

.breaktime__elem {
  /*margin-left: 5px;*/
  /*margin-bottom: 5px;*/
}


.work-display__item {
  display: flex;
}

.work-display__item-elem:not(:first-child) {
  margin-left: 3px;
}


.item-test {
  --size: 30px;
  width: var(--size);
  height: var(--size);
  background-color: gray;
}

.h-100 {
  height: 100%;
}

#doughnutChart {
  /* display: inline !important; */
}


/* camers select list */
/* --------------------------------------------------------- */
.camera-select-mini-widget .myselect-widget__button {
  padding: 0;
  border: none;
}

.camera-select-mini-widget .myselect-widget__icon {
  padding: 0;
}

.camera-select-mini-widget .myselect-widget__button-arrow {
  display: none;
}

.camera-select-mini-widget .myselect-widget__text {
  display: none;
}

.camera-select-mini-widget .myselect-widget__list-container {
  padding-top: 10px;
  background-color: transparent;
  border: none;
  box-shadow: none;
}

.camera-select-mini-list {
  padding: 0;
  margin: 0;
}

.camera-select-mini-list .mycheckbox__label {
  display: flex;
  align-items: center;
  justify-content: center;
  --size: 30px;
  width: var(--size);
  height: var(--size);
  color: white;
  border: solid 1px lightgray;
  font-size: 20px;
  font-weight: 600;
  border-radius: 3px;
}

.camera-select-mini-list .mycheckbox:hover .mycheckbox__label {
  background-color: orange;
  border-color: orange;
}

.camera-popap .myselect-modal__content {
  display: inline-flex;
  max-height: none;
  height: 100%;
  background: none;
  max-width: none;
}

.camera-popap .myselect-modal__header {
  --modal-head-h: 0;
}

.camera-popap .myselect-modal__header-content {
  position: relative;
}

.camera-popap .myselect-modal__close-btn {
  z-index: 999;
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 5px;
  transition: background .2s ease;
}

.camera-popap .myselect-modal__close-btn:hover {
  background-color: rgba(255, 255, 255, .2);
}

.camera-popap .myselect-modal__body {
  width: 100%;
  height: 100%;
}

.camera-popap .myselect-modal__body-content {
  width: 100%;
  height: 100%;
  padding: 0;
}

.camera-popap #img-stream {
  object-fit: contain;
}

/* connection status */
/* -------------------------------------------------- */
.connection-status {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.connection-status__content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .7);
}

.connection-status--hidden {
  display: none;
}

.connection-status__text {
  font-size: 20px;
  color: white;
  text-align: center;
}

.myselect-widget__button {
  /* max-width: 150px; */
  width: 100%;
}

.chart-status {
  /* padding-left: 15px; */
  /* padding-right: 15px; */
}

/* toggles */
/*--------------------------------------switch-----------------------------------------*/
.toggle_group {
  flex-direction: column;
  align-items: flex-end;
  margin: 0;
  flex: 0 1 auto;
}

.toggle_group__elem:not(:last-child) {
  margin-bottom: var(--toggle-gap-y);
}

.toggle_group__btn-guide {
  position: relative;
  margin-left: auto;
}

.toggle {
  display: flex;
  padding: 0;
}

.toggle__labels {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  margin-left: 5px;
}

.switch {
  position: relative;
  display: inline-block;
  width: var(--toggle-w);
  height: var(--toggle-h);
  margin: 0;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: relative;
  display: inline-flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  background-color: #26282d;
  border: none;
  cursor: pointer;
}

.slider::before {
  position: absolute;
  content: "";
  top: 2px;
  width: calc(100% - 4px);
  padding-bottom: calc(100% - 4px);
  background-color: #ffba0a;
  -webkit-transition: .3s;
  transition: transform ease.3s;
}

input:checked+.slider {
  background-color: #26282d;
}

input:focus+.slider {
  box-shadow: none;
}

.toggle--checkbox input:checked+.slider::before {
  background-color: #ffba0a;
  border: none;
  transform: translateY(calc(var(--toggle-h) - 100% - 3px));
}

.toggle--radio .slider::before {
  background-color: #ffba0a;
  border: none;
  transform: translateY(calc(var(--toggle-h) / 100 * (var(--toggle-current) / var(--toggle-count) * 100)));
}

.slider.round {
  border-radius: 5px;
}

.slider.round::before {
  border-radius: 20%;
}

.green_auto_text {
  color: white;
  margin-bottom: 1px;
  font-size: 10px;
  padding: 0;
  margin: 0;
  text-align: left;
  line-height: 1.5;
  font-size: 8px;
  font-weight: 500;
}

/* toggle-horizontal */
/* ---------------------------------------- */
.main-container__toggle-horizontal-block {
  display: none;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--main-gap-y);
}

.toggle-horizontal {
  display: flex;
  align-items: center;
}

.toggle-horizontal__label {
  margin: 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.toggle-horizontal__control {
  display: inline-flex;
  background: #3A3E49;
  border-radius: 5px;
  cursor: pointer;
}

.toggle-horizontal__checkbox {}

.checkbox-slider-horizontal {
  display: inline-flex;
  background-color: #FFBA0A;
  width: var(--size);
  height: var(--size);
  --toggle-margin: 4px;
  margin: var(--toggle-margin);
  margin-right: calc(var(--size) + var(--toggle-margin));
  border-radius: 5px;
  transition: transform .2s ease;
}

.toggle-horizontal__checkbox:checked+.checkbox-slider-horizontal {
  transform: translateX(var(--size));
}

/* export btn */
/* ------------------------------------------------ */
.btn-group {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* export excel */
/* ------------------------------------------------ */
.excel {
  margin: 0;
}

.btn-export {}

.btn-export__excel {
  font-family: 'Fira Sans';
  font-size: 12px;
}


.btn-export__excel-container {
  margin-top: -5px;
  width: var(--btn-export-size);
  height: var(--btn-export-size);
}

.export-svg {
  fill: rgb(255, 255, 255);
}

.export-svg-2 {
  fill: rgb(255, 255, 255);
}

/* ------------------------------------------------- */
@media (max-width: 1670px) {
  :root {
    --bottles-group-gap-x: 5px;
    --doughnut-height: 240px;
    --doughnut-width: 240px;
    --loading-factory-val-font: 20px;
    --loading-factory-title-font: 16px;
  }
  .work_time_block {
    margin-top: 16px;
    margin-left: 10px;
  }
  .stat-block {
    grid-column-gap: 1%;
  }
}

@media (max-width: 1540px) {
  :root {
    --bottle-counter-font: 16px;
    --bottles-groupe-padding: 10px;
    --worload-val-font: 90px;
    --worload-percent-font: 90px;
    --loading-factory-val-font: 18px;
    --loading-factory-title-font: 14px;
    --doughnut-height: 220px;
    --doughnut-width: 200px;
  }
}


@media (max-width: 1420px) {
  :root {
    --worload-val-font: 80px;
    --worload-percent-font: 80px;
    --doughnut-height: 200px;
    --loading-factory-val-font: 16px;
    --loading-factory-title-font: 12px;
    --doughnut-width: 200px;
  }
  .work_time_block {
    margin-top: 20px;
    margin-left: 15px;
  }
}

@media (max-width: 1300px) {
  :root {
    --worload-val-font: 80px;
    --worload-percent-font: 80px;
    --doughnut-height: 200px;
    --loading-factory-val-font: 14px;
    --loading-factory-title-font: 10px;
    --doughnut-width: 200px;
  }
  .work_time_block {
    margin-top: 25px;
  }
}


@media (max-width: 1269px) {
  :root {
    --content-padding: 20px;
    --main-gap-y: 10px;
    --main-content-gap-x: 5px;
    --bottles-group-gap-x: 5px;
    --bottles-gap-x: 5px;
    --main-container-gap-x: 5px;
    --worload-val-font: 70px;
    --worload-percent-font: 70px;
    --loading-factory-val-font: 14px;
    --loading-factory-title-font: 10px;
    --camers-block-gap-y: 20px;
    --bottle-icon-h: 35px;
    --bottles-group-font: 12px;
    --bottles-groupe-counter-font: 18px;
    --bottle-counter-font: 16px;
    --bottles-groupe-padding: 10px;
    --workload-diagram-font: 20px;
    --camera-padding: 15px;
    --btn-export-size: 40px;
    --toggle-gap-y: 10px;
    --chart-periods-font: 12px;
    --camera-btn-fullscreen-size: 35px;
    --camera-btn-fullscreen-margin: 35px;
    --doughnut-height: 160px;
    --doughnut-width: 160px;
  }

}

@media (max-width: 1199px) {
  :root {
    --content-padding: 10px;
    --main-gap-y: 10px;
    --main-content-gap-x: 5px;
    --bottles-group-gap-x: 5px;
    --bottles-gap-x: 5px;
    --main-container-gap-x: 5px;
    --worload-val-font: 60px;
    --worload-percent-font: 55px;
    --camers-block-gap-y: 10px;
    --bottle-icon-h: 35px;
    --bottles-group-font: 10px;
    --bottles-groupe-counter-font: 14px;
    --bottle-counter-font: 12px;
    --bottles-groupe-padding: 5px;
    --workload-diagram-font: 15px;
    --camera-padding: 10px;
    --btn-export-size: 30px;
    --toggle-gap-y: 5px;
    --chart-periods-font: 10px;
    --camera-btn-fullscreen-size: 25px;
    --camera-btn-fullscreen-margin: 25px;
    --doughnut-height: 160px;
    --doughnut-width: 160px;
  }

  .diagram {
    min-width: 100px;
  }
  .work_time_block {
    margin-top: 5px;
  }
  .diagram__elem:not(:first-child) {
    margin-top: 15px;
  }
}

@media (max-width: 991px) {
  :root {
    --content-padding: 10px;
    --main-gap-y: 10px;
    --main-content-gap-x: 5px;
    --bottles-group-gap-x: 5px;
    --bottles-gap-x: 5px;
    --main-container-gap-x: 5px;
    --worload-val-font: 35px;
    --worload-percent-font: 35px;
    --loading-factory-val-font: 13px;
    --loading-factory-title-font: 7px;
    --camers-block-gap-y: 20px;
    --bottle-icon-h: 35px;
    --bottles-group-font: 10px;
    --bottles-groupe-counter-font: 14px;
    --bottle-counter-font: 12px;
    --bottles-groupe-padding: 5px;
    --workload-diagram-font: 12px;
    --camera-padding: 10px;
    --btn-export-size: 30px;
    --toggle-gap-y: 5px;
    --chart-periods-font: 10px;
    --camera-btn-fullscreen-size: 25px;
    --camera-btn-fullscreen-margin: 25px;
    --doughnut-height: 120px;
    --doughnut-width: 120px;
  }

  .switch {
    --toggle-w: 15px !important;
  }

  .diagram {
    min-width: 70px;
  }

  .workload {
    line-height: 70px;
  }
}

@media (max-width: 767px) {
  :root {
    --content-padding: 10px;
    --main-gap-y: 30px;
    --main-content-gap-x: 0;
    --bottles-group-gap-x: 5px;
    --bottles-gap-x: 5px;
    --main-container-gap-x: 5px;
    --worload-val-font: 55px;
    --worload-percent-font: 45px;
    --camers-block-gap-y: 20px;
    --bottle-icon-h: 35px;
    --bottles-group-font: 12px;
    --bottles-groupe-counter-font: 14px;
    --bottle-counter-font: 12px;
    --bottles-groupe-padding: 5px;
    --workload-diagram-font: 15px;
    --camera-padding: 10px;
    --btn-export-size: 30px;
    --toggle-gap-y: 5px;
    --chart-periods-font: 12px;
    --camera-btn-fullscreen-size: 25px;
    --camera-btn-fullscreen-margin: 25px;
    --container-x-padding: 33px;
    --doughnut-height: 160px;
    --doughnut-width: 160px;
  }

  .body {
    min-height: 100vh;
    height: 100%;
    max-height: none;
  }

  .container-x {
    padding-left: var(--container-x-padding);
    padding-right: var(--container-x-padding);
  }

  .be-content {
    padding: 0;
  }

  .be-wrapper {
    flex-direction: column;
    padding: 18px 0;
    padding-bottom: 100px;
    max-height: none;
  }

  .main-container__elem-chart {
    flex: 1 1;
  }

  .main-container__elem:not(:first-child) {
    margin-bottom: var(--main-gap-y);
  }

  .main-content__bottles {
    overflow-x: scroll;
  }

  .bottles-block {
    width: auto;
  }

  .main-container {
    flex-direction: column-reverse;
  }

  .diagram__block {
    display: flex;
  }

  .diagram__title {
    flex: 0 1;
  }

  .toggle_group {
    display: none;
  }

  .camers-block__current {
    border-radius: 0;
    padding: 0;
    border: none;
  }

  .row-camers__elem:not(:last-child) {
    margin-bottom: var(--main-gap-y);
  }

  .text-left {
    z-index: 999;
    position: fixed;
    padding: 13px 33px 22px 33px;
    padding-top: 13px;
    padding-bottom: 22px;
    padding-left: var(--container-x-padding);
    padding-right: var(--container-x-padding);
    bottom: 0;
    left: 0;
    width: 100%;
    height: 93px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    background: linear-gradient(197.95deg, #31353D 4.37%, #191E26 103.8%);
    box-shadow: -4px 4px 10px rgba(0, 0, 0, 0.14), inset 3px 4px 4px rgba(211, 211, 211, 0.03);
  }

  .datepicker-wrap {
    grid-row: 1;
    justify-self: center;
  }

  .btns-mobile-frame {
    justify-content: space-between;
    grid-row: 2;
    background: #2E3239;
    box-shadow: inset 0px 3px 6px rgba(0, 0, 0, 0.25);
    border-radius: 3px;
    padding: 5px;
  }

  .text-left__btn {
    display: flex;
    margin: 0;
  }

  .interval-btn-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    white-space: nowrap;
    color: rgba(255, 255, 255, .36);
  }

  .interval-btn-text:hover {
    color: white;
  }

  .interval-btn-radio:checked+.interval-btn-text {
    color: #FFBA0A;
    background: #191E26;
    box-shadow: -4px 4px 10px rgba(0, 0, 0, 0.14), inset 3px 4px 4px rgba(214, 214, 214, 0.03);
    border-radius: 3px;
  }

  .datetime-local-input {
    color: rgba(255, 255, 255, .50);
  }

  .datetime-local-input:hover, .text-left__btn:hover {
    color: white;
  }

  .main-container__toggle-horizontal-block {
    display: flex;
  }

  .bottles-block__column-gradient {
    display: none;
  }

  .bottles-block__cell {
    box-shadow: inset 8px 0 4px -8px rgba(211, 211, 211, 0.363);
    background-color: #31353D;
  }

  .bottles-block__cell-group-counter {
    background: #0F131B;
    border-radius: 0 0 13px 13px;
    box-shadow: none;
  }

  .bottles-block__head-cell {
    border-radius: 13px 13px 0 0;
    box-shadow: inset 8px 4px -8px rgba(211, 211, 211, 0.363);
  }

  .bottles-groupe {
    background: linear-gradient(197.95deg, #31353D 4.37%, #191E26 103.8%);
    box-shadow: -4px 4px 10px rgba(0, 0, 0, 0.14), inset 3px 4px 4px rgba(211, 211, 211, 0.03);
    border-radius: 13px;
  }

  .bottles-groupe__footer {
    align-items: center;
    padding: 5px;
    background: #0F131B;
    border-radius: 0 0 13px 13px;
  }

  .stat-block {
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 5%;
    display: flex;
  }

  .workload {
    line-height: 30px;
    margin-bottom: 45px;
  }

  .diagram__elem:not(:first-child) {
    margin-top: 10px;
  }

  .stat-block__elem:not(:last-child) {
    margin-bottom: var(--main-gap-y);
  }

  /* .loading_factory .diagram__title {
    font-size: 27px;
    line-height: .8;
    font-weight: 200;
  } */

  .ant-picker-panels {
    flex-direction: column;
  }

  .diagram {
    grid-row: 2;
  }

  .workload__title {
    /* white-space: nowrap; */
    white-space: normal;
  }

  .camera-stream__img {
    position: relative;
  }

  .chart-widget-wrap {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    padding-bottom: 70%;
  }

  .chart-widget-wrap__top-lay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 575px) {
  :root {
    --content-padding: 10px;
    --main-gap-y: 30px;
    --main-content-gap-x: 0;
    --bottles-group-gap-x: 5px;
    --bottles-gap-x: 5px;
    --main-container-gap-x: 5px;
    --worload-val-font: 55px;
    --worload-percent-font: 45px;
    --camers-block-gap-y: 20px;
    --bottle-icon-h: 35px;
    --bottles-group-font: 12px;
    --bottles-groupe-counter-font: 14px;
    --bottle-counter-font: 12px;
    --bottles-groupe-padding: 5px;
    --workload-diagram-font: 15px;
    --camera-padding: 10px;
    --btn-export-size: 30px;
    --toggle-gap-y: 5px;
    --chart-periods-font: 12px;
    --camera-btn-fullscreen-size: 25px;
    --camera-btn-fullscreen-margin: 25px;
    --container-x-padding: 33px;
    --doughnut-height: 140px;
    --doughnut-width: 140px;
  }
  .workload {
    line-height: 50px;
    margin-bottom: 20px;
  }
}

@media (max-width: 370px) {
  :root {
    --content-padding: 10px;
    --main-gap-y: 30px;
    --main-content-gap-x: 0;
    --bottles-group-gap-x: 5px;
    --bottles-gap-x: 5px;
    --main-container-gap-x: 5px;
    --worload-val-font: 50px;
    --worload-percent-font: 45px;
    --loading-factory-val-font: 13px;
    --loading-factory-title-font: 7px;
    --camers-block-gap-y: 20px;
    --bottle-icon-h: 35px;
    --bottles-group-font: 12px;
    --bottles-groupe-counter-font: 14px;
    --bottle-counter-font: 12px;
    --bottles-groupe-padding: 5px;
    --workload-diagram-font: 15px;
    --camera-padding: 10px;
    --btn-export-size: 30px;
    --toggle-gap-y: 5px;
    --chart-periods-font: 12px;
    --camera-btn-fullscreen-size: 25px;
    --camera-btn-fullscreen-margin: 25px;
    --container-x-padding: 15px;
    --doughnut-height: 100px;
    --doughnut-width: 100px;
  }

  .diagram {
    min-width: 70px;
  }

  .work_time_block {
    margin-top: 15px;
  }

  .workload {
    line-height: 50px;
    margin-bottom: 0px;
  }

  .interval-btn-text {
    padding: 5px 5px;
  }
}

@media (max-width: 420px) {
  :root {
    --worload-val-font: 50px;
    --worload-percent-font: 45px;
    --loading-factory-val-font: 13px;
    --doughnut-height: 100px;
    --doughnut-width: 100px;
  }

  .diagram {
    min-width: 70px;
  }

  .work_time_block {
    margin-top: 15px;
  }

  .workload {
    line-height: 50px;
    margin-bottom: 0px;
  }
}

@media all and (orientation:portrait) and (min-height: 1000px) and (min-width: 777px) {
  .main-container {
    flex-direction: column-reverse;
  }

  .main-container__elem:not(:first-child) {
    margin-bottom: var(--main-gap-y);
  }
}
