/* CONFIGURACION DE COLORES  fab302*/
:root {

    --bgtool: #a88954;

    --bgtoolbtn: #a88954;

    --bgtoolbtn_h: #a88954;

    -cliconsid: #a88954;

    --bghasid: #DCDCDC;

    --clfontsid_h: #a88954;

    --clfontactsid: #a88954;

    --clbshsid: #a88954;

}

/*background*/
.sidebar_cucs {
    background: #F5F5F5;
}

/*icono sidebar*/
.sidebar_cucs .webix_sidebar_icon {
    color: var(--cliconsid) !important;
}

/*Hover items sidebar*/
.sidebar_cucs .webix_tree_item.webix_selected,
.sidebar_cucs .webix_tree_item:hover,
.sidebar_cucs .webix_template:hover,
.sidebar_cucs .webix_menu.webix_sidebar_popup_list:hover,
.sidebar_cucs .webix_list_item.menu:hover,
.sidebar_cucs .webix_list_item.menu.webix_selected {
    background-color: var(--bghasid);
}

/*hover font items */
.sidebar_cucs .webix_tree_item:hover,
.sidebar_cucs .webix_list_item.menu:hover {
    color: var(--clfontsid_h) !important;
}

/*select item color font */
.sidebar_cucs div[aria-selected="true"]>span,
.sidebar_cucs div[aria-expanded="true"]>span,
.sidebar_cucs .webix_sidebar_popup_title,
.sidebar_cucs .webix_sidebar_popup_title.webix_selected,
.sidebar_cucs div.webix_sidebar_selected>span,
.sidebar_cucs a[aria-selected="true"] {
    color: var(--clfontactsid) !important;
}

/*box shadow items selected*/
.sidebar_cucs .webix_sidebar.webix_sidebar_left .webix_tree_item.webix_sidebar_selected+.webix_tree_leaves .webix_tree_item,
.webix_sidebar.webix_sidebar_left .webix_tree_item.webix_selected,
.webix_sidebar.webix_sidebar_left .webix_tree_item.webix_sidebar_selected,
.sidebar_cucs .webix_list_item.menu.webix_selected,
.sidebar_cucs.webix_sidebar_left .webix_tree_item.webix_sidebar_selected+.webix_tree_leaves .webix_tree_item {
    box-shadow: inset 2px 0 var(--clbshsid) !important;
}

/* TOOLBAR */
.toolbar_cucs {
    background: var(--bgtool);
}

/*backgound btn toolbar*/
.toolbar_cucs button.webix_button {
    background: var(--bgtoolbtn);
}

/*color icon toolbar*/
.toolbar_cucs .webix_icon_btn {
    color: #FFFFFF !important;
}

/* animation button toolbar*/
.toolbar_cucs button.webix_button {
    transition-duration: 0.4s;
    /*box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);*/
}

/*button  hover and active toolbar*/
.toolbar_cucs button:hover,
.toolbar_cucs button:focus {
    background: var(--bgtoolbtn_h) !important;
}
.webix_view {
    font-family: Outfit, sans-serif !important;
    font-size: 14px;
    font-weight: 400;
    border-width: 0 !important;
    color: #475466;
    letter-spacing: 0.2px;
    -webkit-font-smoothing: antialiased;
    cursor: default;
    overflow: hidden;
    white-space: normal;
    -webkit-appearance: none;
}
.webix_primary .webix_button,
.webix_view .webix_pager_item_selected,
.webix_menu-x .webix_list_item,
.webix_menu-x .webix_list_item:active,
.webix_menu-x .webix_list_item:last-child,
.webix_button .webix_img_btn,
.webix_img_btn_top,
.webix_section>span,
.webix_popup_button.confirm>div,
.webix_menu-x .webix_list_item,
.webix_primary .webix_button:focus {
    /* background-color: #4856ab ; */
    color: #ffff;
    border-radius: 9999px;
    /* border-radius: 5px; */
    background: rgb(2, 0, 36);
    background: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgb(199 163 84) 0%, rgb(199 163 84) 100%) !important;
    /* background: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(153, 0, 28, 1) 0%, rgb(119, 0, 22) 100%); */
}

.webix_secondary .webix_button {
    background-color: #c3c3c3;
    color: black;
    border-radius: 5px;
}

.webix_green .webix_button {
    background-color: #3C6E45;
    color: white;
    border-radius: 5px;
}

.webix_green .webix_button:hover {
    background-color: #2a5432 !important;
    color: white;
    border-radius: 5px;
}

.webix_danger .webix_button {
    background-color: #cd9a46;
    border-radius: 5px;
}

.webix_danger .webix_button:hover {
    background-color: #b58c49;
    border-radius: 5px;
}

.webix_blue .webix_button {
    background-color: #006D99;
    color: rgb(255, 255, 255);
    border-radius: 5px;
}

.webix_blue .webix_button:hover {
    background-color: #095e80;
    color: rgb(255, 255, 255);
    border-radius: 5px;
}

.webix_menu-x .webix_list_item:last-child {
    transform: scale(0.92);
}

.webix_primary .webix_button:hover,
.webix_view .webix_pager_item_selected:hover,
.webix_menu-x .webix_list_item:hover {
    transform: scale(0.99);
    transition: 0.2s;
    background: rgb(2, 0, 36);
    background: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(153, 0, 28, 1) 0%, rgba(111, 0, 20, 1) 100%);
}

.webix_danger .webix_button:hover,
.webix_secondary .webix_button:hover {
    transform: scale(0.98);
    transition: 0.2s;
}


.webix_dtable .webix_ss_header .webix_hcolumn div.webix_last_row,
.webix_dtable .webix_ss_footer .webix_hcolumn>div:first-child,
.webix_dtable .webix_ss_footer .webix_hcell[row="0"],
.webix_span.webix_last_row {
    border-bottom: transparent !important;
    border-top: transparent !important;
}

.webix_alert .webix_popup_text,
.webix_alert .webix_popup_title,
.webix_confirm .webix_popup_text,
.webix_modal_box {
    box-shadow: inset 0 4px #c9a44f !important;
}


.webix_cal_body .webix_cal_block.webix_selected span,
input.webix_cal_done,
.webix_cal_body .webix_cal_select .webix_cal_day_inner {
    background-color: #c9a44f !important;
    color: #ffff !important;
}

.webix_secondary .webix_button>span,
.webix_view .webix_pager_item>span,
.webix_popup_button,
.webix_secundary .webix_button,
.webix_view .webix_pager_item,
.webix_inp_counter_prev,
.webix_inp_counter_next {
    color: rgb(0, 0, 0);
}

.webix_secondary .webix_button .webix_icon,
.webix_secondary .webix_button .webix_img_btn_text,
.webix_secondary .webix_button .webix_icon_btn {
    color: #000000;
}

/* ICONOS DE LOS BOTONES */
.webix_green .webix_button>span {
    color: white !important;
}

.webix_danger .webix_button>span {
    color: rgb(255, 255, 255) !important;
}

.webix_blue .webix_button>span {
    color: rgb(255, 255, 255) !important;
}

.webix_view .webix_pager_item {
    border-radius: 5px;
}

.webix_list_item.webix_selected,
.webix_dtable .webix_select_mark>div.webix_row_select {
    box-shadow: inset 2px 0 #c9a44f !important;
}

/*Cuando enfocas un input se aplica el color del borde*/
.webix_el_richselect .webix_inp_static:focus,
div.webix_inp_static:focus,
input:focus,
textarea:focus,
.webix_focused .webix_inp_static,
select:focus,
.webix_view .webix_dt_editor input {
    border: 1px solid #c9a44f !important;
}

.webix_multicombo_input:focus {
    border: none !important;
}

.webix_el_richselect .webix_inp_static,
div.webix_inp_static,
input,
textarea,
select {
    border-radius: 10px !important;
}

select>option {
    background-color: #F9DFE3 !important;
    color: black !important;
}

.webix_input_icon,
.webix_cal_month_name:hover,
.webix_cal_next_button:hover,
.webix_cal_prev_button:hover,
.webix_cal_month_name:focus,
.webix_cal_next_button:focus,
.webix_cal_prev_button:focus,
.webix_el_radio .webix_radio_1 .webix_custom_radio:before,
.webix_cal_body .webix_cal_event,
.webix_cal_icon_clear:hover,
.webix_cal_icon_today:hover,
.webix_custom_checkbox:focus,
.webix_custom_checkbox:before,
.wxi-checkbox-blank:before,
.wxi-checkbox-marked:before,
.webix_cal_month_name:focus,
.webix_all_tabs .webix_tab_more_icon .webix_icon {
    color: #c9a44f !important;
}

.webix_cal_body .webix_cal_day_disabled,
.webix_cal_body .webix_cal_day_disabled.webix_cal_event {
    background-color: #fbfbfd !important;
    color: #94A1B3 !important;
}

.webix_cal_body .webix_cal_today .webix_cal_day_inner {
    box-shadow: inset 0 0 0 1px #c9a44f !important;
}

/* Color de los tabs */
.webix_all_tabs {
    background-color: #F5F9FA;
}

.webix_all_tabs .webix_item_tab {
    transition: box-shadow .3s ease-in-out !important;
}

.webix_all_tabs .webix_item_tab.webix_selected {
    box-shadow: inset 0px -4px #c9a44f !important;
    color: black !important;
}

div.webix_item_tab {
    color: gray !important;
}

div.webix_item_tab:hover {
    box-shadow: inset 0 -4px #9C9B9A !important;
}


/* .webix_header>div,
.headWin {
    background-color: #e7e7e7 !important;
    color: rgb(62, 68, 72);
} */


.webix_el_box .webix_disabled_box>button {
    box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #93939f 0 -4px 0 inset !important;
}

.webix_uploader>.webix_el_box>button,
.webix_uploader>.webix_el_box>button>span {
    color: #ffffff !important;
}

.webix_switch_box.webix_switch_on {
    background-color: #4a5559 !important;
}

/*.webix_window {
   border-radius: 5px;
}*/

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.loading-content {
    text-align: center;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    z-index: 5;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--color-fade);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    z-index: 5;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.badge.badge-pill {
    padding-right: .6em;
    padding-left: .6em;
    border-radius: 10rem;
}

.green{
	color: #01fd8c;
}
.status{
	position:relative;
	top:-20px;
	left:20px;
	font-size:10px !important;
	text-shadow: -1px 0 #ffffff, 0 1px #ffffff, 1px 0 #ffffff, 0 -1px #ffffff;
}

.webix_view.toolbar_photo>div {
    /*padding: 0px;*/
    padding: 3px 0 0 3px;
    background: var(--bgtool);
}

.mainphoto {
    /*border-radius: 25px;
    width: 38px;
    height: 38px;
    background: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(153, 0, 28, 1) 0%, rgb(119, 0, 22) 100%);
	z-index: 2;
    cursor: pointer;*/
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    width: 32px;
    height: 32px;
    background: #ffffff;
    cursor: pointer;   
}

.mainphoto:hover {
    opacity: 0.8;
}

/* Muestra la inicial del usuario*/
.userLetter{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: #c9a44f;
}

/* profile menu */
.webix_list.profile_menu .webix_list_item {
    border: none;
}

/* Boton iniciar sesión (login) */
.read-more-btn {
	border: 2px solid #c9a44f;
	font-size: 14px;
	cursor: pointer;
	padding: 10px 20px;
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-weight: 600;
	position: relative;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
	background: #c9a44f;
	color: #fff;
	border-radius: 2px;
	margin-top: 25px;
	text-decoration: none;
}

.read-more-btn:hover {
    background: transparent;
    color: #c9a44f;
}
.label {
    overflow: hidden;
    padding: 10px 0;
    text-align: center;
}
.label > span {
    display: inline-block;
    padding: 5px 20px;
    font-weight: 900;
    font-size: 1rem;
    color: #444;
    position: relative;
}
.label > span:before, .label > span:after {
    content: "";
    position: absolute;
    background: #ccc;
    height: 1px;
    width: 9999px;
    top: 50%;
    display: block;
}

.label > span:before {
    left: 0;
    transform: translatex(-100%);
}
.label > span:after {
    right: 0;
    transform: translatex(100%);
}
/*.label-left {
    text-align: left;
}
.label-left > span {
    padding-left: 0;
}
.label-left:before {
    display: none;
}
.label-right {
    text-align: right;
}
.label-right > span {
    padding-left: 0;
}
.label-right:after {
    display: none;
}
*/

.float-container {
    position: fixed;
    top: 33%;
    right: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    width: auto;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
}

.float-container a {
    z-index: 99;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 240px;
    height: 60px;
    margin-right: -190px;
    margin-bottom: 10px;
    padding: 10px 20px;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    color: white;
    border-color: #46b8da;
    border-radius: 5px 0 0 5px;
    background-color: #c6a259;
    -webkit-box-shadow: 0 2px 4px #7d7d7d;
    box-shadow: 0 2px 4px #7d7d7d;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    font-family: sans-serif;
}

.float-container a:hover {
    margin-right: 0;
    background-color: #c6a259;
    -webkit-box-shadow: 0 2px 4px #7d7d7d;
    box-shadow: 0 2px 4px #7d7d7d;
}

.float-container .icon:before {
    font-family: "Font Awesome 5 Free";
    margin-right: 25px;
    -webkit-transition: all 0.25s ease-in-out;
    transition: all 0.25s ease-in-out;
}

.icon.one:before {
   content: "\f249";
}
.icon.two:before {
   content: "\f359";
}
/* Media queries */
@media screen and (max-width:440px)
{
	.float-container .icon:last-child {
		display: none;
	}
    .float-container
    {
        position: fixed;
        top: auto;
        bottom: 0;

        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
            -ms-flex-direction: row;
                flex-direction: row;

        width: 100%;

        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: auto;
        -webkit-box-align: auto;
        -ms-flex-align: auto;
        align-items: auto;
    }
    .float-container a.icon
    {
            right: 0;
            bottom: 0;

            width: 100%;
            margin-right: 0;
            margin-bottom: 0;
            padding: 5px;

            border-radius: 0;
            -webkit-box-shadow: 0 0 0 #7d7d7d;
                    box-shadow: 0 0 0 #7d7d7d;
            -webkit-box-pack: center;
            -ms-flex-pack: center;
            justify-content: center;
            border-left: 1px solid darkorange;
            border-right: 1px solid darkorange;
    }
}
.webix_view.webix_control .webix_disabled_box .webix_button {
    position: relative;
    z-index: 1;
    background: transparent !important;
    border-color: #8597b1;
    text-shadow: none;
    color: #8597b1 !important;
    background-color: transparent;
    color: #e8e8e8;
    font-size: 15px;
    font-weight: 600;
    border-radius: 0;
    border: none;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 2px 0 #8597b1;
}
.webix_dataview_item {
    border-right-color: #EDEFF0;
    line-height: 24px;
    border: 0;
}
.webix_el_select select{
    padding: 0px 15px 0px 10px;
}
.show-icon {
    margin-left: auto;
    font-size: 24px;
    color: #d9534f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    padding: 10px;
}
.show-icon:hover {
    color: #ffffff;
    background-color: #99001c;
    transition: 0.5s;
}

.delete-btn-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ff3b30; 
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.2s ease;
    box-shadow: 0 2px 6px rgba(255, 59, 48, 0.35);
}
.delete-btn-wrap:hover {
    transform: scale(1.1);
    background-color: #e0231a;
}
.delete-btn-wrap i {
    color: #fff;
    font-size: 18px;
}

.delete-btn-wrap.deleting {
    animation: trashShake 0.4s ease forwards;
}
@keyframes trashShake {
    0%   { transform: scale(1) rotate(0deg); }
    20%  { transform: scale(1.1) rotate(-8deg); }
    40%  { transform: scale(1.1) rotate(8deg); }
    60%  { transform: scale(0.95) rotate(-4deg); }
    80%  { transform: scale(1.05) rotate(2deg); }
    100% { transform: scale(0) rotate(0deg); opacity: 0; }
}

.restore-btn-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #34c759; 
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.2s ease;
    box-shadow: 0 2px 6px rgba(52, 199, 89, 0.35);
}
.restore-btn-wrap:hover {
    transform: scale(1.1);
    background-color: #28a745;
}
.restore-btn-wrap i {
    color: #fff;
    font-size: 18px;
}
.pdf-btn-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e02424; /* rojo típico de PDF */
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(224, 36, 36, 0.35);
}
.pdf-btn-wrap:hover {
    transform: scale(1.1);
    background-color: #b91c1c;
    box-shadow: 0 4px 10px rgba(224, 36, 36, 0.45);
}
.pdf-btn-wrap:active {
    transform: scale(0.95);
}
.pdf-btn-wrap i {
    color: #fff;
    font-size: 18px;
    pointer-events: none; /* evita que el ícono robe el evento de clic al div */
}
.depen-btn-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    background-color: #2563EB;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(224, 36, 36, 0.35);
}
.grupo-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
}

.grupo-float .icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #a88954;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    text-decoration: none;
    transition: transform 180ms ease, background-color 180ms ease,
        box-shadow 180ms ease;
}

.grupo-float .icon:hover {
    background: #927546;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
    transform: translateY(-2px);
}

.grupo-float .icon:focus-visible {
    outline: 3px solid #a88954;
    outline-offset: 4px;
}

.grupo-float svg {
    width: 28px;
    height: 28px;
}