@charset "UTF-8";

@font-face {
	font-family: "SofiaPro Regular";
	src: url("/res/fonts/SofiaPro/sofiapro-regular.ttf");
}

@font-face {
	font-family: "SofiaPro Bold";
	src: url("/res/fonts/SofiaPro/sofiapro-bold.ttf");
}

@font-face {
	font-family: "SofiaPro Light";
	src: url("/res/fonts/SofiaPro/sofiapro-light.otf");
}

:root {
	/* company colors */
	--company-color1: #5e8195;
	--company-color2: #ffffff;
	--company-color3: #3d5462;
	--company-color4: #8ec3e1;
	--deactivated-company-color1: #5e8195cc;
	--deactivated-company-color2: #bebebecc;

	--primary-background-color: #ffffff;
	--secondary-background-color: #f2f2f2;

	/* copmany-fonts */
	--regular-font: "SofiaPro Regular";
	--bold-font: "SofiaPro Bold";
	--light-font: "SofiaPro Light";

	--dark-input-color: #525353;
	--input-color: #767676;
	--light-input-color: #8d8d8d;

	/* status font colors */
	--dark-font-color: #000000;
	--light-font-color: #ffffff;

	--green-font-color: #0bc91b;
	--red-font-color: #fe1516;
	--yellow-font-color: #f7bb00;

	/* other variables */
	--boxshadow-color: #00000044;

	--scrollbar-track-color: #f4f4f4;
	--scrollbar-thumb-color: var(--input-color);
	--scrollbar-thumb-hover-color: var(--light-input-color);

	--scrollbar-width-pc: 8px;
	--scrollbar-width-mb: 0px;

	--scrollbar-width: var(--scrollbar-width-mb);

	--main-padding-pc: 40px;
	--main-padding-mb: 20px;

	--main-padding: var(--main-padding-mb);
}

/* GENERALS */

::-webkit-scrollbar {
	width: var(--scrollbar-width);
	height: var(--scrollbar-width);
}

::-webkit-scrollbar-track {
	background: var(--scrollbar-track-color);
}

::-webkit-scrollbar-thumb {
	background: var(--scrollbar-thumb-color);
}

::-webkit-scrollbar-thumb:hover {
	background: var(--scrollbar-thumb-hover-color);
}

* {
	font-family: var(--regular-font);
	font-size: 1rem;
	color: black;

	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

input[type=number] {
	appearance: textfield;
	-webkit-appearance: textfield;
	-moz-appearance: textfield;
}

textarea {
	resize: none;
}

img {
	-webkit-user-select: none;
	-ms-user-select: none;
	-moz-user-select: none;
	user-select: none;
}

textarea:focus,
input:focus {
	outline: none;
}

a {
	text-decoration: none;
}

ul,
ol {
	list-style-type: none;
}

.clickable {
	cursor: pointer;
}

.mandatory {
	color: var(--red-font-color);
}

body {
	height: 100vh;
	width: 100vw;
	margin: 0;

	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	flex-direction: column;

	background-color: var(--primary-background-color);
	overflow-y: scroll;
	overflow-x: hidden;
}

/* SPECIFIC GENERALS */

main {
	width: 100%;
	padding-left: var(--main-padding);
	padding-right: calc(var(--main-padding) - var(--scrollbar-width));

	flex: 1;
	/* overflow-y: scroll; */
}

.section-title {
	margin-top: 40px;
	margin-bottom: var(--main-padding);

	/* font-size: 1.5em; */
	font-size: 2.25em;
	text-wrap: wrap;
	font-family: var(--light-font);
	font-weight: bolder;
	color: var(--company-font-color);
	text-align: center;
}

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

.section-options {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 5%;
	margin-bottom: var(--main-padding);
	font-size: 1rem;
	position: relative;
}

.section-options>span {
	font-size: 0.6em;
	text-align: end;
}

.create-new-button {
	font-size: 0.6em;
	font-family: var(--bold-font);
	color: white;
	background-color: var(--company-color1);
	border: none;
	padding: 1em 2em;
	/* display: none; */
	/* Boton oculto */
}

.filter-button {
	font-size: 0.8em;
	font-family: var(--bold-font);
	border: none;
	background-color: var(--secondary-background-color);
	padding: 0.2em 0.6em;
}

.section-panel {
	padding-top: 20px;
	/* box-shadow: 0px 0px 20px 2px var(--boxshadow-color);
	-webkit-box-shadow: 0px 0px 20px 2px var(--boxshadow-color); */
}

.bottom-separator {
	display: block;
	height: var(--main-padding);
}

.table-anchor {
	text-decoration: none;
}

.table-anchor:hover {
	font-weight: bold;
	color: var(--company-color1);
}

@media (width>=1024px) {
	:root {
		--scrollbar-width: var(--scrollbar-width-pc);
		--main-padding: var(--main-padding-pc);
	}

	main {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		flex-direction: column;
	}

	.section-title {
		text-align: start;
		margin-bottom: 10px;
	}

	.wrapper {
		flex-direction: row;
		justify-content: space-between;
	}

	.section-options {
		margin-bottom: 10px;
		min-width: 12em;
		width: 22em;
		font-size: 1.2rem;
		align-items: end;
		justify-content: end;
	}

	.section-panel {
		height: 100%;
		overflow: hidden;
	}
}

#popup-background {
	background-color: #ffffffcf;
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 100;

	display: flex;
	justify-content: center;
	align-items: center;

	opacity: 0;
	visibility: hidden;
	-webkit-transition: opacity 0.2s ease-out;
	-o-transition: opacity 0.2s ease-out;
	transition: opacity 0.2s ease-out;
}

#popup-background.show {
	opacity: 1;
	visibility: visible;
}

.popup-container {
	width: clamp(300px, 80%, 500px);
	padding: 1em;
	background: white;
	-webkit-box-shadow: 2px 2px 2px var(--boxshadow-color);
	box-shadow: 2px 2px 2px var(--boxshadow-color);
}

.popup-container h2 {
	color: var(--company-color3);
	font-size: 1.35em;
	font-weight: 500;
	text-align: start;
}

.popup-container p {
	color: #777b7e;
	font-size: 1.15em;
	text-align: justify;
	text-align-last: start;
}

.popup-actions {
	width: max-content;
	margin-left: auto;
	margin-right: auto;
	margin-top: 2em;
	display: flex;
	gap: 0.5em;
}

.popup-actions .cancel {
	color: var(--company-color3);
	border: 1px solid var(--company-color3);
	background-color: white;
	padding: 0.25em 1.5em;

	transition: all 0.1s ease-out;
}

.popup-actions .continue {
	color: white;
	border: 1px solid var(--company-color3);
	background-color: var(--company-color3);
	padding: 0.25em 1.5em;

	transition: all 0.1s ease-out;
}

.popup-actions .cancel:hover {
	color: white;
	border: 1px solid var(--company-color1);
	background-color: var(--company-color1);
}

.popup-actions .continue:hover {
	border: 1px solid var(--company-color1);
	background-color: var(--company-color1);
}

@media (width>=768px) {
	.popup-container {
		padding: 2em 3em;
	}

	.popup-actions {
		margin-right: unset;
	}
}

/* .input-element {
	height: 2rem;
	padding: 5px 0.5rem;
	border: 1px solid var(--input-color);
	border-radius: 4px;
	background-color: var(--primary-background-color);
}

.custom-dropdown {
	position: relative;
	display: inline-block;
}

.dropdown-header {
	cursor: pointer;
	padding: 5px 0.5rem;
	border: 1px solid var(--input-color);
	border-radius: 4px;
}

.dropdown-list {
	width: 100%;
	max-height: 10.2rem;
	padding: 0;
	margin: 0;

	position: absolute;

	background-color: var(--primary-background-color);
	border: 1px solid var(--input-color);
	border-radius: 4px;

	overflow-y: scroll;

	z-index: 99;
}

.dropdown-list li {
	padding: 5px 0.5rem;
	cursor: pointer;
	height: 2rem;

	-o-text-overflow: ellipsis;
	text-overflow: ellipsis;
	overflow-x: hidden;
}

.dropdown-list li:hover {
	background-color: var(--secondary-background-color);
}

.arrow-icon {
	position: absolute;
	top: 50%;
	right: 10px;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
	background-size: cover;
	background-repeat: no-repeat;
	cursor: pointer;
} 

.blocked-input {
	background-color: var(--secondary-background-color);
} */