/* AMS V140 — Reports: Completed Inventory Count History */
.count-history-launch{min-height:32px;padding:6px 12px;border:1px solid #9eb1c5;border-radius:6px;background:#fff;color:#18324d;font-size:10px;font-weight:700;cursor:pointer;box-shadow:0 1px 2px rgba(15,30,48,.05)}
.count-history-launch:hover{background:#f4f8fc;border-color:#6f8daa}.count-history-overlay{position:fixed;inset:0;z-index:1000;background:rgba(15,30,48,.5);display:grid;place-items:center;padding:18px}.count-history-panel{width:min(1240px,97vw);max-height:94vh;overflow:auto;background:#fff;border:1px solid #cbd7e4;border-radius:10px;box-shadow:0 18px 50px rgba(15,30,48,.25);padding:18px;color:#142d49}.count-history-header{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid #dce5ee;padding-bottom:12px;margin-bottom:14px}.count-history-header h2{margin:1px 0 4px;font-size:20px}.count-history-header span{font-size:10px;color:#65778a}.count-history-close,.count-history-actions button{min-height:32px;padding:6px 12px;border:1px solid #9eb1c5;border-radius:6px;background:#fff;color:#18324d;font-size:10px;font-weight:700;cursor:pointer}.count-history-actions button:disabled{opacity:.45;cursor:not-allowed}.count-history-filters{display:grid;grid-template-columns:1.1fr .9fr 1fr 1fr;gap:10px;margin-bottom:12px}.count-history-filters .wide{grid-column:1/-1}.count-history-filters label{font-size:9px;font-weight:800;text-transform:uppercase;color:#536a82;display:flex;flex-direction:column;gap:4px}.count-history-filters select,.count-history-filters input{min-height:34px;border:1px solid #bccbd9;border-radius:5px;background:#fff;padding:6px 8px;color:#18324d;font-size:10px}.count-history-summary{display:flex;gap:12px;flex-wrap:wrap;background:#f5f8fb;border:1px solid #dce5ee;border-radius:7px;padding:9px 10px}.count-history-summary.top{margin-bottom:8px}.count-history-summary.detail{margin:10px 0 14px}.count-history-summary span{font-size:10px;color:#52677d}.count-history-summary strong{font-size:13px;color:#18324d;margin-right:3px}.count-history-actions{display:flex;justify-content:flex-end;gap:7px;margin-bottom:10px}.count-history-body{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr);gap:12px;min-height:390px}.count-history-table{border:1px solid #d6e0ea;border-radius:7px;overflow:auto;max-height:560px}.count-history-row{width:100%;display:grid;grid-template-columns:1.25fr .95fr 1fr .95fr .55fr .55fr .55fr;gap:8px;align-items:center;border:0;border-bottom:1px solid #e6ecf2;background:#fff;padding:9px 10px;text-align:left;color:#273d54;font-size:9.5px;cursor:pointer}.count-history-row:last-child{border-bottom:0}.count-history-row:not(.count-history-head):hover,.count-history-row.selected{background:#f2f7fc}.count-history-row span{min-width:0;overflow-wrap:anywhere}.count-history-row strong{display:block;font-size:10px}.count-history-row small{display:block;color:#718196;margin-top:2px;font-size:9px}.count-history-head{position:sticky;top:0;z-index:2;background:#eaf0f7;color:#51677e;font-size:9px;font-weight:800;text-transform:uppercase;cursor:default}.count-history-result{display:inline-block;font-size:9px;padding:3px 6px;border-radius:999px;font-weight:700}.count-history-result.verified{color:#247b50;background:#edf8f1}.count-history-result.attention{color:#95620d;background:#fff6df}.count-history-detail{border:1px solid #d6e0ea;border-radius:7px;background:#fbfcfe;padding:14px;min-width:0;max-height:560px;overflow:auto}.count-history-detail-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.count-history-detail h3{margin:2px 0 8px;font-size:15px}.count-history-detail h4{margin:14px 0 7px;font-size:11px;border-bottom:1px solid #dfe7ef;padding-bottom:5px}.count-history-meta{display:grid;grid-template-columns:1fr 1fr;gap:7px}.count-history-meta div{border:1px solid #e0e7ef;background:#fff;padding:7px;border-radius:5px}.count-history-meta span,.count-history-meta strong{display:block}.count-history-meta span{font-size:9px;text-transform:uppercase;color:#718196}.count-history-meta strong{font-size:10px;margin-top:2px}.count-history-observations,.count-history-quantities{display:grid;gap:6px}.count-history-observation{display:flex;justify-content:space-between;gap:10px;border:1px solid #e1e8ef;border-radius:5px;background:#fff;padding:8px}.count-history-observation span{min-width:0}.count-history-observation strong,.count-history-observation small{display:block}.count-history-observation strong{font-size:10px}.count-history-observation small{font-size:9px;color:#687b8e;margin-top:2px}.count-history-observation b{font-size:9px;white-space:nowrap}.count-history-observation.found b{color:#247b50}.count-history-observation.exception b{color:#9a6511}.count-history-quantity{display:grid;grid-template-columns:minmax(150px,1.5fr) repeat(3,.65fr);gap:6px;align-items:center;border:1px solid #e1e8ef;border-radius:5px;background:#fff;padding:8px}.count-history-quantity span strong,.count-history-quantity span small{display:block}.count-history-quantity>span:not(:first-child){font-size:8px;text-transform:uppercase;color:#718196}.count-history-quantity>span:not(:first-child) strong{font-size:10px;color:#243a51;margin-top:2px}.count-history-immutable{font-size:9.5px;line-height:1.45;color:#53697f;background:#f5f8fb;border-left:3px solid #7891aa;padding:8px;margin:14px 0 0}.count-history-detail-empty,.count-history-empty{min-height:150px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:5px;color:#6c7d8f;padding:16px}.count-history-detail-empty strong,.count-history-empty strong{font-size:11px;color:#344c64}.count-history-detail-empty span,.count-history-empty span{font-size:9.5px}.count-history-none{font-size:9.5px;color:#718196}.reports-intro{flex-wrap:wrap}.reports-intro>.count-history-launch,.reports-intro>.reports-sync-history-launch{margin-left:auto}.reports-intro>.reports-sync-history-launch+.count-history-launch{margin-left:6px}
@media(max-width:960px){.count-history-overlay{padding:7px}.count-history-panel{width:99vw;max-height:97vh}.count-history-filters{grid-template-columns:1fr 1fr}.count-history-body{grid-template-columns:1fr}.count-history-row{min-width:760px}.count-history-detail{max-height:none}.count-history-quantity{grid-template-columns:1fr 1fr}}
