*{box-sizing:border-box}body{margin:0;background:#f4f7f8;color:#203333;font-family:var(--wms-font-body,"Noto Sans Thai",sans-serif);font-size:14px}main{max-width:1560px;margin:28px auto;padding:0 24px}h1{font-size:26px;margin:0}h2{font-size:18px;margin:0 0 6px}.heading,.toolbar,.save-bar,.filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.heading{justify-content:space-between;margin-bottom:22px}.eyebrow{color:#0f766e;font-weight:700;margin:0 0 6px}.muted{color:#637777}.card{background:white;border:1px solid #dce6e6;border-radius:14px}.filters{padding:18px;margin:16px 0}.filters label{display:grid;gap:7px;font-weight:600}.filters p{flex-basis:100%;margin:0}.summary{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:18px 0}.summary .card{padding:18px 22px}.summary span{color:#637777;display:block}.summary strong{font-size:27px;display:block;margin-top:4px;color:#0f766e}.toolbar{margin:18px 0}button,input,select,textarea{font:inherit}button{cursor:pointer;background:#fff;color:#28504e;border:1px solid #b9ccca;padding:10px 14px;border-radius:8px;min-height:42px}button:hover{background:#edf7f5}button.primary{background:#0f766e;color:#fff;border-color:#0f766e}button:disabled{cursor:default;opacity:.5}input,select,textarea{border:1px solid #ccd9d8;border-radius:6px;padding:10px;background:#fff;color:inherit;min-height:42px}input:focus,select:focus,textarea:focus,button:focus-visible{outline:2px solid #0f766e;outline-offset:2px}input[readonly]{background:#eef3f3;color:#526b68}fieldset{border:0;padding:0;margin:0;min-width:0}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{background:#edf4f3;padding:13px 10px;white-space:nowrap}td{padding:9px 7px;border-top:1px solid #e7eded;vertical-align:top}td input,td textarea{width:100%;padding:8px}td input[data-field=lot]{min-width:112px}td input[data-field=province]{min-width:128px}td input[type=number]{min-width:100px;width:110px;text-align:right}td textarea{min-width:190px;resize:vertical;height:42px;line-height:24px}td input[type=date]{min-width:148px}td.by{min-width:140px;max-width:180px;word-break:break-word}td small{display:block;color:#667c79;margin-top:6px}tr.changed{background:#fffbeb}tr.removed{opacity:.5;background:#f1f3f3}tr.removed td:not(:last-child){text-decoration:line-through}.table-wrap{overflow-x:auto}.empty{padding:35px 18px;color:#637777;text-align:center}.save-bar{position:sticky;bottom:0;justify-content:space-between;padding:14px 4px;background:#f4f7f8ed;z-index:2}.save-bar button{min-width:190px}.age{display:inline-block;background:#e7f3ef;color:#176b5b;border-radius:7px;padding:7px;white-space:nowrap}.age.old{background:#fff0d0;color:#986215}#source-panel{padding:20px;margin:16px 0;background:#f5fbfa}#source-panel .table-wrap{margin:12px 0}#source-panel td{vertical-align:middle}input[type=checkbox]{width:22px;height:22px;min-height:22px;accent-color:#0f766e}.warning,#message.error{padding:12px;background:#fff2df;color:#894d12;border-radius:8px;margin:12px 0}#message:not(:empty){padding:12px;background:#eaf5f0;border-radius:8px}#message.error{background:#fff2df}.help{font-size:12px;line-height:1.8}a{color:#0f766e}[hidden]{display:none!important}@media(max-width:700px){main{padding:0 12px;margin-top:18px}h1{font-size:21px}.summary{gap:7px}.summary .card{padding:12px 9px}.summary strong{font-size:21px}.summary span{font-size:11px}.filters label{flex:1}.filters input,.filters select{width:100%}.toolbar button{flex:1}.heading>a{font-size:12px}.save-bar{gap:8px}.save-bar button{min-width:150px}#source-panel{padding:12px}}

/* Compact the editable register without shrinking the toolbar or exported image. */
#report-table th{padding:9px 7px}
#report-table td{padding:4px 7px;vertical-align:middle}
#report-table td input,#report-table td textarea{min-height:32px;height:32px;padding:4px 8px;line-height:22px}
#report-table td textarea{display:block;resize:vertical}
#report-table td button{min-height:32px;padding:4px 12px;line-height:22px}
#report-table .age{padding:4px 7px;line-height:22px}
#report-table td.by{min-width:205px;max-width:250px;line-height:18px}
#report-table td small{margin-top:2px;line-height:16px;font-size:11px}
#report-table .edit-author,#report-table .edit-time{display:block}
#report-table .edit-time{white-space:nowrap}
