@media only screen and (min-width: 300px) and (max-width: 767px) {
    
    
#homebody{
 padding-top: 96px;
}

#homebanner{
  z-index: 1060; 
  height: 33px; 
  font-size: 0.9rem;
  background-color: rgb(44, 44, 76);
  font-family: 'Times New Roman', Times, serif;
}

#homebody .offcanvas {
  top: 33px !important;  
}



  /* home design  */
  .offcanvas-title {
    font-family: "Times New Roman", Times, serif;
    font-weight: bold;
    color: #f19c1a;
  }

  /* register page design */

  #formcontainerreg {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #formcontainerreg .tinylogo {
    width: 100%;
    display: none;
    justify-content: center;
    align-items: center;
  }

  #formcontainerreg .input-group {
    padding-bottom: 0.6rem;
  }

  #formcontainerreg .card-footer {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #formcontainerreg .card-footer h6 {
    text-align: center;
    font-size: 0.7rem;
  }

  /* login page design */

  #formcontainer {
    padding: 0.9rem;
  }

  .custom-toast-popup {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    max-width: 100% !important;
    text-align: center !important;
  }

  /* pos section */

  #backhome {
    margin-right: 1.5rem !important;
    margin-left: 1rem !important;
  }

  #cashboxid {
    margin-right: 1.2rem !important;
  }

  /* Left Grid */
  .left-grid {
    width: 100%;
    height: calc(45vh - 1rem) !important;
    padding-bottom: 20px !important;
    margin-bottom: 0px !important;
  }

  /* Product Grid (Card List) */
  .product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .arrow {
    font-size: 15px;
  }

  #categoryContainer {
    padding: 5px;
  }

  .category-item {
    padding: 5px;
    max-width: 100%;
  }

  /* Right Grid - Keeps layout fixed */
  .right-grid {
    margin-top: 2rem !important;
    width: 100% !important;
    height: 70vh !important;
  }

  #grossamount {
    width: 100% !important;
  }

  #totalBill {
    width: 100% !important;
  }

  .right-grid .button-row {
    font-size: 0.6rem !important;
    width: 100% !important;
  }

  .right-grid .button-row input {
    font-size: 0.5rem !important;
    width: 100% !important;
  }

  .item-table th,
  .item-table td {
    font-size: 10px !important;
  }

  /* Button Container */

  .button-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative !important;
    z-index: 1000;
    padding: 5px;
  }

  .button-grid {
    display: grid !important;
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 5px !important;
    margin-bottom: 5px;
  }

  .button-container button {
    padding: 5px;
    font-size: 11px;
  }

  .discount-container input,
  .bill-container input {
    width: 80%;
    height: 30px;
  }

  /* staff permission design */

  #manage-permissions .modal-dialog {
    max-width: 90%; /* Adjust width for small screens */
  }

  #manage-permissions .modal-body {
    max-height: 300px; /* Lower max-height for smaller screens */
  }

  /* home page design */

  .homesection1 {
    padding: 2rem;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .homesection1 .card-box {
    width: 180px;
    padding: 1.5rem;
    text-align: center;
    background-color: white;
  }

  .homesection2 {
    padding: 1rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .homesection2 h4 {
    text-align: center;
    padding-top: 1.5rem;
  }

  .homesection2 p {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-align: center;
  }

  .report-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px !important;
  }

  .report-item {
    flex: 0 0 48% !important;
    padding: 5px;
    margin-bottom: 0.9rem;
  }

  .homesection3 .homesection3info {
    padding: 2rem;
    padding-top: 8.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
    text-align: center;
    background-color: #f5f7fa;
    font-family: Georgia, "Times New Roman", Times, serif;
  }

  /* footer design  */

  .first-footer {
    padding: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 0.7rem;
    line-height: 2rem;
  }

  .first-footer .footercontent1 h5 {
    text-align: center;
    font-size: 0.9rem;
  }

  /* plan design */

  .plansection1 {
    padding-top: 8.5rem;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    padding: 2rem;
    padding-bottom: 2rem !important;
  }

  .plansection1 #planheadname {
    padding-top: 6rem;
  }

  .plansection1 .pricing-container {
    display: flex;
    flex-direction: column !important;
    justify-content: center;
    align-items: center !important;
    gap: 20px;
  }

  .plansection2 {
    padding: 2rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .plansection2 h4 {
    text-align: center;
  }

  .plansection2 p {
    text-align: center;
  }

  .plansection3 {
    padding: 2rem;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  /* blog section */

  .blogsection2 {
    padding: 1rem !important;
    padding-top: 1rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .blogsection3 {
    padding: 1rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .blogsection4 {
    padding: 1rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .blogsection4 h2 {
    font-family: "Times New Roman", Times, serif;
    font-weight: bold;
    text-align: center;
  }

  .blogsection4 p {
    line-height: 2rem;
    text-align: center;
    margin: 0rem;
  }

  /* about us page design */

  .aboutussection1 {
    padding: 2rem;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }

  .aboutussection2 {
    padding: 2rem;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .aboutussection3 {
    padding-top: 8.5rem !important;
    padding: 2rem;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .aboutussection3 h1 {
    text-align: center;
  }

  .aboutussection3 p {
    line-height: 2;
    text-align: center;
  }

  /* contact us page design */

  .contactsection1 {
    padding-top: 9rem;
    text-align: center;
  }

  .contactsection1,
  .contactform {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 1rem;
  }

  /* Chrome, Safari, Edge, Opera */
  input.no-arrow::-webkit-outer-spin-button,
  input.no-arrow::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  /* Firefox */
  input.no-arrow {
    -moz-appearance: textfield;
  }

  .contactsection2 {
    padding: 2rem;
    text-align: center;
  }

  .contactsection2,
  .contactinfo {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .contactsection3 {
    padding: 2rem;
  }

  .contactsection3 #iframe {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .privacypolicy {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .refundpolicy {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .shippingpolicy {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .termsofservice {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-bottom: 1.5rem;
  }
}
