#creditsPage [hidden]{display:none!important}
#creditsPage .cr-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:4px 0 20px}
#creditsPage h2{font-size:24px;margin:0 0 6px}#creditsPage h3{font-size:17px;margin:0}#creditsPage p{line-height:1.6}
#creditsPage .cr-head p{margin:0;color:#777}
#creditsPage .cr-tabs{display:flex;gap:8px;border-bottom:1px solid #e7eaf0;padding-bottom:12px;flex-wrap:wrap}
#creditsPage .cr-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#creditsPage button[aria-selected=true],#creditsPage button[aria-pressed=true]{color:#1677ff;background:#edf5ff;border-color:#91caff}
#creditsPage .cr-tabs button{padding:10px 22px;font-size:14px}
#creditsPage .cr-message{min-height:22px;line-height:1.6;color:#27834c;margin:10px 0;overflow-wrap:anywhere}
#creditsPage .cr-error{color:#c13232}#creditsPage .cr-muted{color:#78818d;font-size:12px}#creditsPage small.cr-muted{display:block;margin-top:5px}
#creditsPage .cr-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:18px}
#creditsPage .cr-toolbar h3{margin-right:auto}
#creditsPage input,#creditsPage select{border:1px solid #d9dfe8;border-radius:7px;background:#fff;padding:9px 11px;font-size:14px;box-sizing:border-box;max-width:100%;min-width:0}
#creditsPage input:focus,#creditsPage select:focus{outline:2px solid #d4e7ff;border-color:#69a7ff}
#creditsPage .cr-toolbar input[type=search]{width:260px}#creditsPage .cr-table-wrap{overflow:auto}
#creditsPage th,#creditsPage td{padding:15px 14px;vertical-align:middle}#creditsPage th{white-space:nowrap;background:#f7f9fc;color:#5d6875;font-size:12px}
#creditsPage .cr-number{font-weight:650;font-size:17px}#creditsPage .cr-badge{display:inline-block;background:#f1f4f8;color:#526170;padding:5px 10px;border-radius:6px;font-size:12px;white-space:nowrap}
#creditsPage .cr-empty{text-align:center;padding:40px 16px;color:#8c96a2}#creditsPage .cr-warning{color:#b87813}
#creditsPage .cr-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
#creditsPage .cr-stat{background:#f7f9fc;border:1px solid #e9edf3;border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:8px}
#creditsPage .cr-stat span{font-size:12px;color:#66717f}#creditsPage .cr-stat strong{font-size:24px;color:#172d45}#creditsPage .cr-stat small{color:#84909f;font-size:11px}
#creditsPage .cr-balance-line{margin-bottom:24px}#creditsPage .cr-datebar{padding:14px;background:#f8faff;border-radius:8px}
#creditsPage .cr-datebar input{width:155px}#creditsPage .cr-pagination{display:flex;justify-content:flex-end;align-items:center;gap:14px;margin-top:20px;color:#78818d;font-size:12px}
#creditsPage .cr-reason{max-width:280px;overflow-wrap:anywhere}#creditsPage .cr-settings{max-width:660px}
#creditsPage .cr-field{display:flex;flex-direction:column;gap:8px;color:#536170;font-size:13px;margin-bottom:16px}#creditsPage .cr-field input,#creditsPage .cr-field select{width:100%}
#creditsPage .cr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
#creditsPage .cr-dialog{border:0;border-radius:14px;padding:0;width:480px;max-width:calc(100vw - 32px);max-height:90vh;box-shadow:0 24px 70px #122a4540;color:#263b50}
#creditsPage .cr-dialog-wide{width:680px}#creditsPage .cr-dialog::backdrop{background:rgba(17,30,47,.38)}
#creditsPage .cr-dialog-head{position:sticky;top:0;background:white;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 24px;border-bottom:1px solid #e8edf3;z-index:1}
#creditsPage .cr-dialog-body{padding:8px 24px 24px}#creditsPage .cr-dialog .cr-stats{grid-template-columns:1fr 1fr}
#creditsPage .cr-operation{margin:20px 0}#creditsPage .cr-presets{margin-top:-4px}
#creditsPage .cr-advanced{border-top:1px solid #e6ebf2;margin-top:24px;padding-top:16px}#creditsPage summary{cursor:pointer;color:#64798f;font-size:13px;margin-bottom:16px}
#creditsPage .cr-rules{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 22px}
#creditsPage .btn{white-space:nowrap}#creditsPage .btn:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:800px){#creditsPage .cr-stats{grid-template-columns:1fr 1fr}#creditsPage .cr-grid{grid-template-columns:1fr}#creditsPage .cr-head{align-items:flex-start}#creditsPage .cr-toolbar input[type=search]{width:100%}#creditsPage .cr-tabs button{padding:9px 12px}#creditsPage .cr-stat strong{font-size:20px}}
#creditsPage .cr-message:empty{display:none}
#creditsPage [data-cr-panel=bill] .cr-table-wrap{max-height:480px}
#creditsPage [data-cr-panel=bill] thead{position:sticky;top:0;z-index:1}
