.color-black {
    color:  #c8c8c8;
}

#legs .bold {
    font-weight: bold;
}

#legs .normal {
    font-weight: normal;
    color: #7A7A7A;
    font-size: 11px;
    margin: 0;
}

#legs {
    font-family: Arial;
    margin: 40px auto 150px auto;
    max-width: 1500px;
    width: 90%;
}

#legs .form-group {
    margin: 18px 0 0 0;
}

#legs h2 {
    margin: 20px 0 40px 20px;
    line-height: 1.2em;
    font-family: 'Jost', sans-serif;
    font-weight: normal;
    font-size: 23px;
}

#legs label, #legs .table-ul  li {
    color: #7A7A7A;
    font-size: 11px;
}

#legs label {
    font-weight: bold;
}

#legs #plane {
    max-width: 170px;
    max-height: 24px;
}

#plane {
    font-size: 12px;
    width: auto;
    position: relative;
    top: 1px;
    left: 4px;
    height: 22px;
    min-width: 120px;
    }

#plane.quote-plane-select {
    width: 70%;
    top: -4px;
    left: 0;
    }

#legs .contact-ul {
    padding: 0;
    display: flex;
}
#legs .contact-ul:last-of-type {
    margin-bottom: 0;
}
#legs #search-input {
    height: 17px;
    border: 1px solid grey;
    border-radius: 3px;
    width: 200px;
    padding: 10px 5px;
    font-size: 12px;
}
.contact-ul li {
    width: 22%;
}
#legs .contact-ul label {
    margin: 0 0 4px;
}

#legs .table-ul  {
    margin: 0 0 14px 0;
    width: 100%;
    display: flex;
    padding: 0 0 5px 0;
}

#legs #table-head {
    border: none;
    margin: 5px 0 9px 0;
    font-weight: bold;
    padding: 0;
}

#table-body {
    flex-wrap: wrap;
    line-height: 1.5;
    padding-left: 0;
}

#table-body li {
    margin: 9px 0 auto 0;
}

#legs #table-footer {
    background: #12104c;
    color: #FFF;
    font-size: 11px;
    font-weight: bold;
    margin: 0 0 15px;
    padding: 12px 1%;
    width: 100%;
}

#legs #table-footer ul {
    margin: 0;
    padding-left: 0;
}

.medidor-empty-leg {margin-bottom: 20px !important;
                    }

.medidor-plane {margin-bottom: 50px;
                }

.leg-footer-1 {color: #fcfcfc !important;
               width: 31%;
               }
               
.leg-footer-2 {width: 31.8%;
               }
               
.leg-footer-3 {width: 8.6%;
               }
               
.leg-footer-4 {width: 9.3%;
               }

.leg-footer-5 {width: 9.1%;
               }
               
.leg-footer-6 {width: 10%;
               }

.leg-footer-rate {border-top: 1px dotted;
                  color: #fcfcfc; 
                  display: none;
                  margin-top: 10px;
                  padding: 10px 2% 0;
                  }
               
.leg-footer-totals {display: inline-flex;
                    width: 100%;
                    }

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

     .leg-footer-1 {display: none;
                    }

     .leg-footer-2 {display: none;
                    }
               
     .leg-footer-3 {width: 31.5%;
                    padding-left: 2% !important;
                    }
               
     .leg-footer-4 {width: 25.1%;
                    }

     .leg-footer-5 {width: 25%;
                    }

     .leg-footer-6 {width: 23.5%;
                    }

     .leg-footer-rate {display: block;
                       }

}
               
@media screen and (min-width: 700px) and (max-width: 1024px) {

     .leg-footer-1 {width: 55%;
                    }

     .leg-footer-2 {display: none;
                    }
               
     .leg-footer-3 {width: 12.3%;
                    }
               
     .leg-footer-4 {width: 11.3%;
                    }
                    
     .leg-footer-5 {width: 9.2%;
                    }
               
     .leg-footer-6 {width: 11%;
                    }

}


#legs #li-specs {
    margin-left: 10px;
    width: calc(49% - 6px);
}

#legs #p-specs {
    font-style: italic;
    color: #e33131;
    width: 98%;
    font-size: 12px;
}

#legs .input-text {
    border: 1px solid #b5b5b5;
    border-radius: 3px;  
    font-size: 9pt;
    height: 24px;
    width: 100%;
    padding: 5px;
    margin-top: -5px;
}

.actions-leg button {margin: 1px 10px 0 0;
                     }
                     
.errormsg {color: #dc1919;
           font-weight: 600;
           padding: 4px 6px;
           }

.input-btn {
    border: none;
    cursor: pointer;
    background-repeat: no-repeat;
    background-size: cover;
}

.route-btn {
    height: 5px;
    width: 7px;
    margin: -1px 1px 0 -14px;
}

.input-okey-btn {
    background: transparent url('../Images/measurer_icons/add.png') no-repeat;
    border: none;
    margin: -1px 0 0 0;
    width: 16px;
    height: 16px;
}

.input-edit-icon {
    background: transparent url('../Images/measurer_icons/edit-icon.png') no-repeat;
    margin: -2px 2px 0;
    width: 14px;
    height: 17px;
    top: 2px;
    position: relative;
}

.input-flight-add-btn {
    background: transparent url('../Images/measurer_icons/flight-add.png') no-repeat;
    width: 20px;
    height: 12px;
}

.input-delete-btn {
    background: transparent url('../Images/measurer_icons/form-delete.png') no-repeat;
    width: 11px;
    height: 11px;
    border: none;
    background-repeat: no-repeat;
}

.up-arrow-btn, .down-arrow-btn {
    background-repeat: no-repeat;
    border: none;
    height: 10px;
    width: 9px;
}
.up-arrow-btn {
    background: transparent url('../Images/general_icons/up_arrow.png') no-repeat;
}
.down-arrow-btn {
    background: transparent url('../Images/general_icons/down_arrow.png') no-repeat;
}

.ui-widget {font-size: 12px;
            max-height: 280px;
            min-height: 30px;
            overflow: hidden;
            overflow-y: auto;
            }

#legs .table-ul .routes {
    background-color: #f0f0ff !important;
    background: transparent url('../Images/measurer_icons/blue-arrow.gif');
    background-repeat: no-repeat;
    background-position: 8px 12px;
    float: left;
    margin-top: 10px;
    padding: 6px;
    width: 100%;
}

#legs .table-ul .routes span:first-of-type {
    margin-left: 15px;
}

.fuelicon {margin: -6px 5px 0 0;
           }

.basketicon {margin: -4px 7px 0 -1px;
             }
             
.feeicon {margin: -2px 6px 0px 4px;
          }
          
          
.tick-leg {margin-top: -3px;
           }
           

.col-medidor {width: 9%;
              }
              
.confirm-edit-leg {position: relative;
                   top: 3.5px;
                   }

.leg-col-1 {display: inline-block;
            font-size: 11px;
            margin-right: 1%;
            width: 30%;
            }

.leg-col-2 {display: inline-block;
            font-size: 11px;
            margin-right: 1%;
            width: 30%;
            }

.leg-col-1 input, .leg-col-2 input {
          border: 1px solid #ced4da;
          border-radius: 3px;
          }          
            
.leg-col-1 li:last-of-type, .leg-col-2 li:last-of-type {
          margin-top: 10px;
          }
          
.leg-col-1 li:first-of-type, .leg-col-2 li:first-of-type, .leg-col-4 li:first-of-type, .leg-col-5 li:first-of-type, .leg-col-6 li:first-of-type, .leg-col-7 li:first-of-type
           {font-weight: bold;
            }

.leg-col-3 {display: inline-block;
            width: 25%;
            }
            
.leg-col-3 button {position: relative;
                   top: 2px;
                   }

.leg-col-4 {width: 9%;
            }

.leg-col-5 {width: 9%;
            }

.leg-col-6 {width: 9%;
            }

.leg-col-7 {width: 9%;
            }

.leg-col-8 {border-bottom: 1px dotted #dfdcda;
            padding-bottom: 15px;
            width: 100%;
            }
            
.leg-col-9 {display: flex;
            width: 9%;
            }

.leg-tramo-2 {justify-content: left;
              margin-bottom: 30px !important;
              }

@media screen and (max-width: 700px) {
  
     .confirm-edit-leg {top: 3px;
                        }
  
     .medidor-plane {margin-bottom: 30px;
                     }

     .leg-col-1 {margin-top: 15px;
                 }

     .leg-col-1, .leg-col-2 {margin-right: 0;
                             width: 100%;
                             }
                             
     .leg-col-4 {width: 30%;
                 }

     .leg-col-5 {width: 23%;
                 }

     .leg-col-6 {width: 23%;
                 }

     .leg-col-7 {width: 23%;
                 }
                 
     .leg-tramo-2 {justify-content: left;
                   margin-bottom: 20px !important;
                   }

     .ul-medidor li:first-of-type {margin-top: 0 !important;
                                   }

}

@media screen and (min-width: 701px) and (max-width: 1024px) {

     .leg-col-1, .leg-col-2 {margin-right: 1%;
                             width: 26%;
                             }
                             
     .leg-col-4 {width: 13%;
                 }

     .leg-col-5 {width: 11%;
                 }

     .leg-col-6 {width: 9%;
                 }

     .leg-col-7 {width: 11%;
                 }

}

@media screen and (min-width: 1024px) { 

     .leg-col-8 {margin-top: -15px;
                 }

}


/* ----------------------------------------------------------- QUOTE ---------------------------------------------- */

.add-quote-form-block {
    border-left: 1px solid rgb(187, 187, 187);
    border-right: 1px solid rgb(187, 187, 187);
    border-top: 1px solid rgb(187, 187, 187);
}

.add-quote-form-title {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-weight: bold;
    font-size: 11px;
    color: black;
    padding: 6px 1em;
    border-bottom: 1px solid rgb(187, 187, 187);
    background-color: #efefef;
}

.add-quote-form-content {
    padding: 15px 15px 20px;
}

#legs .add-quote-form-content .aeroplane-ul {
    justify-content: left;
    padding: 0;
    font-weight: bold;
    border: none;
    margin: 3px 0 !important;
    vertical-align: middle;
}

.aeroplane-ul li {
    width: 15%;
}

#legs .date-ul {
    border-bottom: 1px dotted #dfdcda;
    font-size: 11px;
    height: 40px;
    margin-bottom: 17px;
}

#legs .date-ul li {
    display: flex;
    font-weight: bold;
}

#legs .date-ul li span {
    padding-top: 5px;
}

#legs .date-ul li label {
    margin-left: 5px;
    cursor: pointer;
}

#legs .date-ul li input {
    border: 1px solid #b5b5b5;
    border-radius: 3px;
    width: auto;
    margin: 0 0 0 1px;
    max-height: 25px;
    padding-top: 2px;
}

#legs .date-ul li select {
    border: 1px solid #b5b5b5; 
    border-radius: 3px;
    min-width: 60px;
    justify-content: left;
    font-size: 12px;
    max-height: 20px;
    margin: 2px 0 0 7px;
}

#legs .table-quote {
    border: none;
    margin: 0;
}
/* #legs .table-quote li {
    width: 7%;
} */
/* #legs .last-li-quote {
    margin-right: 3%;
} */
/* #legs .table-quote .li-input-text:first-of-type {
    margin-right: 10px;
} */
/* #legs .table-quote .li-input-text {
    width: 24%;
} */
#legs .table-head-quote {
    font-weight: bold;
}
#legs .table-body-quote {
    flex-wrap: wrap;
}

#legs .quote-fee-container {
    padding: 0;
    width: 100%;
}
#legs .quote-fee-container .quote-fee-ul:first-of-type {
    margin-top: 20px;
}

#legs .quote-fee-ul {
    display: flex;
    padding: 0;
}
/* #legs .quote-fee-ul li {
    width: 7%;
    margin-right: 1%;
} */
/* #legs .quote-fee-ul .quote-fee-li {
    width: 9%;
    margin-right: 2.5%;
} */
/* #legs .quote-fee-ul .first-quote-li {
    width: 15%;
    margin-right: 0;
} */
#legs .quote-fee-ul .op-data-description {
    padding-left: 27px;
    background: url('../Images/general_icons/form-add.png') no-repeat 4px 4px;
}
#legs .quote-fee-container .quote-fee-ul:first-of-type {
    font-weight: bold;
}

#legs .add-quote-form-block .add-quote-form-footer {
    padding: 12px 15px 7px;
    background: #f9f9f9;
    border-top: 1px dotted #e8e8e8;
}
#legs .add-quote-form-footer .table-ul {
    border: none;
    margin: 0;
}
/* #legs .table-quote .quote-okey-btn {
    width: calc(2% - 5px);
} */

#legs .add-quote-form-content .quote-resume-ul {
    padding: 4px 0 0 0;
    }
    
#legs .quote-resume-ul {
    display: flex;
    justify-content: space-between;
    padding-left: 0;
}
#legs .add-quote-form-block #footer-resume {
    background-color: #fffa9f;
}
#footer-resume .quote-resume-ul {
    margin-bottom: 5px;
}
#legs .quote-resume-ul li {
    font-size: 11px;
}

#legs ul.first-line {
    font-weight: bold;
    color: #000;
}

#legs ul.line {
    color: #7A7A7A;
}

#legs .quote-resume-ul li:first-of-type {
    width: 1%;
}
/* #legs .quote-resume-ul li:last-of-type {
    margin: 0 2% 0 2%;
}  */    
/* #legs .quote-resume-ul .li-input-text {
    width: 15%;
} */

#quote-notes-block {
    display: flex; 
    justify-content: space-between;
}

.add-quote-form-block .quote-notes {
    display: flex;
    flex-direction: column;
}

#textarea-notes, #external_notes {
    width: 90%;
    height: 200px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    padding: 4px 5px;
    font-size: 12px;
    color: #333;
}

.add-quote-contact-title {padding-top: 4px;
                          }

.quote-notes-btns {
    margin: 15px auto 35px;
}

.customer-inputs button {
    max-width: 200px;
    max-height: 40px;
    border: 1px solid;
    border-color: #DDDDDD #AAAAAA #AAAAAA #DDDDDD;
    padding: 5px 8px;
}

.quote-notes {width: 70%;
              }
              
.quote-notes label {margin-bottom: 10px;
                    }

.customer-inputs button {font-size: 13px;
                         margin: 20px 8px 0 0;
                         }

.quote-plane-speed {width: 17% !important;
                    }

h2.quotes {margin: -5px 0 0 20px !important;
           }
           
.res-quote {padding-bottom: 5px;
            }

.res-head {margin-bottom: 17px;
           }
           
.res-cust {width: 25% !important;
           margin-right: 20px;
           }
           
.res-creat {width: 30% !important;
            margin-right: 20px;
            }
            
@media screen and (max-width: 1024px) {
     
     .res-creat {width: 45% !important;
            }
            
}
           
.res-state {width: 35% !important;
            margin-right: 20px;
            }
            
.leg-date-col-1 {width: 16%;
                 }
                 
.leg-date-col-2 {margin-left: 2%;
                 width: 18%;
                 }

.leg-date-col-3 {width: 20%;
                 }

.leg-date-col-4 {width: 13%;
                 }

.leg-date-col-5 {width: 20%;
                 }

.leg-date-col-6 {width: 13%;
                 }

.leg-date-col-5, .leg-date-col-6 {justify-content: flex-end;
                                  padding: 5px 8px 0 0;
                                  }

.leg-date-col-5 input, .leg-date-col-6 input {top: 1px;
                                              position: relative;
                                              }

.leg-quote-col-1 {margin-right: 0.5% !important;
                  width: 24%;
                  }
            
.leg-quote-col-2 {margin-right: 0.5% !important;
                  width: 24%;
                  }

.leg-quote-col-3 {width: 4%;
                  }

.leg-quote-col-4 {width: 10%;
                  }

.leg-quote-col-5 {width: 8%;
                  }

.leg-quote-col-6 {width: 7%;
                  }

.leg-quote-col-7 {width: 4%;
                  }

.leg-quote-col-8 {width: 9%;
                  }
            
.leg-quote-col-9 {width: 9%;
                  }


.leg-view-col-1 {margin-right: 0.5% !important;
                 width: 24%;
                 }
            
.leg-view-col-2 {margin-right: 0.5% !important;
                 width: 24%;
                 }

.leg-view-col-3 {width: 4%;
                 }

.leg-view-col-4 {width: 9%;
                 }

.leg-view-col-5 {width: 8%;
                 }

.leg-view-col-6 {width: 7%;
                 }

.leg-view-col-7 {width: 5%;
                 }

.leg-view-col-8 {width: 9%;
                 }
            
.leg-view-col-9 {width: 9%;
                 }


.fuel-edit-col-1 {width: 21% !important;
                  }

.fuel-edit-col-2 {width: 10%;
                  }

.fuel-edit-col-3 {width: 11%;
                  }

.fuel-edit-col-4 {width: 11%;
                  }

.fuel-edit-col-5 {width: 9%;
                  }

.fuel-edit-col-6 {width: 20%;
                  }

.fuel-edit-col-7 {width: 9%;
                  }

.fuel-edit-col-8 {width: 9%;
                  }
                  

.extra-fees {margin: 20px 0 7px 0;
             }


.fee-edit-col-1 {width: 21% !important;
                 }

.fee-edit-col-2 {width: 10%;
                 }

.fee-edit-col-3 {width: 11%;
                 }
                 
.fee-edit-col-3-title {width: 11%;
                       }

.fee-edit-col-4 {width: 11%;
                 }

.fee-edit-col-4-comment {width: 11%;
                         }
                         
.fee-edit-col-4 input {margin-right: 4.7%;
                       }

.fee-edit-col-5 {width: 20%;
                 }

.fee-edit-col-6 {width: 20%;
                 }

.fee-edit-col-7 {width: 9%;
                 }

.fee-edit-col-8 {width: 9%;
                 }
                 
.fee-edit-col-9 {width: 9%;
                 }


.fee-edit-col-1 input {max-width: 80% !important;
                       width: 80%;
                       }

.add-fee-col-2 {margin-right: 0.5% !important;
                width: 16%;
                }
                
.fee-edit-icon {position: relative;
                top: 3px;
                margin-right: 10px;
                }

.fuel-edit-col-3 input, .fuel-edit-col-5 input, .fuel-edit-col-6 input, .fee-edit-col-1 input, .fee-edit-col-2 input, .fee-edit-col-3 input, .fee-edit-col-4 input {
       height: 24px;
       padding-top: 2px;
       margin-top: -5px;
       max-width: 80px;
       }
       
.fuel-edit-col-6 input {position: relative;
                        margin-right: 4px;
                        top: -3px;
                        }

.extra-fee-btns {margin-top: -5px;
                 }

.fee-validate-icon {margin: 1px 10px 0 0;
                    }

.addFee {top: -4px;
         height: 22px;
         width: 100%;
         padding: 3px 0;
         position: relative;
         }

                 
.fee-view-col-1 {width: 21% !important;
                 }

.fee-view-col-2 {width: 10%;
                 }

.fee-view-col-3 {width: 11%;
                 }

.fee-view-col-4 {width: 11%;
                 }
                 
.fee-view-col-4-comment {width: 20%;
                         }

.fee-view-col-5 {width: 9%;
                 }

.fee-view-col-6 {width: 20%;
                 }

.fee-view-col-7 {width: 9%;
                 }

.fee-view-col-8 {width: 9%;
                 }
            

.leg-col-foot-1 {margin-right: 0.5%;
                 width: 24%;
                 }
            
.leg-col-foot-2 {margin-right: 0.5%;
                 width: 24%;
                 }

.leg-col-foot-3 {width: 4%;
                 }

.leg-col-foot-4 {width: 9%;
                 }

.leg-col-foot-5 {width: 8%;
                 }

.leg-col-foot-6 {width: 7%;
                 }

.leg-col-foot-7 {width: 5%;
                 }

.leg-col-foot-8 {width: 9%;
                 }
            
.leg-col-foot-9 {width: 9%;
                 }


.legs-res-col-1 {width: 3% !important;
                 }

.legs-res-col-2 {width: 7%;
                 }

.legs-res-col-3 {width: 6%;
                 }

.legs-res-col-4 {width: 5%;
                 }

.legs-res-col-5 {width: 21%;
                 }

.legs-res-col-6 {width: 20%;
                 }

.legs-res-col-7 {width: 8%;
                 }

.legs-res-col-8 {width: 7%;
                 }

.legs-res-col-9 {width: 5%;
                 }

.legs-res-col-10 {width: 9%;
                  }

.legs-res-col-11 {width: 9%;
                  }


.foot-res-col-1 {color: #0c2396;
                 width: 24% !important;
                 }

.foot-res-col-2 {width: 7%;
                 }

.foot-res-col-3 {width: 7%;
                 }

.foot-res-col-4 {width: 8%;
                 }

.foot-res-col-5 {width: 8%;
                 }

.foot-res-col-6 {width: 8%;
                 }

.foot-res-col-7 {width: 8%;
                 }

.foot-res-col-8 {width: 7%;
                 }

.foot-res-col-9 {width: 5%;
                 }

.foot-res-col-10 {width: 9%;
                  }

.foot-res-col-11 {width: 9%;
                  }

.add-edit-quote {margin-top: 35px !important;
                 }

.add-edit-quote h2 {margin: 0 18px 0 18px !important;
                    }

.quote-aeroplane-data {padding-bottom: 17px;
                       }
                       
.customer-inputs input {border: 1px solid #ced4da;
                        border-radius: 3px;
                        display: block;
                        padding: 2px 4px;
                        font-size: 12px;
                        width: 85%;
                        }
                        
.no-bold {font-weight: normal !important;
          }
          
.quote-edit-plane input {position: relative;
                         top: -5px;
                         max-width: 80px;
                         }
                         
.quote-edit-plane button {border: 0;
                          margin: -2px 0 0 5px;
                          top: 1px;
                          }
                          
.quote-validate-plane {background: transparent url('../Images/measurer_icons/add.png') no-repeat;; 
                       height: 16px;
                       position: relative;
                       top: -2px;
                       width: 16px;
                       }

.quote-ul-select-plane {padding-bottom: 8px !important;
                        }
                        
.quote-comment {border-bottom: 1px solid #bbbbbb;
               }
              
.add-extra-fee {margin-top: 20px;
                }
                
.airspace-select {height: 24px;
                  margin-top: -5px;
                  }
                  
.no-display {
    display: none;
}
.display {
    display: normal;
}

/* ── TripSheet Selector ─────────────────────────────────── */
#trip_sheet_notes {
    width: 90%; height: 150px;
    border: 1px solid #ced4da; border-radius: 3px;
    padding: 4px 5px; font-size: 12px; color: #333;
}

.ts-selector-wrap { position: relative; }

.ts-tags {
    display: flex; flex-wrap: wrap; gap: 5px;
    margin-bottom: 7px; min-height: 4px;
}

.ts-tag {
    background: #3D3E65; color: #fff;
    border-radius: 3px; padding: 2px 7px;
    font: 12px Arial; display: inline-flex; align-items: center; gap: 5px;
}

.ts-tag-remove {
    background: none; border: none; color: #fff;
    cursor: pointer; font-size: 13px; padding: 0; line-height: 1;
}

.ts-search-row { display: flex; gap: 6px; align-items: center; }

.ts-search-input {
    flex: 1;
    border: 1px solid #ced4da; border-radius: 3px;
    padding: 4px 5px; font: 12px Arial; color: #333;
}

.ts-dropdown {
    display: none; position: absolute; top: 100%; left: 0; z-index: 1000;
    background: #fff; border: 1px solid #ced4da; border-radius: 3px;
    max-height: 180px; overflow-y: auto; min-width: 240px;
    box-shadow: 0 2px 5px rgba(0,0,0,.12);
}

.ts-dropdown-item {
    padding: 5px 8px; cursor: pointer; font: 12px Arial; color: #333;
}
.ts-dropdown-item:hover { background: #f0f0f5; }
.ts-dropdown-empty { color: #999; cursor: default; }
.ts-dropdown-empty:hover { background: none; }

/* Modal overlay */
.ts-modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.45); z-index: 2000;
    align-items: center; justify-content: center;
}

.ts-modal-box {
    background: #fff;
    border: 1px solid #bbb;
    padding: 20px 24px; min-width: 320px; max-width: 460px; width: 90%;
    box-shadow: 0 3px 12px rgba(0,0,0,.2);
}

.ts-modal-box h3 {
    margin: 0 0 14px; font: bold 13px Arial; color: #333;
    padding-bottom: 8px; border-bottom: 1px solid #ddd;
}

.ts-modal-box .ts-modal-field { margin-bottom: 8px; }
.ts-modal-box .ts-modal-field label {
    display: block; font: 11px Arial; color: #555; margin-bottom: 3px;
}
.ts-modal-box .ts-modal-field input,
.ts-modal-box .ts-modal-field select {
    width: 100%; border: 1px solid #ced4da; border-radius: 3px;
    padding: 4px 5px; font: 12px Arial; color: #333; box-sizing: border-box;
}

.ts-modal-actions {
    display: flex; gap: 6px; justify-content: flex-end;
    margin-top: 14px; padding-top: 10px; border-top: 1px solid #ddd;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Edit Quote / View Quote
   ══════════════════════════════════════════════════════════ */

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

    /* ── Contenedor principal ─────────────────────────────── */
    #legs {
        width: 95%;
        margin: 20px auto 80px;
    }

    #legs h2 {
        margin: 10px 0 20px 0 !important;
        font-size: 18px;
    }

    /* ── Contacto ─────────────────────────────────────────── */
    #legs .contact-ul {
        flex-wrap: wrap;
    }

    .contact-ul li {
        width: 50%;
        margin-bottom: 12px;
        box-sizing: border-box;
        padding-right: 8px;
    }

    /* ── Aeronave ─────────────────────────────────────────── */
    .quote-aeroplane-data {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .aeroplane-ul {
        min-width: 480px;
    }

    /* ── Sección de tramos (legs vue) ─────────────────────── */
    /* Cada bloque de tramo tiene filas flex de hasta 9 columnas
       (table-quote, date-ul, fee-ul, footer).
       max-width: 100% ancla el contenedor a su padre;
       overflow-x: auto crea el scroll para el contenido más ancho. */
    .add-quote-form-content,
    .add-quote-form-footer {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

    /* min-width en cada tipo de fila flex para que haya algo
       que "scrollear" y las columnas no se aplasten.
       Valores basados en la suma de los % * 640px (ancho mínimo útil). */
    .table-ul.table-quote,
    .add-quote-form-footer .table-ul {
        min-width: 640px;
    }

    .table-ul.date-ul:not(.res-head) {
        min-width: 600px;
    }

    .quote-fee-ul {
        min-width: 600px;
    }

    /* ── Resumen y total ──────────────────────────────────── */
    .res-quote {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px 10px 5px;
    }

    #footer-resume {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Cabecera del resumen: apilar en columna */
    .date-ul.res-head {
        flex-direction: column !important;
        height: auto !important;
        margin-bottom: 10px;
    }

    .res-cust, .res-creat, .res-state {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 4px;
    }

    /* Filas del resumen: scroll horizontal */
    .quote-resume-ul {
        min-width: 620px;
    }

    /* ── Notas y condiciones ──────────────────────────────── */
    #quote-notes-block {
        flex-direction: column;
    }

    .quote-notes {
        width: 100% !important;
    }

    #textarea-notes,
    #external_notes {
        width: 100%;
        box-sizing: border-box;
    }

    #trip_sheet_notes {
        width: 100%;
        box-sizing: border-box;
    }

    /* ── Botones guardar/cancelar ─────────────────────────── */
    .quote-notes-btns.savebtns,
    div.quote-notes-btns {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px 0;
    }

    .quote-notes-btns .btns,
    div.quote-notes-btns .btns,
    .savebtns .btns {
        margin: 0 !important;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    /* ── Trip Sheet selector ──────────────────────────────── */
    .ts-search-row {
        flex-wrap: wrap;
    }

    .ts-search-input {
        width: 100%;
        flex: none;
    }

    /* ── Modal ────────────────────────────────────────────── */
    .ts-modal-box {
        width: 92%;
        padding: 16px;
    }

}