/* ===== «رفع كل الفواتير مرة وحدة» ===== a full panel above the screen; the PO wizard opens over it */
.pob-root { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; background: rgba(20, 26, 34, .5); padding: 2vh 1rem; }
.pob-root[hidden] { display: none; }
html.pob-lock { overflow: hidden; }
.pob { width: min(1180px, 100%); max-height: 96vh; display: flex; flex-direction: column; background: #f6f7f9; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(15, 23, 42, .25); }
.pob .ico { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.pob-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.pob-h h2 { margin: 0; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.pob-h p { margin: 4px 0 0; color: var(--muted); font-size: .86rem; max-width: 760px; }
.pob-b { overflow: auto; padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.pob-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; border: 2px dashed #cdd3dd; border-radius: 16px; background: #fff; cursor: pointer; text-align: center; color: var(--muted); transition: border-color .15s, background .15s; }
.pob-drop .ico { width: 26px !important; height: 26px !important; color: var(--orange); }
.pob-drop b { color: var(--ink); font-size: 1rem; }
.pob-drop span { font-size: .8rem; }
.pob-drop:hover, .pob-drop.is-over { border-color: var(--orange); background: #fff8ef; }
.pob-sum { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: .85rem; }
.pob-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; align-items: start; }
.pob-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pob-card.is-done { border-color: #bfe5cf; background: #f5fbf7; }
.pob-card.is-err { border-color: #f3c0bd; }
.pob-card__h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pob-card__h b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
.pob-card__h .btn--icon { display: grid; place-items: center; }
.pob-card__f { display: flex; justify-content: flex-end; }
.pob-reading { margin: 4px 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .86rem; font-weight: 600; }
.pob-spin { width: 14px; height: 14px; border: 2px solid #e2e6ec; border-top-color: var(--orange); border-radius: 50%; animation: pobspin .8s linear infinite; flex: none; }
@keyframes pobspin { to { transform: rotate(360deg); } }
.pob-err { margin: 0; color: var(--red); font-size: .86rem; font-weight: 700; display: flex; gap: 6px; }
.pob-inv { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 10px 12px; border-radius: 12px; background: #f8fafc; font-size: .84rem; }
.pob-inv div { min-width: 0; } .pob-inv .is-wide { grid-column: 1 / -1; }
.pob-inv dt { color: var(--muted); font-size: .72rem; font-weight: 700; }
.pob-inv dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.pob-inv dd small { display: flex; align-items: center; gap: 4px; font-weight: 600; color: #0f7a55; font-size: .74rem; }
.pob-inv .pob-warn { color: #9a5b00; }
.pob-match { display: flex; flex-direction: column; gap: 8px; }
.pob-lvl { margin: 0; display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: .84rem; padding: 6px 10px; border-radius: 10px; }
.pob-lvl.is-ok { background: #e7f6ef; color: #0f7a55; }
.pob-lvl.is-warn { background: #fff4e5; color: #9a5b00; }
.pob-lvl.is-bad { background: #fdecea; color: #b42318; }
.pob-why { margin: 0; padding-inline-start: 18px; color: var(--muted); font-size: .8rem; display: grid; gap: 2px; }
.pob-f { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.pob-f select { padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: .88rem; color: var(--ink); background: #fff; }
.pob-f-l { font-size: .78rem; font-weight: 700; color: var(--muted); }
.pob-svcs { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow: auto; }
.pob-svc { display: flex; align-items: flex-start; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; font-size: .82rem; cursor: pointer; transition: border-color .15s, background .15s; }
.pob-svc input { margin-top: 3px; accent-color: var(--orange); }
.pob-svc .ico { margin-top: 2px; color: var(--muted); }
.pob-svc span { min-width: 0; }
.pob-svc small { color: var(--muted); margin-inline-start: 4px; }
.pob-svc.is-on { border-color: #fdba74; background: #fff8ef; }
.pob-tag { display: inline-block; padding: 0 6px; border-radius: 6px; background: #eef3ff; color: #2f4fb5 !important; font-weight: 700; }
.pob-muted { margin: 0; color: var(--muted); font-size: .82rem; }
.pob-done { margin: 0; display: flex; align-items: center; gap: 6px; font-weight: 800; color: #0f7a55; }
@media (max-width: 640px) {
  .pob-root { padding: 0; }
  .pob { max-height: 100vh; height: 100%; border-radius: 0; }
  .pob-grid { grid-template-columns: minmax(0, 1fr); }
  .pob-h, .pob-b { padding-inline: 14px; }
}
.pob-card__f .btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.pob-card__h b[dir="auto"] { text-align: start; unicode-bidi: plaintext; }
