/* DTFactoria - ventana de trabajo. Colores de la web actual (granate/fucsia). */
.dtf-modal-open { overflow: hidden; }
.dtf-modal[hidden] { display: none !important; }
.dtf-modal { position: fixed; inset: 0; z-index: 100000; background: rgba(20, 22, 30, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dtf-dialog { background: #fff; color: #20242b; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); font-family: inherit; }
.dtf-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #ece9f0; }
.dtf-head h2 { margin: 0; font-size: 20px; color: #72162a; }
.dtf-close { background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: #555; padding: 4px 8px; }
.dtf-body { padding: 16px 20px; overflow-y: auto; }
.dtf-foot { padding: 14px 20px; border-top: 1px solid #ece9f0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; }
.dtf-hint { flex: 1 1 100%; margin: 0; font-size: 13px; color: #a64b00; }
.dtf-hint:empty { display: none; }
.dtf-measure { margin: 0 0 8px; font-weight: 700; }
.dtf-refline { background: #f7f5fa; border: 1px dashed #d8cde0; border-radius: 8px; padding: 10px 12px; margin: 0 0 14px; }
.dtf-ref { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 17px; letter-spacing: .04em; color: #72162a; }
.dtf-label { display: block; font-weight: 700; margin: 12px 0 6px; font-size: 14px; }
.dtf-body input[type="text"], .dtf-body input[type="url"], .dtf-body textarea { width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; border: 1px solid #cfc8d6; border-radius: 8px; font-size: 16px; font-family: inherit; }
.dtf-modes { border: 0; padding: 0; margin: 10px 0 6px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.dtf-modes legend { padding: 0; }
.dtf-modes label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 15px; }
.dtf-panel[hidden] { display: none; }
.dtf-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 18px 12px; border: 2px dashed #d0a7b8; border-radius: 10px; background: #fff8fa; cursor: pointer; }
.dtf-drop.is-disabled { opacity: .55; cursor: wait; }
.dtf-drop.is-over { background: #fde7ef; border-color: #df2862; }
.dtf-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dtf-drop-title { font-weight: 700; }
.dtf-drop-help { font-size: 13px; color: #626a76; }
.dtf-files { list-style: none; margin: 10px 0 0; padding: 0; }
.dtf-file { border: 1px solid #ece9f0; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.dtf-file-main { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.dtf-file-name { font-weight: 600; overflow-wrap: anywhere; }
.dtf-file-size { color: #626a76; white-space: nowrap; }
.dtf-bar { height: 6px; background: #eee; border-radius: 4px; margin: 6px 0; overflow: hidden; }
.dtf-bar-fill { display: block; height: 100%; width: 0; background: #df2862; transition: width .2s; }
.dtf-file.is-complete .dtf-bar-fill { background: #16a34a; }
.dtf-file.is-error .dtf-bar-fill { background: #dc2626; }
.dtf-file-foot { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.dtf-file-status { flex: 1; color: #444; }
.dtf-file.is-error .dtf-file-status { color: #b91c1c; }
.dtf-link { background: none; border: 0; padding: 0; color: #72162a; text-decoration: underline; cursor: pointer; font-size: 13px; }
.dtf-danger { color: #b91c1c; }
.dtf-wt-steps { margin: 6px 0 8px 18px; padding: 0; font-size: 14px; line-height: 1.6; }
.dtf-note { font-size: 13px; color: #626a76; margin: 10px 0 0; }
.dtf-note[hidden] { display: none; }
.dtf-error { color: #b91c1c; font-weight: 600; margin-top: 10px; font-size: 14px; }
.dtf-error:empty { display: none; }
.dtf-btn { min-height: 46px; padding: 10px 18px; border-radius: 8px; font-weight: 700; font-size: 15px; cursor: pointer; border: 1px solid transparent; }
.dtf-btn-primary { background: #df2862; color: #fff; }
.dtf-btn-primary:hover { background: #bd194d; }
.dtf-btn-primary[disabled] { background: #d9c2cb; cursor: not-allowed; }
.dtf-btn-secondary { background: #fff; color: #20242b; border-color: #cfc8d6; }
.dtf-edit-job { font-size: 13px; }
@media (max-width: 600px) {
	.dtf-modal { padding: 0; align-items: stretch; }
	.dtf-dialog { max-height: 100vh; border-radius: 0; }
	.dtf-foot .dtf-btn { flex: 1 1 auto; }
}
