.order-ledger{table-layout:fixed;width:100%;background:#fff;border:1px solid var(--line);font-size:13px}
.order-column-payment{width:224px}.order-column-fulfillment{width:500px}.order-column-tools{width:248px}
.order-ledger thead th{padding:10px 16px;background:#e9eaed;font-size:12px;line-height:16px;font-weight:600}
.order-ledger-row{height:100px}
.order-list-help{font-size:12px;margin:0 0 18px;line-height:1.6}
@media(min-width:1280px){.order-ledger-row.has-wrapped-tracking{height:116px}}
.order-ledger-row>th,.order-ledger-row>td{padding:8px 16px;vertical-align:middle;min-width:0;border-top:2px solid #9b9ba5;border-bottom:2px solid #9b9ba5;text-align:left;background:#fff}
.order-ledger-row>:not(:first-child){border-left:1px solid #ededf0}
.order-ledger-row.is-open>th,.order-ledger-row.is-open>td{background:#fff9fd}
.order-ledger-row.is-open>th{box-shadow:inset 4px 0 var(--accent)}
.order-ledger .order-metadata{white-space:normal;font-weight:400;color:#16161d}
.order-metadata-top,.order-metadata-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.order-metadata-bottom{margin-top:14px}
.order-metadata h2{font-size:18px;line-height:22px;font-weight:600;letter-spacing:0;margin:0;overflow-wrap:anywhere}
.order-metadata .badge{font-size:11px;line-height:14px;padding:4px 7px;white-space:normal;overflow-wrap:anywhere}
.order-metadata-bottom time{font-size:11px;line-height:16px;color:var(--muted);white-space:nowrap}
.order-total{display:block;font-size:18px;line-height:23px;margin:0;color:#73737d;overflow-wrap:anywhere}
.order-waiting,.order-warning{background:#fff0d4;color:#754c00;border-radius:2px;font-size:11px;font-weight:600;line-height:16px}
.order-waiting{padding:3px 7px;white-space:nowrap}
.order-items-cell ul{list-style:none;margin:0;padding:0;display:grid;gap:5px}
.order-items-cell li{font-size:13px;line-height:18px;overflow-wrap:anywhere}
.order-item-note{font-size:11px;line-height:14px;color:var(--muted);margin:8px 0 0;overflow-wrap:anywhere}
.order-carrier-override-note{margin:8px 0 0;font-size:11px;line-height:14px;color:#754c00;text-align:center}
.order-refresh-message{font-size:13px;line-height:1.5;margin:12px 0}
.order-refresh-message button{font-size:12px;margin-left:10px;min-height:36px}
.order-fulfillment-layout{display:grid;grid-template-columns:188px minmax(0,1fr);align-items:center;gap:16px;min-width:0}
.order-ledger .fulfillment-tracker{grid-template-columns:repeat(4,minmax(0,1fr));margin:0;padding:0;gap:0}
.order-ledger .fulfillment-step{display:flex;flex-direction:column;align-items:center;min-width:0;line-height:1.2}
.order-ledger .fulfillment-step::after{top:8.5px;height:3px;background:#d1d1d5;z-index:0}
.order-ledger .fulfillment-step.complete:not(:last-child)::after{background:#d1d1d5}
.order-ledger .fulfillment-step.is-connected:not(:last-child)::after{background:var(--accent)}
.order-marker-slot{display:flex;align-items:center;justify-content:center;height:20px;position:relative;z-index:1}
.order-ledger .fulfillment-marker{width:14px;height:14px;background:#fff}
.order-ledger .fulfillment-step.complete .fulfillment-marker{background:var(--accent);border-color:var(--accent)}
.order-ledger .fulfillment-step strong{font-size:12px;line-height:14px;margin-top:8px;font-weight:600}
.order-ledger .fulfillment-step time,.order-step-date,.order-packaging-note{font-size:11px;line-height:14px;margin-top:3px;white-space:nowrap;color:var(--muted)}
.order-packaged-control{display:flex;flex-direction:column;align-items:center;cursor:pointer;margin:0;position:relative;z-index:1;min-height:42px}
.order-packaged-checkbox{appearance:none;-webkit-appearance:none;box-sizing:border-box;margin:0;padding:0;width:20px;height:20px;min-height:20px;border:1px solid #b8b8bf;background:#fff;border-radius:2px;position:relative;cursor:pointer}
.order-packaged-checkbox:checked{background:var(--accent);border-color:var(--accent)}
.order-packaged-checkbox:checked::after{content:"";position:absolute;width:14px;height:9px;border-left:3px solid #fff;border-bottom:3px solid #fff;transform:translate(-50%,-50%) rotate(-45deg);top:45%;left:50%}
.order-packaged-checkbox:disabled{opacity:1;cursor:default}
.order-tracking{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;align-items:stretch;width:100%;min-width:0;min-height:28px;font-size:12px}
.order-tracking-carrier,.order-tracking-number,.order-ledger .order-print-label{border:1px solid var(--line);border-radius:2px;background:#f7f7f9;min-width:0;min-height:28px}
.order-tracking-carrier{display:flex;align-items:center;justify-content:center;text-align:center;font-weight:600;padding:4px;overflow-wrap:anywhere}
.order-tracking-number{grid-column:1/-1;display:flex;flex-direction:column;justify-content:center;text-align:center;padding:5px 8px;font:12px/16px monospace;overflow-wrap:anywhere;word-break:break-all}
a.order-tracking-number:hover{text-decoration:underline;text-underline-offset:3px}
.order-tracking-line{display:block;min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-all}
.order-tracking-waiting{font:12px/16px Arial,Helvetica,sans-serif;color:var(--muted);word-break:normal}
.order-ledger .order-print-label{margin:0;padding:4px;font-size:12px;line-height:16px;font-weight:600;background:#fff;align-self:stretch}
.order-ledger .order-print-label:disabled{background:#f4f4f6;opacity:1;color:#95959e}
.order-tools{display:flex;flex-direction:column;align-items:stretch;gap:8px;width:216px;max-width:100%}
.order-tool-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0}
.order-ledger .order-tools .button,.order-ledger .order-tools button{width:100%;max-width:100%;min-height:36px;padding:7px 9px;font-size:12px;line-height:18px;text-align:center;margin:0}
.order-ledger .order-tools .order-stripe-link{display:flex;align-items:center;justify-content:center;gap:7px}
.order-stripe-link img{display:block;width:20px;height:20px;flex-shrink:0}
.order-stripe-link:disabled img{opacity:.5}
.order-warning{display:flex;align-items:center;justify-content:center;gap:6px;padding:4px 8px;min-height:24px;overflow-wrap:anywhere;text-align:center}
.order-warning-count{white-space:nowrap}
.order-expanded-warnings{padding:12px 20px;background:#fff0d4;color:#754c00;font-size:13px;line-height:1.5}
.order-expanded-warnings p{margin:6px 0}
.order-full-date{font-size:12px;color:var(--muted)}
.order-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:20px 0}
.order-summary-filters,.order-filter-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.order-summary-filter{font-size:12px;padding:8px 12px;min-height:36px}
.order-summary-filter[aria-pressed=true]{border-color:var(--accent);background:#fff3fb}
.order-filter-controls{margin-left:auto;gap:20px}
.order-filter{display:flex;align-items:center;gap:12px;font-size:12px;font-weight:600}
.order-filter select{width:240px;max-width:100%;min-height:36px;font-size:13px;padding:8px 12px;background:#fff}
.order-filter:last-child select{width:190px}
.order-details-toggle[aria-expanded=true]{background:#fff3fb;border-color:var(--accent)}
.order-detail-row[hidden]{display:none!important}
.order-detail-row>td{padding:0;text-align:left;border-top:0;background:#fff;overflow-wrap:anywhere}
.order-expanded-details{border-left:4px solid var(--accent);min-width:0}
.order-details-heading{display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding:14px 20px;background:#fff3fb;border-bottom:1px solid #f0d6e7}
.order-details-heading h3{font-size:18px;line-height:24px;margin:0}
.order-details-heading>.muted{font-size:12px}.order-details-heading>button{margin-left:auto}
.order-detail-loading{margin:16px 20px;font-size:13px}
.order-detail-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,2.1fr);gap:24px;padding:24px 20px}
.order-detail-grid>*,.order-shipping-details>section{min-width:0}
.order-detail-grid h3{font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin:0 0 16px}
.order-detail-grid h4{font-size:13px;font-weight:600;margin:20px 0 8px}
.order-detail-grid p{font-size:13px;line-height:1.6;margin:6px 0;overflow-wrap:anywhere}
.order-delivery-section address{font-size:13px;line-height:1.65;font-style:normal}
.order-delivery-section address span{display:block}
.order-shipping-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 24px;min-width:0}
.order-shipping-details>.notice{grid-column:1/-1;padding:12px;font-size:12px;margin:0}
.order-shipping-details>section{border-left:1px solid #ededf0;padding-left:20px}
.order-detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.order-detail-grid button,.order-detail-grid .button,.order-manual-correction button,.order-details-heading button{font-size:12px;line-height:18px;padding:8px 12px;min-height:34px;max-width:100%;white-space:normal}
.order-detail-tracking{font-family:monospace;word-break:break-all}
.order-shipping-totals{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;margin:18px 0;font-size:13px}
.order-shipping-totals dt{color:var(--muted)}.order-shipping-totals dd{margin:0;text-align:right}
.order-parcel-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}
.order-parcel-form>h4,.order-parcel-form>button{grid-column:1/-1;margin:0}
.order-parcel-form .field{min-width:0;font-size:12px;gap:5px}
.order-parcel-form input{width:100%;min-width:0;font-size:13px;padding:8px}
.order-receipt-section>.button,.order-receipt-section>button{width:100%;margin-bottom:10px}
.order-receipt-section .email-preview{margin:4px 0 14px;font-size:12px;line-height:1.6;padding:12px}
.order-jobs{list-style:none;padding:0;margin:16px 0;display:grid;gap:12px}
.order-jobs li{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px}
.order-jobs .badge{font-size:10px;padding:3px 7px;text-transform:uppercase}
.order-jobs small{flex-basis:100%}
.order-manual-correction{margin:0 20px 24px;padding:16px;background:#f7f7f9;border-top:1px solid var(--line)}
.order-manual-correction summary{cursor:pointer;font-size:14px;font-weight:600}
.order-manual-correction p{font-size:12px;margin:14px 0;line-height:1.6}
.order-correction-fields{display:grid;grid-template-columns:minmax(0,250px) minmax(0,248px);gap:12px}
.order-correction-fields select{width:100%;min-width:0;font-size:13px}
.order-correction-fields .check-field{grid-column:1/-1;font-size:12px}
@media(max-width:1279px){
  .order-ledger,.order-ledger tbody{display:block;width:100%}
  .order-ledger colgroup{display:none}
  .order-ledger thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .order-ledger-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));height:auto;border-top:2px solid #9b9ba5}
  .order-ledger-row>th,.order-ledger-row>td{display:block;padding:16px;text-align:left;border-top:0;border-bottom:0}
  .order-ledger-row>:not(:first-child){border-left:0}
  .order-ledger-row>[data-label]::before{content:attr(data-label);display:block;font-size:11px;font-weight:600;color:var(--muted);margin-bottom:14px}
  .order-ledger-row .order-fulfillment-cell,.order-ledger-row .order-tools-cell{grid-column:1/-1}
  .order-ledger-row .order-items-cell{border-left:1px solid #ededf0}
  .order-ledger .order-tools button,.order-ledger .order-tools .button,.order-ledger .order-print-label{min-height:44px}
  .order-packaged-control{min-height:44px}
  .order-toolbar button,.order-filter select{min-height:44px}
  .order-detail-row{display:block}.order-detail-row>td{display:block;width:100%}
  .order-detail-grid{grid-template-columns:1fr}
  .order-shipping-details>section{border-left:0;padding-left:0}
  .order-detail-grid button,.order-detail-grid .button,.order-manual-correction button,.order-details-heading button{min-height:44px}
}
@media(max-width:760px){
  .order-ledger-row{grid-template-columns:minmax(0,1fr)}
  .order-ledger-row>th,.order-ledger-row>td{padding:14px 12px}
  .order-ledger-row .order-fulfillment-cell,.order-ledger-row .order-items-cell{border-left:0;border-right:0}
  .order-fulfillment-layout{grid-template-columns:minmax(0,1fr);gap:20px}
  .order-tracking{width:188px;max-width:100%;justify-self:center}
  .order-ledger .order-print-label{font-size:11px;padding:4px}
  .order-tracking-number{padding-left:6px;padding-right:6px}
  .order-tools{width:100%}
  .order-filter-controls{width:100%;margin-left:0;gap:12px}
  .order-filter{width:100%;display:grid;grid-template-columns:40px minmax(0,1fr)}
  .order-filter select,.order-filter:last-child select{width:100%;min-width:0}
  .order-summary-filters{width:100%}
  .order-summary-filter{flex:1;min-width:0}
  .order-ledger .order-tools .button,.order-ledger .order-tools button{width:100%;height:auto;min-height:44px}
  .order-details-heading{gap:10px;padding:14px 12px}
  .order-details-heading h3{font-size:16px;flex-basis:100%}
  .order-details-heading button{margin-left:auto}
  .order-detail-grid{padding:20px 12px}
  .order-shipping-details{grid-template-columns:minmax(0,1fr)}
  .order-shipping-details>.notice{grid-column:auto}
  .order-manual-correction{margin-left:12px;margin-right:12px;padding:12px}
  .order-correction-fields{grid-template-columns:minmax(0,1fr)}
  .order-correction-fields .check-field{grid-column:auto}
}
