/* TWK Evaluaciones — administración. Variables en tokens.css. */
.twk-wrap {
	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: var(--twk-danger); }
.twk-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.twk-badge--on { background: var(--twk-success-bg); color: var(--twk-success); }
.twk-badge--off { background: var(--twk-neutral-bg); color: var(--twk-muted); }
.twk-credits { font-weight: 600; color: var(--twk-green); }
.twk-credits--empty { color: var(--twk-danger); }
.twk-plus { color: var(--twk-success); font-weight: 600; }
.twk-minus { color: var(--twk-danger); 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: var(--twk-ink); }
.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: var(--twk-info-soft); }
.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: var(--twk-warning-bg); color: var(--twk-warning); }
.twk-status--in_progress { background: var(--twk-info-bg); color: var(--twk-info); }
.twk-status--completed { background: var(--twk-success-bg); color: var(--twk-success); }
.twk-status--expired { background: var(--twk-danger-bg); color: var(--twk-danger); }
.twk-status--cancelled { background: var(--twk-neutral-bg); 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: var(--twk-blue); cursor: pointer; }
.twk-code { background: var(--twk-neutral-bg); 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: var(--twk-success-soft); }
.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: var(--twk-warning-soft); border: 1px solid var(--twk-warning-line); 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: var(--twk-track); 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 var(--twk-muted); }
.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: var(--twk-success-soft); 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: var(--twk-success); }
.twk-fit--medio { color: var(--twk-warning); }
.twk-fit--bajo { color: var(--twk-danger); }
.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: var(--twk-success-bg); color: var(--twk-success); }
.twk-gap--moderate { background: var(--twk-warning-bg); color: var(--twk-warning); }
.twk-gap--high { background: var(--twk-danger-bg); color: var(--twk-danger); }
.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: var(--twk-info-soft); }
.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: var(--twk-font-mono); 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: var(--twk-success-line); background: var(--twk-success-soft); }
.twk-sent-label { margin-left: auto; color: var(--twk-success); 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: var(--twk-field-bg); 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: var(--twk-blue); 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 var(--twk-danger-accent); }
.twk-list { list-style: disc; margin: 0 0 12px 20px; }
.twk-warn { background: var(--twk-warning-soft); border: 1px solid var(--twk-warning-line); padding: 8px 12px; border-radius: 4px; }
.button.twk-btn-danger, .twk-btn-danger { background: #fff; color: var(--twk-danger); border: 1px solid var(--twk-danger); }
.button.twk-btn-danger:hover { background: var(--twk-danger); 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: var(--twk-warning-bg); color: var(--twk-warning); }
.twk-req--done { background: var(--twk-success-bg); color: var(--twk-success); }
.twk-req--cancelled { background: var(--twk-neutral-bg); color: var(--twk-muted); }
.twk-requests { border-left: 4px solid var(--twk-warning-accent); margin-bottom: 16px; }
.twk-test-tag { display: inline-block; margin-top: 2px; font-size: 11px; color: var(--twk-blue); background: var(--twk-info-bg); border-radius: 3px; padding: 0 6px; }
.twk-small { font-size: 11px; }
.twk-assign-top { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 10px; }
.twk-assign-top .twk-field { margin: 0; min-width: 240px; }
.twk-assign-top .description { margin: 0 0 6px; }
.twk-quest td { vertical-align: top; }
/* Comparación con perfil de puesto y perfil comercial */
.twk-jobfit-wrap { 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-wrap .twk-graphs { margin: 12px 0; }
.twk-gaps-table th { width: 170px; }
.twk-sales-index h2 small { font-size: 15px; color: var(--twk-muted); font-weight: 600; }
.twk-gauge { width: 100%; max-width: 420px; height: auto; display: block; margin: 6px 0 10px; }
.twk-bars { width: 100%; max-width: 640px; height: auto; }
.twk-lists--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .twk-lists--two { grid-template-columns: 1fr; } }
.twk-cost-note { color: var(--twk-blue); font-weight: 600; }
.twk-cost-list { margin: 4px 0 12px; }
.twk-cost-input { display: flex; flex-direction: column; gap: 4px; font-weight: 400 !important; }
.twk-cost-input input { width: 90px; }
/* Recomendaciones */
.twk-rec-list { list-style: none; margin: 8px 0 0; padding: 0; }
.twk-rec-list li { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--twk-line); }
.twk-rec-tag { flex: none; font-size: 11px; font-weight: 700; color: var(--twk-blue); width: 48px; padding-top: 2px; }
.twk-inline-label { font-weight: 600; margin-left: 6px; }
/* Panel: tarjetas de créditos */
.twk-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 4px 0 8px; }
.twk-kpi { background: #fff; border: 1px solid var(--twk-line); border-top: 4px solid var(--twk-blue); border-radius: 6px; padding: 12px 16px; }
.twk-kpi span { display: block; font-size: 12px; color: var(--twk-muted); }
.twk-kpi strong { font-size: 26px; line-height: 1.2; color: var(--twk-ink); }
.twk-kpi--used { border-top-color: var(--twk-magenta); }
.twk-kpi--available { border-top-color: var(--twk-green); }
.twk-company-fixed { margin: 6px 0 0; }
@media (max-width: 600px) { .twk-kpis { grid-template-columns: 1fr; } }
.twk-legend { font-size: 12px; color: var(--twk-muted); background: var(--twk-info-soft); border-left: 3px solid var(--twk-blue); padding: 6px 10px; margin: 8px 0 0; }
/* Plan de acción por perfil comparado */
.twk-plan-title { margin-top: 20px; font-size: 15px; }
.twk-plan td { vertical-align: top; font-size: 13px; }
.twk-plan td:first-child { width: 22%; }
.twk-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.twk-step-card { background: var(--twk-soft); border-left: 4px solid var(--twk-green); border-radius: 4px; padding: 10px 12px; }
.twk-step-card p { margin: 4px 0 0; font-size: 13px; }
@media (max-width: 782px) { .twk-steps { grid-template-columns: 1fr; } }
/* Leyenda de costo de reportes comparativos: destacada */
.twk-cost-alert { display: flex; gap: 10px; align-items: flex-start; background: var(--twk-warning-bg); border: 2px solid var(--twk-warning-accent); border-left-width: 6px; border-radius: 6px; padding: 12px 16px; margin: 12px 0 16px; }
.twk-cost-alert .dashicons { color: var(--twk-warning); font-size: 24px; width: 24px; height: 24px; flex: none; }
.twk-cost-alert p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--twk-warning); }
.twk-cost-alert strong { font-weight: 700; }
/* Historial de pruebas por participante */
.twk-tests { list-style: none; margin: 0; padding: 0; }
.twk-tests li { margin: 0 0 4px; line-height: 1.6; }
.twk-test-name { font-weight: 600; font-size: 12px; }
.twk-tests-cell { min-width: 260px; }
.twk-credit-cell { white-space: nowrap; }
/* Competencias en los planes */
.twk-comp { margin-top: 8px; padding: 6px 10px; background: var(--twk-info-bg); border-left: 3px solid var(--twk-blue); border-radius: 3px; font-size: 12.5px; }
.twk-comp-t { font-weight: 700; color: var(--twk-blue); }
.twk-comp ul { margin: 3px 0 0; padding-left: 18px; list-style: disc; }
.twk-comp li { margin-bottom: 3px; }
.twk-comp-how { display: flex; flex-direction: column; gap: 1px; font-size: 12px; color: var(--twk-ink-2); margin: 3px 0 4px; }
.twk-comp-how em { font-style: normal; font-weight: 600; color: var(--twk-ink); }
/* Rueda DISC y motivadores en DISC */
.twk-wheel-wrap { background: #fff; border: 1px solid var(--twk-line); border-radius: 6px; padding: 12px 20px; margin: 16px 0; }
.twk-wheel-wrap h3 { margin: 4px 0 8px; font-size: 15px; }
.twk-wheel-grid { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: center; }
.twk-wheel { width: 100%; max-width: 340px; height: auto; }
.twk-motiv-box { background: var(--twk-soft); border-left: 4px solid var(--twk-green); border-radius: 4px; padding: 10px 14px; }
@media (max-width: 782px) { .twk-wheel-grid { grid-template-columns: 1fr; } }
/* NOM-035 */
.twk-nom-lv { display: inline-block; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.twk-nom-dist { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--twk-track); min-width: 140px; }
.twk-nom-dist span { display: block; height: 100%; }
.twk-nom-cat td { background: var(--twk-soft); }
.twk-kv th { text-align: left; font-weight: 400; color: var(--twk-muted); padding: 3px 12px 3px 0; width: 280px; vertical-align: top; }
.twk-kv td { padding: 3px 0; }
/* Correo del destinatario: visible y con copia directa */
.twk-to-row { display: flex; gap: 8px; align-items: center; }
.twk-to-input { flex: 1; font-size: 15px !important; font-weight: 700; color: var(--twk-ink) !important; background: var(--twk-info-soft) !important; border-color: var(--twk-info-line-strong) !important; }
.twk-nom-workers summary { cursor: pointer; padding: 4px 0; }
.twk-nom-concl { margin: 0; padding-left: 20px; }
.twk-nom-concl li { margin-bottom: 8px; line-height: 1.5; }
/* Inteligencia emocional */
.twk-radar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.twk-radar { width: 100%; height: auto; max-width: 400px; display: block; margin: 0 auto; }
.twk-ie-shead { background: var(--twk-blue); color: #fff; padding: 6px 10px; border-radius: 4px; margin-top: 14px; }
.twk-ie-shead .twk-nom-lv { margin-left: 6px; }
@media (max-width: 900px) { .twk-radar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .twk-radar-grid { grid-template-columns: 1fr; } }
/* Panel: tarjeta de consumo con enlace y reporte */
a.twk-kpi--link { text-decoration: none; display: block; transition: box-shadow .15s; }
a.twk-kpi--link:hover, a.twk-kpi--link:focus { box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.twk-kpi em { display: block; font-style: normal; font-size: 12px; color: var(--twk-blue); margin-top: 2px; }
.twk-consumption .num { text-align: right; white-space: nowrap; }
.twk-consumption tfoot th { font-size: 14px; background: var(--twk-soft); }
@media print { .twk-noprint, .twk-portal-nav, .twk-portal-top { display: none !important; } }
.twk-sender-note { color: var(--twk-muted); font-size: 13px; margin: 2px 0 8px; }
.twk-sender-note .dashicons { color: var(--twk-blue); vertical-align: -5px; }
.twk-send-email.is-done { background: var(--twk-green) !important; border-color: var(--twk-green) !important; color: #fff !important; }
/* Configuración del cliente */
.twk-kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.twk-config-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.twk-config-grid .twk-panel { grid-column: auto; }
.twk-config-grid .twk-check { display: block; margin: 6px 0; }
@media (max-width: 900px) { .twk-config-grid, .twk-kpis--4 { grid-template-columns: 1fr; } }
/* Seguridad */
.twk-sec-check { list-style: none; margin: 8px 0 14px; padding: 0; }
.twk-sec-check li { padding: 4px 0; }
.twk-sec-check li.is-ok span { color: var(--twk-green); }
.twk-sec-check li.is-bad span { color: var(--twk-danger-accent); }
.twk-sec-log { margin: 10px 0 16px; }
.twk-cred-card { border-left: 6px solid var(--twk-blue); }
.twk-ok-note { color: var(--twk-success); }
.twk-warn-note { color: var(--twk-warning); }
/* Participantes deshabilitados y auditoría */
.twk-row-disabled td, .twk-row-disabled th { opacity: .6; }
.twk-row-disabled .twk-actions { opacity: 1; }
.twk-badge-off { display: inline-block; background: var(--twk-danger-bg); color: var(--twk-danger); border-radius: 10px; padding: 1px 8px; font-size: 11px; font-weight: 700; margin-left: 4px; }
.twk-audit-note { background: var(--twk-info-bg); border-left: 4px solid var(--twk-blue); padding: 8px 12px; color: var(--twk-ink); font-size: 13px; }
.twk-audit-note .dashicons { color: var(--twk-blue); vertical-align: -5px; }
/* Alerta de créditos bajos */
.twk-kpi--low { border-top-color: var(--twk-danger-accent) !important; background: var(--twk-danger-soft) !important; }
.twk-kpi--low strong, .twk-kpi--low span { color: var(--twk-danger) !important; }
.twk-low-alert { background: var(--twk-danger-soft); border: 1px solid var(--twk-danger-line); border-left: 4px solid var(--twk-danger-accent); padding: 10px 14px; border-radius: 6px; margin: 0 0 14px; color: var(--twk-danger); }
.twk-credits--low { color: var(--twk-danger-accent) !important; font-weight: 700; }
.twk-choice { display: block; border: 1px solid var(--twk-line); border-radius: 8px; padding: 10px 14px; margin: 10px 0; cursor: pointer; }
.twk-choice span { display: block; color: var(--twk-muted); font-size: 13px; margin: 4px 0 0 24px; }
.twk-choice--danger { border-color: var(--twk-danger-line); background: var(--twk-danger-soft); }
.twk-choice--danger strong { color: var(--twk-danger); }
/* Panel del administrador */
.twk-kpi--twk { border-top-color: var(--twk-green) !important; background: linear-gradient(135deg, var(--twk-success-soft), var(--twk-info-bg)) !important; }
.twk-kpi--twk strong { color: var(--twk-green); }
.twk-client-pick { margin: 6px 0 14px; padding: 10px 14px; background: #fff; border: 1px solid var(--twk-line); border-radius: 8px; }
.twk-client-pick select { min-width: 320px; }
.twk-req-alert { background: var(--twk-warning-soft); border: 1px solid var(--twk-warning-line); border-left: 5px solid var(--twk-warning-accent); border-radius: 8px; padding: 12px 16px; margin: 0 0 16px; }
.twk-req-alert h3 { margin: 0 0 6px; font-size: 16px; color: var(--twk-warning); }
.twk-req-alert ul { margin: 0 0 8px 18px; }
.twk-req-strip { background: var(--twk-warning-soft); border-left: 4px solid var(--twk-warning-accent); padding: 6px 12px; margin: 0 0 12px; font-size: 13px; }
.twk-sales-month summary { cursor: pointer; padding: 2px 0 8px; }
.twk-mbar { background: var(--twk-track); border-radius: 4px; height: 10px; }
.twk-mbar span { display: block; height: 10px; border-radius: 4px; background: var(--twk-green); }
.twk-row-now td { background: var(--twk-success-soft) !important; font-weight: 700; }
.twk-kpi em { display: block; font-style: normal; font-size: 12px; color: var(--twk-muted); margin-top: 2px; }
.twk-kpi--link em { color: var(--twk-blue) !important; }
.twk-release { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.twk-release label { font-size: 12px; color: var(--twk-muted); }
.twk-release input { font-size: 13px; }
/* Participantes: divisores de secciones */
.twk-band { display: flex; align-items: center; gap: 8px; margin: 22px 0 12px; padding: 10px 16px; border-radius: 8px; font-size: 16px; color: #fff; }
.twk-band .dashicons { font-size: 20px; width: 20px; height: 20px; }
.twk-band--new { background: var(--twk-green); margin-top: 6px; }
.twk-band--list { background: var(--twk-blue); margin-top: 34px; position: relative; }
.twk-band--list::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; border-top: 2px dashed var(--twk-line); }
.twk-list-empty { text-align: center; padding: 34px 16px; color: var(--twk-muted); background: var(--twk-soft); border: 1px dashed var(--twk-line); border-radius: 8px; }
.twk-list-empty .dashicons { font-size: 34px; width: 34px; height: 34px; color: var(--twk-blue); }
.twk-battery-pick { margin: 6px 0 10px; padding: 8px 12px; background: var(--twk-info-soft); border: 1px dashed var(--twk-info-line-strong); border-radius: 8px; }
.twk-battery-pick summary { cursor: pointer; font-weight: 600; color: var(--twk-blue); }
.twk-battery-pick .twk-check { display: block; margin: 4px 0; }
.twk-nec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 16px; margin: 10px 0; }
.twk-nec-grid label { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--twk-line-soft); }
.twk-nec-grid select { min-width: 120px; }
.twk-import-box { border-left: 4px solid var(--twk-blue); }
.twk-import-box h2 .dashicons { color: var(--twk-blue); vertical-align: -3px; }
/* Mensajes */
.twk-msg-layout { display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; }
@media (max-width: 800px) { .twk-msg-layout { grid-template-columns: 1fr; } }
.twk-msg-list { background: #fff; border: 1px solid var(--twk-line); border-radius: 8px; overflow: hidden; }
.twk-msg-item { display: block; padding: 10px 12px; border-bottom: 1px solid var(--twk-line); text-decoration: none; color: var(--twk-ink); }
.twk-msg-item.is-current { background: var(--twk-info-bg); border-left: 3px solid var(--twk-blue); }
.twk-msg-count, .twk-msg-new { display: inline-block; background: var(--twk-danger-accent); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 11px; font-weight: 700; }
.twk-msg-thread { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; padding: 4px; margin-bottom: 12px; }
/* 0.82.52: Mensajes ocupa todo el alto y ancho disponible de la ventana; la conversación crece y se desplaza dentro. */
.twk-msg-layout { width: 100%; height: calc(100vh - var(--twk-msg-top, 200px)); min-height: 460px; align-items: stretch; }
.twk-msg-layout > .twk-msg-list { overflow-y: auto; max-height: 100%; }
.twk-msg-layout > .twk-msg-main { display: flex; flex-direction: column; min-height: 0; max-width: none; margin: 0; }
.twk-msg-main > h2 { flex: 0 0 auto; }
.twk-msg-main > .twk-msg-thread { flex: 1 1 auto; max-height: none; min-height: 0; }
.twk-msg-main > .twk-msg-form { flex: 0 0 auto; width: 100%; }
.twk-msg-main > .twk-msg-form.is-announce { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.twk-msg-main > .twk-msg-form.is-announce textarea { flex: 1 1 auto; min-height: 220px; }
.twk-msg { max-width: min(80%, 900px); }
@media (max-width: 800px) { .twk-msg-layout { height: auto; } .twk-msg-layout > .twk-msg-list { max-height: 220px; } .twk-msg-main > .twk-msg-thread { max-height: 60vh; } }
.twk-msg { max-width: 80%; padding: 8px 12px; border-radius: 10px; background: var(--twk-bg); }
.twk-msg.is-mine { align-self: flex-end; background: var(--twk-success-soft); }
.twk-msg.is-announce { border-left: 4px solid var(--twk-warning-accent); }
.twk-msg-meta { font-size: 12px; color: var(--twk-muted); margin-bottom: 4px; }
.twk-msg-body { white-space: normal; line-height: 1.45; }
.twk-msg-form textarea { width: 100% !important; max-width: 100% !important; box-sizing: border-box; display: block; resize: vertical; font: inherit; line-height: 1.45; }
.twk-msg-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.twk-int-block { border: 1px solid var(--twk-line); border-radius: 8px; padding: 10px 14px; margin: 10px 0; }
.twk-int-chart { max-width: 560px; overflow-x: auto; }
.twk-int-chart svg { max-width: 100%; height: auto; }

/* 0.55.0 — Pestañas dentro de una entrada del menú (escritorio y portal). */
.twk-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: -8px 0 20px; border-bottom: 1px solid var(--twk-line); }
.twk-tabs .twk-tab { display: inline-block; padding: 8px 14px; margin-bottom: -1px; color: var(--twk-muted); text-decoration: none; font-weight: 600; border: 1px solid transparent; border-radius: 4px 4px 0 0; }
.twk-tabs .twk-tab:hover { color: var(--twk-ink); background: var(--twk-neutral-bg); }
.twk-tabs .twk-tab:focus { box-shadow: 0 0 0 2px var(--twk-blue); outline: 0; }
.twk-tabs .twk-tab.is-current { color: var(--twk-ink); background: #fff; border-color: var(--twk-line); border-bottom-color: #fff; box-shadow: inset 0 3px 0 var(--twk-green); }
@media print { .twk-tabs { display: none; } }

/* 0.72.2: ventana de mensajes del sistema (colores TWK). */
.twk-msg-modal { width: min(440px, 92vw); border: 0; border-top: 6px solid var(--twk-blue); border-radius: 8px; padding: 22px 24px 18px; background: var(--twk-surface); color: var(--twk-ink); font-family: var(--twk-font); box-shadow: 0 12px 40px rgba(29, 35, 39, .25); text-align: center; }
.twk-msg-modal::backdrop { background: rgba(29, 35, 39, .45); }
.twk-msg-modal.is-success { border-top-color: var(--twk-green); }
.twk-msg-modal.is-warning { border-top-color: var(--twk-warning-accent); }
.twk-msg-modal.is-error { border-top-color: var(--twk-danger-accent); }
.twk-msg-modal__logo { height: 36px; width: auto; margin: 0 auto 10px; display: block; }
.twk-msg-modal__title { margin: 0 0 8px; font-size: 18px; color: var(--twk-info); }
.twk-msg-modal.is-success .twk-msg-modal__title { color: var(--twk-success); }
.twk-msg-modal.is-warning .twk-msg-modal__title { color: var(--twk-warning); }
.twk-msg-modal.is-error .twk-msg-modal__title { color: var(--twk-danger); }
.twk-msg-modal__text { margin: 0 0 18px; font-size: 14px; line-height: 1.55; white-space: pre-line; }
.twk-msg-modal__actions { display: flex; justify-content: center; }
.twk-msg-modal .twk-msg-modal__ok { min-width: 140px; background: var(--twk-green-text); border-color: var(--twk-green-text); color: #fff; }
.twk-msg-modal .twk-msg-modal__ok:hover, .twk-msg-modal .twk-msg-modal__ok:focus { background: var(--twk-green-dark); border-color: var(--twk-green-dark); color: #fff; }
/* 0.72.4: confirmaciones y motivos en la misma ventana TWK. */
.twk-msg-modal.is-confirm { border-top-color: var(--twk-blue); }
.twk-msg-modal.is-danger { border-top-color: var(--twk-danger-accent); }
.twk-msg-modal.is-confirm .twk-msg-modal__title { color: var(--twk-info); }
.twk-msg-modal.is-danger .twk-msg-modal__title { color: var(--twk-danger); }
.twk-msg-modal__input { display: block; width: 100%; box-sizing: border-box; margin: -6px 0 18px; padding: 8px 10px; border: 1px solid var(--twk-muted-2); border-radius: 4px; font: 14px/1.4 var(--twk-font); text-align: left; background: var(--twk-field-bg); color: var(--twk-ink); }
.twk-msg-modal__input:focus { outline: 2px solid var(--twk-blue); outline-offset: 1px; border-color: var(--twk-blue); }
.twk-msg-modal__actions { gap: 10px; flex-wrap: wrap; }
.twk-msg-modal .twk-msg-modal__cancel { min-width: 120px; background: var(--twk-surface); border: 1px solid var(--twk-line-strong); color: var(--twk-ink-2); }
.twk-msg-modal .twk-msg-modal__cancel:hover, .twk-msg-modal .twk-msg-modal__cancel:focus { background: var(--twk-soft); color: var(--twk-ink); }
.twk-msg-modal.is-danger .twk-msg-modal__ok { background: var(--twk-danger); border-color: var(--twk-danger); }
.twk-msg-modal.is-danger .twk-msg-modal__ok:hover, .twk-msg-modal.is-danger .twk-msg-modal__ok:focus { background: #8a2122; border-color: #8a2122; }

/* 0.72.5: Créditos — costos por prueba en 8 columnas (máx. 15 filas) y movimientos a pantalla completa (máx. 10 filas). */
.twk-grid > .twk-panel--full { grid-column: 1 / -1; }
.twk-cost-scroll { max-height: calc(15 * 2.4em + 2.6em); overflow-y: auto; margin: 4px 0 12px; }
.twk-cost-table { table-layout: fixed; width: 100%; }
.twk-cost-table th, .twk-cost-table td { padding: 6px 8px; line-height: 1.3; vertical-align: middle; height: 2.4em; box-sizing: border-box; }
.twk-cost-table th:nth-child(odd), .twk-cost-table td:nth-child(odd) { width: 15%; }
.twk-cost-table th:nth-child(even), .twk-cost-table td:nth-child(even) { width: 10%; text-align: right; white-space: nowrap; border-right: 1px solid #dcdcde; }
.twk-cost-table th:last-child, .twk-cost-table td:last-child { border-right: 0; }
.twk-table.twk-cost-table--colors thead th.twk-cc1 { background: var(--twk-green-text); color: #fff; }
.twk-table.twk-cost-table--colors thead th.twk-cc2 { background: var(--twk-blue); color: #fff; }
.twk-table.twk-cost-table--colors thead th.twk-cc3 { background: var(--twk-lime); color: #1d2327; }
.twk-table.twk-cost-table--colors thead th.twk-cc4 { background: var(--twk-magenta); color: #fff; }
.twk-table.twk-cost-table--colors td.twk-cc1 { background: #e8f6ee; }
.twk-table.twk-cost-table--colors td.twk-cc2 { background: #e7f1fa; }
.twk-table.twk-cost-table--colors td.twk-cc3 { background: #f2f9e9; }
.twk-table.twk-cost-table--colors td.twk-cc4 { background: #fde8f4; }
.twk-cost-table--colors td.num { font-weight: 600; }
.twk-modfee-table { margin: 8px 0; }
.twk-modfee-cos { max-height: 460px; overflow: auto; margin-bottom: 12px; }
.twk-modfee-cos thead th { position: sticky; top: 0; background: #fff; z-index: 1; }
.twk-modfee-users { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 16px; align-items: start; margin: 8px 0 12px; }
@media (max-width: 900px) { .twk-modfee-users { grid-template-columns: 1fr; } }
.twk-modfee-preview { background: #e8f6ee; border-left: 4px solid var(--twk-green); padding: 8px 12px; border-radius: 4px; }
.twk-modfee-pick select { min-width: 280px; max-width: 100%; }
.twk-costs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .twk-costs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.twk-cost-card { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid #dcdcde; border-top: 4px solid var(--twk-green-text); border-radius: 6px; background: #e8f6ee; }
.twk-cost-card.twk-cc2 { border-top-color: var(--twk-blue); background: #e7f1fa; }
.twk-cost-card.twk-cc3 { border-top-color: var(--twk-lime); background: #f2f9e9; }
.twk-cost-card.twk-cc4 { border-top-color: var(--twk-magenta); background: #fde8f4; }
.twk-cost-card__name { line-height: 1.3; }
.twk-cost-card__edit { display: flex; gap: 6px; align-items: center; }
.twk-wrap .twk-cost-card input[type], .twk-portal .twk-cost-card input[type] { width: 80px; }
.twk-modfee-scroll { max-height: none; overflow-x: auto; }
.twk-modfee-tiers th, .twk-modfee-tiers td { white-space: normal; }
.twk-wrap .twk-modfee-tiers input[type], .twk-portal .twk-modfee-tiers input[type] { width: 100%; min-width: 64px; max-width: 120px; }
.twk-modfee-tiers th.twk-modfee-test, .twk-modfee-tiers td:nth-child(n+5) { background: #e7f1fa; }
.twk-modcost-table { margin: 4px 0 12px; }
.twk-modcost-table td.num, .twk-modcost-table th.num { text-align: right; white-space: nowrap; width: 22%; }
.twk-cost-money { display: inline-block; font-size: 13px; font-weight: 600; color: var(--twk-green-dark); white-space: nowrap; }
.twk-cost-scroll thead th, .twk-ledger-scroll thead th { position: sticky; top: 0; background: #fff; z-index: 1; }
.twk-ledger-scroll { max-height: calc(10 * 2.6em + 2.8em); overflow-y: auto; width: 100%; }
.twk-ledger-scroll table { width: 100%; }
.twk-ledger-scroll td { height: 2.6em; box-sizing: border-box; }

/* 0.72.6: Saldos del administrador — selector a la izquierda, saldo bajo a la derecha. */
.twk-bal-split { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(300px, 1fr); gap: 24px; align-items: start; margin-bottom: 16px; }
.twk-bal-result { font-size: 1.15em; margin-top: 8px; }
.twk-bal-low h3 { margin-top: 0; }
.twk-low-scroll { max-height: calc(10 * 2.6em + 2.8em); overflow-y: auto; }
.twk-low-scroll td { height: 2.6em; box-sizing: border-box; }
.twk-low-scroll thead th { position: sticky; top: 0; background: #fff; z-index: 1; }
@media (max-width: 960px) { .twk-bal-split { grid-template-columns: 1fr; } }

/* 0.74.0 · Capacitación y desarrollo: matriz de competencias. */
.twk-cd-matrix-wrap { overflow-x: auto; }
.twk-cd-matrix th[scope="row"] { white-space: nowrap; vertical-align: top; }
.twk-cd-matrix td { vertical-align: top; min-width: 200px; }
.twk-cd-cell { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 2px 4px; border-radius: 4px; font-size: 12px; }
.twk-cd-cell select { font-size: 12px; min-height: 26px; padding: 0 20px 0 4px; }
.twk-cd-cell.is-on { background: var(--twk-success-bg); }
.twk-cd-model td { vertical-align: top; }
/* 0.75.0: formularios horizontales del módulo. */
.twk-cd-row { display: grid; gap: 12px; }
.twk-cd-row--3 { grid-template-columns: minmax(200px, 1fr) 2fr 100px; }
.twk-cd-row--4 { grid-template-columns: repeat(4, 1fr); }
.twk-cd-hform textarea, .twk-cd-hform input[type=text], .twk-cd-hform select { width: 100%; }
select.twk-cd-multi, .twk-portal select.twk-cd-multi { display: block; width: 100% !important; max-width: none !important; height: 360px !important; min-height: 360px; padding: 4px; line-height: 1.6; }
select.twk-cd-multi option { padding: 4px 6px; }
@media (max-width: 960px) { .twk-cd-row--3, .twk-cd-row--4 { grid-template-columns: 1fr; } }
/* 0.75.2: acomodo horizontal y listas con scroll (se ven al menos 5 renglones). */
.twk-cd-cols { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 20px; align-items: start; }
.twk-cd-stack > .twk-panel { margin-bottom: 20px; }
.twk-cd-side { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; align-items: start; }
.twk-cd-scroll { max-height: 330px; overflow-y: auto; border: 1px solid var(--twk-line); border-radius: 4px; }
.twk-cd-scroll--lg { max-height: 520px; }
.twk-cd-scroll thead th { position: sticky; top: 0; background: #fff; z-index: 1; }
.twk-cd-row--name { grid-template-columns: 1fr 110px; }
.twk-cd-row--name3 { grid-template-columns: 1fr 1fr 90px; }
.twk-cd-row--std { grid-template-columns: 2fr 1fr; }
.twk-cd-hform input[type=number] { width: 100%; }
@media (max-width: 1200px) { .twk-cd-cols { grid-template-columns: 1fr; } .twk-cd-side { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .twk-cd-row--name, .twk-cd-row--name3, .twk-cd-row--std { grid-template-columns: 1fr; } }
/* 0.76.0: matriz de talento (9 cuadros). */
.twk-cd-9box { display: grid; grid-template-columns: 28px 1fr; grid-template-rows: 1fr auto; gap: 6px; }
.twk-cd-9box-y { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-weight: 600; color: var(--twk-muted, #646970); }
.twk-cd-9box-x { grid-column: 2; text-align: center; font-weight: 600; color: var(--twk-muted, #646970); }
.twk-cd-9box-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.twk-cd-box { border: 1px solid var(--twk-line); border-radius: 6px; padding: 10px 12px; min-height: 96px; background: #f6f7f7; }
.twk-cd-box--2, .twk-cd-box--3 { background: #fcf0f1; }
.twk-cd-box--4 { background: #fcf9e8; }
.twk-cd-box--5 { background: #edfaef; }
.twk-cd-box--6 { background: #d1f0d6; border-color: #68de7c; }
@media (max-width: 782px) { .twk-cd-9box-grid { grid-template-columns: 1fr; } }
/* 0.76.1: áreas y departamentos de un indicador. */
.twk-cd-span2 { grid-column: span 2; }
.twk-cd-checks { max-height: 230px; padding: 6px 10px; }
.twk-cd-check-area { padding: 4px 0; border-bottom: 1px solid var(--twk-line); }
.twk-cd-check-area:last-child { border-bottom: 0; }
.twk-cd-check-depts { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 4px 0 2px 24px; }
@media (max-width: 960px) { .twk-cd-span2 { grid-column: auto; } }
/* 0.76.2: matriz del plan anual. */
.twk-cd-scroll--xl { max-height: 640px; }
.twk-cd-plangrid th, .twk-cd-plangrid td { padding: 4px 6px; vertical-align: middle; }
.twk-cd-plangrid thead th { text-align: center; }
.twk-cd-plangrid th[scope="rowgroup"] { min-width: 180px; vertical-align: top; background: #fff; }
.twk-cd-plangrid-type th { background: var(--twk-success-bg, #edfaef); font-size: 13px; }
.twk-cd-plangrid-first td, .twk-cd-plangrid-first th { border-top: 2px solid var(--twk-line); }
.twk-cd-gsel { font-size: 12px; min-height: 26px; padding: 0 18px 0 4px; min-width: 74px; }
.twk-cd-gsel.is-curso { background-color: #d1f0d6; }
.twk-cd-gsel.is-refuerzo { background-color: #fcf9e8; }
/* 0.76.4: fórmula del indicador. */
.twk-cd-formula { border: 1px solid var(--twk-line); border-radius: 6px; padding: 10px 14px; margin: 6px 0 14px; }
.twk-cd-formula legend { padding: 0 6px; }
.twk-cd-formula-box { margin-top: 10px; }
.twk-cd-ftest { display: flex; flex-direction: column; gap: 6px; }
.twk-cd-fvar { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.twk-cd-fvar input { width: 120px; }
.twk-cd-fresult { font-size: 15px; margin: 8px 0 0; }
/* 0.77.0: pruebas de talento. */
.twk-cd-row--3eq { grid-template-columns: repeat(3, 1fr); }
.twk-cd-link { width: 100%; min-width: 220px; font-size: 12px; }
@media (max-width: 960px) { .twk-cd-row--3eq { grid-template-columns: 1fr; } }
/* 0.78.0: carga masiva de empleados. */
.twk-cd-imp td { padding: 3px 4px; vertical-align: top; }
.twk-cd-imp input[type=text], .twk-cd-imp input[type=email] { width: 100%; min-width: 110px; font-size: 13px; }
.twk-cd-imp tr.is-error td { background: #fcf0f1; }
.twk-cd-imp tr.is-dup td, .twk-cd-imp tr.is-skip td { background: #f6f7f7; color: #646970; }
.twk-cd-imp tr.is-existing td { background: #fcf9e8; }
.twk-cd-imp td:last-child { min-width: 200px; }
/* 0.78.2: captura directa de datos faltantes en Puestos. */
.twk-cd-miss { display: inline-block; font-size: 11px; font-weight: 600; color: #b32d2e; margin-bottom: 2px; }
.twk-cd-fill select, .twk-cd-fill textarea { width: 100%; min-width: 140px; font-size: 13px; }
.twk-cd-fill textarea { min-height: 44px; }
/* 0.79.0: Empleados, scroll de 7 renglones como máximo. */
.twk-cd-scroll--7 { max-height: 340px; }
.twk-cd-imp select { width: 100%; min-width: 140px; font-size: 13px; }
/* 0.79.2: carga masiva, renglones excluidos. */
.twk-cd-imp tr.is-off td { opacity: .55; }
/* 0.79.4: matriz, niveles propuestos en cascada. */
.twk-cd-cell.is-auto select { font-style: italic; border-style: dashed; }
/* 0.80.0: panel del administrador · ventas por cliente y mes + gráfica lineal. */
.twk-sales-grid-wrap { overflow: auto; max-height: 480px; border: 1px solid var(--twk-line); border-radius: 4px; }
.twk-sales-grid { border: 0; min-width: 1100px; }
.twk-sales-grid th, .twk-sales-grid td { white-space: nowrap; padding: 6px 8px; }
.twk-sales-grid thead th { position: sticky; top: 0; z-index: 2; background: #fff; }
.twk-sales-grid tfoot th { position: sticky; bottom: 0; z-index: 2; background: #f6f7f7; }
.twk-sales-grid .twk-sales-grid__client { position: sticky; left: 0; z-index: 1; background: #fff; min-width: 200px; max-width: 280px; white-space: normal; text-align: left; }
.twk-sales-grid thead .twk-sales-grid__client, .twk-sales-grid tfoot .twk-sales-grid__client { z-index: 3; }
.twk-sales-grid tfoot .twk-sales-grid__client { background: #f6f7f7; }
.twk-sales-grid .is-now { background: #f0f6fc; }
.twk-linechart { width: 100%; height: auto; max-height: 360px; display: block; }
.twk-linechart__grid { stroke: #dcdcde; stroke-width: 1; }
.twk-linechart__tick { font-size: 12px; fill: #646970; }
.twk-linechart__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 4px; font-size: 13px; }
.twk-linechart__key i { display: inline-block; width: 18px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
/* 0.81.0: Participantes › Asignar pruebas, scroll de máximo 10 renglones. */
.twk-assign-scroll { overflow-y: auto; border: 1px solid var(--twk-line); border-radius: 4px; }
/* 0.89.16: listados con máximo 7 renglones visibles (la altura exacta la fija admin.js). */
.twk-list-scroll { overflow: auto; max-height: 420px; border: 1px solid var(--twk-line); border-radius: 4px; margin-bottom: 8px; }
.twk-list-scroll > table { border: 0; margin: 0; }
.twk-list-scroll > table > thead th, .twk-list-scroll > table > thead td { position: sticky; top: 0; z-index: 1; background: #fff; }
.twk-assign-scroll table { border: 0; }
.twk-assign-scroll thead th, .twk-assign-scroll thead td { position: sticky; top: 0; z-index: 1; background: #fff; }
.twk-assign-scroll .twk-tests { margin: 0; }
/* 0.82.0: Matriz de talento TWK. */
.twk-cd-twkbox .twk-cd-box { min-height: 120px; border-width: 2px; }
.twk-cd-twkbox__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 15px; }
.twk-cd-twkbox__target { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 10px; background: rgba(255,255,255,.35); white-space: nowrap; }
.twk-cd-twkbox__axis { font-size: 11px; opacity: .85; margin: 2px 0 6px; }
.twk-cd-twkbox__count { font-size: 26px; font-weight: 700; line-height: 1.1; }
.twk-cd-twkbox__count span { font-size: 14px; font-weight: 600; opacity: .9; }
.twk-cd-twkbox__names { font-size: 12px; margin-top: 6px; opacity: .95; }
.twk-cd-twkdot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; border: 1px solid rgba(0,0,0,.15); }
/* 0.82.1: cuadros fuera del porcentaje óptimo. */
.twk-cd-twkbox__out { color: #b32d2e; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; background: #fff; padding: 0 6px; border-radius: 4px; }
.twk-cd-out { color: #b32d2e; text-decoration: underline; font-weight: 600; }

/* 0.82.5: banco de reactivos agrupado por competencia, 10 renglones visibles. */
.twk-cd-scroll--10 { max-height: 520px; }
.twk-cd-scroll .twk-cd-group th { background: #f0f6fc; color: #1d2327; font-weight: 600; border-top: 2px solid #2271b1; }
.twk-cd-scroll .twk-cd-group + tr td { border-top: 0; }
/* 0.82.7: selector de competencias de la prueba Potencial. */
.twk-cd-pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 16px; max-height: 320px; overflow-y: auto; border: 1px solid var(--twk-line); border-radius: 4px; padding: 8px 10px; margin-bottom: 10px; }
.twk-cd-pp-grid .twk-check { display: block; }
.twk-cd-pp-grid input:disabled + * { opacity: .6; }

/* 0.82.11: captura de potencial y desempeño con dos tipos de colaborador y scroll horizontal. */
.twk-cd-scroll--x { overflow-x: auto; }
.twk-cd-capture { min-width: 1250px; }
.twk-cd-capture td, .twk-cd-capture th { white-space: nowrap; }
.twk-cd-capture td .twk-small { white-space: normal; }
.twk-cd-twktag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-weight: 600; font-size: 12px; }
/* 0.82.16: analizador de reactivos. */
.twk-cd-an { display: inline-block; padding: 0 6px; border-radius: 8px; font-size: 11px; font-weight: 600; line-height: 18px; vertical-align: middle; }
.twk-cd-an--error { background: #fcf0f1; color: #b32d2e; border: 1px solid #f0b8b8; }
.twk-cd-an--warn { background: #fcf9e8; color: #8a6d00; border: 1px solid #f0d878; }
.twk-cd-an-comps { margin: 0 0 10px 18px; list-style: disc; }

/* 0.82.17: formulario de reactivo con la situación o afirmación a todo el ancho. */
.twk-cd-full { width: 100%; margin: 10px 0; }
.twk-cd-full textarea { width: 100%; min-height: 90px; box-sizing: border-box; }
.twk-cd-row--2eq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.twk-cd-row--2eq textarea { width: 100%; box-sizing: border-box; }
@media (max-width: 782px) { .twk-cd-row--2eq { grid-template-columns: 1fr; } }
/* 0.82.19: propuesta corregida al editar un reactivo. */
.twk-cd-proposal { margin-top: 6px; padding: 8px 10px; background: #f4f8f6; border: 1px dashed #00a651; border-radius: 4px; }
.twk-cd-proposal textarea { width: 100%; box-sizing: border-box; background: #fff; color: #1d2327; }

/* 0.82.21: etiqueta de peligro para reactivos autorizados con falla lógica. */
.twk-cd-an--auth { background: #d63638; color: #fff; border: 1px solid #b32d2e; }
.twk-cd-logicok { margin: 8px 0 12px; padding: 8px 10px; background: #fcf0f1; border-left: 4px solid #d63638; }

/* 0.82.22: balanceo de claves. */
.twk-cd-balance { margin: 4px 0 8px; }
.twk-cd-balance details summary { cursor: pointer; color: #0f75bd; }

/* 0.82.34: armado del Desempeño 360° (competencias en 4 columnas con peso). */
.twk-cd-360-box { max-height: 420px; overflow-y: auto; border: 1px solid var(--twk-line); border-radius: 4px; padding: 4px 10px 10px; margin-bottom: 10px; }
.twk-cd-360-g { margin: 10px 0 4px; }
.twk-cd-360-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 14px; }
.twk-cd-360-c { display: flex; justify-content: space-between; align-items: center; gap: 6px; border: 1px solid var(--twk-line); border-radius: 4px; padding: 4px 6px; font-size: 13px; }
.twk-cd-360-c:has(input[type=checkbox]:checked) { border-color: var(--twk-success); background: var(--twk-success-bg); }
.twk-cd-360-c.is-off { opacity: .55; }
.twk-cd-360-c .small-text { width: 64px; }
.twk-cd-360 .twk-ok { color: var(--twk-success); }
.twk-cd-360 .twk-bad { color: var(--twk-danger); }
.twk-nowrap { white-space: nowrap; }
@media (max-width: 1200px) { .twk-cd-360-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .twk-cd-360-grid { grid-template-columns: 1fr; } }
