/* Purchase Orders target UI: Operations-owned, progressive and mobile-safe. */
#purchasingSection.po-target-ui {
  --po-navy: #07264f;
  --po-teal: #0e9fa4;
  --po-teal-soft: #e8f8f8;
  --po-line: #d9e4ef;
  --po-bg: #f4f7fb;
  --po-ink: #10203d;
  --po-muted: #63728a;
  display: grid;
  gap: 14px;
  color: var(--po-ink);
}

#purchasingSection.po-target-ui > .quote-dashboard-hero {
  padding: 16px 18px;
  border-radius: 16px;
  border-color: var(--po-line);
  background: #fff;
  box-shadow: 0 8px 24px rgba(7, 38, 79, 0.06);
}
#purchasingSection.po-target-ui > .quote-dashboard-hero .panel-header { align-items: center; }
#purchasingSection.po-target-ui > .quote-dashboard-hero h3 { margin: 2px 0 0; font-size: clamp(1.25rem, 2vw, 1.7rem); }
#purchasingSection.po-target-ui > .quote-dashboard-hero .muted { margin: 5px 0 0; max-width: 720px; font-size: 0.84rem; line-height: 1.45; }
#purchasingSection.po-target-ui .purchasing-header-actions { margin-left: auto; }
#purchasingSection.po-target-ui .purchasing-header-actions .pill { order: -1; }
#poTargetNewButton { background: var(--po-teal); border-color: var(--po-teal); color: #fff; font-weight: 800; }

#purchasingSection.po-target-ui > .quote-dashboard-hero .quote-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
#purchasingSection.po-target-ui > .quote-dashboard-hero .quote-summary-card {
  min-height: 74px;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1px solid var(--po-line);
  background: #fbfdff;
  box-shadow: none;
}
#purchasingSection.po-target-ui > .quote-dashboard-hero .quote-summary-card span { font-size: 0.72rem; }
#purchasingSection.po-target-ui > .quote-dashboard-hero .quote-summary-card strong { display: block; margin-top: 4px; font-size: 1.4rem; line-height: 1; color: var(--po-navy); }
#purchasingSection.po-target-ui > .quote-dashboard-hero .quote-summary-card p { display: none; }

.po-target-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--po-line);
  border-radius: 15px;
  background: #fff;
}
.po-target-search { position: relative; display: block; }
.po-target-search::before { content: "⌕"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--po-muted); font-size: 1.2rem; }
.po-target-search input { width: 100%; min-height: 44px; padding: 10px 14px 10px 38px; border: 1px solid var(--po-line); border-radius: 11px; background: #fff; color: var(--po-ink); font: inherit; }
.po-target-filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.po-target-filters::-webkit-scrollbar { display: none; }
.po-target-filters button { min-height: 40px; flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--po-line); border-radius: 10px; background: #fff; color: var(--po-muted); font: inherit; font-size: 0.77rem; font-weight: 800; cursor: pointer; }
.po-target-filters button.is-active { border-color: var(--po-navy); background: var(--po-navy); color: #fff; }

#purchasingSection.po-target-ui .purchasing-workspace-grid { display: block; }
#purchasingSection.po-target-ui .purchasing-detail-grid { grid-template-columns: minmax(285px, 0.72fr) minmax(0, 1.28fr); gap: 14px; }
#purchasingSection.po-target-ui .quote-recent-panel,
#purchasingSection.po-target-ui .purchasing-detail-panel { min-width: 0; padding: 14px; border: 1px solid var(--po-line); border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(7, 38, 79, 0.05); }
#purchasingSection.po-target-ui .quote-recent-panel .panel-header,
#purchasingSection.po-target-ui .purchasing-detail-panel > .panel-header { margin-bottom: 8px; }
#purchasingSection.po-target-ui .quote-recent-panel .eyebrow,
#purchasingSection.po-target-ui .purchasing-detail-panel > .panel-header .muted { display: none; }
#purchasingSection.po-target-ui .quote-recent-panel h3 { font-size: 1.05rem; }
#purchasingSection.po-target-ui .quote-recent-item { min-height: 76px; margin-bottom: 8px; padding: 12px; border: 1px solid var(--po-line); border-radius: 12px; background: #fff; text-align: left; }
#purchasingSection.po-target-ui .quote-recent-item:hover { border-color: rgba(14,159,164,.48); background: #fbffff; }
#purchasingSection.po-target-ui .quote-recent-item.is-active { border-color: var(--po-teal); box-shadow: inset 3px 0 0 var(--po-teal), 0 8px 20px rgba(14,159,164,.1); }
#purchasingSection.po-target-ui .quote-recent-item-top { align-items: flex-start; }
#purchasingSection.po-target-ui .quote-recent-item-top strong { color: var(--po-navy); }
#purchasingSection.po-target-ui .quote-recent-item .muted { margin: 5px 0 0; font-size: 0.76rem; }
#purchasingSection.po-target-ui .quote-terms-pill { border-radius: 999px; background: var(--po-teal-soft); color: #087d82; font-size: 0.69rem; }
#poTargetFilteredEmpty[hidden] { display: none !important; }

.po-detail-close { display: none; min-width: 42px; min-height: 42px; border: 1px solid var(--po-line); border-radius: 11px; background: #fff; color: var(--po-ink); font-size: 1.15rem; }
.po-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 6px 0 12px; }
.po-progress-step { position: relative; display: grid; justify-items: center; gap: 5px; color: var(--po-muted); font-size: 0.68rem; font-weight: 750; text-align: center; }
.po-progress-step::after { content: ""; position: absolute; top: 13px; left: calc(50% + 16px); width: calc(100% - 32px); height: 2px; background: var(--po-line); }
.po-progress-step:last-child::after { display: none; }
.po-progress-step span { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--po-line); border-radius: 50%; background: #fff; }
.po-progress-step.is-done span,
.po-progress-step.is-current span { border-color: var(--po-teal); background: var(--po-teal); color: #fff; }
.po-progress-step.is-done::after { background: var(--po-teal); }
.po-progress-step.is-current { color: #087d82; }

.po-next-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 12px; padding: 13px 14px; border: 1px solid #bfe8e8; border-radius: 13px; background: #f0fbfb; }
.po-next-action small,
.po-next-action strong { display: block; }
.po-next-action small { color: var(--po-muted); }
.po-next-action strong { margin-top: 3px; color: var(--po-navy); }
.po-next-action button { min-height: 42px; padding: 9px 15px; border: 0; border-radius: 10px; background: var(--po-teal); color: #fff; font: inherit; font-weight: 850; cursor: pointer; }
.po-next-action button:disabled { opacity: .55; cursor: not-allowed; }

.po-detail-tabs { display: flex; gap: 4px; margin: 0 0 12px; padding: 4px; border-bottom: 1px solid var(--po-line); overflow-x: auto; }
.po-detail-tabs button { min-height: 38px; flex: 0 0 auto; padding: 7px 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--po-muted); font: inherit; font-size: 0.78rem; font-weight: 800; cursor: pointer; }
.po-detail-tabs button.is-active { border-color: var(--po-teal); color: #087d82; }
.po-detail-panel[hidden] { display: none !important; }

.po-more-actions { margin-top: 12px; border: 1px solid var(--po-line); border-radius: 12px; background: #fbfdff; }
.po-more-actions summary { min-height: 44px; padding: 12px 14px; cursor: pointer; color: var(--po-navy); font-weight: 850; }
.po-more-actions-content { padding: 0 12px 12px; }
#purchasingSection.po-target-ui .po-more-actions .purchasing-action-row,
#purchasingSection.po-target-ui .po-more-actions .purchasing-communication-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
#purchasingSection.po-target-ui .po-more-actions button { min-height: 40px; flex: 1 1 130px; }

#purchasingSection.po-target-ui .purchasing-form-panel { display: none; }
#purchasingSection.po-target-ui.po-form-open .purchasing-form-panel {
  position: fixed;
  z-index: 5000;
  inset: 18px 18px 18px auto;
  display: grid;
  width: min(720px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--po-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(7,38,79,.25);
}
.po-form-backdrop { position: fixed; z-index: 4999; inset: 0; display: none; background: rgba(7,38,79,.36); backdrop-filter: blur(2px); }
#purchasingSection.po-target-ui.po-form-open + .po-form-backdrop,
.po-form-backdrop.is-open { display: block; }
.po-form-close { min-width: 42px; min-height: 42px; border: 1px solid var(--po-line); border-radius: 11px; background: #fff; color: var(--po-ink); font-size: 1.1rem; }
.po-form-stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.po-form-stepper button { min-height: 48px; padding: 8px; border: 1px solid var(--po-line); border-radius: 11px; background: #fff; color: var(--po-muted); font: inherit; font-size: 0.72rem; font-weight: 800; }
.po-form-stepper button.is-active { border-color: var(--po-teal); background: var(--po-teal-soft); color: #087d82; }
.po-wizard-stage[hidden] { display: none !important; }
.po-wizard-review { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.po-wizard-review article { padding: 12px; border: 1px solid var(--po-line); border-radius: 11px; background: #fbfdff; }
.po-wizard-review span,
.po-wizard-review strong { display: block; }
.po-wizard-review span { color: var(--po-muted); font-size: 0.72rem; }
.po-wizard-review strong { margin-top: 4px; }
.po-wizard-actions { display: flex; gap: 8px; margin-top: 12px; }
.po-wizard-actions button { min-height: 44px; flex: 1; }
.po-wizard-actions #poWizardNextButton { border-color: var(--po-teal); background: var(--po-teal); color: #fff; }
#purchasingSection.po-target-ui .form-actions { margin-top: 4px; }
#purchasingSection.po-target-ui .form-actions #savePurchaseOrderDraftButton { display: none; }
#purchasingSection.po-target-ui[data-po-step="4"] .form-actions #savePurchaseOrderDraftButton { display: inline-flex; }

@media (max-width: 980px) {
  #purchasingSection.po-target-ui .purchasing-detail-grid { grid-template-columns: minmax(250px, .82fr) minmax(0, 1.18fr); }
  .po-target-toolbar { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  #purchasingSection.po-target-ui { gap: 8px; padding: 0; background: var(--po-bg); }
  #purchasingSection.po-target-ui > .quote-dashboard-hero { padding: 10px; border-radius: 0; box-shadow: none; }
  #purchasingSection.po-target-ui > .quote-dashboard-hero .panel-header > div:first-child .eyebrow,
  #purchasingSection.po-target-ui > .quote-dashboard-hero .panel-header > div:first-child .muted { display: none; }
  #purchasingSection.po-target-ui > .quote-dashboard-hero h3 { font-size: 1.2rem; }
  #purchasingSection.po-target-ui .purchasing-header-actions { width: auto; margin-left: auto; }
  #purchasingSection.po-target-ui .purchasing-header-actions #purchaseOrderRefreshButton,
  #purchasingSection.po-target-ui .purchasing-header-actions .pill { display: none; }
  #poTargetNewButton { width: 44px; min-width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 0; }
  #poTargetNewButton::before { content: "+"; font-size: 1.55rem; }
  #purchasingSection.po-target-ui > .quote-dashboard-hero .quote-summary-grid { display: flex; gap: 6px; margin-top: 9px; overflow-x: auto; scrollbar-width: none; }
  #purchasingSection.po-target-ui > .quote-dashboard-hero .quote-summary-card { min-width: 106px; min-height: 58px; padding: 9px 10px; }
  #purchasingSection.po-target-ui > .quote-dashboard-hero .quote-summary-card strong { font-size: 1.15rem; }
  .po-target-toolbar { margin: 0 8px; padding: 8px; gap: 8px; border-radius: 12px; }
  .po-target-search input { min-height: 48px; font-size: 16px; }
  .po-target-filters button { min-height: 42px; }
  #purchasingSection.po-target-ui .purchasing-detail-grid { display: block; }
  #purchasingSection.po-target-ui .quote-recent-panel { margin: 0 8px; padding: 10px; border-radius: 13px; box-shadow: none; }
  #purchasingSection.po-target-ui .purchasing-detail-panel {
    position: fixed;
    z-index: 4500;
    inset: 0;
    display: none;
    overflow: auto;
    padding: max(12px, env(safe-area-inset-top)) 12px calc(92px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    background: #fff;
  }
  #purchasingSection.po-target-ui.po-detail-open .purchasing-detail-panel { display: block; }
  .po-detail-close { display: inline-grid; place-items: center; }
  #purchasingSection.po-target-ui .purchasing-detail-panel > .panel-header { position: sticky; z-index: 5; top: 0; padding: 8px 0; background: #fff; }
  .po-next-action { grid-template-columns: 1fr; }
  .po-next-action button { min-height: 48px; width: 100%; }
  .po-detail-tabs { position: sticky; z-index: 4; top: 68px; background: #fff; }
  .po-detail-tabs button { min-height: 46px; }
  .po-more-actions { margin-bottom: 16px; }
  #purchasingSection.po-target-ui.po-form-open .purchasing-form-panel { inset: 0; width: 100%; max-height: 100dvh; padding: max(12px, env(safe-area-inset-top)) 12px calc(18px + env(safe-area-inset-bottom)); border: 0; border-radius: 0; }
  .po-form-stepper { position: sticky; z-index: 3; top: 0; padding: 6px 0; background: #fff; overflow-x: auto; }
  .po-form-stepper button { min-width: 112px; min-height: 48px; }
  #purchasingSection.po-target-ui .purchasing-form :is(input, select, textarea) { min-height: 48px; font-size: 16px; }
  #purchasingSection.po-target-ui .purchasing-line-item-grid,
  #purchasingSection.po-target-ui .purchasing-totals-grid,
  .po-wizard-review { grid-template-columns: 1fr; }
  .po-wizard-actions { position: sticky; bottom: 0; padding: 10px 0 calc(4px + env(safe-area-inset-bottom)); background: #fff; }
  #purchasingSection.po-target-ui .quote-recent-item { min-height: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  #purchasingSection.po-target-ui * { scroll-behavior: auto !important; }
}

/* List-first PO target v2: browser table, Android cards, and drawer detail. */
.po-target-toolbar { grid-template-columns: 1fr; gap: 9px; }
.po-target-toolbar-main { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 10px; align-items: center; }
.po-target-selects { display: flex; gap: 7px; align-items: center; }
.po-target-selects select,
.po-target-selects input,
.po-pagination select { min-height: 40px; padding: 8px 10px; border: 1px solid var(--po-line); border-radius: 10px; background: #fff; color: var(--po-ink); font: inherit; font-size: .76rem; font-weight: 750; }
.po-target-selects > label select { max-width: 145px; }
.po-advanced-filters { position: relative; }
.po-advanced-filters summary { min-height: 40px; display: flex; align-items: center; padding: 8px 11px; border: 1px solid var(--po-line); border-radius: 10px; background: #fff; color: var(--po-muted); font-size: .76rem; font-weight: 800; cursor: pointer; list-style: none; white-space: nowrap; }
.po-advanced-filters summary::-webkit-details-marker { display: none; }
.po-advanced-filter-grid { position: absolute; z-index: 40; top: calc(100% + 7px); right: 0; display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 10px; width: min(430px, calc(100vw - 32px)); padding: 13px; border: 1px solid var(--po-line); border-radius: 13px; background: #fff; box-shadow: 0 18px 48px rgba(7,38,79,.16); }
.po-advanced-filter-grid label { display: grid; gap: 5px; color: var(--po-muted); font-size: .7rem; font-weight: 750; }
.po-advanced-filter-grid input,
.po-advanced-filter-grid select { width: 100%; max-width: none; }
.po-filter-sort { grid-column: 1 / -1; }
.po-active-filters { min-height: 30px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.po-active-filters button { min-height: 30px; padding: 5px 9px; border: 1px solid #bfe8e8; border-radius: 999px; background: var(--po-teal-soft); color: #087d82; font: inherit; font-size: .7rem; font-weight: 800; cursor: pointer; }
.po-active-filters .po-filter-clear-all { border-color: transparent; background: transparent; color: #2367b1; }
.po-filter-empty { color: var(--po-muted); font-size: .72rem; }

#purchasingSection.po-target-ui .purchasing-detail-grid { display: block; }
#purchasingSection.po-target-ui .quote-recent-panel { width: 100%; }
.po-target-table-shell { overflow: hidden; border: 1px solid var(--po-line); border-radius: 13px; background: #fff; }
.po-target-table-scroll { overflow: auto; }
.po-target-table { width: 100%; min-width: 1280px; border-collapse: collapse; color: var(--po-ink); font-size: .73rem; }
.po-target-table th { position: sticky; z-index: 2; top: 0; padding: 10px 9px; border-bottom: 1px solid var(--po-line); background: #f7f9fc; color: #627089; font-size: .62rem; font-weight: 850; letter-spacing: .035em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.po-target-table td { padding: 10px 9px; border-bottom: 1px solid #e8eef4; vertical-align: middle; }
.po-target-table tbody tr { cursor: pointer; transition: background .15s ease, box-shadow .15s ease; }
.po-target-table tbody tr:hover { background: #f8fcfd; }
.po-target-table tbody tr.is-selected { background: #f0fbfb; box-shadow: inset 3px 0 0 var(--po-teal); }
.po-target-table tbody tr:last-child td { border-bottom: 0; }
.po-target-table strong,
.po-target-table small { display: block; }
.po-target-table strong { color: var(--po-navy); font-size: .74rem; }
.po-target-table small { margin-top: 3px; color: var(--po-muted); font-size: .64rem; line-height: 1.25; }
.po-target-table small.is-danger { color: #b42318; }
.po-target-table small.is-warning { color: #a15c07; }
.po-target-table small.is-success { color: #087d54; }
.po-row-primary { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.po-owner { display: flex; gap: 7px; align-items: center; }
.po-owner-avatar { flex: 0 0 auto; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--po-navy); color: #fff; font-size: .62rem; font-weight: 850; }
.po-cost { white-space: nowrap; }
.po-status { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: .62rem; font-weight: 850; white-space: nowrap; }
.po-status.is-success { background: #e6f7ef; color: #087d54; }
.po-status.is-warning { background: #fff4df; color: #965b09; }
.po-status.is-danger { background: #ffebe9; color: #b42318; }
.po-status.is-info { background: #e9f2ff; color: #1b5da9; }
.po-status.is-muted { background: #eef2f6; color: #55657a; }
.po-row-action { min-height: 34px; padding: 6px 9px; border: 1px solid #b5dfe1; border-radius: 8px; background: #fff; color: #087d82; font: inherit; font-size: .66rem; font-weight: 850; white-space: nowrap; cursor: pointer; }
.po-row-action:hover { background: var(--po-teal); color: #fff; }
.po-row-menu { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--po-muted); font-size: 1.05rem; cursor: pointer; }
.po-select-cell { width: 34px; }
.po-list-empty { display: grid; gap: 5px; justify-items: center; padding: 38px 16px; text-align: center; }
.po-list-empty span { color: var(--po-muted); }
.po-pagination { display: grid; grid-template-columns: minmax(150px, 1fr) auto auto; gap: 12px; align-items: center; min-height: 58px; padding: 9px 12px; border-top: 1px solid var(--po-line); color: var(--po-muted); font-size: .72rem; }
.po-page-controls { display: flex; gap: 5px; align-items: center; }
.po-page-controls button,
.po-load-next { min-width: 34px; min-height: 34px; padding: 6px 9px; border: 1px solid var(--po-line); border-radius: 8px; background: #fff; color: var(--po-muted); font: inherit; font-size: .7rem; font-weight: 800; cursor: pointer; }
.po-page-controls button.is-current { border-color: var(--po-teal); background: var(--po-teal); color: #fff; }
.po-page-controls button:disabled,
.po-load-next:disabled { opacity: .45; cursor: not-allowed; }
.po-load-next { display: none; color: #087d82; }

.po-detail-backdrop { position: fixed; z-index: 4590; inset: 0; display: none; border: 0; background: rgba(7,38,79,.34); backdrop-filter: blur(2px); }
#purchasingSection.po-target-ui .purchasing-detail-panel { position: fixed; z-index: 4600; inset: 14px 14px 14px auto; display: none; width: min(540px, calc(100vw - 28px)); overflow: auto; box-shadow: 0 28px 80px rgba(7,38,79,.25); }
#purchasingSection.po-target-ui.po-detail-open .purchasing-detail-panel { display: block; }
#purchasingSection.po-target-ui.po-detail-open .po-detail-backdrop { display: block; }
body.po-detail-open-global #chatFloatingWidget,
body.po-detail-open-global #assistantWidget { opacity: 0; pointer-events: none; }
.po-detail-close { display: inline-grid; place-items: center; min-width: 42px; min-height: 42px; border: 1px solid var(--po-line); border-radius: 11px; background: #fff; color: var(--po-ink); font-size: 1.15rem; cursor: pointer; }

@media (max-width: 1100px) {
  .po-target-toolbar-main { grid-template-columns: 1fr; }
  .po-target-selects { overflow-x: auto; padding-bottom: 2px; }
}

@media (max-width: 760px) {
  .po-target-toolbar-main { display: block; }
  .po-target-selects { margin-top: 8px; }
  .po-target-selects > label { display: none; }
  .po-advanced-filters { display: block; margin-left: auto; }
  .po-advanced-filter-grid { position: fixed; z-index: 4700; inset: auto 8px 82px; width: auto; max-height: calc(100dvh - 150px); overflow: auto; grid-template-columns: 1fr; }
  .po-filter-sort { grid-column: auto; }
  .po-active-filters { overflow-x: auto; flex-wrap: nowrap; }
  #purchasingSection.po-target-ui .quote-recent-panel .panel-header { display: none; }
  #purchasingSection.po-target-ui .quote-recent-panel { padding: 0; border: 0; background: transparent; }
  .po-target-table-shell { border: 0; border-radius: 0; background: transparent; }
  .po-target-table-scroll { overflow: visible; }
  .po-target-table { min-width: 0; border-collapse: separate; border-spacing: 0 8px; }
  .po-target-table thead { display: none; }
  .po-target-table tbody { display: block; }
  .po-target-table tbody tr { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 12px; margin: 0; padding: 13px; border: 1px solid var(--po-line); border-radius: 13px; background: #fff; box-shadow: 0 4px 14px rgba(7,38,79,.04); }
  .po-target-table tbody tr.is-selected { box-shadow: inset 3px 0 0 var(--po-teal), 0 4px 14px rgba(7,38,79,.06); }
  .po-target-table td { display: block; padding: 0; border: 0; }
  .po-target-table td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--po-muted); font-size: .6rem; font-weight: 800; text-transform: uppercase; }
  .po-target-table .po-select-cell,
  .po-target-table td[data-label="Sales Order"],
  .po-target-table .po-row-menu-cell { display: none; }
  .po-target-table td[data-label="PO / Created"],
  .po-target-table td[data-label="Customer / Trip"],
  .po-target-table td[data-label="Next Action"] { grid-column: 1 / -1; }
  .po-target-table td[data-label="PO / Created"] { padding-right: 120px; }
  .po-target-table td[data-label="Status"] { position: absolute; top: 13px; right: 13px; }
  .po-target-table td[data-label="Status"]::before { display: none; }
  .po-target-table .po-owner-avatar { width: 24px; height: 24px; }
  .po-row-action { width: 100%; min-height: 44px; }
  .po-pagination { grid-template-columns: 1fr auto; margin-top: 4px; padding: 10px 4px; border: 0; }
  .po-page-controls,
  .po-pagination label { display: none; }
  .po-load-next { display: inline-flex; justify-content: center; align-items: center; }
  #purchasingSection.po-target-ui .purchasing-detail-panel { inset: 0; width: 100%; padding: max(12px, env(safe-area-inset-top)) 12px calc(92px + env(safe-area-inset-bottom)); border: 0; border-radius: 0; }
  .po-detail-backdrop { display: none !important; }
}
