.tops_arrangement_title{
    font-size: 20px;
    font-weight: 700;
}

.tops_arrangement_select_box:hover{
    color: #00559c;
}
/* okleina blatu */
.veneer_box .box_title{
    font-weight: bold;
    padding: 0;
}
  
.top_veneering_outer_box{
    display: flex;
    flex-direction: row;
}

.top_veneering_box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-width: 20px;
    /*padding: 5px;*/
    border: 1px #dee2e6 solid;
    border-right: 0;
}

.top_veneering_section{
    padding: 0;
}

.top_veneering_box:last-of-type{
    border-right: 1px #dee2e6 solid;
}

.top_veneering_box .veneering_r1{
    border-bottom: 1px #dee2e6 solid;
}

.veneering_r1, .veneering_r2{
    width: 100%;
    text-align: center;
    padding: 5px;
}

.chbx_veneer_box{
    height: 34px;
    width: 34px;
    align-content: center;
}

.venner_select_top{
    border: 1px solid #666 !important;
    margin-right: 10px;
}

.venner_select_top .select2-search__field{
    outline: none;
    border-radius: 3px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.select2-results__option--highlighted[aria-selected] {
    background: #00559c !important;
}

.select_venner_outer  .select2-dropdown{
    max-width: 600px !important;
    width: 95vw !important;
}

.select_venner_outer  .select2-container{
    max-width: 600px !important;
    width: 100% !important;
}

#order_veneer_box label{
    font-weight: bold;
}
/* okleina koniec */
/* cnc i svg */
.top_cnc_opeartions_list{
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
}
.cnc_title{ 
    font-weight: bold;
}

.top_drawing{
    margin: 1px;    
}

#top_preview_1 svg{
    max-width: 100%;
    width: 100%;
    background: #fafafa;
}

.cnc_add_div{
    padding-left: 5px;
}

.cnc_add_div button{
    border: 1px #f4f4f4 solid;
    padding: 0;
    padding-top: 2px;
    padding-bottom: 2px;
    width: 150px;
    text-align: center;
    color: #fff !important;
    background-color: #00559c !important;
    border-color: #00559c;
    box-shadow: inset 0 32px 24px -24px hsla(0, 0%, 100%, .3), 2px 2px 4px 0 rgba(0, 0, 0, .2);
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    margin: 2px;
}

.cnc_div{
    display: flow-root;
    background: #fafafa;
}

.cnc_div div{
    padding-bottom: 1px;
    height: auto;
    background: none;
    margin: 0;
    padding-left: 10px;
}

.cnc_div .col-xs-24:first-of-type{
    position: relative;
    background: #f4f4f4;
    padding: 5px;
    padding-left: 5px !important;
}

.cnc_div .col-xs-24:first-of-type button{
    position: absolute;
    right: 5px;
    top: 10px;
    background: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border-radius: 50%;
    color: #ee2930;
    text-decoration: none;
    border: 1px #ee2930 solid;
    background: #fff;
    
}

.cnc_div .col-xs-24{
   width: 100%;
   float: left;
}

.cnc_div .col-xs-12{
    width: 50%;
    float: left;
    background: #fafafa;
    margin-bottom: 2px;
    min-height: 25px;
    /*display: flex;
    align-items: center;*/
}

.top_drawing hr{
    width: 100%;
    color: #f4f4f4;
    margin: 10px 0 !important;
}

.cnc_div .col-xs-24:first-of-type button svg{
    display: none;
}
.cnc_div .col-xs-24:first-of-type button::before{
    content: "\E923";
    font-family: kronosfera !important;
    speak: none;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* cnc i svg koniec */

/* lączenie blatów */
.connections_box .box_title{
    font-weight: bold;
    padding-left: 0;
    padding-bottom: 3px;
}
.connections_box{
    margin: 5px;
}

.connections_header{
    border-bottom: 1px #dee2e6 solid;
    padding: 8px;
    font-weight: bold;
}

.connection_number{
    padding: 8px;
    border-bottom: 1px #dee2e6 solid;
}

.connection_number:last-of-type{
    border-bottom: none;
}

.connections_col{
    border: 1px #dee2e6 solid;
    padding: 0;
}

.connections_col_2{
    border-left: none;
}

.top_connection_col_2_row  select{
    margin-left: 8px;
    margin-top: 28px;
}

.only_one_connection{
    margin-top: 5px !important;
}

@media (max-width: 576px){
    .connection_number{
        display: inline;
        border: none;
    }

    .connections_col:first-of-type{
        border-bottom: none;
    }

    .connections_col_2 .connections_header{
        border-left: 1px #dee2e6 solid;
    }

    .top_connection_col_2_row select{
        margin: 0;
    }

    .connections_col_2 .top_connection_col_2_row{
        border-left: 1px #dee2e6 solid;
        align-items: center;
        display: flex;
        justify-content: center;
        padding: 8px;
    }

    .connections_body_col_1{
        padding: 8px;
    }
}
/* lączenie blatów koniec */

/* narożniki */
.tops_corners_outer{
    
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: baseline;
}

.tops_corner_box {
   
    padding: 10px;
    
    justify-content: center;
    justify-items: flex-start;
    display: flex;
    flex-direction: column;
}

.tops_corners_title{
    font-weight: bold;
    padding-left: 5px;
}

.tops_corner_box input{
    font-size: 1rem;
    line-height: 1.2;
    color: #262626;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #e5e5e5;
    transition: border-color .2s ease-in-out, box-shadow .2s ease-in-out, background .2s ease-in-out;
    border-radius: 5px;
    padding: 5px 10px !important;
    margin-bottom: 5px;
}

.tops_corner_box select{
    font-size: 1rem;
    line-height: 1.2;
    color: #262626;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #e5e5e5;
    transition: border-color .2s ease-in-out, box-shadow .2s ease-in-out, background .2s ease-in-out;
    border-radius: 5px;
    padding: 3px 10px !important;
    margin-bottom: 5px;
}

.top_connection_col_2_row select{
    font-size: 1rem;
    line-height: 1.2;
    color: #262626;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #e5e5e5;
    transition: border-color .2s ease-in-out, box-shadow .2s ease-in-out, background .2s ease-in-out;
    border-radius: 5px;
    padding: 3px 10px !important;
    
}  

.tops_corner_box input:focus-visible, select:focus-visible{
    border: 1px #666 solid;
    outline: none;
}

.tops_corner_box input:active, select:active{
    border: 1px #666 solid;
    outline: none;
}
/* narożniki koniec */

label input[type=radio]{
   /* position: relative;
    display: inline-block;
    width: 1.375rem;
    height: 1.375rem;*/
    margin-right: .5rem;
    /*vertical-align: middle;*/
    }

.last_top_element_row_checkbox_outer{
    border-bottom: 1px solid #e5e5e5;
}

.top_order_step1_title, .top_order_step2_title{
    color: #00559c;
    font-size: 1.5rem;
}

.top_order_step_title {
    border-bottom: 1px solid #e5e5e5;
    width: 100%;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

#top_connections .col-xs-24{
    width: 50% !important;
}

@media (min-width: 768px){
    #top_connections .col-sm-6{
        width: 25% !important;
    }
}

.top_element_head_row{
    font-weight: bold;
}

.top_element_row{
    display: flex;
    flex-direction: row;
    width: 100%;
    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
    border-top: 1px solid #e5e5e5;
    /*padding: 8px;*/
    align-items: center;
    padding: 0;
}

.top_element_row:last-of-type{
    border-bottom: 1px solid #e5e5e5;
}
.top_element_row_col{
    flex: 1;
    padding: 8px;
    height: 100%;
    border-right: 1px solid #e5e5e5;
    align-items: center;
    display: flex;
}

.top_element_row_col:last-of-type{
    border-right: none;
}

.top_element_row_col span{
    padding-right: 5px;
}

.top_element_row_checkbox{
    flex: 4;
    padding-right: 58px;
}

.top_element_edge_row{
    flex: 4;
    padding-right: 58px;
}

.top_element_mob_label{
    font-weight: bold;
    display: none;
}

.top_element_mob_label:after{
    content: "";
}

.top_element_row_col input{
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    padding: 5px 10px !important;
    width: 70px;
    font-size: 1rem;
    line-height: 1.2em;
    text-align: center;
}

.comment_box input{
    width: 100%;
    text-align: left;
}

.top_element_row input[type="checkbox"]{
    width: 12px;
    height: 12px;
    margin-right: 8px;
}

@media (max-width: 325px){
    .top_element_mob_label{
        display: block !important;
    }
    .top_order_img label {
        text-align: left;
        margin-right: 0;
    }
    .top_element_row_checkbox {
         padding-right: 8px;
    }
}

@media (max-width: 768px){

    .top_element_row_col{
        padding-top: 5px;
        padding-bottom: 5px;
        justify-content: flex-start; 
        width: 100%;
        border-right: none;
    }

    .top_element_row_col:last-of-type {
        border-bottom: 1px #e5e5e5 solid;
    }

    .top_element_edge_row:last-of-type{
        border-bottom: none;
    }
    

    .top_element_head_row{
        display: none;
    }

    .top_element_row{
        flex-direction: column;
    }

    .top_element_mob_label{
        display: inline-block;
        width: 115px;
    }

    .top_element_row_col .default-form{
        display: inline-block;
    }

    .top_element_mob_label:after{
        content: ":";
    }

    .top_element_row_1 {
        margin-top: 10px;
        border-top: 1px solid #e5e5e5;
        padding-top: 10px;
    }

    .top_element_row.top_element_row_edge {
        flex-direction: row;
    }

    .top_element_row_edge .top_element_row_col:first-of-type{
        flex: 0 0 115px;
    }

    .top_element_row_checkbox_outer{
        border-top: none;
    }
}

.top_elements_box{
    margin: 5px;
}

.top_elements_box .box_title{
    font-weight: bold;
    padding-left: 0;
    padding-bottom: 3px;
}

#svg_preview_modal .close {
    border: none;
    position: absolute;
    right: 10px;
    background: #fff;
    font-size: 2em;
    font-weight: bold;
    padding: 0;
    margin: 0;
    top: 0;
}

#svg_preview_big svg {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

#svg_preview_modal .modal-dialog{
    margin: auto;
    margin-top: 20px;
}

#back_to_step1{
    border: 1px #f4f4f4 solid;
    text-align: center;
    color: #fff !important;
    background-color: #00559c !important;
    border-color: #00559c;
    box-shadow: inset 0 32px 24px -24px hsla(0, 0%, 100%, .3), 2px 2px 4px 0 rgba(0, 0, 0, .2);
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    margin: 2px;
    text-decoration: none;
    padding: 5px 10px;
    position: absolute;
    right: 10px;
    border-radius: 30px;
}



@media (max-width: 991px){
    #back_to_step1{
        position: relative;
        right: 0;
    }

    .back_to_step1_outer{
        display: block;
        text-align: right;
        margin-top: 5px;
        margin-bottom: 5px;
    }
}