.sdoc-root { display: flex; flex-direction: column; gap: 18px; }
.sdoc-section h4 { margin: 0 0 8px; }
.sdoc-muted { color: #6b7280; font-size: 0.85em; font-weight: normal; }
.sdoc-table { width: 100%; border-collapse: collapse; font-size: 0.9em; }
.sdoc-table th, .sdoc-table td { border-bottom: 1px solid #e5e7eb; padding: 4px 6px; text-align: left; vertical-align: top; }
.sdoc-table td.num { text-align: right; white-space: nowrap; }
.sdoc-code { width: 3.5em; color: #374151; font-weight: 600; }
.sdoc-inc { width: 9em; white-space: nowrap; }
.sdoc-mand { width: 8em; white-space: nowrap; }
.sdoc-label { width: 100%; resize: none; overflow: hidden; border: 1px solid transparent; background: transparent; font: inherit; padding: 2px 4px; }
.sdoc-label:focus { border-color: #93c5fd; background: #fff; }
.sdoc-remove { border: 0; background: none; color: #9ca3af; cursor: pointer; font-size: 1.1em; }
.sdoc-remove:hover { color: #dc2626; }
.sdoc-send-row, .sdoc-link-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sdoc-send-row input[type="text"] { min-width: 240px; }
.sdoc-send-row input[type="number"] { width: 4.5em; }
.sdoc-link { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 6px; padding: 8px 10px; }
.sdoc-link-row input { flex: 1; min-width: 300px; font-family: monospace; font-size: 0.85em; }
.sdoc-res { border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px; margin-bottom: 10px; }
.sdoc-res-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.sdoc-badge { font-size: 0.75em; padding: 1px 8px; border-radius: 10px; background: #e5e7eb; text-transform: capitalize; }
.sdoc-st-submitted { background: #dcfce7; color: #166534; }
.sdoc-st-expired { background: #fee2e2; color: #991b1b; }
.sdoc-kpis { display: flex; gap: 16px; flex-wrap: wrap; margin: 4px 0 8px; font-size: 0.9em; }
.sdoc-red td { background: #fee2e2; color: #991b1b; }
.sdoc-red-text { color: #b91c1c; }
.sdoc-coming-soon { padding: 32px; text-align: center; border: 2px dashed #d1d5db; border-radius: 10px; }
.sdoc-root, .sdoc-coming-soon { grid-column: 1 / -1; width: 100%; max-width: 1200px; }
.sdoc-table td:nth-child(2) { width: 60%; }
.sdoc-label { display: block; min-width: 24em; color: inherit; box-sizing: border-box; }
.sdoc-label { min-height: 1.9em; line-height: 1.4; }

.sdoc-res-actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.sdoc-revoke { color: #b42318; border-color: #f1aeb5; }
.sdoc-st-revoked { background: #f1f3f5; color: #6c757d; }
.sdoc-rounds { margin-top: 6px; font-size: 0.9em; }
.sdoc-export { margin: 0 0 6px; }

.sdoc-st-active, .sdoc-st-sent { background: #dbeafe; color: #1e40af; }

/* Project-type default (save as default / reset) + in-page confirm dialog */
.sdoc-typedef { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 8px; }
.sdoc-typedef:empty { display: none; }
.sdoc-typedef-actions { display: flex; gap: 6px; margin-left: auto; }
.sdoc-modal-backdrop { position: fixed; inset: 0; background: rgba(17, 24, 39, 0.45); display: flex; align-items: center; justify-content: center; z-index: 2000; }
.sdoc-modal { background: #fff; border-radius: 10px; padding: 18px 20px; max-width: 520px; width: calc(100% - 40px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25); }
.sdoc-modal h4 { margin: 0 0 10px; }
.sdoc-modal-body p { margin: 0 0 8px; line-height: 1.45; }
.sdoc-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* stored supplier-link URL (PM only) */
.sdoc-linkline { display: flex; gap: 6px; align-items: center; margin: 4px 0 2px; font-size: 12.5px; }
.sdoc-linkline input { flex: 0 1 34em; min-width: 12em; font-size: 12px; padding: 2px 5px; }
.sdoc-linkline-dead input { color: #94a3b8; background: #f8fafc; }
/* Archived survey links (soft delete) */
.sdoc-st-archived { background: #fef3c7; color: #92400e; }
.sdoc-archive { color: #92400e; }
.sdoc-showarch { display: inline-flex; gap: 6px; align-items: center; margin: 0 0 8px; font-size: 13px; }
