@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body{margin: 0px;font-family: "Montserrat", sans-serif; font-size: 14px;}
* {
    box-sizing: border-box;
}
img{max-width: 100%;}
.row{display: flex;}
.align-center{align-items: center;}
.col{padding-left:15px;padding-right: 15px;}
.col-3{width: 15%;}
.col-9{width: 85%;}
.col-5{width: 30%;}
.col-7{width: 70%;}

ul.nav li a
 {
    color: #1c4060;
    text-decoration: none;
    padding: 12px 6px;
    display: inline-block;
    border-top: 1px solid;
}

ul.nav {
    list-style: none;
    padding: 0;
}
h2.main-title {
    background-color: #9ed2f3;
    text-align: center;
    padding: 7px;
    color: #1c4060;
}
.fillter {
    justify-content: space-between;
    border-bottom: 1px solid #9ed2f3;
    padding-bottom: 20px;
}
.info-box h3 {
    position: absolute;
    top: -12px;
    margin: 0px;
    left: 15px;
    background-color: #fff;
    padding: 1px 10px;
}

.info-box {
    border: 1px solid #b7b7b7;
    margin-top: 15px;
    border-radius: 12px;
    position: relative;
    padding: 15px;
    background-color: #fcfcfc;
}
table th {
    font-weight: 600;
}
.form-control {
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid;
}
.btn {
    background-color: #244766;
    padding: 8px;
    border: 1px solid;
    cursor: pointer;
    color: #fff;
    border-radius: 20px;
}
.form-control {
    border-color: #b7b7b7;
}

.btn.save {
    background-color: #1BB924;
    color: #fff;
    width: 200px;
    padding: 9px;
    border-radius: 7px;
}
table {
    text-align: left;
    width: 100%;
    border-spacing: 0px 5px;
}
table .form-control {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 6px;
}
.btn-grup {
    justify-content: space-around;
    margin-bottom: 10px;
    border-top: 1px solid;
    padding-top: 15px;
}
table.table tr th {
    background-color: #9ed2f3;
    padding: 1px 6px;
    color: #1c4060;
}
table.table tr td {
    border: 1px solid #949494;
    padding: 1px 6px;
}
.row.saveprint-btn button {
    width: 50%;
    padding: 11px;
    font-size: 16px;
    border: 3px solid #fff;
    border-radius: 12px;
}
.btn:hover {
    opacity: 0.7;
}
.zoomsoft-customer-popup {
    display: none;
    position: fixed;
    background-color: #ffffffc9;
    width: 100%;
    height: 100%;
    z-index: 9;
    top: 0px;
    left: 0px;
    justify-content: center;
    align-items: center;
}
.zoomsoft-customer-popup.active {display: flex;}
.popup-body {
    margin: auto;
    max-width: 900px;
    background-color: #fff;
    width: 100%;
    padding: 20px;
    border-radius: 14px;
    filter: drop-shadow(2px 4px 6px black);
    position: relative;
}
span.close {
    background-color: red;
    color: #fff;
    padding: 4px;
    position: absolute;
    right: 0px;
    top: 0px;
    cursor: pointer;
}
span.exsit-btn {
    font-size: 13px;
    position: absolute;
    right: 18px;
    top: 12px;
    color: red;
    font-weight: 700;
}
input#fillter {
    padding: 10px;
    width: 500px;
    margin-top: 15px;
}
input#searchItemInput {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    margin-bottom: 10px;
    margin-top: 10px;
}
.search-box {
    position: relative;
}
.items-table {
    position: absolute;
    top: 56px;
    background-color: #fff;
    left: 15px;
    filter: drop-shadow(2px 4px 6px black);
    border-radius: 4px;
    display: none;
}
.items-table.highlight {
    display: block;
}
table .form-control.w-50{width: 50%;}
.zoomsoft-popup.items-popup table tr {
    box-shadow: 0px 1px 0px #d0d0d0;
    line-height: 26px;
}
.zoomsoft-popup.items-popup table tr:last-child {
    box-shadow:unset;
}
.add-new-item {
    cursor: pointer;
}
.sidebar {
    background-color: #f7f7f7;
    padding-top: 2rem;
}
button#addItemBtn {
    width: 100%;
    padding: 10px;
    font-weight: bold;
    margin-top: 10px;
    background-color: #1BB924;
    color: #fff;
}
.search-modal .modal-content {
    max-height: unset !important;
}
section {
    padding-bottom: 10px;
}
.search-results {
    padding-left: 0px !important;
}
/*modal for customer search*/
div#itemsTable {
    height: 472px !important;
}
.search-modal {
    display: none;
}

    .search-modal.active {
        display: flex; /* show it like your other popups */
    }

.search-results {
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ccc;
    background: #fff;
}

    .search-results li {
        padding: 6px 8px;
        border-bottom: 1px solid #eee;
        cursor: pointer;
    }

        .search-results li:hover {
            background: #f3f3f3;
        }



/* --- Modal Overlay (Search Modal) --- */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99;
}

    .search-modal.active {
        display: flex;
    }

    .search-modal .modal-content {
        background: #fff;
        border-radius: 10px;
        padding: 20px;
        min-width: 400px;
        max-width: 600px;
        max-height: 80vh;
        overflow-y: auto;
        position: relative;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    }

    .search-modal .close {
        position: absolute;
        right: 10px;
        top: 5px;
        font-size: 20px;
        color: #333;
        cursor: pointer;
    }

/* Search results list */
.search-results {
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    overflow-y: auto;
    max-height: 300px;
}

    .search-results li {
        list-style: none;
        padding: 10px;
        border-bottom: 1px solid #eee;
        cursor: pointer;
        transition: background 0.2s;
    }

        .search-results li:hover {
            background: #f5f5f5;
        }


        .search-results li.active {
            background-color: #9ed2f3;
            color: #1c4060;
        }

       .search-results li button {
    /* margin-right: 5px; */
    padding: 9px;
    /* border: 1px solid #ccc; */
    /* cursor: pointer; */
    border-radius: 6px;
    width: 39%;
}
.modal-content h4:before
 {
    content: "";
    position: absolute;
    left: 0px;
    bottom: -5px;
    width: 30px;
    height: 4px;
    background-color: #9ED2F3;
}

.modal-content h4 {
    color: #244766;
    position: relative;
}



#itemSearchResults {
    max-height: 300px; /* or whatever fits your modal */
    overflow-y: auto; /* scroll only inside the list */
}
