body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: hidden;
}

:root {
  --header-bg-color: #377546;
  --header-text-color: #ffffff;
  --header-logoff-icon-color: #ffc723;
  --input-text-color: #707070;
  --icon-color: #707070;
  --sidebar-link-hover-color: #008a00;
  --sidebar-border-color: 3px solid rgba(112, 112, 112, 0.2);
  --order-item-color: rgba(0, 138, 0, 0.16);
  --order-item-selected-color: rgba(0, 138, 0, 0.25);
  --order-item-text-color: #000000;
  --quantity-control-color: #fff;
  --quantity-control-disabled-color: #ddd;
}

/* LOGIN */

.login-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f5f5f5;
  padding: 20px;
}

.login-title {
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
  font-weight: bold;
}

.login-form {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  color: #555;
}

.form-input,
.form-select {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus {
  border-color: #377546;
  outline: none;
}

.login-button {
  display: block;
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  color: #fff;
  background-color: #377546;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-button:hover {
  background-color: #008a00;
}

.error-message {
  margin-top: 15px;
  color: #e74c3c;
  font-size: 0.9rem;
  text-align: center;
}

/* HEADER */

header {
  background-color: var(--header-bg-color);
  color: var(--header-text-color);
  padding: 15px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-title {
  font-size: 20px;
  padding-left: 10px;
  flex: 1;
}

.search-bar {
  flex: 1;
  position: relative;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
}

.search-bar input {
  width: 100%;
  padding: 10px 0px 10px 55px;
  border-radius: 5px;
  border: none;
  color: var(--input-text-color);
  font-size: 14px;
}

.search-bar input:focus {
  outline: none;
}

.search-bar .search-icon {
  position: absolute;
  left: 10px;
  top: 55%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
  color: #707070;
}

.search-bar .barcode-icon {
  position: absolute;
  right: 15px;
  top: 55%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  pointer-events: none;
  color: #707070;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  color: black;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search-result-item {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.search-result-item:hover {
  background-color: #f9f9f9;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 105;
}

.popup-message {
  background: #fff;
  border: 1px solid black;
  color: black;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}

.popup-message button {
  margin-top: 10px;
  padding: 5px 15px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  justify-content: flex-end;
  margin-right: 120px;
}

.user-image {
  font-size: 30px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #fff;
  color: #377546;
  padding: 15px;
}

.user-signoff {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: flex-end;
  padding-right: 30px;
}

.user-signofficon {
  font-size: 34px;
  color: var(--header-logoff-icon-color);
}

.user-info,
.user-signoff {
  cursor: pointer;
}

/* SIDEBAR */

.sidebar {
  width: 200px;
  position: fixed;
  height: 100%;
  color: var(--icon-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  box-sizing: border-box;
  border-right: var(--sidebar-border-color);
}

.main-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-links li {
  margin-top: 25px;
  margin-bottom: 25px;
  text-align: center;
}

nav a {
  cursor: pointer;
}


.main-links li a {
  color: var(--icon-color);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.main-links li a:hover {
  color: var(--sidebar-link-hover-color);
}

.main-links li a.active {
  color: var(--sidebar-link-hover-color);
}

.main-links li a i {
  font-size: 24px;
}

.help-section {
  position: absolute;
  width: 100%;
  bottom: 0;
  list-style-type: none;
  padding-bottom: 6em;
}

.help-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.help-section ul li a {
  color: var(--icon-color);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.help-section ul li a:hover {
  color: var(--sidebar-link-hover-color);
}

.help-section ul li a i {
  font-size: 24px;
}

/* ORDERSUMMARY.VUE */

.order-summary {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 100vw;
  border-top: 1px solid #707070;
  border-left: 1px solid #707070;
  position: relative;
}

.order-summary-loader {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.12);
  cursor: initial;
  z-index: 100000;
}

.order-summary-updating .order-summary-loader {
  display:block;
}

.order-items-list,
.order-items-scrollable {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0;
  padding-top: 25px;
  box-sizing: border-box;

  /* Custom scrollbar styles */
  scrollbar-width: thin; /* For Firefox */
  scrollbar-color: grey transparent; /* For Firefox */
}

/* WebKit-based browsers (Chrome, Safari, Edge) */
.order-items-list::-webkit-scrollbar,
.order-items-scrollable::-webkit-scrollbar,
.order-overview-container::-webkit-scrollbar,
.order-details-container::-webkit-scrollbar {
  width: 2px;
}

.order-items-list::-webkit-scrollbar,
.order-overview-container::-webkit-scrollbar,
.order-items-scrollable::-webkit-scrollbar-thumb,
.order-overview-container::-webkit-scrollbar-thumb,
.order-details-container::-webkit-scrollbar-thumb {
  background-color: grey;
  border-radius: 10px;
}

.order-items-list::-webkit-scrollbar,
.order-overview-container::-webkit-scrollbar,
.order-items-scrollable::-webkit-scrollbar-track,
.order-overview-container::-webkit-scrollbar-track,
.order-details-container::-webkit-scrollbar-track {
  background-color: transparent;
}

.order-item {
  background-color: var(--order-item-color);
  border: 0.5px solid hsl(0, 0%, 44%);
  padding: 15px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  position: relative;
}

.availability-store {
  background-color: rgba(0, 138, 0, 0.16);
}

.availability-store.selected {
  background-color: rgba(0, 138, 0, 0.25);
}

.availability-warehouse {
  background-color: rgba(255, 155, 0, 0.16);
}

.availability-warehouse.selected {
  background-color: rgba(255, 155, 0, 0.25);
}

.availability-back-order {
  background-color: rgba(255, 127, 127, 0.16);
}

.availability-back-order.selected {
  background-color: rgba(255, 127, 127, 0.25);
}


.item-details {
  flex: 1;
}

.order-item.selected {
  background-color: var(--order-item-selected-color);
}

.scroll-spacer {
  height: 80px;
}

.product-image {
  width: 80px;
  height: 80px;
  margin-right: 10px;
  border-radius: 5px;
}

.item-header {
  margin-bottom: 5px;
}

.product-name {
  font-weight: bold;
  max-width: 280px; /* Set max width */
  white-space: normal; /* Allow the text to wrap */
  word-wrap: break-word; /* Ensure long words are broken to wrap to next line */
  justify-content: space-between;
}

.product-price {
  font-weight: bold;
  position: absolute;
  right: 100px;
  top: 25%;
  transform: translateY(-50%);
  max-width: 150px;
}

.product-price1 {
  font-weight: bold;
  position: absolute;
  right: 96px;
  top: 50%;
  transform: translateY(-50%);
  max-width: 150px;
}

.item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  right: 95px;
  top: 65%;
  padding-bottom: 10px;
}

.availability-button,
.delete-button {
  background-color: var(--quantity-control-color);
  color: var(--icon-color);
  border: 0.5px solid #707070;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
}

.availability-button:disabled,
.delete-button:disabled {
  background-color: var(--quantity-control-disabled-color);
  cursor: default;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 150px;
  position: absolute;
  right: 95px;
  top: 60%;
}

.quantity-button,
.availability-button,
.delete-button {
  background-color: var(--quantity-control-color);
  color: var(--icon-color);
  border: 0.5px solid #707070;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.quantity-counter {
  background-color: var(--quantity-control-color);
  border: 0.5px solid #707070;
  padding: 5px;
  width: 32px;
  height: 32px;
  text-align: center;
  font-weight: 300;
}

.quantity-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.checkmark-button {
  background-color: transparent;
  color: var(--icon-color);
  border: none;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
}

.editable-quantity {
  width: 80px;
  padding-left: 8px;
  padding-right: 30px;
}

.bottom-section {
  background-color: #f2f2f2;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  flex-shrink: 0;
  width: 100%;
  position: sticky;
  bottom: 0;
}

.keyboard,
.summary-of-costs {
  flex: 1;
  min-width: 200px;
  box-sizing: border-box;
}

.keyboard-row {
  display: flex;
  flex-wrap: wrap;
}

.keyboard-row button {
  flex: 1;
  height: 55px;
  margin: 2px;
  background-color: #fff;
  border: none;
}

.keyboard-row button:hover {
  background-color: rgb(0, 138, 0, 0.08);
}

.summary-of-costs {
  display: flex;
  flex-direction: column;
  color: #707070;
}

.cost-item,
.cost-item-total {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 16px;
}

.cost-label {
  flex: 1;
  text-align: left;
}

.price,
.total-price {
  text-align: right;
  min-width: 100px;
}

.discount-input-wrapper {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  width: 80px;
}

.discount-input-wrapper.hidden {
  display: none;
}

.discount-input {
  width: 100%;
  padding-left: 10px;
}

/* Remove arrows in editable quantity and discount input fields */
.editable-quantity::-webkit-outer-spin-button,
.editable-quantity::-webkit-inner-spin-button,
.discount-input::-webkit-outer-spin-button,
.discount-input::-webkit-inner-spin-button,
.received-input::-webkit-outer-spin-button,
.received-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.checkmark-button-discount {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-color: transparent;
  color: var(--icon-color);
  border: none;
  cursor: pointer;
}

.cost-item-total {
  margin-top: 48px;
}

.total-price {
  color: #008a00;
  font-size: 24px;
}

.customer-button {
  background-color: #008a00;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  height: 40px;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.customer-button .user-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: #fff;
  color: #008a00;
  margin-right: 10px;
}

.checkout-button {
  background-color: #377546;
  color: #fff;
  border-radius: 7px;
  height: 40px;
  border: none;
}

.checkout-button:disabled {
  color: rgba(255, 255, 255, 0.75);
}

.checkout-button,
.customer-button {
  margin-top: 10px;
  width: 100%;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: #fff;
  width: 90%;
  max-width: 500px;
  max-height: 620px;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  font-family: Arial, sans-serif;
}

.order-items-scrollable {
  max-height: 300px; /* Adjust this value as needed */
  overflow-y: auto;
  padding-right: 10px; /* Optional: Adds space for scrollbar */
}

.modal-content h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.5rem;
}

.modal-order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.modal-order-item:last-child {
  border-bottom: none;
}

.item-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.product-name1 {
  font-weight: 500;
  color: #333;
}

.product-quantity {
  color: #555;
  font-size: 0.9rem;
}

.product-pricee {
  font-weight: bold;
  color: #4caf50;
}

.total-price1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin-top: 1rem;
}

.payment-methods {
  margin: 1.5rem 0;
  font-size: 1rem;
}

.payment-methods h3 {
  font-weight: 600;
  color: #333;
}

.payment-methods label {
  display: inline-block;
  margin: 0.5rem;
  font-weight: 500;
  color: #666;
}

.payment-methods input[type="radio"] {
  margin-right: 0.3rem;
}

.cash-fields {
  position: absolute;
  bottom: 155px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 50px;
}

.received-input,
.change-input {
  width: 45%;
  padding: 0.3rem;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.change-input {
  background-color: #f9f9f9;
  color: #333;
}

.payment-warning {
  color: red;
  font-size: 0.9em;
  position: absolute;
  bottom: 145px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.confirm-checkout-modal,
.close-modal {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #4caf50;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.confirm-checkout-modal,
.close-modal:hover {
  background-color: #45a049;
}

.confirm-checkout-modal,
.close-modal:focus {
  outline: none;
  box-shadow: 0 0 0 2px #4caf50, 0 0 0 4px #45a049;
}

.confirm-checkout-modal + .close-modal {
  margin-left: 0.5rem;
  background-color: #e0e0e0;
  color: #333;
}

.confirm-checkout-modal + .close-modal:hover {
  background-color: #d5d5d5;
}

.confirm-checkout-modal + .close-modal:focus {
  box-shadow: 0 0 0 2px #e0e0e0, 0 0 0 4px #d5d5d5;
}
.confirmation-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.confirmation-popup {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.confirmation-popup button {
  margin: 5px;
}

/* OrderOverview */

.order-overview-container {
  max-height: 85vh;
  overflow-y: auto;
  padding: 1rem;
  padding-right: 2rem;
  box-sizing: border-box;
  border-radius: 5px;

  /* Custom scrollbar styles */
  scrollbar-width: thin; /* For Firefox */
  scrollbar-color: grey transparent; /* For Firefox */
}

.order-title {
  margin-bottom: 20px;
}

.table {
  margin-top: 20px;
  border: 1px solid #ddd;
}

.search-bar-order-overview {
  margin: 0 auto 20px;
}

.input-group {
  position: relative;
  width: 100%;
}

.input-group .form-control {
  padding-right: 40px;
}

.input-group input {
  font-size: 14px;
}

.input-group .input-group-text {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  border: none;
  z-index: 10;
}

.fas.fa-search {
  color: #6c757d;
}

.input-group .form-control:focus {
  padding-right: 40px;
  border: 1px solid #ced4da;
  box-shadow: none;
}

.table-striped > tbody > tr:nth-child(odd) > td,
.table-striped > tbody > tr:nth-child(odd) > th {
  background-color: rgba(0, 138, 0, 0.16);
}

.pagination {
  margin-top: 20px;
}
.page-item.disabled .page-link {
  pointer-events: none;
  opacity: 0.6;
  color: #377546;
}
.page-item.active .page-link {
  background-color: #377546;
  border-color: #377546;
  color: white;
}

.page-item,
.page-link {
  color: #377546;
}
.page-item:hover,
.page-link:hover {
  color: #377546;
}

/* OrderDetails */

.order-details-container {
  max-height: 80vh;
  overflow-y: auto;
  padding: 1rem;
  padding-right: 2rem;
  box-sizing: border-box;
  border-radius: 5px;

  /* Custom scrollbar styles */
  scrollbar-width: thin; /* For Firefox */
  scrollbar-color: grey transparent; /* For Firefox */
}

.order-details-content .d-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-to-orders-btn,
.print-order-btn {
  background-color: #377546;
  border: none;
  color: #fff;
}

.back-to-orders-btn:hover,
.print-order-btn:hover {
  background-color: #2f613e;
  color: #fff;
}

.back-to-orders-btn:focus,
.print-order-btn:focus,
.back-to-orders-btn:active,
.print-order-btn:active {
  background-color: #377546;
  color: #fff;
  outline: none;
  box-shadow: none;
}

/* CLIENTOVERVIEW */

.client-overview {
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
  /* Custom scrollbar styles */
  scrollbar-width: thin; /* For Firefox */
  scrollbar-color: grey transparent; /* For Firefox */
}

.client-title {
  margin-bottom: 20px;
}

.client-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.client-item {
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}

.client-item:hover {
  background-color: rgba(0, 138, 0, 0.16);
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.expanded {
  background-color: rgba(0, 138, 0, 0.16);
}

.client-name {
  color: #008a00;
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 10px 0;
}

.client-email {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: #555;
}

.client-details {
  margin-top: 15px;
  font-size: 15px;
  color: #444;
  line-height: 1.6;
}

.client-details p {
  margin: 5px 0;
}

.snackbar {
  box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12),
  0 8px 10px -5px rgba(0, 0, 0, 0.3);

  position: fixed;
  bottom: 23px;
  left: 23px;
  background-color: rgba(0, 0, 0, 0.87);
  display: flex;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 2s;
  max-width: 80%;
  min-height: 48px;
  padding: 0 8px 0 16px;
}


.sb_message, .sb_with_action {
  opacity: 1;
}

.sb_hidden {
  display: none;
}

.snackbar span, .snackbar a {
  color: #fff;
  margin: auto 0;
  padding: 8px 0;
}

.snackbar.sb_with_action span {
  width: 344px;
}

.snackbar.sb_with_action .sb_action {
  color: #64b5f6;
  cursor: pointer;
  width: 64px;
  text-align: center;
  text-decoration: none;
}

.search-results-container {
  padding-top: 25px;
  padding-left: 10px;
  padding-right: 10px;
}

.fullheight {
  height: 100%;
}

.product-search-results-container {
  width: 100%;
  padding-top: 20px;
  height: 100vh;
  overflow: scroll;
  padding-bottom: 80px;
}

.product-search-results-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
}

.product-search-result {
  padding: 10px;
  flex:0 1 calc(50% - 20px);
  margin: 10px;
  border: 1px solid #ddd;
  cursor: pointer;
}

.product-search-result-img {
  width: 100%;
}

.product-search-result-title {
  color: #222;
  font-size: 1em;
}

.product-search-result-info {
  color: #2f613e;
  font-weight: bold;
}

.payment-methods {
  display: flex;
}

.payment-method-button {
  padding: 2em;
  margin: 1em;
  flex-grow: 1;
}

.ml-1 {
  margin-left: 1em;
}

.scrollable {
  max-height: 85vh;
  overflow-y: auto;
}