@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url("/static/fonts/roboto/roboto-v30-cyrillic_latin-regular.woff2") format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url("/static/fonts/roboto/roboto-v30-cyrillic_latin-700.woff2") format('woff2');
}
body {
  font-family: Roboto;
  font-size: 14px;
}

h1{
  font-family: Roboto;
  font-weight: 700;
  color: #0F1379;
}
h4{
  font-family: Roboto;
  font-weight: 700;
  color: #0F1379;
}

.footer-container {
  background-color: #0F1379 !important;
  border-top: 5px solid #EC0000 !important;
}

header, footer {
  background: #0F1379;
  height: 96px;
  max-width: 1704px;
  margin: 0 auto;        
}

header .nav a {font-size: 18px}

footer div.container {
  background: #0F1379;
  border-radius: 12px;
  height: 96px;
}

a.grey-dark {
  color: #737796;
  text-decoration: none;
}
.text-gray {
  color: #232323;
}
.primary-default {
  color: #0F1379;
}

.breadcrumb li.active {
  color: #0F1379;
}
.container {
  padding: 0;
}
/* контейнер после кофнигуратора расчета АУП */
.container-gray {
  background: #F3F2F8;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.white-box {
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
}
.gray-box {
  border-radius: 24px;
  width: 100%;    
}
.gray-box h4 {
  color: #232323;
  font-size: 24px;
}
.col-form-label {
  color: #232323;
  font-size: 16px;
  font-weight: bold;
}
.blue-box {
  background: #0F1379;
  border-radius: 12px;
  padding: 12px 16px;
}
.table th, .table td {
  background: none !important;
  border-color: #BAC3E1;
  vertical-align: middle;
}
.form-check-input:checked {
  background-color: #0F1379;
  border-color: #0F1379;
}
.noUi-touch-area {
    background-color: #0F1379;
    margin-top: 5px;
    margin-left: 5px;
    height: 8px;
    width: 8px;
    border-radius: 4px;
}
.noUi-connect {
    background: #0F1379;
}
.noUi-horizontal {
  height: 6px;
}
.noUi-horizontal .noUi-handle {
    width: 34px;
    height: 28px;
    right: -17px;
    top: -12px;
}
.noUi-handle:after, .noUi-handle:before {
    content: None;
}
.noUi-horizontal .noUi-handle {
    width: 20px;
    height: 20px;
    border-radius: 10px;
    right: -18px;
    top: -9px;
}

.btn-primary {
  background-color: #0F1379;
  border-color: #0F1379;
}
.btn-secondary {
  background-color: #BAC3E1;
  border-color: #BAC3E1;
  color: #0F1379;
}

.align-middle {
  /* display: flex;
  align-items: center;
  justify-content: flex-end;   */
  vertical-align: middle !important;
  
}
.text-bold {
  font-weight: bold;
}

.nav-tabs .nav-link {
  color: #0F1379;
}

.nav-tabs button[id^="branch-tab-"]:not(#add-branch-btn) {
  font-weight: bold;
}

/* #myTabContent .tab-pane {
  min-height: 600px;
} */

/* Стили для выделения строк с узлами/оросителями */
.branchTable .sprinkler-row {
  background-color: #BAC3E1;
  font-weight: 500;
}

.branchTable .sprinkler-row td {
  vertical-align: middle;
}

.branchTable .section-row {
  background-color: #ffffff;
}

.branchTable .section-row td {
  vertical-align: middle;
}

.branchTable .node-row {
  background-color: #BAC3E1;
  font-weight: 600;
}

.branchTable .node-row td {
  vertical-align: middle;
}


/* изменения в html коде  */
table.parameters_aup td {
    padding: 5.5px 5px; 
}


#annular_bool {
    /* margin-left: auto;  */
    width: 20px; /* ширина чекбокса */
    height: 20px; /* высота чекбокса */
    cursor: pointer; /* курсор при наведении */
    accent-color: #0F1379;
}
#annular_feed {
    display: none;
}

.wiget {
    width: 40%;
    /*max-width: 120px;*/ /* или нужная ширина */
    height: auto;
    padding: 0px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    text-align: right;
    background-color: transparent;
    /*border-color: #0F1379;*/
}
    .wiget:hover {
        border: 2px solid #0F1379; /* более толстая рамка и нужный цвет */        
    }
    .wiget:focus {
        outline: 1px solid #0F1379;
        outline-offset: 0px;
      
    }




  
    .loader-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Добавляем флекс‑центрирование */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    
  }
  .loader {
    
    z-index: 9999;
    width: 11em; height: 11em;    
    border: 1.2em solid transparent;     /* Толщина кольца */
    border-top: 1.2em solid #0F1379;     /* Цвет верха */
    border-radius: 50%;
    animation: load3 1.4s infinite linear;
  }
  
   
  @-webkit-keyframes load3 {
    0% {
      -webkit-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    100% {
      -webkit-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }
  @keyframes load3 {
    0% {
      -webkit-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    100% {
      -webkit-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }



@media (min-width: 300px) {
  h1{
    font-size: 24px;
  }
  .logo {
    height: 55px;
  }
  /* контейнер для всей формы (главная, конфи расчет АУП, основная форма ) */
  .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {    
      max-width: 90%;
      
  }
  .container-gray {
    padding: 10px;
    border-radius: 36px;
  }
  .white-box {
    padding: 10px 20px;
    margin-bottom: 1em;
  }
  .gray-box {
    padding: 10px;
  }
}
@media (min-width: 1600px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
      max-width: 1704px;
  }
  header, footer {
    border-radius: 12px;
  }
  h1{
    font-size: 36px;
  }
  .logo {
    margin-left: 1.5rem !important;
    height: 68px;
  }
  .container-gray {
    border-radius: 36px;
    padding: 30px;
  }
  .white-box {
    padding: 20px 40px;
  }
  .gray-box {
    background: #F3F2F8;
    padding: 20px 40px;
  }
}