/* Only the new project-detail template dialog; existing layouts stay intact. */
.material-kit-dialog{width:min(920px,calc(100vw - 32px));max-height:88vh;overflow:auto}
#test-material-kit-form{padding:22px;display:grid;gap:16px}
#test-material-kit-form .section-head{padding:0;border:0}
#test-material-kit-form label{display:grid;gap:6px}
#test-material-kit-form .cell-secondary{display:block;margin-top:5px}
#test-material-kit-form .kit-add-row{display:grid;grid-template-columns:1fr 1.6fr 110px auto;gap:12px;align-items:end}
#kit-editor{display:grid;gap:14px}
#kit-editor.hidden{display:none}
#kit-lines input{min-width:75px;width:100%;max-width:140px}
@media(max-width:760px){#test-material-kit-form .kit-add-row{grid-template-columns:1fr}#test-material-kit-form .section-head{flex-wrap:wrap}}

/* UAT-3.10: scoped, native single-row selectors and shared material identity. */
.workflow-v3 #test-material-kit-dialog #test-material-kit-form .kit-add-row{grid-template-columns:minmax(0,1fr) minmax(0,1.7fr) 112px auto;align-items:start;gap:12px}
.workflow-v3 #test-material-kit-dialog #test-material-kit-form label{min-width:0;line-height:20px;gap:6px;font-size:13px;margin:0}
.workflow-v3 #test-material-kit-dialog #test-material-kit-form :is(#kit-select,#kit-item-select){appearance:none;height:36px;min-height:36px;max-height:36px;box-sizing:border-box;padding:0 32px 0 10px;line-height:normal;font:inherit;font-size:13px;color:#40444B;border:1px solid #DDE3E8;border-radius:5px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%237B858F' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 10px center;width:100%;min-width:0;max-width:100%;text-indent:0;transform:none;overflow:visible}
.workflow-v3 #test-material-kit-dialog #test-material-kit-form :is(#kit-item-search,#kit-template-name){height:36px;min-height:36px;box-sizing:border-box;padding:0 10px;line-height:normal;border:1px solid #DDE3E8;border-radius:5px;font:inherit;font-size:13px;margin:0;width:100%}
.workflow-v3 #test-material-kit-dialog #test-material-kit-form #kit-add-item{height:36px;min-height:36px;box-sizing:border-box;padding:0 14px;font-size:13px;line-height:normal;margin:26px 0 0}
.workflow-v3 #test-material-kit-dialog #test-material-kit-form .kit-quantity-control{display:inline-flex;align-items:center;height:36px;box-sizing:border-box;border:1px solid #DDE3E8;border-radius:5px;overflow:hidden;background:#fff;width:100%;min-width:0;max-width:132px}
.workflow-v3 #test-material-kit-dialog #test-material-kit-form .kit-quantity-control input{border:0;box-shadow:none;outline-offset:-2px;flex:1;min-width:0;width:100%;max-width:none;height:34px;min-height:0;box-sizing:border-box;padding:0 6px 0 10px;line-height:normal;font:inherit;font-size:13px;margin:0;background:transparent}
.workflow-v3 #test-material-kit-dialog #test-material-kit-form .kit-quantity-control .kit-unit{flex:none;padding:0 8px 0 3px;color:#68727D;font-size:12px;white-space:nowrap;line-height:20px}
.workflow-v3 #test-material-kit-dialog #test-material-kit-form .kit-selected-identity{padding:0 0 2px;min-width:0}.kit-selected-identity .warehouse-material-name{font-size:13px}
.workflow-v3 #test-material-kit-dialog #test-material-kit-form .requirements-table{width:100%;table-layout:fixed;min-width:0}
.workflow-v3 #test-material-kit-dialog #test-material-kit-form .requirements-table :is(th,td){min-width:0;white-space:normal;overflow-wrap:anywhere;vertical-align:middle;padding:11px 10px}
.workflow-v3 #test-material-kit-dialog #test-material-kit-form .requirements-table th:first-child{width:auto}
.workflow-v3 #test-material-kit-dialog #test-material-kit-form .requirements-table th:nth-child(2){width:150px}
.workflow-v3 #test-material-kit-dialog #test-material-kit-form .requirements-table th:last-child{width:65px}
.workflow-v3 #test-material-kit-dialog #test-material-kit-form .kit-choice-table th:first-child{width:38px}
.workflow-v3 #test-material-kit-dialog #test-material-kit-form .kit-choice-table th:nth-child(2){width:auto}
.workflow-v3 #test-material-kit-dialog #test-material-kit-form .kit-choice-table th:last-child{width:150px}
.workflow-v3 #test-material-kit-dialog #test-material-kit-form td:last-child:has(button){text-align:right}
@media(max-width:760px){.workflow-v3 #test-material-kit-dialog #test-material-kit-form .kit-add-row{grid-template-columns:minmax(0,1fr)}.workflow-v3 #test-material-kit-dialog #test-material-kit-form #kit-add-item{margin-top:0;justify-self:end}.workflow-v3 #test-material-kit-dialog #test-material-kit-form .requirements-table :is(th,td){padding:10px 6px}.workflow-v3 #test-material-kit-dialog #test-material-kit-form .requirements-table th:nth-child(2){width:100px}.workflow-v3 #test-material-kit-dialog #test-material-kit-form .requirements-table th:last-child{width:48px}.workflow-v3 #test-material-kit-dialog #test-material-kit-form .kit-choice-table th:first-child{width:28px}.workflow-v3 #test-material-kit-dialog #test-material-kit-form .kit-choice-table th:nth-child(2){width:auto}.workflow-v3 #test-material-kit-dialog #test-material-kit-form .kit-choice-table th:last-child{width:100px}.workflow-v3 #test-material-kit-dialog #test-material-kit-form .kit-quantity-control{max-width:100px}}
/* Keep readable auxiliary identification and a single-line selection heading. */
.workflow-v3 #test-material-kit-dialog #test-material-kit-form .warehouse-material-spec{font-size:12px!important;line-height:1.6;font-weight:400;color:#68727D}
.workflow-v3 #test-material-kit-dialog #test-material-kit-form .kit-choice-table th:first-child{width:48px;white-space:nowrap}
@media(max-width:760px){.workflow-v3 #test-material-kit-dialog #test-material-kit-form .kit-choice-table th:first-child{width:38px;white-space:nowrap}}
