
* {
    font-family: 'Roboto', sans-serif !important;
    box-sizing: border-box;
}

.tab-wrapper {
  display: flex;
  height: 50vh;
  
}

.tab {
  width: 20%;
  min-width: 150px;
  background-color: #f1f1f1;
  border: 1px solid #ccc;
  display: flex;
  flex-direction: column;
  overflow: auto

}


.tab button {
  background-color: inherit;
  color: black;
  padding: 10px 8px;
  width: 100%;
  border: none;
  outline: none;
  text-align: left;
  font-size: 11pt !important;
  cursor: pointer;
  transition: 0.3s;
}

.tab button:hover {
  background-color: #ddd;
}

.tab button.active {
  background-color: #ccc;
}

.tabcontent {
  flex-grow: 1;
  display: none;
  
  border: 1px solid #ccc;
}

.tab, .tabcontent {
  height: 100%; /* вместо 50vh */
}
.tabcontent.active {
  display: block;
}

#canvas-container {
  width: 100%;
  height: 60vh;
  border: 1px solid black; /* Черная граница */
  position: relative;
  overflow: hidden;
}

.hidden-load{
    display: none;
}
.container-foundation{
    margin: 10px 0;
    padding: 25px;
    width:100%;
    border: 1px solid #007bff;
    border-radius: 12px;
    overflow-x: auto;
}
.row-foundation {
  flex-wrap: nowrap
}
.col-min-w{
  min-width: 100px;
}
.form-control{
 font-family: 'Roboto', sans-serif;
 font-size: 11pt !important; 
 text-align: center;
 padding: 5px 0;
 
}
.form-in-table{
  width: 5em; 
  min-width: 5em;
}
.form-in-foundation{
  width: 10em; 
  min-width: 10em;
}
.form-in-select{
  font-size: 11pt;
  min-width: 20em;
  width: 20em; 
}

.form-select{
    width: 100%;
    font-family: 'Roboto', sans-serif;
    font-size: 11pt !important;  

    text-align: left !important;
    padding: 5px 0 !important;
    padding-left: 5px !important;
    padding-right: 30px !important;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 17px;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 13px;
    width: 13px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: #2196F3;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(13px);
    -ms-transform: translateX(13px);
    transform: translateX(13px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 17px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }

label{
    width: 100%;
    font-size: 11pt !important; 
}
.form-label-name{
    width: 100%;
    font-size: 11pt !important; 
    padding-right: 10px; /* Внешний отступ справа */       
   }
.table-found {
    border-collapse: separate;
    border-spacing: 0 5px; /* 0 — горизонтальные, 5px — вертикальные отступы между строками */
    font-family: 'Roboto', sans-serif;
    font-size: 11pt;
  }
  



  .file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  
  .file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f7f7f7;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
  }
  
  .file-icon {
    width: 48px;
    height: 48px;
    margin-right: 12px;
  }
  
  .file-name {
    flex-grow: 1;
    font-weight: 500;
    font-size: 11pt;
  }
  
  .file-download {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
  }
  
  .file-download:hover {
    text-decoration: underline;
  }
  
  
  
  

.row-properties-object{
    padding: 0;
    margin: 5px 0;
}

.point-number{
    display: flex; /* Включаем flexbox */
    
    margin: 0px;
    padding:0px;
    min-width: 50px;
    
}


.foundation-btn-x, .wall-btn-x, .column-btn-x{
    display: flex; /* Включаем flexbox */
    flex-direction: column; /* Располагаем элементы вертикально */ 
    justify-content: flex-end;  /* Элементы будут прижаты к низу */    
    margin: 0px;
    padding:0px;
          
}




.btn-container{
    display: flex; /* Включаем flexbox */    
    align-items: center; /* Центрируем элементы по горизонтали */
    justify-content: center; /* Центрируем элементы по вертикали */
    margin: 0px;
    padding:0px;
    min-width: 150px;
    margin-top: 10px;
}




.form-container-properties-object{
    padding:0px !important;
    margin: 0 !important;
}

.grunt-name{
    min-width: 150px;
 }
 .grunt-input{
    min-width: 75px;
 }



.load-btn-x{
    display: flex; /* Включаем flexbox */
    flex-direction: column; /* Располагаем элементы вертикально */
    align-items: center; /* Центрируем элементы по горизонтали */
    justify-content: center; /* Центрируем элементы по вертикали */
    margin: 0px;
    padding:0px;
    max-width: 50px;
}


.load-input{
    
    flex-direction: column; /* Располагаем элементы вертикально */
    align-items: center; /* Центрируем элементы по горизонтали */
    min-width: 150px;
    height: 100%;
    margin-top: 5px;
    margin-left: 10px;  /* Внешний отступ слева */
    margin-right: 10px; /* Внешний отступ справа */
    
}
  .row-panel-main{
    padding: 3px 16px;
  }
    
  .container-input_retaining {
    padding-left: 10px;
  }



/* Общие стили для обоих */
#id_coordinate_mode_0,
#id_coordinate_mode_1, 
#id_beton_preparation_0,
#id_beton_preparation_1 {
    appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    max-width: 16px;
    max-height: 16px;
    margin: 0 !important;
    padding: 0 !important;
    background-color: white;
    border: 1px solid #666;
    cursor: pointer;
    vertical-align: middle;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Скругление и границы для "Абсолютные" */
#id_coordinate_mode_0, #id_beton_preparation_0 {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border-right: none;
}

/* Скругление и границы для "Относительные" */
#id_coordinate_mode_1, #id_beton_preparation_1 {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-left: none;
}

/* Активный стиль — синий фон, синяя граница */
#id_coordinate_mode_0:checked,
#id_coordinate_mode_1:checked,
#id_beton_preparation_0:checked,
#id_beton_preparation_1:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.col-coord {
    display: flex;
    align-items: center;  /* Центрируем по вертикали */
    flex-wrap: nowrap;  /* Запрещаем перенос на новую строку */
}

.col-coord label {
    white-space: nowrap;  /* Запрещаем перенос текста в метках */
}



/* 📱 Медиа-запрос для мобильной адаптации */
@media (max-width: 900px) {
    .foundation-input, .column-input, .wall-input {
        min-width: 70px;
        max-width: 110px;
        padding: 0 5px;
    }

    .table-found {
        
        font-family: 'Roboto', sans-serif;
        font-size: 10pt;
      }

    

 .grunt-name{
    min-width: 100px;
 }
 .grunt-input{
    min-width: 50px;
 }
    .form-control{
        width: 100%;
        font-size: 10pt !important; 
        text-align: center;
        padding: 2px 0;      
       }

    .form-label-name {
        font-size: 10pt !important;
    }


    .foundation-btn{
        display: flex; 
        align-items: center;        /* выравнивание по вертикали */
        margin: 0px;
        padding:0px;
        width:100%;    
        margin:0 5px;
        padding: 5px 0;
        height: 100%;
        font-size: 11pt !important;
    }

    .btn-container{
        
        min-width: 100px;
        max-width: 135px;
        margin-top: 5px;
    }

    .form-select{
        
        font-size: 10pt !important; 
        
    }

    label{
        font-size: 10pt !important; 
    }



}

