/* Toggle -START */
    .toggle-div{
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 1px;
        cursor: pointer;
        background-color: white !important;
        justify-content: flex-end;
    }

    .toggle-div label{
        font-size: 0.9375rem;
        margin: 0rem 0.5313rem 0px 0px;
        font-family: sans-serif;
    }

    .toggle-body {
        background-color: lightgrey;
        border: 1px solid grey;
        width: 40px;
        border-radius: 20px;
        box-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 10%);
        transition: all 0.2s ease;
    }

    .toggle-head{
        width: 20px;
        height: 20px;
        background-color: white;
        border-radius: 50%;
        box-shadow: 0 2px 4px 0 rgb(0 0 0 / 25%);
        border: 1px solid gray;
        box-sizing: border-box;
        transition: all 0.1s ease;
    }

    .toggle-div.active .toggle-body{
        background-color:#51d88a;
    }

    .toggle-div.active .toggle-body .toggle-head{
        transform : translateX(100%);
    }

    .toggle-div input[type=checkbox]{
        display: none;
    }

/* Toggle -- END-- */

/* Data tables toolbar style --START */
	.top-toolbar {
		display: flex;
		align-items: center;
	}

	.top-toolbar .btn-div {
		display: inline-flex;
		align-items: center;
		margin-left: auto;
	}

	.top-toolbar .btn-div button {
		color: #1a73e8;
		padding: 6px 28px;
		margin-right: 20px;
	}

	.top-toolbar .btn-div button i{
		padding-right: 5px;
	}
/* Datatable toolbar style --- END -- */

/* filteration date ---START ---*/
	.main-div {
		display: inline-flex;
		align-items: center;
		padding-left: 3rem;
	}

	.main-div label {
		position: relative;
		margin-top: 0;
		margin-bottom: 0;
		margin-right: 0px;
		margin-left: 0px;
	}

	.main-div span {
		padding: 0px;
		font-size: 12px;
		color: #7d7d7d;
		font-weight: 600;
	}

	.main-div input,.main-div select{
		height: 30px;
		font-size: 13px;
		background-color: #f8f9fa;
		border: none;
		border-bottom: 1px solid #7d7d7d;
		border-radius: 0;
		padding: 6px 0px;
		color: #7d7d7d;
		font-weight: 600;
	}

	.main-div input:focus, .main-div select:focus{
		background-color: #f8f9fa;
		outline: none;
		border-color: #f8f9fa;
		box-shadow: none;
	}

	.main-div select{
		padding-top: 5px;
	}

	.main-div button{
		margin-left: 0px !important;
		font-size: 14px;
		height: 34px;
		padding: 0.25rem 35px;
		background-color: #30425a;
		margin-top: auto;
	}

	/* //--- */
	.main-div-lc {
		display: inline-flex;
		align-items: center;
		padding-left: 3rem;
	}

	.main-div-lc label {
		position: relative;
		margin-top: 0;
		margin-bottom: 0;
		margin-right: 0px;
	}

	.main-div-lc span {
		background-color: #f8f9fa;
		font-size: 12px;
		color: #7d7d7d;
		font-weight: 600;
	}

	.main-div-lc input,.main-div-lc select{
		font-size: 13px;
		background-color: #f8f9fa;
		border: none;
		height: 30px;
		padding: 0;
		color: #7d7d7d;
		border-bottom: 1px solid #30425a;
		border-radius: 0;
		font-weight: 600;
	}

	.main-div-lc input:focus,.main-div-lc select:focus{
		box-shadow: none;
		border: none;
		border-bottom: 1px solid #30425a;
		background-color: #f8f9fa;
	}

	.main-div-lc button{
		margin-left: 5px !important;
		font-size: 12px;
		height: 31px;
	}

	/* select */

	.stores2_location {
		visibility: hidden;
	}

	.select2-container {
		visibility: visible;
	}

	.main-div-select{
		position: relative;
		display: grid;
		padding-left: 3rem;
	}

	.main-div-select label{
		position: relative;
		margin-top: 0;
		margin-bottom: 0;
		margin-right: 0px;
		font-size: 12px;
		font-weight: 600;
		color: #7d7d7d;
	}
	
	.main-div-select .select2-container--default .select2-selection--single{
		background-color: #f8f9fa;
	}

	.main-div-select .select2-container--default .select2-selection--single {
		border: none;       
		border-radius: 0;  
		padding-bottom: 32px;
	}

	.main-div-select .select2-container {
		height: 34px;
		line-height: 18px;
		font-size: 13px;
	}

	.main-div-select .select2-container--default .select2-results__option {
		font-size: 12px !important;
	}

	.main-div-select .select2-container--default .select2-results__option {
		font-size: 12px !important;
	}
	
	.main-div-select .select2-container--default .select2-search__field {
		font-size: 12px !important;
	}

	.main-div-select .select2-container--open .select2-dropdown--below{
		margin-top: 9px !important;
	}

	/* Inentory modal - from locations */
	#materialrequestForm .select2-container .select2-selection--single,
	#purchaseOrderModal .select2-container .select2-selection--single,
	#materialTransferModal .select2-container .select2-selection--single,
	#grnModal .select2-container .select2-selection--single,
	#purchaseReturnform .select2-container .select2-selection--single,
	#adjustmentModal .select2-container .select2-selection--single {
		height: calc(1.5em + .75rem + 2px);
		font-size: 12px;
	}
	.main-div-select .select2-container--default .select2-results__option {
		font-size: 12px !important;
	}
	
	.main-div-select .select2-container--default .select2-search__field {
		font-size: 12px !important;
	}

	.main-div-select .select2-container--default .select2-selection--single .select2-selection__rendered{
		line-height: 31px !important;
		padding: 0px !important;
		color: #7d7d7d !important;
		font-weight: 600;
		border-bottom: 1px solid #30425a;
	}

/* Filteration date --- END --- */

/* Global Styles */
    /* total width */
    body *::-webkit-scrollbar {
        background-color: #ffffff;
        width: 13px;
    }

    /* background of the scrollbar except button or resizer */
    body *::-webkit-scrollbar-track {
        background-color: #ffffff;
    }

    /* scrollbar itself */
    body *::-webkit-scrollbar-thumb {
        background-color: #babac0;
        border-radius: 20px;
        border: 2.5px solid #ffffff;
    }

    /* set button(top and bottom of the scrollbar) */
    body *::-webkit-scrollbar-button {
        display:none;
    }

    /* Customizing scrollbar --- END */


    .required-field{
        color: red;
        font-weight: 500;
        padding-left: 4px;
    }

    .global-add-btn{
        padding: 6px 50px;
        background-color: #1a73e8;
        color: white;
    }

    .global-add-btn i, .global-save-btn i{
        padding-right: 5px;
    }

    .global-save-btn{
        padding: 6px 50px;
        background-color: green;
        color: white;
    }

    .global-add-btn:hover{
        background-color: #226ed1;
        box-shadow: 0 0 10px rgb(0 0 0 / 20%);
        border: 1px solid #226ed1;
        color: white !important;
    }

    .global-save-btn:hover{
        background-color: rgb(5, 146, 5);
        box-shadow: 0 0 10px rgb(0 0 0 / 20%);
        border: 1px solid green;
    }

    .global-modal-save-btn{
        padding: 10px 50px;
        width: 230px;
        background-color: green;
        font-size: 15px;
    }

    .global-modal-save-btn:hover{
        background-color: rgb(5, 146, 5);
        box-shadow: 0 0 10px rgb(0 0 0 / 20%);
        border: 1px solid green;
    }

    .global-modal-add-btn{
        padding: 10px 50px;
        width: 230px;
        background-color:#226ed1;
        font-size: 15px;
    }
    
    .global-modal-add-btn:hover{
        background-color: #226ed1;
        box-shadow: 0 0 10px rgb(0 0 0 / 20%);
        border: 1px solid #226ed1;
    }
    
    .global-modal-close-btn{
        padding: 10px 50px;
        width: 230px;
        font-size: 15px;
    }

    .global-content{
        min-height: 100%;
        background-color: white;
        padding: 0.625rem 0.3125rem;
        border-radius: 0px;
        min-width: 700px;
    }

    .global-content thead tr{
        background-color: #30425a;
        color: white;
        font-weight: 500;
    }

    .global-content th,.global-content td{
        padding: 5px 10px ;
    }

    .global-content tbody tr {
        border-bottom: 1px solid #dddddd;
    }

    .global-content tbody tr:nth-of-type(even) {
        background-color: #f3f3f3;
    }

    .global-content tbody tr:last-of-type {
        border-bottom: 1px solid #30425a;
    }

    .global-content tbody tr.active-row {
        font-weight: bold;
        color: #30425a;
    }

    .global-content tbody td{
        vertical-align: middle;
        white-space: nowrap;
    }

    .global-content thead th{
        font-weight: 400 !important;
    }

    .global-content .fa-check-circle{
        color: green;
    }

    .global-content .fa-times-circle{
        color: red;
    }

    .global-content .fa-edit,
	.global-content .fa-print,
	.global-content .fa-times,
	.global-content .fa-xmark{
        cursor: pointer;
        color: black;
    }

    .global-header .header-select{
        padding: 5px 10px;
        border-radius: 5px;
    }

	.header-input{
        padding: 3px 8px;
        border-radius: 5px;
    }

	.header-label{
        margin-bottom: 0;
		padding-right: 10px;
		padding-left: 15px;
    }

    .global-header .modal label{
        font-size: 13.5px;
        /* margin-bottom: 10px; */
        letter-spacing: 0.1px;
        margin-top: 10px;
    }

    .global-header .modal .clearerror{
        padding-top: 5px;
        color: red;
        font-weight: 600;
    }

    .global-header .modal .required-field{
        color: red;
        font-weight: 500;
        padding-left: 4px;
    }

    .global-header .modal .help-block{
        padding: 2px 0px !important;
        font-weight: 500 !important;
        font-size: 12px;
    }

    .global-header .modal .modal-body{
        padding: 10px 20px;
    }

    .global-header .modal .close:hover{
        color: black;
    }

    .global-header .modal .modal-footer{
        padding: 10px 30px !important;
    }

    .global-header .modal input, .global-header .modal select,.global-header .modal textarea{
        font-size: 0.8rem;
    }

    .global-header .modal input[type="text"] {
        text-transform: capitalize;
    }

    .global-header .modal .row
    {
        margin-right: -15px;
        margin-left: -15px;
    }
    
    .global-header .modal input:focus,.global-header .modal select:focus,.global-header .modal textarea:focus{
        outline: none;
        box-shadow: none;
        border: 2px solid grey;
    }

    .global-loader{
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #0000004a;
        z-index: 1051;
    }

    .global-loader.hide{
        display: none;
    }

    .ui-timepicker-container {
        z-index: 9999 !important; /* Adjust the value as needed */
    }

	.long-page-content{
		min-height: 100%;
		background-color: white;
		padding: 1.25rem 2.1875rem 6.875rem 2.1875rem;
		border-radius: 0px;
		min-width: 700px;
	} 

	.long-page-content input,
	.long-page-content select{
		height: 33px !important;
		font-size: 14.5px !important;
	}

	.long-page-content input::placeholder,
    .long-page-content textarea::placeholder,
	.long-page-content select::placeholder{
        color: rgb(202, 202, 202);
		font-size: 12px;
    }
/* Custome input type file --- START */
	.custom-upload-label{
		display: inline-block;
		background-color: #007bff;
		color: white;
		padding: 6px 12px;
		border-radius: 5px;
		cursor: pointer;
		border: none;
		font-size: 13.5px;
		margin-bottom: 10px;
		letter-spacing: 0.1px;
		margin-top: 10px;
	}

	.custom-upload-span{
		font-size: 13px;
    	font-weight: normal;
	}

	.custom-upload-input{
		display: none;
	}
/* Custome input type file --- END */

/* Customer adding modal  */
    /* Add customer */
      #customerAddModal #credit_customer, #customerEditModal #credit_customer{
        margin-right: 6px;
    }

/* Customer view modal */

#functionDiv{
    height: 40px;
    margin: 5px 15px 5px auto;
}

#takeOrder,#changeAddress{
    height:40px;
    width:150px;
}

#customerinfo .hd-modal-width, #customerinfo .modal-dialog {
    margin: 0px;
}

#customerinfo .hd-find{
    cursor: pointer;
}

#customerinfo .newAddressDiv .required.show{
    color: red;
    display: inline;
}

#customerinfo .updateAddressDiv .required{
    color: red;
}

#customerinfo .newAddressDiv .required.none{
    display: none;
}

#customerinfo .newAddressDiv .address-btn{
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
}

#customerinfo .newAddressDiv .address-btn label{
    margin-bottom: 0;
}

.hd-modal-width {
    max-width: 100vw;
    height: 95vh;
    margin-top: 2px;
    margin-bottom: 2px;
}

.hd-pd2 {
    padding-top: 12px;
}

.hd-header {
    width: 100%;
    min-height: 40px;
    max-height: 40px;
    background-color: #e6e6e6;
    color: black;
    margin-bottom: 7px;
}

.hd-header input[type="radio"]{
    margin-left: 1.25rem;
}
.hd-header label{
    margin: 0;
}

#hd-search-result tr{
    cursor: pointer;
    font-size: 0.875rem;
}

#hd-search-result tr:hover{
    background-color: whitesmoke;
}

.hd-text1 {
    letter-spacing: 2px;
    padding-top: 10px;
    text-align: left;
    font-size: 15px;
}
.hd-text2 {
    letter-spacing: 1px;
    border-bottom: 2px solid lightgray;
    margin-bottom: 0px;
}

.hd-text3 {
    text-align: center;

}

.hd-text4 {
    text-align: right;
}
.hd-top-section {
    width: 100%;
    display: flex;
    min-height: 215px;
    max-height: 215px;
    padding: 0px 5px 0px 5px;
}


#customerStatus {
    margin-bottom: 0px;
    font-size: 14px;
    color: white;
    background-color: #0075ff;
    padding: 5px 30px;
    border-radius: 5px;
}

.hd-close {
    text-align: center;
    color: white;
}

.hd-middle-section {
    max-height: calc(100vh - 484px);
    min-height: calc(100vh - 484px);
    display: flex;
    overflow: auto;
}

.hd-bottom-section {
    width: 100%;
    display: flex;
    max-height: 170px;
    min-height: 170px;
    margin-bottom: 0px;
    padding: 0px 5px 1px 5px;
}

.hd-address {
    width: 50%;
    height: 100%;
    border: 1px solid lightgray;
    margin: 0px 5px 0px 5px;
}

.AddressDiv .card-wrapper {
    position: relative;
    width: 100%;
    height: fit-content;
    float: left;
    margin-right: 0px;
    padding: 0px;
    margin: 6px 0px;
    background-color: ghostwhite;
}

.AddressDiv .card-state-icon {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 0;
    width: 54px;
    height: 52px;
    background-position: 0 0;
    transition: all 100ms ease-out;
    background: linear-gradient( to top right, #f5f5f500 0%, #f5f5f500 50%, #0000ff00 53%, #0000ff00 100% );
}

.AddressDiv .card-content-selected {
    position: absolute !important;
    top: 0px !important;
    right: 0px !important;
    z-index: 0 !important;
    width: 200px !important;
    height: 32px !important;
    background-position: 0 0;
    transition: all 100ms ease-out !important;
    background: linear-gradient( to right, #f5f5f500 0%, #f5f5f500 50%, #a9a9c7 53%, blue 100% ) !important;
}

.newAddressDiv {
    font-size: 14px;
    height: 100%;
    margin: 5px;
}

.newAddressDiv .row {
    align-items: center;
}

.hd-text4 {
    text-align: right;
}

.hd-input {
    width: 100%;
    padding: 2px 10px;
    font-size: 14px;
    font-weight: 400;
    line-height: 0.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    margin: 2px;
}

.hd-input:focus{
    outline: none !important;
    border: 1px solid lightgray !important;
    box-shadow: none;
}

.hd-btn1 {
    height: 29px;
    font-size: 12px;
    padding: 2px;
    width: 150px;
}

.Address-btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0px 15px 5px auto;
}

.updateAddressDiv {
    font-size: 14px;
    height: 100%;
    margin: 5px;
    display: none;
}

.updateAddressDiv .row {
    align-items: center;
}

.hd-btn1 {
    height: 29px;
    font-size: 12px;
    padding: 2px;
    width: 150px;
}

.hd-search {
    width: 50%;
    min-height: 100%;
    border: 1px solid lightgray;
    margin: 0px 5px 0px 5px;
}

.hd-searchbox {
    height: 15%;
    padding: 5px;
}

.oldAddressDiv {
    height: 100%;
    width: 100%;
}

.div-address {
    height: 100%;
}

.AddressDiv .card-wrapper {
    position: relative;
    width: 100%;
    height: fit-content;
    float: left;
    margin-right: 0px;
    padding: 0px;
    margin: 6px 0px;
    background-color: ghostwhite;
}

.AddressDiv .c-card {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
}

.AddressDiv .card-content {
    box-shadow: 1px 1px 6px rgb(156 156 156);
    border-top: 0px;
    border-bottom: 0px;
    border-radius: 0px;
    padding: 5px 0px 5px 10px;
    text-align: left;
    height: 100%;
    cursor: pointer;
}

.AddressDiv .card-state-icon {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 0;
    width: 54px;
    height: 52px;
    background-position: 0 0;
    transition: all 100ms ease-out;
    background: linear-gradient( to top right, #f5f5f500 0%, #f5f5f500 50%, #0000ff00 53%, #0000ff00 100% );
}

.AddressDiv .card-content p {
    margin-bottom: 0px;
    font-size: 14px;
}

.hd-prev-order {
    width: 50%;
    border: 1px solid lightgray;
}

.hd-order {
    margin: 4px;
    overflow: auto;
    height: 96%;
    border: 1px solid lightgray;
    background-color: white;
}

.hd-prev-order-list {
    width: 50%;
    border: 1px solid lightgray;
}

.hd-order-list {
    margin: 5px;
    overflow: auto;
    height: 96%;
    border: 1px solid lightgray;
}

.hd-btn2 {
    font-size: 12px;
    padding: 5px;
}

#hd-prev-order-table tr td{
    font-size: 0.75rem;
    padding: 0.625rem;
}
#hd-prev-order-list tr td{
    font-size: 0.875rem;
    padding: 0.625rem;
}

#hd-prev-order-detail-table tr td{
    font-size: 13px;
    padding: 0.625rem;
}

#hd-prev-order-detail-table tr p{
    margin-bottom: 0;
}

#customerinfo th{
    font-size: 13px;
}

#functionDiv .changeAddress{
    padding: 7px 49px;
}

/* Keyboard style -- START */

	.keyboard-modal{
		position: absolute; /* Fixed to center it on the screen */
		background-color: #eef7ff;
		z-index: 2000;
		padding: 8px;
		display: none; /* Initially hidden */
		border: 1px solid gray;
		transition: height 0.3s ease;
		width: 100%;
		max-width: 50%; /* Adjust width */
		max-height: 272px; /* Set max height for keyboard */
		border-radius: 10px;
	}

	#keyboardModal {
		width: 100%;
		max-width: 50%; /* Adjust width */
		max-height: 272px; /* Set max height for keyboard */
	}

	#numberKeyboardModal {
		width: max-content;
		max-height: max-content;
	}

	#numberKeyboardModal .jline ul{
		display: grid;
		grid-template-columns: repeat(3, 1fr); /* 3 columns of equal width */
		gap: 10px; /* Space between keys */
		list-style: none;
		padding: 0;
		justify-items: center; /* Center the keys horizontally */
	}

	#numberKeyboardModal .jline ul li{
		padding: 20px;
		text-align: center;
		font-size: 24px;
		box-sizing: border-box;
		cursor: pointer;
		background-color: #f8f8f8;
	}

	.keyboard-modal.closed {
		height: 0;
		display: none;
	}

	.keyboard-modal.opened {
		display: block;
		height: auto;
	}

	.keyboard-modal #keyboardholder {
		width: 100%;
	}

	.keyboard-modal .jkeyboard .jline ul li {
		flex: 1 !important;
		margin: 3px;
		height: 46px !important;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.keyboard-modal #keyboardholder .jkeyboard .jline ul {
		display: flex !important;
	}

	.keyboard-modal #keyboardholder .jkeyboard .jline ul li.space {
		min-width: 60%;
	}

	.keyboard-modal #keyboardholder .jkeyboard .jline ul li.shift {
		min-width: 20%;
	}

	.keyboard-modal #keyboardholder .jkeyboard .jline ul li.backspace {
		min-width: 20%;
	}

	.keyboard-modal .jkeyboard .jline {
		margin-left: 0;
	}

	.keyboard-modal .modal-body .col-md-12 {
		padding: 0;
	}

	.keyboard-modal .jkeyboard .jline ul li:hover, .jkeyboard .jline ul li:active {
		background-color: #3a6083 !important;
		color: white;
	}

	.customerkeyboard{
		max-width: 70% !important;
		max-height: 350px !important;
	}

	.customerkeyboard.opened{
		height: 350px !important;
	}

	.customerkeyboard .jkeyboard .jline ul li{
		height: 61px !important;
	}
/* Keyboard style -- END */

@media only screen  and (min-width : 800px) 
    and (max-width : 1200px) 
    and (orientation : landscape) 
    {
        .newAddressDiv,.updateAddressDiv{
            font-size: 10px;
        }
    
        #customerinfo th{
            font-size: 10px;
        }
    
        .AddressDiv .card-content p{
            font-size: 10px;
        }

        .hd-bottom-section{
            max-height: 150px;
            min-height: 150px;
        }

        .hd-middle-section{
            max-height: calc(100vh - 464px);
            min-height: calc(100vh - 464px);
        }

        .hd-input{
            font-size: 11px;
        }

        .hd-address{
            height: 215px;
            min-height: 100%;
        }

        #takeOrder, .changeAddress{
            font-size: 11px;
        }

        #customerStatus{
            font-size: 11px;
        }

        #hd-search-result tr{
            font-size: 10px;
        }

        #hd-prev-order-table tr td{
            padding: 0.225rem;
            font-size: 12px;
        }
    }

    #takeOrder, .changeAddress{
        font-size: 13px;
    }

    #customerStatus{
        font-size: 11px;
    }

    #hd-search-result tr{
        font-size: 13px;
		text-transform: capitalize;
    }

    #hd-prev-order-table tr td{
        padding: 10px;
        font-size: 13px;
    }
/* Customer view modal end */

@media only screen  and (max-width : 1500px) {
	.global-add-btn{
		padding: 6px 25px;
	}
}