.orders-heading { align-items: flex-start; }
.orders-heading .heading-actions { flex-wrap: wrap; justify-content: flex-end; }
.orders-heading .heading-actions .button.secondary { display: inline-flex; }
.orders-guide { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr); gap: 28px; padding: 21px 24px; margin: 0 0 25px; border: 1px solid #dfe7d2; border-radius: 15px; background: #eef3e5; }
.orders-guide strong { color: var(--green); font-size: 13px; font-weight: 600; }
.orders-guide p { color: #758269; font-size: 12px; line-height: 1.7; }
.orders-guide strong + p { margin-top: 7px; }
.orders-guide > p { align-self: center; }
.orders-guide a { text-underline-offset: 3px; }
.orders-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 18px; margin: 0 0 19px; }
.orders-toolbar .search-field { flex: 1 1 300px; min-width: min(100%, 230px); max-width: 480px; }
.orders-toolbar .search-field input { min-height: 43px; font-size: 12px; }
.orders-filter { display: grid; gap: 7px; min-width: 210px; max-width: 300px; flex: 0 1 260px; }
.orders-filter > span { font-size: 11px; font-weight: 500; color: #7d8872; }
.orders-filter .input { width: 100%; min-height: 43px; margin: 0; }
.orders-sheet-status { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 0 0 10px; }
#orders-draft-status { color: #7c896f; font-size: 12px; line-height: 1.6; }
.orders-edit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.orders-edit-actions .button { font-size: 11px; padding: 10px 13px; min-height: 38px; }
.orders-clear-hint { font-size: 11px; color: var(--muted); line-height: 1.7; margin: 0 0 21px; max-width: 800px; }
.orders-result-count { font-size: 11px; color: #849078; margin: 0 0 12px; }
.orders-table-wrap { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.orders-table { width: 100%; min-width: 790px; table-layout: fixed; }
.orders-table thead th { padding: 16px 18px; font-size: 10px; }
.orders-table thead th:nth-child(1) { width: 29%; }
.orders-table thead th:nth-child(2) { width: 27%; }
.orders-table thead th:nth-child(3) { width: 15%; }
.orders-table thead th:nth-child(4) { width: 29%; }
.orders-table tbody td, .orders-table tbody th { padding: 17px 18px; vertical-align: middle; white-space: normal; background: transparent; }
.orders-table tbody th { border-bottom: 1px solid #edf0e7; font-size: 12px; letter-spacing: normal; font-weight: 400; }
.orders-table tbody tr:last-child th { border-bottom: 0; }
.orders-table .orders-group-heading th { padding: 13px 18px; background: #eaf0df; color: var(--green); font-size: 13px; font-weight: 650; border-top: 1px solid #dbe4cc; border-bottom: 1px solid #dbe4cc; }
.orders-group-heading span { display: inline-block; margin-left: 9px; color: #718060; font-size: 10px; font-weight: 400; }
.orders-product strong { display: block; color: var(--ink); font-size: 13px; font-weight: 550; line-height: 1.5; overflow-wrap: anywhere; }
.orders-product small { display: block; margin-top: 5px; color: #929b86; font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.orders-table .input { display: block; width: 100%; min-height: 43px; font-size: 12px; padding: 10px 11px; margin: 0; border-radius: 8px; }
.orders-table .orders-supplier { padding-right: 24px; }
.orders-table .orders-par { font-variant-numeric: tabular-nums; }
.orders-table .orders-quantity { border-color: #ccd9b8; background: #fbfdf6; }
.orders-read-value { display: block; color: #56654e; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.orders-read-quantity { white-space: pre-wrap; }
.orders-empty { padding: 40px 24px; }
.orders-pdf-note { color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 18px; }

@media (max-width: 1050px) {
  .orders-heading { display: block; }
  .orders-heading .heading-actions { justify-content: flex-start; margin-top: 18px; padding-top: 0 !important; }
  .orders-guide { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

@media (max-width: 720px) {
  .orders-heading .heading-actions { gap: 9px; width: 100%; }
  .orders-heading .heading-actions .button { min-height: 44px; font-size: 12px; padding: 12px 14px; }
  .orders-guide { padding: 18px; margin-bottom: 22px; border-radius: 12px; }
  .orders-guide p { font-size: 12px; }
  .orders-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .orders-toolbar .search-field, .orders-filter { width: 100%; max-width: none; min-width: 0; }
  .orders-filter { gap: 6px; }
  .orders-sheet-status { align-items: flex-start; gap: 12px; }
  .orders-edit-actions { width: 100%; }
  .orders-edit-actions .button { min-height: 44px; font-size: 12px; padding: 11px 14px; }
  .orders-clear-hint { font-size: 11px; margin-bottom: 19px; }
  .orders-table { min-width: 770px; }
  .orders-table thead th { padding: 15px 14px; }
  .orders-table tbody td, .orders-table tbody th { padding: 16px 14px; }
  .orders-table .input { min-height: 45px; font-size: 16px; }
  .orders-pdf-note { font-size: 11px; }
}
