/* EYY ERP v1.2.28 purchase workflow */
.erp-po-flow,
.erp-po-toolbar {
  margin: 0 0 16px;
  border: 1px solid #d7e7ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(18, 53, 77, .045);
}
.erp-po-flow { padding: 15px 18px; }
.erp-po-flow-title { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:12px; }
.erp-po-flow-title b { color:#12354d; font-size:15px; }
.erp-po-flow-title span { color:#4f7185; font-size:12px; }
.erp-po-flow-steps { display:flex; align-items:center; gap:8px; overflow-x:auto; padding-bottom:2px; white-space:nowrap; }
.erp-po-flow-steps span { padding:7px 10px; border-radius:999px; background:#eef7fb; color:#245a78; font-size:12px; font-weight:700; }
.erp-po-flow-steps i { color:#8eabba; font-style:normal; }
.erp-po-toolbar { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:10px 12px; }
.erp-po-tabs { display:flex; gap:8px; flex-wrap:wrap; }
.erp-po-tabs button { border:1px solid #cfe0e9; background:#fff; color:#416477; border-radius:10px; padding:8px 12px; cursor:pointer; font-weight:700; }
.erp-po-tabs button b { display:inline-flex; min-width:21px; height:21px; align-items:center; justify-content:center; margin-left:5px; border-radius:999px; background:#edf4f7; color:#456878; font-size:11px; }
.erp-po-tabs button.active { background:#147fac; border-color:#147fac; color:#fff; }
.erp-po-tabs button.active b { background:rgba(255,255,255,.22); color:#fff; }
.erp-po-privacy { display:grid; grid-template-columns:auto auto; align-items:center; column-gap:7px; color:#145b77; }
.erp-po-privacy span { grid-row:1/3; font-size:21px; }
.erp-po-privacy b { font-size:13px; }
.erp-po-privacy small { color:#6d8998; font-size:11px; }
.erp-po-cell-sub { display:block; margin-top:4px; color:#78909c; font-size:11px; font-weight:400; }
.erp-po-status { display:inline-flex; align-items:center; justify-content:center; padding:6px 9px; border-radius:999px; font-size:12px; font-weight:800; white-space:nowrap; }
.erp-po-status.amber { background:#fff1d8; color:#9a6210; }
.erp-po-status.teal { background:#e4f6f3; color:#0d7d6f; }
.erp-po-status.blue { background:#e6f3fb; color:#176c9a; }
.erp-po-status.green { background:#e5f6ea; color:#19804a; }
.erp-po-status.gray { background:#eef2f4; color:#657985; }
.erp-po-actions { display:flex; flex-wrap:wrap; gap:5px; margin-top:6px; }
.erp-po-action { border:1px solid #c8dce6; background:#fff; color:#315e75; border-radius:8px; padding:5px 8px; font-size:11px; font-weight:700; cursor:pointer; }
.erp-po-action.primary { background:#147fac; border-color:#147fac; color:#fff; }
.erp-po-action.danger { border-color:#f0c2c2; color:#bc4545; }
.erp-po-factory-button { border-color:#86c7df !important; color:#0f7098 !important; font-weight:800 !important; }
.erp-po-empty { text-align:center; padding:42px 20px !important; color:#6b8492; }
.erp-po-empty b { display:block; margin-bottom:6px; color:#244e65; font-size:15px; }
.erp-po-empty span { font-size:12px; }
.erp-po-row-hidden { display:none !important; }
.erp-po-no-price-note { display:flex; justify-content:space-between; gap:20px; margin:12px 0 14px; padding:10px 14px; border:1px solid #bddfeb; border-radius:8px; background:#eff9fc; color:#245c75; }
.erp-po-no-price-note b { white-space:nowrap; }
.erp-po-no-price-note span { font-size:12px; text-align:right; }
[data-erp-po-cost-column="1"] { display:none !important; }
.erp-po-toast { position:fixed; right:26px; bottom:88px; z-index:100000; max-width:420px; padding:12px 16px; border-radius:10px; background:#12354d; color:#fff; box-shadow:0 12px 40px rgba(0,0,0,.22); font-size:13px; }
.erp-po-toast.error { background:#a53b3b; }
.sidebar nav button em[data-erp-po-count] { margin-left:auto; min-width:20px; height:20px; padding:0 6px; display:inline-flex; align-items:center; justify-content:center; border-radius:999px; background:#e7a329; color:#fff; font-size:11px; font-style:normal; }
@media (max-width: 900px) {
  .erp-po-flow-title, .erp-po-toolbar { align-items:flex-start; flex-direction:column; }
  .erp-po-privacy { width:100%; }
}
@media print {
  [data-erp-po-cost-column="1"] { display:none !important; }
  .erp-po-no-price-note { break-inside:avoid; box-shadow:none; }
}

/* v1.2.28 cancelled-order cleanup + purchase page viewport cleanup */
.erp-po-action.erp-po-delete { background:#fff7f7; border-color:#efb6b6; color:#b93838; }
.erp-po-action.erp-po-delete:hover { background:#fff0f0; }
body:has(.erp-po-toolbar) #erp-finance-dashboard-strip { display:none !important; }
body:has(.erp-po-toolbar) .content { padding-bottom:48px !important; }
body:has(.erp-po-toolbar) section.orders { margin-bottom:24px !important; }
@media (max-height: 760px) {
  .erp-po-flow { padding:10px 12px; }
  .erp-po-toolbar { padding:8px 10px; }
}
