/* Taula estil minimalista (predeterminat) */
.sr-table {
	width: 90% !important;
	max-width: 1200px !important;
	margin: 0 auto !important;
	border-collapse: collapse !important;
	margin-top: 20px !important;
	font-size: 14px !important;
	color: #000 !important;
}

.sr-table thead {
	background-color: var(--sr_head_bg, #f8f8f8) !important;
}

.sr-table th {
	font-weight: bold !important;
	border-bottom: 1px solid #ddd !important;
}

/* Aquests valors es poden sobreescriure per la configuració del plugin */
.sr-table th,
.sr-table td {
	padding: 10px 15px !important;
	text-align: left !important;
	border: none !important;
}

.sr-table tbody tr {
	border-bottom: 1px solid #ddd !important;
}
.sr-table td,
.sr-table th {
	vertical-align: middle !important;
}

/* Escuts per defecte */
.sr-table img {
	max-width: 50px;
	height: auto;
}

/* Columna separadora (marcador) */
.separador-columna {
	color: #000 !important;
	font-weight: bold !important;
}

/* QuickEdit: amagar la columna "qedit_col" */
.column-qedit_col {
	display: none !important;
}

/* ---------- TARGETES MÒBILS ---------- */
.sr-mobile-cards {
	display: none;
	margin: 20px auto;
	max-width: 700px;
	padding: 0;
}

.sr-card {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 12px;
	padding: 14px;
	margin: 20px 0;
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
	width: 100%;
	box-sizing: border-box;
}

/* Part superior (Esport, Categoria, Compet, etc.) */
.sr-card-top-info {
	text-align: center;
	margin-bottom: 12px;
	margin-bottom: 40px;
}
.sr-card-top-line {
	font-size: 1em;
	font-weight: 600;
	color: #333;
	margin-bottom: 5px;
}
.sr-card-top-links a {
	margin: 0 8px;
	color: #000;
	text-decoration: none;
}
.sr-card-top-links a:hover {
	color: #0073aa;
}

/* Fila d'equip (local o visitant) */
.sr-card-row {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	margin: 12px 0;
	gap: 10px;
}
.sr-card-team-shield img {
	width: 50px;
	height: 50px;
	object-fit: contain;
}
.sr-card-team-data {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Línia interna que conté "Nom" i "Marcador" */
.sr-card-team-line {
	/* fem servir GRID: 1fr per al nom, i auto per al marcador */
	display: grid;
	grid-template-columns: 1fr auto;
	column-gap: 10px;
	/* Ens assegurem que el marcador quedi a dalt */
	align-items: start;
}
.sr-card-team-name {
	font-size: 0.9em;
	font-weight: bold;
	color: #333;
	/* Permetem que es trenqui en diverses línies */
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.sr-card-team-score {
	font-size: 2em;
	font-weight: 600 !important;
	color: #444;
	/* Evitem trencar el marcador (si fos un nombre llarg) */
	white-space: nowrap;
}

/* Part inferior (posició, horari, lloc) */
.sr-card-bottom-info {
	margin-top: 15px;
	text-align: center;
	margin-top: 40px;
}
.sr-card-posicio {
	font-size: 0.95em;
	margin-bottom: 8px;
}
.sr-card-horari {
	font-size: 0.9em;
	margin-bottom: 6px;
	color: #555;
}
.sr-card-horari svg {
	width: 20px;
	height: 20px;
	transform: scale(0.7) !important;
	transform-origin: center;
	overflow: visible;
	vertical-align: middle;
	margin-right: 3px;
	margin-top: -4px;
}

/* Media Query per pantalles petites */
@media only screen and (max-width: 600px) and (orientation: portrait) {
	.sr-table {
		display: none !important;
	}
	.sr-mobile-cards {
		display: block !important;
	}
}

/* "chips" per a Shortcodes Pers. */
.sr-chips-container {
	border: 1px solid #ccc;
	padding: 10px;
	border-radius: 6px;
	background: #fafafa;
	margin: 10px 0;
}
.sr-chips-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	min-height: 30px;
	margin-bottom: 10px;
}
.sr-chip {
	background: #e0e0e0;
	padding: 5px 10px;
	border-radius: 12px;
	position: relative;
	font-size: 0.9em;
	cursor: default;
}
.sr-chip .sr-chip-remove {
	margin-left: 10px;
	font-weight: bold;
	color: #888;
	cursor: pointer;
}
.sr-chip .sr-chip-remove:hover {
	color: #555;
}
.sr-chips-input {
	min-height: 30px;
	cursor: text;
	outline: none;
	padding: 5px;
	border: 1px dashed #ccc;
}
.sr-chips-input:focus {
	background: #fefefe;
}

/* Popup combo (per a llistats d'equips, etc.) */
.sr-combo-popup {
	display: none;
	position: absolute;
	background: #fff !important;
	border: 1px solid #ccc !important;
	z-index: 99999 !important;
	max-height: 200px !important;
	overflow-y: auto !important;
	box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
	margin-top: 2px !important;
}
.sr-combo-popup .sr-combo-option {
	padding: 4px 8px !important;
	cursor: pointer !important;
	line-height: 1.4em !important;
}
.sr-combo-popup .sr-combo-option:hover {
	background-color: #eef !important;
}

/* Cel·la "Horari + Lloc" (taula d'escriptori) */
.sr-horari-lloc-cella {
	text-align: center !important;
	vertical-align: middle !important;
}

.sr-horari-lin1, .sr-horari-lin2 {
	display: block;
	white-space: nowrap;
	line-height: 1.6;
	margin: 0;
	padding: 0;
}
.sr-horari-lin1 svg,
.sr-horari-lin2 svg {
	width: 20px;
	height: 20px;
	transform: scale(0.7);
	transform-origin: center;
	overflow: visible;
	stroke-width: 1.5px;
	vertical-align: middle;
	margin-right: 3px;
	margin-top: -4px;
}

/* Mida del marcador a la taula (es pot sobreescriure via plugin) */
.sr-resultat-num {
	font-weight: bold;
}

/* Títol per a [resultats2blocs] */
.sr-ia-title {
	text-align: center !important;
}

.sr-sort-control {
  position: relative !important;
  cursor: pointer !important;
}

.sr-sort-control:hover::after {
  content: attr(title) !important;
  position: absolute !important;
  bottom: -1.5em !important;  /* Ajusta aquesta distància segons necessiti */
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: rgba(0, 0, 0, 0.75) !important;
  color: #fff !important;
  padding: 2px 6px !important;
  border-radius: 3px !important;
  font-size: 0.7em !important;
  white-space: nowrap !important;
  z-index: 10 !important;
}

@media only screen and (max-width: 600px) {
  .sr-mobile-view .sr-sort-control i[class*="fa-"] {
	color: #000000 !important;
  }
}

/* Si volem que la cel·la "DESCANS" tingui alçada 87px: */
.sr-descans-cell {
  height: 60px !important;        /* Força l'alçada fixa */
  line-height: 60px !important;   /* centra el text verticalment */
  vertical-align: middle !important;
  text-align: center !important;
  font-size: 1em;
}
