.shot-log.sl-manufacturer { box-sizing: border-box; max-width: 1600px; margin: 0 auto; padding: 10px 18px 40px; }
.sl-manufacturer .sl-toolbar { position: sticky; top: 32px; z-index: 30; background: #f1f1f1; padding: 9px 2px; border-bottom: 1px solid #d5dfea; }
.sl-manufacturer .sl-card { padding: 18px; margin: 14px 0; background: #fff; border: 1px solid #d5dfea; border-radius: 10px; }
.sl-mfg-file-controls, .sl-mfg-settings, .sl-mfg-shared-form { display:flex; align-items: end; flex-wrap: wrap; gap: 12px; margin:12px 0; }
.sl-mfg-file-controls label,.sl-mfg-shared-form label { display:grid;gap:5px; font-weight:600; }
.sl-mfg-file-controls input,.sl-mfg-file-controls select,.sl-mfg-shared-form input,.sl-mfg-shared-form select {min-height:38px;max-width:100%;}
.sl-mfg-mapping-grid { display:grid; grid-template-columns: minmax(220px, 0.3fr) minmax(400px, 1fr); gap:14px; margin:14px 0; }
.sl-mfg-sources { max-height:650px; overflow-y:auto; position:sticky; top:108px; align-self:start; background:#f7f9fc; border:1px solid #dae1ea; border-radius:9px; padding:10px; }
.sl-mfg-source { display:block;width:100%;min-height:35px;text-align:left;white-space:normal;padding:7px 9px;margin:4px 0;border:1px solid #c6d2df;border-radius:6px;background:white;cursor:grab; }
.sl-mfg-source:hover {border-color:#2457a6;background:#f1f6ff;}
.sl-mfg-targets { display:grid;gap:8px;min-width:0; }
.sl-mfg-target { border:1px solid #d5dfea;border-radius:8px;padding:9px;background:#fff;scroll-margin-top:120px; }
.sl-mfg-target.is-active {border:2px solid #244d97;padding:8px;}
.sl-mfg-target.is-drop {background:#e8f4fc;}
.sl-mfg-target-title {font-weight:700;background:transparent;border:0;text-align:left;cursor:pointer;padding:0 0 7px;width:100%;}
.sl-mfg-target-slots {display:flex;flex-wrap:wrap;gap:5px;min-height:24px;}
.sl-mfg-slot { display:flex;gap:5px;align-items:center;padding:4px 6px;border-radius:5px;background:#edf3fb; }
.sl-mfg-slot button {min-width:25px;height:26px;border:1px solid #bac9db;border-radius:4px;background:white;cursor:pointer;}
.sl-mfg-empty {font-size:12px;color:#6a788c;}
.sl-mfg-lines {white-space:pre-line;display:block;overflow-wrap:anywhere;line-height:1.5;}
.sl-mfg-preview-field {margin:0 0 7px;padding-bottom:6px;border-bottom:1px solid #e4eaf2;}
.sl-mfg-preview-field strong {display:block;color:#24477b;}
.sl-mfg-results td small {display:block;white-space:normal;color:#6f7d8b;font-size:11px;}
.sl-mfg-details {display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;padding:10px 0;}
.sl-mfg-details strong {display:block;font-size:12px;margin-bottom:3px;}
.sl-mfg-shared-table {width:100%;border-spacing:0;border-collapse:separate;min-width:950px;}
.sl-mfg-shared-table th,.sl-mfg-shared-table td {padding:11px 9px;border-bottom:1px solid #e3e8ef;vertical-align:top;text-align:left;overflow-wrap:anywhere;}
.sl-mfg-shared-table thead th {position:sticky;top:0;z-index:10;background:#f2f5fa;box-shadow:0 1px #cad7e8;}
.sl-mfg-kind {display:inline-block;padding:3px 7px;border:1px solid #bdc7d5;border-radius:5px;font-size:11px;white-space:nowrap;}
.sl-mfg-results-wrap {overflow:auto;max-height:72vh;border:1px solid #dbe1e8;border-radius:8px;position:relative;scrollbar-gutter:stable;}
.sl-mfg-shared-pages {margin:15px 0;display:flex;align-items:center;gap:8px;}
.sl-mfg-shared-table th a {text-decoration:none;}
.sl-mfg-shared-table td small {color:#687b90;display:block;}
@media(max-width:780px) {.sl-mfg-mapping-grid{grid-template-columns:1fr;}.sl-mfg-sources{position:static;max-height:240px;}.sl-manufacturer .sl-toolbar {top:46px}.sl-mfg-shared-table thead th{top:0}}

/* V035: this table scrolls INSIDE .sl-mfg-results-wrap. Its sticky header
 * must be at the scroller's own top, not pushed under the page toolbar.
 * The old +toolbar/+adminbar offsets obscured the first manufacturer row
 * when filtering down to one record or scrolling the internal pane. */
.sl-joint-overview .sl-mfg-results-wrap .sl-mfg-shared-table thead th,
body.admin-bar .sl-joint-overview .sl-mfg-results-wrap .sl-mfg-shared-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f2f5fa;
}
/* Similar nested horizontal scroll areas on the manufacturer import page
 * should not acquire a phantom toolbar-sized gap above their table heads. */
.sl-manufacturer .sl-table-wrap .sl-admin-table thead th,
body.admin-bar .sl-manufacturer .sl-table-wrap .sl-admin-table thead th {
    top: 0;
}


/* V037: matching source-column markers on BOTH sides of the import mapper.
 * Only assignments are decorated. Empty/unassigned entries remain neutral.
 * All selectors are scoped to this page; other editors and flips are untouched. */
.sl-manufacturer .sl-mfg-link-help {
    font-size:12px;line-height:1.5;color:#43516a;margin:0 0 10px;
}
.sl-manufacturer .sl-mfg-source {
    display:flex;align-items:flex-start;gap:8px;position:relative;
    padding:8px 9px 8px 15px;min-width:0;line-height:1.4;color:#182b46;
}
.sl-manufacturer .sl-mfg-source-number {
    display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
    min-width:26px;min-height:25px;padding:0 4px;box-sizing:border-box;
    border:1px solid #a6b3c4;border-radius:5px;background:#fff;
    color:#33435b;font-size:12px;font-weight:700;line-height:1.25;
    font-variant-numeric:tabular-nums;
}
.sl-manufacturer .sl-mfg-column-label {
    flex:1 1 auto;min-width:0;overflow-wrap:anywhere;white-space:normal;
}
.sl-manufacturer .sl-mfg-source-state {
    flex:0 0 auto;font-size:12px;font-weight:700;white-space:nowrap;
    margin-left:auto;padding-top:3px;color:var(--sl-mfg-map-ink,#33435b);
}
.sl-manufacturer .sl-mfg-slot {
    position:relative;min-width:0;max-width:100%;box-sizing:border-box;
    border:1px solid transparent;padding:5px 7px 5px 15px;
}
.sl-manufacturer .sl-mfg-slot .sl-mfg-column-label {flex:1 1 auto;}
.sl-manufacturer .sl-mfg-slot button {flex:0 0 auto;color:#182b46;}
.sl-manufacturer .sl-mfg-linked,
.sl-manufacturer .sl-mfg-linked:hover {
    background-color:var(--sl-mfg-map-bg);border-color:var(--sl-mfg-map-border);
    color:#182b46;
}
.sl-manufacturer .sl-mfg-linked::before {
    content:'';position:absolute;left:0;top:0;bottom:0;width:8px;
    border-radius:4px 0 0 4px;pointer-events:none;
    background-color:var(--sl-mfg-map-border);
    background-image:var(--sl-mfg-map-pattern);background-size:6px 6px;
}
.sl-manufacturer .sl-mfg-linked .sl-mfg-source-number {
    border-color:var(--sl-mfg-map-border);color:var(--sl-mfg-map-ink);
    background-color:#fff;
}
.sl-manufacturer .sl-mfg-linked.is-matched {
    box-shadow:0 0 0 2px var(--sl-mfg-map-ink);
}
.sl-manufacturer .sl-mfg-source:focus-visible,
.sl-manufacturer .sl-mfg-slot button:focus-visible {
    outline:2px solid #172e55;outline-offset:2px;
}
@media(forced-colors:active) {
    .sl-manufacturer .sl-mfg-linked {border:2px solid CanvasText;}
    .sl-manufacturer .sl-mfg-linked::before {background-color:CanvasText;}
    .sl-manufacturer .sl-mfg-source-number {border-color:CanvasText;}
    .sl-manufacturer .sl-mfg-linked.is-matched {outline:2px solid Highlight;outline-offset:1px;}
}

/* V039: inline import diagnostics, without leaving or resetting the mapper. */
.sl-manufacturer .sl-mfg-diagnostics[hidden] {display:none;}
.sl-manufacturer .sl-mfg-diagnostics {margin:16px 0;padding:16px;border:1px solid #b5c7d8;border-left:5px solid #28794b;border-radius:8px;background:#f6fbf8;scroll-margin-top:150px;overflow-wrap:anywhere;}
.sl-manufacturer .sl-mfg-diagnostics.has-errors {border-left-color:#b42318;background:#fff9f8;}
.sl-manufacturer .sl-mfg-diagnostics h3 {margin:0 0 10px;}
.sl-manufacturer .sl-mfg-issue {margin:14px 0;padding:14px;border:1px solid #e4c6c3;border-radius:6px;background:#fff;}
.sl-manufacturer .sl-mfg-issue h4 {margin:0 0 8px;font-size:16px;}
.sl-manufacturer .sl-mfg-issue-source {display:grid;gap:5px;margin:12px 0;}
.sl-manufacturer .sl-mfg-issue pre {white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;margin:6px 0 12px;padding:8px;background:#f3f5f8;color:#182b46;border:1px solid #dce2e9;font-size:13px;line-height:1.5;}
.sl-manufacturer .sl-mfg-issue-reason {color:#9b1c16;font-weight:600;}
.sl-manufacturer .sl-mfg-target.has-import-error {outline:2px solid #b42318;outline-offset:1px;}
.sl-manufacturer .sl-mfg-numeric-hint {display:block;font-size:12px;line-height:1.5;color:#566477;margin:0 0 8px;}
.sl-manufacturer .sl-mfg-preview-invalid {border-left:3px solid #b42318;padding-left:9px;}
.sl-manufacturer .sl-mfg-preview-invalid .sl-mfg-numeric-hint {color:#9b1c16;font-weight:600;}
.sl-manufacturer .sl-mfg-actions {display:flex;flex-wrap:wrap;gap:10px;align-items:center;}
.sl-manufacturer [aria-busy="true"] {cursor:progress;}
.sl-manufacturer .sl-mfg-diagnostics button {white-space:normal;max-width:100%;}

/* V051: editable, write-free review sheet before the atomic manufacturer import. */
.sl-manufacturer .sl-mfg-review[hidden] {display:none;}
.sl-manufacturer .sl-mfg-review {
    margin:18px 0;padding:18px;border:2px solid #8b6b19;border-left-width:6px;
    border-radius:9px;background:#fffdf5;scroll-margin-top:150px;overflow-wrap:anywhere;
}
.sl-manufacturer .sl-mfg-review h2 {margin-top:0;}
.sl-manufacturer .sl-mfg-review-summary {font-weight:700;}
.sl-manufacturer .sl-mfg-review-new {margin:12px 0;padding:10px;border:1px solid #d8cda6;border-radius:6px;background:#fff;}
.sl-manufacturer .sl-mfg-review-record {margin:16px 0;padding:14px;border:1px solid #cad5e2;border-radius:8px;background:#fff;}
.sl-manufacturer .sl-mfg-review-record.is-conflict {border:3px solid #ff0000;background:#fff5f5;}
.sl-manufacturer .sl-mfg-review-conflict {font-weight:800;color:#ff0000;font-size:15px;}
.sl-manufacturer .sl-mfg-review-table {width:100%;border-collapse:collapse;table-layout:fixed;}
.sl-manufacturer .sl-mfg-review-table th,.sl-manufacturer .sl-mfg-review-table td {border:1px solid #d7e0ea;padding:8px;vertical-align:top;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;}
.sl-manufacturer .sl-mfg-review-table thead th {background:#f1f4f8;position:sticky;top:0;z-index:1;}
.sl-manufacturer .sl-mfg-review-table th:first-child {width:18%;}
.sl-manufacturer .sl-mfg-review-table td:nth-child(2) {width:36%;}
.sl-manufacturer .sl-mfg-review-table textarea {width:100%;min-height:72px;box-sizing:border-box;resize:vertical;font:inherit;}
.sl-manufacturer .sl-mfg-review-ack {display:block;margin:12px 0 0;padding:10px;border:2px solid #ff0000;background:#fff;font-weight:700;color:#9b0000;}
.sl-manufacturer .sl-mfg-review-actions {display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:18px;position:sticky;bottom:0;background:#fffdf5;padding:10px 0 2px;z-index:2;}
@media(max-width:780px){
  .sl-manufacturer .sl-mfg-review-table {display:block;overflow-x:auto;}
  .sl-manufacturer .sl-mfg-review-table th:first-child,.sl-manufacturer .sl-mfg-review-table td:nth-child(2){width:auto;}
}
