#page-orders .order-list-table {
  min-width: 1280px !important;
  table-layout: fixed !important;
}

#page-orders .order-list-table th:nth-child(1) { width: 220px; }
#page-orders .order-list-table th:nth-child(2) { width: 100px; }
#page-orders .order-list-table th:nth-child(3) { width: 150px; }
#page-orders .order-list-table th:nth-child(4) { width: 170px; }
#page-orders .order-list-table th:nth-child(5) { width: 145px; }
#page-orders .order-list-table th:nth-child(6) { width: 125px; }
#page-orders .order-list-table th:nth-child(7),
#page-orders .order-list-table th:nth-child(8) { width: 75px; }
#page-orders .order-list-table th:nth-child(9) { width: 220px; }

#page-orders .order-list-table th,
#page-orders .order-list-table td {
  padding: 13px 11px;
}

#page-orders .order-list-table tbody tr { height: 76px; }

#page-orders .order-list-table th:last-child,
#page-orders .order-list-table td.order-action-cell {
  position: sticky;
  right: 0;
  box-shadow: -8px 0 16px rgba(28, 43, 70, .055);
}

#page-orders .order-list-table th:last-child {
  z-index: 4;
  background: #f5f7fc;
}

#page-orders .order-list-table td.order-action-cell {
  z-index: 2;
  background: #fff;
}

#page-orders .order-list-table tbody tr:nth-child(even) td.order-action-cell { background: #f9fbfe; }
#page-orders .order-list-table tbody tr:hover td.order-action-cell { background: #f8fbff; }

#page-orders .order-list-table .sales-order-actions {
  display: flex;
  min-width: 0;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
}

#page-orders .order-list-table .sales-order-actions button {
  width: auto;
  min-width: 0;
  min-height: 34px;
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 9px;
  white-space: nowrap;
  font-size: 11px;
}

#page-orders .order-list-table .sales-order-more {
  background: #f7f8fc;
  color: #43516a;
}

#page-orders .order-list-table .sales-order-more[aria-expanded="true"] {
  border-color: #a9a2f0;
  background: #f0efff;
  color: #473ac9;
}

#page-orders .order-list-table .sales-order-more span { margin-left: 2px; }

.document-action-menu {
  position: fixed;
  z-index: 5000;
  display: grid;
  width: min(190px, calc(100vw - 16px));
  max-height: min(300px, calc(100dvh - 16px));
  gap: 2px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #dce2ef;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(20, 34, 68, .18);
}

.document-action-menu button {
  display: flex;
  min-height: 39px;
  align-items: center;
  width: 100%;
  padding: 8px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #273a59;
  text-align: left;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.document-action-menu button:hover,
.document-action-menu button:focus-visible {
  outline: none;
  background: #f1f0ff;
  color: #473ac9;
}

.document-action-menu button.danger-action {
  margin-top: 3px;
  border-top: 1px solid #edf0f5;
  border-radius: 0 0 8px 8px;
  color: #bc3a4a;
}

.document-action-menu button.danger-action:hover { background: #fff0f2; }
.document-action-menu button:disabled { color: #9aa5b5; cursor: not-allowed; }

@media (max-width: 700px) {
  #page-orders .order-list-table { min-width: 1220px !important; }
  #page-orders .order-list-table th:nth-child(9) { width: 210px; }
}

.order-bom-snapshot-table {width:100%;min-width:980px;}
.order-bom-snapshot-table td {vertical-align:middle;}
.order-bom-snapshot-table td small {display:block;margin-top:5px;}
.order-bom-snapshot-table .snapshot-specification {min-width:140px;overflow-wrap:anywhere;}
.order-bom-snapshot-table .snapshot-unit {white-space:nowrap;}
.order-bom-snapshot-table .path {max-width:300px;overflow-wrap:anywhere;}
@media(max-width:900px){
  #dialog .order-bom-snapshot-table {display:block;min-width:0;max-width:100%;}
  #dialog .order-bom-snapshot-table thead {display:none;}
  #dialog .order-bom-snapshot-table tbody {display:grid;gap:12px;width:100%;}
  #dialog .order-bom-snapshot-table tr {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;border:1px solid #e1e7f2;border-radius:11px;}
  #dialog .order-bom-snapshot-table td {display:block;width:auto;min-width:0;padding:0;border:0;white-space:normal;overflow-wrap:anywhere;}
  #dialog .order-bom-snapshot-table td::before {display:block;margin-bottom:5px;color:#7e8da4;font-size:11px;content:attr(data-snapshot-label);}
  #dialog .order-bom-snapshot-table td:nth-child(2),#dialog .order-bom-snapshot-table td:last-child {grid-column:1 / -1;}
  #dialog .order-bom-snapshot-table td.qty {text-align:left;}
}
