.orders-content {
  padding-top: 26px;
}

.orders-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.orders-top h1,
.orders-top p,
.orders-top small {
  margin: 0;
}

.orders-top h1 {
  font-size: 30px;
}

.orders-top p {
  margin-top: 8px;
  font-weight: 800;
}

.orders-top span,
.orders-top small {
  color: var(--muted);
}

.orders-top small {
  display: block;
  margin-top: 8px;
  font-size: 14px;
}

.orders-actions {
  display: flex;
  gap: 14px;
}

.orders-actions button,
.orders-filter button,
.orders-table td button,
.table-footer button,
.table-footer select {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-weight: 800;
}

.orders-actions button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  height: 42px;
  padding: 0 18px;
}

.order-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.order-stats article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 116px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(23, 44, 39, 0.05);
}

.order-stats article > span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 12px;
}

.order-stats p,
.order-stats small {
  margin: 0;
}

.order-stats p {
  color: #4f5e59;
  font-weight: 800;
}

.order-stats strong {
  display: block;
  margin: 8px 0;
  font-size: 26px;
}

.order-stats small {
  color: var(--muted);
}

.neutral {
  color: #4b5969;
  background: #eef2f5;
}

.orders-filter {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1.1fr 1fr auto;
  gap: 22px;
  align-items: end;
  margin-bottom: 14px;
}

.orders-filter label {
  display: grid;
  gap: 10px;
  color: #263530;
  font-weight: 800;
}

.orders-filter input,
.orders-filter select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  outline: 0;
}

.orders-filter input {
  padding: 0 42px 0 14px;
}

.orders-filter select {
  padding: 0 14px;
}

.orders-filter label > span {
  position: relative;
  display: block;
}

.orders-filter label > span i {
  position: absolute;
  right: 12px;
  top: 11px;
  color: var(--muted);
}

.orders-filter button {
  height: 42px;
  padding: 0 22px;
  color: var(--green);
  border-color: rgba(15, 159, 99, 0.42);
}

.orders-table {
  padding: 0;
  overflow: hidden;
}

.order-tabs {
  display: flex;
  gap: 28px;
  align-items: center;
  height: 62px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.order-tabs button {
  height: 100%;
  border: 0;
  color: #4f5e59;
  background: transparent;
  font-weight: 800;
  position: relative;
}

.order-tabs button.active {
  color: var(--green);
}

.order-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--green);
}

.table-scroll {
  overflow-x: auto;
}

.orders-table table {
  min-width: 1260px;
}

.orders-table th {
  background: #fbfcfc;
}

.orders-table td,
.orders-table th {
  padding: 16px 18px;
}

.orders-table td small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.order-products {
  display: flex;
  gap: 6px;
  align-items: center;
}

.order-products i {
  display: block;
  width: 28px;
  height: 34px;
  background-position-y: 100%;
}

.order-products span {
  margin-left: 8px;
  color: var(--muted);
}

.cereal {
  background-position-x: 71.425%;
}

.orders-table td em {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 6px;
  font-style: normal;
  font-weight: 900;
}

.process {
  color: #1e80c7;
  background: #e8f3ff;
}

.pending {
  color: #b47a00;
  background: #fff4d8;
}

.sent {
  color: var(--green);
  background: #eaf9f2;
}

.orders-table .done {
  color: #884fe2;
  background: #f1e8ff;
}

.orders-table .cancel {
  color: #e34b5b;
  background: #ffe9ee;
}

.orders-table td:last-child {
  display: flex;
  gap: 14px;
  align-items: center;
}

.orders-table td button {
  height: 38px;
  padding: 0 16px;
}

.table-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}

.table-footer p {
  margin: 0;
  color: #4f5e59;
}

.table-footer div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.table-footer button,
.table-footer select {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
}

.table-footer button.active {
  color: #fff;
  background: var(--green);
}

@media (max-width: 1400px) {
  .order-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .orders-filter {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .orders-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .orders-actions {
    width: 100%;
  }

  .orders-actions button {
    flex: 1;
    justify-content: center;
  }

  .order-stats,
  .orders-filter {
    grid-template-columns: 1fr;
  }

  .order-tabs {
    overflow-x: auto;
    gap: 18px;
  }

  /* Rows per page footer — scroll horizontal */
  .table-footer {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    white-space: nowrap;
  }
  .table-footer::-webkit-scrollbar { display: none; }
  .table-footer p { flex-shrink: 0; }
  .table-footer div {
    flex-shrink: 0;
    flex-wrap: nowrap;
    align-items: center;
  }
}
