.content.table-page{max-width:1600px}.table-panel{min-width:0;width:100%;margin:12px 0 16px;background:#fff;border:1px solid #dfe7f2;border-radius:13px;overflow:hidden}.table-scroll{max-width:100%;overflow:auto;max-height:calc(100vh - 410px);min-height:145px;overscroll-behavior:contain;scrollbar-color:#b8c9df #eff4fa;-webkit-overflow-scrolling:touch}.table-scroll:focus-visible{outline:3px solid #a5c4ff;outline-offset:-3px}.record-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:12px;line-height:1.55}.record-table th,.record-table td{padding:10px 12px;text-align:left;vertical-align:middle;border-right:1px solid #edf1f7;border-bottom:1px solid #e7edf5}.record-table th:last-child,.record-table td:last-child{border-right:0}.record-table th{position:sticky;top:0;z-index:3;background:#edf3fb;color:#466182;white-space:nowrap;font-weight:600;height:43px}.record-table tbody tr{--row-bg:#fff;cursor:pointer}.record-table tbody tr:nth-child(even){--row-bg:#f8fafd}.record-table tbody td{background:var(--row-bg)}.record-table tbody tr:hover,.record-table tbody tr:focus-within{--row-bg:#edf5ff}.record-table th[data-table-column="id"],.record-table td[data-table-column="id"]{position:sticky;left:0;border-right:1px solid #dce5f2;box-shadow:3px 0 5px #17396206}.record-table th[data-table-column="id"]{z-index:4;background:#e9f1fc}.record-table td[data-table-column="id"]{z-index:2}.record-table .table-number{text-align:right;font-variant-numeric:tabular-nums}.table-record-link{padding:7px 0;min-height:34px;width:100%;text-align:left;background:none;font-size:12px;letter-spacing:.2px;color:#2563eb;font-weight:600;white-space:nowrap}.table-record-link:hover{text-decoration:underline}.table-cell-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere;white-space:pre-line}.table-number .table-cell-text{display:block;white-space:nowrap}.table-date{white-space:nowrap;font-variant-numeric:tabular-nums}.table-cell-sub{display:block;font-size:10px;white-space:nowrap;margin-top:3px}.table-help{padding:9px 12px;border-top:1px solid #e7edf5;color:#7a8da7;background:#fff;font-size:11px;line-height:1.5}.table-caption{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.table-compact .table-scroll{max-height:360px;min-height:0}.table-empty-row td{height:125px;text-align:center!important;color:#8192aa;position:static!important}.table-empty-row{cursor:default!important}.table-summary{margin:8px 0 11px}.table-summary small{font-size:11px}.table-compact .table-help{font-size:10px}.record-table .chip{display:inline-block}@media(max-width:550px){.content.table-page{padding-left:12px;padding-right:12px}.record-table th,.record-table td{padding:9px 10px}.table-scroll{max-height:calc(100vh - 410px)}.table-record-link{min-height:38px}.table-summary{align-items:center}.table-summary .count-tag{font-size:10px}}@media(max-height:600px){.table-scroll{max-height:240px}.table-compact .table-scroll{max-height:240px}}

.table-empty-row td{text-align:left!important}.table-empty-message{position:sticky;left:0;display:block;width:calc(100vw - 52px);max-width:100%;text-align:center}

.table-page [data-table-view=works],.table-page [data-table-view=orders]{max-height:var(--workspace-table-height,calc(100vh - 360px))}
.record-table .table-status-label{display:block;font-size:11px;margin-bottom:5px}.record-table .table-status-filter{width:100%;min-height:34px;padding:5px 4px;border:1px solid #b8cbe7;border-radius:7px;font-size:12px;background:#fff;color:var(--ink);cursor:pointer}.record-table .table-status-filter.is-filtered{color:#1d4ed8;border-color:#6797ed;background:#eff5ff;font-weight:600}.table-summary{flex-wrap:wrap}.table-status-summary{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.table-status-clear{font-size:11px;padding:4px 7px}
.table-column-filter{width:100%;min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:5px;padding:5px 7px;border:1px solid #b8cbe7;border-radius:7px;background:#fff;color:var(--ink);font-size:12px;font-weight:400;text-align:left}.table-column-filter>span:first-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.table-column-filter.is-filtered{color:#1d4ed8;border-color:#6797ed;background:#eff5ff;font-weight:600}.work-column-summary{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.work-filter-chip{display:flex;align-items:center;gap:5px;max-width:100%;padding:5px 8px;border:1px solid #c7d9fa;border-radius:8px;background:#eaf1ff;color:#24549b;font-size:11px}.work-filter-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:280px}.column-search-label{display:block;font-size:12px;color:var(--muted);margin:10px 0 6px}.column-filter-tools{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}.column-filter-tools[hidden]{display:none}.column-filter-tools .btn{font-size:12px}.column-value-list{max-height:36vh;overflow:auto;background:#fff;border:1px solid #dce5f2;border-radius:10px;overscroll-behavior:contain}.column-value-option{display:flex;align-items:center;gap:10px;padding:12px;border-bottom:1px solid var(--line);cursor:pointer;font-size:12px}.column-value-option:last-child{border-bottom:0}.column-value-option input{width:20px;height:20px;margin:0;accent-color:var(--blue);flex-shrink:0}.column-value-label{flex:1;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere}.column-value-option small{flex-shrink:0;color:var(--muted)}.column-value-list>p{padding:0 12px}.column-filter-actions{display:flex;gap:10px}.column-filter-actions .btn{flex:1}.record-table th .table-column-filter:focus-visible{outline:3px solid #7db3ff;outline-offset:1px}.column-fuzzy-preview{cursor:default}.table-status-label-row{display:flex;justify-content:space-between;align-items:center;gap:5px;margin-bottom:5px}.record-table .table-status-label-row .table-status-label{margin-bottom:0}.table-stage-fuzzy{background:transparent;padding:0;color:#2563eb;font-size:10px;line-height:17px;white-space:nowrap}

.work-table-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}.work-table-actions .btn{white-space:nowrap}.work-columns-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0}.work-columns-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.work-column-choice{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--line);border-radius:9px;padding:11px 9px;min-width:0;font-size:12px;cursor:pointer}.work-column-choice input{width:20px;height:20px;flex-shrink:0;margin:0;accent-color:var(--blue)}.work-column-choice span{min-width:0;overflow-wrap:anywhere}.work-column-choice small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.work-columns-actions{display:flex;gap:10px}.work-columns-actions .btn{flex:1}@media(max-width:480px){.table-summary{align-items:flex-start;gap:10px;flex-direction:column}.work-table-actions{width:100%;justify-content:space-between}}

.column-order-tools{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:12px 0}.column-order-list{list-style:none;margin:0;padding:0;display:grid;gap:7px}.column-order-row{display:flex;align-items:center;gap:9px;min-height:52px;padding:7px 9px;background:#fff;border:1px solid var(--line);border-radius:9px}.column-order-row:focus-visible{outline:3px solid #93b8f8}.column-order-handle{cursor:grab;touch-action:none;user-select:none;color:#7286a4;font-size:25px;line-height:36px;width:30px;text-align:center;flex-shrink:0}.column-order-name{flex:1;min-width:0;font-size:12px;overflow-wrap:anywhere}.column-order-name small{color:var(--muted);margin-right:9px;font-variant-numeric:tabular-nums}.column-order-name em{font-size:10px;font-style:normal;color:var(--muted);margin-left:8px}.column-order-move{min-width:38px;min-height:38px;border-radius:8px;background:#edf3fc;color:#2458ad;font-size:18px;flex-shrink:0}.column-order-move:disabled{opacity:.35;cursor:default}.column-order-row.is-drop-before{border-top:3px solid #2563eb}.column-order-row.is-drop-after{border-bottom:3px solid #2563eb}.column-order-row.is-dragging,.record-table th.is-header-dragging{opacity:.5}.record-table th.is-reorderable-column{padding-right:30px}.column-header-drag{position:absolute;right:7px;top:7px;font-size:21px;line-height:22px;color:#8297b7;cursor:grab;user-select:none}.record-table th.is-header-drop{box-shadow:inset 3px 0 #2563eb}.work-table-actions{justify-content:flex-start}@media(pointer:coarse){.column-header-drag{display:none}.record-table th.is-reorderable-column{padding-right:10px}}

.record-table th.is-header-drop-after{box-shadow:inset -3px 0 #2563eb}

.order-revision-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:4px}.order-revision-actions button{min-height:30px;padding:4px 6px;border-radius:6px;font-size:11px;white-space:nowrap}.order-revision-register{background:#e7efff;color:#245dcc}.order-revision-toggle{background:#f0f4fa;color:#536b8c}.record-table tr.order-revision-row{cursor:default}.record-table tr.order-revision-row td{position:static;padding:14px;background:#f6f9ff;border-bottom:2px solid #dce6f5;text-align:left}.order-inline-history{width:min(780px,calc(100vw - 65px));min-width:0;white-space:normal;overflow-wrap:anywhere}.order-inline-history .section{margin-top:15px}.order-inline-history .timeline{max-height:450px;overflow:auto;padding-right:10px}.order-inline-history .event{font-size:12px}#order-change-error{margin-top:12px}

/* Use compact controls so the remaining window height belongs to the table. */
.content.table-page{padding-top:12px}.table-page>.search{margin:9px 0 8px}.table-page>.search input{padding-top:9px;padding-bottom:9px}
.table-page>.filters{min-width:0;padding-bottom:4px;margin-bottom:4px}.table-page>.table-summary{margin:6px 0 7px}
.table-page>.table-panel{margin-top:8px}.table-page .table-help{padding:4px 10px;font-size:10px}.table-page .table-help .btn.quiet{padding:4px 0;font-size:11px}
@media(min-width:900px){
 .content.table-page.work-page:not(.is-table-fullscreen){display:grid;grid-template-columns:minmax(280px,1fr) minmax(300px,2fr);column-gap:24px;align-items:center}
 .table-page.work-page:not(.is-table-fullscreen)>.row:first-child{grid-column:1;grid-row:1}
 .table-page.work-page:not(.is-table-fullscreen)>.search{grid-column:2;grid-row:1;margin:0}
 .table-page.work-page:not(.is-table-fullscreen)>:not(.search):not(:first-child){grid-column:1/-1}
 .table-page.work-page:not(.is-table-fullscreen)>.filters{margin-top:8px}
}
