/* ============================================
   GENERAL & COMMON STYLES
   Variables, Base Styles, Layout & Utilities
   ============================================ */
:root {
    /* Colores Principales: El Césped y el Estadio */
    --color-primary: #2ebd59;          /* Verde césped vibrante */
    --color-primary-light: #a8e063;    /* Verde lima claro / iluminación del estadio */
    --color-second: #1a2e20;           /* Fondo de contraste oscuro (verde bosque) */
    --color-background: #0d1410;       /* Fondo base casi negro con un toque verdoso */

    /* Tipografía y Primer Plano */
    --color-fore: #e4efe7;             /* Texto principal gris muy claro (con un toque menta) */
    --color-fore-dest: #ffffff;        /* Blanco puro para títulos (como las líneas de cal del campo) */
    --color-fore2: #9eb8a5;            /* Texto secundario verde grisáceo */
    --color-fore3: #506b58;            /* Texto desactivado o sutil */

    /* Superficies y Contenedores (Glassmorphism style) */
    --color-second-green: #183622;     /* Verde noche profundo para contenedores */
    --color-second-back: #183622; 
    --color-second-line: #284a34;      /* Bordes sutiles para separar tarjetas */
    --color-second-light: #22422e; 
    
    --color-surface1: #16241b;         /* Tarjetas nivel 1 */
    --color-surface2: #1e3025;         /* Tarjetas nivel 2 */
    --color-surface3: #274031;         /* Hover de elementos */
    --color-surface4: #31523e;         /* Elementos activos */
    --color-fore-box: #a4c4af;         /* Detalles de cajas */

    /* Layout y Dimensiones (Se mantienen igual) */
    --safes: 980px; 
    --safem: MAX(calc((100vw - var(--safes)) / 2), 1rem); 

    /* Acentos y Feedback (El toque deportivo) */
    --color-surface: #121714; 
    --color-yellow: #eab308;           /* Amarillo intenso (estilo tarjeta de árbitro) */
    --color-yellow2: #ef4444;          /* Rojo vibrante (tarjeta roja / alertas) */

    /* Medidas de UI */
    --rad: 12px;                       /* Bordes redondeados modernos */
    --pad: 16px; 
    --padh: calc(var(--pad) * 0.5); 

    --bth: 42px;                       /* Altura de botones */
    --bthh: calc(var(--bth) * 0.5); 
    --icos: 48px; 

    --menuw: 240px; 
    --color-dest1: #10b981;            /* Verde esmeralda para destacar botones extra */
    --color-dest2: #fbbf24;            /* Dorado (estilo copa/trofeo) para detalles premium */
    
    /* Extra: Efecto de brillo (Glow) */
    --glow: 0 0 12px rgba(46, 189, 89, 0.4); /* Brillo verde césped en lugar de azul */
}
/* ============================================
   BASE STYLES
   ============================================ */
body {
	font-family: "Roboto", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	background-color: var(--color-background);
	color: var(--color-fore);
	padding-bottom: 8rem;
}

h1 {
	font-size: 24px;
	font-weight: 500;
	color: var(--color-fore2);
}

hr {
	margin: 0;
}
hr.sep{
	margin-top:var(--pad);
	margin-bottom: var(--pad);
}
a {
	color: var(--color-primary-light);
	text-decoration: none;
	cursor:pointer;
}


/* ============================================
   TYPOGRAPHY
   ============================================ */
.titlec {
	font-family: "Yeseva One", serif;
	font-weight: 400;
	font-style: normal;
	color: var(--color-primary);
}

.text .big {
	font-size: 18px;
	font-weight: 600;
}

.big2 {
	font-size: 20px;
	font-weight: 600;
}

.muted {
	font-size: 12px;
	color: var(--color-fore3);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.w {
	width: 100%;
}

.padb {
	padding-bottom: var(--pad);
}

.marb {
	margin-bottom: var(--pad);
}

.gap {
	gap: var(--pad);
}

.hidden {
	display: none !important;
}

.safe {
	max-width: var(--safes);
	margin: auto;
}

.rrow {
	display: flex;
}

.head {
	display: flex;
}
.head > .acc > .btn{ margin-left:var(--pad);}


/* ============================================
   LAYOUT STRUCTURES
   ============================================ */
.lay-center {
	display: flex;
	flex-direction: column;
	justify-items: center;
	align-items: center;
	width: 100%;
	
}

.lay-center > .lay-col {
	max-width: 280px;
}

.lay-center .field {
	width: 100%;
}

.page-container{
	
	width:100%;
}

/* Grid and Layout Utilities */
.cols {
	display: flex;
}

div.col2 {
	display: flex;
	flex-direction: row;
	gap:2rem;
}

.col2 > * {
	width: 50%;
}

.col2 > .c1 {
	width: 25%;
}

.col2 > .c3 {
	width: 75%;
}

.col2 > .c4 {
	width: 100%;
}

/* ============================================
   PAGE LAYOUT
   ============================================ */
.page-left {
	position: fixed;
	left: 0;
	right: 0;
	width: var(--menuw);
	border-right: 1px solid var(--color-surface1);
	height: 100vh;
	z-index: 100;
	background-color: var(--color-surface2);
}
.page-left .btn{ line-height: 1;}

.page-content {
	padding-left: calc(var(--menuw) + var(--pad));
	padding-right: var(--pad);
	padding-top: 64px;
}
.page-content > .toolbar{
margin-left: calc(-1 * var(--menuw));
  padding-left: calc(var(--menuw) + var(--pad) * 2 );
  justify-content: flex-start;
  padding-top: var(--pad);
  padding-bottom: var(--pad);
}

.page-header {
	height: 64px;
	display: flex;
	align-items: center;
	margin-left: calc(var(--menuw) + var(--pad));
	position:fixed;
}

.page-footer {
	position: absolute;
	bottom: 0;
	right: 0;
	left: 0;
	font-size: 10px;
	flex-direction: column;
	display: flex;
	align-items: center;
	padding-left: 1rem;
	color: var(--color-fore-box);
	padding-bottom: 1rem;
}

.page-footer .toolbar {
	flex-direction: column;
	align-items: flex-start;
	padding: var(--pad);
}

.pubfooter {
	padding-top: 8rem;
}

.pubfooter .page-footer {
	position: static;
}

.pubfooter .page-footer .toolbar {
	flex-direction: row;
}




/* ============================================
   BUTTON STYLES
   ============================================ */
.btn {
	background-color: var(--color-surface1);
	font-size: 16px;
	font-weight: 500;
	height: var(--bth);
	border:0;
	border-radius: var(--bthh);
	padding-left: var(--bthh);
	padding-right: var(--bthh);
	color: var(--color-fore2);
	gap: 0.5em;
	display: flex;
	align-items: center;
	line-height: 1.1;
	
}
a,.btn{
	cursor:pointer;
}

.btn.primary {
	background-color: var(--color-fore2);
  color: var(--color-surface);
}

.btn.text {
	text-decoration: none;
	background: transparent;
}
.btn.active{
	background-color:var(--color-surface3);
	border:1px solid var(--color-surface1);
}
.nav-tabs{
	border:0;
	display:flex;gap:var(--pad);
}
.btnlist {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	text-align: center;
}
.apt .dropdown-menu  .btn {
	background:transparent;
}

/* ============================================
   FIELD & INPUT STYLES
   ============================================ */
.field {
	background: var(--color-second-line);
    border: 1px solid var(--color-fore3);
    border-radius: var(--rad);
    transition: all 0.3s ease;
	padding: var(--pad);
	padding-top: calc(var(--pad) * 0.25);
	padding-bottom: calc(var(--pad) * 0.25);
}

.field:has(:focus) {
	border-color: var(--color-dest2); /* Brillo violeta al pasar el cursor */
    box-shadow: 0 0 20px var(--color-accent-glow);
    transform: translateY(-2px);
}

.field.w {
	width: 100%;
}

.field input {
	display: block;
	color: var(--color-fore-dest);
	border: 0;
	background: transparent;
	font-size: 16px;
	font-weight: 400;
	padding-left: 0;
	outline: none;
	width: 100%;
	padding: calc(var(--pad) * 0.5 );
	padding-left:0;
}

.field label {
	display: block;
	color: var(--color-fore2);
	font-size: 11px;
  text-transform: uppercase;
}
.field a{ padding: 0;
  color: var(--color-fore2);
  text-decoration: none;
}
.field input:focus {
	outline: none;
	box-shadow: none;
}

.field.money {
	position: relative;
}

.field.money:before {
	content: "€";
	position: absolute;
	top: 2em;
	font-size: 14px;
}

.field.money input {
	margin-left: 0.75em;
}
input::placeholder{
	font-size:13px;display:none;opacity:0;
}
.thumb.imgfield img {
	width: 100%;
	height: 8em;
	object-fit: cover;
}

.thumb.imgfield .field {
	padding: 0;
	overflow: hidden;
}

.thumb.imgfield .text {
	max-width: 20em;
}

.thumb.imgfield input {
	padding: var(--pad);
}

.field.apt.box {
	margin-bottom: var(--pad);
}

.field.apt.box > label {
	color: var(--color-primary);
	margin-bottom: var(--pad);
	font-weight: 500;
}
.field:has(input[type="checkbox"]){
	padding-right:calc( var(--pad) * 3);
	position: relative;
}
.field input[type="checkbox"] {
	margin-left:auto;
	width:auto;
	position: absolute;
	top:1.5rem;
	right:1rem;
}

/* ============================================
   NAVBAR STYLES
   ============================================ */
.page-left nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: var(--pad);
	padding: var(--pad);
}

.page-left nav a {
	width: 100%;
	text-align: left;
	padding-left: 10px;
}

.page-left nav {
	width: 190px;
}

.page-left nav .btn {
	background: transparent;
}

.page-left nav .btn i {
	margin-right: 0.5em;
}

.page-left nav .btn:hover {
	background: var(--color-surface3);
}

.page-left nav .btn.selected {
	background: var(--color-primary);
	color: #fff;
}

.page-left .logo {
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.page-left .toolbar .thumb .text {
	text-align: right;
}

.page-left .toolbar .thumb .text {
	display: none;
}

.page-left .toolbar .thumb {
	--icos: 2.5rem;
}

.page-left .toolbar .acc {
	margin-right: var(--pad);
}

.page-left .toolbar .acc .icon {
	order: 1;
}
.disabled{
	pointer-events: none;
	opacity: 0.5;
}


/* ============================================
   RESPONSIVE NAVIGATION
   ============================================ */
.toolbar-back {
	justify-content: stretch;
	display: flex;
	align-content: center;
	padding-left: var(--pad);
	padding-right: var(--pad);
	display: none;
	height: 64px;
	align-items: center;
}

.toolbar-back .btn {
	flex-grow: 1;
	background-color: var(--color-surface1);
	padding-left: 10px;
}

.nomenu {
	--menuw: 64px;
}

.nomenu .page-left nav .btn span {
	display: none;
}

.nomenu .page-left nav {
	width: var(--menuw);
}

.nomenu .page-left .toolbar .acc {
	display: none;
}

.nomenu .page-left nav a {
	width: 38px;
	text-align: center;
	justify-content: center;
	display: flex;
	align-items: center;
	padding: 0;
	height: 38px;
}

.nomenu .page-left nav a i {
	margin: 0;
}

.nomenu .page-left .toolbar .thumb .text {
	display: none;
}

.nomenu .page-left:hover {
	--menuw: 190px;
}

.nomenu .page-left:hover {
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.nomenu .page-left:hover .toolbar .acc {
	display: inline-flex;
}

.nomenu .page-left:hover .toolbar {
	margin-left: 0;
}

.nomenu .page-left:hover nav a {
	width: 100%;
	justify-content: flex-start;
	padding-left: 10px;
}

.nomenu .page-left:hover nav a i {
	margin-right: 0.5em;
}

.nomenu .page-left:hover nav .btn span {
	display: block;
}

.wsmenu .toolbar-back {
	display: flex;
}

.wsmenu .page-left .toolbar {
	display: none;
}

.wsmenu .page-left nav ul {
	animation: menuin 0.3s;
}

@keyframes menuin {
	0% {
		transform: translateX(1rem);
		opacity: 0;
	}
	100% {
		transform: translateX(0);
		opacity: 1;
	}
}

/* ============================================
   LIST & THUMB BASE STYLES
   ============================================ */
.thumb {
	display: inline-flex;
	gap: 1rem;
	text-decoration: none;
	align-items: center;
}

.acc {
	margin-left: auto;
}

.thumb > .text {
	display: flex;
	align-items: flex-start;
	font-weight: 500;
	flex-direction: column;
	justify-content: center;
	font-size: 16px;
	line-height: 1.3em;
}

.thumb >  .text .detail {
	font-weight: 300;
	display: block;
	font-size: 14px;
}

.thumb > .icon {
	width: var(--icos);
	height: var(--icos);
	border-radius: 50%;
	overflow: hidden;
	display: flex;
	align-items: center;
	background: var(--color-surface1);
	justify-content: center;
	flex-shrink: 0;
}
.thumb > .icon img{
	width:100%;
	height:100%;
	object-fit: cover;
}
.thumb.w {
	width: 100%;
	flex-wrap: nowrap;
	gap: 0;
}
.thumb > .acc{
	gap:var(--pad	);
}

.thumb.w .text {
	padding-left: 0;
}

.thumb.dest {
	color: var(--color-primary);
	background-color: var(--color-surface3);
	border-radius: calc(var(--rad) * 2);
	font-size: 14px;
	padding: calc(var(--pad) * 0.25);
}

.thumb.dest .acc {
	margin-right: 1em;
}

.thumb.dest .icon {
	background: transparent;
}

.thumb.dest > .icon i {
	font-size: 16px;
}

.thumb > .info {
	margin-left: auto;
	margin-right: auto;
}

.list > .thumb {
	align-items: center;
	padding-top: calc(var(--pad) * 0.5);
	padding-bottom: calc(var(--pad) * 0.5);
}

/* ============================================
   SIZE VARIANTS
   ============================================ */
.s {
	--icos: 2.5rem;
}

.s .thumb .text,
.select2-results .thumb .text {
	font-size: 14px;
}

.s .thumb .detail,
.select2-results .thumb .detail {
	font-size: 12px;
}

.xs {
	--icos: 2rem;
	font-size:10px;
}

.xs .thumb .icon {
	background-color: transparent;
}

.xs .thumb > .info {
	font-size: 11px;
}

.xs .thumb .text {
	font-size: 12px;
}

.xs .thumb .detail {
	font-size: 11px;
}
.nodet .thumb .detail {
	display:none;
}
.xs > .thumb {
	padding-top: calc(var(--pad) * 0.15);
	padding-bottom: calc(var(--pad) * 0.15);
}

.thumb.s,
.select2-results .thumb {
	--icos: 2rem;
}

/* ============================================
   INFO GRID
   ============================================ */
.info {
	display: grid;
	grid-template-columns: 50% 50%;
	grid-gap: 0.5em;
	flex-grow: 1;
}

.info .thumb .icon {
	background: transparent;
	font-size: 18px;
}

.info .thumb {
	gap: 0.5em;
}

.info .thumb .text {
	display: block;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
}

.info a.thumb {
	color: var(--color-fore-box);
}
h2 > i {
	margin-right:var(--pad);
	opacity:0.5;
}
/* ============================================
   COMMON ELEMENTS
   ============================================ */
.dropdown {
	list-style: none;
}
.modal{
	position:fixed;
	top:0;
	bottom:0;
}
.modal-backdrop{
		position:fixed;
	top:0;
	bottom:0;
}
.dropdown-toggle {
	text-decoration: none;
}

.acc {
	display: flex;
	align-items: center;
}

.acc a {
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
}

.accmenu {
	min-width: var(--menuw);
}

ul.toolbar {
	list-style: none;
	padding: 0;
	margin: 0;
}

.toolbar {
	display: flex;
	width: 100%;
	gap: var(--pad);
	align-items: center;
	justify-content: space-evenly;
}

.toolbar .primary {
	margin-left: auto;
}

.list > * {
	border-bottom: 1px solid var(--color-surface1);
}

.list > *:last-child {
	border: 0;
}

.list {
	display: flex;
	flex-direction: column;
}

.list.col2 {
	flex-direction: row;
	flex-wrap: wrap;
}

/* ============================================
   FORM STRUCTURE
   ============================================ */
form {
	display: flex;
	flex-direction: column;
	gap: var(--pad);
}

.fields {
	display: flex;
	flex-wrap: wrap;
	gap: calc(var(--pad) * 0.5);
	flex-grow: 1;
}

.fields .field {
	flex-grow: 1;
}

.tab-content {
	max-width: 600px;
}

/* ============================================
   SELECT2 STYLES
   ============================================ */
.select2-dropdown {
	border: 0;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	border-radius: 0 0 var(--rad) var(--rad);
	overflow: hidden;
}

.select2-selection .thumb {
	--icos: 1.5rem;
	gap: 0.25em;
}

.select2-selection .thumb .detail {
	display: none;
}

.select2-selection .thumb .icon {
	background: transparent;
}

.select2-container .select2-selection--single {
	height: auto;
}

.select2-container .select2-selection--single .select2-selection__rendered {
	display: flex;
	align-items: center;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
	border-color: transparent;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
	background-color: var(--color-surface3);
	color: var(--color-primary);
}

.select2-container--default .select2-results__option--selected {
	background-color: var(--color-surface4);
}

.select2-container--default .select2-selection--multiple,
.select2-container--default .select2-selection--single {
	background-color: transparent;
	border-color: transparent;
	min-width: 20em;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
	border-radius: var(--rad);
	outline: 0;
	border: 0;
}

.select2-results .thumb {
	width: 100%;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
	background-color: var(--color-surface2);
	border: 0;
	padding: calc(var(--pad) * 0.25);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
	border: 0;
	position: static;
}

.form-control:focus{
	outline: 0;box-shadow: none;
}

/* ============================================
   UTILITY STYLES
   ============================================ */
.footer.center {
	justify-content: center;
	display: flex;
	align-items: center;
}

.modhead {
	flex-grow: 1;
	display: flex;
	align-items: center;
	padding-right: calc(var(--pad) * 2);
}

.modhead .kpi {
	gap: 0;
}

.modhead .kpi i {
	font-size: 20px;
}

.modhead .kpi .icon {
	background: transparent;
}

/* ============================================
   ICON CIRCLE
   ============================================ */
.ico-circ {
	display: inline-block;
	border: 3px solid var(--color-dest1);
	width: 1.1em;
	height: 1.1em;
	border-radius: 50%;
	vertical-align: central;
	margin-right: 0.5em;
}

.ico-circ.b {
	border-color: var(--color-dest2);
}

/* ============================================
   SEARCH STYLES
   ============================================ */
.search.dest .field {
	/*flex-direction: row;
	display: flex;
	align-items: center;*/
}

.search.dest .field label {
	white-space: nowrap;
}

/* ============================================
   RICH TEXT EDITOR
   ============================================ */
div.ql-toolbar.ql-snow {
	border: 0;
	padding-bottom: 0;
}

div.ql-container.ql-snow {
	border: 0;
}

.ql-editor {
	min-height: 10em;
}
