.dropdown,
.dropdown > li {
	display: flex;
	flex-direction: column;
}
.dropdown > li:not(:last-child) {
	margin-bottom: 0.25rem;
}

.dropdown > li > button,
.dropdown > li > a {
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.dropdown > li > button > p,
.dropdown > li > a > p {
	flex: 1;
	text-align: left;
}
.dropdown[data-dialog="showhide"],
.dropdown[data-dialog="actions"]{
	max-width:320px;  
}
.dropdown[data-dialog="actions"]{
	max-height: calc(100% - 90px);
}
.dropdown[data-dialog="showhide"]{
	max-height: calc(100% - 135px);
	background-color: var(--light);
	border-radius: var(--radius);
	border: var(--border-width) solid var(--gray-300);
}
.dropdown[data-dialog="showhide"] > li:first-child{
	position: sticky;
	top: 0;
	z-index: 2;
	border-bottom: 1px solid rgba(0,0,0,0.1);
}
.dropdown[data-dialog="showhide"] > li:last-child{
	position: sticky;
	bottom:0;
	top:0;
	z-index: 2;
	border-top:1px solid rgba(0,0,0,0.1);
	background-color: inherit;
}
.dropdown[data-dialog="showhide"] > li:first-child > div,
.dropdown[data-dialog="showhide"] > li:last-child > div {
	background-color: var(--light-primary);
}
.dropdown[data-dialog="showhide"] > li:first-child > div,
.dropdown[data-dialog="showhide"] > li:last-child > label {
	padding: 7.5px 5px;
	font-weight: bold;
}
.dropdown[data-dialog="graphic-filters"],
.dropdown[data-dialog="actions"]{
	right: 0;
	left:unset;
	width: 220px;
	max-height: calc(100% - 55px);
}
#div.dropdowns {
	position: absolute; 
	right: 10px;
	top: 0px;
	left:unset;
	width: 220px;
	max-height: calc(100% - 55px);
}
.dropdown[data-dialog="user-actions"] {
	position: relative;
}
.dropdown {
	position: absolute;
	display:none;
	z-index: 5;
	overflow: auto;
	list-style: none;
	top:50px;
	left: 0;
	right: 0;
}
.dropdown[data-dialog="search"]{
	max-height: calc(100% - 50px);
}
/*.widget-calendar.minimonth .list-day-events li .event,
.dropdown li > button,
.sortable > li > div,
.dropdown li > a {
	box-shadow: 0px -1px 0px rgba(0, 0, 0, 0.2);
}
.widget-calendar.minimonth .list-schedules li button > div.icon:first-child,
.dropdown li button > div.icon:first-child,
.list-calendars > li > button:first-child,
.sortable > li > div > button:first-child,
.dropdown li > a > div.icon:first-child {
	box-shadow: 1px 0px 0px rgba(0, 0, 0, 0.2);
	margin-right: 10px;
}*/
/*Widget avatar*/
.widget-avatar {
	margin: 10px auto;
    max-width: 80px;
    max-height: 80px;
    min-height: 80px;
    min-width: 80px;
    width: 80px;
    height: 80px;
    border-radius: 100px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
	border: 1px solid currentColor;
}
.widget-avatar button.edit-avatar-button {
	position: absolute;
	bottom: 0;
	left: 0;
	top: 0;
	right: 0;
}
.widget-avatar button.edit-avatar-button > .icon,
.widget-avatar button.clean-avatar-button > .icon {
	position: absolute;
	right: -5px;
	bottom: 0;
	border-radius: 100px;
	width: 15px;
	height: 15px;
}
.widget-avatar button.clean-avatar-button {
	position: absolute;
	min-width: auto;
	bottom: 0;
	width: 30px;
	height: 30px;
	left: -10px;
}
/* Widget button */

.btn-general {
	border: unset;
	font-weight: 600;
	font-size: 18px;
	cursor: pointer; 
	z-index: 2;
	display:flex;
	justify-content: center;
	align-items: center;
	gap: .25rem;
}

.btn-general > p {
	padding: 0.5rem;
}
a.create,
.widget-button {
	border-radius: var(--radius);
}
.btn-secondary,
.widget-button.secondary {
	background-color: var(--light-secondary);
	color: var(--secondary);
	border: var(--border-width) solid var(--secondary);
}
.btn-secondary:hover,
.widget-button.secondary:hover,
.widget-button.secondary.active {
	background-color: var(--secondary);
	color: var(--white);
	box-shadow: var(--box-shadow);
}
.widget-button.delete,
.widget-button.red,
.widget-button.cancel {
	background-color: var(--light-red);
	color: var(--red);
	border: var(--border-width) solid var(--red);
}
.widget-button.delete:hover,
.widget-button.red:hover,
.widget-button.cancel:hover,
.widget-button.cancel.active,
.widget-button.delete.active,
.widget-button.red.active {
	background-color: var(--red);
	color: var(--white);
	box-shadow: var(--box-shadow);
}
.btn-primary,
.widget-button.primary,
.widget-button.accept {
	background-color: var(--light-primary);
	color: var(--primary);
	border: var(--border-width) solid var(--primary);
}
.btn-primary:hover,
.widget-button.primary:hover,
.widget-button.accept:hover,
.widget-button.accept.active,
.widget-button.primary.active {
	background-color: var(--primary);
	color: var(--white);
	box-shadow: var(--box-shadow);
}
.widget-button.cuaternary {
	background-color: var(--light-cuaternary);
	color: var(--cuaternary);
	border: var(--border-width) solid var(--cuaternary);
}
.widget-button.cuaternary:hover,
.widget-button.cuaternary.active {
	background-color: var(--cuaternary);
	color: var(--white);
	box-shadow: var(--box-shadow);
}
.widget-button.search,
.widget-button.violet {
	background-color: var(--light-violet);
	color: var(--violet);
	border: var(--border-width) solid var(--violet);
}
.widget-button.search:hover,
.widget-button.violet:hover,
.widget-button.search.active,
.widget-button.violet.active {
	background-color: var(--violet);
	color: var(--white);
	box-shadow: var(--box-shadow);
}
.widget-button.actions,
.widget-button.orange {
	background-color: var(--light-orange);
	color: var(--orange);
	border: var(--border-width) solid var(--orange);
}
.widget-button.actions:hover,
.widget-button.orange:hover,
.widget-button.actions.active,
.widget-button.orange.active {
	background-color: var(--orange);
	color: var(--white);
	box-shadow: var(--box-shadow);
}
a.create,
.widget-button.create,
.widget-button.green {
	background-color: var(--light-green);
	color: var(--green);
	border: var(--border-width) solid var(--green);
}
a.create:hover,
.widget-button.create:hover,
.widget-button.green:hover,
.widget-button.create.active,
.widget-button.green.active {
	background-color: var(--green);
	color: var(--white);
	box-shadow: var(--box-shadow);
}
.widget-button.gray {
	background-color: var(--gray-100);
	color: var(--gray-700);
	border: var(--border-width) solid var(--gray-500);
}
.widget-button.gray:hover, .widget-button.gray.active {
	background-color: var(--gray-700);
	color: var(--white);
	border-color: var(--gray-700);
	box-shadow: var(--box-shadow);
}
.widget-button.btn-restore[disabled] {
	background-color: var(--gray-200);
	color: var(--gray-500);
	border: var(--border-width) solid var(--gray-400);
	cursor: not-allowed;
}
.widget-button.btn-restore {
	background-color: var(--white);
	color: var(--gray-700);
	border: var(--border-width) solid var(--gray-500);
	padding: 0.3rem 0.65rem 0.3rem 0.2rem;
}
.widget-button.btn-restore:not([disabled]):hover {
	background-color: var(--gray-300);
	color: var(--black-lam);
	box-shadow: var(--box-shadow);
}
/* Widget list */
.widget-list{
	margin: 0;
	padding: 0;
	list-style: none;
}
.widget-list.actions {
	display: flex;
	gap: 0.35rem;
}
.widget-check{
	z-index:2;
}
.widget-check > input[type=checkbox] {
	position: absolute;	
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	cursor: pointer;
	z-index: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity:0;
	z-index:1;
	min-height: unset;
  	max-height: unset;
	padding: 0;
}
.widget-check > input[type=checkbox]:checked ~ div.icon > span {
	color:var(--secondary);
}
.widget-check > input[type=checkbox]:checked ~ div.icon {
	background-color: var(--tertiary);
}
/*Switch*/
.widget-switch{
	width:100% !important;
	display:flex;
	align-items:center;
	justify-content: space-between;
	padding: 0 1rem 0 0.6rem;
	flex: 1;
	border: 1px solid var(--cuaternary);
	background-color: var(--light-cuaternary);
}

.dropdown li .widget-switch > p {
	margin:7.5px 5px;
}
.widget-switch > p {
	display:flex;
	flex-direction: column;
	justify-content: start;
	align-items: start;
	text-align: left;
	flex: 1;
	margin:0.65rem 0.35rem;
}
.widget-switch:has(> .icon) > p {
	padding-left: 0.5rem;
}
.widget-switch:has(.subtext) > p {
	font-weight: 600;
}
.widget-switch .subtext {
	font-weight: normal;
}
.widget-switch > input {
	opacity:0;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	min-height: unset;
	max-height: unset;
	cursor:pointer;
	padding:0;
	margin:0;
	z-index: 2;
}
/* Normal Track */
.widget-switch > input + span {
	width: 30px;
	min-width: 30px;	
	height: 15px;
	border: 1px solid rgba(0,0,0,.1);
	border-radius: 999px;
	background-color:var(--light-red);
	box-shadow: inset 0 0 0 0px rgba(0,0,0,0.4);
	position: relative;
	z-index: 1;
}
.widget-switch:has(> input:checked) {
	border: 1px solid var(--primary);
	background-color: var(--light-primary);
}
/* Checked Track (Blue) */
.widget-switch > input:checked + span {
	background-position: 0 0;
	background-color:var(--tertiary);
}
/* Normal Knob */
.widget-switch > input + span > span{
	float: left;
	width: 13px; height: 13px;
	border-radius: inherit;
	background: #ffffff;
	-webkit-transition-timing-function: cubic-bezier(.54,1.85,.5,1);
	-webkit-transition-duration: 0.4s;
	-webkit-transition-property: transform, background-color, box-shadow;
	/*-moz-transition-timing-function: cubic-bezier(.54,1.85,.5,1);*/
	transition-timing-function: cubic-bezier(.54,1.85,.5,1);
	/*-moz-transition-duration: 0.4s;*/
	transition-duration: 0.4s;
	/*-moz-transition-property: transform, background-color;*/
	transition-property: transform, background-color;
	box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3), 0px 0px 0 1px rgba(0, 0, 0, 0.4);
	pointer-events: none;
}

/* Checked Knob (Blue Style) */
.widget-switch > input:checked + span > span {
	-webkit-transform: translate3d(15px, 0, 0);
	/*-moz-transform: translate3d(20px, 0, 0);*/
	transform: translate3d(15px, 0, 0);
	background-color: #ffffff;
	box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.3);
}
/*Search*/
.widget-search{
	display: flex;
	align-items: stretch;
	justify-content: start;
}
.widget-search button:first-child {
	border-radius: var(--radius) 0 0 var(--radius) ;
}
.widget-search:has(.back-search) > .input-search {
	border-radius: 0;
	border-left:0;
	border-right:0;
}
.widget-search .search-icon {
	position: absolute;
	left: 0.35rem;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1;
	color:var(--gray-500);
}
.widget-search .search-icon > span > svg{
	width: 20px;
	height: 20px;
}

.widget-search .input-search {
	border: 1px solid var(--gray-300);
	outline: none;
	padding: 0 0.5rem 0 2.25rem !important;
	font-size: 16px !important;
	color: var(--black-lam) !important;
	width: 100% !important;
	min-height: 41.4px;
	border-radius: var(--radius) 0 0 var(--radius);
	flex:1;
	margin:0;
	max-height: unset;
  	height: unset;
}
.widget-search > input.input-search + button {
	border-radius: 0 var(--radius) var(--radius) 0;
}
.widget-search .input-search:focus {
	border-color: var(--primary)!important;
	outline: none;
}
.widget-search > button.filters,
.widget-search > button.clean-filters{
	margin-left: 0.25rem;
}
/*Card Widget*/
.widget-card{
	padding: 10px;
}
.widget-card > p,
.widget-card h1,
.widget-card h2,
.widget-card h3,
.widget-card h4{
	font-weight: normal;
	margin:5px 0px;
}
.widget-card > p{
	font-size: 16px;
	font-weight: normal;
}
/* Widget layout */
.widget-layout{
	display: flex;
	flex-direction: row;
	height: 100%;
}
/* Widget column */
.widget-column{
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}

.widget-column > div{
	padding: 1rem;
	position: relative;
}
/*Widget table*/
.widget-table{
	overflow: auto;
	border-radius: var(--radius);
	border:var(--border-width) solid var(--gray-300);
	display: flex;
	flex-direction: column;
	height: 100%;
}
.widget-table .thead,
.widget-table .tbody .tbody-list{
    width: max-content;
}
.widget-table .thead *{
	font-weight: 600;
	font-size: 14px;
}
.widget-table .thead{
	position: sticky;
	top: 0;
	z-index: 4;
	border-radius: 5px 5px 0px 0px;
	display: flex;
	align-items: stretch;
}
.widget-table .thead .ui-resizable .ui-resizable-e{
	z-index:3 !important;
}
.widget-table .thead .btn-ordering > .icon {
  width: 25px;
  min-width: 25px;
  height: 25px;
  padding: 7.5px 0px;
}
.widget-table .tbody > .tbody-list > li > div > button{
	z-index:2;
	background-color: inherit;
	overflow: hidden;
}
.widget-table .tbody > .tbody-list > li > div > button{
	z-index: 1;
	border-radius: 0px;
}
.widget-table .tbody > .tbody-list > li > div > button:first-child{
	z-index: 2;
}
.widget-table .thead > button:first-child{
	border-radius: 5px 0px 0px 0px;
	z-index: 4;
}
.widget-table .thead > button:last-child{
	border-radius: 0px 5px 0px 0px;
	z-index: 4;
}
.widget-table .btn-showhide {
	border:none;
}
.widget-table button[data-checkall] {
	background-color: var(--light-primary);
	color: var(--primary);
}
.widget-table button[data-checkall]:hover {
	background-color: var(--tertiary);
	color: var(--secondary);
}
.widget-table .thead > button::after,
.widget-table .tbody > .tbody-list > li > div > button:last-child:after,
.widget-table .tbody > .tbody-list > li > div > button:first-child:after {
	content: "";
	position: absolute;
	top: 0;
	right: 0px;
	width: 0px;
	height: 100%;
}
.widget-table .thead > button:last-child::after, 
.widget-table .tbody > .tbody-list > li > div > button:last-child::after {
  right: unset;
  left: 0;
  border-left: 1px dashed rgba(0,0,0,0.3);
}
.widget-table .thead > button:first-child::after, 
.widget-table .tbody > .tbody-list > li > div > button:first-child::after {
	border-right: 1px dashed rgba(0,0,0,0.3);
	box-sizing: border-box;
}
.widget-table .thead > button:first-child .icon,
.widget-table .thead > button:last-child .icon,
.widget-table .tbody > .tbody-list > li > div > button:first-child .icon,
.widget-table .tbody > .tbody-list > li > div > button:last-child .icon {
	width: 34px;
	height: 40px;
	padding: 0;
} 
.widget-table .tbody{
	border-radius: 0px 0px var(--radius) var(--radius);
}
.widget-table .tbody .tbody-list > li:last-child{
	border-radius: 0px 0px var(--radius) var(--radius);
}
.widget-table .thead .thead-row,
.widget-table .tbody .tbody-row{
	display: flex;
	align-items: stretch;
	list-style: none;
	margin: 0;
	padding: 0;
}
.widget-table .tbody .tbody-list > li:nth-child(2n+1) > div {
  background-color: var(--white);
}
.widget-table .tbody .tbody-list > li:nth-child(2n) > div {
  background-color: var(--light);
}
.widget-table .thead .thead-row > li,
.widget-table .tbody .tbody-row > div{
	width: 120px;
	min-width: 90px;
	box-shadow: 1px 0px 0px rgba(0,0,0,0.2);
}
.widget-table .thead .thead-row > li > div > button > p,
.widget-table .tbody .tbody-row > div > p {
	padding:5px;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;  
	text-align: left;
}
.widget-table .tbody .tbody-row > div > p.enum-value {
	margin: 0 2.5px;
}
.widget-table .thead-cell,
.widget-table .tbody-cell {
	display: flex;
	align-items: center;
	height: 100%;
	justify-content: start;
}
.widget-table .thead-cell > button{
	display: flex;
	align-items: center;
	justify-content: space-between;
	overflow: hidden;
	flex:1;
	height: 100%;
}
/*Pagination*/
.widget-pagination{
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 0.5rem;
}
.widget-pagination .navigate-arrows{
	display: flex;
	align-items: center;
	gap: 0.25rem;
}
.widget-pagination .navigate-arrows .icon{
	padding: 5px;
}
.widget-pagination .navigate-input {
	font-size: 14px;
	display: flex;
	align-items: center;
	padding: 5px 10px;
	border-radius: var(--radius);
	background-color: var(--light-violet);
	color: var(--violet);
	border: 1px solid var(--violet);
}
.widget-pagination .navigate-input > input[name=page]{
	width: 55px;
	border: 1px solid rgba(0,0,0,0.3);
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	background-color: white;
	border-radius: 5px;
	margin: 0 5px;
	padding: 2px 5px;
	max-height: 25px;
	height: 25px;
	min-height: 25px;
}

/*Widget Slideup*/
/*SlideLine*/
.widget-slideline{
}
.widget-slideline.hide{
}
.widget-slideline .slide-line{
	position: sticky;
	top:5px;
	z-index: 2;
	cursor: pointer;
}
.widget-slideline .slide-line .icon{
	padding:0px !important;
}
.widget-slideline .slide-content{
	transition: all 0.5s ease-in-out;
	overflow: auto; 
	padding: 0 7.5px;
}
.widget-slideline.displayed .slide-content{
}
.widget-slideline .slide-content.up{

}
.widget-slideline .slide-content.left{

}
.widget-slideline .slide-content.right{

}
.widget-slideline.show .slide-content.down{
	max-height: 315px;
	height: auto;
}
.widget-slideline.hide .slide-content.down{
	height: auto;
	max-height: 0;
}
/*CHARTS*/
.charts-content > div {
	min-width: 260px;
}
.chart-container {
	position: relative;
	height: 100%;
	width: 100%;
}
.pie-charts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.pie-chart-wrapper {
    width: 300px; /* o el tamaño que prefieras */
    height: 300px;
}
@media (max-width: 340px) {	
	.widget-pagination{
		justify-content: center;
	}
	.widget-pagination .navigate-input {
		display: none;
	}
}