.rh-open{margin-top:8px;padding:7px 13px;border:1px solid #bdcadc;border-radius:8px;background:#fff;color:#245186;cursor:pointer;font:inherit}
.rh-dialog{box-sizing:border-box;width:min(1180px,94vw);max-height:90vh;padding:22px;border:1px solid #d7e1ee;border-radius:14px;background:#fff;color:#24344a;box-shadow:0 20px 80px #1a365d35;overflow:auto;font:14px/1.55 system-ui,sans-serif}
.rh-dialog::backdrop{background:#18314f66}.rh-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px}.rh-dialog h2{margin:0;font-size:21px}.rh-dialog h3{margin:16px 0 7px;font-size:16px}.rh-note{color:#5c6e85;font-size:13px;margin:8px 0}
.rh-form{display:grid;gap:12px;border:1px solid #e0e8f1;background:#f7faff;padding:14px;border-radius:10px;margin:15px 0}.rh-form label{display:grid;gap:5px;font-size:13px;color:#4b607a}.rh-product-controls,.rh-link-controls,.rh-dates{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.rh-form [hidden]{display:none!important}.rh-form input,.rh-form select{box-sizing:border-box;min-height:36px;padding:6px 9px;border:1px solid #bdcadc;border-radius:7px;max-width:100%;background:#fff;color:#23364e}.rh-form select{max-width:380px}.rh-form input[inputmode=numeric]{min-width:250px}.rh-dialog button{padding:7px 12px;min-height:34px;border:1px solid #bdcadc;border-radius:7px;background:#fff;color:#245186;cursor:pointer}.rh-dialog button:disabled{opacity:.55;cursor:default}.rh-dialog button[type=submit]{background:#2563a6;border-color:#2563a6;color:#fff}.rh-error{padding:10px 12px;border:1px solid #e5aaa3;border-radius:7px;background:#fff4f2;color:#a62c23}.rh-members{display:flex;flex-wrap:wrap;gap:8px;padding:10px 0}.rh-dialog summary{cursor:pointer;color:#315a87}.rh-table-wrap{max-height:min(62vh,680px);overflow:auto;border:1px solid #dce5ef;border-radius:9px;margin-top:12px}.rh-dialog table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px;white-space:nowrap}.rh-dialog th{position:sticky;top:0;background:#edf3fa;color:#45607e;text-align:left;z-index:1}.rh-dialog th,.rh-dialog td{padding:10px 12px;border-bottom:1px solid #e6edf4}.rh-dialog tr[data-state=missing_batch]{color:#876a35}.rh-dialog tr[data-state=not_counted]{color:#76879a}.rh-dialog td:nth-child(2){font-weight:650;color:#245186}.rh-dialog tr:last-child td{border-bottom:0}
@media(max-width:800px){.rh-dialog{padding:14px;width:96vw}.rh-form{padding:10px}.rh-product-controls>label,.rh-link-controls>label{width:100%}.rh-form select,.rh-form input{width:100%;max-width:100%}.rh-dates>label{flex:1;min-width:130px}.rh-table-wrap{max-height:62vh}.rh-dialog header{position:sticky;top:-14px;background:#fff;z-index:2;padding:8px 0}.rh-form input[inputmode=numeric]{min-width:0}}
