
.purchase-entry-table [data-field="unit"]{font-size:13px}
.purchase-entry-v5{margin-top:16px;padding:14px;border:1px solid #dce7e5;border-radius:12px;background:#fbfdfc}
.purchase-entry-tab-page{display:grid;gap:14px;min-width:0;padding-bottom:16px}.purchase-entry-tab-head{margin:0;padding:2px 0}.purchase-entry-tab-head h1{margin:0;font-size:22px}.purchase-entry-tab-panel{min-width:0;padding:16px;border:1px solid #e1e7ef;border-radius:12px;background:#fff;box-shadow:0 4px 14px rgba(25,45,75,.04)}.purchase-entry-tab-panel form{display:grid;gap:14px}.purchase-entry-tab-page .purchase-sheet-head-v23{margin-bottom:0}.purchase-entry-tab-page .purchase-entry-v5{margin-top:0}.purchase-entry-tab-actions{position:sticky;bottom:0;z-index:8;display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;border:1px solid #e1e7ef;border-radius:10px;background:rgba(255,255,255,.96);box-shadow:0 -6px 18px rgba(20,35,60,.06);backdrop-filter:blur(8px)}
.purchase-entry-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}
.purchase-entry-scroll{overflow-x:auto;border:1px solid #dce7e5;border-radius:9px;background:#fff}
.purchase-entry-table{width:100%;min-width:1260px;border-collapse:collapse;table-layout:fixed}
.purchase-entry-table th{padding:10px 7px;background:#f3f7f7;color:#4d6660;text-align:left;font-size:12px;white-space:nowrap}
.purchase-entry-table td{padding:7px;border-top:1px solid #edf2f1;vertical-align:middle}
.purchase-entry-table th:first-child,.purchase-entry-table td:first-child{width:35px;text-align:center}
.purchase-entry-table th:nth-child(2){width:124px}.purchase-entry-table th:nth-child(3){width:180px}.purchase-entry-table th:nth-child(4){width:130px}.purchase-entry-table th:nth-child(5){width:85px}.purchase-entry-table th:nth-child(6){width:82px}.purchase-entry-table th:nth-child(7){width:78px}.purchase-entry-table th:nth-child(8){width:82px}.purchase-entry-table th:nth-child(9){width:100px}.purchase-entry-table th:nth-child(10){width:200px}.purchase-entry-table th:nth-child(11){width:112px}.purchase-entry-table th:last-child{width:52px}
.purchase-entry-table input,.purchase-entry-table select{box-sizing:border-box;width:100%;height:36px;padding:0 7px;border:1px solid #dce5e7;border-radius:6px;background:#fff;color:#243d38;font:inherit;font-size:12px}
.purchase-entry-table input[readonly]{background:#f1f6fb;color:#20589c;font-weight:700}.purchase-entry-table input:focus,.purchase-entry-table select:focus{outline:2px solid #d8e9ff;border-color:#6a9bea}
.purchase-cell-muted{color:#91a09b;font-size:12px}.purchase-entry-hint{margin:9px 1px 0;color:#70847f;font-size:12px;line-height:1.5}
.purchase-entry-heading b{display:block;color:#203b37;font-size:14px}.purchase-entry-heading small{display:block;margin-top:4px;color:#71827f;font-size:12px}
.purchase-type-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}
.purchase-type-option{display:flex;flex-direction:column;gap:5px;min-height:68px;padding:10px 12px;border:1px solid #d9e5e2;border-radius:9px;background:#fff;text-align:left;color:#24433d;cursor:pointer;font:inherit}
.purchase-type-option:hover{border-color:#77a8f8;background:#f5f9ff}.purchase-type-option b{font-size:13px}.purchase-type-option small{color:#788b86;font-size:11px}
.purchase-entry-list{display:grid;gap:8px}.purchase-entry-empty{padding:18px;text-align:center;border:1px dashed #ccd9d5;border-radius:9px;color:#788b86;font-size:13px;background:#fff}
.purchase-entry-summary{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:14px;padding:11px 12px;border:1px solid #e0e9e6;border-radius:9px;background:#fff}
.purchase-entry-summary>div:first-child{display:flex;flex-direction:column;gap:5px;min-width:0}.purchase-entry-summary>div:first-child>b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#596d68}
.purchase-entry-tag{width:max-content;padding:3px 7px;border-radius:99px;background:#edf4ff;color:#315caa;font-size:11px}.purchase-entry-summary>strong{white-space:nowrap;color:#21453e;font-size:14px}.purchase-entry-actions{display:flex;gap:5px}.purchase-entry-actions button{padding:5px 8px;font-size:12px}
.purchase-entry-total{display:flex;justify-content:flex-end;align-items:center;gap:16px;padding:13px 4px 0;color:#516660;font-size:13px}.purchase-entry-total b{font-size:18px;color:#1e3d37}
.purchase-type-backdrop{position:fixed;inset:0;z-index:20000;display:grid;place-items:center;padding:18px;background:rgba(18,34,32,.48)}
.purchase-type-dialog{width:min(640px,100%);max-height:min(88vh,760px);overflow:auto;border:1px solid #e0e8e6;border-radius:14px;background:#fff;box-shadow:0 24px 80px rgba(12,32,28,.25)}
.purchase-type-dialog>header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid #e8eeec}.purchase-type-dialog>header small{color:#7b8b87;font-size:11px}.purchase-type-dialog h3{margin:3px 0 0;color:#203b37;font-size:18px}.purchase-type-dialog>header button{border:0;background:none;color:#637671;font-size:24px;cursor:pointer}
.purchase-type-dialog form{padding:18px 20px}.purchase-type-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.purchase-type-fields label{display:flex;flex-direction:column;gap:6px;color:#536964;font-size:12px}.purchase-type-fields input,.purchase-type-fields select{width:100%;height:40px;box-sizing:border-box;padding:0 10px;border:1px solid #d9e3e0;border-radius:8px;background:#fff;color:#243d38;font:inherit}.purchase-type-fields input:focus,.purchase-type-fields select:focus{outline:2px solid #dbe8ff;border-color:#5c91e9}.purchase-entry-explain{grid-column:1/-1;padding:9px 11px;border-radius:8px;background:#f5f8f7;color:#72827e;font-size:12px}
.purchase-amount-recalc{margin-top:10px;border:0;background:none;color:#2465c8;cursor:pointer;font:inherit;font-size:12px}.purchase-type-dialog form>footer{display:flex;justify-content:flex-end;gap:8px;margin-top:20px;padding-top:14px;border-top:1px solid #edf1ef}.purchase-type-dialog form>footer button{min-height:36px}
.purchase-type-fields input[readonly]{background:#f5f7fa;color:#355b9a;font-weight:700}.purchase-edit-context{display:grid;gap:5px;margin:0 0 12px;padding:10px 12px;border:1px solid #e2eaf7;border-radius:9px;background:#f7faff}.purchase-edit-context b{color:#263c5c}.purchase-edit-context span{color:#718096;font-size:12px}
.purchase-inventory-mode{display:flex;flex-direction:column;gap:7px;margin-top:14px;color:#536964;font-size:12px}.purchase-inventory-mode select{box-sizing:border-box;width:100%;min-height:40px;padding:0 10px;border:1px solid #d9e3e0;border-radius:8px;background:#fff;color:#243d38;font:inherit}
.workspace-body .purchase-type-fields label{display:flex;flex-direction:column;gap:6px;color:#536964;font-size:12px}.workspace-body .purchase-type-fields input,.workspace-body .purchase-type-fields select{box-sizing:border-box;width:100%;height:40px;padding:0 10px;border:1px solid #d9e3e0;border-radius:8px;background:#fff;color:#243d38;font:inherit}.workspace-body .purchase-type-fields input[readonly]{background:#f5f7fa;color:#355b9a;font-weight:700}
@media(max-width:850px){.purchase-type-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-entry-summary{grid-template-columns:minmax(0,1fr) auto}.purchase-entry-actions{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:520px){.purchase-type-fields{grid-template-columns:1fr}.purchase-type-dialog form{padding:14px}.purchase-type-dialog>header{padding:13px 15px}}
