/* Pofiss | Avatar-triggered XP history and all-staff manager ledger */
#app > #siteTabs.tabs .pofis-header-account #headerMiniAvatar.po-xp-avatar-button,
html[data-theme="dark"] #app > #siteTabs.tabs .pofis-header-account #headerMiniAvatar.po-xp-avatar-button{
 padding:0!important;min-width:28px!important;min-height:28px!important;max-width:28px!important;
 display:grid;place-items:center;cursor:pointer!important;
 outline-offset:3px!important;transition:transform .15s ease,filter .15s ease!important;
 background:transparent!important;border:0!important;box-shadow:none!important
}
#app > #siteTabs.tabs .pofis-header-account #headerMiniAvatar.po-xp-avatar-button:hover{
 transform:scale(1.1);filter:drop-shadow(0 2px 4px #3b76585e);
}
#app > #siteTabs.tabs .pofis-header-account #headerMiniAvatar.po-xp-avatar-button:focus-visible{outline:2px solid #21bd65!important}
.po-xp-ledger-dialog{
 width:min(710px,calc(100% - 24px));max-width:710px;max-height:min(85dvh,800px);
 border:1px solid #b9d5c3;border-radius:18px;padding:22px;
 background:#fff;color:#233c2b;box-shadow:0 30px 90px #071c135e;overflow:auto;
}
.po-xp-ledger-dialog::backdrop{background:#091b12b8;backdrop-filter:blur(3px)}
.po-xp-ledger-dialog header{display:flex;align-items:start;justify-content:space-between;gap:14px;margin-bottom:15px}
.po-xp-ledger-dialog header small{font-size:10px;font-weight:850;letter-spacing:.12em;color:#247448}
.po-xp-ledger-dialog h2{font-size:22px;line-height:1.2;margin:5px 0 6px}
.po-xp-ledger-dialog header p{color:#617c68;font-size:12px;margin:0}
.po-xp-ledger-close{background:#edf4ee;color:#3e6348;border:0;border-radius:10px;min-width:36px;min-height:36px;font-size:23px;cursor:pointer}
.po-xp-ledger-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:15px 0}
.po-xp-ledger-stat{display:flex;flex-direction:column;gap:6px;min-width:0;padding:13px;border:1px solid #d7e6da;border-radius:12px;background:#f5faf6}
.po-xp-ledger-stat span{font-size:11px;color:#587362;font-weight:700}
.po-xp-ledger-stat strong{font-size:19px;white-space:nowrap;font-weight:900;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:#206640}
.po-xp-ledger-stat strong.negative{color:#bc5050}
.po-xp-ledger-entries{display:grid;gap:7px;max-height:48vh;overflow:auto;min-width:0;scrollbar-width:thin}
.po-xp-ledger-entry{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;padding:12px 14px;border:1px solid #e1eae2;border-radius:11px;background:#fcfdfb}
.po-xp-ledger-entry-copy{display:grid;gap:5px;min-width:0}
.po-xp-ledger-entry-copy strong{font-size:13px;font-weight:800;color:#2c4834;overflow-wrap:anywhere}
.po-xp-ledger-entry-copy small{font-size:11px;line-height:1.4;color:#687c6c;overflow-wrap:anywhere}
.po-xp-ledger-delta{font-size:13px;font-weight:900;color:#168348;white-space:nowrap;font-variant-numeric:tabular-nums}
.po-xp-ledger-delta.negative{color:#c24b56}
.po-xp-ledger-empty{padding:30px 10px;text-align:center;color:#778979;font-size:13px}
.po-xp-ledger-dialog footer,.po-xp-ledger-pagination{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:12px;margin-top:15px}
.po-xp-ledger-dialog footer button{background:#e0f3e6;border:1px solid #b8ddc4;color:#245c3a;font-weight:800;border-radius:9px;padding:9px 12px;cursor:pointer}
.po-xp-ledger-footnote{color:#718376;font-size:11px;line-height:1.5;margin:16px 0 0}
.po-xp-ledger-manager{border:1px solid #dae4dd;border-radius:15px;padding:17px;background:#fff}
.po-xp-ledger-filters{display:grid;grid-template-columns:2fr 1.4fr 1fr 1fr;gap:11px}
.po-xp-ledger-filters label{display:flex;flex-direction:column;gap:6px;font-weight:750;font-size:12px;min-width:0}
.po-xp-ledger-filters :is(select,input){width:100%;box-sizing:border-box;min-width:0;border:1px solid #cdded2;border-radius:9px;background:#fff;color:#253c2d;padding:10px 12px;font:inherit;font-weight:550}
.po-xp-ledger-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}
.po-xp-ledger-manager .po-xp-ledger-entries{max-height:580px}
.po-xp-ledger-pagination{justify-content:center}
.po-xp-ledger-pagination span{min-width:190px;text-align:center}
.po-xp-ledger-pagination button:disabled{opacity:.5}
html[data-theme="dark"] .po-xp-ledger-dialog,
html[data-theme="dark"] .po-xp-ledger-manager{background:#222a25;color:#eef5ef;border-color:#495e4e}
html[data-theme="dark"] .po-xp-ledger-stat{background:#2b382f;border-color:#4d6554}
html[data-theme="dark"] .po-xp-ledger-stat span{color:#b4cbb9}
html[data-theme="dark"] .po-xp-ledger-stat strong{color:#95f4b2}
html[data-theme="dark"] .po-xp-ledger-stat strong.negative{color:#ff9c9c}
html[data-theme="dark"] .po-xp-ledger-entry{background:#2b352e;border-color:#48584d}
html[data-theme="dark"] .po-xp-ledger-entry-copy strong{color:#f2f7f3}
html[data-theme="dark"] .po-xp-ledger-entry-copy small,
html[data-theme="dark"] .po-xp-ledger-dialog header p{color:#b5cbb8}
html[data-theme="dark"] .po-xp-ledger-filters :is(select,input){background:#27352c;color:#eef5ef;border-color:#536957;color-scheme:dark}
html[data-theme="dark"] .po-xp-ledger-close{background:#35463a;color:#f5fff7}
html[data-theme="dark"] .po-xp-ledger-footnote{color:#a6b7a9}
@media(max-width:720px){
 .po-xp-ledger-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .po-xp-ledger-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .po-xp-ledger-dialog{padding:15px}
}
@media(max-width:400px){
 .po-xp-ledger-filters{grid-template-columns:1fr}
 .po-xp-ledger-entry{gap:8px;padding:10px}
 .po-xp-ledger-stat strong{font-size:16px}
 .po-xp-ledger-pagination span{min-width:0}
}
