/* 1.10.1: a compact order header and one action area. Quantities, undo and
   evidence stay in their existing forms; only the presentation is changed. */
@media screen {
  .content .orders-page .orders-search1101 {
    display:flex;align-items:center;gap:5px;margin:7px 0;min-width:0;
  }
  .content .orders-page .orders-search1101 input[type="search"] {
    flex:1 1 0;width:0;min-width:0;max-width:100%;min-height:44px;
    margin:0;padding:9px 10px;box-sizing:border-box;font-size:16px;
  }
  .content .orders-page .orders-search1101 button,
  .content .orders-page .orders-search-clear1101 {
    flex:0 0 44px;display:inline-flex;align-items:center;justify-content:center;
    width:44px;height:44px;min-width:44px;min-height:44px;padding:8px;margin:0;
    box-sizing:border-box;border-radius:7px;text-decoration:none;
  }
  .content .orders-page .orders-search-result1101 {
    margin:3px 0 7px;font-size:13px;line-height:1.4;overflow-wrap:anywhere;
  }
  .content .orders-page .order-row-compact1101 {
    padding-top:7px;padding-bottom:7px;gap:3px 8px;
  }
  .content .orders-page .order-row-compact1101 .order-compact-main {
    display:block;min-width:0;
  }
  .content .orders-page .order-row-titlebar1101 {
    display:flex;align-items:center;flex-wrap:wrap;gap:0 4px;min-width:0;
  }
  .content .orders-page .order-row-compact1101 .order-compact-meta {
    flex:1 1 0;gap:2px 7px;font-size:13px;line-height:1.4;margin:0;min-width:0;
  }
  .content .orders-page .order-row-compact1101 .orders-overdue-badge {
    font-size:11px;padding:2px 4px;border-radius:4px;
  }
  .content .orders-page .order-row-compact1101 .order-packing-header1101 {
    font-size:12px;padding:2px 5px;line-height:1.4;white-space:normal;
  }
  .content .orders-page .order-packing-header1101.needs-review {
    color:#8c4e04;border-color:#e4c584;background:#fff6df;
  }
  .content .orders-page .order-row-compact1101 .order-product-line {
    margin:0;font-size:15px;line-height:1.4;
  }
  .content .orders-page .order-row-compact1101 .order-product-name {
    font-size:17px;line-height:1.4;color:#173d35;
  }
  .content .orders-page .order-row-compact1101 .order-quantity {
    font-size:15px;
  }
  .content .orders-page .order-row-compact1101 .orders-note {
    font-size:14px;line-height:1.4;
  }
  .content .orders-page .order-row-titlebar1101 .order-reminders184 {
    flex:0 0 44px;width:44px;margin:0;min-width:0;
  }
  .content .orders-page .order-row-titlebar1101 .order-reminders184:has(.reminder-details184[open]) {
    flex-basis:100%;width:100%;
  }
  .content .orders-page .order-small-icon1101,
  .content .orders-page .order-packing-row .orders-problem-menu>summary.order-problem-icon1101 {
    position:relative;display:inline-flex;align-items:center;justify-content:center;
    width:44px;height:44px;min-width:44px;min-height:44px;max-width:44px;
    padding:10px;margin:0;box-sizing:border-box;border:0;border-radius:6px;
    background:transparent;color:#607368;list-style:none;cursor:pointer;
    text-decoration:none;line-height:1;
  }
  .content .orders-page .order-small-icon1101::-webkit-details-marker,
  .content .orders-page .order-problem-icon1101::-webkit-details-marker {display:none}
  .content .orders-page .order-small-icon1101:hover,
  .content .orders-page .order-problem-icon1101:hover {background:#e9f2ec}
  .content .orders-page .order-small-icon1101:focus-visible,
  .content .orders-page .order-problem-icon1101:focus-visible {
    outline:3px solid #087c64;outline-offset:-2px;
  }
  .content .orders-page .has-active1101>summary {
    color:#805b00;background:#fff2c9;
  }
  .content .orders-page .order-icon-count1101,
  .content .orders-page .order-problem-icon1101 .orders-problem-count {
    position:absolute;right:1px;top:1px;display:grid;place-items:center;
    min-width:16px;height:16px;padding:0 2px;box-sizing:border-box;
    border-radius:8px;background:#dfece3;color:#254f39;font-size:10px;line-height:1;
  }
  .content .orders-page .has-active1101 .order-icon-count1101 {
    background:#805b00;color:#fff;
  }
  .content .orders-page .reminder-details184[open]>summary {margin-left:auto}
  .content .orders-page .reminder-details184 .reminder-content184 {
    margin:2px 0 6px;max-width:100%;box-sizing:border-box;
  }
  .content .orders-page .order-packing-row {
    grid-template-columns:minmax(0,1fr);padding:7px 9px;
  }
  .content .orders-page .order-packing-row .order-compact-main {
    grid-column:1;grid-row:auto;
  }
  .content .orders-page .order-packing-row .orders-work-area {
    grid-column:1;grid-row:auto;display:flex;align-items:flex-start;flex-wrap:wrap;
    gap:2px 3px;min-width:0;
  }
  .content .orders-page .order-packing-row .packing-quick-control {
    display:flex;flex:1 1 0;align-items:center;flex-wrap:wrap;gap:2px 4px;
    min-width:0;max-width:100%;width:auto;padding:0;margin:0;border:0;
  }
  .content .orders-page .order-packing-row .packing-progress-hook1101,
  .content .orders-page .order-packing-row .packing-complete-hook1101 {
    position:absolute;width:1px;height:1px;overflow:hidden;
    clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;
    padding:0;margin:-1px;border:0;
  }
  .content .orders-page .order-packing-row .packing-primary-actions {
    display:contents;position:static;min-height:0;width:auto;
  }
  /* Replace 1.7.9's absolute camera placement when both native panels open. */
  .content .orders-page .order-packing-row .packing-quick-control .packing-primary-actions:has(>.packing-entry[open]) {
    display:contents;position:static;width:auto;min-height:0;
  }
  .content .orders-page .order-packing-row .packing-quick-control .packing-primary-actions:has(>.packing-entry[open])>.packing-inline-photos,
  .content .orders-page .order-packing-row .packing-quick-control .packing-primary-actions:has(>.packing-entry[open])>.packing-camera-button {
    position:static;top:auto;left:auto;flex:0 0 auto;width:44px;min-width:0;max-width:44px;
  }
  .content .orders-page .order-packing-row .packing-quick-control .packing-primary-actions:has(>.packing-entry[open])>.packing-inline-photos[open] {
    position:static;flex:1 1 100%;width:100%;max-width:100%;margin:0;
  }
  .content .orders-page .order-packing-row .packing-quick-control .packing-primary-actions:has(>.packing-entry[open])>.packing-inline-photos[open]>summary {
    position:static;top:auto;left:auto;
  }
  .content .orders-page .order-packing-row .packing-quick-control .packing-primary-actions:has(>.packing-entry[open])>.packing-inline-photos[open]>.packing-inline-photo-body {
    position:static;width:100%;max-width:100%;margin:3px 0 5px;
  }
  .content .orders-page .order-packing-row .packing-primary-actions>.packing-entry,
  .content .orders-page .order-packing-row .packing-primary-actions>.packing-inline-photos,
  .content .orders-page .order-packing-row .packing-primary-actions>.packing-camera-button {
    position:static;left:auto;top:auto;flex:0 0 auto;min-width:0;margin:0;
  }
  .content .orders-page .order-packing-row .packing-primary-actions>.packing-entry[open],
  .content .orders-page .order-packing-row .packing-primary-actions>.packing-inline-photos[open] {
    flex:1 1 100%;width:100%;max-width:100%;
  }
  .content .orders-page .order-packing-row .packing-primary-actions>.packing-entry[open]>summary,
  .content .orders-page .order-packing-row .packing-primary-actions>.packing-entry[open]>summary>.packing-entry-action {
    width:max-content;max-width:100%;
  }
  .content .orders-page .order-packing-row .packing-inline-photos[open]>summary {
    position:static;left:auto;top:auto;
  }
  .content .orders-page .order-packing-row .packing-inline-photo-body {
    position:static;width:100%;max-width:100%;margin:3px 0 5px;box-sizing:border-box;
    box-shadow:none;
  }
  .content .orders-page .order-packing-row .packing-entry-action,
  .content .orders-page .order-packing-row .packing-single-form button[type="submit"] {
    min-height:44px;font-size:14px;padding:7px 9px;
  }
  .content .orders-page .order-packing-row .packing-primary-actions>.packing-entry[open]>.packing-multi-form {
    width:100%;max-width:100%;box-sizing:border-box;margin:3px 0;
  }
  .content .orders-page .order-packing-row .packing-evidence1101 {
    flex:0 0 44px;min-width:0;max-width:100%;
  }
  .content .orders-page .order-packing-row .packing-evidence1101[open] {
    flex:1 1 100%;width:100%;
  }
  .content .orders-page .packing-evidence-body1101 {
    display:flex;align-items:center;flex-wrap:wrap;gap:4px 9px;padding:6px 8px;
    border:1px solid #ccded1;border-radius:7px;background:#f7faf8;min-width:0;
  }
  .content .orders-page .packing-evidence-body1101>.packing-images {
    display:flex;flex-wrap:wrap;gap:5px;margin:0;
  }
  .content .orders-page .packing-evidence-body1101 .packing-images a {
    display:block;width:52px;min-height:44px;font-size:11px;
  }
  .content .orders-page .packing-evidence-body1101 .packing-images img {
    width:52px;height:44px;object-fit:cover;border-radius:5px;
  }
  .content .orders-page .packing-evidence-body1101 .packing-images a>span {display:none}
  .content .orders-page .packing-evidence-body1101>small {flex-basis:100%;font-size:12px}
  .content .orders-page .packing-evidence-body1101 .packing-correction-link,
  .content .orders-page .packing-evidence-body1101 .packing-reports>summary {
    display:inline-flex;align-items:center;min-height:44px;font-size:13px;
  }
  .content .orders-page .order-packing-row .packing-order-control .dispatch-control197 {
    display:flex;flex:1 1 auto;align-items:center;flex-wrap:wrap;gap:2px 4px;
    width:auto;min-width:0;max-width:100%;margin:0;padding:0;border:0;
  }
  .content .orders-page .order-packing-row .dispatch-progress197 {
    flex:0 0 auto;font-size:11px;line-height:1.4;color:#296343;
  }
  .content .orders-page .order-packing-row .dispatch-actions197 {
    display:flex;flex-wrap:wrap;align-items:center;gap:2px;min-width:0;
  }
  .content .orders-page .order-packing-row .dispatch-pick197 {
    flex:0 0 44px;width:44px;height:44px;min-height:44px;min-width:44px;
    padding:10px;box-sizing:border-box;justify-content:center;
  }
  .content .orders-page .order-packing-row .dispatch-button197,
  .content .orders-page .order-packing-row .dispatch-entry197>summary,
  .content .orders-page .order-packing-row .dispatch-record197>button[type="submit"] {
    min-height:44px;font-size:14px;line-height:1.3;padding:7px 7px;
  }
  .content .orders-page .order-packing-row .dispatch-entry197[open] {
    flex:1 1 100%;width:100%;box-sizing:border-box;
  }
  .content .orders-page .order-packing-row .dispatch-actions197:has(.dispatch-entry197[open]) {
    flex-basis:100%;width:100%;
  }
  .content .orders-page .order-packing-row .orders-problem-menu {
    flex:0 0 44px;align-self:flex-start;width:44px;min-width:0;max-width:44px;margin:0;
  }
  .content .orders-page .order-packing-row .orders-problem-menu[open] {
    flex:1 1 100%;width:100%;max-width:100%;padding-top:3px;
  }
  .content .orders-page .order-packing-row .orders-problem-content {
    margin-top:3px;gap:6px;
  }
  .content .orders-page .order-packing-row [data-packing-feedback]:empty,
  .content .orders-page .order-packing-row .form-message:empty {display:none}
  .content .orders-page .order-packing-row [data-packing-feedback],
  .content .orders-page .order-packing-row .packing-disabled,
  .content .orders-page .order-packing-row .packing-legacy {
    flex-basis:100%;margin:2px 0;font-size:13px;max-width:100%;
  }
  .content .orders-page .order-packing-row .packing-quick-control:has(.packing-entry[open]),
  .content .orders-page .order-packing-row .packing-quick-control:has(.packing-evidence1101[open]),
  .content .orders-page .order-packing-row .packing-quick-control:has(.packing-inline-photos[open]),
  .content .orders-page .order-packing-row .packing-quick-control:has(.dispatch-entry197[open]) {
    flex-basis:100%;width:100%;padding-top:0;border:0;
  }
}
@media print {
  .orders-search1101,.orders-search-result1101 {display:none!important}
}

/*31: secondary row controls share one compact rail; native details work on touch and keyboard. */
@media screen {
.content .orders-page .order-compact-row:not(.order-packing-row){grid-template-columns:minmax(0,1fr) auto}
.content .orders-page .order-compact-row:not(.order-packing-row)>.order-compact-main{grid-column:1/-1;grid-row:1}
.content .orders-page .order-compact-row:not(.order-packing-row) .orders-done-form{grid-column:1;grid-row:2;max-width:none}
.content .orders-page .order-compact-row:not(.order-packing-row) .orders-problem-menu{grid-column:2;grid-row:2}
.content .orders-page .order-compact-row:not(.order-packing-row) .orders-problem-menu[open]{grid-column:1/-1;grid-row:auto}
.content .orders-page .order-compact-row>.order-row-actions1131{grid-column:1/-1;grid-row:auto;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:4px 8px;min-width:0}
.content .orders-page .order-row-actions1131>.order-row-details{flex:0 0 auto;width:auto;border:0;padding:0;margin:0}
.content .orders-page .order-row-actions1131>.order-row-details>summary,.content .orders-page .order-row-actions1131>.stock-work-route-link1102{min-height:32px;padding:2px 4px;margin:0;font-size:13px;line-height:1.4;display:inline-flex;align-items:center;width:auto;white-space:nowrap}
.content .orders-page .order-row-actions1131>.order-row-details[open]{order:2;flex:1 0 100%;width:100%}
.content .orders-page .order-row-actions1131>.order-row-details[open]>.order-detail-content{margin-top:4px}
.content .orders-page .order-route-info1131{position:relative;flex:0 0 32px;margin:0}
.content .orders-page .order-route-info1131>summary{display:grid;place-items:center;list-style:none;cursor:pointer;width:32px;height:32px;min-height:32px;padding:0;color:#8b630f;border:1px solid #e0cf9e;border-radius:6px;background:#fff8e8}
.content .orders-page .order-route-info1131>summary::-webkit-details-marker{display:none}
.content .orders-page .order-route-info1131[open]{order:1;flex:1 0 100%}
.content .orders-page .order-route-info1131[open]>summary{margin-left:auto}
.content .orders-page .order-route-tip1131{position:relative;width:100%;margin-top:4px;padding:12px;background:#fffbea;border:1px solid #dfcea0;border-radius:8px;box-shadow:0 5px 18px #233d3420;font-size:13px;color:#624a1d;line-height:1.5;overflow-wrap:anywhere}
.content .orders-page .order-route-tip1131 p{margin:4px 0 0;font-size:13px}
.content .orders-page .order-row-actions1131 summary:focus-visible,.content .orders-page .order-row-actions1131 a:focus-visible{outline:2px solid #176650;outline-offset:2px}
}
@media print{.order-route-info1131{display:none!important}}
@media screen {
.content .orders-page .order-row-footer1131{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:3px 8px;min-width:0}
.content .orders-page .order-row-footer1131>.orders-work-area{display:contents}
.content .orders-page .order-row-footer1131 .orders-done-form{flex:1 1 120px;min-width:0;max-width:none;margin:0}
.content .orders-page .order-row-footer1131 .orders-done-control{min-height:32px}
.content .orders-page .order-row-footer1131 .orders-current-step-label{font-size:14px;padding:4px 7px}
.content .orders-page .order-row-footer1131 .orders-problem-menu{flex:0 0 32px;width:32px;max-width:32px;margin:0}
.content .orders-page .order-row-footer1131 .orders-problem-menu>summary{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:32px;width:32px;height:32px;max-width:32px;padding:0;font-size:13px;border-radius:6px;box-sizing:border-box}
.content .orders-page .order-row-footer1131 .orders-problem-count{position:absolute;top:-3px;right:-3px;min-width:16px;height:16px;font-size:10px}
.content .orders-page .order-row-footer1131 .orders-problem-menu[open]{flex:1 0 100%;width:100%;max-width:100%;order:2}
.content .orders-page .order-row-footer1131>.order-row-actions1131{display:flex;align-items:center;justify-content:flex-end;gap:4px 8px;flex-wrap:wrap;min-width:0;margin-left:auto}
.content .orders-page .order-row-footer1131:has(.order-row-details[open])>.order-row-actions1131,.content .orders-page .order-row-footer1131:has(.order-route-info1131[open])>.order-row-actions1131{flex:1 0 100%}
.content .orders-page .order-route-info1131:not([open])>.order-route-tip1131{display:none}
.content .orders-page .order-compact-row:not(.order-packing-row) .order-row-titlebar1101 .order-reminders184{flex-basis:32px;width:32px}
.content .orders-page .order-compact-row:not(.order-packing-row) .order-row-titlebar1101 .order-small-icon1101{width:32px;height:32px;min-width:32px;min-height:32px;max-width:32px;padding:6px}
.content .orders-page .order-compact-row:not(.order-packing-row) .order-row-titlebar1101:has(.reminder-details184[open]) .order-reminders184{flex-basis:100%;width:100%}
}
