:root { --sidebar: 188px; --erp-line: #e1e5eb; --erp-muted: #7d8796; background: #f2f4f7; }
/* Use native screen text rendering and one rounded sans-serif family throughout. */
:root, body, button, input, textarea, select, kbd, .mono, .document-number {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  text-rendering: optimizeLegibility;
  letter-spacing: normal;
}
body { color: #303b4c; font-size: 13px; }
.erp-shell { min-height: 100vh; }
.erp-header { position: fixed; inset: 0 0 auto; height: 58px; background: #fff; border-bottom: 1px solid var(--erp-line); display: flex; align-items: center; justify-content: space-between; padding: 0 22px; z-index: 30; }
.erp-brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.erp-brand .brand-mark { width: 31px; height: 31px; border-radius: 8px; box-shadow: none; }
.erp-brand .brand-mark svg { width: 22px; height: 22px; }
.erp-brand strong { font-size: 21px; letter-spacing: 1px; color: #283c57; }
.erp-brand>span:last-child { font-size: 12px; margin-left: 14px; padding-left: 20px; border-left: 1px solid var(--erp-line); color: #778395; }
.header-tools { display: flex; align-items: center; gap: 10px; color: #677385; font-size: 12px; }
.header-tools .connection { margin-right: 15px; }
.header-help { display: flex; align-items: center; gap: 6px; background: transparent; border: 0; font-size: 12px; color: #788496; }
.header-help .icon { width: 16px; height: 16px; }
.header-separator { height: 18px; border-left: 1px solid var(--erp-line); margin: 0 10px; }
.erp-sidebar { position: fixed; inset: 58px auto 0 0; width: var(--sidebar); background: #fbfcfe; border-right: 1px solid var(--erp-line); display: flex; flex-direction: column; z-index: 20; }
.workspace-name { height: 57px; display: flex; align-items: center; gap: 9px; padding: 0 22px; color: #5e6c80; font-size: 13px; border-bottom: 1px solid #edf0f4; }
.workspace-name .icon { width: 17px; height: 17px; color: #8191a7; }
.erp-sidebar nav { padding: 7px 10px; }
.menu-group-label { font-size: 11px; color: #98a3b2; padding: 20px 14px 9px; }
.erp-nav { display: flex; align-items: center; gap: 10px; height: 41px; padding: 0 13px; margin: 3px 0; border-radius: 5px; color: #5e6c80; font-size: 13px; }
.erp-nav .icon { width: 17px; height: 17px; color: #8896aa; }
.erp-nav kbd { margin-left: auto; font: 10px inherit; color: #9da9ba; }
.erp-nav:hover { background: #f0f3f8; }
.erp-nav.active { background: #eaf2ff; color: #1767cf; font-weight: 550; }
.erp-nav.active .icon { color: #347fdf; }
.erp-sidebar-foot { margin-top: auto; padding: 17px 17px 19px; font-size: 10px; color: #99a4b5; display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--erp-line); }
.erp-sidebar-foot>span:last-child { margin-left: auto; }
.erp-workspace { margin-left: var(--sidebar); padding-top: 58px; min-height: 100vh; display: flex; flex-direction: column; }
.workspace-tabs { display: flex; gap: 0; min-height: 42px; background: #f9fafc; border-bottom: 1px solid var(--erp-line); padding: 0 16px; }
.workspace-tabs a { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #8a95a6; padding: 0 20px; border: 1px solid transparent; border-top: 2px solid transparent; margin-bottom: -1px; }
.workspace-tabs a .icon { width: 14px; height: 14px; }
.workspace-tabs a.active { border-color: var(--erp-line); border-bottom-color: #fff; border-top-color: var(--blue); background: #fff; color: #246fcf; }
main.erp-main { max-width: none; width: 100%; padding: 0 20px 18px; margin: 0; flex: 1; }
.erp-page-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 65px; }
.erp-page-title>div { display: flex; align-items: center; gap: 18px; }
.erp-page-title h1 { font-size: 19px; font-weight: 600; letter-spacing: 0; }
.erp-page-title>div>span { font-size: 11px; color: #9aa4b3; border-left: 1px solid #dbe1ea; padding-left: 18px; }
.title-hint { color: #98a3b4; font-size: 11px; }
.button { border-radius: 5px; min-height: 32px; height: 32px; padding: 0 12px; font-size: 12px; gap: 6px; box-shadow: none !important; }
.button .icon { width: 15px; height: 15px; }
.button kbd { font-size: 10px; opacity: .65; margin-left: 5px; font-family: inherit; }
.button.secondary { border-color: #dfe4ec; color: #5f6e83; }
.text-button { font-size: 12px; color: #337ccf; }
.query-panel { border: 1px solid var(--erp-line); background: #fff; border-radius: 6px; padding: 19px 20px 0; margin-bottom: 13px; }
.query-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px 23px; }
.query-field { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 12px; }
.query-field>span { flex: 0 0 55px; color: #69768a; text-align: right; }
.query-field input { height: 32px; width: 100%; border: 1px solid #dfe4ec; border-radius: 4px; padding: 0 10px; font-size: 12px; color: #475a74; background: #fff; }
.query-field input::placeholder { color: #acb5c2; }
.range-field { grid-column: span 2; }
.range-field>div { display: flex; align-items: center; gap: 10px; width: 100%; color: #a1aab7; }
.range-field input { flex: 1; min-width: 0; color: #8290a3; }
.query-actions { display: flex; gap: 9px; grid-column: span 2; }
.query-actions .primary { min-width: 75px; }
.quick-filter { display: flex; align-items: center; gap: 7px; min-height: 45px; margin-top: 11px; border-top: 1px solid #f0f2f5; font-size: 11px; color: #99a4b4; }
.quick-filter>button { font-size: 11px; background: transparent; border: 0; border-radius: 4px; padding: 4px 10px; color: #8291a7; }
.quick-filter>button.active { color: #2874d1; background: #edf4ff; }
.quick-filter .query-note { margin-left: auto; color: #a0aaba; font-size: 10px; }
.document-panel { border: 1px solid var(--erp-line); border-radius: 6px; overflow: hidden; background: #fff; }
.document-toolbar { min-height: 55px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 15px; border-bottom: 1px solid #e9edf3; }
.toolbar-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.toolbar-divider { border-left: 1px solid #e1e6ed; height: 18px; margin: 0 3px; }
.toolbar-count { display: flex; align-items: center; gap: 8px; color: #8a97a9; font-size: 11px; white-space: nowrap; }
.result-line { display: flex; align-items: center; justify-content: space-between; padding: 11px 17px; min-height: 37px; color: #7d8b9f; font-size: 11px; gap: 20px; }
.result-line strong { color: #3379cf; font-weight: 550; margin: 0 3px; }
#filter-summary { font-size: 10px; color: #9ca7b7; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.erp-table-wrap { width: 100%; overflow: auto; min-height: 285px; max-height: calc(100vh - 460px); }
.erp-table { border-collapse: separate; border-spacing: 0; min-width: 1080px; width: 100%; table-layout: auto; color: #5c6c83; }
.erp-table th { position: sticky; top: 0; z-index: 2; background: #f3f6fa; color: #7b889b; padding: 11px 13px; border-top: 1px solid #e7ebf2; border-bottom: 1px solid #e2e8f0; border-right: 1px solid #e8edf3; font-size: 11px; font-weight: 500; }
.erp-table th:last-child { border-right: 0; }
.erp-table td { padding: 11px 13px; height: 42px; border-bottom: 1px solid #edf0f4; border-right: 1px solid #f2f4f7; font-size: 12px; color: #65758c; max-width: 250px; }
.erp-table td:first-child,.erp-table th:first-child { padding-left: 13px; }
.erp-table tbody tr:nth-child(even) { background: #fcfdfe; }
.erp-table tbody tr:hover { background: #f5f9ff; }
.erp-table tbody tr.active { background: #eaf3ff; }
.erp-table tbody tr.active td { border-bottom-color: #deebfd; color: #435e83; }
.erp-table .checkbox-column { width: 38px; min-width: 38px; text-align: center; }
.erp-table .index-column { width: 48px; min-width: 48px; text-align: center; color: #9ca7b8; font-size: 11px; }
.erp-table input[type=checkbox] { width: 13px; height: 13px; margin: 0; accent-color: var(--blue); vertical-align: -2px; }
.erp-table .document-number { font-size: 11px; color: #2f78cb; cursor: pointer; border: 0; background: transparent; padding: 0; font-family: "SFMono-Regular", Consolas, monospace; }
.erp-table .note-cell { color: #9aa6b7; max-width: 180px; font-size: 11px; }
.erp-empty { padding: 72px 15px; color: #99a6b8; font-size: 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 13px; }
.erp-empty .icon { width: 29px; height: 29px; color: #b6c4d7; stroke-width: 1.3; }
.erp-pagination { display: flex; justify-content: space-between; align-items: center; padding: 10px 17px; min-height: 47px; border-top: 1px solid #e7ecf3; color: #8b99ad; font-size: 11px; gap: 15px; }
.erp-pagination>div { display: flex; align-items: center; gap: 12px; }
.erp-pagination select { border: 1px solid #dfe6ef; border-radius: 4px; background: white; height: 28px; padding: 0 7px; font-size: 11px; color: #7f8fa6; margin-left: 3px; }
.erp-pagination .icon-button { height: 27px; width: 27px; border: 1px solid #e3e8f0; border-radius: 4px; }
.erp-pagination .icon { width: 13px; height: 13px; }
.document-detail { background: white; border: 1px solid var(--erp-line); border-radius: 6px; margin-top: 13px; overflow: hidden; }
.detail-tabs { display: flex; align-items: center; padding: 0 17px; gap: 26px; height: 42px; border-bottom: 1px solid #e7edf4; }
.detail-tabs>button { height: 42px; font-size: 12px; color: #8c99ab; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: transparent; }
.detail-tabs>button.active { border-bottom-color: var(--blue); color: #2d78cf; }
.detail-tabs>span { margin-left: auto; font-size: 10px; color: #a3aebe; }
.inline-detail { min-height: 128px; padding: 20px 24px; }
.detail-placeholder { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 32px; color: #a1adbf; font-size: 12px; }
.inline-fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 19px 30px; }
.inline-field { display: flex; align-items: flex-start; gap: 14px; min-width: 0; font-size: 12px; }
.inline-field>span { color: #96a2b4; min-width: 53px; flex-shrink: 0; }
.inline-field>strong { font-weight: 400; color: #65778f; overflow-wrap: anywhere; }
.inline-note { font-size: 12px; line-height: 1.9; white-space: pre-wrap; color: #71839d; }
.erp-statusbar { height: 31px; border-top: 1px solid #e2e7ef; margin-top: auto; display: flex; align-items: center; gap: 25px; padding: 0 21px; font-size: 10px; color: #9aa7b8; background: #fafbfd; }
.erp-statusbar>span:last-child { margin-left: auto; }
.entry-panel { background: white; border: 1px solid var(--erp-line); border-radius: 6px; margin-bottom: 16px; }
.entry-title { display: flex; align-items: center; gap: 10px; padding: 18px 23px; border-bottom: 1px solid #edf0f5; }
.entry-title h2 { font-size: 17px; letter-spacing: 1px; }
.entry-type { font-size: 10px; color: #7792b7; border: 1px solid #e1eaf6; padding: 2px 6px; background: #f7faff; border-radius: 3px; }
.entry-title .soft-badge { margin-left: auto; border: 0; color: #65957f; background: #f0f9f4; }
.entry-title .soft-badge .status-dot { background: #6aac8d; }
.entry-meta { display: flex; align-items: center; gap: 28px; padding: 15px 23px; font-size: 11px; color: #9aa5b5; flex-wrap: wrap; }
.entry-meta strong { font-weight: 400; color: #71829a; }
.entry-server-time { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 10px; }
.entry-server-time .icon { width: 13px; height: 13px; }
#scan-form { padding: 6px 23px 0; }
.entry-inputs { display: grid; grid-template-columns: 1fr 30px 1fr; gap: 15px; align-items: center; }
.entry-field { min-width: 0; }
.entry-field>label { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #566b88; margin-bottom: 10px; }
.entry-field>label b { color: #e58a83; font-weight: 400; }
.entry-field>label span { margin-left: auto; font-size: 10px; color: #a2afc1; }
.entry-field input { height: 47px; width: 100%; border: 1px solid #dce4ee; background: #fcfdff; border-radius: 5px; padding: 0 38px 0 42px; font-size: 16px; color: #354e71; font-family: "SFMono-Regular", Consolas, monospace; }
.entry-field input::placeholder { font: 13px -apple-system, BlinkMacSystemFont, "Microsoft YaHei", sans-serif; color: #a6b2c3; }
.entry-field .input-with-icon>svg { top: 15px; left: 14px; width: 17px; height: 17px; }
.entry-field .input-with-icon kbd { top: 16px; }
.entry-arrow { padding-top: 24px; color: #bfcbda; text-align: center; }
.entry-arrow .icon { width: 20px; height: 20px; }
.entry-secondary { display: flex; align-items: center; gap: 26px; margin: 20px 0 18px; }
.entry-note { flex: 1; display: flex; align-items: center; gap: 13px; font-size: 12px; color: #8999ae; }
.entry-note input { width: 100%; min-width: 0; height: 33px; padding: 0 11px; border: 1px solid #e2e8f0; border-radius: 4px; font-size: 12px; }
.entry-note span { white-space: nowrap; }
.entry-secondary .check-label { font-size: 11px; }
.entry-actions { display: flex; align-items: center; gap: 10px; border-top: 1px solid #edf0f5; padding: 15px 0; }
.entry-actions>span { flex: 1; color: #92a2b8; font-size: 11px; }
.entry-actions .primary { min-width: 150px; }
.scan-feedback { border-radius: 4px; font-size: 12px; }
.scan-record-heading { display: flex; align-items: center; gap: 20px; }
.scan-record-heading h2 { font-size: 14px; }
.scan-record-heading>span { color: #97a4b7; font-size: 11px; }
.scan-record-heading strong { color: #397fcf; font-weight: 500; }
.scan-records .erp-table-wrap { max-height: calc(100vh - 520px); min-height: 260px; }
.scan-records .erp-table { min-width: 950px; }
.scan-records-footer { padding: 13px 17px; font-size: 10px; color: #9ba8ba; border-top: 1px solid #e7edf5; display: flex; justify-content: space-between; gap: 15px; }
.report-note { display: flex; gap: 9px; align-items: center; font-size: 11px; color: #8798b0; margin: 0 0 17px; }
.report-note>span:last-child { margin-left: auto; font-size: 10px; color: #9cabbf; }
.report-note .icon { width: 15px; height: 15px; }
.report-summary { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--erp-line); border-radius: 6px; background: #fff; margin-bottom: 17px; padding: 21px 0; }
.report-summary article { display: flex; flex-direction: column; padding: 0 27px; gap: 9px; border-right: 1px solid #edf0f5; }
.report-summary article:last-child { border: 0; }
.report-summary article>span { font-size: 12px; color: #7e8fa7; }
.report-summary strong { font-size: 28px; color: #354f72; font-weight: 550; }
.report-summary small { font-size: 10px; color: #9caabc; }
.report-table-panel { background: #fff; border: 1px solid var(--erp-line); border-radius: 6px; overflow: hidden; }
.report-table-panel h2 { font-size: 14px; }
.report-table-panel .muted { font-size: 11px; }
.report-table-panel .activity-chart { height: 120px; margin: 22px 35px 20px; }
.report-table-panel .erp-table { min-width: 0; }
.erp-table tfoot td { background: #f5f8fc; color: #6e819d; font-size: 12px; }
.settings-layout { grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); }
.settings-card { border-radius: 6px; box-shadow: none; padding: 24px; }
.settings-card h2 { font-size: 15px; }
.toast { left: calc(50% + var(--sidebar)/2); }
dialog { border-radius: 8px; }
.modal-document-caption { font-size: 11px; color: #9aa8bc; margin: -10px 0 20px; }
button.erp-nav { border: 0; background: transparent; width: 100%; text-align: left; }
button.erp-nav:hover { background: #eaf2ff; color: #1767cf; }
.query-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.query-actions { grid-column: span 1; }
.erp-table td, .erp-table th { font-size: 13px; }
.erp-table .note-cell, .erp-table .index-column { font-size: 12px; }
.erp-nav, .workspace-tabs a, .button, .query-field, .inline-field { font-size: 13px; }
.query-field input, .entry-note input { font-size: 13px; }
.erp-table td { color: #56657a; }
.erp-table th { color: #66768c; font-weight: 400; }
.erp-page-title h1, .entry-title h2, .batch-header h2 { font-weight: 500; }
#batch-dialog { width: 1120px; max-width: calc(100vw - 40px); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid #dde4ed; border-radius: 10px; box-shadow: 0 24px 80px #1f334e35; color: #42536b; }
#batch-dialog[open] { display: flex; flex-direction: column; }
#batch-dialog::backdrop { background: #25344950; backdrop-filter: blur(3px); }
.batch-header { display: flex; justify-content: space-between; align-items: center; padding: 21px 25px 17px; border-bottom: 1px solid #e7edf4; flex-shrink: 0; }
.batch-header h2 { font-size: 20px; letter-spacing: 0; }
.batch-header p { font-size: 13px; color: #8593a6; margin-top: 8px; }
.batch-meta { display: flex; align-items: center; gap: 30px; padding: 15px 25px 10px; font-size: 12px; color: #7b8b9f; flex-wrap: wrap; flex-shrink: 0; }
.batch-meta strong { font-weight: 400; }
.batch-stage-label { margin-left: auto; color: #8e793f; background: #faf6eb; border: 1px solid #f1e8d0; padding: 4px 9px; border-radius: 4px; }
#batch-dialog #scan-form { padding: 12px 25px 0; flex-shrink: 0; }
#batch-dialog .entry-field input { font-size: 16px; }
#batch-dialog .entry-field input::placeholder { font-family: inherit; font-size: 14px; }
#batch-dialog .entry-field>label { font-size: 14px; }
#batch-dialog .entry-field>label span { font-size: 12px; }
#batch-dialog .entry-secondary { margin: 17px 0 13px; }
#batch-dialog .entry-secondary .check-label { font-size: 12px; }
.batch-entry-actions { display: flex; align-items: center; gap: 10px; padding-bottom: 15px; }
.batch-entry-actions>span { margin-right: auto; font-size: 12px; color: #8293ab; }
#batch-dialog .scan-feedback { margin: 0 25px 12px; font-size: 13px; padding: 9px 12px; flex-shrink: 0; }
.batch-alert { background: #fff8e8; color: #94723d; border: 1px solid #f0e3c4; padding: 10px 12px; margin: 0 25px 12px; border-radius: 4px; font-size: 13px; line-height: 1.7; flex-shrink: 0; }
.batch-alert.error { background: #fff5f1; color: #ad6252; border-color: #f0dcd4; }
.batch-list { margin: 0 25px 20px; border: 1px solid #e2e8f1; border-radius: 5px; overflow: hidden; display: flex; flex-direction: column; min-height: 170px; }
.batch-list-heading { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; gap: 15px; flex-shrink: 0; }
.batch-list-heading h3 { font-size: 13px; font-weight: 400; }
.batch-list-heading h3 span { color: #2674cf; padding: 0 4px; }
.batch-list-heading>span { color: #95a2b5; font-size: 12px; }
.batch-table-wrap { min-height: 180px; max-height: 300px; overflow: auto; }
.batch-table-wrap .erp-table { min-width: 860px; }
.batch-table-wrap .erp-table td { height: 43px; }
.batch-table-wrap .erp-empty { padding: 32px 15px; font-size: 13px; }
.draft-status { color: #8f794a; font-size: 12px; background: #faf6e9; border-radius: 3px; padding: 3px 7px; }
.draft-status.conflict { color: #b5695a; background: #ffebe6; }
.erp-table tbody tr.draft-conflict { background: #fff5f2; }
.remove-entry { font-size: 12px; color: #9b7c6f; }
.batch-footer { display: flex; align-items: center; gap: 10px; padding: 16px 25px; background: #fafbfd; border-top: 1px solid #e2e8f0; margin-top: auto; flex-shrink: 0; }
.batch-footer>div { margin-right: auto; display: flex; flex-direction: column; gap: 6px; }
.batch-footer strong { font-size: 14px; font-weight: 400; }
.batch-footer strong span { color: #2675d6; }
.batch-footer>div>span { color: #98a5b7; font-size: 12px; }
.batch-footer .button { min-height: 37px; padding: 0 16px; font-size: 13px; }
.batch-footer .primary { min-width: 150px; }
.toast { z-index: 100; font-size: 13px; }
@media(max-width:680px) {
  #batch-dialog { max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .batch-header { padding: 15px; }.batch-header h2 { font-size: 17px; }.batch-header p { font-size: 12px; }
  .batch-meta { padding: 11px 15px 0; gap: 10px; font-size: 11px; }.batch-stage-label { display: none; }
  #batch-dialog #scan-form { padding: 13px 15px 0; }
  #batch-dialog .entry-field>label span { font-size: 10px; }
  .batch-entry-actions { flex-wrap: wrap; }.batch-entry-actions>span { flex-basis: 100%; font-size: 11px; }
  .batch-list { margin: 0 15px 12px; min-height: 120px; }.batch-list-heading { padding: 10px; }.batch-list-heading>span { display: none; }
  .batch-table-wrap { min-height: 100px; max-height: 210px; }
  .batch-footer { padding: 13px 15px; flex-wrap: wrap; gap: 8px; }.batch-footer>div { flex-basis: 100%; }.batch-footer>div>span { font-size: 11px; }
  .batch-footer .primary { flex: 1; }.batch-footer .button { font-size: 12px; }
  #batch-dialog .scan-feedback,.batch-alert { margin-left: 15px; margin-right: 15px; font-size: 12px; }
}
@media(min-width:1700px) { .erp-table-wrap { min-height: 380px; } .inline-detail { min-height: 152px; } .query-grid { gap: 15px 35px; } }
@media(max-width:1200px) { :root { --sidebar: 168px; } main.erp-main { padding-left: 15px; padding-right: 15px; } .erp-page-title>div>span { display: none; } .query-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px 15px; } .range-field { grid-column: span 2; } .query-actions { grid-column: span 1; margin-left: 64px; } .quick-filter { margin-top: 8px; } .entry-meta { gap: 18px; } .entry-server-time { margin-left: 0; } .toolbar-count { display: none; } .inline-fields { grid-template-columns: repeat(3, 1fr); gap: 18px; } .erp-table-wrap { min-height: 260px; max-height: calc(100vh - 480px); } }
@media(max-width:960px) { :root { --sidebar: 64px; } .erp-sidebar .workspace-name span,.menu-group-label,.erp-nav>span,.erp-nav kbd,.erp-sidebar-foot { display: none; } .workspace-name { padding: 0; justify-content: center; } .erp-nav { justify-content: center; padding: 0; margin-bottom: 12px; } .erp-sidebar nav { padding: 18px 10px; } .erp-nav .icon { width: 20px; height: 20px; } .query-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .range-field { grid-column: span 1; } .query-actions { margin-left: 0; } .query-field>span { flex-basis: 50px; } .quick-filter .query-note { display: none; } .inline-fields { grid-template-columns: repeat(2, 1fr); } .entry-secondary { gap: 15px; } .entry-secondary .muted { display: none; } .entry-field>label span { display: none; } .settings-layout { grid-template-columns: 1fr; } .header-tools .connection { margin-right: 0; } .entry-actions>span { max-width: 270px; line-height: 1.6; } .title-hint { font-size: 10px; } }
@media(max-width:680px) { :root { --sidebar: 0px; } .erp-header { height: 53px; padding: 0 15px; } .erp-brand strong { font-size: 19px; } .erp-brand>span:last-child,.header-tools .connection,.header-help,.header-separator,#user-name { display: none; } .erp-sidebar { display: none; } .erp-workspace { padding-top: 53px; } .workspace-tabs { overflow-x: auto; padding: 0 6px; height: 43px; } .workspace-tabs a { padding: 0 12px; font-size: 11px; white-space: nowrap; flex: 1; justify-content: center; } .workspace-tabs a .icon { display: none; } main.erp-main { padding: 0 11px 18px; } .erp-page-title { min-height: 58px; } .erp-page-title h1 { font-size: 18px; } .title-hint { display: none; } .query-panel { padding: 15px 12px 0; } .query-grid { grid-template-columns: 1fr; gap: 12px; } .range-field,.query-actions { grid-column: span 1; } .query-field>span { flex-basis: 58px; } .query-actions { padding-left: 67px; } .query-actions .button { flex: 1; } .quick-filter { gap: 2px; } .document-toolbar { padding: 11px 10px; gap: 8px; } .toolbar-actions { gap: 7px; } .toolbar-actions .button { font-size: 11px; padding: 0 9px; } .toolbar-divider { display: none; } .button kbd { display: none; } .result-line { padding: 10px 12px; } #filter-summary { max-width: 130px; } .erp-table-wrap { min-height: 240px; max-height: 370px; } .erp-pagination { padding: 10px 12px; gap: 8px; flex-wrap: wrap; } .erp-pagination>div { gap: 9px; } .erp-pagination label { font-size: 10px; } #selected-summary { display: none; } .detail-tabs { padding: 0 12px; gap: 23px; } .detail-tabs>span { display: none; } .inline-detail { padding: 17px; } .inline-fields { grid-template-columns: 1fr; gap: 16px; } .detail-placeholder { padding: 20px 0; font-size: 11px; line-height: 1.8; text-align: center; } .erp-statusbar { padding: 0 12px; font-size: 9px; } .erp-statusbar>span:last-child { display: none; } .entry-title { padding: 16px; } .entry-title h2 { font-size: 15px; } .entry-title .entry-type { display: none; } .entry-meta { padding: 13px 16px; gap: 10px 17px; font-size: 10px; } .entry-server-time { font-size: 9px; } #scan-form { padding: 6px 16px 0; } .entry-inputs { grid-template-columns: 1fr; gap: 17px; } .entry-arrow { display: none; } .entry-field input { font-size: 15px; height: 45px; } .entry-field>label { font-size: 12px; } .entry-field>label span { display: block; } .entry-secondary { flex-wrap: wrap; gap: 14px; } .entry-note { flex-basis: 100%; } .entry-secondary .muted { display: inline; } .entry-actions { flex-wrap: wrap; } .entry-actions>span { flex-basis: 100%; max-width: none; font-size: 10px; } .entry-actions .primary { flex: 1; } .scan-records .document-toolbar { flex-wrap: wrap; gap: 12px; } .scan-record-heading { gap: 14px; } .scan-record-heading h2 { font-size: 13px; } .scan-records-footer { flex-direction: column; font-size: 9px; gap: 7px; } .report-note { flex-wrap: wrap; } .report-note>span:last-child { flex-basis: 100%; margin: 0; line-height: 1.8; } .report-summary { grid-template-columns: repeat(2, 1fr); gap: 22px 0; } .report-summary article { padding: 0 20px; } .report-summary article:nth-child(2) { border: 0; } .report-table-panel .document-toolbar { gap: 10px; } .report-table-panel .document-toolbar .muted { font-size: 10px; } .toast { bottom: 20px; } .settings-card { padding: 20px; } }
.query-field select { width: 100%; min-width: 0; height: 32px; border: 1px solid #dfe4ec; border-radius: 4px; background: #fff; padding: 0 9px; color: #475a74; font-size: 13px; }
.row-actions { white-space: nowrap; min-width: 100px; }
.row-actions .text-button + .text-button { margin-left: 15px; }
.danger-text { color: #b65e59 !important; }
.button.danger { background: #ba5d57; color: white; }
.button.danger:hover { background: #a44f4a; }
.warehouse-tag { margin-left: 9px; font-size: 11px; background: #eef4fb; color: #7792b5; border-radius: 3px; padding: 2px 5px; }
.warehouse-state { color: #528e75; }.warehouse-state.inactive { color: #a18c73; }
.warehouse-table { max-height: calc(100vh - 285px); }
.warehouse-table .erp-table { min-width: 850px; }
.warehouse-footnote { padding: 14px 18px; border-top: 1px solid var(--erp-line); font-size: 12px; color: #8d99a9; line-height: 1.7; }
.entry-warehouse { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; font-size: 13px; color: #68798f; }
.entry-warehouse select { height: 34px; min-width: 180px; max-width: 260px; border: 1px solid #dfe4ec; border-radius: 4px; background: #fff; padding: 0 10px; }
.entry-warehouse>span { font-size: 12px; color: #96a1af; }
#modal .field select { width: 100%; height: 43px; border: 1px solid #e2e6ec; border-radius: 6px; padding: 0 12px; background: #fbfcfd; }
#modal .field input { height: 43px; }
#modal .field { margin-bottom: 15px; }
#modal .field textarea { resize: vertical; }
.form-intro { color: #8190a4; line-height: 1.8; font-size: 13px; margin-bottom: 18px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid #edf0f5; margin-top: 20px; padding-top: 16px; }
.warehouse-active { margin: 10px 0; flex-wrap: wrap; }
.record-identity { background: #f7f9fc; border: 1px solid #e7ecf3; border-radius: 6px; padding: 17px; display: grid; gap: 14px; font-size: 13px; color: #8d99a9; }
.record-identity span { display: flex; justify-content: space-between; gap: 20px; }.record-identity strong { font-weight: 400; color: #4b5d76; overflow-wrap: anywhere; }
.record-modal-actions { display: flex; justify-content: flex-end; gap: 20px; margin-top: 18px; }
@media(max-width:680px) { .entry-warehouse { flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }.entry-warehouse>span { flex-basis: 100%; font-size: 11px; }.entry-warehouse select { flex: 1; }.warehouse-table { max-height: 60vh; } }

.bulk-delete-preview { max-height: 260px; overflow: auto; border: 1px solid #e4e9f0; border-radius: 5px; }
.bulk-delete-preview table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.bulk-delete-preview th { position: sticky; top: 0; background: #f3f6fa; font-weight: 400; color: #738297; text-align: left; }
.bulk-delete-preview td, .bulk-delete-preview th { padding: 10px; border-bottom: 1px solid #edf0f4; overflow-wrap: anywhere; }
.bulk-delete-preview td { color: #52667f; }.bulk-delete-preview tr:last-child td { border-bottom: 0; }

.scan-mode-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 14px 0 4px; padding: 9px 12px; background: #f2f7fd; border: 1px solid #e4edf8; border-radius: 4px; }.scan-mode-row strong { color: #3879c6; font-size: 14px; font-weight: 400; }.scan-mode-row .check-label { font-size: 12px; color: #7d8ba0; }
@media(max-width:680px) { .scan-mode-row { flex-wrap: wrap; gap: 8px; } }

/* Warehouse and sales channel apply to subsequent scans only. */
.entry-context { margin: 4px 0 18px; }
.entry-context-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.entry-context-fields label { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #68798f; white-space: nowrap; }
.entry-context-fields select { flex: 1; min-width: 0; height: 34px; border: 1px solid #dfe4ec; border-radius: 4px; background: #fff; padding: 0 10px; color: #475a74; font: inherit; }
.entry-context p { margin: 8px 0 0; color: #8793a3; font-size: 12px; }
#orders-table { min-width: 1230px; }
.batch-table-wrap .erp-table { min-width: 960px; }
.query-actions { grid-column: span 1; justify-content: flex-end; }
@media(max-width:680px) { .entry-context-fields { grid-template-columns: 1fr; gap: 10px; } .entry-context p { line-height: 1.6; } }

.logistics-banner { margin: -4px 0 12px; padding: 10px 14px; background: #f1f6fc; color: #536b85; border: 1px solid #e1e9f3; border-radius: 5px; font-size: 12px; }
.logistics-banner.not-configured { background: #faf8f1; color: #897849; border-color: #eee8d8; }
.logistics-state { border: 1px solid #dfe8f2; background: #f4f8fc; color: #526d88; padding: 4px 8px; border-radius: 4px; font: inherit; white-space: nowrap; cursor: pointer; }
.logistics-state.state-signed { color: #397660; background: #f0f8f3; border-color: #d9eade; }
.logistics-state.state-intercept { color: #9a6742; background: #fff7ee; }
.logistics-warning { display: block; margin-top: 4px; color: #a57347; font-size: 11px; }
.logistics-latest { min-width: 180px; max-width: 250px; }
.logistics-latest button { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; text-align: left; }
.arrival-cell { min-width: 145px; white-space: normal; line-height: 1.6; }
#orders-table { min-width: 1760px; }
.entry-context-fields { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.entry-context p { line-height: 1.6; }
.logistics-identity { display: flex; gap: 15px; flex-wrap: wrap; padding-bottom: 10px; }
.logistics-notice { background: #f7f8fa; padding: 11px; color: #6b778a; font-size: 13px; line-height: 1.7; }
.logistics-buttons { display: flex; gap: 10px; margin-top: 16px; }
.logistics-footnote,.logistics-configure p { font-size: 12px; line-height: 1.8; color: #8591a0; }
.logistics-configure,.logistics-attempts { margin: 18px 0; border: 1px solid #e6eaf0; padding: 12px; border-radius: 5px; }
.logistics-configure summary,.logistics-attempts summary { cursor: pointer; font-size: 13px; color: #566b84; }
.logistics-detail h3 { font-size: 14px; font-weight: 400; margin: 22px 0 14px; }
.logistics-timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid #dee7f0; }
.logistics-timeline li { padding: 0 0 18px 8px; line-height: 1.7; font-size: 13px; }
.logistics-timeline time { display: block; color: #8593a4; font-size: 12px; }
.logistics-timeline strong { font-weight: 400; color: #536c88; }
.logistics-timeline p { margin: 3px 0; color: #6f7b8c; }
.logistics-attempts ul { padding-left: 16px; font-size: 12px; color: #758297; line-height: 1.9; }
@media(max-width:800px) { .entry-context-fields { grid-template-columns: 1fr; gap: 10px; } }
