/* «الحساب» on the supplier and customer pages (party-ledger.js) */
.pled{display:flex;flex-direction:column;gap:.9rem}
.pled__head{display:grid;grid-template-columns:minmax(200px,260px) 1fr;gap:.9rem}
.pled__bal{background:#fff;border:1px solid var(--line,#e5e7eb);border-radius:14px;padding:1rem;display:flex;flex-direction:column;gap:.3rem}
.pled__bal span{font-size:.82rem;color:var(--muted,#6b7280);font-weight:700}
.pled__bal b{font-size:1.45rem}
.pled__bal small{font-weight:700;color:var(--muted,#6b7280)}
.pled__bal.due{border-color:#fcd34d;background:#fffbeb}
.pled__bal.due small{color:#b45309}
.pled__bal.adv{border-color:#a7f3d0;background:#ecfdf5}
.pled__bal.adv small{color:#047857}
.pled__facts{background:#fff;border:1px solid var(--line,#e5e7eb);border-radius:14px;padding:.4rem 1rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:0 1.2rem}
.pled__fact{padding:.6rem 0;border-bottom:1px solid var(--line,#eef0f3);display:flex;flex-direction:column;gap:.25rem;min-width:0}
.pled__fact>span{font-size:.8rem;color:var(--muted,#6b7280);font-weight:700}
.pled__fact>div{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem .5rem}
.pled__note{display:block;width:100%;color:var(--muted,#6b7280);font-size:.8rem;line-height:1.6}
.pled__track{flex:1 1 80px;max-width:160px;height:8px;background:#f1f5f9;border-radius:4px;overflow:hidden}
.pled__track i{display:block;height:100%;background:#10b981}
.pled__track i.warn{background:#f59e0b}
.pled__track i.bad{background:#ef4444}
.pled__bar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.5rem .8rem}
.pled__bar h4{margin:0;margin-inline-end:auto;font-size:1rem}
.pled__bar label{display:flex;flex-direction:column;gap:.2rem;font-size:.8rem;font-weight:700;color:var(--muted,#6b7280)}
.pled__bar input,.pled__bar select{font:inherit;padding:.35rem .5rem;border:1px solid var(--line,#d1d5db);border-radius:8px;background:#fff;min-height:36px}
.pled__tbl td.n,.pled__tbl th.n{text-align:end;font-variant-numeric:tabular-nums;direction:ltr;white-space:nowrap}
.pled__tbl tbody td{vertical-align:top}
.pled__open td,.pled__tbl tfoot td{background:#f8fafc;font-weight:700}
.pled__tbl .small{font-size:.78rem}
@media (max-width:760px){.pled__head{grid-template-columns:1fr}}
.ccard--wide{grid-column:1/-1}
/* owner 2026-11-11: the statement fits the page and shows whole, no small box to scroll inside or sideways.
   The page scrolls, the header stays under the top bar (--pled-top, set by party-ledger.js). */
.pled__tbl{overflow:clip}
.pled__tbl table{width:100%}
.pled__tbl thead th{position:sticky;top:var(--pled-top,58px);background:#fff;z-index:1}
.pled__tbl tbody td.pled__desc{white-space:normal;overflow-wrap:anywhere;min-width:14rem;width:100%}
.pled__tbl tbody td.pled__no{white-space:normal;overflow-wrap:anywhere;max-width:12rem}
.pled__tbl tbody td.pled__no bdi,.pled__tbl td.pled__con bdi{white-space:nowrap}
.pled__tbl td.pled__con{white-space:nowrap}
/* owner 2026-11-16: each line's trip. One row per service in الخدمة / المسار / تاريخ السفر; names and hotels wrap */
.pled__tbl tbody td.pled__desc{min-width:9rem}
.pled__tbl .pled__trip{white-space:nowrap;line-height:1.55}
.pled__tbl td.pled__place{min-width:9rem;max-width:16rem}
.pled__tbl .pled__kind{font-weight:700;color:#334155}
/* ten columns beside the menu on a 1280 screen: tighter side padding, so nothing is cut off */
.pled__tbl th,.pled__tbl td{padding-inline:.5rem}
.pled__tbl td.pled__place .pled__trip{white-space:normal;overflow-wrap:anywhere}
.pled__tbl td.pled__pax{white-space:normal;min-width:7rem;max-width:12rem;overflow-wrap:anywhere}
/* the date cell carries .num, which elsewhere makes an inline number: keep it a cell so it lines up with its row */
.pled__tbl td.num{display:table-cell;white-space:nowrap}
.pled__open td:first-child{white-space:normal}
.pled__xlsx{display:inline-flex;align-items:center;gap:.3rem}
.pled__lim{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem}
.pled__lim input{width:9rem;font:inherit;padding:.3rem .5rem;border:1px solid var(--line,#d1d5db);border-radius:8px}
.pled__err{color:#b91c1c;font-weight:700;width:100%}
.pled__err:empty{display:none}
