.view-root[data-view="replenishmentOrders"] .unified-order-toolbar {
  grid-template-columns: minmax(240px, 1fr) auto minmax(310px, auto) minmax(140px, auto) minmax(140px, auto) auto;
  align-items: end;
}

.view-root[data-view="replenishmentOrders"] .unified-order-toolbar > .replenishment-period-switch {
  display: flex;
  grid-auto-flow: column;
  grid-template-columns: repeat(3, minmax(44px, 1fr));
  flex-direction: row;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border, #d8e1ee);
  border-radius: 12px;
  background: var(--surface-soft, #f6f8fc);
}

.replenishment-period-switch .small-button {
  min-width: 44px;
}

.replenishment-period-nav {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.replenishment-period-nav label {
  display: grid;
  gap: 4px;
}

.replenishment-period-nav label span {
  color: var(--muted, #66758a);
  font-size: 12px;
}

.replenishment-period-nav input {
  min-height: 38px;
  border: 1px solid var(--border, #d8e1ee);
  border-radius: 9px;
  padding: 0 10px;
  background: var(--surface, #fff);
  color: inherit;
}

.replenishment-range-banner,
.replenishment-section-heading,
.replenishment-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.replenishment-range-banner {
  margin: 12px 0;
  padding: 12px 16px;
  border: 1px solid #cbd9ee;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7faff, #eef4ff);
}

.replenishment-range-banner span,
.replenishment-section-heading span,
.replenishment-pagination > span {
  color: var(--muted, #66758a);
  font-size: 13px;
}

.replenishment-section-heading {
  margin: 18px 0 10px;
  padding: 12px 16px;
  border-left: 4px solid #4169c8;
  border-radius: 10px;
  background: #f3f6fc;
}

.replenishment-section-heading.is-outstanding {
  border-left-color: #d48a24;
  background: #fff8ea;
}

.replenishment-section-heading > div {
  display: grid;
  gap: 3px;
}

.replenishment-section-heading b {
  white-space: nowrap;
}

.replenishment-pagination {
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid var(--border, #d8e1ee);
  border-radius: 12px;
  background: var(--surface, #fff);
}

.replenishment-pagination > div {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 1280px) {
  .view-root[data-view="replenishmentOrders"] .unified-order-toolbar {
    grid-template-columns: minmax(240px, 1fr) auto minmax(300px, 1fr);
  }
  .view-root[data-view="replenishmentOrders"] .unified-order-toolbar > .replenishment-period-switch {
    width: auto;
  }
}

@media (max-width: 760px) {
  .view-root[data-view="replenishmentOrders"] .unified-order-toolbar,
  .replenishment-period-nav {
    grid-template-columns: 1fr;
  }
  .replenishment-period-switch,
  .replenishment-pagination > div {
    width: 100%;
  }
  .replenishment-period-switch .small-button,
  .replenishment-pagination .small-button {
    flex: 1;
  }
  .replenishment-range-banner,
  .replenishment-section-heading,
  .replenishment-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
}
