html {
  font-size: 14px;
  font-family: "Segoe UI", "Open Sans", Helvetica, Arial, sans-serif;
}

@media (min-width: 768px) {
  html {
    font-size: 15px;
  }
}

.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: 0;
  background: #FAFCFF;
  color: #2F3A45;
  font-family: "Segoe UI", "Open Sans", Helvetica, Arial, sans-serif;
  line-height: 1.45;
}


.ui-datepicker td span.ui-state-highlight,
.ui-datepicker td a.ui-state-highlight {
  background-color: #eee !important;
  color: #333 !important;
  font-weight: 400;
}

.ui-datepicker td span.ui-state-active,
.ui-datepicker td a.ui-state-active {
  background-color: #1bb7b0 !important;
  color: #fff !important;
  font-weight: 600;
}

.ui-datepicker td a.ui-state-hover,
.ui-datepicker td span.ui-state-hover {
  background-color: rgba(27, 183, 176, 0.14) !important;
  color: #1f6e73 !important;
}

.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;
}

.legacy-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: linear-gradient(180deg, #F0F9FF 0%, #E0F0FF 100%);
  border-bottom: 1px solid #C8DCF0;
  box-shadow: 0 4px 12px rgba(41, 72, 102, 0.06);
  display: flex;
  justify-content: space-between;
  z-index: 1000;
}

.legacy-logo-wrap {
  width: 185px;
  background: linear-gradient(180deg, #F6FBFF 0%, #EAF4FF 100%);
  border-right: 1px solid #C8DCF0;
  overflow: hidden;
}

.legacy-logo-link {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0 12px;
}

.legacy-logo {
  max-height: 40px;
  max-width: 150px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(33, 76, 124, 0.1));
}

.legacy-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 14px;
}

.legacy-user-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4e9fe0 0%, #2f81c5 100%);
  border: 1px solid #2b76b5;
  box-shadow: 0 8px 16px rgba(47, 129, 197, 0.18);
}

.legacy-user-toggle:hover,
.legacy-user-toggle:focus {
  text-decoration: none;
  background: linear-gradient(180deg, #4397dc 0%, #246daa 100%);
}

.legacy-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.24);
}

.legacy-user {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.legacy-user-caret {
  color: #fff;
  font-size: 10px;
  line-height: 1;
  opacity: 0.9;
}

.legacy-user-menu {
  right: 0;
  left: auto;
  min-width: 170px;
}

.legacy-user-menu .icon {
  display: inline-block;
  width: 18px;
}

.legacy-sidebar {
  position: fixed;
  top: 52px;
  left: 0;
  bottom: 0;
  width: 185px;
  overflow-y: auto;
  background: linear-gradient(180deg, #FAFDFF 0%, #F0F8FF 100%);
  border-right: 1px solid #C4DAF0;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.75);
}

.legacy-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: #3A5E74 !important;
  text-decoration: none;
  border-bottom: 1px solid #d0e2f0;
  background: transparent;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.legacy-menu-item>i {
  width: 16px;
  text-align: center;
  font-size: 15px;
  color: #2196F3;
}

.legacy-menu-item>span {
  flex: 1;
}

.legacy-menu-caret {
  font-style: normal;
  color: #7b94a3;
  font-size: 10px;
}

.legacy-menu-item:hover {
  background: linear-gradient(180deg, #ffffff 0%, #EAF4FF 100%);
  color: #2F5873 !important;
  box-shadow: inset 3px 0 0 #2196F3;
}

.legacy-menu-item.is-active {
  background: linear-gradient(180deg, #ffffff 0%, #DDF0FF 100%);
  color: #185F99 !important;
  box-shadow: inset 4px 0 0 #2196F3, 0 10px 18px rgba(33, 150, 243, 0.10);
  font-weight: 700;
}

.legacy-menu-item.is-active>i,
.legacy-menu-item.is-active .legacy-menu-caret {
  color: #2196F3;
}

.legacy-menu-item:hover>i,
.legacy-menu-item:hover .legacy-menu-caret {
  color: #2196F3;
}

.legacy-main {
  margin-left: 185px;
  margin-top: 52px;
  min-height: calc(100vh - 52px);
}

.legacy-content-wrap {
  padding: 10px 10px;
}

.legacy-main,
.legacy-content-wrap,
.legacy-panel,
.module-page,
.purchase-page {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.legacy-panel {
  border: 1px solid #c8ced3;
  background: linear-gradient(180deg, #F8FCFF 0%, #F0F7FD 100%);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(36, 42, 48, 0.07);
}

.panel-heading {
  background: linear-gradient(180deg, #F5FBFF 0%, #E8F3FC 100%);
  border-bottom: 1px solid #C8DCF0;
  padding: 8px 12px;
}

.panel-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.panel-heading>.panel-title {
  font-size: 16px;
  font-weight: 700;
}

.alert {
  border-radius: 2px;
  border: 1px solid #c7d3db;
  padding: 8px;
  position: relative;
}

.alert .close {
  position: absolute;
  right: 6px;
  top: 2px;
  border: 0 !important;
  background: transparent !important;
  background-image: none !important;
  color: #9ec9d3 !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  opacity: 1;
  padding: 0 !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
  outline: none !important;
}

button.close,
.widget .close,
.alert-dismissable .close {
  position: absolute !important;
  right: 6px !important;
  top: 2px !important;
  border: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #9ec9d3 !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  padding: 0 !important;
  outline: none !important;
}

.alert .table {
  margin-bottom: 0;
  font-size: 12px;
  background: transparent !important;
}

.alert .table> :not(caption)>*>* {
  background-color: transparent !important;
}

.widget .table,
.widget .table td,
.widget .table tr,
.widget .table> :not(caption)>*>* {
  background-color: transparent !important;
}

.alert .table>tbody>tr>td,
.alert .table>thead>tr>th {
  border-color: #1f7a8c !important;
  vertical-align: middle;
  padding: 4px 6px;
}

.dashboard-cards .widget .table,
.dashboard-cards .widget .table td,
.dashboard-cards .widget .table tr,
.dashboard-cards .widget .table>tbody>tr>td,
.dashboard-cards .widget .table>thead>tr>th,
.dashboard-cards .table-bordered,
.dashboard-cards .table-bordered>tbody>tr>td,
.dashboard-cards .table-bordered>thead>tr>th {
  background: transparent !important;
  border-color: #1f7a8c !important;
}

.home-dashboard-page {
  min-height: 400px;
  padding: 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(53, 142, 201, 0.16) 0, rgba(53, 142, 201, 0) 30%),
    radial-gradient(circle at top left, rgba(103, 177, 229, 0.12) 0, rgba(103, 177, 229, 0) 26%),
    linear-gradient(180deg, #f8fbff 0%, #e8f2fb 100%);
}

.home-dashboard-page .row,
.home-dashboard-priority-row,
.home-dashboard-grid-row {
  margin-left: 0;
  margin-right: 0;
}

.home-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
  padding: 24px 26px;
  border: 1px solid #cfe0ed;
  background: linear-gradient(135deg, #ffffff 0%, #e4f0fb 55%, #d7ebf8 100%);
  border-radius: 24px;
  box-shadow: 0 16px 30px rgba(44, 88, 128, 0.08);
}

.home-eyebrow {
  color: #2196F3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.home-hero-title {
  margin: 0;
  color: #284152;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.home-hero-name {
  color: #2f81c5;
  font-weight: 700;
}

.home-hero-subtitle {
  margin-top: 8px;
  color: #6c7d89;
  font-size: 13px;
}

.home-last-login {
  color: #60717d;
  font-size: 12px;
  white-space: nowrap;
  padding-top: 8px;
}

.home-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.home-quick-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 128px;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid #2f81c5;
  background: linear-gradient(180deg, #4e9fe0 0%, #2f81c5 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(47, 129, 197, 0.2);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.home-quick-actions .btn:hover,
.home-quick-actions .btn:focus {
  background: linear-gradient(180deg, #4397dc 0%, #246daa 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(47, 129, 197, 0.24);
}

.home-quick-actions .btn .glyphicon {
  font-size: 12px;
}

.home-dashboard-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-dashboard-section {
  margin-bottom: 22px;
  padding: 14px 18px 12px;
  border-radius: 22px;
  border: 1px solid #d4e2ee;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(240, 247, 253, 0.9) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.home-dashboard-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.home-dashboard-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.home-dashboard-section-title {
  margin-bottom: 0;
  color: #486474;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-dashboard-section-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(72, 100, 116, 0.2) 0%, rgba(72, 100, 116, 0.04) 100%);
}

.home-dashboard-section-meta {
  color: #8294a0;
  font-size: 11px;
  white-space: nowrap;
}

/* Responsive card grids: cards fluidly resize and wrap at any resolution and
   never produce a horizontal scrollbar. minmax(min(Npx, 100%), 1fr) lets a
   track shrink to the container width on very small screens. */
.home-dashboard-priority-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 14px;
}

.home-dashboard-grid-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 14px;
}

/* Bootstrap .row adds ::before/::after clearfix pseudo-elements; as grid items
   they would occupy phantom tracks, so suppress them. */
.home-dashboard-priority-row::before,
.home-dashboard-priority-row::after,
.home-dashboard-grid-row::before,
.home-dashboard-grid-row::after {
  display: none;
}

/* Neutralize Bootstrap col-* sizing (width %, gutters, float) so the CSS grid
   controls layout. min-width: 0 lets long content shrink instead of forcing
   the track wider (the usual cause of horizontal overflow). */
.home-dashboard-priority-row>.home-dashboard-item,
.home-dashboard-grid-row>.home-dashboard-item {
  width: auto;
  max-width: 100%;
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
  float: none;
}

.home-dashboard-item {
  display: flex;
  min-width: 0;
  margin-bottom: 0;
}

.home-dashboard-item .widget,
.home-dashboard-item .panel,
.home-dashboard-item .alert {
  position: relative;
  min-height: 190px;
  margin-bottom: 0;
  border-radius: 14px;
  border: 1px solid #dce7ee !important;
  box-shadow: 0 8px 18px rgba(36, 42, 48, 0.06);
  overflow: hidden;
  transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
  flex: 1;
}

.home-dashboard-item .alert-dismissable .close,
.home-dashboard-item .alert .close,
.home-dashboard-item .widget .close {
  display: none;
}

.home-dashboard-item center,
.home-dashboard-item center b {
  display: block;
}

.home-dashboard-item a {
  text-decoration: none;
}

.home-dashboard-item b[style*="font-size: 22px"],
.home-dashboard-item b[style*="font-size: 15px"] {
  color: #1279aa !important;
  line-height: 1.35;
  font-weight: 700 !important;
}

.home-dashboard-item .widget-title,
.home-dashboard-item strong,
.home-dashboard-item b {
  letter-spacing: -0.01em;
}

.home-dashboard-item .table {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  border-collapse: separate;
}

.dashboard-priority-card {
  border: none !important;
  color: #fff;
}

.dashboard-priority-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(36, 42, 48, 0.1);
}

.dashboard-priority-card.dashboard-priority-info {
  background: linear-gradient(180deg, #4c9fdd 0%, #2f7fbd 100%) !important;
}

.dashboard-priority-card.dashboard-priority-warning {
  background: linear-gradient(180deg, #f0c35b 0%, #d9a02c 100%) !important;
}

.dashboard-priority-card.dashboard-priority-danger {
  background: linear-gradient(180deg, #ef7a86 0%, #da4e61 100%) !important;
}

.dashboard-priority-card.dashboard-priority-ticket {
  background: linear-gradient(180deg, #8e7de8 0%, #6f5ad1 100%) !important;
}

.dashboard-priority-card.dashboard-priority-success {
  background: linear-gradient(180deg, #6dc28d 0%, #4aa36b 100%) !important;
}

.dashboard-priority-strip {
  display: none;
}

.dashboard-priority-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 186px;
  padding: 14px 16px 16px;
  text-align: center;
}

.dashboard-priority-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 54px;
}

.dashboard-priority-icon {
  font-size: 28px;
  color: #fff !important;
}

.dashboard-priority-icon.glyphicon-pause {
  background: #fff;
  color: #E8B23A !important;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-block;
  font-size: 16px;
  line-height: 38px;
  text-align: center;
}

.dashboard-priority-icon.glyphicon-tag {
  transform: scaleX(-1);
}

.dashboard-priority-title {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.dashboard-priority-count {
  margin-top: 18px;
  color: #fff !important;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.dashboard-priority-count:hover,
.dashboard-priority-detail-value:hover {
  color: #fff !important;
  opacity: 0.85;
}

.dashboard-priority-details {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.dashboard-priority-detail {
  display: flex;
  align-items: baseline;
  gap: 4px;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  line-height: 1.3;
}

.dashboard-priority-detail-label {
  color: rgba(255, 255, 255, 0.85);
}

.dashboard-priority-detail-value {
  color: #fff !important;
  font-weight: 700;
}

.dashboard-priority-detail-value.is-urgent {
  color: #fff !important;
  font-weight: 700;
}

.dashboard-priority-detail-value.is-info {
  color: #fff !important;
}

.dashboard-priority-icon {
  background: transparent !important;
}

.dashboard-priority-card a,
.dashboard-priority-card a:hover,
.dashboard-priority-card a:focus {
  color: #fff !important;
}

.home-dashboard-grid-row .home-dashboard-item .alert,
.home-dashboard-grid-row .home-dashboard-item .widget,
.home-dashboard-grid-row .home-dashboard-item .panel {
  background: linear-gradient(180deg, #ffffff 0%, #f6fafc 100%) !important;
}

@media (max-width: 991px) {
  .home-hero {
    flex-direction: column;
  }

  .home-last-login {
    white-space: normal;
  }
}

.legacy-panel {
  font-family: "Segoe UI", "Open Sans", Helvetica, Arial, sans-serif;
  color: #2d353c;
}

.legacy-panel h4,
.legacy-panel h5,
.legacy-panel h6,
.legacy-panel strong {
  color: #22313c;
}

.legacy-panel .panel,
.legacy-panel .widget {
  border-radius: 16px;
  overflow: hidden;
  border-color: #C4DAF0;
  background: linear-gradient(180deg, #ffffff 0%, #F5FAFF 100%);
  box-shadow: 0 10px 20px rgba(36, 42, 48, 0.05);
}

.legacy-panel .panel-heading {
  padding: 12px 14px;
  background: linear-gradient(180deg, #F5FBFF 0%, #E8F3FC 100%);
  border-bottom: 1px solid #C8DCF0;
}

.legacy-panel .panel-body {
  padding: 12px 14px;
}

.legacy-panel .panel-body[style*="padding:0"] {
  padding: 0 !important;
}

.legacy-panel .panel-footer {
  background: linear-gradient(180deg, #F8FCFF 0%, #E8F3FC 100%);
  border-top: 1px solid #C8DCF0;
  padding: 10px 14px;
}

.legacy-panel .control-label,
.legacy-panel label,
.legacy-panel .checkbox label,
.legacy-panel .form-check-label {
  color: #445766;
  font-weight: 600;
}

.legacy-panel .form-control,
.legacy-panel select.form-control,
.legacy-panel textarea.form-control {
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #cfdbe4;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(36, 42, 48, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.legacy-panel textarea.form-control {
  min-height: 88px;
  resize: vertical;
}

.legacy-panel .form-control::placeholder {
  color: #94a5b2;
}

.legacy-panel .form-control[readonly],
.legacy-panel .form-control[disabled] {
  background: linear-gradient(180deg, #f7fafc 0%, #eef4f8 100%);
  color: #5d7280;
}

.legacy-panel .form-control:focus,
.legacy-panel select.form-control:focus,
.legacy-panel textarea.form-control:focus {
  border-color: #49adc5;
  box-shadow: 0 0 0 4px rgba(73, 173, 197, 0.16);
}

.legacy-panel input.form-control[type="date"] {
  color-scheme: light;
  color: #445766;
  -webkit-text-fill-color: #445766;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.legacy-panel input.form-control[type="date"]::-webkit-date-and-time-value,
.legacy-panel input.form-control[type="date"]::-webkit-datetime-edit,
.legacy-panel input.form-control[type="date"]::-webkit-datetime-edit-fields-wrapper,
.legacy-panel input.form-control[type="date"]::-webkit-datetime-edit-text,
.legacy-panel input.form-control[type="date"]::-webkit-datetime-edit-month-field,
.legacy-panel input.form-control[type="date"]::-webkit-datetime-edit-day-field,
.legacy-panel input.form-control[type="date"]::-webkit-datetime-edit-year-field {
  color: #445766;
  -webkit-text-fill-color: #445766;
  background: transparent;
}

.legacy-panel input.form-control[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.78;
}

.legacy-panel input[type="file"] {
  max-width: 100%;
  color: #445766;
}

.legacy-panel input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #22B8CF;
}

.legacy-panel .btn {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  letter-spacing: 0.01em;
  transition: box-shadow 0.18s ease, transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.shipping-bookmark-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0;
  margin-bottom: 12px;
  border-bottom: 1px solid #d8e3ea;
}

.shipping-bookmark-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  margin-right: 4px;
  margin-bottom: -1px;
  border: 1px solid #C8DCF0;
  border-bottom-color: transparent;
  border-radius: 14px 14px 0 0;
  color: #334a56;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  background: linear-gradient(180deg, #EAF4FF 0%, #DDE9F6 100%);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.shipping-bookmark-tab:hover,
.shipping-bookmark-tab:focus {
  text-decoration: none;
  color: #2196F3;
  background: linear-gradient(180deg, #F5FAFF 0%, #EAF4FF 100%);
}

.shipping-bookmark-tab.is-active {
  color: #1b3340;
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff 0%, #F5FAFF 100%);
}

.shipping-home-content {
  padding: 6px 4px 2px;
}

.shipping-home-hint {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed #C8DCF0;
  background: #F5FAFF;
  color: #56707f;
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .shipping-bookmark-nav {
    border-bottom: 0;
    gap: 6px;
  }

  .shipping-bookmark-tab {
    margin-right: 0;
    margin-bottom: 0;
    border-bottom-color: #C8DCF0;
    border-radius: 12px;
  }
}

@media (max-width: 560px) {
  .shipping-bookmark-tab {
    width: 100%;
    justify-content: flex-start;
  }
}

.shipping-view-toggle {
  display: inline-flex;
  gap: 12px;
  margin-right: 8px;
}

.shipping-view-toggle .btn {
  border-radius: 6px;
  margin: 0;
}

.shipping-view-toggle .btn.active {
  font-weight: 700;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.shipping-page .download-link {
  font-weight: 700;
}

.shipping-page .module-btn-60 {
  width: 60px;
}

.shipping-page .module-btn-80 {
  width: 80px;
}

.shipping-page .module-btn-100 {
  width: 100px;
}

.shipping-page .module-btn-140 {
  width: 140px;
}

.shipping-page .module-btn-150 {
  width: 150px;
}

.shipping-page .module-btn-200 {
  width: 200px;
}

.shipping-page .module-btn-220 {
  width: 220px;
}

.shipping-page .module-search-toolbar .module-search-wid {
  width: 150px;
}

.shipping-page .module-search-toolbar .module-search-invoice {
  width: 180px;
}

.shipping-page .module-search-toolbar .module-search-date {
  width: 150px;
}

.shipping-page .shipping-action-row {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px 16px;
  flex-wrap: wrap;
}

.shipping-page .shipping-primary-actions {
  margin: 0;
  justify-content: flex-end;
  width: 100%;
}

.shipping-page .shipping-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
}

.shipping-page .shipping-filter-row .module-view-switch {
  margin: 0;
}

.shipping-page .shipping-search-toolbar {
  margin: 0;
  margin-left: auto;
  justify-content: flex-end;
}

.shipping-page .shipping-checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 4px;
  color: #2d4b58;
  font-size: 12px;
  font-weight: 600;
}

.shipping-page .module-listing-title {
  color: #d17c10;
  font-weight: 700;
  word-break: break-all;
}

.shipping-page .module-qty-badge {
  font-size: 14px;
  font-weight: 700;
  color: #d24949;
}

.shipping-page .module-toolbar-spread {
  justify-content: space-between;
  width: 100%;
}

/* Right-hand action cluster in the spread toolbar (Export / Shipping Manifest),
   so the Unshipped|Shipped toggle sits on the left and actions group on the right. */
.shipping-page .shipping-action-group {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  flex-wrap: wrap;
}

/* "Total N orders" count pill — reuses the existing shipping tab palette (no new theme colors). */
.shipping-count-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  background: #EAF4FF;
  color: #1b3340;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.shipping-page .shipping-detail-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shipping-page .shipping-detail-toolbar {
  margin-bottom: 0;
}

.shipping-page .shipping-detail-summary-card,
.shipping-page .shipping-detail-notes-card {
  margin-bottom: 0;
}

.shipping-page .shipping-detail-summary-table,
.shipping-page .shipping-detail-notes-table {
  margin-bottom: 0;
}

.shipping-page .shipping-detail-actions {
  margin-top: 2px;
}

.shipping-page .module-col-hidden {
  display: none;
}

.shipping-page .module-upload-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.shipping-upload-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shipping-upload-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shipping-upload-kicker {
  color: #65808f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shipping-upload-header h5 {
  margin: 0;
  color: #233742;
  font-size: 18px;
  font-weight: 700;
}

.shipping-upload-header p {
  margin: 0;
  color: #5f7886;
  font-size: 13px;
}

.shipping-upload-form {
  gap: 10px;
}

.shipping-upload-file {
  flex: 1 1 360px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px dashed #bcd0dd;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8fc 100%);
}

.shipping-upload-file:focus {
  border-color: #49adc5;
  box-shadow: 0 0 0 4px rgba(73, 173, 197, 0.12);
}

.shipping-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shipping-page .module-upload-file {
  max-width: 360px;
}

@media (max-width: 768px) {
  .shipping-page .shipping-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .shipping-page .shipping-search-toolbar {
    margin-left: 0;
    justify-content: flex-start;
  }

  .shipping-page .shipping-search-toolbar .form-control,
  .shipping-page .shipping-search-toolbar .btn {
    width: 100%;
  }

  .shipping-page .shipping-filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .shipping-upload-actions {
    width: 100%;
  }

  .shipping-upload-actions .btn {
    width: 100%;
  }
}

.shipping-page .module-pagination .btn {
  margin-left: 10px;
}

.legacy-panel .btn:hover,
.legacy-panel .btn:focus {
  transform: translateY(-1px);
}

.legacy-panel .btn.btn-sm,
.legacy-panel .btn.btn-xs {
  padding: 5px 11px;
}

.legacy-panel .btn-default {
  border-color: #d7e2e9;
  background: #fff;
  color: #48606d;
  box-shadow: 0 8px 18px rgba(36, 42, 48, 0.05);
}

.legacy-panel .btn-default:hover,
.legacy-panel .btn-default:focus {
  border-color: #7DD6E5;
  background: #f5fbfe;
  color: #22B8CF;
}

.legacy-panel .table {
  font-family: "Segoe UI", "Open Sans", Helvetica, Arial, sans-serif;
}

.legacy-panel .table>thead>tr>th,
.legacy-panel .table>tbody>tr>td,
.legacy-panel .table>tfoot>tr>th,
.legacy-panel .table>tfoot>tr>td {
  color: #2d353c;
  font-weight: 400;
  font-size: 13px;
  vertical-align: middle;
  padding: 9px 10px;
}

.legacy-panel .table>thead>tr>th {
  font-weight: 600;
  background: #E4F0FF;
  color: #4A6272;
  border-bottom-width: 1px;
}

.legacy-panel .table-bordered,
.legacy-panel .table-bordered>thead>tr>th,
.legacy-panel .table-bordered>tbody>tr>td,
.legacy-panel .table-bordered>tbody>tr>th,
.legacy-panel .table-bordered>tfoot>tr>td,
.legacy-panel .table-bordered>tfoot>tr>th {
  border-color: #C8DCF0;
}

.legacy-panel .table-striped>tbody>tr:nth-of-type(odd) {
  background-color: #F5FAFF;
}

.legacy-panel .table-hover>tbody>tr:hover,
.legacy-panel .table>tbody>tr:hover {
  background: #EDF6FF;
}

.legacy-panel .table a:not(.btn):not([class*="btn-"]) {
  color: #1aa0d1;
}

.supplier-product-grid td {
  border: 1px solid #ddd;
  padding: 8px;
  vertical-align: middle;
}

.vendor-list-shell {
  padding: 16px;
}

.vendor-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.vendor-add-btn {
  min-width: 110px;
}

.vendor-search-form {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
  width: min(100%, 860px);
  margin-left: auto;
}

.vendor-search-by-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 200px;
}

.vendor-search-label {
  margin: 0;
  font-weight: 700;
  color: #444;
}

.vendor-search-select {
  width: 100%;
}

.vendor-search-input {
  flex: 1 1 520px;
  min-width: 340px;
}

.vendor-search-btn {
  flex: 0 0 110px;
}

.vendor-table thead th {
  white-space: nowrap;
}

.vendor-table td.wrapword {
  white-space: normal;
  word-break: break-word;
  min-width: 220px;
}

@media (max-width: 991px) {
  .vendor-toolbar-row {
    flex-direction: column;
    align-items: stretch;
  }

  .vendor-search-form {
    justify-content: flex-start;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
  }

  .vendor-search-by-group {
    flex: 1 1 100%;
  }

  .vendor-search-select,
  .vendor-search-input,
  .vendor-search-btn {
    width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }
}

.legacy-panel .table a.btn,
.legacy-panel .table a[class*="btn-"] {
  text-decoration: none;
}

.legacy-panel .table a.btn-default,
.legacy-panel .table a[class*="btn-default"] {
  color: #48606d !important;
}

.legacy-panel .table a.btn-default:hover,
.legacy-panel .table a.btn-default:focus,
.legacy-panel .table a[class*="btn-default"]:hover,
.legacy-panel .table a[class*="btn-default"]:focus {
  color: #22B8CF !important;
}

.row {
  margin-left: -10px;
  margin-right: -10px;
}

.col-md-4,
.col-md-12 {
  padding-left: 10px;
  padding-right: 10px;
}

.purchase-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.purchase-toolbar-left {
  min-width: 160px;
}

.purchase-toolbar-center {
  flex: 1;
  text-align: center;
  font-size: 13px;
}

.purchase-toolbar-center a {
  margin: 0 8px;
}

.purchase-toolbar-right {
  min-width: 360px;
}

.purchase-toolbar-search-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.purchase-toolbar-search-panel-wide {
  flex: 1 1 auto;
  min-width: 0;
}

.purchase-search-form {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  align-items: center;
}

.purchase-search-form input.form-control {
  width: 220px;
}

.purchase-list-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.purchase-list-loading {
  z-index: 2100;
}

.purchase-list-loading::before {
  min-height: 230px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 247, 251, 0.99) 100%);
  box-shadow: 0 28px 80px rgba(78, 110, 132, 0.24);
}

.purchase-list-loading .page-submit-loading-stage {
  font-size: 14px;
  font-weight: 700;
  color: #335263;
}

.purchase-list-toolbar {
  align-items: flex-start;
}

.purchase-search-mode-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px 12px;
}

.purchase-search-mode-label {
  color: #4a6170;
  font-size: 12.5px;
  font-weight: 700;
}

.purchase-search-mode-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #445766;
  font-size: 12px;
  font-weight: 600;
}

.purchase-search-mode-option input {
  margin: 0;
}

.purchase-search-text-group.is-hidden,
.purchase-search-date-group.is-hidden {
  display: none;
}

.purchase-search-input {
  min-width: 180px;
}

.purchase-search-date-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.purchase-search-date-input {
  width: 160px !important;
}

.purchase-search-date-separator {
  color: #607887;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.purchase-list-top-filters {
  flex-wrap: wrap;
}

.purchase-list-top-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.purchase-top-filter-select,
.purchase-list-top-selects .chosen-container {
  width: 180px !important;
}

.purchase-grid-filter-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.purchase-table-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.purchase-grid-filter-label {
  margin: 0;
  color: #4a6170;
  font-size: 12.5px;
  font-weight: 700;
}

.purchase-grid-filter-input {
  width: 280px;
  max-width: 100%;
}

.purchase-filter-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.purchase-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.purchase-filter-row .form-control,
.purchase-filter-row .chosen-container {
  flex: 0 0 auto;
}

.purchase-filter-row .btn {
  flex: 0 0 auto;
}

.purchase-filter-row .purchase-filter-stretch {
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 320px;
}

.purchase-filter-width-xs {
  width: 140px;
}

.purchase-filter-width-sm {
  width: 170px;
}

.purchase-filter-width-md {
  width: 210px;
}

.purchase-filter-width-lg {
  width: 250px;
}

.purchase-filter-width-xl {
  width: 320px;
}

.purchase-filter-date-label {
  min-width: 76px;
  margin: 0;
  color: #48606d;
  font-size: 13px;
  font-weight: 600;
}

.purchase-filter-checkboxes {
  gap: 12px 18px;
}

.purchase-filter-checkboxes label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #48606d;
  font-size: 13px;
  font-weight: 500;
}

.purchase-action-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.purchase-summary-card {
  border: 1px solid #d8e3ea;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(36, 42, 48, 0.05);
  padding: 16px 18px;
}

.purchase-summary-card .table {
  margin-bottom: 0;
}

.purchase-inline-note {
  color: #5f7684;
  font-size: 12px;
  font-weight: 600;
}

.purchase-highlight-link {
  color: #3399ff;
  font-weight: 600;
}

.purchase-sort-link {
  padding: 0 4px !important;
  color: #5f7684;
  text-decoration: none;
}

.purchase-sort-link:hover,
.purchase-sort-link:focus {
  color: #22B8CF;
  text-decoration: none;
}

.purchase-table-cell-compact {
  width: 110px;
}

/* Floor low enough that the table compresses to fit common laptop / display-scaled
   widths (e.g. 1920px @125% = ~1303 CSS px available, @150% = ~1047) instead of
   forcing a horizontal scrollbar. Cells wrap (see .purchase-list-table td below);
   horizontal scroll only kicks in on true tablet/phone widths. */
.purchase-list-table {
  min-width: 1040px;
}

/* Every body cell wraps so long values (tracking numbers, vendor names, doc lists)
   can't force the table wider than its column floors. */
.purchase-list-table>tbody>tr>td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ...except the Date column (3rd), which should stay on one line rather than
   breaking mid-number (e.g. "06/11/2 026"). */
.purchase-list-table>tbody>tr>td:nth-child(3) {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.purchase-list-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.purchase-docs-col,
.purchase-docs-cell {
  min-width: 150px;
  max-width: 280px;
}

.purchase-docs-cell {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* A <td> ignores max-width under auto table-layout, so the Document(s) column would
   stretch to fit the longest filename string on one line (and inflate the whole table
   when a PO has many documents). An inner block DOES respect max-width, so cap the
   content here and let the filenames wrap. */
.purchase-docs-content {
  max-width: 280px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.purchase-docs-cell a {
  display: inline;
}

.purchase-list-filter-header>th {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  background: #f8fbfd;
  vertical-align: middle !important;
}

.purchase-list-filter-header .form-control {
  min-width: 88px;
  width: 100%;
  min-height: 36px;
  border-radius: 12px;
}

.purchase-list-filter-header .chosen-container {
  width: 100% !important;
  min-width: 88px;
}

.purchase-list-filter-header .chosen-container-single .chosen-single {
  height: 36px;
  line-height: 34px;
  border-radius: 12px;
  padding: 0 34px 0 12px;
}

.purchase-list-filter-header .chosen-container-single .chosen-single span,
.purchase-list-filter-header .chosen-container-single .chosen-default {
  font-size: 13px;
}

.purchase-list-filter-header .chosen-container-single .chosen-drop {
  margin-top: 2px;
  border-radius: 12px;
  overflow: hidden;
}

.purchase-list-filter-actions-cell {
  text-align: center;
}

.purchase-header-filter-submit {
  min-width: 68px;
}

.purchase-actions-col,
.purchase-actions-cell {
  min-width: 240px;
  white-space: normal;
  vertical-align: middle !important;
}

.purchase-action-group {
  width: 100%;
}

.purchase-action-primary {
  display: grid;
  grid-template-columns: repeat(2, minmax(104px, 1fr));
  gap: 6px;
  width: 100%;
}

.purchase-action-group .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
}

.purchase-actions-cell .btn,
.purchase-more-toggle {
  white-space: nowrap;
}

.purchase-more-toggle,
.purchase-more-toggle:focus,
.purchase-more-toggle:active,
.purchase-more-toggle:hover {
  min-height: 26px;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid #c8d8e3;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fc 100%);
  color: #4b6170 !important;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(36, 42, 48, 0.06);
}

.purchase-more-toggle .caret {
  margin-left: 4px;
}

.purchase-more-toggle:hover,
.purchase-more-toggle:focus {
  border-color: #9fc9da;
  background: linear-gradient(180deg, #ffffff 0%, #eef7fb 100%);
  color: #1a8eb7 !important;
}

.purchase-action-more.open .purchase-more-toggle {
  border-color: #8ac0d7;
  background: linear-gradient(180deg, #fafdff 0%, #e7f4fa 100%);
  color: #1a8eb7 !important;
}

.purchase-action-menu {
  min-width: 180px;
  border-radius: 16px;
  border: 1px solid #d8e3ea;
  box-shadow: 0 12px 24px rgba(36, 42, 48, 0.12);
  padding: 6px 0;
}

.purchase-action-more.dropup .purchase-action-menu {
  top: auto;
  bottom: 100%;
  margin-bottom: 6px;
}

.purchase-action-menu>li>a {
  padding: 8px 14px;
  color: #445766;
  font-weight: 600;
}

.purchase-action-menu>li>a:hover,
.purchase-action-menu>li>a:focus {
  background: #f2f8fb;
  color: #1a8eb7;
}

.purchase-receiving-col,
.purchase-receiving-cell {
  min-width: 92px;
}

.report-reconciliation-filters,
.payment-reconciliation-filter-row,
.payment-reconciliation-search-row {
  gap: 14px 16px;
}

.report-reconciliation-actions {
  align-items: center;
}

.report-reconciliation-filters {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(180px, 220px) minmax(180px, 220px) minmax(220px, 280px) auto;
  align-items: center;
  gap: 14px 16px;
}

.report-reconciliation-filters .form-control,
.report-reconciliation-filters .chosen-container {
  width: 100% !important;
  max-width: 100%;
}

.report-reconciliation-filters .btn {
  min-width: 120px;
  width: auto;
  justify-self: start;
}

.report-reconciliation-search-btn {
  min-width: 120px;
}

.report-reconciliation-table-wrap {
  max-width: 100%;
}

.report-reconciliation-select-col {
  width: 78px;
  min-width: 78px;
  text-align: center;
}

.report-reconciliation-table tbody td.report-reconciliation-select-col {
  vertical-align: middle;
}

.payment-reconciliation-filters {
  gap: 14px;
}

.payment-reconciliation-filter-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.payment-reconciliation-filter-title {
  font-size: 16px;
  font-weight: 700;
  color: #264251;
}

.payment-reconciliation-filter-subtitle {
  margin-top: 4px;
  color: #587282;
  font-size: 13px;
}

.payment-reconciliation-filter-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.payment-reconciliation-section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #587282;
}

.payment-reconciliation-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 16px;
}

.payment-reconciliation-filter-grid-primary {
  grid-template-columns: repeat(auto-fit, minmax(200px, 240px));
  align-items: end;
}

.payment-reconciliation-filter-field,
.payment-reconciliation-filter-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.payment-reconciliation-filter-field-wide {
  grid-column: span 2;
}

.payment-reconciliation-field-label {
  font-size: 12px;
  font-weight: 700;
  color: #48606d;
  margin: 0;
}

.payment-reconciliation-filter-field .form-control,
.payment-reconciliation-filter-field .chosen-container {
  width: 100% !important;
  max-width: 100%;
}

.payment-reconciliation-filter-action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.payment-reconciliation-filter-action-buttons .btn {
  min-width: 104px;
  width: auto !important;
}

.payment-reconciliation-actions {
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.payment-reconciliation-action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.payment-reconciliation-update-hint {
  max-width: 680px;
  padding: 10px 14px;
  border-radius: 14px;
  color: #33556a;
  background: linear-gradient(180deg, #f6fbff 0%, #edf6fb 100%);
  border: 1px solid #cfe0ea;
}

.payment-reconciliation-hint {
  border-radius: 16px;
  color: #33556a;
  background: linear-gradient(180deg, #f6fbff 0%, #edf6fb 100%);
  border-color: #cfe0ea;
}

.purchase-shared-date-input {
  width: 200px;
  min-width: 200px;
  position: sticky;
  left: 0;
  z-index: 4;
  background: #fff;
  box-shadow: 1px 0 0 #d8e3ea;
}

.payment-reconciliation-table>thead>tr>th.payment-reconciliation-date-col,
.payment-reconciliation-table>tbody>tr>td.payment-reconciliation-date-cell {
  min-width: 140px;
  border-radius: 16px;
  position: sticky;
  left: 68px;
  z-index: 3;
  background: #fff;
  box-shadow: 1px 0 0 #d8e3ea;
}

.payment-reconciliation-table>thead>tr>th.payment-reconciliation-select-col,
.payment-reconciliation-table>thead>tr>th.payment-reconciliation-date-col {
  z-index: 6;
}

.payment-reconciliation-table>tbody>tr:nth-of-type(odd)>td.payment-reconciliation-select-cell,
.payment-reconciliation-table>tbody>tr:nth-of-type(odd)>td.payment-reconciliation-date-cell {
  background: #fbfdff;
}

.payment-reconciliation-table>tbody>tr:hover>td.payment-reconciliation-select-cell,
.payment-reconciliation-table>tbody>tr:hover>td.payment-reconciliation-date-cell {
  background: #f5fbfe;
  color: #33556a;
  background: linear-gradient(180deg, #f5fbff 0%, #eaf4fb 100%);
  border: 1px solid #cfe0ea;
}

.payment-reconciliation-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.report-reconciliation-pager {
  margin-top: 12px;
}

.payment-reconciliation-table {
  min-width: 1720px;
}

.payment-reconciliation-select-col,
.payment-reconciliation-select-cell {
  width: 68px;
  min-width: 68px;
  text-align: center;
  vertical-align: middle;
}

.payment-reconciliation-date-cell {
  min-width: 140px;
  white-space: nowrap;
}

.payment-reconciliation-status-cell {
  min-width: 180px;
}

.payment-reconciliation-inline-select {
  width: 170px;
  min-width: 170px;
}

.payment-reconciliation-status-cell .chosen-container {
  width: 170px !important;
  min-width: 170px !important;
}

.payment-reconciliation-notes-cell {
  min-width: 180px;
}

.payment-reconciliation-notes-input {
  width: 170px;
  min-width: 170px;
}

@media (max-width: 1400px) {
  .payment-reconciliation-filter-field-wide {
    grid-column: span 1;
  }
}

.amazon-tradein-grid-card {
  padding: 0;
  overflow: hidden;
}

.amazon-tradein-table-wrap {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.amazon-tradein-table {
  min-width: 1180px;
}

.amazon-tradein-table thead th {
  padding: 14px 16px;
  border-bottom: 1px solid #d8e3ea;
  background: linear-gradient(180deg, #fbfdff 0%, #f2f7fa 100%);
  color: #264251;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.amazon-tradein-table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  border-top: 1px solid #e2ebf1;
}

.amazon-tradein-table tbody tr:nth-of-type(even) {
  background: #fbfdff;
}

.amazon-tradein-table .purchase-table-cell-compact {
  width: 130px;
}

.sales-order-toolbar-card {
  padding: 18px 20px;
}

.sales-order-toolbar {
  align-items: flex-start;
}

.sales-order-search-form {
  gap: 10px 12px;
}

.sales-order-table-wrap {
  max-width: 100%;
}

.sales-order-table {
  /* Full-width Line Items row: keep a readable floor but small enough that the table fits a
     laptop screen and wraps Item/Description instead of always forcing a horizontal scrollbar. */
  min-width: 980px;
}

.sales-order-table thead th {
  white-space: nowrap;
}

.sales-order-table td {
  word-break: break-word;
}

.sales-order-number-col {
  width: 68px;
  min-width: 68px;
}

.sales-order-status-col {
  min-width: 120px;
}

.sales-order-empty-cell {
  padding: 24px 16px !important;
  text-align: center;
  color: #687d89;
}

.sales-order-pager {
  margin-top: 8px;
}

.receiving-page {
  gap: 18px;
}

.receiving-toolbar {
  margin-bottom: 10px;
  /* Group the action buttons together on the left instead of spreading them
     edge-to-edge across the page (the .module-inline-toolbar default is
     justify-content: space-between). */
  justify-content: flex-start;
  gap: 10px;
}

.receiving-dashboard-shell {
  align-items: start;
  margin-bottom: 18px;
}

.receiving-dashboard-search-card,
.receiving-shortcuts-card,
.receiving-summary-card,
.receiving-upload-card,
.receiving-file-toolbar-card,
.receiving-pending-card,
.receiving-report-filter-card,
.receiving-editor-card {
  padding: 18px 20px;
}

.receiving-dashboard-search-card,
.receiving-shortcuts-card {
  min-height: 100%;
}

.receiving-dashboard-secondary-searches {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.receiving-search-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.receiving-search-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.receiving-search-copy strong {
  color: #22313c;
  font-size: 14px;
}

.receiving-search-copy span {
  color: #69808d;
  font-size: 12px;
  line-height: 1.45;
}

.receiving-search-form {
  display: flex;
  align-items: center;
  gap: 10px 12px;
  flex-wrap: wrap;
}

.receiving-search-form-compact {
  max-width: 560px;
}

.receiving-search-form-wide {
  align-items: flex-end;
}

.receiving-search-input {
  min-width: 260px;
  max-width: 420px;
  flex: 1 1 260px;
}

.receiving-search-submit {
  min-width: 104px;
}

.receiving-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #445766;
  font-weight: 600;
}

.receiving-shortcut-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.receiving-shortcut-link {
  min-width: 180px;
  text-align: center;
}

.receiving-pending-card {
  padding-bottom: 0;
}

.receiving-pending-header {
  justify-content: center;
  margin-bottom: 16px;
}

.receiving-pending-header h4,
.receiving-detail-heading {
  margin: 0;
  color: #22313c;
  font-size: 16px;
  font-weight: 700;
}

.receiving-detail-heading {
  margin: 18px 0 12px;
}

.receiving-table-wrap {
  max-width: 100%;
}

.receiving-table {
  min-width: 980px;
}

.receiving-entry-table {
  min-width: 1180px;
}

.receiving-failed-table,
.receiving-report-table,
.receiving-bulk-history-table {
  min-width: 1100px;
}

.receiving-summary-table,
.receiving-totals-table,
.receiving-upload-table,
.receiving-report-form-table,
.receiving-editor-table {
  margin-bottom: 0;
}

.receiving-form-actions {
  margin-top: 14px;
}

.receiving-form-actions .btn {
  min-width: 130px;
}

.receiving-file-toolbar {
  gap: 12px;
}

.receiving-file-meta {
  color: #4d6676;
  font-weight: 600;
}

.receiving-pagination {
  margin-top: 10px;
}

.receiving-report-filter-card {
  margin-bottom: 16px;
}

.receiving-report-form-table td:first-child {
  width: 210px;
}

.payment-reconciliation-pager,
.incoming-products-pager,
.receiving-report-pager {
  margin-top: 12px;
}

.incoming-products-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 24px;
}

.incoming-products-filter-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.incoming-products-filter-title {
  font-size: 16px;
  font-weight: 700;
  color: #264251;
}

.incoming-products-filter-subtitle {
  margin-top: 4px;
  color: #587282;
  font-size: 13px;
  line-height: 1.45;
}

.incoming-products-filter-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.incoming-products-section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #587282;
}

.incoming-products-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-start;
}

.incoming-products-mode-grid {
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: start;
  gap: 14px 16px;
  align-items: stretch;
}

.incoming-products-toolbar-filters {
  display: flex;
  flex: 1 1 560px;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 28px;
}

.incoming-products-primary-filters {
  flex: 0 1 auto;
  align-content: flex-start;
  margin: 0;
  width: fit-content;
  max-width: 100%;
  min-height: 100%;
  padding: 14px 16px;
  border: 1px solid #d8e3ea;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9fc 100%);
}

.incoming-products-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  gap: 14px 16px;
}

.incoming-products-filter-field,
.incoming-products-search-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.incoming-products-filter-field {
  min-width: 0;
}

.incoming-products-filter-field-wide {
  min-width: min(340px, 100%);
  max-width: 560px;
  flex: 0 1 560px;
}

.incoming-products-field-label {
  font-size: 12px;
  font-weight: 700;
  color: #48606d;
  margin: 0;
}

.incoming-products-filter-field .form-control,
.incoming-products-filter-field .chosen-container {
  width: 100% !important;
  max-width: 100%;
}

.incoming-products-search-row {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 16px 20px;
  flex-wrap: wrap;
}

.incoming-products-receiving-type {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.incoming-products-receiving-type label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #273946;
  font-size: 13px;
  font-weight: 600;
}

.incoming-products-receiving-card {
  width: fit-content;
  max-width: 100%;
  min-height: 100%;
  padding: 14px 16px;
  border: 1px solid #d8e3ea;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9fc 100%);
}

.incoming-products-search-box {
  min-width: 180px;
}

.incoming-products-search-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.incoming-products-search-actions .btn {
  min-width: 120px;
}

.incoming-products-table th,
.incoming-products-table td {
  vertical-align: top !important;
}

.incoming-products-actions {
  margin-top: 12px;
}

.incoming-products-actions-top {
  margin-top: 0;
  margin-bottom: 10px;
}

.incoming-products-context-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 16px;
  border-left: 4px solid #22B8CF;
  background: linear-gradient(90deg, #f1f9fc 0%, #ffffff 100%);
}

.incoming-products-context-banner strong {
  color: #1f4e62;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.incoming-products-context-banner span {
  color: #4f6876;
  font-size: 13px;
  font-weight: 600;
}

.incoming-products-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.incoming-products-stat {
  min-height: 106px;
}

.incoming-products-stat strong {
  font-size: 18px;
  color: #1f3342;
}

.incoming-products-stat-note {
  margin: 6px 0 0;
  color: #5b7585;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.incoming-products-stat-money {
  background: linear-gradient(180deg, #f7fbfd 0%, #eef8fc 100%);
  border-color: #cfe4ee;
}

@media (max-width: 1100px) {
  .incoming-products-mode-grid {
    grid-template-columns: 1fr;
  }

  .incoming-products-select-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .incoming-products-summary-grid {
    grid-template-columns: 1fr;
  }
}

.page-submit-loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(93, 173, 226, 0.22), transparent 34%),
    radial-gradient(circle at bottom left, rgba(31, 122, 140, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(239, 246, 250, 0.82) 0%, rgba(225, 236, 243, 0.9) 100%);
  backdrop-filter: blur(4px);
  text-align: center;
  z-index: 2000;
}

.page-submit-loading::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(560px, calc(100vw - 32px));
  min-height: 210px;
  transform: translate(-50%, -50%);
  border-radius: 28px;
  border: 1px solid rgba(189, 211, 222, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(243, 249, 252, 0.94) 100%);
  box-shadow: 0 24px 70px rgba(78, 110, 132, 0.18);
}

.page-submit-loading>* {
  position: relative;
  z-index: 1;
}

.page-submit-loading-stage {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #4e6b7b;
}

.page-submit-loading-progress {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.page-submit-loading-progress span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #46b0e2 0%, #22B8CF 100%);
  box-shadow: 0 4px 10px rgba(34, 184, 207, 0.24);
  animation: page-loading-pulse 1.2s ease-in-out infinite;
}

.page-submit-loading-progress span:nth-child(2) {
  animation-delay: 0.18s;
}

.page-submit-loading-progress span:nth-child(3) {
  animation-delay: 0.36s;
}

.page-submit-loading-skeleton {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.page-submit-loading-skeleton span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(223, 233, 239, 0.8) 0%, rgba(255, 255, 255, 0.96) 50%, rgba(223, 233, 239, 0.8) 100%);
  background-size: 220% 100%;
  animation: page-loading-shimmer 1.5s linear infinite;
}

.page-submit-loading-skeleton span:nth-child(1) {
  width: 100%;
}

.page-submit-loading-skeleton span:nth-child(2) {
  width: 82%;
}

.page-submit-loading-skeleton span:nth-child(3) {
  width: 68%;
}

.page-submit-loading.is-hidden {
  display: none;
}

.purchase-page {
  font-size: 13px;
  font-family: "Segoe UI", "Open Sans", Helvetica, Arial, sans-serif;
}

.panel-heading.purchase-page,
.purchase-page .panel-heading {
  padding: 12px 16px;
  background: linear-gradient(180deg, #fdfefe 0%, #eff4f7 100%);
  border-bottom: 1px solid #d6e0e7;
}

.purchase-page {
  padding: 12px !important;
}

.purchase-page>.alert {
  border-radius: 16px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.purchase-page .panel-heading strong,
.purchase-page h5 {
  color: #22313c;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.purchase-page h5 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 15px;
}

.purchase-page .panel-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.purchase-page .panel,
.purchase-page.panel {
  border-radius: 22px;
  overflow: hidden;
  border-color: #d4dee6;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  box-shadow: 0 14px 28px rgba(36, 42, 48, 0.06);
}

.purchase-page .control-label,
.purchase-page label,
.purchase-page .checkbox label {
  color: #445766;
  font-weight: 600;
}

.purchase-page .row {
  row-gap: 12px;
}

.purchase-page .panel-body>.row+.row,
.purchase-page form>.row+.row {
  margin-top: 2px;
}

.purchase-page .form-control,
.purchase-page select.form-control,
.purchase-page textarea.form-control {
  min-height: 42px;
  border-radius: 16px;
  border: 1px solid #cfdbe4;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(36, 42, 48, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.purchase-page textarea.form-control {
  min-height: 96px;
  resize: vertical;
}

.purchase-page .form-control::placeholder {
  color: #94a5b2;
}

.purchase-page .form-control[readonly],
.purchase-page .form-control[disabled] {
  background: linear-gradient(180deg, #f7fafc 0%, #eef4f8 100%);
  color: #5d7280;
}

.purchase-page .form-control:focus,
.purchase-page select.form-control:focus,
.purchase-page textarea.form-control:focus {
  border-color: #49adc5;
  box-shadow: 0 0 0 4px rgba(73, 173, 197, 0.16);
}

.purchase-page input.form-control[type="date"] {
  color-scheme: light;
  color: #445766;
  -webkit-text-fill-color: #445766;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.purchase-page input.form-control[type="date"]::-webkit-date-and-time-value,
.purchase-page input.form-control[type="date"]::-webkit-datetime-edit,
.purchase-page input.form-control[type="date"]::-webkit-datetime-edit-fields-wrapper,
.purchase-page input.form-control[type="date"]::-webkit-datetime-edit-text,
.purchase-page input.form-control[type="date"]::-webkit-datetime-edit-month-field,
.purchase-page input.form-control[type="date"]::-webkit-datetime-edit-day-field,
.purchase-page input.form-control[type="date"]::-webkit-datetime-edit-year-field {
  color: #445766;
  -webkit-text-fill-color: #445766;
  background: transparent;
}

.purchase-page input.form-control[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.78;
}

.legacy-date-input {
  cursor: pointer;
}

.legacy-date-input::-webkit-calendar-picker-indicator {
  display: none;
}

.purchase-page input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #22B8CF;
}

.purchase-page .btn {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 18px;
  letter-spacing: 0.01em;
}

.purchase-page .table>thead>tr>th,
.purchase-page .table>tbody>tr>td {
  font-family: "Segoe UI", "Open Sans", Helvetica, Arial, sans-serif;
  color: #2d353c;
  font-weight: 400;
  font-size: 13px;
  vertical-align: middle;
  padding: 12px 14px;
}

.purchase-page .table>thead>tr>th {
  font-weight: 600;
  background: #f3f8fb;
  color: #48606d;
  border-bottom-width: 1px;
}

.purchase-page .table-bordered,
.purchase-page .table-bordered>thead>tr>th,
.purchase-page .table-bordered>tbody>tr>td,
.purchase-page .table-bordered>tbody>tr>th {
  border-color: #d8e3ea;
}

.purchase-page .table-striped>tbody>tr:nth-of-type(odd) {
  background-color: #fbfdff;
}

.purchase-page .table>tbody>tr:hover {
  background: #f5fbfe;
}

.purchase-page .btn.btn-xs {
  padding: 6px 13px;
}

.purchase-page .panel-body {
  padding: 16px 18px;
}

.purchase-page .panel-body[style*="padding:0"] {
  padding: 0 !important;
}

.purchase-page .panel+.panel,
.purchase-page .panel+form,
form.purchase-page .panel+.panel {
  margin-top: 16px;
}

.purchase-page .panel-footer {
  background: linear-gradient(180deg, #fbfdfe 0%, #eef4f7 100%);
  border-top: 1px solid #d6e0e7;
  padding: 12px 16px;
}

.purchase-page .pagination>li>a,
.purchase-page .pagination>li>span {
  border-radius: 999px !important;
  margin: 0 3px;
  border-color: #d7e2e9;
  color: #48606d;
  min-width: 36px;
  text-align: center;
}

.purchase-page .pagination>.active>a,
.purchase-page .pagination>.active>span,
.purchase-page .pagination>.active>a:hover,
.purchase-page .pagination>.active>span:hover,
.purchase-page .pagination>.active>a:focus,
.purchase-page .pagination>.active>span:focus {
  background-color: #22B8CF;
  border-color: #22B8CF;
}

.purchase-page .pagination>li.disabled>a,
.purchase-page .pagination>li.disabled>span {
  background: #f4f7f9;
}

.purchase-page .table a:not(.btn):not([class*="btn-"]) {
  color: #1aa0d1;
}

.purchase-page .table a.btn,
.purchase-page .table a[class*="btn-"] {
  color: #fff !important;
  text-decoration: none;
}

.purchase-page .table a.btn-default,
.purchase-page .table a[class*="btn-default"] {
  color: #48606d !important;
}

.purchase-page .table a.btn-default:hover,
.purchase-page .table a.btn-default:focus,
.purchase-page .table a[class*="btn-default"]:hover,
.purchase-page .table a[class*="btn-default"]:focus {
  color: #22B8CF !important;
}

.purchase-page .purchase-filter-row .chosen-container,
.purchase-page .purchase-filter-row .chosen-container-single,
.purchase-page .purchase-filter-row .chosen-container .chosen-drop,
.purchase-page .purchase-filter-row select.form-control {
  max-width: 100%;
}

.purchase-edit-page,
.purchase-edit-form-shell,
.purchase-edit-header-card {
  min-width: 0;
}

.purchase-edit-page {
  overflow-x: hidden;
}

.purchase-edit-page .purchase-edit-header-select+.chosen-container,
.purchase-edit-page .purchase-edit-header-select+.chosen-container-single,
.purchase-edit-page .purchase-edit-header-select-sm+.chosen-container,
.purchase-edit-page .purchase-edit-header-select-sm+.chosen-container-single,
.purchase-edit-page .purchase-edit-header-select-md+.chosen-container,
.purchase-edit-page .purchase-edit-header-select-md+.chosen-container-single {
  width: 100% !important;
  max-width: 100%;
}

.purchase-edit-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 6px;
}

.purchase-edit-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.purchase-edit-toolbar .btn {
  min-width: 120px;
  min-height: 36px;
}

.purchase-edit-header-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px 10px;
  margin-bottom: 8px;
}

.purchase-edit-inline-grid {
  display: grid;
  gap: 6px 12px;
  align-items: end;
}

.purchase-edit-inline-grid-primary {
  grid-template-columns: minmax(260px, 1.45fr) minmax(180px, 0.95fr) minmax(180px, 0.7fr) minmax(150px, 0.65fr);
}

.purchase-edit-inline-grid-secondary {
  grid-template-columns: minmax(240px, 340px) minmax(240px, 0.9fr);
}

.purchase-edit-inline-field,
.purchase-edit-block-field,
.purchase-edit-component-cell {
  min-width: 0;
}

.purchase-edit-inline-field label,
.purchase-edit-block-field label,
.purchase-edit-inline-label {
  display: block;
  margin: 0 0 4px;
  color: #556a78;
  font-size: 12px;
  font-weight: 700;
}

.purchase-edit-status-field {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.purchase-edit-checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  min-height: 34px;
  align-items: center;
}

.purchase-edit-checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 600;
  color: #4d6473;
}

.purchase-edit-address-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 8px 12px;
}

.purchase-edit-address-input {
  min-height: 82px !important;
  resize: vertical;
}

.purchase-edit-table-wrap,
.purchase-edit-line-items-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 1;
}

.purchase-edit-line-items-wrap {
  padding-bottom: 0;
  margin-bottom: 8px;
  border-radius: 16px;
}

.purchase-edit-items-table {
  min-width: 1320px;
  width: max(1320px, 100%);
  table-layout: fixed;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.purchase-edit-items-table>thead>tr>th {
  position: sticky;
  top: 0;
  z-index: 4;
  white-space: nowrap;
  font-size: 12px;
}

.purchase-edit-items-table col.purchase-edit-col-row {
  width: 44px;
}

.purchase-edit-items-table col.purchase-edit-col-component {
  width: 380px;
}

.purchase-edit-items-table col.purchase-edit-col-grade {
  width: 120px;
}

.purchase-edit-items-table col.purchase-edit-col-description {
  width: 110px;
}

.purchase-edit-items-table col.purchase-edit-col-qty,
.purchase-edit-items-table col.purchase-edit-col-rate,
.purchase-edit-items-table col.purchase-edit-col-total,
.purchase-edit-items-table col.purchase-edit-col-received,
.purchase-edit-items-table col.purchase-edit-col-remain {
  width: 78px;
}

.purchase-edit-items-table col.purchase-edit-col-closed {
  width: 68px;
}

.purchase-edit-items-table col.purchase-edit-col-restricted {
  width: 150px;
}

.purchase-edit-items-table col.purchase-edit-col-actions {
  width: 74px;
}

.purchase-edit-items-table>thead>tr>th,
.purchase-edit-items-table>tbody>tr>td {
  vertical-align: middle;
  box-sizing: border-box;
  padding: 4px 6px;
}

.purchase-edit-items-table>tbody>tr>td {
  vertical-align: top;
  position: relative;
  overflow: visible;
}

.purchase-edit-actions-header {
  min-width: 74px;
  white-space: nowrap;
  text-align: center;
}

.purchase-edit-items-table>thead>tr>th:nth-last-child(1),
.purchase-edit-items-table>tbody>tr>td:nth-last-child(1) {
  position: sticky;
  right: 0;
  z-index: 3;
  background: #fff;
}

.purchase-edit-items-table>thead>tr>th:nth-last-child(1) {
  z-index: 7;
}

.purchase-edit-items-table>thead>tr>th:nth-last-child(2),
.purchase-edit-items-table>tbody>tr>td:nth-last-child(2) {
  position: sticky;
  right: 74px;
  z-index: 2;
  background: #fff;
}

.purchase-edit-items-table>thead>tr>th:nth-last-child(2) {
  z-index: 6;
}

.purchase-edit-items-table>thead>tr>th:nth-last-child(3),
.purchase-edit-items-table>tbody>tr>td:nth-last-child(3) {
  position: sticky;
  right: 224px;
  z-index: 2;
  background: #fff;
}

.purchase-edit-items-table>thead>tr>th:nth-last-child(3) {
  z-index: 6;
}

.purchase-edit-items-table>thead>tr>th:nth-last-child(-n+3) {
  background: linear-gradient(180deg, #f5fbff 0%, #e8f3fc 100%);
}

.purchase-edit-items-table>thead>tr>th.purchase-edit-actions-header {
  background: linear-gradient(180deg, #f5fbff 0%, #e8f3fc 100%) !important;
}

.purchase-edit-items-table>thead>tr>th:nth-last-child(-n+3),
.purchase-edit-items-table>tbody>tr>td:nth-last-child(-n+3) {
  box-shadow: -1px 0 0 #c2ccd4;
}

.purchase-edit-action-cell {
  text-align: center;
  white-space: nowrap;
  min-width: 74px;
}

.purchase-edit-row-action {
  padding: 0 6px;
  border: 0;
  background: transparent;
}

.purchase-edit-row-action-icon {
  display: inline-block;
  min-width: 12px;
  color: #12a8c9;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
}

.purchase-edit-row-action:disabled .purchase-edit-row-action-icon {
  color: #7d8d98;
}

.purchase-edit-form-shell.is-submitting {
  cursor: progress;
}

.purchase-edit-form-shell.is-submitting .js-purchase-submit {
  opacity: 0.7;
}

.btn-submit-busy-indicator {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: button-submit-spin 0.75s linear infinite;
}

@keyframes button-submit-spin {
  to {
    transform: rotate(360deg);
  }
}

.purchase-edit-submit-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  border-radius: 14px;
}

.purchase-edit-submit-status.is-hidden {
  display: none;
}

.purchase-edit-submit-spinner {
  flex: 0 0 auto;
}

.purchase-edit-grid-select,
.purchase-edit-description-input,
.purchase-edit-number-input,
.purchase-edit-errorcodes-input {
  width: 100%;
  max-width: 100%;
}

.purchase-edit-page .purchase-edit-grid-select+.chosen-container,
.purchase-edit-page .purchase-edit-grid-select+.chosen-container-single {
  width: 100% !important;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

.purchase-edit-page .chosen-container {
  font-size: 12px;
}

.purchase-edit-page .chosen-container.chosen-with-drop {
  z-index: 3005;
}

.purchase-edit-page .chosen-container .chosen-drop {
  z-index: 2050;
  background: #fff;
  border: 1px solid #cfdbe4;
  box-shadow: 0 12px 24px rgba(36, 42, 48, 0.12);
}

.purchase-edit-page .chosen-container .chosen-results {
  max-height: 240px;
  color: #445766;
  background: #fff;
}

.purchase-edit-page .chosen-container .chosen-results li {
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
  color: #445766;
  background: #fff;
}

.purchase-edit-page .chosen-container .chosen-results li.active-result {
  color: #445766;
}

.purchase-edit-page .chosen-container .chosen-results li.highlighted {
  background: #2196F3;
  color: #fff;
}

.purchase-edit-page .chosen-container .chosen-results li.result-selected {
  color: #7a8b96;
}

.purchase-edit-page .chosen-container .no-results {
  color: #6a7c88;
  background: #fff;
}

.purchase-edit-page .chosen-container-single .chosen-single,
.purchase-edit-page .chosen-container-single .chosen-search input[type=text] {
  min-height: 30px;
  border-radius: 8px;
}

.purchase-edit-page .chosen-container-single .chosen-single {
  display: flex;
  align-items: center;
  padding-left: 8px;
  background: #fff;
  border: 1px solid #cfdbe4;
  box-shadow: inset 0 1px 2px rgba(36, 42, 48, 0.03);
}

.purchase-edit-page .chosen-container-single .chosen-single span {
  line-height: 18px;
}

.purchase-edit-page .chosen-container-single .chosen-single div {
  width: 28px;
}

.purchase-edit-component-select,
.purchase-edit-grade-select {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.purchase-edit-money-cell,
.purchase-edit-center-cell {
  text-align: center;
  white-space: nowrap;
  vertical-align: middle !important;
}

.purchase-edit-number-input {
  text-align: right;
}

.purchase-edit-page .form-control {
  min-height: 30px;
  padding: 4px 8px;
}

.purchase-edit-items-table .form-control,
.purchase-edit-items-table .chosen-container-single .chosen-single,
.purchase-edit-items-table .chosen-container-single .chosen-search input[type=text] {
  min-height: 28px;
}

.purchase-edit-fees-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  margin: 10px 0 4px;
}

.purchase-edit-fee-field {
  display: flex;
  flex-direction: column;
  min-width: 120px;
}

.purchase-edit-fee-field label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
  color: #4a5560;
}

.purchase-edit-fee-field .form-control {
  width: 130px;
  text-align: right;
}

.purchase-edit-totals-bar {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin: 6px 0 8px;
  font-size: 13px;
}

.purchase-edit-documents-card {
  padding: 8px 12px;
}

.purchase-edit-page .module-form-card {
  padding: 8px 12px;
}

.purchase-edit-page .module-form-card .module-form-table {
  width: 100%;
  margin-top: 0 !important;
  margin-bottom: 0;
}

.purchase-edit-page .module-form-card .module-form-table>tbody>tr>td {
  padding: 6px 8px;
  vertical-align: middle;
  font-size: 12px;
}

.purchase-edit-page .module-form-card .module-form-table>tbody>tr>td:first-child {
  width: 160px;
  color: #445766;
  font-weight: 600;
}

.purchase-edit-documents-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 6px 0;
}

.purchase-edit-documents-row+.purchase-edit-documents-row {
  border-top: 1px solid #e3ebf2;
}

.purchase-edit-documents-label {
  margin: 0;
  color: #445766;
  font-weight: 600;
}

.purchase-edit-documents-value {
  min-width: 0;
  word-break: break-word;
}

.purchase-edit-file-input {
  max-width: 420px;
}

.purchase-edit-page input[type="file"].form-control {
  max-width: 420px;
}

.purchase-edit-checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #445766;
  font-weight: 500;
}

.purchase-edit-action-toolbar {
  margin-top: 8px !important;
  justify-content: flex-start;
}

.purchase-edit-page .purchase-action-toolbar {
  margin-top: 8px !important;
  justify-content: flex-start;
}

.purchase-edit-action-btn {
  min-width: 128px;
}

.purchase-edit-page .purchase-action-toolbar .btn {
  min-width: 128px;
  width: auto !important;
}

@media (max-width: 1199px) {

  .purchase-edit-inline-grid-primary,
  .purchase-edit-inline-grid-secondary,
  .purchase-edit-address-grid,
  .purchase-edit-documents-row {
    grid-template-columns: 1fr;
  }
}

.purchase-subnav {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 8px;
}

.purchase-subnav-btn,
.purchase-subnav .btn {
  min-width: 128px;
  border-radius: 999px;
  border-color: #d7e2e9;
  background: #fff;
  color: #48606d !important;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(36, 42, 48, 0.05);
}

.purchase-subnav-btn:hover,
.purchase-subnav-btn:focus,
.purchase-subnav .btn:hover,
.purchase-subnav .btn:focus {
  border-color: #7DD6E5;
  background: #f5fbfe;
  color: #22B8CF !important;
}

@media (max-width: 1199px) {

  .purchase-edit-inline-grid-primary,
  .purchase-edit-inline-grid-secondary,
  .purchase-edit-address-grid {
    grid-template-columns: 1fr;
  }

  .purchase-edit-line-items-wrap {
    min-height: 250px;
  }
}

.form-action-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.form-action-inline-centered {
  justify-content: center;
}

.module-home-page .panel-body,
.component-page .panel-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.module-landing-shell,
.component-landing-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 18px;
  padding: 24px;
  border: 1px solid #C4DAF0;
  border-radius: 24px;
  background: linear-gradient(135deg, #FFFFFF 0%, #EAF4FF 100%);
}

.module-eyebrow,
.component-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(33, 150, 243, 0.08);
  color: #2196F3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-landing-copy h4,
.component-landing-copy h4 {
  margin: 12px 0 8px;
  font-size: 25px;
  font-weight: 700;
  color: #22313c;
}

.module-landing-copy p,
.component-landing-copy p {
  margin: 0;
  max-width: 760px;
  color: #566b78;
  line-height: 1.65;
}

.module-landing-stats,
.component-landing-stats {
  display: grid;
  gap: 12px;
}

.module-stat-card,
.component-stat-card,
.module-card,
.component-card {
  border: 1px solid #d8e3ea;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(36, 42, 48, 0.05);
}

.module-stat-card,
.component-stat-card {
  padding: 16px 18px;
}

.module-stat-label,
.component-stat-label {
  display: block;
  margin-bottom: 6px;
  color: #7a8f9d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-stat-card strong,
.component-stat-card strong {
  display: block;
  color: #22313c;
  font-size: 16px;
  line-height: 1.4;
}

.module-toolbar,
.component-toolbar,
.module-pagination,
.component-pagination,
.module-editor-toolbar,
.component-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.module-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 14px;
}

.module-page-heading {
  padding: 10px 14px;
}

.module-inline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.module-inline-toolbar .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module-search-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.module-search-toolbar .form-control {
  width: auto;
}

.module-view-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.master-page-actions {
  justify-content: flex-end;
  padding-right: 10px;
}

.master-page-table-wrap {
  border: 1px solid #d8e5ef;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.master-page-table {
  margin-bottom: 0;
}

.master-page-inner-table {
  border: 0;
}

.master-page-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.master-page-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 10px;
}

.module-view-switch a,
.module-view-switch .btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid #d7e2e9;
  border-radius: 999px;
  background: #fff;
  color: #1aa0d1;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.module-view-switch .reports-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid #d7e2e9;
  border-radius: 999px;
  background: #fff;
  color: #1aa0d1;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.module-view-switch a:hover,
.module-view-switch a:focus,
.module-view-switch .btn-link:hover,
.module-view-switch .btn-link:focus {
  border-color: #7DD6E5;
  background: #f5fbfe;
  color: #117ea7;
  text-decoration: none;
}

.module-view-switch .reports-view-btn:hover,
.module-view-switch .reports-view-btn:focus {
  border-color: #7DD6E5;
  background: #f5fbfe;
  color: #117ea7;
  text-decoration: none;
}

/* Active pill in an immediate-load filter group (reuses the shipping tab palette). */
.module-view-switch a.is-active,
.module-view-switch a.is-active:hover,
.module-view-switch a.is-active:focus {
  border-color: #2196F3;
  background: #EAF4FF;
  color: #1b3340;
}

.module-view-switch .reports-view-btn.is-active,
.module-view-switch .reports-view-btn.is-active:hover,
.module-view-switch .reports-view-btn.is-active:focus {
  border-color: #2196F3;
  background: #EAF4FF;
  color: #1b3340;
}

.module-card section+section {
  margin-top: 0;
}

.module-workspace-grid,
.component-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 16px;
}

.module-card,
.component-card {
  padding: 18px 20px;
}

.module-card-header,
.component-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.module-card-header h5,
.component-card-header h5 {
  margin: 0;
}

.module-card-header a,
.module-category-note,
.component-card-header a,
.component-category-note {
  color: #5f7684;
  font-size: 12px;
  font-weight: 600;
}

.component-template-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1f1f1f !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.component-template-link i {
  color: #18a8de;
  font-size: 14px;
}

.component-template-link:hover,
.component-template-link:focus {
  color: #1f1f1f !important;
  text-decoration: none;
}

.sku-page {
  gap: 18px;
}

.sku-page .panel-title {
  color: #22313c;
}

.sku-toolbar {
  align-items: flex-start;
}

.sku-toolbar-actions,
.sku-toolbar .btn-group {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sku-page .btn {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 18px;
  letter-spacing: 0.01em;
}

.sku-toolbar-menu-link,
.sku-toolbar-menu-link:focus,
.sku-toolbar-menu-link:hover {
  border-color: #d7e2e9;
  background: #fff;
  color: #48606d !important;
}

.sku-page .btn-default,
.sku-page .btn-default:focus,
.sku-page .btn-default:hover {
  border-color: #d7e2e9;
  background: #fff;
  color: #48606d;
}

.sku-page .btn-default:hover,
.sku-page .btn-default:focus,
.sku-toolbar-menu-link:hover,
.sku-toolbar-menu-link:focus {
  border-color: #7DD6E5;
  background: #f5fbfe;
  color: #117ea7 !important;
}

.sku-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.sku-upload-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 190px;
  position: relative;
  overflow: visible;
}

.sku-upload-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 22px 0 0 22px;
  background: linear-gradient(180deg, #3CD4E8 0%, #22B8CF 100%);
  background: linear-gradient(180deg, #42c4d6 0%, #229fb3 100%);
}

.sku-upload-copy {
  padding-left: 6px;
}

.sku-upload-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #6f8795;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sku-upload-copy h4 {
  margin: 0 0 6px;
  color: #22313c;
  font-size: 18px;
  font-weight: 700;
}

.sku-upload-copy p {
  margin: 0;
  color: #5f7684;
  font-size: 13px;
  line-height: 1.5;
}

.sku-upload-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.sku-upload-form .btn {
  flex: 0 0 auto;
}

.sku-file-input {
  flex: 1 1 260px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 16px;
  border: 1px dashed #bfd0dc;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fb 100%);
  color: #465d6a;
}

.sku-file-input:focus {
  border-color: #49adc5;
  box-shadow: 0 0 0 4px rgba(73, 173, 197, 0.12);
}

.print-label-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.print-label-esn-input {
  flex: 1 1 280px;
}

.sku-menu-panel .panel-heading {
  padding-bottom: 14px;
}

.sku-menu-link {
  display: block;
  padding: 8px 0;
  color: #2f4754;
  text-decoration: none;
}

.sku-menu-link:hover,
.sku-menu-link:focus {
  color: #22B8CF;
  text-decoration: none;
}

.sku-type-section-title {
  margin: 10px 0 20px 10px;
  color: #2f4754;
  font-size: 18px;
  font-weight: 700;
}

.sku-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.sku-type-tile {
  display: grid;
  grid-template-columns: 48px 1px 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 82px;
  padding: 12px 16px;
  border: 1px solid #d6e6f4;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f5fafe 100%);
  box-shadow: 0 10px 22px rgba(36, 42, 48, 0.05);
  color: #2d353c;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sku-type-tile:hover,
.sku-type-tile:focus {
  text-decoration: none;
  color: #2d353c;
  border-color: #aed4f5;
  box-shadow: 0 14px 28px rgba(33, 150, 243, 0.14);
  transform: translateY(-1px);
}

.sku-type-order {
  color: #4c606d;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  text-align: center;
}

.sku-type-divider {
  width: 1px;
  height: 40px;
  background: #d6e2ec;
}

.sku-type-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eaf4ff;
  color: #2196f3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.sku-type-name {
  color: #2f4754;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.sku-top-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.sku-top-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sku-view-switch {
  gap: 8px;
}

.sku-view-switch .btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  margin-right: 0 !important;
  border: 1px solid #d7e2e9;
  border-radius: 999px;
  background: #fff;
  color: #1aa0d1;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.sku-view-switch .btn-link:hover,
.sku-view-switch .btn-link:focus {
  border-color: #7DD6E5;
  background: #f5fbfe;
  color: #117ea7;
  text-decoration: none;
}

.sku-search-form {
  margin-left: auto;
}

.sku-search-toolbar {
  justify-content: flex-end;
}

.sku-search-input {
  width: 340px !important;
}

.sku-filter-form label {
  font-weight: 600;
}

.sku-simple-flags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 4px;
}

.sku-simple-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid #d8e3ea;
  border-radius: 999px;
  background: #f8fbfd;
  color: #415763;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.sku-simple-flag input[type="checkbox"] {
  margin: 0;
  width: 15px;
  height: 15px;
}

.sku-pager .btn {
  margin-right: 6px;
  margin-bottom: 6px;
}

.sku-pager .btn.active,
.sku-pager .btn.is-current {
  pointer-events: none;
  opacity: 0.78;
}

.sku-selected-type {
  color: #4f5b66;
  font-weight: 700;
}

/* SKU filter dropdowns (Index filter panel + Simple List View) sit in narrow
   columns, which clipped long option text. Let the Chosen options drop grow to fit
   the full value instead of cutting it off — keeping the Chosen (white) dropdown,
   not the native one. */
.sku-page .chosen-container {
  width: 100% !important;
}

.sku-page .chosen-container-single .chosen-single {
  height: 38px;
  line-height: 26px;
  padding: 6px 10px;
  border-radius: 6px;
}

.sku-page .chosen-container-single .chosen-single span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The open options panel must float above the filter card and grow wide enough to
   show full values; never clip its height so the values are always visible. */
.sku-page .chosen-container .chosen-drop {
  width: auto;
  min-width: 100%;
  max-width: 460px;
  z-index: 1050;
}

.sku-page .chosen-container-active.chosen-with-drop .chosen-single {
  border-radius: 6px 6px 0 0;
}

.sku-page .chosen-container .chosen-results {
  max-height: 320px;
  overflow-y: auto;
}

.sku-page .chosen-container .chosen-results li {
  white-space: nowrap;
}

/* The open Chosen dropdown expands wider than the narrow filter columns; keep the
   filter card and every wrapper between it and the dropdown from clipping it, so the
   options panel is fully visible instead of cut off. */
.sku-simple-filter,
.sku-simple-filter .panel-body,
.sku-simple-filter .row,
.sku-simple-filter [class*="col-"] {
  overflow: visible !important;
}

.sku-simple-actions .btn {
  margin-left: 6px;
}

@media (max-width: 768px) {
  .sku-top-controls {
    display: block;
  }

  .sku-search-form {
    margin-left: 0;
    margin-top: 10px;
  }

  .sku-search-toolbar {
    justify-content: stretch;
  }

  .sku-search-toolbar .btn {
    margin-top: 8px;
  }

  .sku-search-input {
    width: 100% !important;
  }

  .sku-upload-form {
    align-items: stretch;
  }

  .sku-upload-form .btn {
    width: 100%;
  }

  .print-label-upload-actions {
    width: 100%;
  }

  .sku-simple-flags {
    margin-bottom: 10px;
  }

  .sku-simple-flag {
    width: 100%;
    justify-content: flex-start;
  }

  .sku-type-tile {
    grid-template-columns: 40px 1px 40px minmax(0, 1fr);
    min-height: 72px;
    padding: 10px 12px;
  }

  .sku-type-order {
    font-size: 28px;
  }

  .sku-type-name {
    font-size: 15px;
  }

  .wfs-page .wfs-search-left .form-control,
  .wfs-page .wfs-search-left .chosen-container,
  .fba-page .wfs-search-left .form-control,
  .fba-page .wfs-search-left .chosen-container {
    max-width: none;
    width: 100% !important;
  }

  .wfs-page .shipment-date-toolbar,
  .fba-page .shipment-date-toolbar {
    flex-wrap: wrap;
  }

  .wfs-page .shipment-date-toolbar .shipment-date-input,
  .fba-page .shipment-date-toolbar .shipment-date-input {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .wfs-page .wfs-search-options,
  .fba-page .wfs-search-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

.module-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.module-menu-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-height: 120px;
  padding: 18px;
  border: 1px solid #D6E6F4;
  border-radius: 20px;
  background: #FFFFFF;
  color: #2d353c;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(36, 42, 48, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.module-menu-card:hover,
.module-menu-card:focus {
  color: #2d353c;
  text-decoration: none;
  transform: translateY(-2px);
  border-color: #AED4F5;
  box-shadow: 0 14px 28px rgba(33, 150, 243, 0.12);
}

.module-menu-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #EAF4FF;
  color: #2196F3;
  font-size: 18px;
  flex: 0 0 auto;
}

.module-menu-card h5 {
  margin: 0 0 8px;
  color: #1A2830;
  font-size: 16px;
  font-weight: 700;
}

.module-menu-card p {
  margin: 0;
  color: #5f7684;
  line-height: 1.55;
}

.reports-home-toolbar {
  margin-bottom: 2px;
}

.reports-home-toolbar .module-category-note {
  flex: 1 1 560px;
}

.reports-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reports-section .module-card-header h5 {
  font-weight: 700;
}

.reports-home-page .module-menu-card h5 {
  font-weight: 400;
}

.reports-home-page .reports-list-title {
  font-weight: 400;
}

.reports-home-page.is-list-view .reports-icon-view {
  display: none;
}

.reports-home-page.is-icon-view .reports-list-view {
  display: none;
}

.reports-list-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 18px;
}

.reports-list-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  width: auto;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2196F3;
  text-decoration: none;
  transition: color 0.2s ease;
}

.reports-list-link:hover,
.reports-list-link:focus {
  color: #117ea7;
  text-decoration: underline;
}

.reports-list-link i {
  display: none;
}

.reports-list-text {
  display: inline;
  min-width: 0;
}

.reports-list-title {
  color: inherit;
  font-size: 14px;
  line-height: 1.35;
}

.reports-list-link.is-disabled {
  opacity: 0.82;
  cursor: default;
  color: #7a8f9d;
  text-decoration: none;
}

@media (max-width: 1199px) {
  .reports-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.module-heading-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.module-heading-action .panel-title {
  white-space: nowrap;
}

.module-heading-form {
  margin: 0;
  margin-left: auto;
  flex: 0 0 auto;
}

.module-btn-120 {
  width: 120px;
}

.system-admin-page .module-link-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #2d4a57;
}

.system-admin-page .module-link-row:hover,
.system-admin-page .module-link-row:focus {
  color: #1a8eb8;
  text-decoration: none;
}

.system-admin-refresh-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.system-admin-refresh-form {
  margin: 0;
}

.system-admin-refresh-btn {
  min-width: 140px;
  color: #fff;
  border-color: #d9780f;
  background: linear-gradient(180deg, #f09a34 0%, #e07f14 100%);
}

.system-admin-refresh-btn:hover,
.system-admin-refresh-btn:focus {
  color: #fff;
  border-color: #c56f11;
  background: linear-gradient(180deg, #e79330 0%, #cc7313 100%);
}

.system-admin-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.system-admin-back-btn i {
  font-size: 13px;
}

@media (max-width: 768px) {
  .module-heading-action {
    flex-direction: column;
    align-items: flex-start;
  }
}

.component-upload-form,
.component-search-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.component-upload-form {
  align-items: flex-start;
  width: 100%;
}

.component-inline-row,
.component-search-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
}

.component-upload-form .component-inline-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 8px;
  width: 100%;
}

.component-upload-form .form-control,
.component-search-row .form-control {
  width: auto;
  max-width: 100%;
  flex: 1 1 auto;
}

.component-upload-label {
  color: #445766;
  font-weight: 700;
  margin-bottom: 0;
  white-space: nowrap;
  min-width: 138px;
}

.component-file-input {
  min-width: 0;
  max-width: 100%;
  flex: 1 1 520px;
}

.component-upload-form .component-file-input {
  width: 100%;
}

.component-inline-row .btn {
  white-space: nowrap;
}

.component-search-input {
  min-width: 240px;
  max-width: 340px;
}

.component-upload-card,
.component-search-card {
  padding-top: 16px;
  padding-bottom: 16px;
}

.component-upload-card .component-card-header,
.component-search-card .component-card-header {
  margin-bottom: 10px;
}

.component-search-card .component-search-form {
  gap: 6px;
}

.component-search-card .component-card-header h5,
.component-upload-card .component-card-header h5 {
  line-height: 1.2;
}

.component-search-card .component-search-input {
  max-width: 100%;
}

.component-search-card .btn,
.component-upload-card .btn {
  min-height: 40px;
}

.component-filter-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(234, 84, 101, 0.1);
  color: #c44151;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.component-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.component-category-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid #d7e2e9;
  border-radius: 999px;
  background: #fff;
  color: #1aa0d1;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.component-category-link:hover,
.component-category-link:focus {
  border-color: #B9DDF5;
  background: #F0F7FF;
  color: #2196F3;
  text-decoration: none;
}

.component-category-link.is-active {
  border-color: #2196F3;
  background: #2196F3;
  color: #fff;
  box-shadow: 0 10px 20px rgba(33, 150, 243, 0.2);
}

.module-table-wrap,
.component-table-wrap {
  border: 1px solid #C8DCF0;
  border-radius: 22px;
  background: #fff;
}

.module-table-wrap:not(.purchase-edit-table-wrap):not(.purchase-edit-line-items-wrap):not(.purchase-list-table-wrap),
.component-table-wrap {
  /* Wide grids (e.g. Bulk QC Success/Failed Records) get a horizontal scrollbar instead of
     clipping the off-screen columns. overflow-y stays hidden so vertical/rounded-corner
     behavior is identical to the previous `overflow: hidden`. */
  overflow-x: auto;
  overflow-y: hidden;
}

.legacy-panel.purchase-edit-overflow-open,
.legacy-panel.purchase-edit-overflow-open .purchase-page,
.legacy-panel.purchase-edit-overflow-open .purchase-edit-form-shell,
.legacy-panel.purchase-edit-overflow-open .purchase-edit-header-card,
.legacy-panel.purchase-edit-overflow-open .purchase-edit-line-items-wrap,
.legacy-panel.purchase-edit-overflow-open .purchase-edit-items-table,
.legacy-panel.purchase-edit-overflow-open .purchase-edit-items-table>tbody,
.legacy-panel.purchase-edit-overflow-open .purchase-edit-items-table>tbody>tr,
.legacy-panel.purchase-edit-overflow-open .purchase-edit-items-table>tbody>tr>td {
  overflow: visible;
}

/* SO list "Search By" Chosen dropdown is clipped by the .legacy-panel overflow:hidden once results
   render below it. While the dropdown is open, relax the ancestor overflow so it shows fully
   (same approach as .purchase-edit-overflow-open above). */
.legacy-panel.so-search-overflow-open,
.legacy-panel.so-search-overflow-open .sales-order-page,
.legacy-panel.so-search-overflow-open .sales-order-toolbar-card {
  overflow: visible !important;
}

.purchase-edit-page .module-table-wrap.purchase-edit-table-wrap,
.purchase-edit-page .module-table-wrap.purchase-edit-line-items-wrap {
  overflow-x: auto !important;
  overflow-y: visible !important;
}

.purchase-edit-page .purchase-edit-grid-select+.chosen-container,
.purchase-edit-page .purchase-edit-grid-select+.chosen-container-single,
.purchase-edit-page .purchase-edit-grid-select+.chosen-container .chosen-drop,
.purchase-edit-page .purchase-edit-grid-select+.chosen-container-single .chosen-drop {
  overflow: visible;
}

.module-table-wrap.purchase-list-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
}

.module-table,
.component-table {
  margin-bottom: 0;
}

/* Bulk Tracking Success/Failed Records: wrap long cell content so the (now
   longer, friendlier) Error/Comments message reflows instead of forcing the
   grid wider. The grid itself stays responsive via .table-responsive /
   .module-table-wrap (horizontal scroll only on true narrow widths). */
.bulk-tracking-records-table>tbody>tr>td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.bulk-tracking-error-col {
  min-width: 240px;
  max-width: 420px;
}

.module-action-col,
.module-action-cell,
.component-action-col,
.component-action-cell {
  width: 120px;
  min-width: 120px;
  white-space: nowrap;
}

/* Components list grid (8 columns, two of them free text: Component Name and the
   Warehouse Inventory notes). Text columns wrap so a long value reflows inside its
   column instead of stretching the grid past the viewport; numeric and action
   columns stay on one line. Same min/max-width approach as .bulk-tracking-error-col
   above, sized so the whole grid fits ~1536px CSS px (1920x1080 at 125% zoom)
   without a horizontal scrollbar. Wider monitors just get roomier text columns;
   narrower ones fall back to .component-table-wrap's horizontal scroll. */
.component-table>thead>tr>th,
.component-table>tbody>tr>td {
  vertical-align: top;
}

.component-table>tbody>tr>td.wrapword {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.component-no-col,
.component-qty-col,
.component-cost-col {
  white-space: nowrap;
}

.component-qty-col,
.component-cost-col {
  text-align: right;
}

.component-name-col {
  min-width: 160px;
  max-width: 280px;
}

.component-type-col {
  min-width: 90px;
  max-width: 150px;
}

.component-manufacturer-col {
  min-width: 110px;
  max-width: 200px;
}

.component-warehouse-col {
  min-width: 180px;
  max-width: 340px;
}

@media (max-width: 1500px) {
  .component-name-col {
    max-width: 220px;
  }

  .component-warehouse-col {
    max-width: 240px;
  }
}

.module-pagination .btn,
.module-editor-toolbar .btn,
.component-pagination .btn,
.component-editor-toolbar .btn {
  min-width: 46px;
}

.module-pagination .is-current,
.component-pagination .is-current {
  pointer-events: none;
  background: #22B8CF;
  border-color: #22B8CF;
  color: #fff;
}

.module-pagination .btn.is-current,
.component-pagination .btn.is-current {
  background: linear-gradient(180deg, #3CD4E8 0%, #22B8CF 100%) !important;
  border-color: #22B8CF !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(34, 184, 207, 0.2);
}

.module-form-card {
  padding: 10px 12px;
  border: 1px solid #d8e3ea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(36, 42, 48, 0.04);
}

.module-form-table,
.component-editor-form {
  margin: 0;
}

.module-form-table,
.component-editor-table {
  margin-bottom: 0;
}

.module-form-table>tbody>tr>td {
  padding: 7px 8px !important;
  vertical-align: middle;
}

.module-form-table>tbody>tr>td h4 {
  margin: 0;
  color: #22313c;
  font-size: 15px;
  font-weight: 700;
}

.module-form-table .table-striped>tbody>tr:nth-of-type(odd),
.module-form-table.table-striped>tbody>tr:nth-of-type(odd) {
  background-color: #fbfdff;
}

.module-form-table .form-action-inline {
  justify-content: flex-start;
}

.shipto-editor-form .row,
.shipment-editor-form .row {
  margin-left: -10px;
  margin-right: -10px;
}

.shipto-editor-form .row>[class*="col-"],
.shipment-editor-form .row>[class*="col-"] {
  padding-left: 10px;
  padding-right: 10px;
}

.module-form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.ipd-toolbar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.ipd-toolbar-search-form {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.ipd-toolbar-search-input {
  width: 300px;
}

.daily-reports-form-table>tbody>tr:first-child>td,
.daily-reports-form-table>tbody>tr:last-child>td {
  border-top: 0;
}

.customer-form-actions-row>td {
  padding-top: 20px !important;
}

.customer-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.customer-form-actions .btn {
  min-width: 180px;
  text-align: center;
}

.module-empty-state {
  padding: 24px;
  border: 1px dashed #d0dee7;
  border-radius: 18px;
  text-align: center;
  color: #6d8390;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.marketplace-admin-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.marketplace-section-card {
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}

.marketplace-section-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 22px 0 0 22px;
  background: linear-gradient(180deg, #42c4d6 0%, #229fb3 100%);
}

.marketplace-section-header {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e3ebf0;
}

.marketplace-section-header h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #22313c;
}

.marketplace-section-header p {
  margin: 4px 0 0;
  color: #5f7684;
  font-size: 12px;
  font-weight: 600;
}

.marketplace-task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}

.marketplace-task-row+.marketplace-task-row {
  border-top: 1px dashed #dbe5ec;
}

.marketplace-task-info h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #2f3f4b;
}

.marketplace-task-info p {
  margin: 3px 0 0;
  color: #6a808e;
  font-size: 12px;
}

.warehouse-admin-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.warehouse-section-card {
  padding: 18px 20px;
}

.warehouse-task-row {
  align-items: flex-start;
}

.warehouse-inline-form {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}

.warehouse-text-input {
  width: 420px;
  max-width: 100%;
}

.warehouse-file-input {
  min-width: 280px;
  width: 300px;
}

.marketplace-task-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.marketplace-upload-form,
.marketplace-inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
}

.marketplace-upload-form .module-upload-file {
  min-width: 250px;
  width: 280px;
}

.marketplace-status-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(33, 150, 243, 0.1);
  color: #2196F3;
  font-size: 12px;
  font-weight: 700;
}

.fba-page .fba-filter-card {
  padding: 14px 16px;
}

.fba-page .fba-search-toolbar {
  justify-content: flex-start;
}

.wfs-page .wfs-search-stack,
.fba-page .wfs-search-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.wfs-page .wfs-search-left,
.fba-page .wfs-search-left {
  justify-content: flex-start;
  width: 100%;
}

.wfs-page .wfs-search-left .form-control,
.fba-page .wfs-search-left .form-control {
  min-width: 760px;
  max-width: 980px;
}

.wfs-page .wfs-search-left .chosen-container,
.fba-page .wfs-search-left .chosen-container {
  min-width: 760px;
  max-width: 980px;
}

.wfs-page .shipment-name-toolbar .shipment-name-input,
.fba-page .shipment-name-toolbar .shipment-name-input {
  width: 760px;
  min-width: 760px;
  max-width: 980px;
}

.wfs-page .shipment-date-toolbar,
.fba-page .shipment-date-toolbar {
  flex-wrap: nowrap;
}

.wfs-page .shipment-date-toolbar .shipment-date-input,
.fba-page .shipment-date-toolbar .shipment-date-input {
  width: 376px;
  min-width: 376px;
  max-width: 486px;
}

.wfs-page .wfs-search-options,
.fba-page .wfs-search-options {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4f6674;
  font-size: 12px;
  font-weight: 700;
}

.wfs-page .wfs-search-options-label,
.fba-page .wfs-search-options-label {
  white-space: nowrap;
}

.wfs-page .wfs-inventory-search-by-row,
.fba-page .wfs-inventory-search-by-row {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  color: #3f5968;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.wfs-page .wfs-inventory-search-controls,
.fba-page .wfs-inventory-search-controls {
  justify-content: flex-start;
}

.fba-page .fba-filter-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #4f6674;
  white-space: nowrap;
}

.fba-page .fba-count-badge,
.wfs-page .fba-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2196F3;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.fba-page .fba-search-switch {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wfs-page .fba-search-switch {
  gap: 10px;
}

.fba-page .fba-search-switch label {
  margin: 0;
  color: #4f6674;
  font-weight: 600;
}

.fba-page .fba-search-switch input[type="radio"] {
  margin-right: 4px;
}

.fba-page .fba-inventory-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
}

.fba-page .fba-inventory-table {
  min-width: 1900px;
}

.inventory-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.inventory-link-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d6e2e9;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfe 100%);
  color: #2d4f62;
  text-decoration: none;
  font-weight: 700;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.inventory-link-tile i {
  width: 22px;
  text-align: center;
  color: #22B8CF;
}

.inventory-link-tile:hover,
.inventory-link-tile:focus {
  text-decoration: none;
  color: #1f3e50;
  border-color: #7fb8c8;
  box-shadow: 0 10px 18px rgba(35, 101, 121, 0.12);
  transform: translateY(-1px);
}

.inventory-upgrade-cell {
  min-width: 220px;
  white-space: pre-line;
}

.sku-snapshot-page .popover {
  max-width: 340px;
}

.sku-snapshot-tooltip-table {
  border-collapse: collapse;
  width: 100%;
}

.sku-snapshot-tooltip-table th,
.sku-snapshot-tooltip-table td {
  border: 1px solid #9fbfcb;
  padding: 4px 6px;
  font-size: 12px;
  color: #1f3c4a;
  text-align: left;
}

.sku-snapshot-tooltip-table th {
  background: #e8f4f9;
  font-weight: 700;
}

/* Sidebar collapses to the off-canvas drawer only at true phone/small-tablet
   widths (<= 767px). Down to 768px it stays a visible left column, auto-narrowed
   by the min-width:768 rules below. This keeps the left menu present on any
   normal laptop window, including high display-scaling cases (e.g. 1366px at
   150% reports ~910 CSS px, 1920px at 200% reports ~960). */
@media (max-width: 767px) {

  .legacy-logo-wrap,
  .legacy-sidebar {
    display: none;
  }

  .legacy-main {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 1199px) {
  .legacy-content-wrap {
    padding: 12px;
  }

  .module-landing-shell,
  .component-landing-shell,
  .module-workspace-grid,
  .component-workspace-grid {
    grid-template-columns: 1fr;
  }

  .report-reconciliation-filters {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .purchase-filter-row .purchase-filter-stretch {
    max-width: 100%;
  }

  .receiving-search-input {
    max-width: 100%;
  }

  .component-upload-form .component-inline-row {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .component-upload-form .component-upload-label {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .marketplace-task-row {
    flex-direction: column;
    align-items: stretch;
  }

  .marketplace-task-actions,
  .marketplace-upload-form,
  .marketplace-inline-actions {
    justify-content: flex-start;
  }

  .marketplace-upload-form .module-upload-file {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 1440px) and (min-width: 1200px) {
  .component-upload-form .component-inline-row {
    grid-template-columns: 1fr auto;
  }

  .component-upload-form .component-upload-label {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1366px) and (min-width: 992px) {

  .legacy-logo-wrap,
  .legacy-sidebar {
    width: 168px;
  }

  .legacy-main {
    margin-left: 168px;
  }

  .legacy-content-wrap {
    padding: 14px 12px;
  }

  .legacy-menu-item {
    gap: 8px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .legacy-menu-item>i {
    font-size: 14px;
  }

  .panel-heading {
    padding: 12px 14px;
  }

  .panel-title {
    font-size: 18px;
  }

  .module-form-card {
    padding: 14px 16px;
    border-radius: 18px;
  }

  .module-form-table>tbody>tr>td {
    padding: 9px 10px !important;
  }

  .module-toolbar,
  .module-search-toolbar {
    gap: 8px;
  }

  .module-search-toolbar {
    flex-wrap: wrap;
  }

  .module-search-toolbar .form-control {
    min-width: 160px;
  }

  .ipd-toolbar-row {
    flex-wrap: wrap;
  }

  .ipd-toolbar-search-form {
    margin-left: 0;
    width: 100%;
  }

  .ipd-toolbar-search-input {
    width: 100%;
  }

  .module-table>thead>tr>th,
  .module-table>tbody>tr>td {
    padding: 10px 10px;
    font-size: 12.5px;
  }
}

@media (max-width: 1100px) and (min-width: 768px) {

  .legacy-logo-wrap,
  .legacy-sidebar {
    width: 154px;
  }

  .legacy-main {
    margin-left: 154px;
  }

  .legacy-menu-item>span {
    font-size: 11.5px;
  }
}

@media (max-width: 1500px) {
  .purchase-toolbar-search-panel {
    align-items: stretch;
  }

  .purchase-search-mode-group,
  .purchase-search-form,
  .purchase-grid-filter-bar {
    justify-content: flex-start;
  }

  .purchase-actions-col,
  .purchase-actions-cell {
    min-width: 220px;
  }

  .purchase-docs-col,
  .purchase-docs-cell {
    min-width: 150px;
    max-width: 260px;
  }
}

@media (max-width: 1200px) {
  .purchase-toolbar-right {
    min-width: 100%;
  }

  .purchase-search-form {
    flex-wrap: wrap;
  }

  .purchase-list-top-selects {
    width: 100%;
  }

  .purchase-top-filter-select,
  .purchase-list-top-selects .chosen-container {
    width: 100% !important;
  }

  .purchase-search-date-group {
    flex-wrap: wrap;
  }

  .purchase-grid-filter-bar {
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {

  .module-landing-shell,
  .component-landing-shell,
  .module-card,
  .component-card {
    padding: 18px;
  }

  .module-menu-card,
  .component-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .module-menu-card i {
    width: 38px;
    height: 38px;
  }

  .reports-list-grid {
    grid-template-columns: 1fr;
  }

  .reports-home-toolbar .module-category-note {
    flex-basis: 100%;
  }

  .component-inline-row,
  .component-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  .report-reconciliation-filters {
    grid-template-columns: 1fr;
  }

  .receiving-dashboard-search-card,
  .receiving-shortcuts-card,
  .receiving-summary-card,
  .receiving-upload-card,
  .receiving-file-toolbar-card,
  .receiving-pending-card,
  .receiving-report-filter-card,
  .receiving-editor-card {
    padding: 18px;
  }

  .receiving-search-form,
  .receiving-inline-check,
  .receiving-file-toolbar,
  .receiving-toolbar {
    align-items: stretch;
  }

  .receiving-search-input,
  .receiving-search-submit,
  .receiving-shortcut-link {
    width: 100%;
    max-width: 100%;
  }

  .customer-form-actions {
    flex-wrap: wrap;
  }

  .customer-form-actions .btn {
    width: 100%;
  }
}

.btn-edit,
.btn-view,
.btn-rec-details,
.btn-view-details,
.btn-receive {
  color: #fff !important;
  font-weight: 600;
}

.btn-primary,
.btn-info,
.btn-theme-edit,
.btn-theme-report,
.btn-edit {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn-primary,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:hover,
.btn-info,
.btn-info:focus,
.btn-info:active,
.btn-info:hover {
  background: linear-gradient(180deg, #3CD4E8 0%, #22B8CF 100%);
  border-color: #22B8CF;
  color: #fff !important;
}

.wrapword {
  white-space: normal;
  word-break: break-word;
}

.btn-edit {
  background: #22B8CF;
  color: #fff;
}

.btn-view {
  background: #ea5465;
  color: #fff;
}

.btn-rec-details,
.btn-view-details {
  background: #4fc1e9;
  color: #fff;
}

.btn-receive {
  background: #8cc152;
  color: #fff;
}

.btn-edit:hover,
.btn-view:hover,
.btn-rec-details:hover,
.btn-view-details:hover,
.btn-receive:hover {
  color: #fff;
  opacity: 0.92;
}

.btn-theme-edit,
.btn-theme-edit:focus,
.btn-theme-edit:active,
.btn-theme-edit:hover {
  background: #08add3;
  border-color: #0998b9;
  color: #fff !important;
}

.btn-theme-report,
.btn-theme-report:focus,
.btn-theme-report:active,
.btn-theme-report:hover {
  background: linear-gradient(180deg, #3CD4E8 0%, #22B8CF 100%);
  border-color: #22B8CF;
  color: #fff !important;
}

/* Sales Order editor action toolbar: keep Back / Cancel / Save / Save & Email / Save & Print /
   Open Report a consistent shape and size (they previously varied by themed vs default styling).
   Selector uses .panel-body too so it out-specifies `.purchase-page .btn-theme-edit { min-width:82px }`
   in site-overrides.css, which otherwise shrank only the Save button. */
.so-editor-toolbar.panel-body .btn {
  min-width: 132px;
  height: 38px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.invoice-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.invoice-toolbar .btn {
  min-width: 140px;
  border-radius: 999px;
}

.invoice-filter-panel .panel-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.invoice-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.invoice-filter-eyebrow {
  color: #5f7483;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.invoice-filter-subtitle {
  margin-top: 4px;
  color: #6f7f8a;
  font-size: 13px;
}

.invoice-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 14px 16px;
  align-items: end;
}

.invoice-filter-field {
  min-width: 0;
}

.invoice-filter-field .control-label {
  display: block;
  margin-bottom: 6px;
  color: #556a78;
  font-size: 12px;
  font-weight: 700;
}

.invoice-filter-field-checkbox {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.invoice-wholesale-toggle {
  margin: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.invoice-filter-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}

.invoice-filter-actions .btn {
  min-width: 110px;
  border-radius: 999px;
}

.invoice-results-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #5a6d79;
}

.invoice-results-heading strong {
  color: #314956;
}

.invoice-editor-page {
  --invoice-control-height: 40px;
}

.invoice-editor-page.is-submitting {
  cursor: progress;
}

.invoice-editor-page.is-submitting .js-invoice-submit {
  opacity: 0.7;
}

.invoice-editor-page .js-invoice-submit.is-busy,
.purchase-edit-form-shell .js-purchase-submit.is-busy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.invoice-editor-submit-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  border-radius: 14px;
}

.invoice-editor-submit-spinner {
  flex: 0 0 auto;
}

.invoice-editor-page .panel,
.invoice-editor-page .panel-body,
.invoice-editor-page .panel-heading,
.invoice-editor-page .row,
.invoice-editor-page [class*="col-"] {
  overflow: visible;
}

.invoice-editor-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.invoice-editor-toolbar .btn {
  min-width: 110px;
  border-radius: 999px;
}

.invoice-editor-card .panel-heading {
  display: flex;
  align-items: center;
  min-height: 52px;
}

.invoice-editor-card-body {
  padding: 18px;
}

.invoice-editor-row-tight {
  margin-bottom: 0;
}

.invoice-editor-row-tight+.invoice-editor-row-tight {
  margin-top: 12px;
}

.invoice-editor-field {
  margin-bottom: 12px;
}

.invoice-editor-page .control-label {
  display: block;
  margin-bottom: 6px;
  color: #556a78;
  font-size: 12px;
  font-weight: 700;
}

.invoice-editor-page .form-control,
.invoice-editor-page .chosen-container-single .chosen-single,
.invoice-editor-page .chosen-container-single .chosen-search input[type=text] {
  min-height: var(--invoice-control-height);
  border-radius: 14px;
}

.invoice-editor-page .form-control {
  padding: 9px 12px;
}

.invoice-editor-page textarea.form-control {
  min-height: 118px;
  resize: vertical;
}

.invoice-editor-select,
.invoice-editor-page .chosen-container {
  width: 100% !important;
}

.invoice-editor-page .chosen-container {
  font-size: 13px;
}

.invoice-editor-page .chosen-container .chosen-drop {
  z-index: 2050;
}

.invoice-editor-page .chosen-container .chosen-results li {
  white-space: normal;
  word-break: break-word;
  line-height: 1.45;
}

.invoice-editor-page .chosen-container-single .chosen-single {
  display: flex;
  align-items: center;
  height: var(--invoice-control-height);
  padding-left: 12px;
  background: #fff;
  border: 1px solid #c9d7e2;
  box-shadow: inset 0 1px 2px rgba(28, 58, 78, 0.04);
}

.invoice-editor-page .chosen-container-single .chosen-single span {
  line-height: 22px;
}

.invoice-editor-page .chosen-container-single .chosen-single div {
  width: 30px;
}

.invoice-editor-date-input {
  width: 100%;
  min-width: 0;
}

.invoice-editor-checkbox-field {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.invoice-editor-inline-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--invoice-control-height);
  margin-bottom: 0;
  font-weight: 600;
  color: #4d6473;
}

.invoice-editor-inline-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.invoice-editor-component-selection {
  margin-top: 8px;
  color: #58707e;
  font-size: 12px;
  line-height: 1.5;
  word-break: break-word;
}

.invoice-editor-kitting-wrap {
  margin-top: 10px;
}

.invoice-editor-kitting-wrap.is-disabled {
  opacity: 0.65;
}

.invoice-editor-address-row {
  margin: 0 -8px 15px;
  display: flex;
  flex-wrap: wrap;
}

.invoice-editor-address-col {
  padding: 0 8px;
  margin-bottom: 0;
}

.invoice-editor-address-card {
  height: 100%;
}

.invoice-editor-address-input {
  min-height: 152px !important;
}

.invoice-editor-item-actions-row {
  align-items: end;
}

.invoice-editor-inline-note {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f7fbff 0%, #edf5fb 100%);
  border: 1px solid #d4e1eb;
  color: #58707e;
  font-size: 12px;
  line-height: 1.5;
}

.invoice-editor-draft-preview {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #d8e3ea;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9fc 100%);
}

.invoice-editor-line-items-panel {
  position: relative;
  z-index: 25;
}

.invoice-editor-line-items-wrap {
  position: relative;
  z-index: 26;
}

.invoice-editor-card-focus {
  box-shadow: 0 0 0 3px rgba(26, 142, 183, 0.18), 0 16px 34px rgba(35, 66, 83, 0.12);
  transition: box-shadow 0.2s ease;
}

.invoice-editor-draft-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.invoice-editor-draft-preview-header strong {
  color: #274253;
}

.invoice-editor-draft-preview-header span {
  color: #628090;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.invoice-editor-draft-preview-grid {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

.invoice-editor-draft-preview-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #dce6ed;
}

.invoice-editor-draft-preview-card-wide {
  min-width: 0;
}

.invoice-editor-draft-preview-card-accent {
  background: linear-gradient(180deg, #f7fbff 0%, #edf5fb 100%);
  border-color: #cfe0ea;
}

.invoice-editor-draft-preview-label {
  color: #628090;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.invoice-editor-draft-preview-card strong {
  color: #274253;
  font-size: 15px;
  line-height: 1.35;
  word-break: break-word;
}

.invoice-editor-draft-preview-subrow {
  color: #607887;
  font-size: 12px;
}

.invoice-editor-draft-preview-options {
  margin-top: 12px;
}

.invoice-editor-item-action-field {
  display: flex;
  align-items: center;
  justify-content: center;
}

.invoice-editor-item-footer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.invoice-editor-item-action-buttons {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.invoice-editor-add-item-btn {
  min-width: 120px;
  border-radius: 999px;
}

.invoice-editor-cancel-item-btn {
  min-width: 120px;
  border-radius: 999px;
  border-color: #cfdbe4;
  color: #48606d !important;
  font-weight: 700;
  background: #fff;
}

.invoice-editor-cancel-item-btn:hover,
.invoice-editor-cancel-item-btn:focus {
  border-color: #7DD6E5;
  background: #f5fbfe;
  color: #22B8CF !important;
}

.invoice-editor-table-wrap {
  position: relative;
  padding: 8px 0 0;
  overflow-x: auto;
  overflow-y: visible;
}

.invoice-editor-items-table {
  min-width: 980px;
  position: relative;
  z-index: 1;
}

.invoice-editor-items-table thead th {
  white-space: nowrap;
}

.invoice-editor-items-table tbody td {
  vertical-align: top !important;
  position: relative;
}

.invoice-editor-items-spacer td {
  height: 22px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  pointer-events: none;
}

.invoice-editor-table-number {
  text-align: right;
  white-space: nowrap;
}

.invoice-editor-table-item {
  min-width: 220px;
}

.invoice-editor-table-esn {
  min-width: 170px;
  white-space: pre-wrap;
  word-break: break-word;
}

.invoice-editor-table-notes {
  min-width: 180px;
  white-space: pre-wrap;
  word-break: break-word;
}

.invoice-editor-table-actions {
  min-width: 150px;
  position: relative;
  z-index: 3;
}

.invoice-editor-line-subtext {
  margin-top: 4px;
  color: #617887;
  font-size: 12px;
  line-height: 1.45;
}

.invoice-editor-line-meta {
  margin-top: 6px;
  color: #1a8eb7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.invoice-editor-item-row {
  cursor: pointer;
}

.invoice-editor-line-actions {
  white-space: nowrap;
  position: relative;
  z-index: 4;
  pointer-events: auto;
}

.invoice-editor-line-actions .btn {
  min-width: 60px;
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.invoice-editor-component-menu,
.invoice-editor-customer-menu {
  max-width: min(760px, calc(100vw - 40px));
  border: 1px solid #cfdde7;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(35, 66, 83, 0.14);
  padding: 6px;
  z-index: 2100 !important;
}

.invoice-editor-component-option {
  display: block;
  white-space: normal;
  word-break: break-word;
  line-height: 1.45;
}

.invoice-editor-esn-input {
  min-height: 88px;
  resize: vertical;
}

.invoice-editor-field-help {
  margin-top: 4px;
  color: #6c7f8b;
  font-size: 12px;
  line-height: 1.4;
}

.invoice-editor-financial-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px 15px;
}

.invoice-editor-financial-row>[class*="col-"] {
  padding: 0 8px;
  margin-bottom: 12px;
}

.invoice-editor-summary-card {
  height: 100%;
}

.invoice-editor-summary-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.invoice-editor-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2ebf1;
  color: #566c7a;
}

.invoice-editor-summary-row strong {
  color: #274253;
}

/* Inline-editable fee fields inside the Tax & Totals card (consolidated from the old separate
   fee panel so editing the fee and seeing the effect on the total happen in one place). */
.invoice-editor-summary-input-wrap {
  color: #274253;
  font-weight: 700;
  white-space: nowrap;
}

.invoice-editor-summary-input {
  width: 92px;
  text-align: right;
  padding: 2px 6px;
  margin-left: 4px;
  border: 1px solid #cfdbe4;
  border-radius: 6px;
  font-weight: 700;
  color: #274253;
}

.invoice-editor-summary-total-row {
  padding-top: 6px;
  font-size: 15px;
  font-weight: 700;
}

.invoice-editor-summary-note {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f7fbff 0%, #edf5fb 100%);
  border: 1px solid #d4e1eb;
  color: #58707e;
  font-size: 12px;
  line-height: 1.5;
}

.invoice-editor-bottom-toolbar {
  margin-bottom: 0;
}

.invoice-display-page {
  --invoice-display-border: #d8e3ea;
  --invoice-display-text: #345061;
  --invoice-display-muted: #667f8e;
  --invoice-display-surface: #fff;
}

.invoice-display-toolbar .btn {
  min-width: 118px;
  border-radius: 999px;
}

.invoice-display-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.invoice-display-overview {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.invoice-display-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--invoice-display-border);
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fb 100%);
}

.invoice-display-eyebrow {
  color: #628090;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.invoice-display-hero h4 {
  margin: 6px 0 4px;
  color: #244253;
  font-size: 28px;
  font-weight: 700;
}

.invoice-display-company {
  color: var(--invoice-display-muted);
  font-size: 15px;
  font-weight: 600;
}

.invoice-display-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.invoice-display-badge {
  display: inline-flex;
  flex-direction: column;
  min-width: 120px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid #d5e2ea;
  background: #fff;
  color: var(--invoice-display-text);
  font-weight: 600;
}

.invoice-display-badge strong {
  margin-bottom: 4px;
  color: #668292;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.invoice-display-address-grid,
.invoice-display-content-grid {
  display: grid;
  gap: 16px;
}

.invoice-display-address-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.invoice-display-content-grid {
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.95fr);
  align-items: start;
}

.invoice-display-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.invoice-display-card {
  padding: 16px 18px;
  border: 1px solid var(--invoice-display-border);
  border-radius: 18px;
  background: var(--invoice-display-surface);
  color: var(--invoice-display-text);
  box-shadow: 0 10px 30px rgba(35, 66, 83, 0.04);
}

.invoice-display-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.invoice-display-card-title {
  margin-bottom: 6px;
  color: #244253;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.invoice-display-card-subtitle,
.invoice-display-meta-inline,
.invoice-display-table-note,
.invoice-display-note {
  color: var(--invoice-display-muted);
}

.invoice-display-meta-inline {
  font-size: 12px;
  font-weight: 600;
}

.invoice-display-table-wrap {
  overflow-x: auto;
}

.invoice-display-table {
  margin-bottom: 0;
  min-width: 760px;
}

.invoice-display-table th,
.invoice-display-table td {
  vertical-align: top !important;
}

.invoice-display-table-number {
  text-align: right;
  white-space: nowrap;
}

.invoice-display-table-note {
  margin-top: 4px;
  white-space: pre-wrap;
}

.invoice-display-detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.invoice-display-detail-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e3ebf1;
}

.invoice-display-detail-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.invoice-display-detail-list dt {
  color: #668292;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.invoice-display-detail-list dd {
  margin: 0;
  color: #2b4959;
  font-size: 14px;
  font-weight: 600;
  word-break: break-word;
}

.invoice-display-summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.invoice-display-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e3ebf1;
  color: var(--invoice-display-muted);
}

.invoice-display-summary-row strong {
  color: #2b4959;
}

.invoice-display-summary-row-total {
  padding-top: 6px;
  color: #244253;
  font-size: 15px;
  font-weight: 700;
}

.invoice-display-note {
  white-space: pre-line;
  line-height: 1.6;
}

.invoice-display-report-shell {
  border-radius: 18px;
  overflow: hidden;
}

@media (max-width: 1399px) {
  .invoice-filter-grid {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
  }

  .invoice-display-address-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1199px) {
  .invoice-filter-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .invoice-display-content-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 991px) {
  .invoice-filter-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .invoice-display-hero {
    flex-direction: column;
  }

  .invoice-display-badges {
    justify-content: flex-start;
  }

  .invoice-display-address-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .invoice-editor-draft-preview-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .invoice-results-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .invoice-editor-item-action-field {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .invoice-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .invoice-display-toolbar {
    flex-wrap: wrap;
  }

  .invoice-display-toolbar .btn {
    min-width: 0;
  }

  .invoice-editor-draft-preview-header,
  .invoice-editor-draft-preview-grid {
    grid-template-columns: minmax(0, 1fr);
    display: grid;
  }

  .invoice-editor-draft-preview-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .invoice-filter-actions {
    flex-wrap: wrap;
  }

  .invoice-editor-address-row,
  .invoice-editor-financial-row {
    display: block;
    margin-left: 0;
    margin-right: 0;
  }

  .invoice-editor-address-col,
  .invoice-editor-financial-row>[class*="col-"] {
    padding-left: 0;
    padding-right: 0;
  }
}

.report-viewer-shell {
  position: relative;
  min-height: 920px;
  background: #fff;
  border: 1px solid #d9d9d9;
}

.report-viewer-frame {
  width: 100%;
  min-height: 900px;
  border: 0;
  background: #fff;
}

/* SSRS Report Viewer embedded in-page (Invoice Register) */
.report-viewer-shell--ssrs-embed {
  min-height: min(920px, 88vh);
}

.report-viewer-frame--ssrs-embed {
  display: block;
  width: 100%;
  min-height: min(880px, 85vh);
  height: 85vh;
  max-height: 1200px;
}

.report-viewer-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: #2d353c;
  text-align: center;
  padding: 20px;
  z-index: 2;
}

.report-viewer-loading.is-hidden {
  display: none;
}

.report-viewer-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #d7e6ea;
  border-top-color: #22B8CF;
  box-shadow: 0 0 0 12px rgba(230, 240, 245, 0.75);
  animation: report-spin 0.8s linear infinite;
}

.report-viewer-loading-title {
  font-size: 16px;
  font-weight: 600;
  color: #365364;
}

.report-viewer-loading-text {
  max-width: 420px;
  color: #687680;
  line-height: 1.55;
}

@keyframes report-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes page-loading-pulse {

  0%,
  100% {
    transform: translateY(0) scale(0.95);
    opacity: 0.55;
  }

  50% {
    transform: translateY(-2px) scale(1.08);
    opacity: 1;
  }
}

@keyframes page-loading-shimmer {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -100% 0;
  }
}

/* ── Status Pill Badges ── */
.status-pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Green — Open, Active, Approved, Completed, Received, Success */
.status-pill-open,
.status-pill-active,
.status-pill-approved,
.status-pill-completed,
.status-pill-received,
.status-pill-success {
  background-color: #E8F8EE;
  color: #1B7A3D;
}

/* Yellow — Pending, Waiting, Hold, On Hold, Pending Review */
.status-pill-pending,
.status-pill-waiting,
.status-pill-hold,
.status-pill-on-hold,
.status-pill-pending-review {
  background-color: #FFF6E0;
  color: #9A6D00;
}

/* Cyan — In Progress, Shipped, Processing, Shipping */
.status-pill-in-progress,
.status-pill-shipped,
.status-pill-processing,
.status-pill-shipping {
  background-color: #E0F6FA;
  color: #0E7C96;
}

/* Purple — Closed, Archived, Closed Sales Order */
.status-pill-closed,
.status-pill-archived,
.status-pill-closed-sales-order {
  background-color: #F0E8FA;
  color: #6B21A8;
}

/* Red — Cancelled, Failed, Rejected, Void, Deleted */
.status-pill-cancelled,
.status-pill-failed,
.status-pill-rejected,
.status-pill-void,
.status-pill-deleted {
  background-color: #FDE8E8;
  color: #B91C1C;
}

/* Orange — Partial, Partially Received, Partial Shipment */
.status-pill-partial,
.status-pill-partially-received,
.status-pill-partial-shipment {
  background-color: #FFF0E0;
  color: #B45309;
}

/* Teal — New, Draft */
.status-pill-new,
.status-pill-draft {
  background-color: #E0F5F5;
  color: #0D6E6E;
}

/* Default fallback */
.status-pill-default {
  background-color: #EDF2F7;
  color: #4A5568;
}