/* нижнее меню */

.psm-tab-bar {
    background-color: var(--color-primary);
    padding: 0 20px;
    display: flex;
    position: fixed;
    z-index: 999999;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 53px;
    justify-content: space-between;
  }

@media screen and (min-width: 768px) {
  .psm-tab-bar {
    display: none;
  }
}

.psm-hmi-role {
    position: fixed;
    z-index: 1001;
    left: 16px;
    top: 76px;
    display: flex;
    height: calc(100% - 92px);
    width: var(--width-menu) !important;
    margin-top: 0;
    margin-left: 0;
}

.psm-width-menu {
    height: 100%;
    margin: 0
}

.scada_modal_form.modal_map_object_1 {
    min-width: var(--width-menu) !important;
    max-height: calc(100% - 92px);
    display: block;
    overflow: auto;
    overscroll-behavior: contain;
    right: 16px;
    top: 76px;
}

.scada_modal_form .body {
    border-top-right-radius: 0 !important;
    border-top-left-radius: 0 !important;
    padding: 16px;
  }

  svg:not(:root) {
    overflow: hidden;
  }

  .psm-tab-bar .tab-indicator {
    position: absolute;
    background-color: var(--color-body);
    width: 66px;
    height: 40px;
    border-radius: 0 0 50px 50px;
    z-index: 1008;
    transform: translateX(-6px);
    transition: transform 0.3s ease-out;
  }
  .psm-tab-bar .tab-indicator .tab-indicator-left,
  .psm-tab-bar .tab-indicator .tab-indicator-right {
    background-color: var(--color-body);
    height: 16px;
    width: 16px;
    position: absolute;
  }
  .psm-tab-bar .tab-indicator .tab-indicator-left:after,
  .psm-tab-bar .tab-indicator .tab-indicator-right:after {
    content: "";
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    display: block;
  }
  .psm-tab-bar .tab-indicator .tab-indicator-left {
    left: -16px;
  }
  .psm-tab-bar .tab-indicator .tab-indicator-left:after {
    border-radius: 0 22px 0 0;
  }
  .psm-tab-bar .tab-indicator .tab-indicator-right {
    right: -16px;
  }
  .psm-tab-bar .tab-indicator .tab-indicator-right:after {
    border-radius: 22px 0 0 0;
  }
  .psm-tab-bar .tab-item {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 53px;
  }
  .psm-tab-bar .tab-item .tab-item-inner {
    position: absolute;
    display: flex;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  }
  .psm-tab-bar .tab-item .tab-item-inner svg {
    width: 60%;
    stroke: var(--color-primary-contrast); 
    fill: transparent;
    stroke-width: 1.5;
      stroke-miterlimit: 10;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-dasharray: 400; 
  }
  .psm-tab-bar .tab-item.active .tab-item-inner {
    transform: translateY(-20px);
    transition-delay: 0.2s;
    background-color: var(--color-primary);
    z-index: 1009;
    box-shadow: 0 5px 5px 0px rgba(0, 0, 0, 0.25);
  }
  .psm-tab-bar .tab-item.active .tab-item-inner svg {
    stroke: var(--color-primary-contrast);
    animation: draw 1s reverse; 
  }

  .ui.vertical.menu .header.item {
    background: var(--color-body);
  }


@media screen and (max-width: 767px) {
  /* Навигация для мобильных */

  .page-content {
    overflow: hidden;
  }
  .page-content * {
    box-sizing: border-box;
  }

  .psm-opacity-\.9 {
    opacity: 1;
  }

}

@media screen and (max-width: 767.98px) {

  .page-footer {
    display: none;
    }

  .ui.menu .dropdown.item .menu {
    background: none;
    box-shadow: none;
    }

  #navbar.ui.menu.navbar-menu-open {
    height: calc(100% + 10px);
    overscroll-behavior: contain;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .psm-hmi-role.menu-hide {
    display: none;
  }

  .twelve.wide.column.menu-hide {
    display: none;
  }

  .four.wide.column.menu-hide {
    display: none;
  }

   .scada_modal_form.menu-hide {
    display: none;
  }

  .psm-hmi-role.page-content.menu-open {
    display: block;
  }

}

@media screen and (max-width: 769px) {

  .psm-opacity-.9 {
    opacity: 1;
  }

  div#scada_modal_form {
    width: 100%;
    left: 0;
    top: 0;
    overflow: auto;
    min-height: 100%;
  }

  #navbar {
    min-height: 60px;
    top: -60px;
  }

  .page-content.psm-hmi-role {
    margin-top: 0;
    min-height: calc(100% - 52px);
    min-width: 100%;
    left: 0;
    top: 0;
  }

  .psm-width-menu {
    width: 100% !important;
  }

  #navbar.navbar-menu-open .item {
      padding: 16px;
  }

  .ui.dropdown .menu {
    position: sticky;
    box-shadow: none;
    border: none;
    background: none;

  }

  .scada_modal_form .header {
    display: none;
  }

  .ui.vertical.menu .active.item, .ui.vertical.menu .active.item:hover {
    background: var(--color-primary-light-2);
    border: 1px solid var(--color-primary);
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    color: var(--color-text-dark:);
  }
      
}

@media screen and (max-width: 767.98px) {
  .page-content {
    margin-top: 16;
  }
}