/**
 * Placeholder thickness minimized
 * */
.form-control::placeholder {
  color: rgba(168, 170, 173, 0.75);
  opacity: 1;
}
/**
 * Change Group Button size - (Right Side Buttons)
 * */
 .cc-group-btn-size{
  padding: .375rem .15rem;
 }

 /**
  * Print page minimum width
 */
 .min-width-600{
  min-width: 600px;
 }

 /**
 * Autocomplete css
 * */
 .ui-autocomplete {
  max-height: 160px;
  overflow-y: auto;
  overflow-x: hidden; /* prevent horizontal scrollbar */
}

/**
 * Autocomplete Loader for input box
 * */
.ui-autocomplete-loading {
  background: white url("autocomplete-loader/ui-anim_basic_16x16.gif") right center no-repeat;
}

/**
 * Cursor not allowed
 * */
 .cursor-not-allowed{
  cursor:not-allowed;
 }

 /**
  * Input box border color change to primary class color
  * */
.custom-border-primary {
    border-color: #007bff !important; /* Replace with your desired color */
}

/**
 * Page Loader , Spinner
 * */
 #spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
#spinner-content {
    text-align: center;
}
#loading-message {
    color: white;
    margin-top: 15px;
    font-size: 18px;
}

/**
 * Highlight last added table row
 * */
tr.highlight {
  animation: popIn 0.5s ease-out;
}
@keyframes popIn {
  0% {
    transform: scale(1.05);
    background-color: rgb(0 140 255 / 5%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  100% {
    transform: scale(1);
    background-color: rgb(0 140 255 / 5%);
    box-shadow: none;
  }
}

/**
* no code
* */
.text-transform-none{
text-transform: none;
}

/**
* input group input box, in one group i need to show some of the select or
* input box 30 %
* */
.cu-flex-30{
  flex: 0 0 30% !important;
}

.cu-w-500-px{
  width: 500px !important;
}

/* Auto width utility: use .cu-w-400-px, .cu-w-300-px, or create your own size */
.cu-w-400-px {
    width: 400px !important;
}


/**
 * POS Page Items Selected Table Resize
 * */
 .resizable-vertical {
  resize: vertical;
  overflow: auto; /* Required for the resize property to work */
  min-height: 270px;
}

/**
 * No Padding for invoice tables
 * */
 #invoiceItemsTable input.form-control {
    padding-left: 0rem;
    padding-right: 0rem;
    font-size: 18px;
}

/**
 * Item Selection Modal - Increase width for tablet view
 * */
@media (min-width: 768px) and (max-width: 1199px) {
    #itemSelectionModal .modal-dialog {
        max-width: 90% !important;
        width: 90% !important;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    #itemSelectionModal .modal-dialog {
        max-width: 95% !important;
        width: 95% !important;
    }
}

/**
 * Ensure modal footer is visible on mobile
 * */
@media (max-width: 575px) {
    #itemSelectionModal .modal-content {
        height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    #itemSelectionModal .modal-body {
        flex: 1 !important;
        overflow-y: auto !important;
        padding-bottom: 1rem !important;
    }
    
    #itemSelectionModal .modal-footer {
        flex-shrink: 0 !important;
        position: sticky !important;
        bottom: 0 !important;
        background: white !important;
        border-top: 1px solid #dee2e6 !important;
        z-index: 1000 !important;
    }
    
    #itemSelectionModal #itemsList {
        max-height: calc(100vh - 200px) !important;
    }
}
