.courier-search-form {
  align-items: stretch;
  gap: 10px;
  margin-bottom: 18px;
  display: flex;
}

.courier-search-form input {
  flex: 1;
  min-width: 0;
  font-size: 16px;
}

.courier-search-results {
  gap: 8px;
  display: grid;
}

.courier-search-result {
  text-align: left;
  border: 1px solid var(--theme-border, #dae2ec);
  background: var(--theme-surface, #fff);
  color: var(--theme-text, #17313d);
  cursor: pointer;
  border-radius: 10px;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  display: grid;
}

.courier-search-result:hover, .courier-search-result:focus-visible {
  border-color: var(--theme-accent, #1769ff);
}

.courier-search-result small {
  color: var(--theme-accent, #1769ff);
}

.courier-search-result span {
  color: var(--theme-muted, #526476);
  font-size: 13px;
}

.courier-search-result :is(strong, span) {
  overflow-wrap: anywhere;
}

.courier-search-details {
  grid-template-columns: minmax(85px, .4fr) minmax(0, 1fr);
  gap: 12px;
  margin: 0 0 24px;
  display: grid;
}

.courier-search-details dt {
  font-weight: 600;
}

.courier-search-details dd {
  overflow-wrap: anywhere;
  margin: 0;
}

.courier-pdf-help {
  color: var(--theme-muted, #526476);
  font-size: 13px;
  line-height: 1.5;
}

.pdf-report-options {
  gap: 12px;
  display: grid;
}

.pdf-report-options .button {
  text-align: left;
  white-space: normal;
  justify-content: flex-start;
  min-height: 48px;
}

.courier-search-form .button {
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .courier-search-form {
    flex-direction: column;
  }

  .courier-search-details {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .courier-search-details dd {
    margin-bottom: 10px;
  }
}

html .modal .modal-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  display: grid;
}

html .modal .modal-head > div {
  min-width: 0;
}

html .modal .modal-head > .button {
  white-space: nowrap;
  justify-self: end;
  min-width: 64px;
  width: auto !important;
}

html .modal .modal-head :is(h2, p) {
  overflow-wrap: anywhere;
  word-break: normal;
}

html .modal .modal-body {
  min-height: 0;
}

html .modal-backdrop .modal {
  background: var(--theme-surface, #fff);
}

html .showcase-app .showcase-dashboard .button {
  background: var(--theme-surface-raised);
  color: var(--theme-text);
  border-color: var(--theme-border);
}

html .showcase-app .showcase-dashboard .button.primary {
  background: var(--theme-accent);
  color: var(--theme-accent-contrast);
  border-color: var(--theme-accent);
}

html .showcase-app .sx-money {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
  overflow: visible;
}
