/* App-specific UI components (loaded after assets/css/style.css). */

#global-loader {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

#global-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#global-loader.htmx-request {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

form.pos-product-card {
  position: relative;
}

.pos-product-card__pending {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  pointer-events: auto;
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
}

form.pos-product-card.htmx-request .pos-product-card__pending {
  display: flex;
}

form.pos-product-card.htmx-request .product-info {
  opacity: 0.6;
}

html[data-theme=dark] form.pos-product-card .pos-product-card__pending {
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
}

#pos-product-grid.pos-product-grid-busy form.pos-product-card:not(.htmx-request) {
  pointer-events: none;
  opacity: 0.6;
}

@media (min-width: 992px) {
  body.pos-embedded {
    overflow-y: auto;
  }
}

.header-metric {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 574.98px) {
  .header-metric {
    width: 100%;
  }
}

.header-metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex: 0 0 auto;
}

.header-metric-text {
  min-width: 0;
}

.mpesa-accordion .accordion-button,
.mpesa-accordion .accordion-button.collapsed {
  color: #000000;
}

.quick-cash .quick-cash-btn {
  font-size: 20px;
  font-weight: 700;
  border: 1px solid #E6EAED;
  width: 88px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #646B72;
  background: #ffffff;
}

.quick-cash .quick-cash-btn:hover {
  background: #ffffff;
}

.quick-cash .quick-cash-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 991.98px) {
  .quick-cash .quick-cash-btn {
    height: 50px;
    font-size: 16px;
  }
}
