/* TWK Evaluaciones — sistema visual común (0.62.0).
 * Variables de marca, tipografía, espacios, bordes y componentes compartidos por
 * admin.css (escritorio), portal.css (portal de clientes) y public.css (candidato).
 * Todo va dentro de los contenedores del plugin para no afectar al tema ni a otros
 * plugins del sitio (p. ej., TWK-BC Training). */

.twk-wrap, .twk-portal, .twk-pub, .twk-scope {
	/* Marca (logotipo TWK) */
	--twk-green: #00a651;        /* barras, bordes, gráficas */
	--twk-green-text: #00803e;   /* botones y texto verde (contraste 5:1) */
	--twk-green-dark: #006b34;   /* hover de botones, texto de éxito */
	--twk-lime: #8dc63f;
	--twk-blue: #0f75bd;         /* enlaces, información */
	--twk-blue-dark: #0b5f9a;
	--twk-magenta: #ec008c;      /* solo acento */

	/* Neutros */
	--twk-ink: #1d2327;
	--twk-ink-2: #3c434a;
	--twk-muted: #5f6368;
	--twk-muted-2: #8c8f94;      /* borde de campos */
	--twk-line: #dfe3e1;
	--twk-line-soft: #e2e5e3;
	--twk-line-strong: #c3c8c5;
	--twk-soft: #f4f8f6;         /* fondos suaves de bloque */
	--twk-bg: #f4f6f5;           /* fondo de página del portal */
	--twk-neutral-bg: #f0f0f1;
	--twk-track: #eef0ef;        /* pista de barras */
	--twk-field-bg: #fafafa;
	--twk-surface: #fff;

	/* Estados */
	--twk-success: #006b34;
	--twk-success-bg: #e6f6ec;
	--twk-success-soft: #eef8f1;
	--twk-success-line: #bfe6cd;
	--twk-info: #0b5f9a;
	--twk-info-bg: #eef5fb;
	--twk-info-soft: #f4f8fb;
	--twk-info-line: #cfe3f3;
	--twk-info-line-strong: #9ec5e6;
	--twk-warning: #7a5600;
	--twk-warning-bg: #fff4d6;
	--twk-warning-soft: #fff8e5;
	--twk-warning-line: #f0d58c;
	--twk-warning-accent: #f2a900;
	--twk-danger: #b32d2e;
	--twk-danger-accent: #d63638;
	--twk-danger-bg: #fde7e9;
	--twk-danger-soft: #fdf0f0;
	--twk-danger-line: #f0b8b8;

	/* Factores DISC */
	--twk-d: var(--twk-magenta);
	--twk-i: var(--twk-lime);
	--twk-s: var(--twk-green);
	--twk-c: var(--twk-blue);

	/* Tipografía */
	--twk-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--twk-font-mono: Menlo, Consolas, monospace;
	--twk-fs-xs: 11px;
	--twk-fs-sm: 12px;
	--twk-fs-md: 13px;
	--twk-fs-base: 14px;
	--twk-fs-lg: 16px;
	--twk-fs-xl: 22px;

	/* Espacios */
	--twk-sp-1: 4px;
	--twk-sp-2: 8px;
	--twk-sp-3: 12px;
	--twk-sp-4: 16px;
	--twk-sp-5: 24px;
	--twk-sp-6: 32px;

	/* Bordes */
	--twk-r-sm: 4px;             /* controles */
	--twk-r-md: 6px;             /* paneles */
	--twk-r-lg: 10px;            /* tarjetas grandes */
	--twk-r-pill: 999px;         /* insignias */
	--twk-shadow: 0 4px 14px rgba(0, 0, 0, .1);
}

/* ---------- Botones (escritorio y portal) ---------- */
.twk-wrap .button.button-primary, .twk-portal .button.button-primary,
.twk-portal button.button.button-primary, .twk-portal input.button.button-primary {
	background: var(--twk-green-text); border-color: var(--twk-green-text); color: #fff;
}
.twk-wrap .button.button-primary:hover, .twk-wrap .button.button-primary:focus,
.twk-portal .button.button-primary:hover, .twk-portal .button.button-primary:focus {
	background: var(--twk-green-dark); border-color: var(--twk-green-dark); color: #fff;
}
.twk-wrap .button.button-primary:focus, .twk-portal .button.button-primary:focus { box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--twk-green-text); }
.twk-wrap .button:not(.button-primary):not(.twk-btn-danger):not(.button-link):not(.wp-color-result) { color: var(--twk-green-text); border-color: var(--twk-green-text); }
.twk-wrap .button:not(.button-primary):not(.twk-btn-danger):not(.button-link):not(.wp-color-result):hover { background: var(--twk-success-soft); color: var(--twk-green-dark); border-color: var(--twk-green-dark); }
.twk-wrap .button.twk-btn-danger, .twk-wrap .twk-btn-danger { background: #fff; color: var(--twk-danger); border: 1px solid var(--twk-danger); }
.twk-wrap .button.twk-btn-danger:hover { background: var(--twk-danger); color: #fff; }

/* ---------- Avisos ---------- */
.twk-wrap .notice-success, .twk-portal .notice-success { border-left-color: var(--twk-green); }
.twk-wrap .notice-info, .twk-portal .notice-info { border-left-color: var(--twk-blue); }
.twk-wrap .notice-warning, .twk-portal .notice-warning { border-left-color: var(--twk-warning-accent); }
.twk-wrap .notice-error, .twk-portal .notice-error { border-left-color: var(--twk-danger-accent); }
.twk-callout { border-left: 4px solid var(--twk-blue); background: var(--twk-info-bg); color: var(--twk-info); padding: 10px 12px; margin: 8px 0; }
.twk-callout--success { border-left-color: var(--twk-green); background: var(--twk-success-bg); color: var(--twk-success); }
.twk-callout--warning { border-left-color: var(--twk-warning-accent); background: var(--twk-warning-soft); color: var(--twk-warning); }
.twk-callout--danger { border-left-color: var(--twk-danger); background: var(--twk-danger-bg); color: var(--twk-danger); }

/* ---------- Tablas ---------- */
.twk-wrap table.widefat thead th, .twk-portal table.widefat thead th { border-bottom: 2px solid var(--twk-green); background: var(--twk-soft); }

/* ---------- Utilidades (sustituyen estilos escritos en el PHP) ---------- */
.twk-w-100 { width: 100%; }
.twk-w-12 { width: 12%; } .twk-w-14 { width: 14%; } .twk-w-15 { width: 15%; } .twk-w-16 { width: 16%; }
.twk-w-18 { width: 18%; } .twk-w-20 { width: 20%; } .twk-w-22 { width: 22%; } .twk-w-30 { width: 30%; }
.twk-w-36 { width: 36%; } .twk-w-40 { width: 40%; }
.twk-w-28px { width: 28px; } .twk-w-60px { width: 60px; } .twk-w-70px { width: 70px; }
.twk-maxw-360 { max-width: 360px; } .twk-maxw-560 { max-width: 560px; }
.twk-left { text-align: left; } .twk-center { text-align: center; }
.twk-bold { font-weight: 700; } .twk-regular { font-weight: 400; }
.twk-fs-85 { font-size: .85em; } .twk-fs-86 { font-size: .86em; } .twk-fs-88 { font-size: .88em; }
.twk-text-danger { color: var(--twk-danger); }
/* Barras con ancho y color calculados: el PHP solo pasa --w y --c. */
.twk-fill { display: block; height: 100%; width: var(--w, 0); background: var(--c, var(--twk-green)); }
.twk-dyn-color { color: var(--c, inherit); }
.twk-dyn-bg { background: var(--c, transparent); }

/* Código de verificación en dos pasos */
.twk-otp { font-size: 22px; letter-spacing: 6px; text-align: center; }

/* Verificación de cálculos (Diagnóstico) */
.twk-verify-sum { padding: 10px 14px; border-radius: var(--twk-r-md); font-weight: 600; background: var(--twk-success-bg); color: var(--twk-success); }
.twk-verify-sum.is-bad { background: var(--twk-danger-soft); color: var(--twk-danger); }
.twk-verify-row { box-shadow: inset 4px 0 0 var(--c, var(--twk-green)); }
.twk-verify-icon { width: 28px; font-size: 16px; color: var(--c, var(--twk-green)); }
.twk-verify-fail { color: var(--twk-danger); }
.twk-w-150px { width: 150px; } .twk-w-64px { width: 64px; } .twk-w-80px { width: 80px; } .twk-w-90px { width: 90px; } .twk-w-110px { width: 110px; }
.twk-mt-3 { margin-top: 3px; } .twk-mt-12 { margin-top: 12px; }
.twk-va-middle { vertical-align: middle; }
.twk-mark-ok { color: var(--twk-green); } .twk-mark-bad { color: var(--twk-danger-accent); }
/* Barras: el ancho llega como --w desde el PHP. */
.twk-bar > span, .twk-mbar > span { width: var(--w, 0); }
.twk-mbar > span.twk-mbar-alt { background: var(--twk-info-line-strong); }
.twk-verify-group { margin: 18px 0 6px; }
.twk-verify-icon.is-bad, .twk-verify-row.is-bad { --c: var(--twk-danger-accent); }
