/* ───────────────────────────────────────────────────
   Placeholder Fill Mode styles
   ─────────────────────────────────────────────────── */

/* ── Full-width wrapper (no split — PDF is a floating window) ── */
.placeholder-fill-wrapper {
    padding: 20px 24px;
    background: #fafbfc;
}

/* ── Field envelope ── */
.placeholder-fill-field {
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.placeholder-fill-field:hover {
    border-color: #c0c0c0;
}

.placeholder-fill-field.focused {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* ── Label ── */
.placeholder-fill-field .ajaxFormControlLabel {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}

.placeholder-fill-field .ajaxFormControlLabel small {
    font-weight: 400;
    font-size: 11px;
}

/* ── Context snippet ── */
.placeholder-fill-field .placeholder-fill-context {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
    font-style: italic;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #dee2e6;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 72px;
    overflow-y: auto;
    line-height: 1.4;
}

/* ── Description (admin explanation) ── */
.placeholder-fill-field .placeholder-fill-description {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.5;
    padding: 4px 8px;
    background: #fef9e7;
    border-radius: 4px;
    border-left: 3px solid #f0c040;
}

/* ── Inputs ── */
.placeholder-fill-field input,
.placeholder-fill-field select,
.placeholder-fill-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.placeholder-fill-field input:focus,
.placeholder-fill-field select:focus,
.placeholder-fill-field textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
    outline: none;
}

.placeholder-fill-field textarea {
    min-height: 80px;
    resize: vertical;
}

/* ── Save bar ── */
.placeholder-fill-save-bar {
    margin-top: 20px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.placeholder-fill-save-btn {
    padding: 10px 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.placeholder-fill-save-btn:hover { opacity: 0.9; }

.placeholder-fill-cancel-btn {
    padding: 10px 20px;
    background: #e9ecef;
    color: #333;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.placeholder-fill-cancel-btn:hover { background: #dee2e6; }

/* ── Empty state ── */
.placeholder-fill-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 14px;
}
