/* Record lists, order workspace, workflow states and document panels. */
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
th { padding: 10px 14px; background: #eaf0f8; color: #4b607a; font-size: 11px; font-weight: 650; white-space: nowrap; border-bottom: 1px solid #cbd7e6; }
td { padding: 11px 14px; max-width: 360px; border-bottom: 1px solid #e7edf4; vertical-align: middle; overflow-wrap: anywhere; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f6f9fe; }
td small { display: block; color: var(--muted); margin-top: 3px; }
.row-link { font-weight: 650; }
.empty-cell { text-align: center; padding: 32px 20px; color: var(--muted); }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 16px; }
.filter-bar > input { flex: 1; min-width: 180px; }
.filter-bar > a { font-size: 12px; }
.filter-panel { padding: 14px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); margin-bottom: 18px; }
.filter-panel .filter-bar { margin-bottom: 0; }
.filter-panel details { margin-top: 12px; border-top: 1px solid #e7edf4; padding-top: 12px; }
summary { font-size: 12px; color: var(--accent-dark); font-weight: 600; }
.advanced-filters { flex-basis: 100%; }
.advanced-filters .form-grid { padding-top: 16px; }
.advanced-filters select[multiple] { min-height: 100px; }
.badge { display: inline-block; padding: 3px 8px; font-size: 11px; font-weight: 550; border-radius: 4px; color: #385575; background: #eaf0f8; white-space: nowrap; }
.badge-ready { color: #156046; background: #e8f4ed; }
.badge-waiting { color: #66501d; background: #f7f0da; }
.badge-done { color: #526479; background: #eaf0f5; }
.badge-rejected, .overdue { color: #a03b29; background: #fae9e4; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pagination { display: flex; justify-content: space-between; gap: 16px; padding: 16px 2px; font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: #fff; margin: 12px 0 18px; }
.detail-grid dt { font-size: 11px; color: var(--muted); }
.detail-grid dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 13px; }
.link-stack { display: grid; gap: 10px; font-size: 13px; }
.tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid #bfcede; margin: 20px 0 18px; }
.tabs a { padding: 11px 14px; border-bottom: 3px solid transparent; white-space: nowrap; font-size: 12px; }
.tabs a[aria-current] { color: var(--accent-dark); border-bottom-color: var(--accent); font-weight: 700; }
.tabs a:hover { background: #e8effa; text-decoration: none; }
.tabs small { font-size: 10px; margin-left: 4px; color: var(--muted); }
.order-summary { margin-bottom: 16px; }
.stage-strip { display: flex; overflow-x: auto; list-style: none; padding: 0; margin: 18px 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.stage-strip li { flex: 1; min-width: 130px; border-right: 1px solid var(--line); padding: 10px 12px; font-size: 12px; }
.stage-strip li:last-child { border: 0; }
.stage-strip small { display: block; margin-top: 3px; font-size: 10px; color: var(--muted); }
.stage-strip li[aria-current] { background: #eaf2ff; box-shadow: inset 0 3px var(--accent); font-weight: 650; }
.stage-strip li[aria-current] small { color: var(--accent-dark); }
.task-list { display: grid; gap: 7px; }
.task-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.task-row > div { flex: 1; min-width: 0; }
.task-row h3 { font-size: 14px; line-height: 1.45; margin: 5px 0; }
.task-row p, .task-row small { color: var(--muted); font-size: 12px; }
.task-row details { margin-top: 8px; }
.task-row details p { border-left: 2px solid var(--line); padding: 5px 10px; margin-top: 7px; }
.task-row .task-reason { color: #7b591c; }
.task-done { background: #f8fafd; }
.task-blocked { border-left: 3px solid #c6ad6c; }
.task-symbol { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #edf3fb; font-size: 12px; flex-shrink: 0; }
.task-done .task-symbol { color: var(--success); background: #e5f1ea; }
.task-tools { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.task-tools label { font-size: 12px; }
.history-entry { padding: 14px 0; border-bottom: 1px solid var(--line); }
.history-entry p { margin-top: 6px; overflow-wrap: anywhere; }
.history-entry small { color: var(--muted); }
.member-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.workflow-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.workflow-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow-wrap: anywhere; }
.workflow-card h3 { font-size: 16px; }
.workflow-card p { font-size: 12px; color: var(--muted); margin: 10px 0 16px; }
.card-bottom { display: flex; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; }
.card-icon { display: none; }
.empty-state { padding: 30px; border: 1px dashed #b8c9dd; border-radius: var(--radius); background: #fff; }
.empty-state p { margin: 10px 0 18px; color: var(--muted); }
.empty-icon { display: none; }
.quiet-note { font-size: 12px; color: var(--muted); margin-top: 18px; }
.inscription { padding: 12px 0; font-size: 15px; white-space: pre-wrap; }
.inscription div, .inscription p { margin-bottom: 5px; }
.file-preview { width: 100%; height: 180px; object-fit: contain; background: var(--soft); border-radius: 5px; margin-bottom: 14px; }
