/* 입점사 제휴 전자계약 UI */
.dpc-page { padding: 4px 0 24px; max-width: 960px; }
.dpc-title { font-size: 20px; font-weight: 800; margin: 0 0 8px; color: #1e293b; }
.dpc-desc { font-size: 13px; color: #64748b; line-height: 1.55; margin: 0 0 20px; }
.dpc-empty { font-size: 13px; color: #94a3b8; padding: 16px 0; }
.dpc-table-wrap { overflow-x: auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; }
.dpc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dpc-table th, .dpc-table td { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; text-align: left; }
.dpc-table th { background: #f8fafc; font-weight: 700; font-size: 12px; color: #64748b; }
.dpc-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.dpc-card-head { margin-bottom: 8px; }
.dpc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dpc-btn { padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; border: none; }
.dpc-btn--primary { background: #2563EB; color: #fff; }
.dpc-btn--primary:hover { background: #1d4ed8; }
.dpc-btn--ghost { background: #fff; color: #334155; border: 1px solid #e2e8f0; }
.dpc-btn--ghost:hover { background: #f8fafc; }
.dpc-modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,0.45); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dpc-modal { background: #fff; border-radius: 16px; padding: 24px; max-width: 400px; width: 100%; box-shadow: 0 20px 50px rgba(0,0,0,0.15); }
.dpc-modal h3 { margin: 0 0 8px; font-size: 18px; }
.dpc-modal-p { font-size: 13px; color: #64748b; line-height: 1.5; margin: 0 0 16px; }
.dpc-modal-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.dpc-sig-wrap { margin: 12px 0; }
.dpc-sig-label { font-size: 12px; font-weight: 700; margin-bottom: 6px; color: #475569; }
.dpc-sig-canvas { display: block; width: 100%; max-width: 320px; border: 1.5px dashed #cbd5e1; border-radius: 8px; background: #fafafa; touch-action: none; }
.dpc-sig-actions { margin-top: 6px; }
.dpc-sig-clear { font-size: 12px; background: none; border: none; color: #64748b; cursor: pointer; text-decoration: underline; }

.dpc-tabs { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 1px solid #e2e8f0; padding-bottom: 0; }
.dpc-tab { padding: 10px 16px; border: none; background: none; font-size: 14px; font-weight: 700; color: #64748b; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; font-family: inherit; }
.dpc-tab--active { color: #2563EB; border-bottom-color: #2563EB; }
.dpc-subtitle { font-size: 16px; font-weight: 800; margin: 0 0 8px; color: #1e293b; }
.dpc-send-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; margin-bottom: 20px; }
.dpc-send-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.dpc-send-row label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: #475569; flex: 1; min-width: 160px; }
.dpc-send-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dpc-input { padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 13px; font-family: inherit; }
.dpc-input--wide { min-width: 240px; flex: 1; }
.dpc-textarea { width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 12px; font-family: ui-monospace, monospace; line-height: 1.5; resize: vertical; min-height: 320px; }
.dpc-hint { font-size: 11px; color: #64748b; line-height: 1.5; margin: 0 0 8px; word-break: break-all; }
.dpc-editor-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; }
.dpc-editor-head { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.dpc-editor-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.dpc-tpl-layout { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
@media (max-width: 768px) { .dpc-tpl-layout { grid-template-columns: 1fr; } }
.dpc-tpl-list { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; }
.dpc-tpl-list-head { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.dpc-tpl-item { display: block; width: 100%; text-align: left; padding: 12px; border: none; border-bottom: 1px solid #f1f5f9; background: #fff; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; color: #334155; }
.dpc-tpl-item:hover { background: #f8fafc; }
.dpc-tpl-item--active { background: #EFF6FF; color: #2563EB; }
.dpc-tpl-meta { display: block; font-size: 11px; font-weight: 400; color: #94a3b8; margin-top: 4px; }
.dpc-badge { font-size: 10px; background: #2563EB; color: #fff; padding: 1px 6px; border-radius: 4px; margin-left: 4px; }
.dpc-btn--sm { padding: 4px 10px; font-size: 12px; }
.dpc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-bottom: 12px; }
.dpc-field { display: flex; flex-direction: column; gap: 4px; }
.dpc-field span { font-size: 12px; font-weight: 700; color: #475569; }
.dpc-field--full { grid-column: 1 / -1; }
.dpc-textarea--plain { font-family: 'Noto Sans KR', sans-serif; min-height: 120px; }
.dpc-fill-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 12px; padding: 12px; background: #f8fafc; border-radius: 8px; }
@media (max-width: 640px) { .dpc-form-grid { grid-template-columns: 1fr; } }
