/* CS Tickets - estilos compartidos (admin + frontend) */

.cst-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
	white-space: nowrap;
	background: #e9e9e9;
	color: #3c3c3c;
}

/* Estados por default */
.cst-badge-abierto        { background: #dbeafe; color: #1e40af; }
.cst-badge-en-progreso    { background: #fef3c7; color: #92400e; }
.cst-badge-resuelto       { background: #d1fae5; color: #065f46; }
.cst-badge-cerrado        { background: #e5e7eb; color: #374151; }

/* Prioridades por default */
.cst-badge-baja           { background: #e5e7eb; color: #374151; }
.cst-badge-media          { background: #dbeafe; color: #1e40af; }
.cst-badge-alta           { background: #ffedd5; color: #9a3412; }
.cst-badge-urgente        { background: #fee2e2; color: #991b1b; }

/* Editor de texto enriquecido (barra + contenteditable) */
.cst-editor-wrap {
	border: 1px solid #d0d5dd;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}
.cst-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 6px 8px;
	background: #f8f9fb;
	border-bottom: 1px solid #e3e5e8;
}
.cst-toolbar button {
	border: 1px solid transparent;
	background: transparent;
	border-radius: 4px;
	padding: 4px 8px;
	font-size: 13px;
	cursor: pointer;
	color: #364152;
}
.cst-toolbar button:hover {
	background: #eef0f2;
	border-color: #d0d5dd;
}
.cst-editable {
	min-height: 80px;
	padding: 10px 12px;
	font-size: 14px;
	line-height: 1.5;
	outline: none;
}
.cst-editable:empty:before {
	content: attr(data-placeholder);
	color: #98a2b3;
}
.cst-rich-contenido {
	font-size: 14px;
	line-height: 1.55;
}
.cst-rich-contenido ul,
.cst-rich-contenido ol {
	margin: 0 0 0 20px;
	padding: 0;
}
.cst-rich-contenido p {
	margin: 0 0 8px;
}

/* Edición de comentario existente */
.cst-comentario-edicion {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed #e3e5e8;
}
.cst-link-editar-comentario {
	background: none;
	border: none;
	color: #2271b1;
	font-size: 12px;
	cursor: pointer;
	padding: 4px 0 0;
	text-decoration: underline;
}
.cst-link-editar-comentario:hover {
	color: #135e96;
}

/* Info del ticket en dos columnas */
.cst-ticket-info-grid {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 24px;
	margin-bottom: 18px;
}
@media (max-width: 782px) {
	.cst-ticket-info-grid { grid-template-columns: 1fr; }
}
.cst-detalle-meta-vertical {
	list-style: none;
	margin: 0;
	padding: 0;
}
.cst-detalle-meta-vertical li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 14px;
}
.cst-detalle-meta-vertical li strong {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #667085;
}
.cst-detalle-imagen {
	margin-top: 12px;
}
.cst-detalle-imagen img {
	max-width: 100%;
	border-radius: 8px;
	border: 1px solid #eef0f2;
}
.cst-ticket-titulo {
	margin-top: 0;
	font-size: 30px;
	font-weight: 700;
}
.cst-panel-resumen {
	background: #fff;
	border: 1px solid #e3e5e8;
	border-radius: 10px;
	padding: 0 20px 20px;
	overflow: hidden;
}
.cst-panel-resumen-titulo {
	margin: 0 -20px 16px;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 600;
	border-bottom: 1px solid #e3e5e8;
	background: #f8f9fb;
}

.cst-postbox {
	background: #fff;
	border: 1px solid #e3e5e8;
	margin-top: 20px;
}
.cst-postbox-header {
	margin: 0;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 600;
	border-bottom: 1px solid #e3e5e8;
	background: #f8f9fb;
}
.cst-postbox-inside {
	padding: 20px;
}
.cst-panel-resumen-divisor {
	border-top: 1px solid #eef0f2;
	margin: 16px 0;
}
.cst-panel-resumen .cst-form-estado label {
	font-weight: 600;
	font-size: 13px;
	color: #364152;
	display: block;
	margin-bottom: 6px;
}
.cst-editar-adjunto-campo label {
	font-weight: 600;
	font-size: 12px;
	color: #364152;
}

/* Comentario en dos columnas: texto | adjunto */
.cst-comentario-cuerpo {
	display: grid;
	grid-template-columns: 1fr 220px;
	gap: 16px;
}
@media (max-width: 600px) {
	.cst-comentario-cuerpo { grid-template-columns: 1fr; }
}
.cst-comentario-col-adjunto img {
	width: 100%;
}
