.del-card {
  background: #fff;
  border: 1px solid #d9e1e8;
  border-radius: 12px;
  padding: 12px;
  margin: 0 0 10px;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.del-card h2,
.del-card h3,
.del-reference h2 {
  margin: 0 0 8px;
}
.del-card label {
  display: grid;
  gap: 4px;
  font-weight: 650;
  margin: 8px 0;
}
.del-card input,
.del-card textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #aebdca;
  border-radius: 9px;
  padding: 9px 10px;
  font: inherit;
}
.del-card textarea {
  height: 72px;
  min-height: 56px;
  resize: vertical;
}
.del-sheet-details {
  border-top: 1px solid #e1e8ed;
  margin-top: 10px;
  padding-top: 2px;
}
.del-sheet .del-reference {
  margin: 10px 0 0;
}
.del-capture {
  display: inline-flex !important;
  width: max-content;
  padding: 9px 12px !important;
  margin: 0 !important;
  background: #0b4778;
  color: #fff;
  border-radius: 9px;
  justify-content: center;
  text-align: center;
}
.del-capture input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.del-capture.small {
  font-size: 0.88rem;
  padding: 8px 10px !important;
}
.del-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.del-head > * {
  min-width: 0;
}
.del-head button {
  flex: 0 0 auto;
  border: 1px solid #b8c7d3;
  background: #fff;
  border-radius: 8px;
  padding: 7px 10px;
}
.del-products-head {
  margin: 12px 0 8px;
}
.del-products-head h2 {
  margin: 0;
}
.del-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.del-muted {
  color: #536b7d;
  font-size: 0.86rem;
  margin: 6px 0;
}
.del-photo-first {
  background: #f3f7fa;
  border-radius: 9px;
  padding: 10px;
  margin: 8px 0;
}
.del-photo-first strong {
  display: block;
  margin-bottom: 6px;
}
.del-fields {
  margin-top: 8px;
}
.del-extra-photos {
  border-top: 1px solid #e1e8ed;
  padding-top: 8px;
}
.del-extra-photos summary {
  cursor: pointer;
  font-weight: 650;
}
.del-previews {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}
.del-previews span {
  position: relative;
  aspect-ratio: 4/3;
}
.del-previews img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #edf2f5;
  border-radius: 8px;
}
.del-previews button {
  position: absolute;
  top: 2px;
  right: 2px;
  border: 0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
}
.del-empty {
  text-align: center;
  padding: 18px;
  background: #fff;
  margin: 0 0 10px;
}
.del-reference {
  background: #eaf1f6;
  border: 1px solid #ccdbe6;
  border-radius: 10px;
  padding: 11px;
  margin: 10px 0;
}
.del-reference label {
  margin: 4px 0;
}
.del-reference textarea {
  min-height: 58px;
  height: auto;
  line-height: 1.3;
  padding: 7px 9px;
}
.del-reference .del-muted {
  margin-bottom: 0;
}
.del-stick {
  position: sticky;
  bottom: 0;
  background: #f3f5f7ef;
  padding: 9px 0 calc(9px + env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  align-items: center;
}
.del-media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.del-capture.del-secondary {
  background: #fff;
  color: #0b4778;
  border: 1px solid #0b4778;
}
@media (max-width: 620px) {
  .del-two {
    grid-template-columns: 1fr 1fr;
  }
  .del-card {
    border-radius: 10px;
    padding: 10px;
  }
  .del-media-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .del-media-actions .del-capture {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .del-stick {
    flex-direction: column;
    align-items: stretch;
  }
  .del-stick .cw-btn {
    width: 100%;
  }
  .del-previews {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 360px) {
  .del-two,
  .del-media-actions {
    grid-template-columns: 1fr;
  }
}

/* Delivery product media: both tasks stay visible and distinct. */
.del-product {
  padding: 16px;
  margin-bottom: 14px;
}
.del-product > .del-head {
  margin-bottom: 12px;
}
.del-product > .del-head h3 {
  margin: 0;
}
.del-product > .del-head button {
  color: #a34242;
  border-color: #e7caca;
}
.del-photo-first,
.del-extra-photos {
  display: block;
  border: 1px solid #dce6ed;
  border-radius: 11px;
  padding: 13px;
  margin: 10px 0;
  background: #f4f8fb;
}
.del-extra-photos {
  background: #fff;
}
.del-media-heading {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
}
.del-media-heading strong {
  font-size: 1rem;
  line-height: 1.3;
}
.del-media-heading > span {
  color: #536b7d;
  font-size: 0.82rem;
  line-height: 1.35;
}
.del-count {
  color: #536b7d;
  font-size: 0.82rem;
  font-weight: 500;
}
.del-product .del-media-actions .del-capture {
  font-size: 0.88rem;
  line-height: 1.25;
  min-height: 42px;
  box-sizing: border-box;
  align-items: center;
  cursor: pointer;
}
.del-product .del-media-actions .del-capture:focus-within {
  outline: 3px solid #77a8d3;
  outline-offset: 2px;
}
.del-product .del-media-actions .del-capture:has(input:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}
.del-extra-photos .del-previews:empty {
  display: none;
}
@media (max-width: 620px) {
  .del-product {
    padding: 12px;
  }
  .del-photo-first,
  .del-extra-photos {
    padding: 11px;
  }
  .del-product .del-media-actions .del-capture {
    font-size: 0.82rem;
    padding: 8px !important;
  }
}

/* Side-by-side product and plate capture, including the phone layout. */
.del-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  margin: 10px 0;
}
.del-media-grid > .del-extra-photos,
.del-media-grid > .del-photo-first {
  min-width: 0;
  margin: 0;
  padding: 12px;
}
.del-media-grid > .del-extra-photos {
  grid-column: 1;
  grid-row: 1;
}
.del-media-grid > .del-photo-first {
  grid-column: 2;
  grid-row: 1;
}
.del-media-grid .del-media-heading {
  min-height: 4.5em;
  align-content: start;
}
.del-media-grid .del-media-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}
.del-media-grid .del-media-actions .del-capture {
  width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.del-media-grid .del-previews {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 620px) {
  .del-media-grid {
    gap: 8px;
  }
  .del-media-grid > .del-extra-photos,
  .del-media-grid > .del-photo-first {
    padding: 9px;
  }
  .del-media-grid .del-media-heading {
    min-height: 5.8em;
  }
  .del-media-grid .del-media-heading strong {
    font-size: 0.88rem;
  }
  .del-media-grid .del-media-heading > span {
    font-size: 0.72rem;
  }
  .del-media-grid .del-media-actions .del-capture {
    font-size: 0.72rem;
    min-height: 46px;
    padding: 6px !important;
  }
}
@media (max-width: 360px) {
  .del-media-grid .del-media-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Compact capture cards: action labels carry the meaning; status is only operational. */
.del-media-grid {
  align-items: start;
  margin: 8px 0 10px;
}
.del-media-grid > .del-extra-photos,
.del-media-grid > .del-photo-first {
  padding: 10px;
}
.del-media-grid .del-media-heading {
  min-height: 0;
  margin-bottom: 8px;
}
.del-media-grid .del-plate-selected {
  background: #effaf1;
  border-color: #8fcda0;
}
.del-plate-preview {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}
.del-plate-preview img {
  display: block;
  width: 100%;
  max-height: 130px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #c8dfce;
  border-radius: 7px;
}
.del-scan-state {
  color: #276b3b;
  font-size: 0.74rem;
  font-weight: 700;
}
.del-scan-state.del-scan-error {
  color: #a34242;
}
@media (max-width: 620px) {
  .del-media-grid > .del-extra-photos,
  .del-media-grid > .del-photo-first {
    padding: 8px;
  }
  .del-media-grid .del-media-heading {
    min-height: 0;
    margin-bottom: 7px;
  }
  .del-plate-preview img {
    max-height: 95px;
  }
}

.del-product-saved {
  border-color: #53aa6d;
  background: #f1fbf3;
  box-shadow: inset 4px 0 #42a45d;
}
.del-save-product {
  border: 1px solid #0b4778;
  background: #0b4778;
  color: #fff;
  border-radius: 9px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  width: 100%;
  margin-top: 8px;
}
.del-product-saved .del-save-product {
  border-color: #42a45d;
  background: #e5f7e9;
  color: #236d37;
}

.del-checklist {
  padding: 0;
  margin: 9px 0 0;
  list-style: none;
  display: grid;
  gap: 5px;
}
.del-checklist li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #d5e0e8;
  border-radius: 8px;
  background: #fff;
  padding: 7px 9px;
  font-size: 0.88rem;
}
.del-checklist li.is-saved {
  background: #ddf5e3;
  border-color: #7fc992;
  color: #1e6332;
}
.del-checklist li strong {
  white-space: nowrap;
}

/* One delivery-list row owns its product fields and scan controls. */
.del-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.del-list-head h2 {
  margin: 0;
}
.del-list-head button {
  flex: none;
  border: 1px solid #b6c8d5;
  background: #fff;
  color: #0b4778;
  border-radius: 8px;
  padding: 7px 10px;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 700;
}
.del-list-head {
  flex-wrap: wrap;
}
.del-manual-add {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}
.del-manual-add input {
  width: 180px;
  max-width: 42vw;
  border: 1px solid #b6c8d5;
  border-radius: 8px;
  padding: 7px 9px;
  font: inherit;
  font-size: 0.83rem;
  background: #fff;
}
.del-manual-add button {
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
}
.del-items {
  display: grid;
  gap: 7px;
}
.del-list-item {
  margin: 0;
  padding: 0;
  overflow: visible;
}
.del-list-item > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
  font-size: 0.88rem;
}
.del-list-item > summary::-webkit-details-marker {
  display: none;
}
.del-list-item > summary:focus-visible {
  outline: 3px solid #77a8d3;
  outline-offset: 2px;
}
.del-list-item .del-toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 23px;
  height: 23px;
  border-radius: 6px;
  background: #e7f0f6;
  color: #0b4778;
  font-weight: 800;
}
.del-list-item .del-toggle::before {
  content: '+';
}
.del-list-item[open] .del-toggle::before {
  content: '−';
}
.del-item-title {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.del-list-item summary strong {
  white-space: nowrap;
  color: #536b7d;
  font-size: 0.78rem;
}
.del-list-item.del-product-saved summary strong {
  color: #236d37;
}
.del-item-body {
  border-top: 1px solid #dce6ed;
  padding: 10px 12px 12px;
}
.del-split-action {
  margin-top: 12px;
}
.del-split-action button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 42px;
  border: 1px solid #b6c8d5;
  border-radius: 9px;
  background: #f4f8fb;
  color: #0b4778;
  padding: 9px 12px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
}
.del-split-action button:hover {
  border-color: #0b4778;
  background: #eaf2f8;
}
.del-split-action button:focus-visible {
  outline: 3px solid #77a8d3;
  outline-offset: 2px;
}
.del-split-icon {
  position: relative;
  display: inline-block;
  flex: none;
  width: 21px;
  height: 17px;
}
.del-split-icon::before,
.del-split-icon::after {
  content: '';
  position: absolute;
  top: 2px;
  width: 8px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.del-split-icon::before {
  left: 0;
}
.del-split-icon::after {
  right: 0;
}
.del-serial-field {
  min-width: 0;
}
.del-serial-field > label:first-child {
  margin-bottom: 6px;
}
.del-card .del-serial-na {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin: 0;
  color: #344d60;
  font-size: 0.86rem;
  cursor: pointer;
}
.del-card .del-serial-na input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #0b4778;
}
.del-stick .del-delete-delivery {
  border: 1px solid #d8b8b8;
  background: #fff;
  color: #9b3838;
}
.del-stick .del-delete-delivery:hover {
  background: #fff3f3;
  border-color: #b65d5d;
}
.del-stick .del-delete-delivery:disabled {
  opacity: 0.5;
}
.del-item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.del-item-actions [data-rm] {
  border: 1px solid #e7caca;
  background: #fff;
  color: #a34242;
  border-radius: 8px;
  padding: 9px 12px;
  font: inherit;
}
.del-item-actions .del-save-product {
  width: auto;
  min-width: 135px;
  margin: 0;
}
.del-list-item .del-media-grid {
  margin-top: 0;
}
@media (max-width: 620px) {
  .del-list-head h2 {
    font-size: 1.06rem;
  }
  .del-manual-add {
    width: 100%;
    margin-left: 0;
  }
  .del-manual-add input {
    flex: 1;
    max-width: none;
    width: 0;
  }
  .del-list-item > summary {
    padding: 9px;
  }
  .del-item-body {
    padding: 9px;
  }
  .del-item-actions .del-save-product {
    min-width: 120px;
  }
}

/* Read-only completed deliveries. */
.del-archive-search {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.del-archive-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid #b6c8d5;
  border-radius: 9px;
  padding: 10px 12px;
  font: inherit;
}
.del-archive-list,
.del-archive-products {
  display: grid;
  gap: 8px;
}
.del-archive-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #d4e0e8;
  border-radius: 10px;
  padding: 13px 15px;
  font: inherit;
  color: #12314a;
  cursor: pointer;
}
.del-archive-row:hover,
.del-archive-row:focus-visible {
  border-color: #0b4778;
  background: #f5f9fc;
}
.del-archive-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.del-archive-row small,
.del-archive-fields small {
  color: #536b7d;
}
.del-archive-row span:last-child {
  text-align: right;
  flex: none;
}
.del-archive-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
.del-archive-pages .cw-btn {
  min-width: 90px;
}
.del-archive-customer p {
  margin: 0;
  line-height: 1.5;
}
.del-archive-product {
  border: 1px solid #d4e0e8;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.del-archive-product summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  padding: 12px 14px;
}
.del-archive-product summary span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.del-archive-product summary strong {
  color: #236d37;
  white-space: nowrap;
}
.del-archive-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid #e2e9ee;
}
.del-archive-fields > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.del-archive-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 14px;
}
.del-archive-photos img {
  width: 110px;
  height: 85px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d4e0e8;
}
@media (max-width: 620px) {
  .del-archive-row {
    padding: 10px;
    align-items: flex-start;
  }
  .del-archive-row span:last-child {
    font-size: 0.85rem;
  }
  .del-archive-fields {
    grid-template-columns: 1fr 1fr;
  }
  .del-archive-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .del-archive-pages {
    gap: 7px;
  }
  .del-archive-pages .cw-btn {
    min-width: 0;
  }
}

/* Completed delivery: compact overview, clear return, expandable product rows. */
.del-archive-head {
  align-items: flex-end;
}
.del-archive-head h1 {
  margin: 4px 0;
}
.del-archive-back {
  border: 0;
  background: none;
  padding: 0;
  color: #0b4778;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.del-archive-back:hover {
  text-decoration: underline;
}
.del-archive-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  padding: 20px !important;
  margin-bottom: 14px;
}
.del-archive-overview > div {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}
.del-archive-overview strong {
  font-size: 1rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.del-archive-label {
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #5f7383;
}
.del-archive-address {
  grid-column: 1/-1;
  border-top: 1px solid #e5ebf0;
  padding-top: 14px;
}
.del-archive-panel {
  padding: 18px !important;
}
.del-archive-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.del-archive-section-head h2 {
  margin: 0;
}
.del-archive-section-head h2 span {
  font-size: 0.8rem;
  color: #5f7383;
}
.del-archive-section-head > span {
  font-size: 0.82rem;
  color: #5f7383;
}
.del-archive-product {
  border-color: #dbe5ec;
}
.del-archive-product summary {
  align-items: center;
  padding: 11px 13px;
  list-style: none;
}
.del-archive-product summary::-webkit-details-marker {
  display: none;
}
.del-archive-product summary:focus-visible {
  outline: 3px solid #77a8d3;
  outline-offset: 2px;
}
.del-archive-toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #e8f0f6;
  color: #0b4778;
  font-weight: 800;
}
.del-archive-toggle::before {
  content: '+';
}
.del-archive-product[open] .del-archive-toggle::before {
  content: '−';
}
.del-archive-product-title {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.del-archive-product summary strong {
  font-size: 0.78rem;
}
.del-archive-body {
  border-top: 1px solid #e2e9ee;
}
.del-archive-fields {
  border-top: 0;
}
.del-archive-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 14px 0 24px;
}
.del-archive-row-main {
  flex: 1;
}
.del-archive-row-meta {
  flex: none;
}
.del-archive-chevron {
  font-size: 1.5rem;
  color: #597185;
}
.del-archive-overview input,
.del-archive-overview textarea,
.del-archive-edit-grid input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #b6c8d5;
  border-radius: 8px;
  padding: 9px 10px;
  font: inherit;
}
.del-archive-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 13px;
}
.del-archive-edit-grid label {
  display: grid;
  gap: 4px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #344f63;
}
.del-archive-edit-grid .del-archive-wide {
  grid-column: 1/-1;
}
@media (max-width: 620px) {
  .del-archive-head {
    align-items: flex-start;
  }
  .del-archive-head .cw-actions {
    width: 100%;
  }
  .del-archive-head .cw-actions .cw-btn {
    flex: 1;
  }
  .del-archive-overview {
    padding: 14px !important;
    gap: 13px;
  }
  .del-archive-panel {
    padding: 12px !important;
  }
  .del-archive-section-head > span {
    display: none;
  }
  .del-archive-product summary {
    padding: 9px;
    gap: 7px;
  }
  .del-archive-product summary strong {
    font-size: 0.72rem;
  }
  .del-archive-edit-grid {
    grid-template-columns: 1fr 1fr;
    padding: 10px;
  }
  .del-archive-footer .cw-btn {
    flex: 1;
  }
}
@media (max-width: 620px) {
  .del-archive-head .cw-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .del-archive-head .cw-actions [data-close-delivery] {
    grid-column: 1/-1;
    grid-row: 1;
    justify-self: end;
    width: auto;
  }
  .del-archive-head .cw-actions .cw-btn {
    min-width: 0;
  }
}
.del-archive-head .cw-actions {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: end;
  gap: 8px;
}
.del-archive-head .cw-actions [data-close-delivery] {
  grid-column: 1/-1;
  grid-row: 1;
  justify-self: end;
}
@media (max-width: 620px) {
  .del-archive-head .cw-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.del-archive-overview {
  position: relative;
}
.del-archive-overview > div:nth-of-type(2) {
  padding-right: 40px;
}
.del-archive-collapse {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #cbdbe6;
  border-radius: 9px;
  background: #f3f8fb;
  color: #0b4778;
  cursor: pointer;
}
.del-archive-collapse:hover {
  background: #e5f0f7;
  border-color: #7da8c5;
}
.del-archive-collapse:focus-visible {
  outline: 3px solid #77a8d3;
  outline-offset: 2px;
}
.del-archive-collapse svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 620px) {
  .del-archive-collapse {
    top: 12px;
    right: 12px;
  }
  .del-archive-overview > div:nth-of-type(2) {
    padding-right: 36px;
  }
}
.del-archive-photo-section {
  border-top: 1px solid #e2e9ee;
  padding: 12px 14px 14px;
}
.del-archive-photo-section h3 {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #173a54;
}
.del-archive-photo-section h3 span {
  color: #657b8b;
  font-size: 0.8rem;
}
.del-archive-photo-section .del-muted {
  margin: 0;
}
.del-archive-photos {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 160px));
  gap: 9px;
}
.del-archive-photos a {
  display: block;
  border: 1px solid #d3e0e9;
  border-radius: 9px;
  overflow: hidden;
  background: #f6f9fb;
  cursor: zoom-in;
}
.del-archive-photos a:hover,
.del-archive-photos a:focus-visible {
  border-color: #0b4778;
  box-shadow: 0 0 0 2px #c9e3f5;
}
.del-archive-photos img {
  display: block;
  width: 100%;
  height: 118px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
}
@media (max-width: 620px) {
  .del-archive-photo-section {
    padding: 10px;
  }
  .del-archive-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .del-archive-photos img {
    height: 112px;
  }
}
.del-visit-panel {
  margin-top: 16px;
  padding: 20px;
}
.del-visit-panel h2 {
  margin: 0 0 16px;
}
.del-visit-panel > label {
  display: block;
  max-width: 220px;
  margin-bottom: 16px;
  font-weight: 600;
}
.del-visit-panel input[type='date'] {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #bdcbd5;
  border-radius: 8px;
}
.del-visit-lines {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
.del-visit-row {
  padding: 12px;
  border: 1px solid #d9e2e9;
  border-radius: 9px;
  background: #fff;
}
.del-visit-row-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 2px 12px;
  align-items: center;
}
.del-visit-row strong {
  min-width: 0;
}
.del-visit-row small {
  grid-column: 1;
  color: #586875;
}
.del-visit-total {
  grid-column: 2;
  grid-row: 1/3;
  display: grid;
  justify-items: end;
  gap: 3px;
  color: #0c2d4f;
}
.del-visit-total label {
  font-size: 0.72rem;
  font-weight: 800;
}
.del-visit-total > div {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 1.08rem;
  font-weight: 850;
}
.del-visit-total input {
  width: 54px;
  min-height: 38px;
  padding: 5px 3px;
  border: 1px solid #8da9bb;
  border-radius: 7px;
  background: #fff;
  color: #0c2d4f;
  text-align: center;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 850;
}
.del-visit-total input:focus {
  outline: 2px solid #0b4778;
  outline-offset: 2px;
}
.del-visit-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  align-items: baseline;
  margin: 0 0 16px;
  color: #0c2d4f;
}
.del-visit-progress strong {
  font-size: 1.16rem;
}
.del-visit-progress span {
  color: #405c70;
  font-size: 0.9rem;
  font-weight: 700;
}
.del-visit-row .del-visit-chips {
  grid-column: 1/-1;
  grid-row: 3;
  margin-top: 5px;
}
.del-visit-chip {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.25;
  white-space: normal;
}
.del-visit-chip.del-visit-tone-1 {
  background: #dcf2e1;
  color: #15512e;
  border-color: #afd9ba;
}
.del-visit-chip.del-visit-tone-2 {
  background: #e0efff;
  color: #124975;
  border-color: #b4d2ef;
}
.del-visit-chip.del-visit-tone-3 {
  background: #fff0cf;
  color: #704810;
  border-color: #e9cf94;
}
.del-visit-chip.del-visit-tone-4 {
  background: #efe8fa;
  color: #543879;
  border-color: #d0bfe9;
}
.del-visit-chip.del-visit-tone-5 {
  background: #dff3f0;
  color: #145950;
  border-color: #abd9d2;
}
.del-visit-chip.del-visit-tone-6 {
  background: #fbe7ed;
  color: #79354b;
  border-color: #e9bbca;
}
.del-visit-chip.del-visit-pending {
  background: #f2f5f7;
  color: #536674;
  border-color: #d5dfe5;
}
.del-visit-row.del-visit-tone-1,
.del-archive-product.del-visit-tone-1 > summary {
  background: #eff9f1;
}
.del-visit-row.del-visit-tone-2,
.del-archive-product.del-visit-tone-2 > summary {
  background: #f0f7ff;
}
.del-visit-row.del-visit-tone-3,
.del-archive-product.del-visit-tone-3 > summary {
  background: #fff9eb;
}
.del-visit-row.del-visit-tone-4,
.del-archive-product.del-visit-tone-4 > summary {
  background: #f8f4fd;
}
.del-visit-row.del-visit-tone-5,
.del-archive-product.del-visit-tone-5 > summary {
  background: #eef9f7;
}
.del-visit-row.del-visit-tone-6,
.del-archive-product.del-visit-tone-6 > summary {
  background: #fdf3f6;
}
.del-archive-product-main {
  display: grid;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.del-archive-product-main .del-archive-product-title {
  flex: none;
}
.del-visit-photo-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 14px;
  font-size: 0.82rem;
}
.del-visit-photo-links a {
  color: #0b4778;
  font-weight: 700;
}
.del-partial-product .del-partial-count {
  font-size: 0.9rem;
  color: #0c2d4f;
  text-align: right;
  white-space: nowrap;
}
.del-partial-progress {
  margin-top: 14px;
  padding: 18px !important;
}
.del-partial-progress > label {
  display: grid;
  gap: 5px;
  max-width: 220px;
  font-weight: 700;
}
.del-partial-progress input[type='date'] {
  padding: 9px;
  border: 1px solid #b6c8d5;
  border-radius: 8px;
  font: inherit;
}
.del-partial-totals {
  display: grid;
  gap: 8px;
  margin: 15px 0;
}
.del-partial-totals > label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid #dbe5ec;
  border-radius: 9px;
  font-weight: 700;
}
.del-partial-totals > label > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.del-partial-total-input {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
  color: #0c2d4f;
}
.del-partial-total-input input {
  width: 58px;
  padding: 7px 4px;
  border: 1px solid #8da9bb;
  border-radius: 7px;
  text-align: center;
  font: inherit;
  font-weight: 800;
}
.del-partial-ordered {
  display: grid;
  gap: 4px;
  color: #344f63;
  font-size: 0.84rem;
  font-weight: 700;
}
.del-partial-ordered strong {
  font-size: 1rem;
}
.del-partial-progress .cw-btn {
  margin-top: 2px;
}
@media (max-width: 620px) {
  .del-partial-product .del-partial-count {
    font-size: 0.78rem;
  }
  .del-partial-progress {
    padding: 12px !important;
  }
  .del-partial-totals > label {
    padding: 8px;
  }
}
.del-sheet,
.del-reference {
  background: #fff;
  border-color: #dbe5ec;
  border-radius: 12px;
  padding: 18px;
  margin: 0 0 14px;
}
.del-reference {
  margin-top: 0;
}
.del-sheet h2,
.del-reference h2 {
  color: #173a54;
}
@media (max-width: 620px) {
  .del-sheet,
  .del-reference {
    padding: 12px;
  }
}
.del-list-item .del-toggle,
.del-archive-toggle {
  width: 26px;
  height: 26px;
  background: #e8f0f6;
  border-radius: 7px;
}
.del-list-item .del-toggle::before,
.del-archive-toggle::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.16s ease;
}
.del-list-item[open] .del-toggle::before,
.del-archive-product[open] .del-archive-toggle::before {
  content: '';
  transform: rotate(45deg);
}
.del-partial-line {
  position: relative;
}
.del-partial-line.is-progress .del-archive-product > summary {
  padding-right: 178px;
  min-height: 64px;
}
.del-partial-inline-total {
  position: absolute;
  top: 13px;
  right: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #0c2d4f;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 1;
}
.del-partial-inline-total input {
  width: 50px;
  min-height: 34px;
  box-sizing: border-box;
  border: 1px solid #8da9bb;
  border-radius: 7px;
  background: #fff;
  color: #0c2d4f;
  text-align: center;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
}
.del-partial-inline-total input:focus-visible {
  outline: 2px solid #0b4778;
  outline-offset: 2px;
}
.del-partial-date {
  display: grid;
  gap: 5px;
  max-width: 210px;
  margin-bottom: 15px;
  font-weight: 700;
}
.del-partial-date input {
  padding: 9px;
  border: 1px solid #b6c8d5;
  border-radius: 8px;
  font: inherit;
}
.del-partial-save {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}
.del-partial-inline-total .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 620px) {
  .del-partial-line.is-progress .del-archive-product > summary {
    padding-right: 130px;
  }
  .del-partial-inline-total {
    right: 9px;
    top: 11px;
    gap: 3px;
    font-size: 0.68rem;
  }
  .del-partial-inline-total input {
    width: 43px;
  }
  .del-partial-save .cw-btn {
    width: 100%;
  }
}
.del-partial-sheet-head {
  align-items: center;
  margin-bottom: 14px;
}
.del-partial-sheet-head .del-visit-progress {
  margin: 0;
  text-align: right;
}
.del-partial-sheet-head .del-visit-progress strong {
  font-size: 1.18rem;
}
@media (max-width: 620px) {
  .del-partial-sheet-head {
    align-items: flex-start;
  }
  .del-partial-sheet-head .del-visit-progress {
    display: block;
    margin-left: auto;
    max-width: 55%;
  }
  .del-partial-sheet-head .del-visit-progress strong {
    font-size: 1rem;
  }
}

/* Match secondary delivery copy to the storefront description colour. */
.del-muted,
.del-media-heading > span,
.del-visit-row small,
.del-visit-chip.del-visit-pending {
  color: #183c59;
}
