/* Preserve sourcing's sections through structure, with neutral table surfaces. */
.sourcing-preview .preview-heading > .btn { flex-shrink: 0; }
.sourcing-preview .preview-sourcing > .card-header { align-items: center; }
.sourcing-preview .preview-actions { margin-left: auto; }
.sourcing-preview .sx-scroll { position: static; max-height: calc(100vh - 370px) !important; border: 0; }
.sourcing-preview .sourcing-table.sx-table { min-width: 1950px; table-layout: fixed; }
.sourcing-preview .sourcing-table.sx-table > thead > tr > th {
    border: 0 !important; border-bottom: 1px solid #d0d5dd !important;
    background: #f9fafb !important; color: #667085 !important;
    padding: 10px 12px !important; box-shadow: var(--sx-cell-shadow, none) !important;
}
.sourcing-preview .sourcing-table.sx-table > thead > .preview-section-headings > th {
    height: 31px; padding: 6px 12px !important; top: 0 !important;
    background: #edf1f5 !important; color: #475467 !important; letter-spacing: .07em;
    border-left: 1px solid #d0d5dd !important; z-index: 5;
}
.sourcing-preview .preview-section-headings > th:first-child { left: 0; z-index: 6 !important; border-left: 0 !important; }
.sourcing-preview .sourcing-table.sx-table > thead > tr:not(.preview-section-headings) > th { top: 31px !important; }
.sourcing-preview .sourcing-table.sx-table > tbody > tr > td {
    background: var(--sx-cell-bg) !important; border: 0 !important; border-bottom: 1px solid #eaecf0 !important;
    padding: 10px 12px !important; vertical-align: top;
}
.sourcing-preview .sourcing-table.sx-table > tbody > tr.main-row:hover { background: transparent !important; }
/* Only section boundaries have vertical dividers, never every cell. */
.sourcing-preview .sourcing-table.sx-table > thead > tr:not(.preview-section-headings) > th:is(:nth-child(4), :nth-child(8), :nth-child(10)),
.sourcing-preview .sourcing-table.sx-table > tbody > tr.main-row > td:is(:nth-child(4), :nth-child(8), :nth-child(10)) { border-left: 1px solid #d0d5dd !important; }
.sourcing-preview .sourcing-table.sx-table > thead > tr:not(.preview-section-headings) > th:nth-child(1),
.sourcing-preview .sourcing-table.sx-table > tbody > tr.main-row > td:nth-child(1) { width: 56px; left: 0; }
.sourcing-preview .sourcing-table.sx-table > thead > tr:not(.preview-section-headings) > th:nth-child(2),
.sourcing-preview .sourcing-table.sx-table > tbody > tr.main-row > td:nth-child(2) { width: 210px; left: var(--sp-pin-2, 56px); }
.sourcing-preview .sourcing-table.sx-table > thead > tr:not(.preview-section-headings) > th:nth-child(3),
.sourcing-preview .sourcing-table.sx-table > tbody > tr.main-row > td:nth-child(3) { width: 68px; text-align: right !important; }
.sourcing-preview .sourcing-table.sx-table > thead > tr:not(.preview-section-headings) > th:nth-child(4) { width: 160px; }
.sourcing-preview .sourcing-table.sx-table > thead > tr:not(.preview-section-headings) > th:is(:nth-child(5), :nth-child(6), :nth-child(7)) { width: 190px; }
.sourcing-preview .sourcing-table.sx-table > thead > tr:not(.preview-section-headings) > th:nth-child(8) { width: 125px; text-align: center; }
.sourcing-preview .sourcing-table.sx-table > thead > tr:not(.preview-section-headings) > th:nth-child(9) { width: 210px; }
.sourcing-preview .sourcing-table.sx-table > thead > tr:not(.preview-section-headings) > th:is(:nth-child(10), :nth-child(11)) { width: 220px; }
.sourcing-preview .sourcing-table.sx-table > tbody > tr.main-row > td:nth-child(2) > strong {
    color: var(--sx-ink) !important; font-weight: 600; white-space: nowrap;
    padding: 0; border: 0; background: transparent; transform: none;
}
.sourcing-preview .sourcing-table.sx-table > thead > tr:not(.preview-section-headings) > th:nth-child(2),
.sourcing-preview .sourcing-table.sx-table > thead > tr:not(.preview-section-headings) > th:nth-child(8) { color: var(--cp-green) !important; }
.sourcing-preview .sourcing-table.sx-table > tbody > tr.main-row > td span[style*="color"] { color: var(--cp-green) !important; font-weight: 650; }
.sourcing-preview .text-date, .sourcing-preview .text-muted-sm { font-size: 13.5px; color: #667085; font-style: normal; }
.sourcing-preview .sx-table em { font-style: normal; color: #98a2b3 !important; }
.sourcing-preview .sx-table .btn-link { font: 14px/1.4 Inter, system-ui, sans-serif; color: #667085 !important; text-decoration: none; }
.sourcing-preview .sx-table .btn-link:hover { color: var(--cp-green) !important; }
.sourcing-preview .sx-table .sx-icon-btn.btn-use {
    color: var(--control-ink) !important; background: #e4f2e8 !important; border: 1px solid #c6e4ce !important;
}
.sourcing-preview .sx-table .sx-icon-btn.btn-add {
    color: #35639c !important; background: #eff4fb !important; border: 1px solid #d3e0ef !important;
}
.sourcing-preview .sx-table .sx-icon-btn:is(.btn-use, .btn-add):is(:hover, :focus-visible) {
    color: var(--control-ink) !important; background: #d4eadb !important; border-color: #9ccba8 !important;
}
.sourcing-preview .sx-table .btn-link { color: #35639c !important; font-weight: 500; }
.sourcing-preview .sx-table .badge.cost-badge { color: var(--control-ink) !important; background: #e4f2e8 !important; }
.sourcing-preview .sx-table .btn-remove { color: #b42318 !important; }
.sourcing-preview .sx-table .btn-remove:hover { background: #fef3f2 !important; }
.sourcing-preview .sx-table .search-ils-btn { color: var(--control-ink) !important; background: #edf6ef !important; }
.sourcing-preview .sx-table .details-content { margin: 0; padding: 14px; border: 0; background: #f8fafc; border-radius: 8px; }
.sourcing-preview .sx-table .details-table { margin-bottom: 0; font-size: 14px; }
.sourcing-preview .sx-table .details-table thead th { background: transparent !important; font-size: 13px; color: #667085; }
.sourcing-preview .sx-table .details-table .btn { border: 0; background: #e4f2e8; color: var(--control-ink); font-size: 13px; }
.sourcing-preview :is(a, button, input, select, textarea):focus-visible { outline: 2px solid #547eae; outline-offset: 3px; }
@media (max-width: 1200px) { .sourcing-preview .preview-heading .card-title { font-size: 26px !important; } }
@media (max-width: 700px) {
    .sourcing-preview .preview-heading { flex-wrap: wrap; gap: 16px; }
    .sourcing-preview .preview-tabs { gap: 20px; flex-wrap: wrap; }
    .sourcing-preview .preview-sourcing > .card-header { padding: 12px !important; }
    .sourcing-preview .sx-scroll { max-height: 65vh !important; }
}
