.delivery-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:18px; }
.delivery-toolbar .admin-search { flex:1; min-width:220px; }
.delivery-toolbar button { min-height:44px; }
.delivery-heading { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.delivery-heading h2 { font-size:20px; margin:0; }
.delivery-heading p { font-size:13px; color:#64748b; margin:0; }
.delivery-table { width:100%; border-collapse:collapse; font-size:15px; }
.delivery-table th,.delivery-table td { padding:16px 14px; text-align:left; border-bottom:1px solid #e2e8f0; }
.delivery-table th { color:#475569; background:#f8fafc; font-size:13px; }
.delivery-table tr[data-delivery-row] { cursor:pointer; }
.delivery-table tr[data-delivery-row]:hover { background:#f8fafc; }
.delivery-table small,.delivery-lines small { display:block; margin-top:5px; color:#64748b; font-size:12px; }
.delivery-table td:nth-child(2) { min-width:180px; }
.delivery-table td:first-child { white-space:nowrap; }
.delivery-date-filter { display:flex; align-items:center; gap:8px; font-size:14px; }
.delivery-date-filter select { min-height:44px; max-width:100%; padding:8px; border:1px solid #cbd5e1; border-radius:6px; background:white; font:inherit; }
.delivery-table small.delivery-kind { display:table; padding:3px 7px; border-radius:4px; font-weight:600; }
.delivery-kind.order { background:#fffbeb; color:#92400e; }
.delivery-kind.invoice { background:#ecfdf5; color:#166534; }
.delivery-amount { white-space:nowrap; font-weight:600; }
.delivery-address { max-width:420px; overflow-wrap:anywhere; white-space:pre-line; line-height:1.6; }
.delivery-invoice-link { border:0; background:transparent; color:#1d4ed8; padding:10px 0; font:inherit; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.delivery-invoice-link:focus-visible { outline:2px solid #2563eb; outline-offset:3px; border-radius:3px; }
#delivery-message { padding:36px 20px; text-align:center; color:#64748b; }
.delivery-dialog { width:min(900px,calc(100vw - 24px)); }
#delivery-detail-body { padding:20px 24px; overflow:auto; }
.delivery-details { display:grid; grid-template-columns:1fr 1fr; gap:18px 24px; margin:0 0 24px; }
.delivery-details dt { font-size:12px; color:#64748b; margin-bottom:5px; }
.delivery-details dd { margin:0; font-size:15px; line-height:1.6; overflow-wrap:anywhere; white-space:pre-line; }
.delivery-lines-wrap { overflow-x:auto; }
.delivery-lines { width:100%; border-collapse:collapse; font-size:14px; }
.delivery-lines th,.delivery-lines td { padding:12px 8px; border-bottom:1px solid #e2e8f0; text-align:right; white-space:nowrap; }
.delivery-lines th:first-child,.delivery-lines td:first-child { text-align:left; white-space:normal; min-width:140px; }
.delivery-total { max-width:320px; margin:20px 0 0 auto; }
.delivery-total p { display:flex; justify-content:space-between; gap:24px; }
.delivery-total strong { font-size:19px; }
@media(max-width:700px) {
  .delivery-toolbar .admin-search { flex-basis:100%; min-width:0; }
  .delivery-table thead { display:none; }
  .delivery-table,.delivery-table tbody,.delivery-table tr { display:block; }
  .delivery-table tr { padding:14px; border-bottom:1px solid #cbd5e1; }
  .delivery-table td { display:grid; grid-template-columns:74px minmax(0,1fr); gap:4px 10px; padding:7px 0; border:0; min-width:0; max-width:none; }
  .delivery-table td::before { content:attr(data-label); color:#64748b; font-size:13px; font-weight:400; }
  .delivery-table td:nth-child(2) { min-width:0; }
  .delivery-table td small { grid-column:2; margin:0; }
  .delivery-invoice-link { justify-self:start; padding:4px 0; }
  .delivery-details { grid-template-columns:1fr; }
  #delivery-detail-body { padding:18px 14px; }
  .delivery-dialog .dialog-heading { padding:18px 14px; }
}
