/* Truelimbs v5.7 — shared PO item preview and full item details. */
#page-purchaseorders .v534-items-cell { min-width: 244px; max-width: 360px; }
.tl-poi57-preview, .tl-poi57-preview *, .tl-poi57-dialog, .tl-poi57-dialog * { box-sizing: border-box; }
.tl-poi57-preview { width: 100%; min-width: 0; border: 1px solid #dce7ed; border-radius: 9px; background: #f8fafc; color: #19394f; overflow: hidden; font-size: 11px; line-height: 1.4; }
.tl-poi57-summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 3px 12px; padding: 7px 10px; border-bottom: 1px solid #e4ebf0; background: #f0f5f8; }
.tl-poi57-summary > strong { font-size: 10.5px; font-weight: 750; }
.tl-poi57-summary > span { color: #617786; font-size: 10px; white-space: nowrap; }
.tl-poi57-summary > span b { color: #24465a; margin-left: 3px; font-variant-numeric: tabular-nums; }
.tl-poi57-preview-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 8px 10px; background: #fff; }
.tl-poi57-preview-row + .tl-poi57-preview-row { border-top: 1px solid #edf1f4; }
.tl-poi57-product { min-width: 0; }
.tl-poi57-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; font-size: 11.5px; font-weight: 650; line-height: 1.45; color: #1b384d; }
.tl-poi57-code { display: block; margin-top: 3px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #627887; font-size: 9.5px; font-weight: 500; }
.tl-poi57-qty { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 3px 7px; border: 1px solid #d5e5eb; border-radius: 6px; background: #edf5f8; white-space: nowrap; color: #16536a; }
.tl-poi57-qty small { color: #466b7c; font-size: 9px; font-weight: 500; }
.tl-poi57-qty b { font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tl-poi57-preview-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; border-top: 1px solid #e4ebf0; padding: 3px 8px; }
.tl-poi57-more { color: #657c8c; font-size: 10px; padding-left: 2px; }
.tl-poi57-view { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-left: auto; border: 0; border-radius: 5px; padding: 5px 3px; min-height: 28px; background: transparent; color: #126780; font: 700 10.5px/1.35 Arial, sans-serif; text-align: left; cursor: pointer; }
.tl-poi57-view:hover { color: #0b3d52; background: #e4eef3; }
.tl-poi57-view:focus-visible, .tl-poi57-dialog button:focus-visible { outline: 2px solid #1681a2; outline-offset: 2px; }
.tl-poi57-empty { margin: 0; padding: 10px; color: #657c8c; }
.tl5613423-po-card > .tl-poi57-card-items { padding: 12px 15px; border-bottom: 1px solid #e6edf1; }
.tl5613423-po-card .tl-poi57-name { font-size: 12px; }
.tl5613423-po-card .tl-poi57-code { font-size: 10px; }
body.tl-poi57-open { overflow: hidden; }
.tl-poi57-dialog { position: fixed; inset: 0; margin: auto; padding: 0; width: min(850px, calc(100vw - 40px)); max-width: calc(100vw - 40px); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); border: 1px solid #d6e2ea; border-radius: 16px; background: #fff; color: #19394f; box-shadow: 0 24px 90px #071b3655; font: 14px/1.5 Arial, sans-serif; overflow: hidden; }
.tl-poi57-dialog[open] { display: flex; flex-direction: column; }
.tl-poi57-dialog::backdrop { background: #0d213977; }
.tl-poi57-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 26px 19px; border-bottom: 1px solid #e1e9ef; background: #f9fbfd; flex-shrink: 0; }
.tl-poi57-dialog-head > div { min-width: 0; }
.tl-poi57-eyebrow { display: block; margin-bottom: 4px; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .09em; color: #638091; }
.tl-poi57-dialog-head h2 { margin: 0; font: 750 24px/1.25 Arial, sans-serif; letter-spacing: -.025em; overflow-wrap: anywhere; color: #16364e; }
.tl-poi57-dialog-head p { margin: 6px 0 0; color: #667e8e; font-size: 12px; overflow-wrap: anywhere; }
.tl-poi57-close { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid #dbe5eb; border-radius: 9px; color: #426174; background: #fff; font: 400 25px/1 Arial, sans-serif; cursor: pointer; }
.tl-poi57-close:hover { background: #eaf1f6; color: #16364e; }
.tl-poi57-dialog-content { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 20px 26px 24px; }
.tl-poi57-totals { display: flex; gap: 36px; margin: 0 0 20px; }
.tl-poi57-totals > div { padding-right: 36px; min-width: 90px; }
.tl-poi57-totals > div + div { border-left: 1px solid #e0e8ee; padding-left: 32px; }
.tl-poi57-totals dt { color: #658092; font-size: 11px; }
.tl-poi57-totals dd { margin: 2px 0 0; font: 750 26px/1.2 Arial, sans-serif; color: #173d55; font-variant-numeric: tabular-nums; }
.tl-poi57-search { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; }
.tl-poi57-search-field { display: flex; align-items: center; flex: 1; min-width: 0; min-height: 41px; padding: 0 11px; gap: 8px; background: #fafcfd; border: 1px solid #d9e3ea; border-radius: 8px; }
.tl-poi57-search-field:focus-within { border-color: #39849b; box-shadow: 0 0 0 2px #37849b17; }
.tl-poi57-search-field svg { flex: 0 0 17px; width: 17px; height: 17px; stroke: #72909f; stroke-width: 1.8; fill: none; }
.tl-poi57-search-field input { flex: 1; min-width: 0; width: 100%; padding: 10px 0; border: 0; outline: 0; background: transparent; color: #19394f; font: 12px Arial, sans-serif; }
.tl-poi57-search-field input::-webkit-search-cancel-button { display: none; }
.tl-poi57-search-field input::placeholder { color: #6f8493; }
.tl-poi57-search-field button { flex-shrink: 0; width: 28px; height: 28px; border: 0; border-radius: 5px; background: transparent; color: #4c6b7e; font-size: 20px; cursor: pointer; }
.tl-poi57-search > span { flex-shrink: 0; color: #688191; font-size: 11px; }
.tl-poi57-detail-list { margin: 0; padding: 0; list-style: none; border: 1px solid #dfe7ed; border-radius: 11px; overflow: hidden; }
.tl-poi57-detail-list:empty { display: none; }
.tl-poi57-detail-row { display: grid; grid-template-columns: 25px minmax(0, 1fr) auto; align-items: start; gap: 14px; padding: 16px; background: #fff; }
.tl-poi57-detail-row + .tl-poi57-detail-row { border-top: 1px solid #e4ebf0; }
.tl-poi57-detail-row:nth-child(even) { background: #fbfcfd; }
.tl-poi57-index { padding-top: 2px; color: #92a2ae; font-size: 11px; font-variant-numeric: tabular-nums; }
.tl-poi57-detail-product { min-width: 0; }
.tl-poi57-detail-product h3 { margin: 0; font: 650 14px/1.5 Arial, sans-serif; color: #203e54; overflow-wrap: anywhere; white-space: pre-wrap; }
.tl-poi57-detail-code { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 5px 0 0; font-size: 11px; color: #638093; overflow-wrap: anywhere; }
.tl-poi57-detail-code b { color: #416b80; font-size: 11px; font-weight: 600; }
.tl-poi57-attributes { display: flex; flex-wrap: wrap; gap: 5px 14px; margin: 8px 0 0; font-size: 11px; }
.tl-poi57-attributes > div { display: flex; gap: 5px; min-width: 0; }
.tl-poi57-attributes dt { color: #788d9b; }
.tl-poi57-attributes dd { margin: 0; color: #3f6074; overflow-wrap: anywhere; }
.tl-poi57-spec { white-space: pre-wrap; overflow-wrap: anywhere; margin: 7px 0 0; color: #647d8e; font-size: 12px; line-height: 1.55; }
.tl-poi57-detail-qty { display: flex; align-items: center; flex-direction: column; gap: 2px; min-width: 65px; padding: 6px 10px; background: #edf5f8; border: 1px solid #d9e8ef; border-radius: 8px; color: #16536a; white-space: nowrap; }
.tl-poi57-detail-qty small { color: #668493; font-size: 9px; }
.tl-poi57-detail-qty b { font-size: 16px; font-weight: 750; line-height: 1.3; font-variant-numeric: tabular-nums; }
.tl-poi57-no-results { margin: 0; padding: 32px 16px; border: 1px dashed #cfdee7; border-radius: 10px; text-align: center; color: #648092; }
.tl-poi57-dialog-foot { display: flex; flex-shrink: 0; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 26px; border-top: 1px solid #e2eaf0; background: #fbfcfd; }
.tl-poi57-dialog-foot > span { color: #708897; font-size: 11px; }
.tl-poi57-done { padding: 9px 22px; border: 1px solid #173d55; border-radius: 8px; background: #173d55; color: #fff; font: 650 12px/1.3 Arial, sans-serif; cursor: pointer; }
.tl-poi57-done:hover { background: #245571; }
.tl-poi57-dialog [hidden] { display: none !important; }
.tl-poi57-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: 760px) {
  .tl-poi57-view { min-height: 40px; font-size: 12px; padding: 8px 4px; }
  .tl-poi57-name, .tl5613423-po-card .tl-poi57-name { font-size: 13px; }
  .tl-poi57-summary > strong, .tl-poi57-summary > span { font-size: 11px; }
  .tl-poi57-code, .tl5613423-po-card .tl-poi57-code { font-size: 10.5px; }
  .tl-poi57-qty { min-height: 28px; }
  .tl-poi57-qty b { font-size: 12px; }
  .tl-poi57-dialog { width: calc(100vw - 16px); max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
  .tl-poi57-dialog-head { padding: 17px 16px 14px; gap: 10px; }
  .tl-poi57-dialog-head h2 { font-size: 21px; }
  .tl-poi57-dialog-content { padding: 16px 14px; }
  .tl-poi57-close { width: 44px; height: 44px; }
  .tl-poi57-search { flex-wrap: wrap; gap: 7px; }
  .tl-poi57-search-field { flex-basis: 100%; padding-right: 4px; }
  .tl-poi57-search-field input { font-size: 16px; min-height: 44px; }
  .tl-poi57-search-field button { width: 40px; height: 40px; }
  .tl-poi57-search > span { margin-left: auto; }
  .tl-poi57-totals { gap: 16px; margin-bottom: 16px; }
  .tl-poi57-totals > div { padding-right: 8px; }
  .tl-poi57-totals > div + div { padding-left: 20px; }
  .tl-poi57-detail-row { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; padding: 13px 10px; }
  .tl-poi57-detail-product h3 { font-size: 13px; }
  .tl-poi57-detail-qty { min-width: 47px; max-width: 100%; padding: 5px 6px; }
  .tl-poi57-detail-qty b { font-size: 14px; }
  .tl-poi57-detail-qty small { font-size: 8px; }
  .tl-poi57-dialog-foot { padding: 10px 14px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .tl-poi57-dialog-foot > span { max-width: calc(100% - 90px); font-size: 10px; }
  .tl-poi57-done { min-height: 44px; }
}
@media (max-width: 380px) {
  .tl-poi57-detail-row { grid-template-columns: minmax(0, 1fr) auto; }
  .tl-poi57-index { display: none; }
}
@media print {
  .tl-poi57-dialog { display: none !important; }
  .tl-poi57-preview-foot { display: none; }
}
