#oob-save-replay-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.oob-header-small {
    font-size: 11px !important;
}

.oob-edit-row-btn {
    background: transparent;
    color: #2563eb;
    border: 1px solid #2563eb;
    border-radius: 4px;
    padding: 2px 10px;
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
    margin: 0;
    display: block;
}

.oob-edit-panel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: opacity 0.3s ease-in-out;
}
.oob-edit-panel-backdrop.closed {
    opacity: 0;
    pointer-events: none;
}
.oob-edit-panel-backdrop.open {
    opacity: 1;
    cursor: pointer;
}

/* Disable background scrolling while edit panel is open */
body:has(.oob-edit-panel.open) {
    overflow: hidden;
}

.oob-edit-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 650px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 16px;
    box-sizing: border-box;
    transition: transform 0.3s ease-in-out;
    overflow: auto;
}
.oob-edit-panel.closed { transform: translateX(100%); }
.oob-edit-panel.open   { transform: translateX(0); }

.oob-edit-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e4eb;
    padding-bottom: 8px;
    margin-bottom: 12px;
}
.oob-edit-panel-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.oob-edit-form-section-header {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 12px 0 6px;
}

.oob-edit-form-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.oob-edit-form-label {
    font-size: 12px;
    color: #555;
    font-weight: 600;
}

.oob-edit-form-value {
    font-size: 13px;
    color: #1f2937;
    word-break: break-word;
}

.oob-edit-panel-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid #e0e4eb;
    padding-top: 12px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.oob-row-skipped {
    background-color: hsl(46, 100%, 90%);
}
.oob-row-pending {
    background-color: hsl(190, 90%, 90%);
}
.oob-row-failed {
    background-color: hsl(354, 70%, 90%);
}

#oob-edit-panel-save-replay:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.oob-ai-suggestion-block {
    background: #f1f5fb;
    border: 1px solid #c7d6ee;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #1f2937;
}

.oob-ai-suggestion-header {
    display: grid;
    grid-template-columns: 70px 1fr;
    align-items: center;
    gap: 10px;
}

.oob-ai-suggestion-header-row {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: 1 / 3;
    align-items: center;
}

.oob-ai-suggestion-title {
    font-size: 11px;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    grid-column: 1 / 3;
}

.oob-ai-suggestion-label {
    font-size: 12px;
    font-weight: 600;
    color: #000;
    align-self: start;
    grid-column: 1;
}

.oob-ai-suggestion-value {
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
    grid-column: 2;
    word-break: break-word;
    font-family: monospace;
}

.oob-ai-suggestion-section-header {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 16px 0 8px;
}

.oob-ai-suggestion-extracted-row {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    border-top: 1px solid #e0e4eb;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.oob-ai-suggestion-field {
    font-size: 12px;
    font-weight: 600;
    color: #000;
}

.oob-ai-suggestion-already-set {
    font-size: 11px;
    color: #6b7280;
    font-style: italic;
}

.oob-ai-apply-btn {
    background: #fff;
    color: #1d4ed8;
    border: 1px solid #1d4ed8;
    border-radius: 4px;
    padding: 2px 10px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0;
}

.oob-ai-suggestion-apply-all-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.oob-ai-apply-all-btn {
    background: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 0;
}

.oob-ai-apply-all-btn:hover {
    color: #fff;
    opacity: 0.8;
}

.oob-ai-suggestion-error {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
    padding: 8px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid #e0e4eb;
}

.oob-edit-form-row--ai {
    border-left: 3px solid #1d4ed8;
    padding-left: 6px;
    margin-left: -9px;
}

.oob-edit-form-row--ai .oob-edit-form-label::after {
    content: 'AI';
    display: inline-block;
    margin-left: 6px;
    background: #1d4ed8;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
    vertical-align: middle;
    letter-spacing: 0.04em;
}
