/* =============================================================================
   ERP global layering
   - Bootstrap dropdown default z-index (1000) was below page sticky panels (1020)
   - Header establishes a stacking context above page content
   ============================================================================= */
:root {
  --erp-z-page-sticky: 1020;
  --erp-z-mobile-cart: 1030;
  --erp-z-mobile-bottom-nav: 1040;
  --erp-z-site-header: 1048;
  --erp-z-nav-dropdown: 1050;
  --erp-z-offcanvas: 1080;
  --bs-dropdown-zindex: 1050;
  --bs-offcanvas-zindex: 1080;
}

.staff-login,
.staff-login input,
.staff-login button {
  font-family: "Segoe UI", Arial, sans-serif;
}

.staff-login .staff-login-title { font-size: 1.8rem; line-height: 1.2; font-weight: 600; }
.staff-login .form-label { font-size: .875rem; }
.staff-login .form-control { font-size: 1rem; }
.staff-login .btn { font-size: 1rem; }

.erp-site-header {
  position: relative;
  z-index: var(--erp-z-site-header);
}

.erp-site-header .navbar,
.erp-site-header .navbar-collapse,
.erp-site-header .navbar-nav {
  overflow: visible;
}

.erp-site-header .dropdown-menu {
  z-index: var(--erp-z-nav-dropdown);
}

@media (max-width: 991.98px) {
  .erp-site-header .navbar-collapse.show,
  .erp-site-header .navbar-collapse.collapsing {
    overflow: visible;
  }
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.reconcile-tx {
  padding: .55rem .75rem;
}

.reconcile-tx-row {
  display: grid;
  grid-template-columns: 6.5rem minmax(8rem, 12rem) minmax(10rem, 1fr) 7.25rem minmax(11rem, 16rem);
  gap: .5rem .75rem;
  align-items: center;
}

.reconcile-amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.reconcile-suggestions {
  margin-top: .35rem;
}

.reconcile-code {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(8rem, 1fr) auto;
  gap: .4rem;
  align-items: center;
  margin-top: .45rem;
}

@media (max-width: 991.98px) {
  .reconcile-tx-row,
  .reconcile-code {
    grid-template-columns: 1fr;
  }

  .reconcile-amount {
    text-align: left;
  }
}

.erp-home-card {
  min-height: 18.5rem;
  border: 1px solid #d7e3dc;
}

.erp-home-card .card-body {
  padding: 1.1rem 1.15rem;
}

.erp-home-card-links li {
  margin-bottom: .45rem;
}

.erp-home-card-links a {
  text-decoration: none;
}

.offcanvas.erp-editor-drawer {
  z-index: var(--erp-z-offcanvas, 1080);
  max-width: 100vw;
}

.offcanvas-backdrop {
  z-index: 1075;
}

.erp-editor-drawer .offcanvas-body {
  overflow-y: auto;
}

.erp-price-thumb {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  background: #f4f7f5;
  border: 1px solid #d7e3dc;
  border-radius: .25rem;
}

.erp-price-thumb-empty {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  color: #6c757d;
  background: #f4f7f5;
  border: 1px dashed #d7e3dc;
  border-radius: .25rem;
}

.erp-price-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .25rem;
}

.erp-list-table .erp-name-cell {
  max-width: 14rem;
  overflow-wrap: anywhere;
}

@media (min-width: 1366px) {
  html {
    font-size: 16px;
  }
}

