/* Source unit card: 780 × 470; keep the workspace tabs outside the form usable. */
body #measurementUnitModal.workspace-form-page{place-items:start center;padding:40px 12px;box-sizing:border-box}
body #measurementUnitModal #measurementUnitForm{width:min(780px,100%);height:470px;min-height:470px;max-height:none;margin:0;border-radius:0;box-sizing:border-box;color:#333;font:13px "Microsoft YaHei",sans-serif}
#measurementUnitForm .modal-header{height:50px;min-height:50px;padding:0 20px;border-color:#eee;box-sizing:border-box}
#measurementUnitForm .modal-header h2{font-size:18px;font-weight:400}
#measurementUnitForm .modal-header button{width:24px;height:24px;padding:3px;border:0;background:transparent;color:#888}
#measurementUnitForm .modal-header svg{width:16px;height:16px}
body #measurementUnitModal #measurementUnitForm .modal-body{flex:1;display:grid;grid-template-columns:230px 230px;grid-auto-rows:minmax(48px,auto);align-content:start;gap:18px 150px;padding:40px 80px 20px;overflow:auto;box-sizing:border-box}
#measurementUnitForm .field{min-width:0;margin:0}
#measurementUnitForm .field>span:first-child{margin:0 0 4px;font-size:13px;font-weight:400;line-height:16px}
#measurementUnitForm .input-wrap{height:28px;min-height:28px;padding:0 8px;gap:0;border:1px solid #d9d9d9;border-radius:0;box-shadow:none;box-sizing:border-box;background:#fff}
#measurementUnitForm .input-wrap:focus-within{border-color:#5582f3;box-shadow:none}
#measurementUnitForm .input-wrap input,#measurementUnitForm .input-wrap select{width:100%;min-width:0;height:26px;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:#333;font:13px "Microsoft YaHei",sans-serif;box-shadow:none;outline:0;box-sizing:border-box}
#measurementUnitForm .input-wrap select{cursor:pointer;appearance:none;padding-right:18px;background: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='m2 4 4 4 4-4' fill='none' stroke='%23999' stroke-width='1'/%3E%3C/svg%3E") no-repeat right center}
#measurementUnitForm .input-wrap [data-open-reference]{height:24px;padding:3px 0 3px 5px}
#measurementUnitForm .field-error{margin-top:3px;font-size:12px}
#measurementUnitForm .field-error:empty{display:none}
#measurementUnitForm .measurement-base-option>.kd-switch{display:inline-block;width:30px;height:16px;min-height:16px;margin:2px 0 0;padding:0;border:0;background:transparent;box-sizing:border-box}
#measurementUnitForm .measurement-base-option>.kd-switch input{inset:0;width:100%;height:100%;margin:0;padding:0;z-index:1;cursor:pointer}
#measurementUnitForm .modal-footer{height:50px;min-height:50px;padding:10px 0;justify-content:center;gap:16px;border-color:#eee;box-sizing:border-box}
#measurementUnitForm .modal-footer button{width:60px;min-width:60px;height:28px;min-height:28px;padding:0;border:1px solid #d9d9d9;border-radius:0;background:#fff;color:#333;font:13px "Microsoft YaHei",sans-serif;box-shadow:none}
#measurementUnitForm .modal-footer button[type=submit]{background:#5582f3;border-color:#5582f3;color:#fff}
#measurementUnitForm .modal-footer button svg{display:none}
@media(max-width:800px){body #measurementUnitModal #measurementUnitForm .modal-body{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px 40px;padding:40px}}
@media(max-width:520px){body #measurementUnitModal.workspace-form-page{padding:12px}body #measurementUnitModal #measurementUnitForm .modal-body{grid-template-columns:minmax(0,1fr);gap:18px;padding:20px}body #measurementUnitModal #measurementUnitForm{height:auto;min-height:470px}#measurementUnitForm .modal-footer{flex:none}}
/* Read-only drill-down cards use labels above borderless values. */
body .unit-reference-detail>.transfer-panel{width:780px;height:470px;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);min-width:0;border-radius:0;color:#333;font:13px "Microsoft YaHei",sans-serif}
body .unit-group-reference-detail>.transfer-panel{width:460px;height:350px}
.unit-reference-detail>.transfer-panel>header{height:50px;min-height:50px;border-color:#eee;box-sizing:border-box}
.unit-reference-detail>.transfer-panel>.transfer-content{flex:1;min-height:0;overflow:auto;padding:40px 80px;box-sizing:border-box}
.unit-reference-detail .unit-detail-fields{display:grid;grid-template-columns:230px 230px;gap:24px 150px;align-content:start}
.unit-reference-detail .unit-detail-field{display:flex;flex-direction:column;min-width:0;gap:5px;font-weight:400;line-height:16px}
.unit-reference-detail .unit-detail-field>span:first-child{color:#666;font-size:13px;font-weight:400}
.unit-reference-detail .unit-detail-field b{font-weight:400;color:#f33}
.unit-reference-detail .unit-detail-value{display:flex;align-items:center;height:21px;min-width:0}
.unit-reference-detail .unit-detail-value input{width:100%;min-width:0;height:21px;padding:0;margin:0;border:0;border-radius:0;outline:0;box-shadow:none;background:transparent;color:#333;font:13px "Microsoft YaHei",sans-serif}
.unit-reference-detail [data-unit-group-detail],#measurementUnitForm .unit-group-detail-button{flex:none;width:22px;height:24px;padding:3px;border:0;background:transparent;color:#999;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.unit-reference-detail [data-unit-group-detail]:hover,#measurementUnitForm .unit-group-detail-button:hover{color:#5582f3}
.unit-reference-detail .unit-detail-field>.kd-switch{display:inline-block;width:30px;height:16px;min-height:16px;margin:2px 0 0;padding:0;border:0;background:transparent;box-sizing:border-box}
.unit-reference-detail .kd-switch input{width:100%;height:100%;margin:0;padding:0;cursor:default}
.unit-reference-detail .kd-switch>span{width:30px;height:16px}
.unit-reference-detail .kd-switch input:checked+span:after{transform:translateX(14px)}
.finance-unit-detail-button svg{display:block;width:16px;height:16px}
#purchaseFinanceLineBody input[data-finance-line-field="basicUnit"]{width:calc(100% - 22px);min-width:0;box-sizing:border-box}
#purchaseFinanceLineBody .finance-unit-detail-button{position:relative;z-index:1;vertical-align:middle}
.unit-reference-detail>.transfer-panel>footer{height:50px;min-height:50px;box-sizing:border-box;padding:10px;border-color:#eee}
.unit-reference-detail>.transfer-panel>footer>button{width:60px;height:28px;min-height:28px;border-radius:0;padding:0;font-size:13px}
.unit-group-reference-detail>.transfer-panel>.transfer-content{padding:34px 115px}
.unit-group-reference-detail .unit-detail-fields{grid-template-columns:230px;gap:23px}
@media(max-width:800px){.unit-card-reference-detail>.transfer-panel>.transfer-content{padding:30px 40px}.unit-card-reference-detail .unit-detail-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:21px 40px}}
@media(max-width:520px){.unit-reference-detail>.transfer-panel>.transfer-content{padding:24px}.unit-reference-detail .unit-detail-fields{grid-template-columns:minmax(0,1fr);gap:18px}}
