html, body {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
}
body{
    -webkit-overflow-scrolling: touch;
}
table{
    font-size: 13px;
}

.header-search {
    --search-results-display: none;
    justify-self: stretch;
    display: block;
    position: relative;
}
@media (width>= 992px) {
    .header-search {
        display: block;
    }

}
.header-search .input-group-text {
    background-color: transparent;
    border-right: none;
    padding-right: 16px;
    color: #222;
    border-color: #222;
}
.header-search .input-group .form-control {
    background-color: transparent;
    border-left: none;
    color: #222;
    padding: 8px 12px;
    padding-left: 0;
    --bs-border-color: inherit;
    min-height: unset;
}

.header-search:not(:has(input[type="search"]:placeholder-shown)) {
    --search-results-display: block;
}
.header-search-results {
    position: absolute;
    padding: 7px;
    border-radius: 4px;
    display: var(--search-results-display);
    width: 100%;
    background-color: #fafafb;
    margin-top: 0;
    z-index: 1;
    top: 35px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px !important;
    height: 180px;
    overflow-y: scroll;
}
.header-search-results:not(:has(*)) {
    --search-results-display: none;
}
.header-search-item {
    display: grid;
    /*grid-template-columns: 48px 1fr;*/
    column-gap: 8px;
    align-items: center;

    padding: 0.25rem 0.25rem;
    color: #212529;
}
.header-search-item:hover {
    /*background-color: #f1f1f1;*/
    --hover-color: rgba(0, 0, 0 );
}

.header-search-item-name {
    font-weight: 500;
    /*color: var(--hover-color, rgba(0, 0, 0 ));*/
    border-bottom: 1px solid #CED4DA;
    padding: 4px;
}
.header-search-item-name:hover{
    background: #dddbdb;
    cursor: pointer;
}
.advance-form-control{
    padding: 0.45rem 0.75rem;
}
.advance-form-control:hover{
    background: #fff;
}
.flatpickr-input[readonly]{
    background: #fff !important;
}
.header-search-item .header-search-item-name:nth-last-child(1){
    border-bottom: none !important;
}
.card-header{
    background: #495057;
    padding-block: 1.5em;
    color: #fff;
    border-radius: 6px !important;
    h5{
        color: white;
    }
}

.bg-gray-100{
    background: #f8f9fa;
}
.card-subheader{
    color: #0a3a66;
}
.card-subheader h5{
    color: #0a3a66;
}
.accessories-list{
    display: flex;
    flex-wrap: wrap;
    .form-group{
        margin-bottom: 0.5rem;
        width: 50%;
    }
}
.delivery-order-table tbody tr:nth-last-child(1) td{
    font-weight: bold;
}
.total-amount{
    margin-bottom: 8px;
    margin-top: 24px;
    h5{
        color: #000;
        width: 300px;
        border-bottom: 1px dashed #ddd;
        padding: 6px 4px;
        text-align: end;
        margin-bottom: 0;
        line-height: 150%;
    }
}
.sign{
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin: 0 100px;
    font-weight: 600;
}
.sign-box{
    margin-top: 150px;
    margin-bottom: 50px;
}
.total-amount-words{
    h5{
        color: #000;
        border-bottom: 1px dashed #ddd;
        padding: 6px 4px;
        margin-bottom: 0;
    }
}
.gatepass h5{
    width: calc(100% - 250px);
    text-align: start;
}
.grid-template-columns-2 {
    grid-template-columns: 1fr auto;
}

@media (max-width: 1200px) {
    .main-information label.col-form-label-sm {
        display: none !important;
    }
    .main-information .g-3{
        --bs-gutter-y: 0.2rem;
        --bs-gutter-x: 0.2rem;
    }
    .main-information>.row,
    .create-repair-order>.row{
        --bs-gutter-x: 0.5rem;
    }
    .scrollable-table{
        width: 991px !important;
    }
    .total-amount h5{
        width: calc(100% - 220px);
    }
    .sign{
        margin: 0;
    }

    }
@media (max-width: 991px){
    .table thead th{
        min-width: 100px;
    }
}
