.abnormal-page{min-width:0}
.abnormal-page .abnormal-mode{box-sizing:border-box;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;margin:22px 0 20px;padding:6px;border:1px solid #d5e8e1;border-radius:14px;background:#f0f8f5}
.abnormal-page .abnormal-mode button{display:inline-flex;align-items:center;justify-content:center;gap:9px;width:100%;min-width:0;min-height:48px;padding:0 18px;border:1px solid transparent;border-radius:10px;background:transparent;color:#476f63;font-size:15px;font-weight:700;line-height:1;box-shadow:none;transition:background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease}
.abnormal-page .abnormal-mode button:hover{border-color:#c8e1d7;background:#fff;color:#0f766e}
.abnormal-page .abnormal-mode button.active{border-color:#0f766e;background:#0f766e;color:#fff;box-shadow:0 3px 8px rgba(15,118,110,.16)}
.abnormal-page .abnormal-mode button.active:hover{border-color:#0b665f;background:#0b665f}
.abnormal-page .abnormal-mode button:focus-visible{outline:2px solid #0f766e;outline-offset:3px}
.abnormal-page .abnormal-mode button svg{flex:none;width:18px;height:18px}
@media(max-width:480px){.abnormal-page .abnormal-mode{gap:6px;margin:18px auto;padding:5px}.abnormal-page .abnormal-mode button{min-height:44px;padding:0 12px;font-size:14px}}
@media(prefers-reduced-motion:reduce){.abnormal-page .abnormal-mode button{transition:none}}
.abnormal-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0}.abnormal-toolbar input{flex:1;min-width:220px;max-width:580px}.abnormal-table-scroll{max-width:100%;overflow-x:auto}.abnormal-table{width:100%;min-width:1000px;table-layout:fixed}.abnormal-table th:nth-child(1){width:52px}.abnormal-table th:nth-child(2){width:175px}.abnormal-table th:nth-child(3){width:250px}.abnormal-table th:nth-child(4){width:180px}.abnormal-table th:nth-child(5){width:100px}.abnormal-table th:nth-child(6){width:64px}.abnormal-table th:nth-child(7){width:100px}.abnormal-table th:nth-child(8){width:120px}.abnormal-table td{vertical-align:middle;overflow-wrap:anywhere}.abnormal-table small{display:block;color:#718279;font-size:12px;margin-top:5px}.abnormal-table input[type=checkbox]{width:16px;height:16px}.abnormal-product-group{border:1px solid #dceae3;border-radius:8px;margin:10px 0;overflow:hidden}.abnormal-product-group summary{padding:13px 16px;background:#f1faf6;cursor:pointer}.abnormal-product-group summary span{margin-left:16px;color:#61766a;font-size:13px}.abnormal-selected{border:1px solid #dceae3;border-radius:8px;padding:14px;margin:12px 0}.abnormal-selected-heading,.abnormal-record-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.abnormal-selected-heading span,.abnormal-record-head>span:last-child{color:#6a7d72;font-size:12px}.abnormal-selected-heading button{margin-left:auto}.abnormal-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:12px 0}.abnormal-fields label{display:flex;flex-direction:column;gap:7px;font-size:13px}.abnormal-fields input,.abnormal-fields select{width:100%;min-width:0}.abnormal-fields input[readonly]{background:#f4f7f5;color:#566b5e}.abnormal-record{border:1px solid #dceae3;border-radius:8px;padding:14px 16px;margin:12px 0;background:#fff}.abnormal-record p{line-height:1.6;margin:8px 0;font-size:13px;overflow-wrap:anywhere}.abnormal-record-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.abnormal-record-actions a{color:#237459}.abnormal-message{color:#216c4d;padding:10px 0}.abnormal-pager{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin-top:14px}.abnormal-pager span{margin-right:auto;color:#697d71;font-size:13px}.abnormal-bom-dialog{width:min(850px,94vw);max-height:90vh;overflow-y:auto;background:#fff;border-radius:12px;padding:24px}.abnormal-bom-modal{z-index:20000}.abnormal-trace{margin:14px 0;padding:12px;border-radius:8px;background:#f2faf6;border:1px solid #d5e9dc}.abnormal-trace h4{margin:0 0 8px}.abnormal-page .card{min-width:0}.abnormal-reason{width:100%;min-height:80px}.abnormal-page button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:700px){.abnormal-fields{grid-template-columns:1fr}.abnormal-toolbar input{min-width:0;width:100%;flex-basis:100%}.abnormal-product-group summary span{display:block;margin:6px 0 0}.abnormal-bom-dialog{padding:14px}.abnormal-selected-heading span{flex-basis:100%}}
.abnormal-table .abnormal-choice-cell{width:48px;min-width:48px;max-width:48px;padding:8px 6px;text-align:center}
.abnormal-table .abnormal-choice-cell input[type="checkbox"]{box-sizing:border-box;display:block;width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;max-height:18px;margin:0 auto;padding:0;border-radius:4px;accent-color:var(--primary,#0f766e);cursor:pointer}
.abnormal-table .abnormal-choice-cell input[type="checkbox"]:focus-visible{outline:2px solid var(--primary,#0f766e);outline-offset:3px}
.abnormal-table .abnormal-choice-cell input[type="checkbox"]:disabled{cursor:not-allowed}
.abnormal-table tr.is-selected td{background:#effaf6}
.abnormal-group-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}
.abnormal-group-actions button{min-height:32px;padding:0 11px;font-size:12px}
.abnormal-replacement .abnormal-page{font-size:14px;line-height:1.6}
.abnormal-replacement .finance-section-head h3{font-size:17px}
.abnormal-replacement #abnormalSourceDescription{margin:0 18px 12px;font-size:14px;color:#637a72}
.abnormal-replacement .abnormal-toolbar{margin:12px 18px}
.abnormal-replacement .abnormal-toolbar input{max-width:680px;min-height:40px;font-size:14px}
.abnormal-replacement .abnormal-toolbar button{min-height:40px}
.abnormal-replacement .abnormal-group-actions{margin:12px 18px 16px}
.abnormal-replacement #abnormalSourceRows{padding:0 18px}
.abnormal-replacement .abnormal-product-group{margin:12px 0;border:1px solid #d6e7df;border-radius:12px;background:#fff;box-shadow:0 2px 5px rgba(31,71,53,.025)}
.abnormal-replacement .abnormal-product-group[open]{border-color:#9bcbb8}
.abnormal-replacement .abnormal-product-group .abnormal-product-summary{display:grid;grid-template-columns:72px minmax(0,1fr) 48px;align-items:center;gap:16px;padding:16px;background:#f2faf6;list-style:none;transition:background .15s ease}
.abnormal-replacement .abnormal-product-summary::-webkit-details-marker{display:none}
.abnormal-replacement .abnormal-product-summary:hover{background:#eaf6f0}
.abnormal-replacement .abnormal-product-summary:focus-visible{outline:2px solid #0f766e;outline-offset:-3px}
.abnormal-replacement .abnormal-product-summary span{margin:0}
.abnormal-replacement .abnormal-product-summary .abnormal-product-media{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;box-sizing:border-box;width:72px;height:72px;overflow:hidden;border:1px solid #dbe8e1;border-radius:10px;background:#fff;color:#889d92;text-decoration:none}
.abnormal-replacement .abnormal-product-media img{display:block;width:100%;height:100%;object-fit:contain}
.abnormal-replacement .abnormal-product-media svg{width:25px;height:25px;flex:none}
.abnormal-replacement .abnormal-no-image span,.abnormal-replacement .abnormal-image-failure{font-size:11px;line-height:1.4;text-align:center}
.abnormal-replacement .abnormal-product-media .abnormal-image-failure{display:none}
.abnormal-replacement .abnormal-product-media.image-failed .abnormal-image-failure{display:block;padding:7px}
.abnormal-replacement .abnormal-product-summary .abnormal-finished-copy{display:grid;min-width:0;gap:4px}
.abnormal-replacement .abnormal-finished-heading{display:flex;align-items:center;gap:10px}
.abnormal-replacement .abnormal-finished-heading strong{font-size:19px;line-height:1.25;font-weight:750;letter-spacing:.2px;color:#173f32}
.abnormal-replacement .abnormal-finished-heading .abnormal-finished-label{padding:1px 7px;border:1px solid #d6e6de;border-radius:5px;font-size:11px;line-height:1.6;color:#658176;background:#fff}
.abnormal-replacement .abnormal-finished-name{font-size:15px;font-weight:600;line-height:1.6;color:#334e43;overflow-wrap:anywhere}
.abnormal-replacement .abnormal-product-summary .abnormal-finished-sales{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;min-width:0;margin:2px 0;font-size:13px;line-height:1.6}
.abnormal-replacement .abnormal-finished-sales .abnormal-sales-label{color:#637f71;font-size:12px}
.abnormal-replacement .abnormal-finished-sales .abnormal-sale-order{min-width:0;padding:2px 8px;border:1px solid #cfe5d9;border-radius:6px;background:#fff;color:#245c46;font-size:13px;font-weight:600;overflow-wrap:anywhere}
.abnormal-replacement .abnormal-finished-sales .abnormal-sales-empty{color:#8b9a92;font-size:12px}
.abnormal-replacement .abnormal-finished-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;font-size:12px;line-height:1.5;color:#6c8176}
.abnormal-replacement .abnormal-finished-meta b{font-weight:500;color:#536f61}
.abnormal-replacement .abnormal-finished-meta .abnormal-material-count{padding:2px 8px;border-radius:5px;background:#e4f2eb;color:#4b7661}
.abnormal-replacement .abnormal-group-toggle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:12px;color:#56816c}
.abnormal-replacement .abnormal-group-toggle svg{width:20px;height:20px}
.abnormal-replacement .abnormal-group-toggle .when-open{display:none}
.abnormal-replacement details[open] .abnormal-group-toggle svg{transform:rotate(90deg)}
.abnormal-replacement details[open] .abnormal-group-toggle .when-open{display:block}
.abnormal-replacement details[open] .abnormal-group-toggle .when-closed{display:none}
.abnormal-replacement .abnormal-table{margin:0;font-size:14px}
.abnormal-replacement .abnormal-table th{padding:12px 10px;font-size:13px;color:#587165;background:#f8fbf9}
.abnormal-replacement .abnormal-table td{padding:13px 10px;font-size:14px;line-height:1.6}
.abnormal-replacement .abnormal-table small{font-size:12px;line-height:1.55;color:#75897e}
.abnormal-replacement .abnormal-table .abnormal-choice-cell{padding:8px 6px}
.abnormal-replacement .abnormal-stock-group summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px;font-size:15px}
.abnormal-replacement .abnormal-stock-caption{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.abnormal-replacement .abnormal-stock-group summary span{margin:0;font-size:12px}
.abnormal-replacement .abnormal-stock-note{margin:12px 16px;font-size:13px;color:#738579}
.abnormal-replacement .abnormal-pager{margin:16px 18px}
.abnormal-replacement .abnormal-selected-heading strong{font-size:15px;line-height:1.6}
.abnormal-replacement .abnormal-fields label{font-size:14px}
@media(max-width:600px){.abnormal-replacement #abnormalSourceRows{padding:0 10px}.abnormal-replacement .abnormal-product-group .abnormal-product-summary{grid-template-columns:60px minmax(0,1fr) 28px;gap:10px;padding:12px}.abnormal-replacement .abnormal-product-summary .abnormal-product-media{width:60px;height:60px}.abnormal-replacement .abnormal-finished-heading strong{font-size:17px}.abnormal-replacement .abnormal-finished-name{font-size:14px}.abnormal-replacement .abnormal-finished-meta{gap:5px;font-size:11px}.abnormal-replacement .abnormal-toolbar,.abnormal-replacement .abnormal-group-actions{margin-left:10px;margin-right:10px}.abnormal-replacement #abnormalSourceDescription{margin-left:10px;margin-right:10px}}
#abnormalSelection{border:1px solid #b8dacf;border-left:4px solid #0f766e;border-radius:14px;background:#eff8f4;box-shadow:0 4px 14px rgba(25,80,61,.06);margin:22px 0}
#abnormalSelection>.finance-section-head{padding:16px 20px;border-bottom:1px solid #cce5da;background:#e1f2e9}
#abnormalSelectionTitle{margin:0;color:#174c3b;font-size:18px;font-weight:700}
#abnormalSelectedCount{flex:none;padding:5px 12px;border:1px solid #c0dfd0;border-radius:20px;background:#fff;color:#19694f;font-size:13px;font-weight:600}
#abnormalForm{padding:18px 20px 20px}
#abnormalSelectedRows{display:grid;gap:16px}
#abnormalSelection .abnormal-selected{min-width:0;margin:0;padding:18px;border:1px solid #d2e5dc;border-left:3px solid #6ab89a;border-radius:11px;background:#fff;box-shadow:0 2px 5px rgba(25,80,61,.035)}
#abnormalSelection .abnormal-selected-heading{display:flex;align-items:flex-start;flex-wrap:nowrap;gap:12px}
#abnormalSelection .abnormal-selected-number{display:flex;align-items:center;justify-content:center;flex:0 0 32px;height:32px;border-radius:9px;background:#e6f4ed;color:#287457;font-size:14px;font-weight:700}
#abnormalSelection .abnormal-selected-copy{display:grid;flex:1;min-width:0;gap:7px}
#abnormalSelection .abnormal-selected-title{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 12px;min-width:0}
#abnormalSelection .abnormal-selected-title strong{font-size:18px;line-height:1.4;color:#173f32;overflow-wrap:anywhere}
#abnormalSelection .abnormal-selected-title .abnormal-selected-name{flex-basis:auto;color:#344d42;font-size:15px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}
#abnormalSelection .abnormal-selected-copy .abnormal-selected-meta{flex-basis:auto;color:#718579;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
#abnormalSelection .abnormal-selected-heading button{flex:none;min-height:32px;margin:0;padding:0 12px;font-size:13px;background:#fff}
#abnormalSelection .abnormal-selected>.abnormal-fields{margin:16px 0 0;padding-top:14px;border-top:1px solid #eef3f0}
#abnormalSelection .abnormal-fields label{min-width:0;color:#476658;font-size:13px;font-weight:600}
#abnormalSelection .abnormal-fields input,#abnormalSelection .abnormal-fields textarea{box-sizing:border-box;min-width:0;min-height:40px;border-color:#c7ddcf;border-radius:7px;font-size:14px;font-weight:400}
#abnormalSelection .abnormal-fields input[readonly]{background:#f4f8f5;color:#61766a}
#abnormalSelection .abnormal-fields .abnormal-reason{min-height:86px;resize:vertical}
#abnormalForm>.abnormal-fields{margin:20px 0 14px;padding-top:18px;border-top:1px solid #cce3d7}
#abnormalForm>.muted{margin:12px 0 16px;color:#637b6d;font-size:12px;line-height:1.7}
#abnormalSubmit{min-height:40px;padding:0 18px;border-radius:8px;font-size:14px;font-weight:600}
#abnormalSelectedRows>.finance-empty{margin:0;padding:24px 16px;border:1px dashed #b9d9c9;border-radius:10px;background:rgba(255,255,255,.65);color:#6b8575;font-size:14px}
#abnormalMessage:not(:empty){margin:0 20px 18px;padding:10px 14px;border-radius:8px;background:#fff}
#abnormalSelection .abnormal-material-kind{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:16px;padding:12px;border:1px solid #dfebe4;border-radius:9px;background:#f7fbf9}
#abnormalSelection .abnormal-material-kind .secondary{min-height:34px;padding:0 15px;font-size:13px;border-color:#c7ddd2;background:#fff;color:#537264}
#abnormalSelection .abnormal-material-kind .secondary.active{border-color:#32896b;background:#def1e7;color:#1d624a;font-weight:700}
#abnormalSelection .abnormal-material-kind>span{color:#7d9084;font-size:12px;line-height:1.6}
#abnormalSelection .abnormal-material-search{min-height:34px;margin-left:auto;padding:0 14px;border-radius:7px;font-size:13px}
#abnormalSelection .abnormal-material-history{margin:12px 0 0;color:#698073;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
#abnormalSelection .abnormal-material-history strong{color:#25694e;font-size:13px}
#abnormalSelection .abnormal-fields input.abnormal-material-picker{cursor:pointer;padding-right:34px;border-color:#9bcdbb;background-color:#f7fcf9;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2337876e' stroke-width='1.8'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:17px;color:#245b48;transition:border-color .15s,box-shadow .15s,background-color .15s}
#abnormalSelection .abnormal-fields input.abnormal-material-picker:hover{border-color:#32896b;background-color:#edf8f2}
#abnormalSelection .abnormal-fields input.abnormal-material-picker:focus-visible{outline:2px solid #32896b;outline-offset:2px;box-shadow:0 0 0 3px #e0f2e8}
.abnormal-material-dialog{box-sizing:border-box;width:min(1000px,94vw);min-width:0}
.abnormal-material-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.abnormal-material-dialog-head h2{margin:0;font-size:20px;color:#214b39}
.abnormal-material-dialog-head button{flex:none}
.abnormal-material-dialog>.muted{font-size:13px;line-height:1.7;margin:12px 0 16px}
.abnormal-material-toolbar{display:flex;gap:10px;margin:0 0 16px}
.abnormal-material-toolbar input{flex:1;min-width:0;width:100%;font-size:14px}
.abnormal-material-toolbar button{flex:none;min-width:70px}
.abnormal-material-option{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,1.3fr) 62px;align-items:center;gap:16px;margin:10px 0;padding:16px;border:1px solid #d2e5da;border-radius:10px;background:#f6fbf8;font-size:14px}
.abnormal-material-option>div{min-width:0;overflow-wrap:anywhere}
.abnormal-material-option p{margin:6px 0;line-height:1.6;color:#345542}
.abnormal-material-option strong{color:#245b42}
.abnormal-material-option small,.abnormal-material-option .muted{font-size:12px;color:#728578;line-height:1.6}
.abnormal-material-option button{min-height:34px;padding:0 10px;font-size:13px}
.abnormal-material-dialog #abnormalMaterialResults{max-height:50vh;overflow-y:auto;overscroll-behavior:contain;padding:0 3px}
.abnormal-material-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:14px;font-size:12px;color:#698073}
.abnormal-material-pager>span{flex:1;min-width:0;line-height:1.7;overflow-wrap:anywhere}
.abnormal-material-pager>button{flex:none;min-height:32px;padding:0 10px;font-size:12px}
@media(max-width:600px){#abnormalSelection .abnormal-material-search{margin-left:0}.abnormal-material-option{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:12px}.abnormal-material-option button{justify-self:end;min-width:64px}.abnormal-material-dialog-head h2{font-size:18px}}
@media(max-width:600px){#abnormalSelection>.finance-section-head{padding:14px 12px}#abnormalSelectionTitle{font-size:16px}#abnormalSelectedCount{padding:4px 9px;font-size:12px}#abnormalForm{padding:12px}#abnormalSelectedRows{gap:12px}#abnormalSelection .abnormal-selected{padding:14px 12px}#abnormalSelection .abnormal-selected-heading{gap:8px}#abnormalSelection .abnormal-selected-number{flex-basis:26px;height:26px;border-radius:7px;font-size:12px}#abnormalSelection .abnormal-selected-title{gap:4px}#abnormalSelection .abnormal-selected-title strong{font-size:16px}#abnormalSelection .abnormal-selected-title .abnormal-selected-name{font-size:14px}#abnormalSelection .abnormal-selected-heading button{padding:0 9px;font-size:12px}#abnormalMessage:not(:empty){margin:0 12px 12px}}
#abnormalSelection #abnormalSubmit{min-width:0;max-width:100%;height:auto;min-height:40px;white-space:normal;line-height:1.5;text-align:center}
