/* Styling only for the additional local TEST-order controls. */
.mischel-test-save {padding:16px;border:1px solid #c1aa84;background:#fbf7ef;margin:18px 0;display:grid;gap:13px}
.mischel-test-save[hidden]{display:none!important}
.mischel-test-save label {display:flex;align-items:flex-start;gap:9px;font-size:14px}
.mischel-test-save input[type=checkbox] {width:auto;margin-top:4px;flex-shrink:0}
.mischel-test-save .button {justify-self:start}
.mischel-test-tools {display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:20px 0}
.mischel-test-tools label {display:grid;gap:4px;min-width:220px}
.mischel-test-order {border:1px solid #ded3c4;background:#fbf9f6;margin:12px 0;padding:14px}
.mischel-test-order summary {cursor:pointer;font-size:15px;font-weight:600;line-height:1.6}
.mischel-test-order-body {margin-top:16px;border-top:1px solid #ddd0bd;padding-top:16px}
.mischel-test-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}
.mischel-test-field {display:flex;flex-direction:column;white-space:pre-line;overflow-wrap:anywhere;gap:4px;font-size:14px;margin:10px 0}
.mischel-test-field strong {font-size:13px}
.mischel-test-items {margin-bottom:12px}
.mischel-test-controls {margin-top:22px;display:flex;align-items:end;flex-wrap:wrap;gap:12px}
.mischel-test-controls label {display:grid;gap:4px}
@media(max-width:650px){.mischel-test-save .button{width:100%}.mischel-test-tools label{min-width:0;width:100%}}

.mischel-test-controls .secondary,.mischel-test-tools .secondary{display:inline-flex;align-items:center;justify-content:center;min-height:40px;border:1px solid #bbae9c;padding:9px 13px;font-size:12px;background:transparent;cursor:pointer}
.mischel-test-controls .secondary:hover,.mischel-test-tools .secondary:hover{background:var(--paper)}

/* Stable V1 candidate: compact, readable two-line administrative orders. */
#test-orders-admin .mischel-test-order > summary.mischel-order-summary {
 display:flex;flex-direction:column;gap:7px;list-style:none;padding:3px 0;
}
#test-orders-admin .mischel-test-order > summary.mischel-order-summary::-webkit-details-marker {display:none}
#test-orders-admin .mischel-test-order > summary.mischel-order-summary::before {content:'▸';position:absolute;transform:translateX(-11px);font-size:15px}
#test-orders-admin .mischel-test-order[open] > summary.mischel-order-summary::before {content:'▾'}
#test-orders-admin .mischel-order-summary-top {display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
#test-orders-admin .mischel-order-ref {font-size:15px;font-weight:700}
#test-orders-admin .mischel-order-summary-meta {display:flex;align-items:center;flex-wrap:wrap;gap:12px;color:#6a5a49;font-size:13px;font-weight:400}
#test-orders-admin .mischel-order-summary-meta strong {color:#352b20;font-size:14px}
#test-orders-admin .mischel-order-state {display:inline-block;padding:5px 11px;font:600 12px Arial,sans-serif;border-radius:18px;background:#ede6d8;border:1px solid #d6c1a5}
#test-orders-admin .mischel-order-state.state-new {background:#f1e1c4;border-color:#cfad70}
#test-orders-admin .mischel-order-state.state-processing {background:#e5f1fa;border-color:#b7d0e1}
#test-orders-admin .mischel-order-state.state-ready {background:#e9eaf8;border-color:#c5c9e9}
#test-orders-admin .mischel-order-state.state-shipped {background:#fff0d9;border-color:#e1bd8e}
#test-orders-admin .mischel-order-state.state-delivered,#test-orders-admin .mischel-order-state.state-collected {background:#e7f2e6;border-color:#b7cfb2}
#test-orders-admin .mischel-order-state.state-cancelled,#test-orders-admin .mischel-order-state.state-returned {background:#f2e6e2;border-color:#dec1bc}
#test-orders-admin .mischel-shipment-editor {margin-top:23px;padding:17px;border:1px solid #d8c5ac;background:#fffbf5;border-radius:8px}
#test-orders-admin .mischel-shipment-editor h4 {margin:0 0 13px;font-family:Georgia,serif;font-size:22px;font-weight:400}
#test-orders-admin .mischel-shipping-form {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;align-items:end}
#test-orders-admin .mischel-shipping-form label {display:flex;flex-direction:column;gap:7px;font-size:12px;min-width:0}
#test-orders-admin .mischel-shipping-form :is(input,select) {box-sizing:border-box;width:100%;min-height:43px;padding:8px;border:1px solid #d6c5ac;background:#fff;color:#342d24}
#test-orders-admin .mischel-shipping-form button {justify-self:start;min-height:43px}
#test-orders-admin .mischel-shipment-status {grid-column:1/-1;margin:0}
@media(max-width:750px){#test-orders-admin .mischel-shipping-form {grid-template-columns:1fr}}

/* Compact order: the WHOLE header strip reflects saved status. */
#test-orders-admin .mischel-test-order>summary.mischel-order-summary{
  border:1px solid #dbc9af;border-radius:7px;
  padding:12px 18px 12px 24px!important;
  margin:0 0 5px;background:#f9f4eb;
}
#test-orders-admin summary.mischel-order-summary[data-order-status="new"]{background:#f6ebd6;border-color:#d9bc8d}
#test-orders-admin summary.mischel-order-summary[data-order-status="processing"]{background:#ebf3fa;border-color:#bdcedf}
#test-orders-admin summary.mischel-order-summary[data-order-status="ready"]{background:#f0eef9;border-color:#cec6e3}
#test-orders-admin summary.mischel-order-summary[data-order-status="shipped"]{background:#fff0dc;border-color:#e0c29b}
#test-orders-admin summary.mischel-order-summary[data-order-status="delivered"],
#test-orders-admin summary.mischel-order-summary[data-order-status="collected"]{background:#eaf4e7;border-color:#bfd5b9}
#test-orders-admin summary.mischel-order-summary[data-order-status="returned"],
#test-orders-admin summary.mischel-order-summary[data-order-status="cancelled"]{background:#f7eae5;border-color:#dcbdb6}
#test-orders-admin summary.mischel-order-summary::before{transform:translateX(-15px)!important}
#test-orders-admin .mischel-order-status-feedback{width:100%;margin:5px 0 0;color:#8d4132}
