/* GCDC Panel de Marketing — estilos del admin */

/* Montserrat autohospedada (sin depender de Google Fonts en tiempo de
   ejecución): los .woff2 viven en assets/fonts/. Solo se usa en el panel
   de front-end (.gcdcm-front); wp-admin sigue con la tipografía del core. */
@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/montserrat-400.woff2") format("woff2");
}

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/montserrat-500.woff2") format("woff2");
}

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/montserrat-600.woff2") format("woff2");
}

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/montserrat-700.woff2") format("woff2");
}

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("../fonts/montserrat-800.woff2") format("woff2");
}

.gcdcm-wrap {
	--gcdcm-ok: #00a32a;
	--gcdcm-ok-bg: #edfaef;
	--gcdcm-atencion: #b45f06;
	--gcdcm-atencion-bg: #fdf3e2;
	--gcdcm-critico: #d63638;
	--gcdcm-critico-bg: #fbeaea;
	--gcdcm-info: #2271b1;
	--gcdcm-info-bg: #edf4fb;
	--gcdcm-neutro: #50575e;
	--gcdcm-neutro-bg: #f0f0f1;
	--gcdcm-border: #dcdcde;
	--gcdcm-radius: 6px;

	max-width: 1200px;
}

.gcdcm-wrap h1 {
	display: flex;
	align-items: center;
	gap: 0.5em;
}

.gcdcm-wrap h1 .page-title-action,
.gcdcm-wrap h2 .page-title-action,
.gcdcm-wrap h3 .page-title-action {
	margin-left: 0.5em;
	font-size: 0.6em;
	vertical-align: middle;
}

.gcdcm-wrap h2 {
	margin-top: 2.5em;
	margin-bottom: 0.75em;
	padding-bottom: 0.4em;
	border-bottom: 1px solid var(--gcdcm-border);
	font-size: 1.2em;
}

.gcdcm-wrap > p.description {
	font-size: 14px;
	max-width: 70ch;
}

/* Layout */

.gcdcm-wrap .gcdcm-two-columns {
	display: flex;
	gap: 2em;
	flex-wrap: wrap;
	align-items: flex-start;
}

.gcdcm-wrap .gcdcm-two-columns > div {
	flex: 1;
	min-width: 280px;
}

.gcdcm-wrap .gcdcm-panel {
	background: #fff;
	border: 1px solid var(--gcdcm-border);
	border-radius: var(--gcdcm-radius);
	padding: 1.25em 1.5em;
	margin-bottom: 1.5em;
}

/* Cards de resumen */

.gcdcm-wrap .gcdcm-cards {
	display: flex;
	gap: 1em;
	flex-wrap: wrap;
	margin: 1em 0 0.5em;
}

.gcdcm-wrap .gcdcm-card {
	background: #fff;
	border: 1px solid var(--gcdcm-border);
	border-top: 3px solid var(--gcdcm-neutro);
	border-radius: var(--gcdcm-radius);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	padding: 1em 1.25em;
	min-width: 160px;
	flex: 1;
	transition: box-shadow 0.15s ease;
}

.gcdcm-wrap .gcdcm-card:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gcdcm-wrap .gcdcm-card-ok {
	border-top-color: var(--gcdcm-ok);
}

.gcdcm-wrap .gcdcm-card-atencion {
	border-top-color: var(--gcdcm-atencion);
}

.gcdcm-wrap .gcdcm-card-critico {
	border-top-color: var(--gcdcm-critico);
}

.gcdcm-wrap .gcdcm-card-value {
	font-size: 2em;
	font-weight: 600;
	line-height: 1.2;
	color: #1d2327;
}

.gcdcm-wrap .gcdcm-card-label {
	color: var(--gcdcm-neutro);
	font-size: 0.95em;
	margin-top: 0.15em;
}

/* Badges de estado / prioridad / severidad */

.gcdcm-wrap .gcdcm-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	padding: 0.2em 0.7em;
	border-radius: 999px;
	font-size: 0.9em;
	font-weight: 500;
	line-height: 1.6;
	white-space: nowrap;
}

.gcdcm-wrap .gcdcm-badge-ok {
	background: var(--gcdcm-ok-bg);
	color: var(--gcdcm-ok);
}

.gcdcm-wrap .gcdcm-badge-atencion {
	background: var(--gcdcm-atencion-bg);
	color: var(--gcdcm-atencion);
}

.gcdcm-wrap .gcdcm-badge-critico {
	background: var(--gcdcm-critico-bg);
	color: var(--gcdcm-critico);
}

.gcdcm-wrap .gcdcm-badge-info {
	background: var(--gcdcm-info-bg);
	color: var(--gcdcm-info);
}

.gcdcm-wrap .gcdcm-badge-neutro {
	background: var(--gcdcm-neutro-bg);
	color: var(--gcdcm-neutro);
}

/* Evolución (historial de cumplimiento) */

.gcdcm-wrap .gcdcm-history {
	font-size: 1.5em;
	letter-spacing: 0.15em;
	background: #fff;
	border: 1px solid var(--gcdcm-border);
	border-radius: var(--gcdcm-radius);
	padding: 0.75em 1em;
	display: inline-block;
}

/* Filtros */

.gcdcm-wrap .gcdcm-filters {
	display: flex;
	gap: 0.6em;
	flex-wrap: wrap;
	align-items: center;
	background: #f6f7f7;
	border: 1px solid var(--gcdcm-border);
	border-radius: var(--gcdcm-radius);
	padding: 0.85em 1em;
	margin: 1em 0 1.5em;
}

.gcdcm-wrap .gcdcm-filters select,
.gcdcm-wrap .gcdcm-filters input[type="date"] {
	min-height: 32px;
}

.gcdcm-wrap .gcdcm-filters a {
	margin-left: 0.25em;
	white-space: nowrap;
}

.gcdcm-wrap .gcdcm-inline-form {
	margin: 1em 0 2em;
	display: flex;
	gap: 0.5em;
	flex-wrap: wrap;
	align-items: center;
}

/* Tablas */

.gcdcm-wrap table.widefat {
	border-radius: var(--gcdcm-radius);
	overflow: hidden;
	border-color: var(--gcdcm-border);
}

.gcdcm-wrap table.widefat thead th {
	background: #f6f7f7;
}

.gcdcm-wrap table.widefat tbody tr:hover {
	background: #f6f8fb;
}

.gcdcm-wrap table.widefat td,
.gcdcm-wrap table.widefat th {
	padding: 0.85em 1em;
	vertical-align: middle;
}

/* Comentarios */

.gcdcm-wrap .gcdcm-comments {
	list-style: none;
	margin: 0 0 1em;
	padding: 0;
}

.gcdcm-wrap .gcdcm-comments li {
	background: #fff;
	border: 1px solid var(--gcdcm-border);
	border-radius: var(--gcdcm-radius);
	padding: 0.85em 1em;
	margin-bottom: 0.6em;
}

.gcdcm-wrap .gcdcm-comments .description {
	color: var(--gcdcm-neutro);
	font-size: 0.9em;
}

.gcdcm-wrap .gcdcm-extras-form {
	margin: 0.5em 0 2em;
}

.gcdcm-wrap .gcdcm-extras-form textarea {
	width: 100%;
	max-width: 640px;
}

/* Notices propios (panel del líder) */

.gcdcm-wrap .notice {
	border-radius: var(--gcdcm-radius);
}

/* Responsive */

@media (max-width: 782px) {
	.gcdcm-wrap .gcdcm-cards {
		flex-direction: column;
	}

	.gcdcm-wrap .gcdcm-card {
		min-width: 0;
	}

	.gcdcm-wrap .gcdcm-two-columns {
		flex-direction: column;
	}

	.gcdcm-wrap .gcdcm-filters {
		flex-direction: column;
		align-items: stretch;
	}

	.gcdcm-wrap .gcdcm-filters select,
	.gcdcm-wrap .gcdcm-filters input {
		width: 100%;
	}
}

/* ==================================================================== */
/* FRONT-END: [gcdc_panel] — interfaz principal del plugin.              */
/* Corre dentro de un Shadow DOM (ver class-gcdcm-front.php), así que      */
/* esta es la ÚNICA hoja de estilos que aplica acá adentro: el tema del   */
/* sitio no puede tocar nada de esto, y esto no puede tocar nada del      */
/* sitio. Sistema de diseño propio, sin depender de las clases de         */
/* wp-admin (aunque se reutilizan los mismos nombres de clase que ya usa  */
/* el PHP: widefat, form-table, button, notice, etc.).                    */
/* ==================================================================== */

.gcdcm-front {
	/* Colores de marca: navy #00243C, verde #38AC6A, blanco, negro, gris #EDEDED. */
	--gcdcm-navy: #00243c;
	--gcdcm-navy-light: #e3e9ed;
	--gcdcm-primary: #38ac6a;
	--gcdcm-primary-dark: #2c8a55;
	--gcdcm-primary-light: #e8f5ee;
	--gcdcm-bg: #ededed;
	--gcdcm-surface: #ffffff;
	--gcdcm-text: #14181c;
	--gcdcm-text-muted: rgba(20, 24, 28, 0.6);
	--gcdcm-border-soft: #dcdcdc;
	--gcdcm-sidebar-bg: var(--gcdcm-navy);
	--gcdcm-sidebar-text: #ffffff;
	--gcdcm-sidebar-text-muted: rgba(255, 255, 255, 0.65);
	--gcdcm-radius-sm: 6px;
	--gcdcm-radius-md: 10px;
	--gcdcm-radius-lg: 14px;
	--gcdcm-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--gcdcm-shadow-md: 0 6px 20px rgba(0, 0, 0, 0.07);

	/* Semántica de estado: se mantiene distinguible (rojo/ámbar/verde), el
	   "ok" usa directamente el verde de marca para no sumar otro tono. */
	--gcdcm-ok: var(--gcdcm-primary-dark);
	--gcdcm-ok-bg: var(--gcdcm-primary-light);
	--gcdcm-atencion: #9a6b00;
	--gcdcm-atencion-bg: #f7f2e2;
	--gcdcm-critico: #a4272c;
	--gcdcm-critico-bg: #f6e6e6;
	--gcdcm-info: var(--gcdcm-navy);
	--gcdcm-info-bg: var(--gcdcm-navy-light);
	--gcdcm-neutro: var(--gcdcm-text-muted);
	--gcdcm-neutro-bg: #e8e8e8;
	--gcdcm-border: var(--gcdcm-border-soft);

	box-sizing: border-box;
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-weight: 400;
	font-size: 15px;
	line-height: 1.6;
	color: var(--gcdcm-text);
	background: var(--gcdcm-bg);
	max-width: 100%;
	-webkit-font-smoothing: antialiased;
}

.gcdcm-front *,
.gcdcm-front *::before,
.gcdcm-front *::after {
	box-sizing: inherit;
}

.gcdcm-front h2,
.gcdcm-front h3 {
	letter-spacing: -0.01em;
	color: var(--gcdcm-text);
}

.gcdcm-front h2 {
	font-size: 1.5em;
	font-weight: 700;
	margin: 0 0 0.9em;
	padding-bottom: 0;
	border-bottom: none;
}

.gcdcm-front h3 {
	margin-top: 2.2em;
	margin-bottom: 0.7em;
	font-size: 1.05em;
	font-weight: 600;
}

.gcdcm-front a {
	color: var(--gcdcm-primary);
	text-decoration: none;
}

.gcdcm-front a:hover {
	text-decoration: underline;
}

.gcdcm-front .description {
	color: var(--gcdcm-text-muted);
	font-size: 0.92em;
}

/* -------------------------------------------------------------- */
/* Pantalla de login                                                */
/* -------------------------------------------------------------- */

.gcdcm-front .gcdcm-login-screen {
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2em 1em;
}

.gcdcm-front .gcdcm-login-card {
	background: var(--gcdcm-surface);
	border-radius: var(--gcdcm-radius-lg);
	box-shadow: var(--gcdcm-shadow-md);
	padding: 2.5em 2.5em 2em;
	max-width: 380px;
	width: 100%;
	text-align: center;
}

.gcdcm-front .gcdcm-login-card h1 {
	font-size: 1.3em;
	font-weight: 700;
	margin: 0.3em 0 0.2em;
}

.gcdcm-front .gcdcm-login-card .gcdcm-brand-mark {
	width: 3.2em;
	height: 3.2em;
	margin: 0 auto 0.3em;
	border-radius: var(--gcdcm-radius-md);
}

.gcdcm-front .gcdcm-login-card .gcdcm-brand-mark svg {
	width: 1.7em;
	height: 1.7em;
}

.gcdcm-front .gcdcm-login-card form {
	text-align: left;
	margin-top: 1.5em;
}

.gcdcm-front #loginform p {
	margin: 0.9em 0;
}

.gcdcm-front #loginform label {
	display: block;
	font-weight: 600;
	font-size: 0.9em;
	margin-bottom: 0.35em;
}

.gcdcm-front #loginform input[type="text"],
.gcdcm-front #loginform input[type="password"] {
	width: 100%;
}

.gcdcm-front #wp-submit {
	width: 100%;
	justify-content: center;
	margin-top: 0.5em;
}

/* -------------------------------------------------------------- */
/* Estructura general: sidebar + contenido                          */
/* -------------------------------------------------------------- */

.gcdcm-front .gcdcm-shell {
	display: flex;
	align-items: stretch;
	min-height: 640px;
	border-radius: var(--gcdcm-radius-lg);
	overflow: hidden;
	box-shadow: var(--gcdcm-shadow-md);
	position: relative;
}

.gcdcm-front .gcdcm-sidebar {
	flex: 0 0 240px;
	background: var(--gcdcm-sidebar-bg);
	color: var(--gcdcm-sidebar-text);
	padding: 1.5em 1em;
	display: flex;
	flex-direction: column;
	gap: 1.5em;
}

.gcdcm-front .gcdcm-brand {
	display: flex;
	align-items: center;
	gap: 0.6em;
	padding: 0 0.5em;
}

.gcdcm-front .gcdcm-brand-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.1em;
	height: 2.1em;
	flex-shrink: 0;
	border-radius: var(--gcdcm-radius-sm);
	background: var(--gcdcm-primary);
	color: #fff;
}

.gcdcm-front .gcdcm-brand-text {
	font-weight: 800;
	color: #fff;
	font-size: 1.02em;
	letter-spacing: -0.01em;
}

.gcdcm-front .gcdcm-tabs {
	display: flex;
	flex-direction: column;
	gap: 0.15em;
	flex: 1;
	overflow-y: auto;
}

.gcdcm-front .gcdcm-tabs a {
	display: flex;
	align-items: center;
	gap: 0.75em;
	padding: 0.65em 0.75em;
	border-radius: var(--gcdcm-radius-sm);
	color: var(--gcdcm-sidebar-text);
	font-weight: 500;
	font-size: 0.94em;
	border-left: 3px solid transparent;
}

.gcdcm-front .gcdcm-tabs a:hover {
	background: rgba(255, 255, 255, 0.06);
	text-decoration: none;
	color: #fff;
}

.gcdcm-front .gcdcm-tabs a.is-active {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-weight: 600;
	border-left-color: var(--gcdcm-primary);
}

.gcdcm-front .gcdcm-tab-icon {
	font-size: 1.1em;
	line-height: 1;
	width: 1.3em;
	text-align: center;
	flex-shrink: 0;
}

.gcdcm-front .gcdcm-user-chip {
	display: flex;
	align-items: center;
	gap: 0.6em;
	padding: 0.6em 0.5em;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gcdcm-front .gcdcm-user-avatar {
	width: 2em;
	height: 2em;
	border-radius: 999px;
	background: var(--gcdcm-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	flex-shrink: 0;
}

.gcdcm-front .gcdcm-user-name {
	font-size: 0.88em;
	color: var(--gcdcm-sidebar-text-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gcdcm-front .gcdcm-main {
	flex: 1;
	min-width: 0;
	background: var(--gcdcm-bg);
	padding: 2em 2.25em;
	overflow-x: hidden;
}

.gcdcm-front .gcdcm-menu-toggle {
	display: none;
}

/* -------------------------------------------------------------- */
/* Estado vacío                                                     */
/* -------------------------------------------------------------- */

.gcdcm-front .gcdcm-empty-state {
	text-align: center;
	padding: 3em 1.5em;
	color: var(--gcdcm-text-muted);
}

.gcdcm-front .gcdcm-empty-icon {
	font-size: 2em;
	margin-bottom: 0.4em;
}

/* -------------------------------------------------------------- */
/* Cards de resumen                                                 */
/* -------------------------------------------------------------- */

.gcdcm-front .gcdcm-cards {
	display: flex;
	gap: 1em;
	flex-wrap: wrap;
	margin: 0 0 0.5em;
}

.gcdcm-front .gcdcm-card {
	background: var(--gcdcm-surface);
	border: 1px solid var(--gcdcm-border-soft);
	border-radius: var(--gcdcm-radius-md);
	box-shadow: var(--gcdcm-shadow-sm);
	padding: 1.1em 1.3em;
	min-width: 160px;
	flex: 1;
	position: relative;
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gcdcm-front .gcdcm-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--gcdcm-text-muted);
	opacity: 0.35;
}

.gcdcm-front .gcdcm-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--gcdcm-shadow-md);
}

.gcdcm-front .gcdcm-card-ok::before {
	background: var(--gcdcm-ok);
	opacity: 1;
}

.gcdcm-front .gcdcm-card-atencion::before {
	background: var(--gcdcm-atencion);
	opacity: 1;
}

.gcdcm-front .gcdcm-card-critico::before {
	background: var(--gcdcm-critico);
	opacity: 1;
}

.gcdcm-front .gcdcm-card-value {
	font-size: 2em;
	font-weight: 700;
	line-height: 1.2;
	color: var(--gcdcm-text);
}

.gcdcm-front .gcdcm-card-label {
	color: var(--gcdcm-text-muted);
	font-size: 0.9em;
	margin-top: 0.2em;
}

/* -------------------------------------------------------------- */
/* Paneles/cards de contenido                                       */
/* -------------------------------------------------------------- */

.gcdcm-front .gcdcm-panel {
	background: var(--gcdcm-surface);
	border: 1px solid var(--gcdcm-border-soft);
	border-radius: var(--gcdcm-radius-md);
	box-shadow: var(--gcdcm-shadow-sm);
	padding: 1.5em 1.75em;
	margin-bottom: 1.75em;
}

.gcdcm-front .gcdcm-two-columns {
	display: flex;
	gap: 1.5em;
	flex-wrap: wrap;
	align-items: flex-start;
}

.gcdcm-front .gcdcm-two-columns > div {
	flex: 1;
	min-width: 280px;
}

/* -------------------------------------------------------------- */
/* Badges                                                           */
/* -------------------------------------------------------------- */

.gcdcm-front .gcdcm-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	padding: 0.25em 0.75em;
	border-radius: 999px;
	font-size: 0.85em;
	font-weight: 600;
	line-height: 1.6;
	white-space: nowrap;
}

/* -------------------------------------------------------------- */
/* Evolución (historial de cumplimiento)                            */
/* -------------------------------------------------------------- */

.gcdcm-front .gcdcm-history {
	font-size: 1.5em;
	letter-spacing: 0.15em;
	background: var(--gcdcm-surface);
	border: 1px solid var(--gcdcm-border-soft);
	border-radius: var(--gcdcm-radius-md);
	box-shadow: var(--gcdcm-shadow-sm);
	padding: 0.75em 1em;
	display: inline-block;
}

/* -------------------------------------------------------------- */
/* Filtros                                                          */
/* -------------------------------------------------------------- */

.gcdcm-front .gcdcm-filters {
	display: flex;
	gap: 0.6em;
	flex-wrap: wrap;
	align-items: center;
	background: var(--gcdcm-surface);
	border: 1px solid var(--gcdcm-border-soft);
	border-radius: var(--gcdcm-radius-md);
	box-shadow: var(--gcdcm-shadow-sm);
	padding: 0.9em 1.1em;
	margin: 0 0 1.5em;
}

.gcdcm-front .gcdcm-filters select,
.gcdcm-front .gcdcm-filters input[type="date"] {
	min-height: 34px;
}

.gcdcm-front .gcdcm-filters a {
	margin-left: 0.25em;
	white-space: nowrap;
	font-size: 0.9em;
}

.gcdcm-front .gcdcm-inline-form {
	margin: 0 0 2em;
	display: flex;
	gap: 0.5em;
	flex-wrap: wrap;
	align-items: center;
}

/* -------------------------------------------------------------- */
/* Tablas                                                           */
/* -------------------------------------------------------------- */

.gcdcm-front table.widefat {
	width: 100%;
	border-collapse: collapse;
	background: var(--gcdcm-surface);
	border: 1px solid var(--gcdcm-border-soft);
	border-radius: var(--gcdcm-radius-md);
	overflow: hidden;
	margin: 0.5em 0 1.5em;
	box-shadow: var(--gcdcm-shadow-sm);
}

.gcdcm-front table.widefat th,
.gcdcm-front table.widefat td {
	text-align: left;
	padding: 0.9em 1.1em;
	border-bottom: 1px solid var(--gcdcm-border-soft);
}

.gcdcm-front table.widefat thead th {
	background: var(--gcdcm-bg);
	font-weight: 600;
	font-size: 0.85em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--gcdcm-text-muted);
}

.gcdcm-front table.widefat.striped tbody tr:nth-child(odd) {
	background: #fafafa;
}

.gcdcm-front table.widefat tbody tr:hover {
	background: var(--gcdcm-primary-light);
}

.gcdcm-front table.widefat tr:last-child td {
	border-bottom: none;
}

/* -------------------------------------------------------------- */
/* Formularios: convertimos form-table (basado en <table>) a un     */
/* layout apilado moderno sin tocar el PHP que ya lo genera.        */
/* -------------------------------------------------------------- */

.gcdcm-front table.form-table,
.gcdcm-front table.form-table tbody,
.gcdcm-front table.form-table tr,
.gcdcm-front table.form-table th,
.gcdcm-front table.form-table td {
	display: block;
	width: 100%;
}

.gcdcm-front table.form-table tr {
	margin-bottom: 1.3em;
}

.gcdcm-front table.form-table th {
	padding: 0 0 0.4em;
	font-weight: 600;
	font-size: 0.92em;
}

.gcdcm-front table.form-table td {
	padding: 0;
}

.gcdcm-front input[type="text"],
.gcdcm-front input[type="email"],
.gcdcm-front input[type="url"],
.gcdcm-front input[type="date"],
.gcdcm-front input[type="time"],
.gcdcm-front select,
.gcdcm-front textarea {
	border: 1px solid var(--gcdcm-border-soft);
	border-radius: var(--gcdcm-radius-sm);
	padding: 0.6em 0.75em;
	font-size: 14px;
	background: var(--gcdcm-surface);
	color: var(--gcdcm-text);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gcdcm-front input:focus,
.gcdcm-front select:focus,
.gcdcm-front textarea:focus {
	outline: none;
	border-color: var(--gcdcm-primary);
	box-shadow: 0 0 0 3px var(--gcdcm-primary-light);
}

.gcdcm-front .regular-text {
	width: 100%;
	max-width: 420px;
}

.gcdcm-front .large-text {
	width: 100%;
	max-width: 640px;
}

/* -------------------------------------------------------------- */
/* Botones                                                          */
/* -------------------------------------------------------------- */

.gcdcm-front .button {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.6em 1.1em;
	border: 1px solid var(--gcdcm-border-soft);
	border-radius: var(--gcdcm-radius-sm);
	background: var(--gcdcm-surface);
	color: var(--gcdcm-text);
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.gcdcm-front .button:hover {
	background: var(--gcdcm-bg);
	text-decoration: none;
}

.gcdcm-front .button:active {
	transform: translateY(1px);
}

.gcdcm-front .button-primary {
	background: var(--gcdcm-primary);
	border-color: var(--gcdcm-primary);
	color: #fff;
	box-shadow: 0 1px 2px rgba(56, 172, 106, 0.3);
}

.gcdcm-front .button-primary:hover {
	background: var(--gcdcm-primary-dark);
	border-color: var(--gcdcm-primary-dark);
}

.gcdcm-front .button-link {
	background: none;
	border: none;
	padding: 0;
	color: var(--gcdcm-critico);
	text-decoration: underline;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
}

.gcdcm-front p.submit {
	margin-top: 1.2em;
}

/* -------------------------------------------------------------- */
/* Avisos                                                           */
/* -------------------------------------------------------------- */

.gcdcm-front .notice {
	background: var(--gcdcm-surface);
	border-left: 4px solid var(--gcdcm-text-muted);
	border-radius: var(--gcdcm-radius-sm);
	box-shadow: var(--gcdcm-shadow-sm);
	padding: 0.85em 1.1em;
	margin: 0 0 1.5em;
}

.gcdcm-front .notice-success {
	border-left-color: var(--gcdcm-ok);
}

.gcdcm-front .notice-error {
	border-left-color: var(--gcdcm-critico);
}

/* -------------------------------------------------------------- */
/* Comentarios                                                      */
/* -------------------------------------------------------------- */

.gcdcm-front .gcdcm-comments li {
	background: var(--gcdcm-surface);
	box-shadow: var(--gcdcm-shadow-sm);
}

/* -------------------------------------------------------------- */
/* Responsive                                                       */
/* -------------------------------------------------------------- */

@media (max-width: 900px) {
	.gcdcm-front .gcdcm-shell {
		min-height: 0;
	}

	.gcdcm-front .gcdcm-menu-toggle {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 4px;
		width: 2.4em;
		height: 2.4em;
		border: none;
		background: var(--gcdcm-sidebar-bg);
		border-radius: var(--gcdcm-radius-sm) 0 0 var(--gcdcm-radius-sm);
		position: absolute;
		top: 0.75em;
		right: 0;
		z-index: 2;
		cursor: pointer;
	}

	.gcdcm-front .gcdcm-menu-toggle span {
		display: block;
		height: 2px;
		background: #fff;
		margin: 0 0.6em;
		border-radius: 2px;
	}

	.gcdcm-front .gcdcm-shell {
		flex-direction: column;
	}

	.gcdcm-front .gcdcm-sidebar {
		flex: none;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		padding: 0.75em 1em;
		gap: 0.75em;
	}

	.gcdcm-front .gcdcm-tabs {
		display: none;
		flex-direction: column;
		width: 100%;
		order: 3;
		flex: none;
	}

	.gcdcm-front .gcdcm-sidebar-open .gcdcm-tabs {
		display: flex;
	}

	.gcdcm-front .gcdcm-user-chip {
		display: none;
	}

	.gcdcm-front .gcdcm-main {
		padding: 1.5em 1.1em;
	}

	.gcdcm-front .gcdcm-cards {
		flex-direction: column;
	}

	.gcdcm-front .gcdcm-card {
		min-width: 0;
	}

	.gcdcm-front .gcdcm-two-columns {
		flex-direction: column;
	}

	.gcdcm-front .gcdcm-filters {
		flex-direction: column;
		align-items: stretch;
	}

	.gcdcm-front .gcdcm-filters select,
	.gcdcm-front .gcdcm-filters input {
		width: 100%;
	}

	.gcdcm-front table.widefat {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}
}
