/* Orders page professional filter bar - final visible override */
#orders .orders-fixed-filter-panel,
html body #orders .orders-fixed-filter-panel,
html body.logged-in:not(.auth-loading) #orders .orders-fixed-filter-panel,
html body.role-branch-manager:not(.auth-loading) #orders .orders-fixed-filter-panel {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 8px 0 14px !important;
  padding: 10px 12px !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08) !important;
  overflow: visible !important;
}

#orders .orders-compact-toolbar,
html body #orders .orders-compact-toolbar,
html body.logged-in:not(.auth-loading) #orders .orders-compact-toolbar,
html body.role-branch-manager:not(.auth-loading) #orders .orders-compact-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  min-height: 26px !important;
  height: 26px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#orders .orders-toolbar-left,
html body #orders .orders-toolbar-left {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

#orders .orders-filter-title,
#orders .orders-toolbar-left .badge,
#orders .orders-toolbar-note,
html body #orders .orders-filter-title,
html body #orders .orders-toolbar-left .badge,
html body #orders .orders-toolbar-note {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 25px !important;
  min-height: 25px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

#orders .orders-filter-title,
html body #orders .orders-filter-title {
  border: 1px solid #1d4ed8 !important;
  background: #1d4ed8 !important;
  color: #ffffff !important;
}

#orders .orders-toolbar-left .badge,
#orders .orders-toolbar-left .badge.green,
#orders .orders-toolbar-note,
html body #orders .orders-toolbar-left .badge,
html body #orders .orders-toolbar-left .badge.green,
html body #orders .orders-toolbar-note {
  border: 1px solid #bfdbfe !important;
  background: #dbeafe !important;
  color: #1d4ed8 !important;
}

#orders .filter-bar.order-filter-bar,
html body #orders .filter-bar.order-filter-bar,
html body.logged-in:not(.auth-loading) #orders .filter-bar.order-filter-bar,
html body.role-branch-manager:not(.auth-loading) #orders .filter-bar.order-filter-bar {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-end !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
}

#orders .order-filter-bar .field,
#orders .order-filter-bar .column-dropdown,
html body #orders .order-filter-bar .field,
html body #orders .order-filter-bar .column-dropdown,
html body.logged-in:not(.auth-loading) #orders .order-filter-bar .field,
html body.role-branch-manager:not(.auth-loading) #orders .order-filter-bar .field {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  height: 50px !important;
  min-height: 50px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#orders #orderSearchField { flex: 1 1 420px !important; min-width: 280px !important; }
#orders #orderDateModeField { flex: 0 0 112px !important; }
#orders #orderFromField,
#orders #orderToField { flex: 0 0 128px !important; }
#orders #orderBranchFilterField { flex: 0 0 120px !important; }
#orders #orderOutletFilterField { flex: 0 0 126px !important; }
#orders #orderWorkflowFilterField { flex: 0 0 122px !important; }
#orders #orderPaymentFilterField { flex: 0 0 116px !important; }
#orders #orderColumnDropdown { flex: 0 0 124px !important; position: relative !important; }
#orders #orderDispatchStatusField { flex: 0 0 170px !important; }

#orders .order-filter-bar label,
html body #orders .order-filter-bar label {
  display: block !important;
  height: 13px !important;
  margin: 0 !important;
  color: #0f172a !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 13px !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#orders .order-filter-bar .input,
#orders .order-filter-bar .primary-button,
#orders .order-filter-bar .ghost-button,
#orders .order-filter-bar .column-dropdown-button,
html body #orders .order-filter-bar .input,
html body #orders .order-filter-bar .primary-button,
html body #orders .order-filter-bar .ghost-button,
html body #orders .order-filter-bar .column-dropdown-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border: 1px solid rgba(37, 99, 235, .38) !important;
  border-radius: 7px !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

#orders #applyOrderSearch,
#orders #clearOrderFilters,
html body #orders #applyOrderSearch,
html body #orders #clearOrderFilters {
  flex: 0 0 64px !important;
  width: 64px !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 16px 0 0 !important;
  padding: 0 !important;
  border-radius: 7px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

#orders #applyOrderSearch,
html body #orders #applyOrderSearch {
  border-color: #1d4ed8 !important;
  background: #1d4ed8 !important;
  color: #ffffff !important;
}

#orders #clearOrderFilters,
html body #orders #clearOrderFilters {
  flex-basis: 72px !important;
  width: 72px !important;
  border-color: rgba(37, 99, 235, .38) !important;
  background: #f8fafc !important;
  color: #b91c1c !important;
}

#orders #applyOrderSearch::before,
#orders #clearOrderFilters::before,
#orders #orderColumnDropdown .column-dropdown-button::before,
html body #orders #applyOrderSearch::before,
html body #orders #clearOrderFilters::before,
html body #orders #orderColumnDropdown .column-dropdown-button::before {
  content: none !important;
}

#orders #orderColumnDropdown .column-dropdown-button,
html body #orders #orderColumnDropdown .column-dropdown-button {
  justify-content: space-between !important;
  gap: 5px !important;
  padding: 0 8px !important;
}

#orders .column-menu,
html body #orders .column-menu {
  right: 0 !important;
  left: auto !important;
  top: calc(100% + 6px) !important;
  z-index: 10000 !important;
}

#orders .master-scan-bar,
html body #orders .master-scan-bar,
html body.logged-in:not(.auth-loading) #orders .orders-fixed-filter-panel:not(.tracking-filter-mode) .master-scan-bar,
html body.role-branch-manager:not(.auth-loading) #orders .master-scan-bar {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  width: min(620px, 100%) !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 6px !important;
  border: 1px solid rgba(37, 99, 235, .24) !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: 0 5px 14px rgba(15, 23, 42, .055) !important;
}

#orders .master-scan-auto-label,
html body #orders .master-scan-auto-label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 110px !important;
  height: 34px !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 7px !important;
  background: #eff6ff !important;
  color: #1e40af !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

#orders .master-scan-auto-label span,
html body #orders .master-scan-auto-label span { display: none !important; }

#orders .master-scan-code-field,
html body #orders .master-scan-code-field { flex: 1 1 auto !important; min-width: 220px !important; }

#orders .master-scan-bar label,
html body #orders .master-scan-bar label { display: none !important; }

#orders .master-scan-bar .input,
#orders .master-scan-bar .ghost-button,
#orders .master-scan-bar .primary-button,
#orders .master-scan-bar .badge,
html body #orders .master-scan-bar .input,
html body #orders .master-scan-bar .ghost-button,
html body #orders .master-scan-bar .primary-button,
html body #orders .master-scan-bar .badge {
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 7px !important;
}

#orders .orders-fixed-filter-panel.tracking-filter-mode .master-scan-bar,
html body #orders .orders-fixed-filter-panel.tracking-filter-mode .master-scan-bar { display: none !important; }

#orders .order-filter-bar.tracking-filter-mode #orderBranchFilterField,
#orders .order-filter-bar.tracking-filter-mode #orderWorkflowFilterField,
#orders .order-filter-bar.tracking-filter-mode #orderPaymentFilterField,
#orders .order-filter-bar.tracking-filter-mode #orderColumnDropdown,
#orders .order-filter-bar.tracking-filter-mode #clearOrderFilters,
#orders .order-filter-bar.tracking-filter-mode #orderFromField,
#orders .order-filter-bar.tracking-filter-mode #orderToField {
  display: none !important;
}

@media (max-width: 1100px) {
  #orders .filter-bar.order-filter-bar,
  html body #orders .filter-bar.order-filter-bar { flex-wrap: wrap !important; }
  #orders #orderSearchField { flex-basis: 100% !important; }
}

/* ============================================================
   2026-06-18: Orders + Tracking filter layout polish
   - Orders: Master Scan card sits on the top/right side of filters.
   - Orders: compact widths/wrapping keep controls visible and aligned.
   - Tracking: fixed compact filter row with a shorter search box.
   ============================================================ */
html body.logged-in:not(.auth-loading) #orders .orders-fixed-filter-panel:not(.tracking-filter-mode),
html body.role-branch-manager:not(.auth-loading) #orders .orders-fixed-filter-panel:not(.tracking-filter-mode),
#orders .orders-fixed-filter-panel:not(.tracking-filter-mode) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px) !important;
  grid-template-areas:
    "head head"
    "filters scan"
    "summary summary" !important;
  align-items: start !important;
  column-gap: 10px !important;
  row-gap: 8px !important;
  overflow: visible !important;
}

html body.logged-in:not(.auth-loading) #orders .orders-fixed-filter-panel:not(.tracking-filter-mode) .orders-compact-toolbar,
html body.role-branch-manager:not(.auth-loading) #orders .orders-fixed-filter-panel:not(.tracking-filter-mode) .orders-compact-toolbar,
#orders .orders-fixed-filter-panel:not(.tracking-filter-mode) .orders-compact-toolbar {
  grid-area: head !important;
}

html body.logged-in:not(.auth-loading) #orders .orders-fixed-filter-panel:not(.tracking-filter-mode) .filter-bar.order-filter-bar,
html body.role-branch-manager:not(.auth-loading) #orders .orders-fixed-filter-panel:not(.tracking-filter-mode) .filter-bar.order-filter-bar,
#orders .orders-fixed-filter-panel:not(.tracking-filter-mode) .filter-bar.order-filter-bar {
  grid-area: filters !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  gap: 6px !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding-bottom: 0 !important;
}

html body.logged-in:not(.auth-loading) #orders .orders-fixed-filter-panel:not(.tracking-filter-mode) .master-scan-bar,
html body.role-branch-manager:not(.auth-loading) #orders .orders-fixed-filter-panel:not(.tracking-filter-mode) .master-scan-bar,
#orders .orders-fixed-filter-panel:not(.tracking-filter-mode) .master-scan-bar {
  grid-area: scan !important;
  justify-self: end !important;
  align-self: start !important;
  display: flex !important;
  width: 100% !important;
  max-width: 430px !important;
  min-width: 0 !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 7px !important;
  overflow: visible !important;
}

html body.logged-in:not(.auth-loading) #orders .orders-fixed-filter-panel:not(.tracking-filter-mode) #orderDateSummary,
html body.role-branch-manager:not(.auth-loading) #orders .orders-fixed-filter-panel:not(.tracking-filter-mode) #orderDateSummary,
#orders .orders-fixed-filter-panel:not(.tracking-filter-mode) #orderDateSummary {
  grid-area: summary !important;
}

/* Compact normal Orders filter controls so every item remains visible/aligned. */
#orders .orders-fixed-filter-panel:not(.tracking-filter-mode) #orderSearchField { flex: 1 1 190px !important; min-width: 170px !important; }
#orders .orders-fixed-filter-panel:not(.tracking-filter-mode) #orderDateModeField { flex: 0 0 104px !important; }
#orders .orders-fixed-filter-panel:not(.tracking-filter-mode) #orderFromField,
#orders .orders-fixed-filter-panel:not(.tracking-filter-mode) #orderToField { flex: 0 0 116px !important; }
#orders .orders-fixed-filter-panel:not(.tracking-filter-mode) #orderBranchFilterField { flex: 1 1 108px !important; min-width: 104px !important; }
#orders .orders-fixed-filter-panel:not(.tracking-filter-mode) #orderOutletFilterField { flex: 1 1 112px !important; min-width: 106px !important; }
#orders .orders-fixed-filter-panel:not(.tracking-filter-mode) #orderWorkflowFilterField { flex: 1 1 112px !important; min-width: 106px !important; }
#orders .orders-fixed-filter-panel:not(.tracking-filter-mode) #orderPaymentFilterField { flex: 0 0 104px !important; }
#orders .orders-fixed-filter-panel:not(.tracking-filter-mode) #orderColumnDropdown { flex: 0 0 112px !important; }
#orders .orders-fixed-filter-panel:not(.tracking-filter-mode) #applyOrderSearch { flex: 0 0 58px !important; width: 58px !important; }
#orders .orders-fixed-filter-panel:not(.tracking-filter-mode) #clearOrderFilters { flex: 0 0 62px !important; width: 62px !important; }

#orders .orders-fixed-filter-panel:not(.tracking-filter-mode) .master-scan-auto-label,
html body #orders .orders-fixed-filter-panel:not(.tracking-filter-mode) .master-scan-auto-label {
  min-width: 86px !important;
  padding: 0 8px !important;
  font-size: 11px !important;
}

#orders .orders-fixed-filter-panel:not(.tracking-filter-mode) .master-scan-code-field,
html body #orders .orders-fixed-filter-panel:not(.tracking-filter-mode) .master-scan-code-field {
  flex: 1 1 125px !important;
  min-width: 110px !important;
}

#orders .orders-fixed-filter-panel:not(.tracking-filter-mode) .master-scan-bar .ghost-button,
#orders .orders-fixed-filter-panel:not(.tracking-filter-mode) .master-scan-bar .primary-button {
  flex: 0 0 58px !important;
  width: 58px !important;
  padding: 0 7px !important;
}

#orders .orders-fixed-filter-panel:not(.tracking-filter-mode) #masterOrderScanResult {
  flex: 0 0 auto !important;
  max-width: 76px !important;
  padding: 0 8px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Tracking filter: fixed compact row; short search box. */
html body.logged-in:not(.auth-loading) #orders .orders-fixed-filter-panel.tracking-filter-mode,
html body.role-branch-manager:not(.auth-loading) #orders .orders-fixed-filter-panel.tracking-filter-mode,
#orders .orders-fixed-filter-panel.tracking-filter-mode {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-areas:
    "head"
    "filters" !important;
  overflow: visible !important;
}

html body.logged-in:not(.auth-loading) #orders .order-filter-bar.tracking-filter-mode,
html body.role-branch-manager:not(.auth-loading) #orders .order-filter-bar.tracking-filter-mode,
#orders .order-filter-bar.tracking-filter-mode {
  grid-area: filters !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  width: 100% !important;
  min-height: 50px !important;
  overflow: visible !important;
}

#orders .order-filter-bar.tracking-filter-mode #orderSearchField,
html body.logged-in:not(.auth-loading) #orders .order-filter-bar.tracking-filter-mode #orderSearchField {
  display: flex !important;
  flex: 0 0 220px !important;
  width: 220px !important;
  min-width: 190px !important;
  max-width: 220px !important;
}

#orders .order-filter-bar.tracking-filter-mode #applyOrderSearch,
html body.logged-in:not(.auth-loading) #orders .order-filter-bar.tracking-filter-mode #applyOrderSearch {
  display: inline-flex !important;
  flex: 0 0 58px !important;
  width: 58px !important;
}

#orders .order-filter-bar.tracking-filter-mode #orderDateModeField,
html body.logged-in:not(.auth-loading) #orders .order-filter-bar.tracking-filter-mode #orderDateModeField {
  display: flex !important;
  flex: 0 0 118px !important;
  width: 118px !important;
}

#orders .order-filter-bar.tracking-filter-mode #orderOutletFilterField,
html body.logged-in:not(.auth-loading) #orders .order-filter-bar.tracking-filter-mode #orderOutletFilterField {
  display: flex !important;
  flex: 0 0 210px !important;
  width: 210px !important;
}

#orders .order-filter-bar.tracking-filter-mode #orderDispatchStatusField,
html body.logged-in:not(.auth-loading) #orders .order-filter-bar.tracking-filter-mode #orderDispatchStatusField {
  display: flex !important;
  flex: 0 0 176px !important;
  width: 176px !important;
}

#orders .order-filter-bar.tracking-filter-mode #orderBranchFilterField,
#orders .order-filter-bar.tracking-filter-mode #orderWorkflowFilterField,
#orders .order-filter-bar.tracking-filter-mode #orderPaymentFilterField,
#orders .order-filter-bar.tracking-filter-mode #orderColumnDropdown,
#orders .order-filter-bar.tracking-filter-mode #clearOrderFilters,
#orders .order-filter-bar.tracking-filter-mode #orderFromField,
#orders .order-filter-bar.tracking-filter-mode #orderToField,
html body.logged-in:not(.auth-loading) #orders .order-filter-bar.tracking-filter-mode #orderBranchFilterField,
html body.logged-in:not(.auth-loading) #orders .order-filter-bar.tracking-filter-mode #orderWorkflowFilterField,
html body.logged-in:not(.auth-loading) #orders .order-filter-bar.tracking-filter-mode #orderPaymentFilterField,
html body.logged-in:not(.auth-loading) #orders .order-filter-bar.tracking-filter-mode #orderColumnDropdown,
html body.logged-in:not(.auth-loading) #orders .order-filter-bar.tracking-filter-mode #clearOrderFilters,
html body.logged-in:not(.auth-loading) #orders .order-filter-bar.tracking-filter-mode #orderFromField,
html body.logged-in:not(.auth-loading) #orders .order-filter-bar.tracking-filter-mode #orderToField {
  display: none !important;
}

@media (max-width: 1300px) {
  html body.logged-in:not(.auth-loading) #orders .orders-fixed-filter-panel:not(.tracking-filter-mode),
  html body.role-branch-manager:not(.auth-loading) #orders .orders-fixed-filter-panel:not(.tracking-filter-mode),
  #orders .orders-fixed-filter-panel:not(.tracking-filter-mode) {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "head"
      "scan"
      "filters"
      "summary" !important;
  }

  html body.logged-in:not(.auth-loading) #orders .orders-fixed-filter-panel:not(.tracking-filter-mode) .master-scan-bar,
  html body.role-branch-manager:not(.auth-loading) #orders .orders-fixed-filter-panel:not(.tracking-filter-mode) .master-scan-bar,
  #orders .orders-fixed-filter-panel:not(.tracking-filter-mode) .master-scan-bar {
    justify-self: end !important;
    max-width: 500px !important;
  }
}

@media (max-width: 760px) {
  html body.logged-in:not(.auth-loading) #orders .order-filter-bar.tracking-filter-mode,
  html body.role-branch-manager:not(.auth-loading) #orders .order-filter-bar.tracking-filter-mode,
  #orders .order-filter-bar.tracking-filter-mode,
  html body.logged-in:not(.auth-loading) #orders .orders-fixed-filter-panel:not(.tracking-filter-mode) .filter-bar.order-filter-bar,
  #orders .orders-fixed-filter-panel:not(.tracking-filter-mode) .filter-bar.order-filter-bar {
    flex-wrap: wrap !important;
  }

  #orders .order-filter-bar.tracking-filter-mode #orderSearchField,
  html body.logged-in:not(.auth-loading) #orders .order-filter-bar.tracking-filter-mode #orderSearchField {
    flex: 1 1 190px !important;
    width: auto !important;
    max-width: none !important;
  }

  #orders .orders-fixed-filter-panel:not(.tracking-filter-mode) .master-scan-bar,
  html body #orders .orders-fixed-filter-panel:not(.tracking-filter-mode) .master-scan-bar {
    flex-wrap: wrap !important;
    max-width: none !important;
  }
}

/* New Order mobile totals and Add Item quantity controls */
html body:not(.auth-loading) #newOrder .new-order-final-pricing-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

html body:not(.auth-loading) #newOrder .new-order-final-pricing-list .new-order-total-line {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  min-width: 0 !important;
  min-height: 48px !important;
  padding: 7px 9px !important;
  gap: 3px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

html body:not(.auth-loading) #newOrder .new-order-final-pricing-list .new-order-total-line span,
html body:not(.auth-loading) #newOrder .new-order-final-pricing-list .new-order-total-line b {
  display: block !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  text-align: left !important;
  line-height: 1.15 !important;
}

html body:not(.auth-loading) #newOrder .new-order-final-pricing-list .new-order-total-line span {
  font-size: 10px !important;
  font-weight: 600 !important;
}

html body:not(.auth-loading) #newOrder .new-order-final-pricing-list .new-order-total-line b {
  font-size: 13px !important;
  font-weight: 900 !important;
}

html body:not(.auth-loading) #newOrder .new-order-final-pricing-list .new-order-total-line.total {
  grid-column: 1 / -1 !important;
  min-height: 54px !important;
}

html body:not(.auth-loading) #garmentModal .modal,
html body:not(.auth-loading) #garmentModal .modal-body,
html body:not(.auth-loading) #garmentModalBody {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
}

html body:not(.auth-loading) #garmentModal .professional-form,
html body:not(.auth-loading) #garmentModal .laundry-kg-row {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
}

html body:not(.auth-loading) #garmentModal .garment-counter {
  display: grid !important;
  grid-template-columns: 38px minmax(0, 1fr) 38px !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
  align-items: center !important;
}

html body:not(.auth-loading) #garmentModal .garment-counter input,
html body:not(.auth-loading) #garmentModal .garment-counter .input,
html body:not(.auth-loading) #garmentModal .garment-counter .popup-qty-input {
  width: 100% !important;
  min-width: 0 !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 4px 6px !important;
  text-align: center !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

html body:not(.auth-loading) #garmentModal .garment-counter button {
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 8px !important;
  font-size: 18px !important;
  line-height: 1 !important;
}

html body:not(.auth-loading) #garmentModal .laundry-picker-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
}

@media (max-width: 680px) {
  html body:not(.auth-loading) #newOrder .grid,
  html body:not(.auth-loading) #newOrder .card,
  html body:not(.auth-loading) #newOrder .new-order-summary-control {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  html body:not(.auth-loading) #garmentModal .modal {
    width: calc(100vw - 14px) !important;
    max-height: calc(100vh - 18px) !important;
  }

  html body:not(.auth-loading) #garmentModal .professional-form,
  html body:not(.auth-loading) #garmentModal .laundry-kg-row,
  html body:not(.auth-loading) #garmentModal .laundry-picker-head,
  html body:not(.auth-loading) #garmentModal .laundry-picker-actions {
    grid-template-columns: 1fr !important;
  }

  html body:not(.auth-loading) #garmentModal .service-chip,
  html body:not(.auth-loading) #garmentModal .subitem-chip,
  html body:not(.auth-loading) #garmentModal .comment-chip {
    max-width: 100% !important;
    white-space: normal !important;
  }
}

@media (max-width: 380px) {
  html body:not(.auth-loading) #newOrder .new-order-final-pricing-list {
    grid-template-columns: 1fr !important;
  }

  html body:not(.auth-loading) #newOrder .new-order-final-pricing-list .new-order-total-line {
    grid-template-columns: minmax(0, 1fr) auto !important;
    min-height: 42px !important;
    align-items: center !important;
  }

  html body:not(.auth-loading) #newOrder .new-order-final-pricing-list .new-order-total-line b {
    text-align: right !important;
  }

  html body:not(.auth-loading) #garmentModal .garment-counter {
    grid-template-columns: 34px minmax(0, 1fr) 34px !important;
  }

  html body:not(.auth-loading) #garmentModal .garment-counter button {
    width: 34px !important;
    min-width: 34px !important;
  }
}
