.journey{position:relative;margin:20px 0 8px}.journey:before{content:'';position:absolute;top:28px;bottom:28px;left:29px;width:3px;background:#d9e4c9}.journey-step{position:relative;display:flex;align-items:center;gap:18px;min-height:72px;padding:7px 12px 7px 0;border-radius:12px}.journey-step.current{background:#eef5e4}.journey-step.future{opacity:.52}.journey-art{width:60px;height:58px;flex:none;display:grid;place-items:center;position:relative}.journey-art img,.journey-art .art-icon{width:55px;height:55px;object-fit:contain}.journey-step strong{font-size:14px;line-height:1.4}.journey-step p{font-size:12px;line-height:1.5;color:#65715e;margin:4px 0 0}.journey-alert{position:relative;background:#f9e8df;color:#873e37;padding:12px;border-radius:8px;font-size:13px}.journey-cancelled .journey-step{opacity:.55}.journey-track{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:14px;margin-top:14px;font-size:12px}.journey-track button{min-width:0;overflow-wrap:anywhere;text-align:right;font-size:12px;padding:6px}.journey-track button span{display:block;color:#527635;text-decoration:underline;margin-top:3px}@media(max-width:600px){.journey-step{gap:12px}.journey-step strong{font-size:13px}.journey-track{align-items:flex-start;flex-wrap:wrap}.journey-track button{text-align:left}}
.order-readonly>div{display:flex;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.order-readonly>div span{color:var(--muted)}@media(max-width:600px){.order-readonly>div{flex-wrap:wrap}}
.order-detail-layout{grid-template-columns:minmax(0,1.2fr) minmax(300px,.85fr);gap:24px;align-items:start}
.order-detail-layout>div{min-width:0}
.order-detail-layout .panel{background:linear-gradient(135deg,#fffefa,#faf9fd 60%,#f2f8e9);border:1px solid #e0e6d7;border-radius:24px;padding:24px;box-shadow:0 8px 24px #455b2010,inset 0 1px 0 #fff}
.order-detail-layout .panel h3{font-size:19px;letter-spacing:-.3px}
.order-detail-layout .journey{margin-top:16px}
.order-detail-layout .journey-step{min-height:82px;gap:14px;padding:10px 12px 10px 0}
.order-detail-layout .journey-step.current{background:linear-gradient(110deg,#eef6df,#e4efcf80);border-radius:16px}
.order-detail-layout .journey-step strong{font-size:15px}
.order-detail-layout .journey-step p{font-size:13px;color:#5b6852;overflow-wrap:anywhere}
.order-detail-layout .journey-step.future{opacity:.7}
.order-detail-layout .journey-art{width:64px;height:64px}
.order-detail-layout .journey-art img,.order-detail-layout .journey-art .art-icon{width:60px;height:60px}
.order-detail-layout .journey:before{left:31px;background:#dbe7c7}
.order-detail-layout .journey-track{font-size:13px;flex-wrap:wrap}
.order-detail-layout .journey-track button{max-width:100%;font-size:13px}
.order-detail-layout .form-actions{flex-wrap:wrap}
.order-detail-layout .form-actions button{max-width:100%}
.order-detail-layout .order-readonly>div{font-size:14px;overflow-wrap:anywhere}
@media(max-width:1100px){.order-detail-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.order-detail-layout .panel{padding:18px;border-radius:20px}.order-detail-layout .journey-step{gap:10px}.order-detail-layout .journey-step strong{font-size:14px}.order-detail-layout .journey-art{width:56px;height:56px}.order-detail-layout .journey-art img,.order-detail-layout .journey-art .art-icon{width:52px;height:52px}.order-detail-layout .journey:before{left:27px}.order-detail-layout .order-readonly>div{font-size:13px}}

button.refresh-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  gap: 7px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #d5e1c4;
  border-radius: 11px;
  background: #eef4e3;
  color: #35452b;
  box-shadow: none;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

button.refresh-control svg {
  width: 17px;
  height: 17px;
  flex: none;
}

button.refresh-control:hover:not(:disabled) { background: #e3edcf; }
button.refresh-control:disabled { opacity: .6; }

.order-panel .orders-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid #e2e8d8;
  border-radius: 15px;
  background: #fffdfb;
}

.orders-toolbar .order-search {
  flex: 1 1 180px;
  min-width: 0;
  max-width: none;
  margin: 0;
}

.orders-toolbar .order-search input {
  width: 100%;
  min-height: 44px;
  margin: 0;
  border-radius: 11px;
  font-size: 13px;
}

.orders-toolbar .tabs {
  display: flex;
  flex: none;
  gap: 2px;
  min-height: 44px;
  margin: 0;
  padding: 3px;
  border: 1px solid #e9ebdf;
  border-radius: 11px;
  background: #f3f4ed;
}

.orders-toolbar .tabs .tab {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #515945;
  box-shadow: none;
  font-size: 12px;
  white-space: nowrap;
}

.orders-toolbar .tabs .tab:hover { background: #e9eddf; }
.orders-toolbar .tabs .tab.active { border-color: #d9e6c6; background: #e3efce; color: #35452b; }
.order-panel .orders-toolbar > .refresh-control { min-height: 44px; font-size: 13px; }

.orders-table .order-row { cursor: pointer; }
.orders-table .order-row:hover,
.orders-table .order-row:focus-within { background: #edf4e5; }

@media (max-width: 900px) {
  .orders-table .order-row .row-action[data-empty] { display: none; }
}

@media (max-width: 600px) {
  .order-panel .orders-toolbar { gap: 8px; padding: 8px; }
  .orders-toolbar .order-search { flex-basis: 100%; }
  .orders-toolbar .order-search input { font-size: 16px; }
  .orders-toolbar .tabs .tab { padding-inline: 7px; }
  .order-panel .orders-toolbar > .refresh-control { font-size: 12px; padding-inline: 9px; }
}

#select-shown-orders,
.order-row-key input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  flex: none;
  accent-color: #60833f;
  cursor: pointer;
}

.export-date-field[hidden] { display: none; }
#order-export-form > button[type="submit"] { margin-top: 14px; }

.order-row-key {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-row-key > div { min-width: 0; }
.orders-table .order-row:has(.order-select:checked) { background: #e9f2df; }

@media (max-width: 600px) {
  .order-row-key { gap: 8px; }
}

/* Orders follow the cabinet's warm cream and pistachio palette. */
.pearl-cabinet > .main:has(.quick-orders) {
  background: radial-gradient(ellipse at 100% 100%, #e7efd2, transparent 57%), #faf8f2;
  max-width: none;
}

@media (min-width: 761px) {
  .pearl-cabinet > .main:has(.quick-orders) {
    padding-inline: 24px;
  }
}

.panel.order-panel.quick-orders {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.quick-order-toolbar {
  display: grid;
  gap: 16px;
  margin-bottom: 12px;
}

.quick-order-tools .quick-order-filters summary,
.quick-order-tools .quick-order-export,
.quick-orders .order-inline-change-buttons > :is(.order-inline-icon,.order-action-label),
.order-stage-buttons > button,
.quick-orders .order-list-actions > button {
  border: 1px solid #e3dfd4;
  border-radius: 12px;
  background: linear-gradient(#fffefa, #f6f3ec);
  box-shadow: 0 2px 4px #473f2510, inset 0 1px #fff;
  color: #293423;
}

.quick-order-tools .quick-order-refresh {
  border: 1px solid #c7dda6;
  background: linear-gradient(#f0f8df, #d5eab4);
  box-shadow: 0 2px 5px #42592719, inset 0 1px #fff;
  color: #293d1b;
}

.quick-order-tools .quick-order-export:hover,
.quick-order-tools .quick-order-filters summary:hover,
.quick-orders .order-inline-change-buttons > :is(.order-inline-icon,.order-action-label):hover,
.order-stage-buttons > button:hover,
.quick-orders .order-list-actions > button:hover {
  border-color: #b3ca93;
}

.quick-order-tools {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-order-search { flex: 1; min-width: 0; margin: 0; }
.quick-order-search label { position: relative; display: block; margin: 0; }
.quick-order-search label svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 17px;
  height: 17px;
  color: #5a6a50;
  transform: translateY(-50%);
  pointer-events: none;
}

.quick-order-search input {
  display: block;
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding-block: 8px;
  padding-inline-start: 38px;
  margin: 0;
  border-radius: 12px;
  background: #fffefa;
  border-color: #dddcd1;
  font-size: 14px;
}

.quick-order-tools .quick-order-refresh { border-radius: 12px; }
.quick-order-tools .quick-order-export {
  flex: none;
  gap: 6px;
  min-height: 44px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.quick-order-export svg { flex: none; width: 16px; height: 16px; color: #536844; }
.quick-order-filters { position: static; }
.quick-order-filters:not([open]) > #quick-order-filters { display: none; }
.quick-order-tools .quick-order-filters summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding-inline: 13px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}
.quick-order-filters summary::-webkit-details-marker { display: none; }
.quick-order-filters summary svg { width: 16px; height: 16px; flex: none; }
.quick-order-tools .quick-order-filters summary.has-filters {
  border-color: #a8c47e;
  background: #eaf3d9;
  color: #365d22;
}

#quick-order-filters {
  position: absolute;
  z-index: 3;
  right: 0;
  display: grid;
  gap: 10px;
  width: min(300px, calc(100vw - 32px));
  margin-top: 6px;
  padding: 14px;
  border: 1px solid #e3dfd4;
  border-radius: 14px;
  background: #fffdf7;
  box-shadow: 0 8px 22px #433c2224;
}
.order-filter-fields {
  display: grid;
  gap: 12px;
}
.quick-order-date { display: grid; }
.quick-order-date label { margin: 0; color: #4a5940; font-size: 12px; font-weight: 700; }
.quick-order-date input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  margin: 5px 0 0;
  padding: 7px 8px;
  border-color: #e3dfd4;
  background: #faf8f1;
  font-size: 14px;
}

.quick-order-filter {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.quick-order-filter legend {
  padding: 0;
  margin-bottom: 5px;
  color: #4a5940;
  font-size: 12px;
  font-weight: 700;
}

.quick-order-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.quick-order-filter-option {
  position: relative;
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}

.quick-order-filter-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.quick-order-filter-option span {
  display: inline-flex;
  align-items: center;
  min-height: 33px;
  padding: 4px 8px;
  border: 1px solid #e3dfd4;
  border-radius: 8px;
  background: #faf8f1;
  color: #34412c;
  font-size: 12px;
  font-weight: 650;
}

.quick-order-filter-option:hover span,
.quick-order-filter-option input:checked + span {
  border-color: #afc78d;
  background: #e8f1d5;
}

.quick-order-filter-option input:checked + span {
  background: linear-gradient(#f0f8df, #d5eab4);
  color: #293d1b;
  font-weight: 750;
}

.quick-order-filter-option input:focus-visible + span {
  outline: 2px solid #668846;
  outline-offset: 2px;
}

.quick-order-tools .order-select-page {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding-inline: 12px 4px;
  cursor: pointer;
}

.quick-order-tools .order-select-page[hidden],
.quick-order-tools .quick-order-export[hidden] { display: none; }
.quick-orders .orders-table .order-row > td:first-child { padding-inline-start: 12px; }

.quick-orders .orders-table th {
  background: #eff2e0;
  color: #47553b;
  font-size: 12px;
  font-weight: 700;
}
.quick-orders .orders-table td { border-bottom-color: #e3e3d5; }
.quick-orders .row-buyer,
.quick-orders .row-status .badge:not(.order-status-badge),
.quick-orders .order-link { font-weight: 750; }
.quick-orders .orders-table .order-link { font-size: 14px; }
.quick-orders .row-price { font-weight: 650; }
.quick-orders .row-carrier,
.quick-orders .orders-table .subtext { color: #5b6552; }
.quick-orders .row-carrier .subtext { overflow-wrap: anywhere; }
.badge.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-inline-size: 100%;
  padding: 5px 8px;
  border: 1px solid var(--status-edge, #d8dfca);
  border-radius: 7px;
  background: var(--status-bg, #f4f6eb);
  color: var(--status-ink, #425834);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  white-space: normal;
}
.order-status-badge svg { flex: none; width: 16px; height: 16px; }
.order-status-badge:is(.order-status-badge--reviewed, .order-status-badge--document, .order-status-badge--created, .order-status-badge--delivered) {
  --status-bg: #ebf2df;
  --status-ink: #365529;
  --status-edge: #ceddb8;
}
.order-status-badge--processing {
  --status-bg: #fbf3e4;
  --status-ink: #76521f;
  --status-edge: #ead9b7;
}
.order-status-badge--issues {
  --status-bg: #fbefeb;
  --status-ink: #8b3d32;
  --status-edge: #eccfc7;
}
.order-status-badge--cancelled {
  --status-bg: #f2f1ed;
  --status-ink: #555951;
  --status-edge: #ddded5;
}
.quick-orders .row-status .order-status-badge { max-inline-size: 152px; }
.quick-orders .pagination { justify-content: flex-end; }
.quick-orders .quick-order-empty { margin: 0; }

@media (max-width: 900px) {
  .quick-orders { --order-card-pad: 12px; }
  .quick-order-tools .order-select-page { padding-inline-start: calc(var(--order-card-pad) + 1px); }
  .quick-orders .orders-table .order-row > td:first-child { padding-inline-start: 0; }
  .quick-orders .orders-table .order-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 10px;
    margin-bottom: 9px;
    padding: var(--order-card-pad);
    border: 1px solid #e7e4d8;
    border-radius: 14px;
    background: #fffdf7;
    box-shadow: 0 2px 5px #443d2310;
  }
  .quick-orders .orders-table .order-row:is(:hover,:focus-within,:has(.order-select:checked)) {
    background: #f1f6e5;
  }
  .quick-orders .orders-table .order-row > td { padding: 0; }
  .quick-orders .order-row-key { align-items: flex-start; }
  .quick-orders .order-row-key .order-select { margin-top: 6px; }
  .quick-orders .orders-table .order-link { white-space: nowrap; }
  .quick-orders .orders-table .row-status {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    padding-top: 4px;
  }
  .quick-orders .row-buyer,
  .quick-orders .row-carrier,
  .quick-orders .row-action { margin-left: 26px; }
  .quick-orders .orders-table .row-buyer { grid-column: 1 / -1; }
  .quick-orders .orders-table .row-price { grid-column: 2; grid-row: 3; text-align: right; }
  .quick-orders .orders-table .row-action { grid-column: 1 / -1; grid-row: auto; text-align: left; }
  .quick-orders .orders-table :is(.row-buyer,.row-carrier)::before { content: none; }
}

.order-list-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.quick-orders .order-list-actions > button,
.order-stage-buttons > button {
  min-height: 38px;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1.25;
}
.order-list-primary {
  min-width: 0;
  max-width: 186px;
  white-space: normal;
}
.quick-orders .order-list-actions > .order-list-more {
  flex: 0 0 38px;
  padding: 0;
  font-size: 22px;
}
dialog:has(.order-list-menu) { max-width: 390px; }
.order-list-menu > div { display: grid; gap: 4px; }
.order-list-menu button {
  min-height: 44px;
  width: 100%;
  justify-content: flex-start;
  padding-inline: 10px;
  text-align: left;
  white-space: normal;
}
@media (max-width: 900px) {
  .order-list-actions { justify-content: flex-start; }
  .quick-orders .order-list-actions > button, .order-stage-buttons > button { min-height: 44px; }
  .quick-orders .order-list-actions > .order-list-more { flex-basis: 44px; }
  .order-list-primary { max-width: none; }
}

@media (max-width: 650px) {
  .quick-order-toolbar { gap: 12px; }
  .quick-order-tools { gap: 5px; }
  .quick-order-search input { padding-inline: 28px 5px; font-size: 16px; }
  .quick-order-search label svg { left: 8px; width: 14px; height: 14px; }
  .quick-order-tools .quick-order-refresh,
  .quick-order-tools .quick-order-filters summary { width: 36px; padding: 0; }
  .quick-order-tools .quick-order-refresh span,
  .quick-order-tools .quick-order-filters summary span { display: none; }
  .quick-order-tools .quick-order-export { gap: 4px; padding-inline: 8px; font-size: 12px; }
  .quick-order-export svg { width: 14px; height: 14px; }
}

@media (max-width: 420px) {
  .quick-order-export svg { display: none; }
}

/* Compact order actions inside the delivery list. */
.order-list-actions:has(.delivery-order-actions){flex-wrap:wrap}
.delivery-order-actions{display:flex;flex-basis:100%;justify-content:flex-end;gap:8px}
.quick-orders .delivery-order-actions button{min-height:40px;padding:7px 12px;white-space:normal}
@media(max-width:900px){.quick-orders .row-action .delivery-order-actions{justify-content:flex-start}.quick-orders .delivery-order-actions button{min-height:44px}}

/* Delivery actions remain next to the information they act on. */
@media (min-width: 901px) {
  .quick-orders[data-scope="shipments"] .orders-table { width: 100%; table-layout: fixed; }
  .quick-orders[data-scope="shipments"] .orders-table :is(th,td):nth-child(1) { width: 14%; }
  .quick-orders[data-scope="shipments"] .orders-table :is(th,td):nth-child(2) { width: 16%; }
  .quick-orders[data-scope="shipments"] .orders-table :is(th,td):nth-child(3) { width: 24%; }
  .quick-orders[data-scope="shipments"] .orders-table :is(th,td):nth-child(4) { width: 17%; }
  .quick-orders[data-scope="shipments"] .orders-table :is(th,td):nth-child(5) { width: 29%; }
  .quick-orders[data-scope="shipments"] .order-link { white-space: nowrap; }
}
.delivery-tracking { display: flex; align-items: center; gap: 4px; min-width: 0; color: #5b6552; font-size: 12px; }
.delivery-tracking > span { min-width: 0; overflow-wrap: anywhere; }
.quick-orders .delivery-track-copy {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px;
  width: 30px; height: 30px; min-height: 30px; padding: 5px; border: 0;
  border-radius: 7px; background: transparent; color: #536844; box-shadow: none;
}
.quick-orders .delivery-track-copy:hover { background: #e3efd7; }
.delivery-track-copy svg, .delivery-inline-button svg { flex: none; width: 18px; height: 18px; }
.quick-orders .delivery-inline-actions { justify-content: flex-start; flex-wrap: nowrap; gap: 6px; }
.quick-orders .delivery-inline-actions > .delivery-inline-button {
  display: inline-flex; justify-content: center; align-items: center; gap: 6px;
  max-width: none; min-width: 0; white-space: nowrap; font-size: 12px; padding: 7px 9px;
}
.quick-orders .delivery-inline-actions > .delivery-inline-button:disabled { opacity: .5; cursor: not-allowed; }
.quick-orders .delivery-inline-actions > .order-list-more { flex-basis: 38px; }
@media (min-width: 901px) and (max-width: 1450px) {
  .quick-orders .delivery-inline-actions { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .quick-orders .delivery-inline-actions { flex-wrap: wrap; }
  .quick-orders .delivery-inline-actions > .delivery-inline-button { min-height: 44px; }
  .quick-orders .delivery-track-copy { width: 40px; height: 40px; min-height: 40px; flex-basis: 40px; }
}

/* Compact, status-aware order queue. */
.quick-orders[data-scope="orders"] .quick-order-refresh {
  border-color: #e3dfd4; background: linear-gradient(#fffefa, #f6f3ec);
  color: #293423; box-shadow: 0 2px 4px #473f2510, inset 0 1px #fff;
}
@media (min-width: 901px) {
 .quick-orders[data-scope="orders"] .orders-table { width: 100%; table-layout: fixed; }
 .quick-orders[data-scope="orders"] .orders-table :is(th,td):nth-child(1) { width: 13%; }
 .quick-orders[data-scope="orders"] .orders-table :is(th,td):nth-child(2) { width: 14%; }
 .quick-orders[data-scope="orders"] .orders-table :is(th,td):nth-child(3) { width: 15%; }
 .quick-orders[data-scope="orders"] .orders-table :is(th,td):nth-child(4) { width: 11%; }
 .quick-orders[data-scope="orders"] .orders-table :is(th,td):nth-child(5) { width: 13%; }
 .quick-orders[data-scope="orders"] .orders-table :is(th,td):last-child {
  width: 34%; padding-inline-end: 12px; text-align: end; vertical-align: middle;
 }
 .quick-orders[data-scope="orders"] .orders-table .order-link { white-space: nowrap; }
 .quick-orders[data-scope="orders"] .orders-table td { padding-top: 10px; padding-bottom: 10px; }
}
.quick-orders[data-scope="orders"] .orders-table .order-row.order-needs-attention { background: #f1f5e5; }
.quick-orders[data-scope="orders"] .orders-table .order-row.order-needs-attention:hover { background: #eaf1db; }
.quick-orders[data-scope="orders"] .row-status .order-status-badge { max-inline-size: none; }
.order-list-stage { display: grid; gap: 6px; max-inline-size: 150px; font-weight: 750; line-height: 1.3; }
.order-list-stage.is-error { color: #8b4035; }
.order-list-progress { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 4px; inline-size: min(100%,128px); }
.quick-orders[data-scope="shipments"] .order-list-progress { grid-template-columns: repeat(4,minmax(0,1fr)); }
.order-list-progress > span { block-size: 5px; border-radius: 3px; background: #dfe3d6; }
.order-list-progress > .is-filled { background: #779642; }
.order-list-progress > .is-loading {
 overflow: hidden;
 background: #dce8c8;
}
.order-list-progress > .is-loading::after {
 content: "";
 display: block;
 inline-size: 55%;
 block-size: 100%;
 border-radius: inherit;
 background: #779642;
 animation: order-label-loading 1.1s ease-in-out infinite alternate;
}
@keyframes order-label-loading {
 from { transform: translateX(0); }
 to { transform: translateX(82%); }
}
@media (prefers-reduced-motion: reduce) {
 .order-list-progress > .is-loading::after { animation: none; }
}
@media (max-width: 900px) {
 .order-list-stage { inline-size: 128px; justify-items: end; text-align: right; }
 .order-list-progress { inline-size: 100px; }
}
.quick-orders[data-scope="orders"] .order-inline-actions { flex-wrap: wrap; justify-content: flex-end; }
.order-stage-buttons {
 display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; max-inline-size: 100%;
}
.order-stage-buttons > button { min-width: 0; max-width: 100%; white-space: normal; text-wrap: balance; }
.quick-orders[data-scope="orders"] .order-stage-buttons > .order-list-primary {
 max-width: 100%; text-align: center; text-wrap: balance;
 background: linear-gradient(#f0f8df, #d5eab4);
 border-color: #c7dda6; color: #293d1b;
}
.quick-orders[data-scope="orders"] .order-stage-buttons > .order-list-primary:hover { background: #d5eab4; }
.quick-orders[data-scope="orders"] .order-payment-state { font-size: 11px; font-weight: 700; }
.quick-orders[data-scope="orders"] .order-payment-state.is-paid { color: #486a34; }
.quick-orders[data-scope="orders"] .order-payment-state.is-unpaid { color: #8d6327; }
.quick-orders .order-payment-line .order-payment-state { display: block; margin: 0; }

/* Compact, consistently sized actions with immediate hover and keyboard hints. */
.quick-orders .order-inline-actions { flex-wrap: nowrap; gap: 4px; }
.quick-orders .order-inline-actions .order-inline-icon {
 position: relative; display: inline-flex; align-items: center; justify-content: center;
 width: clamp(30px, 2.7vw, 38px); height: 38px; min-height: 38px;
 flex: 0 0 clamp(30px, 2.7vw, 38px); padding: 6px; color: #34462d;
}
.quick-orders .order-inline-actions svg { width: 18px; height: 18px; flex: none; }
.order-inline-change-buttons {
 display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center;
 gap: 4px; max-inline-size: 100%;
}
.order-inline-change-buttons > .order-action-label {
 min-height: 38px;
 padding: 6px 10px;
 font-size: 13px;
 line-height: 1.25;
}
.order-list-menu .order-delete-button svg { width: 18px; height: 18px; }
@media (max-width: 900px) {
 .order-inline-change-buttons > .order-action-label { min-height: 44px; }
}
.quick-orders .order-inline-icon::after {
 content: attr(data-tooltip); position: absolute; z-index: 20; right: 0; bottom: calc(100% + 8px);
 width: max-content; max-width: min(240px, 80vw); padding: 7px 10px; border-radius: 8px;
 background: #34432e; color: #fff; font: 600 12px/1.35 Montserrat, sans-serif;
 display: none; white-space: normal; text-align: center; pointer-events: none;
 box-shadow: 0 4px 12px #23321d30;
}
.quick-orders .order-inline-icon:is(:hover, :focus-visible)::after { display: block; }
@media (min-width: 901px) {
 .quick-orders .table-wrap { overflow: visible; }
}
@media (max-width: 900px) {
 .quick-orders .order-inline-actions { flex-wrap: wrap; }
 .quick-orders .order-inline-icon:nth-child(-n+2)::after { left: 0; right: auto; }
 .quick-orders .order-inline-actions .order-inline-icon { width: 44px; height: 44px; min-height: 44px; flex-basis: 44px; }
}
@media (max-width: 650px) {
 .quick-orders .order-inline-actions { position: relative; }
 .quick-orders .order-inline-actions .order-inline-icon { position: static; }
 .quick-orders .order-inline-icon::after { left: 0; right: auto; max-width: min(240px, 100%); }
}

.quick-orders[data-scope="shipments"] .order-inline-actions { justify-content: flex-start; }
@media (min-width: 901px) and (max-width: 1200px) {
 .quick-orders[data-scope="shipments"] .order-inline-actions { flex-wrap: wrap; }
}

.quick-orders[data-scope="orders"] #quick-order-filters {
  width: min(100%, 580px);
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 12px 18px;
}
.quick-orders[data-scope="shipments"] #quick-order-filters {
  width: min(100%, 720px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
}
.shipment-filter-summary { margin: 7px 0 0; color: #4a5940; font-size: 13px; }
.shipment-filter-summary[hidden] { display: none; }
.shipment-date-range { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 9px; }
.shipment-date-range[hidden] { display: none; }
.quick-order-filter-actions { grid-column: 1 / -1; display: flex; justify-content: end; gap: 8px; }
.quick-order-filter-count {
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding-inline: 3px;
  border-radius: 9px;
  background: #dceac9;
  color: #365d22;
  font-size: 11px;
}
.quick-order-filter-count[hidden] { display: none; }

@media (max-width: 850px) {
  .quick-orders[data-scope="shipments"] #quick-order-filters { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 650px) {
  .quick-orders[data-scope="orders"] #quick-order-filters { grid-template-columns: 1fr; }
  .quick-order-tools .quick-order-filters summary.has-filters { width: auto; min-width: 36px; padding-inline: 5px; gap: 4px; }
}

.quick-orders .row-buyer .buyer-contact-line {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-top: 5px;
  padding: 0;
  min-height: 24px;
  color: #425d31;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: start;
  text-decoration: none;
}
.quick-orders .row-buyer .buyer-contact-line:hover { text-decoration: underline; }
.buyer-contact-line > span:last-child { overflow-wrap: anywhere; }
.buyer-contact-line img, .buyer-contact-line .buyer-contact-icon { width: 16px; height: 16px; flex: none; }
.buyer-contact-icon--vk {
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  background: #0077ff;
  color: white;
  font: 800 8px/1 system-ui, sans-serif;
}
.buyer-contact-icon--whatsapp { color: #13733c; }
