.spare-parts-screen [hidden] { display: none !important; }
body.shop-active { overflow-x: visible; overflow-y: visible; }
@supports (overflow: clip) { body.shop-active { overflow-x: clip; } }
@media (min-width: 560px) {
  .home-panel .module-grid.has-spare-parts { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.shop-form button svg { width: 18px; height: 18px; flex: 0 0 18px; }
.app-shell[data-route=shop] { width: 100%; max-width: none; }
.spare-parts-screen { background: #fff; color: #142a37; width: min(1160px,100%); min-width: 0; }
.shop-header { display: grid; grid-template-columns: 110px 1fr 44px; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid #d6e2e8; }
.shop-header h1 { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 22px; line-height: 1.3; margin: 0; }
.shop-header img { width: 32px; height: 32px; object-fit: contain; }
.shop-header .shop-back { display: inline-flex; align-items: center; gap: 6px; justify-content: center; width: auto; }
.shop-header .shop-back svg { width: 16px; height: 16px; }
.shop-content { padding: 0 24px 24px; }
.shop-tabs { display: flex; gap: 20px; margin-bottom: 22px; border-bottom: 1px solid #d6e2e8; }
.shop-tabs button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: #526574; background: transparent; padding: 16px 2px 12px; min-height: 48px; font: 600 14px/1.3 "Segoe UI",Arial,sans-serif; cursor: pointer; }
.shop-tabs button[aria-selected=true] { border-bottom-color: #0083b2; color: #006d96; }
.shop-filters { display: grid; grid-template-columns: minmax(140px,1.4fr) minmax(150px,1fr) minmax(120px,.7fr) auto; gap: 12px; align-items: end; margin-bottom: 26px; }
.shop-filters label,.shop-form label { display: flex; flex-direction: column; gap: 7px; color: #284251; font: 600 13px/1.4 "Segoe UI",Arial,sans-serif; min-width: 0; }
.spare-parts-screen :is(input:not([type=checkbox]),select,textarea) { box-sizing: border-box; width: 100%; min-width: 0; border: 1px solid #b9cad6; border-radius: 5px; background: #fff; color: #182c39; padding: 10px 12px; font: 400 15px/1.5 "Segoe UI",Arial,sans-serif; min-height: 44px; }
.spare-parts-screen :is(input,select,textarea,button):focus-visible { outline: 2px solid #008bbd; outline-offset: 2px; }
.spare-parts-screen textarea { resize: vertical; min-height: 100px; }
.shop-count { white-space: nowrap; font-size: 12px; color: #627787; padding-bottom: 12px; }
.shop-group { margin: 0 0 28px; }
.shop-group h2,.shop-request-section h2,#shop-sourcing h2 { font-size: 18px; line-height: 1.4; font-weight: 600; margin: 0 0 12px; }
.shop-table { border-collapse: collapse; table-layout: fixed; width: 100%; text-align: left; font: 400 14px/1.4 "Segoe UI",Arial,sans-serif; }
.shop-table th { font-size: 11px; color: #526b7a; background: #f0f5f7; font-weight: 600; padding: 11px 10px; border-bottom: 1px solid #d6e2e8; }
.shop-table th:first-child { width: 42%; }
.shop-table th:nth-child(2) { width: 8%; }
.shop-table th:nth-child(3),.shop-table th:last-child { width: 17%; }
.shop-table th:nth-child(4) { width: 100px; }
.shop-table td { padding: 11px 10px; border-bottom: 1px solid #e2e9ed; vertical-align: middle; overflow-wrap: anywhere; }
.shop-table tbody tr:has(input[type=checkbox]:checked) { background: #eef8fb; }
.shop-product-select { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.shop-product-select input { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: #007eac; }
.shop-product-select span { min-width: 0; }
.shop-product-select strong { display: block; font-weight: 600; }
.shop-product-select small { display: block; color: #637a89; margin-top: 3px; font: 12px/1.4 Consolas,monospace; }
.spare-parts-screen .shop-quantity-cell input { width: 84px; padding: 8px; font-size: 14px; }
.spare-parts-screen input:disabled { background: #f4f6f8; color: #8494a0; }
.shop-summary { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 16px 0; margin-bottom: 24px; border-top: 2px solid #8fbcca; border-bottom: 1px solid #d6e2e8; background: #fff; }
.shop-summary>div { flex: 1; display: flex; flex-wrap: wrap; gap: 5px 20px; align-items: center; min-width: 0; }
.shop-summary strong { font-size: 13px; }
.shop-summary small { flex-basis: 100%; color: #8b5b11; }
.shop-summary .action { width: auto; min-width: 150px; }
.shop-request-section { border-top: 1px solid #d6e2e8; margin-top: 28px; padding-top: 24px; scroll-margin-top: 100px; }
.shop-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; max-width: 740px; }
.shop-wide { grid-column: 1 / -1; }
.shop-form .action { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.shop-form-status { margin: 0; color: #006e89; overflow-wrap: anywhere; white-space: pre-wrap; }
.shop-terms { color: #617685; font-size: 12px; max-width: 740px; line-height: 1.5; }
.shop-footer { border-top: 1px solid #d6e2e8; padding: 18px; font-size: 11px; color: #637a89; text-align: center; }
.admin-ui .shop-admin-check { display: flex; align-items: center; gap: 10px; flex-direction: row; }
.admin-ui .shop-admin-check input { width: 18px; min-height: 18px; height: 18px; flex: 0 0 18px; }
.shop-admin-message { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 100%; }
.shop-admin-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 15px; }
.admin-ui [data-admin-view=shop] .summary { margin-bottom: 20px; }
.admin-ui [data-admin-view=shop] .panel>.table-wrap { max-height: min(560px,62vh); overflow: auto; overscroll-behavior: contain; }
.admin-ui [data-admin-view=shop] .table-wrap thead th { position: sticky; top: 0; z-index: 1; }
.shop-mail-state { display: inline-block; padding: 3px 7px; font-size: 12px; border-radius: 4px; background: #edf2f4; color: #365361; }
.shop-mail-state.is-sent { background: #e1f3ed; color: #20674f; }
.shop-mail-state.is-failed { background: #fbe6e7; color: #9c283b; }
.shop-tabs { overflow-x: auto; }
.shop-tabs button { flex: 0 0 auto; white-space: nowrap; }
.shop-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.shop-lead-time { display: block; margin-top: 4px; color: #627787; font-size: 11px; }
.shop-product-photos { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0 30px; }
.shop-product-photos button { width: 44px; height: 44px; padding: 2px; border: 1px solid #d6e2e8; border-radius: 4px; background: #fff; cursor: pointer; }
.shop-product-photos img { width: 100%; height: 100%; object-fit: contain; }
.shop-photo-dialog { position: fixed; max-width: calc(100% - 24px); max-height: 90vh; padding: 52px 16px 16px; border: 1px solid #d6e2e8; border-radius: 6px; background: #fff; }
.shop-photo-dialog::backdrop { background: #00151fc4; }
.shop-photo-dialog>button { position: absolute; right: 8px; top: 6px; }
.shop-photo-dialog>img { display: block; max-width: min(860px,80vw); max-height: 70vh; object-fit: contain; }
.shop-order-state { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 12px; line-height: 18px; background: #eaf4f9; color: #126086; white-space: normal; }
.shop-order-state.is-quoted { background: #fff3d9; color: #805b12; }
.shop-order-state.is-confirmed,.shop-order-state.is-shipped,.shop-order-state.is-closed { background: #e1f3ed; color: #20674f; }
.shop-order-state.is-cancelled { background: #fbe6e7; color: #9c283b; }
.shop-order-state.is-cancellation_requested { background: #fff3d9; color: #805b12; }
.shop-withdraw-form { display: grid; gap: 14px; max-width: 620px; margin-top: 14px; }
.shop-withdraw-form label { display: grid; gap: 8px; font-size: 13px; }
.shop-withdraw-form>div { display: flex; gap: 10px; flex-wrap: wrap; }
.shop-withdraw-form .action { width: auto; }
.shop-withdraw-form[hidden],[data-shop-withdraw][hidden] { display: none !important; }
.shop-withdrawal-notice { margin: 20px 0; padding: 14px 0 14px 14px; border-left: 3px solid #e4ad44; }
.shop-admin-cancellation { margin: 18px 0; padding: 14px 0; border-block: 1px solid #ffffff26; }
.admin-ui .shop-admin-cancellation>summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid #ef93a3; border-radius: 6px; color: #ffd6de; cursor: pointer; list-style: none; }
.shop-admin-cancellation>summary::-webkit-details-marker { display: none; }
.shop-admin-cancellation>summary svg { width: 18px; height: 18px; flex: none; }
.shop-admin-cancellation>summary:focus-visible { outline: 2px solid #8fd6f4; outline-offset: 3px; }
.shop-admin-cancellation-confirm { padding-top: 12px; max-width: 680px; }
.shop-admin-cancellation-confirm p { line-height: 1.6; margin: 0 0 12px; }
.shop-admin-cancellation-form { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-ui .shop-admin-cancellation-form button { min-height: 44px; width: auto; white-space: normal; }
.shop-cancel-warning { color: #ffcf86; }
.shop-confirmation-editor { width: 100%; min-width: 0; padding-top: 16px; }
.shop-confirmation-editor-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.shop-confirmation-editor-heading h2 { margin: 0 auto 0 0; font-size: 20px; }
.shop-confirmation-editor-heading a { white-space: normal; }
.shop-confirmation-editor iframe { display: block; width: 100%; height: calc(100dvh - 220px); min-height: 780px; border: 1px solid #ffffff26; background: #e9edf1; }
.shop-document-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; padding: 16px 0; border-block: 1px solid #ffffff26; }
.shop-document-options label,.shop-manual-line label { min-width: 0; display: grid; gap: 7px; }
.shop-document-options input,.shop-document-options select,.shop-manual-line input { width: 100%; min-width: 0; }
.shop-document-options[hidden] { display: none !important; }
.shop-manual-editor label[hidden],.shop-document-editor label[hidden] { display: none !important; }
.shop-manual-editor [hidden],.shop-document-editor [hidden],[data-customer-card-editor] [hidden] { display: none !important; }
.shop-manual-lines { min-width: 0; }
.shop-manual-line { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1.2fr) 90px 130px 44px; align-items: end; gap: 12px; padding: 16px 0; border-bottom: 1px solid #ffffff26; }
.shop-manual-line>button { width: 44px; height: 44px; }
.shop-invoice-row,.shop-proforma-row { border-bottom: 1px solid #ffffff26; padding: 16px 0; }
.shop-invoice-row>header,.shop-proforma-row>header { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.shop-invoice-row>header>button,.shop-proforma-row>header>button { margin-left: auto; }
.shop-invoice-row details { margin-top: 16px; }
.shop-revision-row { padding: 14px 0; border-bottom: 1px solid #ffffff26; }
.shop-revision-row>header { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.shop-revision-row>header>button { margin-left: auto; }
.shop-document-editor { scroll-margin-top: 16px; }
.shop-next-document { padding: 16px 0; border-block: 1px solid #ffffff26; }
.shop-next-document h2 { font-size: 17px; margin: 0 0 12px; }
.admin-workspace .shop-admin-order .shop-order-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px 24px; padding:16px 0; margin:0; border-bottom:1px solid #ffffff26; }
.admin-workspace .shop-order-facts>div { min-width:0; }
.admin-workspace .shop-order-facts dt { color:#b5d1df; font-size:12px; margin-bottom:5px; }
.admin-workspace .shop-order-facts dd { margin:0; overflow-wrap:anywhere; font-size:14px; }
.admin-workspace .admin-content .shop-workflow-nav { display:flex; flex-wrap:nowrap; overflow-x:auto; gap:0; scrollbar-width:thin; }
.admin-workspace .admin-content .shop-workflow-nav>a { flex:0 0 auto; min-width:0; white-space:nowrap; padding:14px 18px; }
@media(max-width:900px) { .admin-workspace .shop-admin-order .shop-order-facts { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:500px) { .admin-workspace .shop-admin-order .shop-order-facts { grid-template-columns:minmax(0,1fr); } }
.shop-original-request { padding:12px 0; }
.shop-original-request>summary { cursor:pointer; color:#b5d1df; }
.shop-admin-order textarea[name=delivery_note],.shop-admin-order textarea[name=internal_note] { min-height:88px; }
.shop-convert-form { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; }
.shop-convert-form>label:first-of-type { min-width: 220px; }
.shop-convert-form>button { width: auto; }
.shop-next-document [hidden],[data-order-panel][hidden],[data-shipping-fields][hidden] { display: none !important; }
.shop-detail-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 18px 0; border-bottom: 1px solid #ffffff26; }
.shop-detail-tabs>button { width: auto; background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; box-shadow: none; color: #b5d1df; padding: 12px 16px; }
.shop-detail-tabs>button[aria-selected=true] { color: #7edbff; border-bottom-color: #00a9d9; background: #0b405c60; }
.shop-workspace-heading { display:flex; align-items:center; gap:18px; border-bottom:1px solid #ffffff26; margin-bottom:16px; min-width:0; }
.shop-workspace-heading>.shop-workflow-nav { flex:1; border:0; margin:0; }
.shop-workspace-heading .shop-new-document { flex:none; display:inline-flex; gap:8px; align-items:center; }
.shop-context-nav { display:flex; gap:24px; border-bottom:1px solid #ffffff26; padding-bottom:12px; margin-bottom:20px; }
.shop-context-nav [aria-current=page] { color:#7edbff; }
.shop-order-tools { margin:0 0 20px; position:relative; width:fit-content; }
.shop-order-tools>summary { display:flex; align-items:center; gap:8px; cursor:pointer; padding:8px 0; font-size:13px; color:#b5d1df; }
.shop-order-tools>summary svg { width:18px; height:18px; }
.shop-order-tools>nav { display:flex; gap:18px; flex-wrap:wrap; padding:12px 0; border-top:1px solid #ffffff26; }
.shop-order-tools>nav a { font-size:13px; }
.shop-manual-section { border-top:1px solid #ffffff26; padding:20px 0; margin:0; min-width:0; }
.shop-manual-section>h3,.shop-manual-section>summary { margin:0 0 16px; font-size:16px; font-weight:600; }
.shop-manual-section>summary { cursor:pointer; margin:0; padding:0; min-height:24px; }
.shop-manual-section[open]>summary { margin-bottom:16px; }
.shop-manual-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; min-width:0; }
.shop-manual-fields>.shop-manual-section { grid-column:1/-1; border-top:0; padding:0; }
.shop-manual-fields>fieldset,.shop-manual-fields>[data-invoice-fields],.shop-manual-fields>[data-manual-lines],.shop-manual-fields>output,.shop-manual-fields>p { grid-column:1/-1; }
.shop-manual-fields [data-manual-add] { justify-self:start; width:auto; }
.shop-manual-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; align-items:center; gap:10px; grid-column:1/-1; }
.shop-manual-actions>button { width:auto; min-width:130px; display:inline-flex; justify-content:center; gap:8px; align-items:center; }
.shop-manual-actions svg,.shop-manual-fields>[data-manual-add] svg { width:17px; height:17px; }
.shop-manual-review [data-manual-total] { font-size:18px; font-weight:600; }
.shop-manual-review .shop-admin-check { grid-column:1/-1; }
.shop-manual-section [role=status]:empty { display:none; }
@media(min-width:1100px) { .shop-manual-review>.shop-manual-fields { grid-template-columns:1fr 1fr; gap:10px; }.shop-manual-review [data-manual-total] { grid-column:1; }.shop-manual-review .shop-admin-check { grid-column:2; }.shop-manual-review .shop-manual-actions { grid-column:1/-1; } }
@media(max-width:800px) { .shop-workspace-heading { flex-wrap:wrap; gap:8px; padding-bottom:12px; }.shop-workspace-heading>.shop-workflow-nav { flex-basis:100%; }.shop-workspace-heading .shop-new-document { margin-left:auto; }.shop-manual-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }.shop-manual-actions>button { flex:1; } }
@media(max-width:500px) { .shop-manual-fields { grid-template-columns:minmax(0,1fr); }.shop-manual-actions { display:grid; grid-template-columns:1fr 1fr; }.shop-manual-actions>[type=submit] { grid-column:1/-1; }.shop-manual-actions>button { min-width:0; width:100%; } }
.shop-shipment-lines { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.shop-shipment-form { margin-top: 16px; }
.shop-fulfilment>details { margin: 16px 0; }
.shop-return-record { padding: 16px 0; border-bottom: 1px solid #ffffff26; }
.shop-return-record>header,.shop-return-photos,.shop-packing-download { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.shop-return-record>form { margin-top: 14px; }
.shop-fulfilment-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 13px; }
.shop-fulfilment-table th,.shop-fulfilment-table td { padding: 12px 8px; border-bottom: 1px solid #d6e2e8; text-align: left; }
.shop-fulfilment-table small { display: block; margin-top: 4px; }
.shop-delivery-records>details { padding: 16px 0; }
.shop-delivery-records .shop-return-form { margin-top: 14px; }
.shop-packing-download { padding: 12px 0; }
.shop-packing-download>button { margin-left: auto; }
.shop-shipping-fields>[data-shipping-fields] { margin-top: 12px; }
@media(max-width:600px) { .shop-convert-form>label:first-of-type,.shop-convert-form>button { width: 100%; min-width: 0; }.shop-detail-tabs>button { padding: 10px; font-size: 13px; }.shop-shipment-lines { grid-template-columns: minmax(0,1fr); }.shop-packing-download>button { margin-left: 0; } }
.shop-document-version { color: #c7dbe7; margin: 0; font-size: 13px; }
.shop-billing-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.shop-billing-fields>legend { font-size: 14px; margin-bottom: 8px; }
.shop-billing-fields>.shop-document-mode { margin-bottom: 12px; }
.shop-billing-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.shop-billing-grid[hidden],.shop-billing-fields>[hidden],.shop-document-options>[hidden] { display: none !important; }
.shop-billing-grid label { min-width: 0; }
.shop-company-missing { color: #ffd5a7; }
@media(max-width:480px) { .shop-billing-grid { grid-template-columns: minmax(0,1fr); } }
.shop-manual-editor output { font-size: 17px; font-weight: 600; }
.shop-workflow-nav { margin-bottom: 14px; }
.shop-order-bulk-form>.danger,.shop-order-bulk-form>.dark { margin: 14px 0; }
.shop-inline-form { display: inline-flex; gap: 6px; margin: 4px; }
.shop-order-bulk-form table input[type=checkbox] { width: 17px; height: 17px; }
.shop-preview-dialog { width: min(1100px,calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 1px solid #9dccdf; border-radius: 6px; padding: 18px; background: #08212f; color: #f4f8fa; }
.shop-preview-dialog::backdrop { background: #00121cba; }
.shop-preview-dialog>header { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.shop-preview-dialog h2 { margin: 0; font-size: 19px; }
.shop-preview-dialog iframe { width: 100%; height: min(62dvh,780px); border: 1px solid #ffffff30; margin: 12px 0; background: #e9edf1; }
.shop-preview-pages { max-height: 62dvh; overflow: auto; margin: 12px 0; background: #dfe7ec; display: grid; justify-items: center; gap: 14px; padding: 8px; }
.shop-preview-pages canvas { display: block; max-width: 100%; height: auto; background: #fff; }
.shop-document-options label[hidden] { display: none !important; }
.shop-preview-actions,[data-preview-tabs] { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.shop-preview-dialog [data-preview-status] { white-space: pre-wrap; max-height: 100px; overflow: auto; }
.shop-supplier-record { border-top: 1px solid #ffffff26; padding: 18px 0; }
.shop-supplier-record>header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.shop-supplier-record pre { white-space: pre-wrap; overflow-wrap: anywhere; }
[data-local-draft-restore][hidden] { display: none !important; }
@media(max-width:600px) {.shop-preview-dialog { padding: 12px; }.shop-preview-actions>* { flex: 1; min-width: 110px; }.shop-workflow-nav { overflow-x: auto; }}
@media(max-width:1000px) {
  .shop-manual-line { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .shop-manual-line>label:first-child { grid-column: 1/-1; }
  .shop-manual-line>button { justify-self: end; }
  .shop-document-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
  .shop-document-options { grid-template-columns: minmax(0,1fr); }
  .shop-manual-line>label:nth-child(2) { grid-column: 1/-1; }
  .shop-invoice-row>header>button,.shop-proforma-row>header>button { margin-left: 0; }
}
.shop-order-search { display: grid; grid-template-columns: minmax(120px,1fr) minmax(130px,.6fr) auto; gap: 12px; align-items: end; margin-bottom: 20px; }
.shop-order-search label { display: grid; gap: 7px; font-size: 13px; }
.shop-order-list { border-top: 1px solid #d6e2e8; }
.shop-order-row { display: grid; grid-template-columns: minmax(0,1fr) 130px 170px 20px; align-items: center; gap: 14px; width: 100%; padding: 18px 8px; text-align: left; border: 0; border-bottom: 1px solid #d6e2e8; border-radius: 0; background: #fff; color: #182c39; cursor: pointer; }
.shop-order-row:hover { background: #f3f8fa; }
.shop-order-row strong,.shop-order-row small { display: block; overflow-wrap: anywhere; }
.shop-order-row strong { font-size: 14px; }
.shop-order-row small { font-size: 12px; margin-top: 4px; color: #627787; }
.shop-order-row svg { width: 18px; height: 18px; }
.shop-order-amount { font-size: 13px; }
.shop-order-pages { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 18px; font-size: 13px; }
.shop-order-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.shop-order-heading h2 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.shop-order-heading>.shop-order-state { margin-left: auto; }
.shop-order-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 20px 0; }
.shop-order-facts dt { font-size: 12px; color: #627787; }
.shop-order-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.shop-order-table-wrap { overflow-x: auto; max-width: 100%; }
.shop-order-table { width: 100%; min-width: 500px; border-collapse: collapse; font-size: 13px; text-align: left; }
.shop-order-table :is(th,td) { border-bottom: 1px solid #d6e2e8; padding: 12px 10px; vertical-align: top; }
.shop-order-table th { background: #f0f5f7; font-size: 11px; }
.shop-order-table td:first-child { width: 45%; }
.shop-order-table small { display: block; margin-top: 4px; color: #627787; }
.shop-order-section { border-top: 1px solid #d6e2e8; margin-top: 26px; padding-top: 20px; }
.shop-order-section h3,.shop-order-detail h3 { font-size: 16px; margin-bottom: 12px; }
.shop-order-timeline { list-style: none; margin: 0; padding: 0; }
.shop-order-timeline li { display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.shop-order-timeline time { color: #627787; font-size: 12px; }
.shop-customer-message { border-bottom: 1px solid #d6e2e8; padding: 16px 0; }
.shop-customer-message header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.shop-customer-message time { color: #627787; font-size: 12px; }
.shop-attachments { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.shop-attachments button { display: flex; align-items: center; gap: 8px; max-width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #d6e2e8; border-radius: 4px; color: #126086; background: #f3f8fa; cursor: pointer; }
.shop-attachments svg { width: 18px; height: 18px; flex: none; }
.shop-attachments span { overflow-wrap: anywhere; min-width: 0; }
.shop-admin-wide { grid-column: 1/-1; }
.shop-upload-zone { --ui-text: #284251; --ui-secondary: #284251; padding: 20px; border: 1px dashed #8ab2c8; background: #f4f9fb; border-radius: 6px; }
.shop-upload-zone.is-dragging { outline: 2px solid #087caf; background: #eaf4f9; }
.shop-upload-zone input { display: block; margin: 12px 0; }
.admin-ui [data-admin-view=shop] .shop-upload-zone,.admin-ui [data-admin-view=shop] .shop-upload-zone small { color: #284251; }
.shop-admin-assets { display: flex; flex-wrap: wrap; align-items: start; gap: 12px; margin: 14px 0; }
.shop-admin-assets img { display: block; width: 100px; height: 100px; object-fit: contain; border: 1px solid #d6e2e8; border-radius: 4px; background: #fff; }
.shop-admin-assets a { display: grid; gap: 6px; max-width: 160px; overflow-wrap: anywhere; font-size: 12px; }
.shop-product-thumb { width: 44px; height: 44px; object-fit: contain; vertical-align: middle; margin-right: 10px; }
.shop-order-counts { display: flex; flex-wrap: wrap; border-bottom: 1px solid #d6e2e8; margin-bottom: 22px; gap: 8px 20px; }
.shop-order-counts a { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 2px solid transparent; font-size: 13px; text-decoration: none; }
.shop-order-counts a.is-active { border-bottom-color: #087caf; }
.shop-order-counts strong { background: #edf3f6; border-radius: 4px; padding: 2px 6px; font-size: 12px; }
.admin-ui [data-admin-view=shop] table td small { display: block; margin-top: 5px; font-size: 11px; color: #627787; }
.shop-order-reference { font-weight: 600; white-space: nowrap; }
.admin-ui [data-admin-view=shop] .admin-content .summary a { color: #087caf; }
.shop-message-history { margin-top: 24px; max-height: 600px; overflow-y: auto; }
.shop-message-history article { border-top: 1px solid #d6e2e8; padding: 18px 0; }
.shop-message-history header { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.shop-message-history time { margin-left: auto; color: #627787; font-size: 12px; }
.shop-quote-editor summary { margin-bottom: 20px; }
.shop-document-mode { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 14px; border: 0; border-bottom: 1px solid #ffffff26; margin: 0; }
.shop-document-mode legend { font-size: 12px; margin-bottom: 8px; }
.admin-ui .shop-document-mode label { display: flex; align-items: center; gap: 8px; padding: 10px 14px; min-height: 44px; border: 1px solid #ffffff40; border-radius: 6px; cursor: pointer; }
.admin-ui .shop-document-mode label:has(:checked) { background: #164f6c; border-color: #8fd6f4; color: #fff; }
.shop-document-mode input { width: 16px; height: 16px; margin: 0; accent-color: #087caf; }
.shop-document-payment-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 10px 0; font-size: 13px; }
.shop-document-payment-summary a { margin-left: auto; }
[data-document-expiry][hidden],.shop-document-payment-summary[hidden] { display: none !important; }
.shop-mail-template-bar { display: grid; grid-template-columns: minmax(180px,1fr) minmax(140px,.5fr); align-items: end; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #ffffff26; }
.shop-mail-template-bar label { display: grid; gap: 6px; min-width: 0; }
.shop-mail-template-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 12px; }
.shop-mail-template-apply { grid-column: 1/-1; justify-self: start; width: auto; min-width: 150px; }
.shop-mail-template-fields label { display: grid; gap: 6px; min-width: 0; }
.shop-mail-template-fields textarea { min-height: 90px; }
.shop-mail-replace { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 0; }
.shop-mail-template-status { margin: 0; color: #ffcf86; }
[data-document-mail-status][hidden],[data-document-retry-form][hidden] { display: none !important; }
[data-document-mail-status] { padding: 12px 0; font-size: 14px; }
.shop-mail-template-fields[hidden],.shop-mail-replace[hidden],.shop-mail-template-status[hidden] { display: none !important; }
.admin-ui [data-admin-view=shop] [name=customer_message] { min-height: 260px; line-height: 1.55; }
@media(max-width:700px) {
  .shop-mail-template-bar,.shop-mail-template-fields { grid-template-columns: minmax(0,1fr); }
  .shop-mail-template-bar>button { width: 100%; }
}
.shop-mobile-label { display: none; }
@media(max-width:700px) {
  .shop-order-table,.shop-order-table tbody { display: block; min-width: 0; }
  .shop-order-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .shop-order-table tr { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 14px 0; border-bottom: 1px solid #d6e2e8; }
  .shop-order-table td { padding: 0; border: 0; min-width: 0; overflow-wrap: anywhere; }
  .shop-order-table td:first-child { grid-column: 1/-1; width: 100%; }
  .shop-order-table .shop-mobile-label { display: block; font-size: 10px; color: #627787; margin-bottom: 5px; }
  .shop-order-search { grid-template-columns: minmax(0,1fr) auto; }
  .shop-order-search>label:first-child { grid-column: 1/-1; }
  .shop-order-row { grid-template-columns: minmax(0,1fr) auto 16px; gap: 10px; }
  .shop-order-row>span:first-child { grid-column: 1/-1; }
  .shop-order-row>.shop-order-state { max-width: 130px; }
  .shop-order-amount { text-align: right; }
  .shop-order-facts { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .shop-order-heading h2 { font-size: 15px; }
  .shop-order-heading>.shop-order-state { margin-left: 0; }
}
@media(max-width:700px) {
  .shop-header { grid-template-columns: 76px 1fr 44px; padding: 10px 12px; gap: 6px; }
  .shop-header h1 { font-size: 19px; gap: 7px; }
  .shop-content { padding: 0 14px 18px; }
  .shop-filters { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .shop-filters label:first-child { grid-column: 1/-1; }
  .shop-count { grid-column: 1/-1; padding: 0; }
  .shop-table,.shop-table tbody { display: block; }
  .shop-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .shop-table tr { display: grid; grid-template-columns: minmax(0,.65fr) minmax(0,1fr) 86px; gap: 12px; border-bottom: 1px solid #d6e2e8; padding: 14px 0; }
  .shop-table td { display: flex; flex-direction: column; justify-content: center; padding: 0; border: 0; min-width: 0; }
  .shop-table td:first-child { grid-column: 1/-1; }
  .shop-table td:before { content: attr(data-label); font-size: 10px; color: #637a89; margin-bottom: 4px; }
  .shop-table td:first-child:before { content: none; }
  .shop-table td:last-child { grid-column: 2/4; }
  .shop-summary { gap: 8px; flex-wrap: wrap; padding: 12px 0; }
  .shop-summary>div { flex-basis: calc(100% - 60px); gap: 4px 12px; }
  .shop-summary .action { width: 100%; }
  .shop-form { grid-template-columns: minmax(0,1fr); }
  .shop-tabs { gap: 20px; }
  .shop-request-section { scroll-margin-top: 160px; }
}
