/* Outgoing customer Delivery Hub and printable BOL */
.delivery-hub-workspace,
.delivery-bol-workspace {
  display: grid;
  gap: 22px;
}

.delivery-hub-hero,
.delivery-bol-heading,
.delivery-bol-schedule,
.delivery-bol-customer,
.delivery-bol-pallets,
.delivery-progress-card,
.delivery-ready-section,
.delivery-bol-history {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgb(214 185 140 / 6%), transparent 50%),
    var(--surface);
}

.delivery-hub-hero {
  padding: 14px;
}

.delivery-hub-hero h2,
.delivery-bol-heading h2,
.delivery-section-heading h2 {
  margin: 7px 0 0;
  color: var(--white);
  letter-spacing: -0.035em;
}

.delivery-hub-hero h2 {
  font-size: clamp(1.65rem, 7vw, 2.45rem);
}

.delivery-hub-hero > div > p:last-child,
.delivery-bol-heading > div > p:last-child {
  max-width: 700px;
  margin: 10px 0 0;
  color: #62584c;
  line-height: 1.6;
}

.delivery-hub-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.delivery-hub-summary > div {
  display: grid;
  gap: 5px;
  padding: 12px 8px;
  border: 1px solid rgb(214 185 140 / 18%);
  border-radius: var(--radius-sm);
  text-align: center;
  background: rgb(255 255 255 / 52%);
}

.delivery-hub-summary dt {
  color: #62584c;
  font-size: 0.64rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.delivery-hub-summary dd {
  margin: 0;
  color: var(--lime-light);
  font-size: 1.65rem;
  font-weight: 900;
}

.delivery-ready-section,
.delivery-bol-history,
.delivery-bol-pallets {
  padding: 22px;
}

.delivery-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.delivery-section-heading > span,
.delivery-section-heading > strong {
  flex: 0 0 auto;
  color: #62584c;
  font-size: 0.78rem;
  font-weight: 800;
}

.delivery-customer-list {
  display: grid;
  gap: 14px;
}

.delivery-customer-card {
  overflow: hidden;
  border: 1px solid rgb(100 174 255 / 26%);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgb(63 127 194 / 10%), transparent 52%),
    #ffffff;
}

.delivery-customer-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
}

.delivery-customer-card > header p {
  margin: 0 0 4px;
  color: #1f78a8;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.delivery-customer-card h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.35rem;
}

.delivery-customer-card address,
.delivery-bol-customer address {
  display: grid;
  gap: 2px;
  margin-top: 8px;
  color: #62584c;
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.45;
}

.delivery-customer-count {
  display: grid;
  min-width: 78px;
  gap: 2px;
  text-align: right;
}

.delivery-customer-count strong {
  color: var(--lime-light);
  font-size: 1.8rem;
  line-height: 1;
}

.delivery-customer-count span {
  color: #62584c;
  font-size: 0.64rem;
  font-weight: 760;
}

.delivery-payment-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 20px 16px;
}

.delivery-payment-summary > span,
.delivery-order-status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.delivery-payment-paid,
.delivery-order-status-paid {
  border-color: rgb(214 185 140 / 42%) !important;
  color: var(--lime-light);
  background: rgb(214 185 140 / 9%);
}

.delivery-payment-unpaid,
.delivery-order-status-unpaid {
  border-color: rgb(255 194 90 / 42%) !important;
  color: #ffd68e;
  background: rgb(255 180 55 / 9%);
}

.delivery-payment-summary a {
  margin-left: auto;
  color: #1f78a8;
  font-size: 0.78rem;
  font-weight: 750;
}

.delivery-order-list {
  display: grid;
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}

.delivery-order-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 20px;
}

.delivery-order-list article + article {
  border-top: 1px solid var(--surface-border);
}

.delivery-order-list article > div {
  display: grid;
  gap: 2px;
}

.delivery-order-list article strong {
  color: var(--white);
  font-size: 0.83rem;
}

.delivery-order-list article > div span {
  color: #62584c;
  font-size: 0.69rem;
}

.delivery-customer-card > form {
  padding: 16px 20px 20px;
}

.delivery-create-bol {
  width: 100%;
  justify-content: space-between;
}

.delivery-empty {
  display: grid;
  justify-items: center;
  padding: 42px 20px;
  color: #62584c;
  text-align: center;
}

.delivery-empty > span {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgb(100 174 255 / 30%);
  border-radius: 20px;
  color: #1f78a8;
  background: rgb(63 127 194 / 10%);
}

.delivery-empty svg {
  width: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.delivery-empty h3 {
  margin: 16px 0 5px;
  color: var(--white);
}

.delivery-empty p {
  max-width: 480px;
  margin: 0;
  line-height: 1.55;
}

.delivery-history-list {
  display: grid;
  gap: 8px;
}

.delivery-history-list > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 15px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  color: var(--white);
  background: rgb(255 255 255 / 42%);
  transition: border-color 150ms ease, transform 150ms ease;
}

.delivery-history-list > a:hover {
  border-color: rgb(214 185 140 / 44%);
  transform: translateY(-1px);
}

.delivery-history-list > a > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.delivery-history-list > a > div:nth-child(2) {
  text-align: right;
}

.delivery-history-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-history-list span,
.delivery-history-empty {
  color: #62584c;
  font-size: 0.7rem;
}

.delivery-history-empty {
  margin: 0;
}

.delivery-bol-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
}

.delivery-bol-layout {
  display: grid;
  gap: 16px;
}

.delivery-bol-schedule {
  overflow: hidden;
}

.delivery-bol-schedule > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 22px;
  cursor: pointer;
  list-style: none;
  transition: background 150ms ease;
}

.delivery-bol-schedule > summary::-webkit-details-marker {
  display: none;
}

.delivery-bol-schedule > summary:hover {
  background: rgb(214 185 140 / 5%);
}

.delivery-bol-schedule[open] > summary {
  border-bottom: 1px solid var(--surface-border);
  background: rgb(214 185 140 / 4%);
}

.delivery-bol-schedule-summary h3 {
  margin: 6px 0 0;
  color: var(--white);
  font-size: 1.35rem;
}

.delivery-schedule-toggle {
  display: inline-flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgb(214 185 140 / 32%);
  border-radius: 999px;
  color: var(--lime-light);
  background: rgb(214 185 140 / 7%);
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.02em;
}

.delivery-schedule-toggle i {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 150ms ease;
}

.delivery-schedule-toggle-open {
  display: none;
}

.delivery-bol-schedule[open] .delivery-schedule-toggle-closed {
  display: none;
}

.delivery-bol-schedule[open] .delivery-schedule-toggle-open {
  display: inline;
}

.delivery-bol-schedule[open] .delivery-schedule-toggle i {
  transform: translateY(2px) rotate(225deg);
}

.delivery-bol-form {
  padding: 22px;
}

.delivery-bol-form-note {
  margin: 0 0 19px;
  color: #62584c;
  font-size: 0.7rem;
}

.delivery-bol-fields {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.delivery-bol-fields label {
  display: grid;
  gap: 7px;
}

.delivery-bol-fields label > span {
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
}

.delivery-bol-fields input,
.delivery-bol-fields select,
.delivery-bol-fields textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  color: var(--white);
  background: var(--input);
  font: inherit;
}

.delivery-bol-fields input,
.delivery-bol-fields select {
  min-height: 50px;
  padding: 0 14px;
}

.delivery-bol-fields textarea {
  min-height: 110px;
  padding: 13px 14px;
  resize: vertical;
}

.delivery-bol-fields input:focus,
.delivery-bol-fields select:focus,
.delivery-bol-fields textarea:focus {
  border-color: var(--lime);
  outline: 2px solid rgb(214 185 140 / 14%);
}

.delivery-bol-customer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.delivery-bol-customer h3 {
  margin: 8px 0 3px;
  color: var(--white);
  font-size: 1.45rem;
}

.delivery-bol-customer > strong {
  color: #62584c;
  font-size: 0.85rem;
}

.delivery-bol-customer > a {
  margin-top: 8px;
  color: #1f78a8;
  font-size: 0.78rem;
  font-weight: 750;
}

.delivery-progress-card {
  padding: 22px;
}

.delivery-progress-status {
  display: inline-flex;
  min-height: 30px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid #596059;
  border-radius: 999px;
  color: #62584c;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgb(255 255 255 / 4%);
}

.delivery-progress-status.is-assigned {
  border-color: rgb(100 174 255 / 40%);
  color: #1f78a8;
  background: rgb(63 127 194 / 12%);
}

.delivery-progress-status.is-picked-up {
  border-color: rgb(255 194 90 / 44%);
  color: #ffd68e;
  background: rgb(255 180 55 / 10%);
}

.delivery-progress-status.is-delivered {
  border-color: rgb(214 185 140 / 44%);
  color: var(--lime-light);
  background: rgb(214 185 140 / 10%);
}

.delivery-progress-locked,
.delivery-proof-record,
.delivery-complete-record,
.delivery-admin-complete-form {
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  background: rgb(255 255 255 / 48%);
}

.delivery-progress-locked {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px;
  color: #7d857c;
  cursor: not-allowed;
}

.delivery-progress-locked > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid #383d38;
  border-radius: 12px;
  background: #ffffff;
}

.delivery-progress-locked strong,
.delivery-proof-record strong,
.delivery-complete-record strong,
.delivery-admin-complete-form strong {
  color: var(--white);
  font-size: 0.82rem;
}

.delivery-progress-locked p,
.delivery-proof-record p,
.delivery-complete-record p,
.delivery-admin-complete-form p {
  margin: 4px 0 0;
  color: #62584c;
  font-size: 0.7rem;
  line-height: 1.45;
}

.delivery-proof-action {
  overflow: hidden;
  border: 1px solid rgb(100 174 255 / 35%);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgb(63 127 194 / 11%), transparent 60%),
    rgb(255 255 255 / 48%);
}

.delivery-proof-action.is-delivery {
  margin-top: 12px;
  border-color: rgb(214 185 140 / 32%);
}

.delivery-proof-action > summary {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px;
  color: var(--white);
  cursor: pointer;
  list-style: none;
}

.delivery-proof-action > summary::-webkit-details-marker {
  display: none;
}

.delivery-proof-action > summary > span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.delivery-proof-action > summary strong {
  font-size: 0.84rem;
}

.delivery-proof-action > summary small {
  color: #62584c;
  font-size: 0.68rem;
  line-height: 1.45;
}

.delivery-proof-action > summary > i {
  color: var(--lime-light);
  font-style: normal;
  transition: transform 150ms ease;
}

.delivery-proof-action[open] > summary {
  border-bottom: 1px solid var(--surface-border);
}

.delivery-proof-action[open] > summary > i {
  transform: rotate(90deg);
}

.delivery-proof-action > form {
  display: grid;
  gap: 15px;
  padding: 17px;
}

.delivery-proof-action > form .button {
  width: 100%;
  justify-content: space-between;
}

.delivery-proof-photo-field {
  display: grid;
  gap: 7px;
}

.delivery-proof-photo-field > span {
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 800;
}

.delivery-proof-photo-field input {
  width: 100%;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  color: var(--white);
  background: var(--input);
  font: inherit;
}

.delivery-proof-photo-field input::file-selector-button {
  min-height: 38px;
  margin-right: 10px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  color: #071003;
  background: var(--lime-light);
  font-weight: 850;
}

.delivery-proof-photo-field small {
  color: #62584c;
  font-size: 0.65rem;
  line-height: 1.45;
}

.delivery-camera-capture {
  display: grid;
  gap: 8px;
}

.delivery-camera-open {
  width: 100%;
  min-height: 58px;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgb(100 174 255 / 45%);
  color: #1f78a8;
  background:
    linear-gradient(135deg, rgb(63 127 194 / 17%), transparent 70%),
    #ffffff;
}

.delivery-camera-open:hover {
  border-color: rgb(214 185 140 / 52%);
}

.delivery-camera-open-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid rgb(214 185 140 / 32%);
  border-radius: 11px;
  color: var(--lime-light);
  background: rgb(214 185 140 / 8%);
}

.delivery-camera-open-icon svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.delivery-camera-open > span:nth-child(2) {
  margin-right: auto;
}

.delivery-camera-ready-message,
.delivery-camera-customer-note {
  margin: 0;
  color: #62584c;
  font-size: 0.66rem;
  line-height: 1.45;
}

.delivery-camera-capture.is-ready .delivery-camera-ready-message {
  color: var(--lime-light);
}

.has-delivery-camera-modal {
  overflow: hidden;
}

.delivery-camera-modal {
  position: fixed;
  z-index: 400;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
}

.delivery-camera-modal[hidden] {
  display: none !important;
}

.delivery-camera-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgb(0 0 0 / 84%);
  backdrop-filter: blur(5px);
}

.delivery-camera-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: min(580px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border: 1px solid rgb(214 185 140 / 38%);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 28px 90px rgb(0 0 0 / 72%);
}

.delivery-camera-dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--surface-border);
}

.delivery-camera-dialog > header h3 {
  margin: 6px 0 0;
  color: var(--white);
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

.delivery-camera-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid #455045;
  border-radius: 50%;
  color: var(--white);
  background: #ffffff;
  font-size: 1.55rem;
  line-height: 1;
}

.delivery-camera-viewport {
  position: relative;
  min-height: min(58dvh, 520px);
  overflow: hidden;
  background: #ffffff;
}

.delivery-camera-viewport video,
.delivery-camera-viewport img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.delivery-camera-viewport img {
  object-fit: contain;
}

.delivery-camera-viewport video[hidden],
.delivery-camera-viewport img[hidden] {
  display: none;
}

.delivery-camera-waiting {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  color: #62584c;
  text-align: center;
  background:
    radial-gradient(circle at center, rgb(63 127 194 / 15%), transparent 62%),
    #ffffff;
}

.delivery-camera-waiting[hidden] {
  display: none;
}

.delivery-camera-waiting > span {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgb(100 174 255 / 35%);
  border-radius: 20px;
  color: #1f78a8;
  background: rgb(63 127 194 / 11%);
}

.delivery-camera-waiting svg {
  width: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.delivery-camera-error {
  margin: 12px 16px 0;
  padding: 10px 12px;
  border: 1px solid rgb(255 104 104 / 42%);
  border-radius: 11px;
  color: #ffb1b1;
  font-size: 0.7rem;
  line-height: 1.45;
  background: rgb(255 70 70 / 9%);
}

.delivery-camera-error[hidden] {
  display: none;
}

.delivery-camera-dialog > footer {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--surface-border);
  background: #ffffff;
}

.delivery-camera-dialog > footer .button {
  min-width: 0;
  justify-content: center;
}

.delivery-camera-dialog > footer [hidden] {
  display: none;
}

.delivery-camera-take {
  width: 100%;
}

[data-delivery-camera-confirm]:disabled {
  border-color: #3b423b !important;
  color: #7d857c !important;
  background: #ffffff !important;
  cursor: not-allowed;
  opacity: 1;
}

.delivery-proof-record,
.delivery-complete-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 190px);
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.delivery-proof-record > div,
.delivery-complete-record > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.delivery-progress-check {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgb(214 185 140 / 42%);
  border-radius: 50%;
  color: #071003;
  background: var(--lime-light);
  font-size: 1rem;
  font-weight: 900;
}

.delivery-proof-photo-link {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  overflow: hidden;
  border: 1px solid rgb(100 174 255 / 30%);
  border-radius: 12px;
  color: #1f78a8;
  font-size: 0.67rem;
  font-weight: 800;
  text-decoration: none;
  background: rgb(63 127 194 / 9%);
}

.delivery-proof-photo-link img {
  width: 58px;
  height: 58px;
  object-fit: cover;
}

.delivery-proof-photo-link span {
  padding-right: 9px;
}

.delivery-proof-photo-link.is-delivery {
  border-color: rgb(214 185 140 / 28%);
  color: var(--lime-light);
  background: rgb(214 185 140 / 8%);
}

.delivery-admin-complete-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding: 15px;
}

.delivery-complete-record {
  margin-top: 12px;
  border-color: rgb(214 185 140 / 28%);
  background: rgb(214 185 140 / 6%);
}

.delivery-bol-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
}

.delivery-bol-table-wrap table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  background: rgb(255 255 255 / 40%);
}

.delivery-bol-table-wrap th,
.delivery-bol-table-wrap td {
  padding: 13px;
  border-bottom: 1px solid var(--surface-border);
  color: #62584c;
  font-size: 0.78rem;
  text-align: left;
}

.delivery-bol-table-wrap thead th {
  color: #62584c;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.delivery-bol-table-wrap td:first-child {
  display: grid;
  gap: 3px;
}

.delivery-bol-table-wrap td strong {
  color: var(--white);
  font-size: 0.9rem;
}

.delivery-bol-table-wrap td small {
  color: #62584c;
  font-size: 0.62rem;
}

.delivery-bol-table-wrap tfoot th,
.delivery-bol-table-wrap tfoot td {
  border-bottom: 0;
  color: var(--lime-light);
  font-size: 0.9rem;
  font-weight: 900;
}

.delivery-bol-table-wrap tfoot th {
  text-align: right;
}

.delivery-bol-print-page {
  min-height: 100vh;
  color: #111;
  background: #d9ddd8;
  font-family: Arial, Helvetica, sans-serif;
}

.delivery-print-toolbar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 5px 18px rgb(0 0 0 / 20%);
}

.delivery-print-toolbar a,
.delivery-print-toolbar button {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid #d6b98c;
  border-radius: 999px;
  color: #0b1505;
  background: #d6b98c;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 850;
  cursor: pointer;
}

.delivery-print-toolbar a {
  display: inline-flex;
  align-items: center;
  border-color: #dbe2d8;
  color: #111;
  background: #fff;
}

.delivery-bol-paper {
  width: min(8.5in, calc(100% - 24px));
  min-height: 11in;
  margin: 18px auto;
  padding: 0.42in 0.48in;
  color: #111;
  background: #fff;
  box-shadow: 0 10px 34px rgb(0 0 0 / 18%);
}

.delivery-paper-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  padding-bottom: 15px;
  border-bottom: 2px solid #111;
}

.delivery-paper-header section {
  display: grid;
  gap: 2px;
}

.delivery-paper-header h1,
.delivery-paper-header h2 {
  margin: 0;
  color: #111;
}

.delivery-paper-header h1 {
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.delivery-paper-header h2 {
  font-size: 1.7rem;
  text-align: right;
}

.delivery-paper-header span,
.delivery-paper-header strong {
  font-size: 0.68rem;
}

.delivery-paper-header strong {
  margin-top: 3px;
  text-align: right;
}

.delivery-paper-shipping {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.25in;
  gap: 0.35in;
  margin: 0.25in 0;
}

.delivery-paper-shipping dl,
.delivery-paper-acknowledgment dl {
  margin: 0;
}

.delivery-paper-shipping dl {
  display: grid;
  grid-template-columns: 0.95in minmax(0, 1fr);
  font-size: 0.66rem;
}

.delivery-paper-load dl {
  grid-template-columns: 0.9in minmax(0, 1fr);
}

.delivery-paper-shipping dt,
.delivery-paper-shipping dd {
  min-height: 0.22in;
  margin: 0;
  padding: 3px 5px;
  border-bottom: 1px solid #777;
}

.delivery-paper-shipping dt {
  padding-left: 0;
  font-weight: 700;
}

.delivery-paper-shipping dd {
  display: grid;
  align-content: center;
  font-weight: 600;
}

.delivery-paper-manifest {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.65rem;
}

.delivery-paper-manifest th,
.delivery-paper-manifest td {
  height: 0.27in;
  padding: 3px 5px;
  border: 1px solid #555;
  color: #111;
  text-align: left;
  vertical-align: middle;
}

.delivery-paper-manifest th:first-child {
  width: 1.55in;
}

.delivery-paper-manifest th:nth-child(3) {
  width: 1.35in;
}

.delivery-paper-manifest th:last-child {
  width: 0.7in;
  text-align: center;
}

.delivery-paper-manifest td:last-child {
  text-align: center;
}

.delivery-paper-manifest small {
  display: block;
  margin-top: 1px;
  color: #333;
  font-size: 0.52rem;
}

.delivery-paper-manifest tfoot th {
  border-right: 0;
  font-size: 0.75rem;
  text-align: right;
}

.delivery-paper-manifest tfoot td {
  border-left: 0;
  font-size: 0.82rem;
  font-weight: 800;
}

.delivery-paper-orders,
.delivery-paper-notes {
  display: grid;
  grid-template-columns: 1.15in minmax(0, 1fr);
  min-height: 0.3in;
  border: 1px solid #555;
  border-top: 0;
  font-size: 0.62rem;
}

.delivery-paper-orders strong,
.delivery-paper-notes strong,
.delivery-paper-orders span,
.delivery-paper-notes p {
  margin: 0;
  padding: 5px;
}

.delivery-paper-orders strong,
.delivery-paper-notes strong {
  border-right: 1px solid #555;
}

.delivery-paper-notes {
  min-height: 0.65in;
}

.delivery-paper-notes p {
  white-space: pre-wrap;
}

.delivery-paper-acknowledgment {
  margin-top: 0.22in;
  font-size: 0.58rem;
}

.delivery-paper-acknowledgment > p {
  margin: 0 0 0.18in;
  line-height: 1.35;
}

.delivery-paper-acknowledgment h3 {
  margin: 0 0 0.12in;
  color: #111;
  font-size: 0.7rem;
}

.delivery-paper-acknowledgment dl {
  display: grid;
  gap: 0.12in;
}

.delivery-paper-acknowledgment dl > div {
  display: grid;
  grid-template-columns: 0.65in minmax(0, 1fr);
  align-items: end;
}

.delivery-paper-acknowledgment dt,
.delivery-paper-acknowledgment dd {
  margin: 0;
}

.delivery-paper-acknowledgment dd {
  height: 0.18in;
  border-bottom: 1px solid #111;
}

@media (min-width: 760px) {
  .delivery-hub-hero {
    padding: 18px;
  }

  .delivery-bol-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: start;
  }

  .delivery-bol-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .delivery-field-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .delivery-hub-workspace,
  .delivery-bol-workspace {
    gap: 14px;
  }

  .delivery-hub-hero,
  .delivery-ready-section,
  .delivery-bol-history,
  .delivery-bol-heading,
  .delivery-bol-schedule,
  .delivery-bol-customer,
  .delivery-progress-card,
  .delivery-bol-pallets {
    padding: 16px;
    border-radius: 18px;
  }

  .delivery-hub-hero h2 {
    font-size: 1.65rem;
    line-height: 1.08;
  }

  .delivery-hub-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .delivery-hub-summary > div {
    grid-template-columns: 1fr;
    align-content: center;
    min-width: 0;
    padding: 11px 4px;
    text-align: center;
  }

  .delivery-hub-summary dt {
    font-size: clamp(0.5rem, 2.4vw, 0.62rem);
    line-height: 1.15;
  }

  .delivery-hub-summary dd {
    font-size: 1.45rem;
  }

  .delivery-ready-section .delivery-section-heading {
    align-items: flex-end;
    flex-direction: row;
    gap: 10px;
  }

  .delivery-ready-section .delivery-section-heading > span {
    text-align: right;
  }

  .delivery-customer-card > header,
  .delivery-bol-heading,
  .delivery-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .delivery-customer-count {
    min-width: 0;
    text-align: left;
  }

  .delivery-customer-card > header {
    padding: 16px 16px 12px;
  }

  .delivery-customer-card h3 {
    overflow-wrap: anywhere;
  }

  .delivery-payment-summary {
    padding: 0 16px 14px;
  }

  .delivery-payment-summary a {
    width: 100%;
    margin: 4px 0 0;
  }

  .delivery-order-list article {
    padding: 12px 16px;
  }

  .delivery-order-list article strong,
  .delivery-history-list strong {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .delivery-customer-card > form {
    padding: 14px 16px 16px;
  }

  .delivery-create-bol {
    min-height: 52px;
    gap: 12px;
    font-size: 0.8rem;
    line-height: 1.25;
    text-align: left;
  }

  .delivery-history-list > a {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .delivery-history-list > a > div:nth-child(2) {
    display: none;
  }

  .delivery-print-link {
    width: 100%;
  }

  .delivery-bol-schedule {
    padding: 0;
  }

  .delivery-bol-schedule > summary {
    align-items: flex-start;
    padding: 16px;
  }

  .delivery-bol-form {
    padding: 16px;
  }

  .delivery-schedule-toggle {
    min-height: 36px;
    padding: 0 11px;
  }

  .delivery-schedule-toggle-closed,
  .delivery-schedule-toggle-open {
    display: none !important;
  }

  .delivery-bol-fields input,
  .delivery-bol-fields select,
  .delivery-bol-fields textarea {
    font-size: 1rem;
  }

  .delivery-proof-record,
  .delivery-complete-record,
  .delivery-admin-complete-form {
    grid-template-columns: 1fr;
  }

  .delivery-proof-photo-link {
    width: 100%;
  }

  .delivery-camera-modal {
    padding: 0;
  }

  .delivery-camera-dialog {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .delivery-camera-dialog > header {
    padding: 14px 16px;
  }

  .delivery-camera-viewport {
    min-height: 0;
  }

  .delivery-camera-dialog > footer {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .delivery-camera-dialog > footer [data-delivery-camera-retake] {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .delivery-camera-dialog > footer [data-delivery-camera-close] {
    grid-column: 1;
    grid-row: 2;
  }

  .delivery-camera-dialog > footer [data-delivery-camera-take] {
    grid-column: 2;
    grid-row: 2;
  }

  .delivery-camera-modal.is-preview
    .delivery-camera-dialog
    > footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .delivery-camera-modal.is-preview
    .delivery-camera-dialog
    > footer
    [data-delivery-camera-retake] {
    grid-column: 2;
    grid-row: 1;
  }

  .delivery-camera-modal.is-preview
    .delivery-camera-dialog
    > footer
    [data-delivery-camera-close] {
    grid-column: 1;
    grid-row: 1;
  }

  .delivery-bol-table-wrap {
    overflow: visible;
    border: 0;
  }

  .delivery-bol-table-wrap table,
  .delivery-bol-table-wrap tbody,
  .delivery-bol-table-wrap tfoot {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .delivery-bol-table-wrap thead {
    display: none;
  }

  .delivery-bol-table-wrap tbody {
    display: grid;
    gap: 10px;
  }

  .delivery-bol-table-wrap tbody tr {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    background: rgb(255 255 255 / 52%);
  }

  .delivery-bol-table-wrap tbody td,
  .delivery-bol-table-wrap tbody td:first-child {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--surface-border);
    overflow-wrap: anywhere;
  }

  .delivery-bol-table-wrap tbody td:last-child {
    border-bottom: 0;
  }

  .delivery-bol-table-wrap tbody td::before {
    content: attr(data-label);
    color: #62584c;
    font-size: 0.6rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .delivery-bol-table-wrap tbody td:first-child > strong,
  .delivery-bol-table-wrap tbody td:first-child > small {
    grid-column: 2;
  }

  .delivery-bol-table-wrap tbody td:first-child::before {
    grid-row: 1 / span 2;
  }

  .delivery-bol-table-wrap tfoot tr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding: 12px 14px;
    border: 1px solid rgb(214 185 140 / 30%);
    border-radius: 14px;
    background: rgb(214 185 140 / 7%);
  }

  .delivery-bol-table-wrap tfoot th,
  .delivery-bol-table-wrap tfoot td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    text-align: left;
  }
}

.delivery-vendor-hub-link {
  min-width: 168px;
  min-height: 58px;
  margin-left: auto;
  padding: 0 24px;
  justify-content: center;
  font-size: 0.72rem;
  line-height: 1.1;
  white-space: nowrap;
}

.vendor-hub-workspace,
.vendor-portal-workspace {
  display: grid;
  gap: 18px;
}

.vendor-hub-summary,
.vendor-profile-heading,
.vendor-portal-heading,
.vendor-portal-heading dl {
  margin: 0;
}

.vendor-hub-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgb(214 185 140 / 6%), transparent 55%),
    var(--surface);
}

.vendor-hub-summary > div,
.vendor-portal-heading dl > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 11px 5px;
  border: 1px solid rgb(214 185 140 / 20%);
  border-radius: 13px;
  text-align: center;
  background: rgb(255 255 255 / 50%);
}

.vendor-hub-summary dt,
.vendor-portal-heading dt,
.vendor-profile-heading dt {
  color: #62584c;
  font-size: clamp(0.5rem, 2.4vw, 0.62rem);
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vendor-hub-summary dd,
.vendor-portal-heading dd,
.vendor-profile-heading dd {
  margin: 0;
  color: var(--lime-light);
  font-size: 1.45rem;
  font-weight: 900;
}

.vendor-form-card,
.vendor-directory,
.vendor-password-card,
.vendor-profile-heading,
.vendor-service-summary,
.vendor-portal-heading,
.vendor-deliveries {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgb(214 185 140 / 5%), transparent 52%),
    var(--surface);
}

.vendor-form-card,
.vendor-directory,
.vendor-password-card,
.vendor-profile-heading,
.vendor-service-summary,
.vendor-portal-heading,
.vendor-deliveries {
  padding: 20px;
}

.vendor-directory-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.vendor-create-button {
  min-width: 184px;
  min-height: 52px;
  padding: 0 17px;
  justify-content: center;
  gap: 8px;
  font-size: 0.68rem;
  line-height: 1.1;
  white-space: nowrap;
}

.vendor-create-button > span {
  color: currentColor;
  font-size: 1.1rem;
  line-height: 1;
}

.vendor-form-card > header h2,
.vendor-directory h2,
.vendor-password-card h2,
.vendor-profile-heading h2,
.vendor-portal-heading h1,
.vendor-deliveries h2 {
  margin: 7px 0 0;
  color: var(--white);
  letter-spacing: -0.035em;
}

.vendor-form-card > header > p:last-child,
.vendor-password-card > div > p:last-child,
.vendor-profile-heading > div > p,
.vendor-portal-heading > div > p {
  margin: 8px 0 0;
  color: #62584c;
  font-size: 0.8rem;
  line-height: 1.5;
}

.vendor-form {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.vendor-form-grid {
  display: grid;
  gap: 13px;
}

.vendor-form-grid > label {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.vendor-form-grid > label > span {
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 800;
}

.vendor-form-grid > label > span small {
  color: #62584c;
  font-size: 0.62rem;
  font-weight: 650;
}

.vendor-form-grid input,
.vendor-form-grid textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  color: var(--white);
  background: var(--input);
  font: inherit;
}

.vendor-create-modal {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 140ms ease,
    visibility 140ms ease;
}

.vendor-create-modal:target,
.vendor-create-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.vendor-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 78%);
  backdrop-filter: blur(4px);
}

.vendor-create-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px;
  border: 1px solid rgb(214 185 140 / 34%);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgb(214 185 140 / 7%), transparent 45%),
    #ffffff;
  box-shadow: 0 24px 80px rgb(0 0 0 / 65%);
}

.vendor-modal-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
}

.vendor-modal-heading h2 {
  margin: 7px 0 0;
  color: var(--white);
  letter-spacing: -0.035em;
}

.vendor-modal-heading > div > p:last-child {
  margin: 8px 0 0;
  color: #62584c;
  font-size: 0.78rem;
  line-height: 1.5;
}

.vendor-modal-close {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--surface-border);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.7rem;
  line-height: 1;
  text-decoration: none;
  background: #ffffff;
}

.vendor-form-grid input {
  min-height: 50px;
  padding: 0 14px;
}

.vendor-form-grid textarea {
  min-height: 118px;
  padding: 13px 14px;
  resize: vertical;
}

.vendor-form-grid input:focus,
.vendor-form-grid textarea:focus {
  border-color: var(--lime);
  outline: 2px solid rgb(214 185 140 / 14%);
}

.vendor-active-toggle {
  display: flex !important;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgb(214 185 140 / 22%);
  border-radius: 13px;
  background: rgb(214 185 140 / 6%);
}

.vendor-active-toggle input {
  width: 21px;
  min-height: 21px;
  flex: 0 0 21px;
  padding: 0;
  accent-color: var(--lime);
}

.vendor-list,
.vendor-assignment-list,
.vendor-delivery-list {
  display: grid;
  gap: 11px;
}

.vendor-card,
.vendor-assignment-list > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgb(100 174 255 / 22%);
  border-radius: 15px;
  color: inherit;
  text-decoration: none;
  background: rgb(255 255 255 / 45%);
}

.vendor-card h3 {
  margin: 7px 0 2px;
  color: var(--white);
  font-size: 1.1rem;
}

.vendor-card p,
.vendor-card small {
  display: block;
  margin: 0;
  color: #62584c;
  overflow-wrap: anywhere;
}

.vendor-city-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.vendor-city-badges > span {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgb(100 174 255 / 30%);
  border-radius: 999px;
  color: #1f78a8;
  font-size: 0.6rem;
  font-weight: 750;
  line-height: 1.1;
  background: rgb(63 127 194 / 12%);
}

.vendor-card p {
  font-size: 0.78rem;
}

.vendor-card small {
  margin-top: 4px;
  font-size: 0.67rem;
}

.vendor-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vendor-status.is-active {
  border-color: rgb(214 185 140 / 36%);
  color: var(--lime-light);
  background: rgb(214 185 140 / 8%);
}

.vendor-status.is-inactive {
  border-color: rgb(255 194 90 / 38%);
  color: #ffd68e;
  background: rgb(255 180 55 / 8%);
}

.vendor-card-counts {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 2px 5px;
  text-align: right;
}

.vendor-card-counts strong {
  color: var(--lime-light);
  font-size: 1rem;
}

.vendor-card-counts span {
  color: #62584c;
  font-size: 0.6rem;
}

.vendor-profile-heading,
.vendor-portal-heading {
  display: grid;
  gap: 16px;
}

.vendor-profile-heading dl,
.vendor-portal-heading dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}

.vendor-profile-heading dl > div {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid rgb(214 185 140 / 18%);
  border-radius: 13px;
  text-align: center;
  background: rgb(255 255 255 / 45%);
}

.vendor-service-summary {
  display: grid;
  gap: 10px;
}

.vendor-service-summary > div {
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 13px 14px;
  border: 1px solid rgb(100 174 255 / 20%);
  border-radius: 13px;
  background: rgb(255 255 255 / 45%);
}

.vendor-service-summary > div > span {
  color: #1f78a8;
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vendor-service-summary > div > strong {
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.5;
  white-space: pre-line;
}

.vendor-service-cities {
  grid-column: 1 / -1;
}

.vendor-service-cities .vendor-city-badges {
  margin-top: 0;
}

.vendor-password-card {
  display: grid;
  gap: 16px;
}

.vendor-password-card form,
.vendor-password-card button {
  width: 100%;
}

.vendor-assignment-list > a > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.vendor-assignment-list strong {
  color: var(--white);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.vendor-assignment-list span {
  color: #62584c;
  font-size: 0.65rem;
}

.vendor-empty {
  padding: 30px 16px;
}

.vendor-delivery-card {
  overflow: hidden;
  border: 1px solid rgb(100 174 255 / 25%);
  border-radius: 17px;
  background:
    linear-gradient(135deg, rgb(63 127 194 / 9%), transparent 55%),
    #ffffff;
}

.vendor-delivery-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 17px;
}

.vendor-delivery-card > header span {
  color: #1f78a8;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.vendor-delivery-card h3 {
  margin: 5px 0 2px;
  color: var(--white);
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

.vendor-delivery-card > header p {
  margin: 0;
  color: #62584c;
  font-size: 0.72rem;
}

.vendor-delivery-card > header > strong {
  flex: 0 0 auto;
  color: var(--lime-light);
  font-size: 0.74rem;
}

.vendor-delivery-timing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 0 17px 15px;
}

.vendor-delivery-timing section {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 12px;
  border: 1px solid rgb(214 185 140 / 18%);
  border-radius: 13px;
  background: rgb(255 255 255 / 50%);
}

.vendor-delivery-timing span,
.vendor-delivery-details dt {
  color: #62584c;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vendor-delivery-timing strong {
  color: var(--white);
  font-size: 0.76rem;
}

.vendor-delivery-timing small {
  color: var(--lime-light);
  font-size: 0.66rem;
}

.vendor-delivery-details {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--surface-border);
}

.vendor-delivery-details > div {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 17px;
  border-bottom: 1px solid var(--surface-border);
}

.vendor-delivery-details dd {
  display: grid;
  gap: 2px;
  margin: 0;
  color: var(--white);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.vendor-delivery-details a {
  color: #1f78a8;
}

.vendor-delivery-notes {
  padding: 13px 17px;
  border-bottom: 1px solid var(--surface-border);
}

.vendor-delivery-notes strong {
  color: var(--white);
  font-size: 0.7rem;
}

.vendor-delivery-notes p {
  margin: 5px 0 0;
  color: #62584c;
  font-size: 0.72rem;
  line-height: 1.5;
}

.vendor-delivery-card-status {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  gap: 7px;
}

.vendor-delivery-card-status > strong {
  color: var(--lime-light);
  font-size: 0.74rem;
}

.vendor-delivery-actions {
  display: grid;
  padding: 15px 17px 0;
}

.vendor-delivery-bol-link {
  padding: 15px 17px 17px;
}

.vendor-delivery-bol-link .button {
  width: 100%;
  justify-content: space-between;
}

.customer-delivery-schedule {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 9px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgb(100 174 255 / 28%);
  border-radius: 12px;
  background: rgb(63 127 194 / 8%);
}

.customer-delivery-schedule strong {
  color: #1f78a8;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.customer-delivery-schedule span {
  color: var(--white);
  font-size: 0.72rem;
}

.customer-delivery-schedule small {
  color: var(--lime-light);
  font-size: 0.65rem;
}

.customer-delivery-proofs {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 5px;
}

.customer-delivery-proofs a {
  display: grid;
  grid-template-columns: 46px auto;
  align-items: center;
  gap: 8px;
  min-width: 125px;
  overflow: hidden;
  border: 1px solid rgb(100 174 255 / 25%);
  border-radius: 10px;
  color: #1f78a8;
  font-size: 0.62rem;
  font-weight: 800;
  text-decoration: none;
  background: rgb(255 255 255 / 42%);
}

.customer-delivery-proofs img {
  width: 46px;
  height: 46px;
  object-fit: cover;
}

.customer-delivery-proofs span {
  padding-right: 8px;
  color: inherit;
  font-size: inherit;
}

.delivery-paper-schedule {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 0.14in;
  border: 1px solid #111;
  color: #111;
}

.delivery-paper-schedule > div {
  display: grid;
  min-width: 0;
  gap: 0.03in;
  padding: 0.07in;
  border-right: 1px solid #111;
}

.delivery-paper-schedule > div:last-child {
  border-right: 0;
}

.delivery-paper-schedule strong {
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.delivery-paper-schedule span {
  font-size: 0.58rem;
  overflow-wrap: anywhere;
}

@media (min-width: 760px) {
  .vendor-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vendor-field-wide {
    grid-column: 1 / -1;
  }

  .vendor-profile-heading,
  .vendor-portal-heading {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: center;
  }

  .vendor-password-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .vendor-service-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .delivery-hub-workspace .compact-page-bar {
    flex-wrap: wrap;
  }

  .delivery-vendor-hub-link {
    width: 100%;
    min-height: 58px;
    margin-left: 0;
  }

  .vendor-hub-workspace,
  .vendor-portal-workspace {
    gap: 13px;
  }

  .vendor-form-card,
  .vendor-directory,
  .vendor-password-card,
  .vendor-profile-heading,
  .vendor-service-summary,
  .vendor-portal-heading,
  .vendor-deliveries {
    padding: 16px;
    border-radius: 18px;
  }

  .vendor-form-grid input,
  .vendor-form-grid textarea {
    font-size: 1rem;
  }

  .vendor-directory-heading {
    grid-template-columns: 1fr;
  }

  .vendor-create-button {
    width: 100%;
  }

  .vendor-create-modal {
    align-items: end;
    padding: 0;
  }

  .vendor-create-panel {
    width: 100%;
    max-height: 94dvh;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 22px 22px 0 0;
  }

  .vendor-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .vendor-card-counts {
    display: none;
  }

  .vendor-assignment-list > a {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .vendor-assignment-list > a > div:nth-child(2) {
    display: none;
  }

  .vendor-delivery-timing {
    grid-template-columns: 1fr;
  }

  .vendor-delivery-card > header {
    align-items: flex-start;
  }

  .vendor-delivery-card-status {
    max-width: 120px;
  }

  .vendor-delivery-card-status .delivery-progress-status {
    min-height: 27px;
    font-size: 0.54rem;
    text-align: center;
  }

  .customer-delivery-schedule {
    grid-template-columns: 1fr;
  }

  .customer-delivery-proofs {
    grid-column: auto;
  }
}

@media screen and (max-width: 700px) {
  .delivery-bol-print-page {
    overflow-x: hidden;
    padding-bottom: 10px;
  }

  .delivery-print-toolbar {
    position: static;
    gap: 8px;
    padding: 10px;
  }

  .delivery-print-toolbar a,
  .delivery-print-toolbar button {
    display: inline-flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    text-align: center;
  }

  .delivery-bol-paper {
    width: calc(100% - 16px);
    min-height: 0;
    margin: 8px;
    padding: 18px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 7px 24px rgb(0 0 0 / 16%);
  }

  .delivery-paper-header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 12px;
  }

  .delivery-paper-header h1 {
    font-size: 1.05rem;
  }

  .delivery-paper-header h2,
  .delivery-paper-header strong {
    text-align: left;
  }

  .delivery-paper-header h2 {
    font-size: 1.45rem;
  }

  .delivery-paper-header span,
  .delivery-paper-header strong {
    font-size: 0.72rem;
  }

  .delivery-paper-shipping {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 18px 0;
  }

  .delivery-paper-shipping dl,
  .delivery-paper-load dl {
    grid-template-columns: 105px minmax(0, 1fr);
    font-size: 0.74rem;
  }

  .delivery-paper-shipping dt,
  .delivery-paper-shipping dd {
    min-height: 34px;
    padding: 6px 5px;
    overflow-wrap: anywhere;
  }

  .delivery-paper-schedule {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 16px;
  }

  .delivery-paper-schedule > div,
  .delivery-paper-schedule > div:last-child {
    grid-template-columns: 105px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 9px;
    border-right: 0;
    border-bottom: 1px solid #bbb;
  }

  .delivery-paper-schedule > div:last-child {
    border-bottom: 0;
  }

  .delivery-paper-schedule strong,
  .delivery-paper-schedule span {
    font-size: 0.7rem;
  }

  .delivery-paper-manifest,
  .delivery-paper-manifest tbody,
  .delivery-paper-manifest tfoot {
    display: block;
    width: 100%;
    table-layout: auto;
    font-size: 0.76rem;
  }

  .delivery-paper-manifest thead,
  .delivery-paper-empty-row {
    display: none;
  }

  .delivery-paper-manifest tbody {
    display: grid;
    gap: 10px;
  }

  .delivery-paper-manifest-row {
    display: grid;
    overflow: hidden;
    border: 1px solid #8b8b8b;
    border-radius: 9px;
  }

  .delivery-paper-manifest-row td,
  .delivery-paper-manifest-row td:last-child {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    height: auto;
    min-height: 38px;
    padding: 7px 9px;
    border: 0;
    border-bottom: 1px solid #d1d1d1;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .delivery-paper-manifest-row td:last-child {
    border-bottom: 0;
  }

  .delivery-paper-manifest-row td::before {
    content: attr(data-label);
    color: #555;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .delivery-paper-manifest small {
    margin-top: 3px;
    font-size: 0.6rem;
  }

  .delivery-paper-manifest tfoot tr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding: 10px 12px;
    border: 2px solid #111;
  }

  .delivery-paper-manifest tfoot th,
  .delivery-paper-manifest tfoot td {
    display: block;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    text-align: left;
  }

  .delivery-paper-orders,
  .delivery-paper-notes {
    grid-template-columns: 1fr;
    margin-top: 10px;
    border-top: 1px solid #555;
    font-size: 0.72rem;
  }

  .delivery-paper-orders strong,
  .delivery-paper-notes strong {
    border-right: 0;
    border-bottom: 1px solid #555;
  }

  .delivery-paper-acknowledgment {
    margin-top: 18px;
    font-size: 0.68rem;
  }

  .delivery-paper-acknowledgment > p {
    margin-bottom: 16px;
  }

  .delivery-paper-acknowledgment dl {
    gap: 12px;
  }

  .delivery-paper-acknowledgment dl > div {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .delivery-paper-acknowledgment dd {
    height: 24px;
  }
}

@media print {
  @page {
    size: letter portrait;
    margin: 0;
  }

  .delivery-bol-print-page {
    background: #fff;
  }

  .delivery-print-toolbar {
    display: none !important;
  }

  .delivery-bol-paper {
    width: 8.5in;
    min-height: 11in;
    margin: 0;
    padding: 0.38in 0.45in;
    box-shadow: none;
  }
}

