html, body { height: 100%; }
:root {
  --layout-offset-lg: clamp(120px, 16vh, 200px);
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#appView {
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
@supports (height: 100dvh) {
  body,
  #appView {
    min-height: 100dvh;
  }
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
main > .row {
  flex: 1;
  min-height: 0;
}
.scroll-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.scroll-card .card-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.scroll-card .card-body.overflow-auto {
  overflow: auto;
}
.orders-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.orders-table-wrapper {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.orders-table-sortable {
  cursor: pointer;
  user-select: none;
}
.orders-table-sortable .sort-indicator {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.15s ease, transform 0.15s ease;
}
.orders-table-sortable.is-sorted .sort-indicator {
  color: var(--bs-primary, #0d6efd);
}
.orders-table-sortable:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.35);
  border-radius: 0.35rem;
}
.status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
  padding: 0.25rem 0.55rem;
}
.status-stack {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.status-stack-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.date-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
}
.date-cell-primary {
  font-weight: 600;
}
.date-cell-secondary {
  display: flex;
}
.options-dropdown {
  display: inline-flex;
}
.options-dropdown .dropdown-toggle {
  min-width: auto;
  padding-inline: 0.9rem;
}
.options-dropdown .dropdown-toggle::after {
  margin-left: 0.35rem;
}
.options-toggle {
  border-color: rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-weight: 600;
}
.options-toggle:hover,
.options-toggle:focus {
  background-color: rgba(255, 255, 255, 0.12);
  color: inherit;
}
.options-toggle:active {
  background-color: rgba(255, 255, 255, 0.18);
}
.options-dropdown .dropdown-item i {
  font-size: 0.95rem;
  margin-right: 0.5rem;
}
.options-dropdown .dropdown-menu {
  min-width: 12rem;
  border-radius: 0.6rem;
  padding: 0.3rem 0;
}
.product-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.product-list li {
  line-height: 1.25;
}

.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(15, 15, 20, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
}

.shipping-modal-body {
  padding-top: 0.5rem;
}
.shipping-scroll-area {
  max-height: calc(100vh - 220px);
  overflow: auto;
  padding-right: 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.shipping-form-label {
  font-weight: 600;
  font-size: 0.85rem;
}
.shipping-quotes-grid {
  margin: 0;
}
.shipping-provider-column {
  display: flex;
}
.shipping-quote-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background-color: var(--bs-dark-bg-subtle, #2b2f36);
}
.shipping-quote-card strong {
  font-size: 1.1rem;
}
.shipping-quote-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.shipping-quote-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.shipping-carrier-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.35));
}
.shipping-carrier-name {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.shipping-quote-details {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}
.shipping-quote-details > div {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.shipping-quote-details i {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}
.shipping-results-placeholder {
  min-height: 200px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.shipping-provider-badge {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.shipping-product-hint {
  font-size: 0.8rem;
}
@media (max-width: 991.98px) {
  .shipping-scroll-area {
    max-height: none;
  }
}
@media (min-width: 992px) {
  .pay-periods-card .card-body,
  .orders-table-wrapper {
    max-height: calc(100vh - var(--layout-offset-lg));
  }
  @supports (height: 100dvh) {
    .pay-periods-card .card-body,
    .orders-table-wrapper {
      max-height: calc(100dvh - var(--layout-offset-lg));
    }
  }
}
.print-preview-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: clamp(70vh, 80vh, 90vh);
}

.print-preview-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background-color: transparent;
}

  
