/* TWK Evaluaciones — administración. Colores tomados del logotipo TWK. */
.twk-wrap {
	--twk-green: #00a651;
	--twk-lime: #8dc63f;
	--twk-blue: #0f75bd;
	--twk-magenta: #ec008c;
	--twk-ink: #1d2327;
	--twk-muted: #646970;
	--twk-line: #dcdcde;
	max-width: 1280px;
}
.twk-head {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 18px 0 16px;
	margin-bottom: 20px;
	border-bottom: 3px solid var(--twk-green);
}
.twk-logo { height: 52px; width: auto; }
.twk-head h1 { margin: 0; padding: 0; font-size: 22px; font-weight: 600; color: var(--twk-ink); }
.twk-intro { margin: 4px 0 0; color: var(--twk-muted); max-width: 70ch; }
.twk-grid { display: grid; grid-template-columns: minmax(280px, 360px) 1fr; gap: 20px; align-items: start; }
.twk-panel { background: #fff; border: 1px solid var(--twk-line); border-radius: 6px; padding: 16px 20px 20px; }
.twk-panel h2 { margin-top: 4px; font-size: 15px; }
.twk-panel--full, .twk-panel--narrow { max-width: 100%; }
.twk-panel--narrow { max-width: 560px; }
.twk-field { margin-bottom: 14px; }
.twk-field label, .twk-field legend { display: block; font-weight: 600; margin-bottom: 4px; }
.twk-field input.regular-text, .twk-field select, .twk-field textarea { width: 100%; max-width: 100%; }
.twk-field .description { margin-top: 4px; }
.twk-req { color: var(--twk-magenta); }
.twk-check { display: block; font-weight: 400 !important; margin: 4px 0; }
.twk-muted { color: var(--twk-muted); }
.twk-empty { background: #fff; border-left: 4px solid var(--twk-blue); padding: 12px 20px; }
.twk-table td, .twk-table th { vertical-align: middle; }
.twk-actions { white-space: nowrap; text-align: right; }
.twk-danger { color: #b32d2e; }
.twk-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.twk-badge--on { background: #e6f6ec; color: #006b34; }
.twk-badge--off { background: #f0f0f1; color: var(--twk-muted); }
.twk-credits { font-weight: 600; color: var(--twk-green); }
.twk-credits--empty { color: #b32d2e; }
.twk-plus { color: #006b34; font-weight: 600; }
.twk-minus { color: #b32d2e; font-weight: 600; }
.twk-balances { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.twk-balances li { display: flex; justify-content: space-between; border: 1px solid var(--twk-line); border-radius: 4px; padding: 8px 12px; }
.twk-logo-preview img { max-height: 80px; width: auto; margin: 6px 0; }
.twk-factor { display: inline-block; min-width: 18px; text-align: center; border-radius: 3px; font-size: 11px; font-weight: 700; color: #fff; margin-left: 4px; }
.twk-factor--d { background: var(--twk-magenta); }
.twk-factor--i { background: var(--twk-lime); color: #1d2327; }
.twk-factor--s { background: var(--twk-green); }
.twk-factor--c { background: var(--twk-blue); }
@media (max-width: 960px) { .twk-grid { grid-template-columns: 1fr; } .twk-actions { text-align: left; } }
/* Fase 2 */
.twk-mt { margin-top: 20px; }
.twk-grid--two { grid-template-columns: 1fr 1fr; }
.twk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.twk-row--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.twk-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.twk-filters input[type=search] { min-width: 220px; }
.twk-assign { margin-top: 16px; border: 1px solid var(--twk-line); border-left: 4px solid var(--twk-blue); border-radius: 4px; padding: 10px 16px; background: #f8fbfd; }
.twk-assign summary { cursor: pointer; font-weight: 600; padding: 4px 0 10px; }
.twk-status { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; white-space: nowrap; }
.twk-status--pending { background: #fff4d6; color: #7a5600; }
.twk-status--in_progress { background: #e3f0fa; color: #0a4f80; }
.twk-status--completed { background: #e6f6ec; color: #006b34; }
.twk-status--expired { background: #fde7e9; color: #9b1c2a; }
.twk-status--cancelled { background: #f0f0f1; color: var(--twk-muted); }
.twk-status-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.twk-status-tabs a { display: inline-block; padding: 6px 12px; border: 1px solid var(--twk-line); border-radius: 4px; background: #fff; text-decoration: none; color: var(--twk-ink); }
.twk-status-tabs a.current { border-color: var(--twk-green); box-shadow: inset 0 -2px 0 var(--twk-green); font-weight: 600; }
.twk-status-tabs span { color: var(--twk-muted); margin-left: 4px; }
.twk-copy { color: #2271b1; cursor: pointer; }
.twk-code { background: #f6f7f7; border: 1px solid var(--twk-line); padding: 10px 12px; white-space: pre-wrap; word-break: break-all; }
.twk-count { margin-top: 8px; }
@media (max-width: 1100px) { .twk-grid--two { grid-template-columns: 1fr; } }
@media (max-width: 782px) { .twk-row, .twk-row--four { grid-template-columns: 1fr; } }
/* Fase 4: resultados */
.twk-num { text-align: center; font-variant-numeric: tabular-nums; }
.twk-high { font-weight: 700; color: var(--twk-ink); background: #eef8f1; }
.twk-report { max-width: 960px; }
.twk-report-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 3px solid var(--twk-green); }
.twk-logo--client { height: 52px; width: auto; }
.twk-report-id { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin: 20px 0 8px; }
.twk-report-id h1 { margin: 0; padding: 0; font-size: 26px; }
.twk-report-id p { margin: 4px 0 0; }
.twk-meta { display: grid; grid-template-columns: auto auto; gap: 2px 14px; margin: 0; font-size: 13px; }
.twk-meta dt { color: var(--twk-muted); }
.twk-meta dd { margin: 0; font-weight: 600; }
.twk-pattern { background: #fff; border: 1px solid var(--twk-line); border-left: 6px solid var(--twk-green); border-radius: 6px; padding: 18px 24px; margin: 16px 0; }
.twk-pattern-kicker { margin: 0; color: var(--twk-muted); font-size: 13px; }
.twk-pattern h2 { font-size: 24px; margin: 2px 0 8px; }
.twk-pattern p { font-size: 14px; max-width: 75ch; }
.twk-alerts { background: #fff8e5; border: 1px solid #f0d58c; border-radius: 6px; padding: 12px 20px; margin: 16px 0; }
.twk-alerts h3 { margin: 4px 0 6px; font-size: 14px; }
.twk-alerts ul { margin: 0 0 4px 18px; list-style: disc; }
.twk-graphs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0; }
.twk-graphs figure { margin: 0; background: #fff; border: 1px solid var(--twk-line); border-radius: 6px; padding: 12px; text-align: center; }
.twk-graphs figcaption strong { display: block; font-size: 15px; }
.twk-graphs figcaption span { display: block; font-size: 12px; color: var(--twk-muted); min-height: 32px; }
.twk-graph { width: 100%; max-width: 240px; height: auto; }
.twk-graph-pattern { margin: 4px 0 0; font-weight: 600; }
.twk-factors, .twk-interp { background: #fff; border: 1px solid var(--twk-line); border-radius: 6px; padding: 8px 24px 16px; margin: 16px 0; }
.twk-factors h3, .twk-interp h3 { font-size: 15px; }
.twk-factor-row { display: grid; grid-template-columns: 200px 160px 1fr; gap: 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--twk-line); }
.twk-factor-name span { display: block; font-size: 12px; color: var(--twk-muted); }
.twk-bar { position: relative; height: 10px; background: #eef0ef; border-radius: 5px; }
.twk-bar span { display: block; height: 100%; border-radius: 5px; }
.twk-bar i { position: absolute; left: 50%; top: -3px; bottom: -3px; border-left: 2px dashed #5f6368; }
.twk-factor-row--d .twk-bar span { background: var(--twk-magenta); }
.twk-factor-row--i .twk-bar span { background: var(--twk-lime); }
.twk-factor-row--s .twk-bar span { background: var(--twk-green); }
.twk-factor-row--c .twk-bar span { background: var(--twk-blue); }
.twk-factor-text { font-size: 13px; }
.twk-factor-text em { display: block; font-style: normal; color: var(--twk-muted); font-size: 12px; }
.twk-pairs { display: grid; grid-template-columns: 190px 1fr; gap: 8px 16px; margin: 16px 0; }
.twk-pairs dt { font-weight: 700; }
.twk-pairs dd { margin: 0; }
.twk-lists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.twk-lists ul { margin: 0 0 0 18px; list-style: disc; }
.twk-lists li { margin-bottom: 4px; }
.twk-raw { margin: 16px 0; }
.twk-raw summary { cursor: pointer; font-weight: 600; }
.twk-raw table { max-width: 420px; margin-top: 8px; }
.twk-disclaimer { font-size: 12px; color: var(--twk-muted); border-top: 1px solid var(--twk-line); padding-top: 12px; }
@media (max-width: 960px) { .twk-graphs, .twk-lists { grid-template-columns: 1fr; } .twk-factor-row { grid-template-columns: 1fr; } .twk-pairs { grid-template-columns: 1fr; } }
@media print {
	#adminmenumain, #wpadminbar, #wpfooter, .twk-noprint, .notice, .update-nag { display: none !important; }
	#wpcontent, #wpbody-content { margin: 0 !important; padding: 0 !important; }
	html.wp-toolbar { padding: 0 !important; }
	.twk-report { max-width: none; }
	.twk-graphs { grid-template-columns: repeat(3, 1fr) !important; }
	.twk-lists { grid-template-columns: repeat(3, 1fr) !important; }
	.twk-factor-row { grid-template-columns: 200px 160px 1fr !important; }
	.twk-pattern, .twk-factors, .twk-interp, .twk-graphs figure, .twk-alerts { break-inside: avoid; }
	.twk-raw { display: none; }
}
/* Fase 5A */
.twk-pdfbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 0; }
.twk-pdfbar-right { display: flex; gap: 6px; align-items: center; }
.twk-sections { margin: 0; }
.twk-sections li { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--twk-line); border-radius: 4px; padding: 6px 8px; margin-bottom: 6px; }
.twk-sections li input[type=text] { flex: 1; }
.twk-handle { cursor: move; color: var(--twk-muted); }
.twk-sections .ui-sortable-helper { box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.twk-nav { margin: 0 0 12px; }
.twk-nav a { display: block; padding: 5px 8px; border-radius: 3px; text-decoration: none; }
.twk-nav a.current { background: #eef8f1; color: var(--twk-ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--twk-green); }
.twk-targets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 12px; }
.twk-field textarea { width: 100%; }
/* Fase 5B */
.twk-sliders { margin: 8px 0 14px; }
.twk-slider { margin-bottom: 10px; }
.twk-slider label { display: flex; justify-content: space-between; font-weight: 600; }
.twk-slider output { font-variant-numeric: tabular-nums; }
.twk-slider input[type=range] { width: 100%; }
.twk-slider--d input { accent-color: var(--twk-magenta); }
.twk-slider--i input { accent-color: var(--twk-lime); }
.twk-slider--s input { accent-color: var(--twk-green); }
.twk-slider--c input { accent-color: var(--twk-blue); }
.twk-jobfit { display: grid; grid-template-columns: 240px 1fr; gap: 20px; background: #fff; border: 1px solid var(--twk-line); border-left: 6px solid var(--twk-blue); border-radius: 6px; padding: 16px 20px; margin: 16px 0; }
.twk-jobfit-graph { text-align: center; }
.twk-jobfit-graph p { font-size: 12px; margin: 4px 0 0; }
.twk-fit { font-size: 28px; margin: 2px 0 10px; }
.twk-fit span { font-size: 14px; font-weight: 600; color: var(--twk-muted); margin-left: 6px; }
.twk-fit--alto { color: #006b34; }
.twk-fit--medio { color: #7a5600; }
.twk-fit--bajo { color: #9b1c2a; }
.twk-gaps { border-collapse: collapse; width: 100%; }
.twk-gaps th, .twk-gaps td { text-align: left; vertical-align: top; padding: 6px 8px; border-top: 1px solid var(--twk-line); font-size: 13px; }
.twk-gaps th { width: 150px; }
.twk-gap { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; margin-right: 4px; }
.twk-gap--ok { background: #e6f6ec; color: #006b34; }
.twk-gap--moderate { background: #fff4d6; color: #7a5600; }
.twk-gap--high { background: #fde7e9; color: #9b1c2a; }
.twk-team { max-width: 1000px; }
@media (max-width: 960px) { .twk-jobfit { grid-template-columns: 1fr; } }
@media print { .twk-jobfit { break-inside: avoid; } }
.twk-assigned { color: var(--twk-green); margin-left: 8px; }
.twk-strong { font-weight: 600; }
.twk-balance-line { margin: 0 0 10px; }
/* Accesos de gestores */
.twk-manager-box { min-width: 0; max-width: 100%; border: 1px solid var(--twk-line); border-left: 4px solid var(--twk-blue); border-radius: 4px; padding: 8px 14px 4px; margin: 16px 0 4px; background: #f8fbfd; }
.twk-manager-box legend { font-weight: 600; padding: 0 4px; }
.twk-mode { margin: 4px 0 10px; }
.twk-mode-panel[hidden] { display: none; }
.twk-pass-row { display: flex; gap: 6px; }
.twk-pass-row input { flex: 1; font-family: Menlo, Consolas, monospace; letter-spacing: .5px; }
.twk-reset { margin: 10px 0; }
.twk-reset summary { cursor: pointer; font-weight: 600; margin-bottom: 6px; }
/* Envío manual de invitaciones */
.twk-pending { border-left: 4px solid var(--twk-blue); margin-bottom: 16px; }
.twk-msg-card { border: 1px solid var(--twk-line); border-radius: 6px; padding: 12px 14px; margin: 12px 0; background: #fff; }
.twk-msg-card header { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.twk-msg-card.is-sent { border-color: #b8e3c8; background: #f6fcf8; }
.twk-sent-label { margin-left: auto; color: #006b34; font-weight: 600; font-size: 12px; }
.twk-msg-grid { display: grid; grid-template-columns: 70px 1fr; gap: 6px 10px; align-items: start; }
.twk-msg-grid label { font-weight: 600; padding-top: 6px; }
.twk-msg-grid input, .twk-msg-grid textarea { width: 100%; background: #fafafa; font-size: 13px; }
.twk-msg-grid textarea { font-family: inherit; line-height: 1.45; }
.twk-msg-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.twk-dialog { width: min(680px, 94vw); border: 1px solid var(--twk-line); border-top: 5px solid var(--twk-green); border-radius: 8px; padding: 18px 20px; }
.twk-dialog::backdrop { background: rgba(29, 35, 39, .45); }
.twk-dialog h2 { margin: 0 0 12px; font-size: 16px; }
.twk-dlg-close { margin-left: auto; }
.twk-open-msg { color: #2271b1; cursor: pointer; text-align: left; }
@media (max-width: 600px) { .twk-msg-grid { grid-template-columns: 1fr; } .twk-msg-grid label { padding-top: 0; } }
/* Borrado */
.twk-danger-zone { border-left: 4px solid #d63638; }
.twk-list { list-style: disc; margin: 0 0 12px 20px; }
.twk-warn { background: #fff8e5; border: 1px solid #f0d58c; padding: 8px 12px; border-radius: 4px; }
.button.twk-btn-danger, .twk-btn-danger { background: #fff; color: #b32d2e; border: 1px solid #b32d2e; }
.button.twk-btn-danger:hover { background: #b32d2e; color: #fff; }
.twk-bulk-delete { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--twk-line); }
/* Grupo nuevo y compra de créditos */
.twk-new-group { margin-top: 6px; width: 100%; }
.twk-buy { border-left: 4px solid var(--twk-green); margin-bottom: 16px; }
.twk-price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 6px 0 10px; }
.twk-price { background: #fff; border: 1px solid var(--twk-line); border-radius: 6px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.twk-price-name { font-size: 12px; color: var(--twk-muted); }
.twk-price strong { font-size: 18px; color: var(--twk-ink); }
.twk-price span:last-child { font-size: 12px; }
.twk-buy-form { max-width: 560px; margin-top: 12px; }
.twk-qty { margin: 6px 0 0 24px; }
.twk-qty input { width: 110px; }
.twk-total { font-weight: 700; color: var(--twk-ink); min-height: 1.4em; margin: 8px 0; }
.twk-req { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; }
.twk-req--pending { background: #fff4d6; color: #7a5600; }
.twk-req--done { background: #e6f6ec; color: #006b34; }
.twk-req--cancelled { background: #f0f0f1; color: var(--twk-muted); }
.twk-requests { border-left: 4px solid #dba617; margin-bottom: 16px; }
