*{
	scrollbar-width: none;
}
::-webkit-scrollbar {
	width: 0px;
}
::-webkit-scrollbar-thumb {
	background-color: transparent;
}
.ck-balloon-panel{
	display: none !important;
}
.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{
	max-width: 320px;
	right: -5px;
	top: 34px;
	border-radius:5px;
	overflow:hidden;
}
button, .widget-pagination {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}
.oddeven > li:nth-child(even){
	background-color: var(--light-primary);
}
.oddeven > li:nth-child(odd){
	background-color: var(--white);
}
.bxshl {
    box-shadow: 10px 0px 15px -5px rgba(0, 0, 0, 0.2);
}
.text-wrap,
.text-wrap p {
	word-wrap: break-word;
}
.text-ellipsis {
	overflow: hidden;
}
.text-ellipsis > p,
.text-ellipsis > span {
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	display: block;
	/*padding-bottom:2px;*/
	/*margin-bottom:-2px;*/
}
.text-nowrap{
	white-space: nowrap;
}
/* ICONS */
.icon{
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	padding: 0.45rem;
	box-sizing: unset;
}
.icon.violet,
.icon.secondary,
.icon.red,
.icon.green,
.icon.orange,
.icon.primary,
.icon.cuaternary {
	border-radius: var(--radius);
}
.icon.gray {
	background-color: var(--gray-100);
	color: var(--gray-700);
}
.icon.violet {
	background-color: var(--light-violet);
	color: var(--violet);
}
.icon.secondary {
	background-color: var(--light-secondary);
	color: var(--secondary);
}
.icon.red {
	background-color: var(--light-red);
	color: var(--red);
}
.icon.green {
	background-color: var(--light-green);
	color: var(--green);
}
.icon.orange {
	background-color: var(--light-orange);
	color: var(--orange);
}
.icon.primary {
	background-color: var(--light-primary);
	color: var(--primary);
}
.icon.cuaternary {
	background-color: var(--light-cuaternary);
	color: var(--cuaternary);
}

.icon.rounded {
	border-radius: 50%;
}
.icon > span{
	display: flex;
	justify-content: center;
	align-items: center;
}
.icon.tiny,
.icon.tiny > span > svg{
	width:25px;
	height:25px;
}

.icon.mini,
.icon.mini > span > svg{
	width: 15px;
	height: 15px;
}
.icon.bigger,
.icon.bigger > span > svg {
	width: 50px;
	height:50px;
}
.icon.medium,
.icon.medium > span > svg {
	width: 35px;
	height:35px;
}
.icon.tiny.mini > span{
	--ggs:0.7;
}
.icon.bigger > span{
	--ggs:1.6;
}
.icon.medium > span{
	--ggs:1.2;
}
.icon.maxi,
.icon.maxi > span > svg{
	width: 75px;
	height: 75px;
}
.icon.maxi > span{
	--ggs:2;
}
.icon.ultramini{
	padding: 0px;
}
.icon.ultramini,
.icon.ultramini > span > svg{
	width: 0.875rem;
	height: 0.875rem;
}
/*
FLASH POPUP - Sistema unificado
*/

/* Contenedor de mensajes (se crea dentro del contexto: Windows, Desktop, etc.) */
.flash-container {
    position: absolute;
    bottom: 0px;
    right: 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
    max-height: calc(100% - 50px);
    overflow-y: auto;
	overflow-x: hidden;
    pointer-events: none; /* Permite clics a través del contenedor vacío */
}

/* Mensaje base (reemplaza .flash-popup y .error-box) */
.flash-message {
    width: 300px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1.6px 3.6px 0 rgba(0, 0, 0, 0.13), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.11);
  	margin: 5px;
    /*overflow: hidden;*/
    font-family: sans-serif;
    color: #333;
    transform: translateX(350px); /* Fuera de pantalla inicialmente */
    transition: transform 0.5s ease;
    pointer-events: auto; /* Los mensajes sí reciben clics */
}

/* Animación de entrada */
.flash-message.show {
    transform: translateX(0);
}

/* Animación de salida */
.flash-message.hide {
    transform: translateX(350px);
}

/* Barras de color según tipo */
.flash-message .bar {
    height: 5px;
    width: 100%;
	border-radius: 5px 5px 0px 0px;
}

.flash-message.success .bar {
    background-color: #4CAF50; /* Verde */
}

.flash-message.error .bar {
    background-color: #f44336; /* Rojo */
}

.flash-message.warning .bar {
    background-color: #ff9800; /* Naranja */
}

/* Contenido interno */
.flash-message .content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 10px 15px;
}

.flash-message .message {
    flex: 1;
    padding-right: 10px;
    overflow-y: auto;
    max-height: 200px;
}

.flash-message .message .message-lines {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.flash-message .message .line {
	margin: 0;
	white-space: pre-line;
	line-height: 1.35;
}

.flash-message .message .message-download-link {
	display: inline-block;
	margin-top: 8px;
	font-weight: 600;
	text-decoration: underline;
	color: inherit;
}

.flash-message .close-btn {
    cursor: pointer;
    font-size: 18px;
    color: #888;
    flex-shrink: 0;
}

.flash-message .close-btn:hover {
    color: #333;
}

.flash-close-all-incidents {
	margin: 5px;
	padding: 8px 12px;
	border-radius: 6px;
	cursor: pointer;
	pointer-events: auto;
	text-align: center;
	position: sticky;
  	top: 0;
  	z-index: 1;
	font-weight: 600;
	transform: translateX(350px);
	transition: transform 0.5s ease;
}

.flash-close-all-incidents.show {
	transform: translateX(0);
}

.flash-close-all-incidents.hide {
	transform: translateX(350px);
}



/**POP UP**/
.popUp-info{
	width: 90%;
	text-align: left;
	position: fixed;
	bottom: 60px;
	left: 50%;
	transform: translate(-50%, 0%);
	background-color: rgba(0, 0, 0, 0.7);
	color: white;
	padding:5px 25px 5px 10px;
	border-radius:8px;
	z-index: 10000;
}.popUp-info > .close-popUp{
	position: absolute;
	top: 0;
	right: 0px;
	height: 100%;
	padding: 0px 5px;
	border-left: 1px dashed white;
	cursor: pointer;
	display: flex;
	align-items: center;
}.popUp-info > p{
	margin:5px;
}
/* Disposición autmática de listas */
ul.inline-block{
	display: flex;
    flex-wrap: wrap;
	align-items: center;
}
ul.inline-block > li {
    /*box-shadow: 1px 0 0 0 #e1e1e1, 0 1px 0 0 #e1e1e1, 1px 1px 0 0 #e1e1e1, inset 1px 0 0 0 #e1e1e1, inset 0 1px 0 0 #e1e1e1;*/
    flex: auto;
    min-width: 160px;
    width: 25%;
    box-sizing: border-box;
}
/*GRID CONTAINER*/
.masonary {
  column-width: 280px;
  column-gap: 1rem;
}

.masonary > div {
  break-inside: avoid; /* Evita que se parta el div entre columnas */
  margin-bottom: 1rem;
}
.container {}
.container > .header-container{
	display: flex;
	justify-content: stretch;
	align-items: center;
	background-color: var(--secondary);
	color: var(--light);
	border-radius: var(--radius);
	margin-bottom: 5px;
	box-shadow: var(--box-shadow);
}
.container > .body-container{
	margin: 0px 5px;
}

/** Sortable effect **/
.selected{
	border-radius: var(--radius);
	background-color:inherit;
	transform:rotate(-5deg);
}
.highlight{
	background-color:rgba(0,0,0,0.1);
	border-radius: var(--radius);
}
.drop-highlight {
    border:1px dashed var(--primary);
    background-color: #e6f7ff;
	box-sizing: border-box;
}
/* Alert warning */
.alert-warning {
    background: #fff7e6;
    color: var(--gray-800);
    border-left: 4px solid var(--orange);
    border-radius: 8px;
    padding: .85rem 1rem;
    font-size: .85rem;
    box-shadow:var(--box-shadow);
    display: flex;
    align-items: flex-start;
    gap: .6rem;
}
/*Pop up*/
.popup{
	position: absolute;
	background-color:var(--light);
	border: 1px solid var(--gray-300);
	padding: 1rem;
	display: none;
	border-radius: var(--radius);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	z-index: 1000;
}
/* Estilo del contenedor de alerta */
.alert {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: white;
	color: black;
	border-radius: var(--radius);
	z-index: 10000;
	text-align: center;
	display: flex;
	flex-direction: column;
	max-width: 80%;
	max-height: 80%;
	min-width: 260px;
}
.alert .error {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
	padding: 15px;
	border-radius: 4px;
	margin: 20px 0;
}
.alert .log {
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	padding: 15px;
	border-radius: 4px;
	font-family: monospace;
	font-size: 12px;
	max-height: 400px;
	overflow-y: auto;
	white-space: pre-wrap;
}
.alert .message{
	overflow: auto;
	padding: 1rem;
}
/* Estilo del texto */
.alert .message > p {
	margin: 0;
	overflow: auto;
	font-size: 18px;
}
.alert .buttons {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: var(--light);
	border-top: 1px solid var(--gray-300);
	padding: 1rem;
	gap: 0.5rem;
	border-radius: 0 0 var(--radius) var(--radius);
}
/* Estilo del botón */
.alert .buttons button {
	font-size: 18px;
	font-weight: 600;
	padding: 7.5px 15px;
	flex:1;
}

  
  /* Fondo oscuro */
.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 10;
}
#windows .container > .overlay {
	z-index: -1;
}

#windows .container .body > .overlay {
	position: absolute;
}
.import-fields .field-list > li:nth-child(odd){
	background-color: var(--white);
}

.fancy-title {
    display: flex;
    align-items: center;
    text-align: center;
    font-size: 1.12rem;
    font-weight: bold;
	margin: 10px 0px;
}

.fancy-title::before,
.fancy-title::after {
    content: "";
    flex: 1;
    /*margin: 0 10px;*/
}
.fancy-title.dashed::before,
.fancy-title.dashed::after {
    border-bottom: 1px dashed currentColor; 
}
.fancy-title.solid::before,
.fancy-title.solid::after {
    border-bottom: 1px solid currentColor;  
}
.fancy-title::before {
    margin-right: 10px; 
}

.fancy-title::after {
    margin-left: 10px; 
}
/* VIEW ENTITY */
.view-entity .view-body,
.view-entity{
	flex:1;
	display: flex;
	flex-direction: column;
	position: relative;
}
.tagfixed .dropdown{
	top:45px;
	background-color: unset;
	box-shadow: none;  
	max-width: none !important;
	width: auto !important;
	max-height: none !important;
	margin: 0;
	right: 0;
  	left: auto;
}
.tagfixed .dropdown > li{
	margin:5px 0px;
	background-color: var(--tertiary);
	color:var(--primary);
	border-radius: 100px;
	box-shadow: 0 1.6px 3.6px 0 rgb(0 0 0 / 13%), 0 0.3px 0.9px 0 rgb(0 0 0 / 11%);
	overflow: hidden;
	padding: 0 5px;
}
.tagfixed .dropdown > li:hover{
	background-color: var(--secondary);
}
.tagfixed .dropdown > li:hover button,
.tagfixed .dropdown > li:hover button .icon{
	color:var(--light) !important;
}
.tagfixed{
	position: sticky;
	color:var(--primary);
	background-color: var(--tertiary);
	top:7.5px;
	z-index:3;
    min-width: 50px;
    min-height: 50px;
    max-width: 50px;
    max-height: 50px;
	margin: 0px 40px -50px 5px;
	border-radius: 100px;
	left:100%;
	transition: all 500ms ease;
	overflow: visible;
	display: flex;
	justify-content: center;
	align-items: center;
}
.tagfixed > button > .icon{
	width: 40px !important;
	height: 40px !important;
}
.tagfixed > button > .icon:has(> span > svg) {
	width: 50px !important;
	height: 50px !important;
	padding: 0;
}
.tagfixed > button > .icon > span{
	--ggs:1.3;
}
.tagfixed > button > p{
	display: none;
}
.tagfixed:hover{
	background-color: var(--secondary);
	color:var(--light);
}

.subtext{
	font-size: 14px;
}

/**/
.widget-table.discrepancies .thead .headers > li:last-child,
.widget-table.discrepancies .tbody .entities > li > div > .notes-discrepancy{
	flex:unset;
	width: 40px;
	min-width: 40px;
	max-width: 40px;
}
.widget-table.discrepancies-step-two .thead .headers > li:last-child, 
.widget-table.discrepancies-step-two .tbody .entities > li > div > div:last-child {
  flex: unset;
  width: 120px;
  min-width: 120px;
  max-width: 120px;
  text-align: center;
}
.closing-cash h3:first-child,
.cash-out h3:first-child{
	font-size: 22px;
}
.flag{
	position: absolute;
	top:0px;
	right: 0px;
	font-size: 12px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 100px;
}
.avatar {
	max-width:50px;
	max-height:50px;
	min-height:50px;
	min-width:50px;
	width:50px;
	height:50px;
	border-radius:100px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}
.add-comparison,
.remove-comparison {
	margin-left: 5px;
	border-radius: 10px;
}
.add-comparison > .icon,
.remove-comparison > .icon {
	padding: 11px;
  	border-radius: 10px;
}

/*** nuevo formulario ***/
.widget-form{
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}
.widget-form > .data-entity{  
	flex: 1;
	overflow: auto;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding:1rem;
}
.widget-form > .data-entity > .form-content{  
	background: var(--white);
	border-radius: var(--radius);
	padding: 1rem;
	border: 1px solid var(--gray-300);
}
.widget-form .submitting-buttons{
	padding: 1rem;
	display: flex;
	justify-content: space-between;
	gap:0.25rem;
	align-items: center;
	border-top: 1px solid var(--gray-300);
}
.widget-form .submitting-buttons .btn-general{
	flex: 1;
}
.widget-form > .data-entity .entity-header-main{
	display: flex;
	justify-content: flex-start;
	align-items: center;
	position: sticky;
	border-radius: var(--radius);
	background-color: var(--primary);
	color: var(--white);
	top: 0px;
	z-index: 1;
	margin-bottom:0.5rem;
}
.widget-form .unsaved-changes{
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-size: 14px;
	color: var(--gray-500);
	font-weight: 600;
	position: absolute;
	top: -1.5rem;
	left: 0;
	right: 0;
	display: none;
}
.widget-form .unsaved-changes > .dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: var(--gray-500);
}
.widget-form .unsaved-changes.active {
	color: rgb(180 83 9);
}
.widget-form .unsaved-changes.active > .dot {
	background-color: rgb(245 158 11);
	animation: ping 1s infinite;
}
.widget-form .submitting-buttons .btn-save {
	background-color: var(--light-green);
	color: var(--green);
	border: 1px solid var(--green);
}
.widget-form .submitting-buttons .btn-save > .dot {
	display: none;
}
.widget-form .submitting-buttons:has(.unsaved-changes) .btn-save {
	background-color: var(--light-primary);
	color: var(--primary);
	border: 0;
}
.widget-form .submitting-buttons:has(.unsaved-changes) .btn-save > .dot {
	background-color: var(--primary);
}
.widget-form .submitting-buttons:has(.unsaved-changes) .btn-save.active {
	background-color: var(--light-green);
	color: var(--green);
	border: 1px solid var(--green);
  	padding: 0 1rem 0 0.5rem;
}
.widget-form .submitting-buttons:has(.unsaved-changes) .btn-save.active > .dot {
	background-color: var(--green);
	animation: ping 1s infinite;
	display: block;
}
.widget-form .submitting-buttons:has(.unsaved-changes) .btn-save.active:hover,
.widget-form .submitting-buttons:not(:has(.unsaved-changes)) .btn-save:hover {
	background-color: var(--green);
	color: var(--white);
}
.form-ent{
	display: flex;
	flex-direction: column;
}
.form-grid{
	display: grid;
  	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  	gap: 1rem;
}
.form-group {
	display: flex;
	flex-direction: column;
}
.form-group.full-width {
	grid-column: 1 / -1;
}
.form-group .quantity-input {
	display: flex;
	align-items: stretch;
}
.form-group .quantity-input > input {
	width: 100%;
	flex: 1;
}
.form-group:has(> label) > .widget-switch {
	border:2px solid #e1e1e1;
	border-radius: var(--radius);
	background-color: var(--white);
	color: var(--black);
}
label {
	color: var(--secondary);
	font-weight: 600;
	margin-bottom: 8px;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 5px;
}
.form-group > label:not(.required)::after {
  content: '';
}
.form-group > label.required::after {
 	content: '*';
  	color: var(--red);
  	margin-left: 3px;
}
.form-group > .keyboard-input,
.form-group > .date-input {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
}
.form-group > .keyboard-input > input,
.form-group > .date-input > input{
	flex: 1;
	border-radius: var(--radius) 0 0 var(--radius) ;
}
.form-group > .keyboard-input > button.btn-open-keyboard,
.form-group > .date-input > button.btn-clean-input{
	border-radius: 0 var(--radius) var(--radius) 0;	
	border-width: 2px;
}
input, select, textarea {
	padding: 0.75rem;
	border: 2px solid #e1e1e1;
	border-top-color: rgb(225, 225, 225);
	border-right-color: rgb(225, 225, 225);
	border-bottom-color: rgb(225, 225, 225);
	border-left-color: rgb(225, 225, 225);
	border-radius: var(--radius);
	font-size:1rem;
	transition: all 0.3s;
	font-family: inherit;  
	background-color: var(--white);
	height: 49px;
	min-height: 49px;
	max-height: 49px;
}
input.jscolor, textarea {
	transition: none !important;
}
/* Para WebKit (Chrome, Safari, Edge) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Para Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

/* Asegurar que inputs de fecha ocupen todo el ancho en móviles */
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"] {
    width: 100%;
    box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--primary);
}
textarea {
	resize: vertical;
	min-height: 80px;
}
.help-text {
	font-size: 12px;
	color: #666;
	margin-top: 0.25rem;
	font-style: italic;
}
.radio-group {
	display: flex;
  	gap: 0.25rem;
	flex-wrap: wrap;
}
/*@media (max-width: 768px) {
	.radio-group {
		flex-direction: column;
		gap: 0px;
	}
}*/
.radio-label {
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border: 2px solid #e1e1e1;
	border-radius: var(--radius);
	transition: all 0.3s;
	margin-bottom: 0;
	flex:1;
	height: 45px;
	background-color: var(--white);
	box-sizing: content-box;
}
.radio-label.active {
	color: var(--white);
	background-color: var(--primary);
}
.radio-label input {
	margin: 0;
	position: absolute;  
	z-index: 1;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	opacity: 0;
	cursor: pointer;
}
.radio-label > span {
  text-align: center;  
  padding: 0 0.5rem;
}
.file-input-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.file-input-container {
	position: relative;
	border: 2px dashed var(--tertiary);
	border-radius: 8px;
	padding: 20px;
	text-align: center;
	background: #f9fafb;
	cursor: pointer;
	transition: all 0.3s;
}.file-input-container.has-file {
  border-style: solid;
  border-color: var(--green);
  background: rgba(22, 212, 70, 0.05);
}.file-input-container input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.file-input-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.file-input-icon {
  font-size: 40px;
  color: var(--primary);
}
.file-input-text {
  color: var(--secondary);
  font-size: 14px;
  font-weight: 500;
}
.file-input-hint {
  color: #666;
  font-size: 12px;
}
.file-preview, .file-preview-content {
	display: flex;
	align-items: center;
	gap: 10px;
}
.file-preview-content{
	flex: 1;
	background-color: var(--white);
	border: var(--border-width) solid var(--gray-300);
	border-radius: var(--radius);
	padding: 0.2rem;
	min-height: 41px;
}
.file-preview-icon {
  font-size: 24px;
}
.file-preview-info {
  flex: 1;
  min-width: 0;
}
.file-preview-name {
  font-weight: 600;
  color: var(--secondary);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-preview-size {
  color: #666;
  font-size: 12px;
}
.text-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.text-value:last-child {
    border-bottom: none;
}
[class*="container-"] {
	width: 100%;
	max-width: 42rem;
	margin: 0 auto;
	overflow: auto;
	height: 100%;
	padding: 1rem;
}
[class*="container-"] > [class*="body-"] > [class*="container-"] {
  padding: 0;
  max-width:unset;
  height:unset;
  width:unset;
}

[class*="container-"] > [class*="header-info"] {
	display: flex;
	flex-direction: column;
	padding: 1rem;
	border: var(--border-width) solid var(--gray-300);
	background-color: var(--white);
  	border-radius: var(--radius) var(--radius) 0 0;
	gap: 0.75rem;
}

[class*="container-"] > [class*="body-"] > [class*="container-"] > [class*="header-info"] {
  border: none;
  background-color: unset;
  border-radius: unset;
}
[class*="container-"] > [class*="header-info"] .header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
[class*="container-"] > [class*="header-info"] .header h1{
	font-size: 1.35rem;
	font-weight: 700;
	margin: 0;
	letter-spacing: -0.025em;
}
[class*="container-"] > [class*="header-info"] .header h1 > span{
	font-size: 0.875rem;
	font-weight: 400;
	display: block;
}

[class*="container-"] > [class*="body-"] {
	background-color: var(--white);
  	border-radius: 0 0  var(--radius) var(--radius);
	border: var(--border-width) solid var(--gray-300);
}
.dot {
	width: 0.625rem;
	height: 0.625rem;
	border-radius: 100%;
	display: block;
}
.card {
	display: flex;
	flex-direction: column;
	background-color: var(--white);
	border: var(--border-width) solid var(--gray-300);
	border-radius: var(--radius);
	padding: 1rem;
}
.badge {
  color: var(--gray-700);
  background-color: var(--gray-100);
  border: 1px solid var(--gray-700);
  border-radius: 0.5rem;
  padding: 0.125rem 0.625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
}
.badge .icon{
  order: -1;
  margin-right: 0.5rem;
}
.badge .badge-dot{
  background-color: var(--gray-700);
  width: 0.375rem;
  height: 0.375rem;
  margin-right: 0.375rem;
  border-radius: 100%;
  order:-1;
}
.badge.primary{
  color: var(--primary);
  background-color: rgb(240 249 255 / 1);
  border: 1px solid var(--primary);
}
.badge.primary .badge-dot{
  background-color: var(--primary);
}
.badge.cuaternary{
  color: var(--cuaternary);
  background-color: rgb(255, 235, 250);
  border: 1px solid var(--cuaternary);
}
.badge.cuaternary .badge-dot{
  background-color: var(--cuaternary);
}
.badge.orange{
  color: rgb(146 64 14 / 1);
  background-color: rgb(254 243 199 / 1);
  border: 1px solid var(--orange);
}
.badge.orange .badge-dot{
  background-color: var(--orange);
}
.badge.green{
  color: rgb(21 128 61 / 1);
  background-color: rgb(220 252 231 / 1);
  border: 1px solid var(--green);
}
.badge.green .badge-dot{
  background-color: var(--green);
}
.badge.red{
  color: rgb(220 38 38 / 1);
  background-color: rgb(254 226 226 / 1);
  border: 1px solid var(--red);
}
.badge.red .badge-dot{
  background-color: var(--red);
}
.badge.violet{
  color: rgb(139 92 246 / 1);
  background-color: rgb(237 233 254 / 1);
  border: 1px solid var(--violet);
}
.badge.violet .badge-dot{
  background-color: var(--violet);
}
.badge.value-on{
  border-color: var(--green);
  background-color: rgb(241, 255, 244);
  color: var(--green);
}
.badge.value-off{
  border-color: var(--red);
  background-color: rgb(255, 235, 238);
  color: var(--red);
}
.card > .header-card {
	margin-bottom: 1rem;
}
.card > .header-card,
.card > .header-card h3.title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.card > .header-card h3.title {
	justify-content: start;
	margin-bottom: 0.5rem;
}
.card > .header-card .subtext {
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}
.card-list-content {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}
.card-list-content > .manage-card {
	min-width: 250px;
	flex: 1 1 calc(33.333% - 1rem);
}
.manage-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border: var(--border-width) solid var(--gray-300);
  background-color: rgb(248 250 252 / 0.5);
  border-radius: var(--radius);
  padding: 1rem;
}
.horizontal-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
	flex: 1;
}
.horizontal-card .content-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.horizontal-card .content-info .initials{
  background-color: var(--light-primary);
  color: var(--primary);
  border-radius: 9999px;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.875rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.horizontal-card .content-info .dot{
	width: 0.75rem;
	height: 0.75rem;
	border-radius: 100%;
	display: block;
}
.horizontal-card .content-info .content-text {
	word-break: break-word;
}
.horizontal-card .content-info .content-text .text{
  font-size: 0.875rem;
  color: var(--black-lam);
  font-weight: 700;
}
.horizontal-card .content-info .content-text .subtext{
  font-size: 0.75rem;
  color: var(--gray-700);
  font-weight: 600;
}
.text-card > .additional-content,
.manage-card > .additional-content {
	border-top: var(--border-width) solid var(--gray-300);
	padding-top: 1rem;
	margin-top: 1rem;
}
.text-card > .additional-content .manage-buttons,
.manage-card > .additional-content .manage-buttons {
	display: flex;
	gap: 0.5rem;
	justify-content: flex-end;
}
.manage-card > .additional-content .widget-button {
	display: flex;
	align-items: center;
	justify-content: start;
	padding: 0.425rem;
}
.manage-card > .additional-content .widget-button:has(> .icon){
	padding: 0.25rem;
}
.manage-card > .additional-content .widget-button > .icon {
	padding: 0.35rem;
}
.manage-card > .additional-content .widget-button:has(> .icon) > p {
	padding-right: 0.45rem;
}
.manage-card > .extra-data {
	margin-top: 1rem;
	font-size: 0.875rem;
	line-height: 1rem;
	height: 100%;
}
.manage-card > .extra-data > .extra-data-item {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  gap: 0.5rem;
}

.manage-card > .extra-data > .extra-data-item > .extra-data-key {
	color:var(--gray-500);
}
.manage-card > .extra-data > .extra-data-item > .extra-data-value {
  	color:var(--gray-700);
	font-weight: 600;
}
.manage-card .info-date {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--gray-700);
}
.info-card {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: var(--border-width) solid var(--gray-300);
	color:var(--black-lam);
}
.text-card {
	background-color:rgb(248 250 252 / 0.5);
	padding: 1rem;
	border-radius: var(--radius);
	border: var(--border-width) solid var(--gray-300);

}
.info-card > .info-card-header,
.text-card > .text-card-header {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	justify-content: space-between;
}

.info-card > .info-card-header > .title,
.text-card > .text-card-header > .title{
	font-weight: 700;
	font-size: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: start;
	gap: 0.5rem;
}

.info-card > .info-card-body,
.text-card > .text-card-body {
	margin-top: 0.5rem;
	font-size: 0.875rem;
}
.info-card > .info-card-body > .text-paragraphs > p,
.text-card > .text-card-body > .text-paragraphs > p {
	margin-bottom: 0.25rem;
}

.content-entity {
	flex: 1;
	overflow: auto;
	display: flex;
	flex-direction: column;
	padding: 1rem;
	gap: 1rem;
  	container-type: inline-size;
}
.content-entity .header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	background-color: var(--white);
	border-radius: var(--radius);
	border: var(--border-width) solid var(--gray-300);
	gap: 1rem;
}
.content-entity .header .info {
	display: flex;
	flex: 1;
	flex-direction: column;
}
.content-entity .header .info-entity{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;  
	flex-wrap: wrap;
}
.content-entity .header .info-entity > h1 {
	font-size: 1.875rem;
    line-height: 2.25rem;
}
.content-entity .header .info-entity > h1 > span {
	font-weight: 400;
	font-size: 0.875rem;
  	line-height: 1.25rem;
	color: var(--gray-700);
	display: block;
}

.content-entity .header .tools{
	display: flex;
	gap: 0.5rem;
	align-items: center;
	justify-content: end;
}
.content-entity .body {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	justify-content: flex-start;
}
/*El panel left sera menos ancho que el panel right*/
.content-entity .body > .body-panel-left,
.content-entity .body > .body-panel-right {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.content-entity .body > .body-panel-left {
	min-width: calc(320px + 2rem);
	flex: 3;
}
/*El panel derecho es más ancho y el wrap debe hacerse cuando sea menor de 320px*/
.content-entity .body > .body-panel-right {
	flex: 1;
}
.content-entity .widget-tab {
	border: var(--border-width) solid var(--gray-300);
	border-radius: var(--radius);
	background-color: var(--white);
}
.content-entity .widget-tab > .tab-bar {
  padding: 1rem;
  border-radius: var(--radius) var(--radius) 0 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-300);
}
.content-entity .widget-tab > .tab-bar.top-bar {
  top: -1rem;
}
.content-entity .widget-tab > .tab-bar > .tab-items-bar {
  display: flex;
  gap: 0.25rem;
  overflow: auto;

}
.content-entity .widget-tab > .tab-bar > .tab-items-bar > .tab-item{
  flex-shrink: 0; /* evita que se encoja */
}
.content-entity .widget-tab > .tab-bar > .tab-items-bar > .tab-item > .btn-tab{
  box-sizing: border-box;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding: 0.625rem 1rem;
  border-width: 1px;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  border-style: solid;
  border-color: transparent;
  border: var(--border-width) solid var(--gray-300);
  border-radius: var(--radius);
  background-color: var(--white);
}
.content-entity .widget-tab > .tab-bar > .tab-items-bar > .tab-item:hover > .btn-tab{
  color:black;
  background-color: var(--gray-100);
}

.content-entity .widget-tab > .tab-bar > .tab-items-bar > .tab-item.active > .btn-tab{
  color:var(--secondary);
  background-color: rgb(240 247 255 / 1);
  border-style: solid;
  border-color: var(--secondary);
}

.content-entity .widget-tab > .tab-bar > .tab-items-bar > .tab-item > .btn-tab > .icon,
.content-entity .widget-tab > .tab-bar > .tab-items-bar > .tab-item > .btn-tab > .icon svg {
  width: 1rem;
  height: 1rem;
  margin: 0.25rem 0;
}
.content-entity .widget-tab > .tab-bar > .tab-items-bar > .tab-item > .btn-tab > p {
  margin:0 0.5rem;
}
.content-entity .summary {
	display: flex;
	padding: 1rem;
	gap: 0.75rem;
	flex-direction: column;
	color:var(--gray-700);
	max-width: 20rem;
	margin-right: 0;
	margin-left: auto;
}
.content-entity .summary > [class^="summary-"]{
	display: flex;
	gap: 0.5rem;
	align-items: center;
	justify-content: space-between;
}
.content-entity .summary > [class^="summary-"] > span.amount{
	font-weight: 600;
	color:var(--black-lam);
}
.content-entity .summary > .summary-total{
	font-weight: bold;
	font-size: 1.5rem;
	color:var(--black-lam);
	border-top: 2px dashed var(--gray-300);
	margin-top: 0.5rem;
  	padding-top: 0.5rem;
}
.content-entity .summary > .summary-total > span.amount{
	font-size: 2rem;
	font-weight: bold;
}
.content-entity [class^="empty-"]{
	text-align: center;
	padding: 1rem;	
}
.content-entity [class^="empty-"] > .icon{
	margin: 0 auto;
	margin-bottom: 0.5rem;
}
.content-entity [class^="empty-"] > h3{
	font-weight: 600;
	font-size: 1.125rem;
	color:var(--black-lam);
	margin-bottom: 0.25rem;
}
.content-entity [class^="empty-"] > p{
	color:var(--gray-700);
	max-width: 20rem;
	margin:0 auto;
	margin-bottom: 1.5rem;
}
.content-entity .collections-in {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem;
}
@container (max-width: 360px) {
.content-entity .header .tools{
	flex:1;
}
}
@media (max-width: 360px) {
.content-entity .header .tools{
	flex:1;
}
}