html{
    padding: 0;
    margin: 0;
    overflow:hidden;
}
body{
    background-color: #ebedf4;
    padding: 10px;
    overflow:hidden;
}

#Word_wrap,
header{
    background-color:#f6f6f6;
}

.particles-js-canvas-el{
    position: fixed;
    top: 0;
}

label.error{
    font-size: .8rem;
    color:#b02a37 !important;
}

.form-select:disabled,
input.form-control:disabled,
textarea.form-control:disabled,
input.form-control:read-only,
textarea.form-control:read-only{
    cursor: no-drop;
    background-color: rgba(233, 236, 239, 0.88);
}

.accordion .card-body{
    border-top-right-radius: 0;
    border-top-left-radius: 0;
}

.acceskey{
    text-decoration: underline;
}

.introjs-button i{
    font-family: "Font Awesome 7 Pro";
}

.NMHide{
    display: inline;
}
.NMShow{
    display: none;
}

body.NoMenu .NMHide{
    display: none;
}

body.NoMenu .NMShow{
    display: inline;
}


.BackCli, 
.CliLF, 
.CliLF #MainMenuLst>li>a, 
.CliLF #MainMenuLst>li>div>ul>li>a, 
.CliLF #MainMenuLst button, 
.card-header, 
.card-header h4, 
aside button.BtnToggleMenu,
.modal-header .modal-title,
.modal-header button,
.modal-header,
.btn-user,
.popover-header{
    color: #ffffff;
}

.BackCli, 
.CliLF, 
.CliLF 
#MainMenuLst, 
.card-header,
.modal-header .modal-title,
.modal-header button,
.modal-header,
.btn-user,
.popover-header{
    background-color: #000;
}

.btn-user:hover{
    background-color: #a3d812;;
}

/*Loading begging*/
.loading{    
    display: none;
    position: fixed; 
    width: 100%;
    height: 100vh; 
    background-color: rgba(0, 0, 0, .8); 
    z-index: 2000; 
    font-size: 2rem;
    top: 0;
    left: 0;
}

.loading>div{
    position: absolute; 
    top:50%; 
    left: 50%; 
    transform: translate(-50%,-50%);
}

.loading span{
    animation: color_change 1s infinite alternate;    
}


@keyframes color_change {
    0% { color: #3be8b0; }
    25% { color: #1aafd0; }
    50% { color: #6a67ce; }
    75% { color: #ffb900; }    
    100% { color: #fc636b; }
}

/*Loading end*/


/*Pagina de Loging*/
#Login_Main_Wrapper {
    height: 100vh;
    padding: 30px;
}

#Login_Main_Wrapper>img,
#Login_Main_Wrapper #Logo  {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -160px;
    margin-top: -280px;
    width: 150px;
}

#Login_Main_Wrapper .Toggle{
    padding: 60px;
    position: relative;
}

#Login_Main_Wrapper h2{
    font-size: 22px;
    padding-bottom: 5px;
    border-bottom: 2px solid #FFF;
}

#Log_Wrap {
    width: 400px;
    height: 400px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -200px;
    margin-top: -130px;
}

#Caja svg{
    width: 400px;
    height: 400px;
}

#Caja {
    transform: rotate(-15deg);
    position: absolute;    
}

.byIgemas {
    width: 70px;
    position: absolute;
    bottom: -5px;
    left: 50%;
    margin-left: 15px;
    text-align: center;
    color: #FFFFFF;
    font-size: 10px;
    transform: rotate(-17deg);
}

.byIgemas a{
    color: #FFFFFF;
    text-decoration: none;
}

#Login_Main_Wrapper label.error{
    display: none !important;
}

@media (max-width: 500px){
    #Login_Main_Wrapper h2{
        font-size: 20px;
        margin-top: 15px;
    }
        
    .byIgemas {
        margin-left: -15px;
        transform: rotate(-90deg);
        position: fixed;
        bottom: 25px;
        left: auto;
        width: auto;
        right: -15px;
    }
    
    #Login_Main_Wrapper .Toggle{
        padding: 20px 0;        
    }
    
    #Login_Main_Wrapper .btn{
        font-size: 14px;            
    }
        
    #Login_Main_Wrapper>img,
    #Login_Main_Wrapper #Logo{
        width: 100px;
        position: static;
        margin: 0px auto;
        margin-top: 0!important;
        display: block;
    }
        
    #Login_Main_Wrapper #Caja svg{
        display: none;
    }
        
    #Login_Main_Wrapper #Log_Wrap{
        width: 100%;
        margin: 0 auto;
        position: relative;
        height: auto;
        left: 0;
        top: 0;
    }
}

/*Pagina de Loging*/

 /*scroll begin*/
    .OverflowCSS::-webkit-scrollbar,
    .dt-scroll-body::-webkit-scrollbar {
        width: 8px;
        height: 8px;
        display: none;
    }

    .OverflowCSS:hover::-webkit-scrollbar,
    .dt-scroll-body:hover::-webkit-scrollbar {
        display: block;
    }

    /* Ponemos un color de fondo y redondeamos las esquinas del thumb */
    .OverflowCSS::-webkit-scrollbar-thumb,
    .dt-scroll-body::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

    /* Cambiamos el fondo y agregamos una sombra cuando esté en hover */
    .OverflowCSS::-webkit-scrollbar-thumb:hover,
    .dt-scroll-body::-webkit-scrollbar-thumb:hover {
        background: #b3b3b3;
        box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.2);
    }

    /* Cambiamos el fondo cuando esté en active */
    .OverflowCSS::-webkit-scrollbar-thumb:active,
    .dt-scroll-body::-webkit-scrollbar-thumb:active {
        background-color: #999999;
    }

    /* Ponemos un color de fondo y redondeamos las esquinas del track */
    .OverflowCSS::-webkit-scrollbar-track,
    .dt-scroll-body::-webkit-scrollbar-track {
        background: #e1e1e1;
        /*border-radius: 4px;*/
    }

    /* Cambiamos el fondo cuando esté en active o hover */
    .OverflowCSS::-webkit-scrollbar-track:hover,
    .OverflowCSS::-webkit-scrollbar-track:active,
    .dt-scroll-body::-webkit-scrollbar-track:hover,
    .dt-scroll-body::-webkit-scrollbar-track:active {
      background: #d4d4d4;
    }
/*scroll end*/

/*Joddit*/
    .jodit-toolbar-button_SEP_LS1,
    .jodit-toolbar-button_SEP_LS2{
        background-color: yellow;
        margin-left: -8px !important;
        margin-right: -8px !important;
        border-top: 1px solid;
        border-bottom: 1px solid;
    }

    .jodit-toolbar-button_SEP_LS1 .jodit-toolbar-button__button:hover,
    .jodit-toolbar-button_SEP_LS2 .jodit-toolbar-button__button:hover{
        background-color:yellow !important;
    }

    .jodit-toolbar-button_SEP_LS1 .jodit-toolbar-button__text,
    .jodit-toolbar-button_SEP_LS2 .jodit-toolbar-button__text{
        font-weight: bold;
    }

/*Joddit*/

/*dark-mode beging*/
    body.dark-mode,
    body.dark-mode .modal-body{
        background-color: #1F2937;
    }

    body.dark-mode .modal-header .btn-close{
        --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e")
    }

    body.dark-mode header,
    body.dark-mode #Word_wrap,
    body.dark-mode .modal-footer{
        background-color: #111827;
    }

    body.dark-mode aside,    
    body.dark-mode header,    
    body.dark-mode #Info_wrap,    
    body.dark-mode #Word_wrap,
    body.dark-mode.NoMenu aside,
    body.dark-mode.NoMenu header,
    body.dark-mode.NoMenu #Info_wrap,
    body.dark-mode.NoMenu #Word_wrap{
        box-shadow: 0 0 10px #888;
    }
    
    body.dark-mode .dropdown-divider{
        border-top: 1px solid #888;
    }

    body.dark-mode hr{
        color: #888;
    }

    body.dark-mode .form-control,
    body.dark-mode .form-select,
    body.dark-mode h1:not(.fs-4),
    body.dark-mode h2,
    body.dark-mode h3,
    body.dark-mode h4,
    body.dark-mode h5,
    body.dark-mode label:not(.invalid-feedback):not(.btn):not(.jodit-ui-checkbox){
        background-color: transparent;
        color: #ffffff;
    }

    /* Dark mode support for Bootstrap bg-light */
    body.dark-mode .bg-light {
        background-color: #374151 !important;
        color: #e5e7eb !important;
    }

    /* Ensure h1.fs-4 gets white text in dark mode */
    body.dark-mode h1.fs-4 {
        color: #ffffff;
    }

    body.dark-mode .form-select{
        --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    }

    body.dark-mode .bootstrap-select>.dropdown-toggle.bs-placeholder{
        color: #ffffff;
    }

    body.dark-mode .bootstrap-select>.dropdown-toggle:after{
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
        width: 16px;
        height: 12px;
        background-repeat: no-repeat;
        background-position: center center;
        background-size: 16px 12px;
        border:none;
    }

    body.dark-mode .form-text{        
        color: rgba(255, 255, 255, .7);
    }

    body.dark-mode .form-select option,
    body.dark-mode .form-select optgroup{
        background-color: #1F2937;
        color: #ffffff;
    }

    body.dark-mode .form-select:disabled,
    body.dark-mode input.form-control:disabled,
    body.dark-mode textarea.form-control:disabled,
    body.dark-mode input.form-control:read-only,
    body.dark-mode textarea.form-control:read-only{    
        background-color: rgba(255, 255, 255, 0.1);
    }

    body.dark-mode .text-muted{
        color: #cecece !important;
    }

    body.dark-mode input::placeholder,
    body.dark-mode textarea::placeholder{
        color: #cecece !important;
    }
    
    footer,
    footer a,
    .ShortCut{
        color:#212529;
        opacity: .75;
    }    
    body.dark-mode .ShortCut,
    body.dark-mode .datatable,
    body.dark-mode #Main_Wrapper,
    body.dark-mode .dt-container{
        color:#ffffff;
    }

    body.dark-mode footer,
    body.dark-mode footer a{
        color:#9CA3AF;
    }

    body.dark-mode input:not(.jodit-ui-input__input) {
      color-scheme: dark;
    }

    body.dark-mode .card-body,
    body.dark-mode ul:not(#Consultas_Wrap) .list-group-item {
        background-color: #1F2937;
    }

    body.dark-mode .bootstrap-select div.dropdown-menu,
    body.dark-mode .bootstrap-select ul.dropdown-menu{
        background-color: #1F2937;
        border-color: #fefefe;
    }

    body.dark-mode .bootstrap-select ul.dropdown-menu li a,
    body.dark-mode ul:not(#Consultas_Wrap) .list-group-item{
        color:#ffffff;
    }

    body.dark-mode .bootstrap-select ul.dropdown-menu li a:hover{
        background-color: #0d6efd;
        color:#fefefe;
    }

    #ExtraNotaData .bootstrap-select .dropdown-menu li{
        border-bottom: 1px solid #fefefe;
    }
    
    body.dark-mode .jodit-container:not(.jodit_inline) .jodit-workplace,
    body.dark-mode .jodit-dialog__content{
        /*background-color: #1F2937;*/
        background-color: #ffffff;
        color: #000000;
    }

    body.dark-mode .jodit-toolbar__box:not(:empty):not(:empty),
    body.dark-mode .jodit-status-bar,
    body.dark-mode .jodit-dialog__header,
    body.dark-mode .jodit-dialog__footer button{
        background-color: #111827;
        color:#ffffff;
    }
    body.dark-mode .jodit-toolbar__box .jodit-icon,
    body.dark-mode .jodit-toolbar-button__trigger,
    body.dark-mode .jodit-dialog__panel .jodit-icon{
        fill:#ffffff;
        stroke: #ffffff;
    }

    body.dark-mode .jodit-dialog_prompt input{
        color: #000000;
    }

    body.dark-mode .jodit-toolbar-button__button:hover:not([disabled]),
    body.dark-mode .jodit-toolbar-button__trigger:hover:not([disabled]){
        background-color:#0dcaf0;
    }

    

    body.dark-mode .tooltip.show{
        opacity: 1;
    }
    body.dark-mode .tooltip .tooltip-inner{
        background-color: #0dcaf0;
    }

    body.dark-mode .bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before{
        border-right-color: #0dcaf0;
    }

    body.dark-mode .bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before{
        border-left-color: #0dcaf0;
    }

    body.dark-mode .bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before{
        border-bottom-color: #0dcaf0;
    }

    body.dark-mode .bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before{
        border-top-color: #0dcaf0;
    }

    body.dark-mode .popover.EditField .popover-body{
        background-color: #1F2937;
        border-radius: 5px;
    }
    body.dark-mode .bs-popover-auto[data-popper-placement^=right]>.popover-arrow::before,
    body.dark-mode .bs-popover-auto[data-popper-placement^=right]>.popover-arrow::after{
        border-right-color: #1F2937;
    }
     
    body.dark-mode .jodit-filebrowser-files{
        background-color: #1F2937;
    }
    
    body.dark-mode .jodit-dialog__panel{
        background-color: #111827;
    }
/*dark-mode end*/
    .accordion .card:not(:first-child) .card-header{
        border-radius: 0;
    }

    aside{
        position: fixed;
        z-index: 1050;
        height: calc(100dvh - 20px);
        max-height: -webkit-fill-available;
        width: 280px;
        max-width: 85vw;
        left: -300px; /* Hidden by default on mobile */
        border-radius: 10px;        
        box-shadow: 0 0 5px 0 #0f172a;
        transition: left 0.3s ease;
    }
    aside.Open{
        left: 8px;
    }
    aside.Close{
        left: -300px;
    }

    body.NoMenu #Main_Wrapper,
    #Main_Wrapper{
        width: 100%;
        position: relative;
    }

    body.NoMenu header,
    header{
        height: 50px;        
        box-shadow: 0 0 5px 0 #0f172a;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }
    
    #Info_wrap{        
        box-shadow: 0 0 5px 0 #0f172a;
        height: 50px;
        margin: 10px 0;
    }

    body.NoMenu #Word_wrap,
    #Word_wrap{
        height: calc(100dvh - 140px);        
        box-shadow: 0 0 5px 0 #0f172a;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }

    #Inf_Wrap{
        height: calc(100% - 24px);
    }

    #MainMenuLst{
        height: calc(100% - 140px);
    }
    
    #MainMenuLst li.active{
        font-weight: bold;
    }

    @media (max-width: 767px) {
        body { padding: 5px; }
        header { border-radius: 5px; }
        #Word_wrap { 
            height: calc(100dvh - 130px); 
            border-radius: 5px;
        }
        .table th:nth-child(2), .table td:nth-child(2), /* SKU */
        .table th:nth-child(5), .table td:nth-child(5)  /* Estado Meta */
        {
            display: none !important;
        }
        .card-header { padding: 0.5rem !important; }
        .card-header h5 { font-size: 1rem; }
        .card-header .btn span { display: none; } /* Hide button text on mobile */
        .card-header .btn i { margin: 0 !important; }
        .card-header .input-group { width: 120px !important; }
    }
    
    ul#MainMenuLst li button.btn-toggle:before,
    ul#MainMenuCLst li button.btn-toggle:before {
        width: 1.25em;
        line-height: 0;
        position: absolute;
        right: 20px;
        top:25px;
        font-family: "Font Awesome 7 Duotone";
        content: "\f054\f054";
        transition: transform .35s ease;
        transform-origin: 0.5em 50%;
    }

    ul#MainMenuLst li button.btn-toggle[aria-expanded="true"]:before,
    ul#MainMenuCLst li button.btn-toggle[aria-expanded="true"]:before {
        transform: rotate(90deg);
    }

    ul#MainMenuLst li .collapse ul li,
    ul#MainMenuCLst li .collapse ul li{
        position: relative;
    }

    ul#MainMenuLst li .collapse ul li.active a:before{
        position: absolute;
        left: 8px;
        top: 12px;
        font-family: "Font Awesome 7 Pro";
        content: "\f00c";
        font-size: 12px;
    }

    ul#MainMenuLst li .collapse ul li:not(.active) a:before{
        position: absolute;
        left: 8px;
        top: 12px;
        font-family: "Font Awesome 7 Pro";
        content: "\f068";
        font-size: 12px;
    }


    ul#MainMenuCLst>li>a.included:after,
    ul#MainMenuCLst>li.includedAll>button:after{
        position: absolute;
        right: 8px;
        top: 15px;
        font-family: "Font Awesome 7 Pro";
        content: "\f00c";
        font-size: 12px;
        color: #23E03A;
    }

    ul#MainMenuCLst li .collapse ul li a.included:before{
        position: absolute;
        left: 8px;
        top: 12px;
        font-family: "Font Awesome 7 Pro";
        content: "\f00c";
        font-size: 12px;
        color: #23E03A;
    }

    ul#MainMenuCLst>li>a.excluded:after,
    ul#MainMenuCLst>li.excludedAll>button:after{
        position: absolute;
        right: 8px;
        top: 16px;
        font-family: "Font Awesome 7 Pro";
        content: "\f05e";
        font-size: 12px;
        color:#FF0000;
    }

    ul#MainMenuCLst>li.NotAll>button:after{
        position: absolute;
        right: 5px;
        top: 12px;
        font-family: "Font Awesome 7 Pro";
        content: "\f068";
        font-size: 17px;
        color:#FFFF00;
    }    

    ul#MainMenuCLst li .collapse ul li a.excluded:before{
        position: absolute;
        left: 8px;
        top: 12px;
        font-family: "Font Awesome 7 Pro";
        content: "\f05e";
        font-size: 12px;
        color:#FF0000;
    }

    ul#MainMenuLst>li>div>ul,
    ul#MainMenuCLst>li>div>ul{
        background-color: rgba(255, 255, 255, 0.1);
    }

@media (min-width: 768px){
    aside{
        display: block;
        position: static;
        float: left;
        width: 250px;
        height: calc(100dvh - 20px);        
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        left: 0 !important;
        transition: none;
    }
    
    body.NoMenu aside{
        display: none;
    }

    #Main_Wrapper{
        float: right;
        width: calc(100vw - 280px);
        height: calc(100dvh - 20px);
    }
    
    header{
        border-top-left-radius: 0;
    }

    #Word_wrap{     
        border-bottom-left-radius: 0;       
    }
}

/*Noty custom begin*/
.noty_theme__bootstrap-v4.noty_bar {
    margin: 4px;
    z-index: 13000;
}

.noty_has_timeout.noty_has_progressbar .noty_progressbar {
    opacity: 0.7;
}

.noty_theme__bootstrap-v4.noty_bar .noty_body{
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
}

#noty_layout__inline{
    position: fixed;
    top: 250px;
    width: 300px;
    left: 50%;
    margin-left: -150px;
    border-radius: .25rem;
    z-index: 10001;
    border:3px solid #888888;
    background-color: #fefefe;
}

#noty_layout__inline:before{
    content: "";
    position: absolute;
    bottom:-150px;
    left: 50%;
    margin-left: -50px;
    width: 94px;
    height: 138px;
    background-size: cover;
    background-repeat: no-repeat;    
}

#noty_layout__inline.success:before{
    background-image: url(../img/Gema/Exito.png);
}

#noty_layout__inline.warning:before{
    background-image: url(../img/Gema/Warning.png);
}

#noty_layout__inline.error:before{
    background-image: url(../img/Gema/Error.png);
}

#noty_layout__inline.information:before{
    background-image: url(../img/Gema/Gema.png);
}

#noty_layout__inline:after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    margin-bottom: -10px;
    margin-left: -10px;
    z-index: 12000;
    width: 20px;
    height: 20px;
    border: 3px solid transparent;        
    transform: rotate(45deg);
    background-color: #fefefe;
    border-bottom-color: #888888;
    border-right-color: #888888;
}

#noty_layout__inline .noty_type__info{
    background-color: #E4F3F1;  
    border:3px solid #31708f;
}

#noty_layout__inline .noty_type__warning{
    background-color: #F8E0CD;
    border:3px solid #8a6d3b;
}

#noty_layout__inline .noty_type__error{
    background-color: #EECDCD;
    border:3px solid #a94442;
}

#noty_layout__inline .noty_type__success{
    background-color: #F4F7DC;
    border:3px solid #3c763d;
}
/*Noty custom end*/

/*table*/
.table-sticky th:first-child,
.table-sticky td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
}
/*table*/

/*datatable*/
.dtr-details li{
    text-wrap: auto;
}

table tr{
    white-space: nowrap;    
}

.dt-button-background{
    background: rgba(0, 0, 0, 0.7);
    background: radial-gradient(ellipse farthest-corner at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}

td.handPointer{
    cursor: pointer;
}

td.details-control{
    position: relative; 
    cursor: pointer;
}

table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td.dtr-control:before, 
table.dataTable.dtr-inline.collapsed>tbody>tr.parent>th.dtr-control:before,
tr.dt-hasChild td.details-control:before {
    font-size: 32px !important;
    content: '-' !important;
}

table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before, 
table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before,
td.details-control:before {
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 50%;
    height: 16px;
    width: 16px;
    display: block;
    position: absolute;
    color: #333;
    background: none;
    box-shadow: none;
    font-weight: bold;
    font-size: 24px;
    text-align: center;    
    line-height: 14px;
    content: '+';    
    border-top: none !important;
    border-left: none !important;
    border-bottom: none !important;
    border-right: none !important;
}

table.table-dark.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before, 
table.table-dark.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before,
table.table-dark td.details-control:before{
    color: #fff;
}

.dt-action .btn-group button:before{
    border: none;
    content: none;
}


table.dataTable>thead>tr>td.select-checkbox, 
table.dataTable>thead>tr>th.select-checkbox,
table.dataTable>tbody>tr>td.select-checkbox, 
table.dataTable>tbody>tr>th.select-checkbox{
    position: relative;
    cursor: pointer;
}

table.dataTable>thead>tr>td.select-checkbox:before, 
table.dataTable>thead>tr>th.select-checkbox:before{
    content: " ";
    margin-top: -5px;
    margin-left: -6px;
    border: 1px solid black;
    border-radius: 3px;    
}

body.dark-mode table.dataTable>thead>tr>td.select-checkbox:before, 
body.dark-mode table.dataTable>thead>tr>th.select-checkbox:before,
body.dark-mode table.dataTable>tbody>tr>td.select-checkbox:before, 
body.dark-mode table.dataTable>tbody>tr>th.select-checkbox:before{
    border: 1px solid white;
}

table.dataTable>thead>tr>td.select-checkbox:before, 
table.dataTable>thead>tr>th.select-checkbox:before, 
table.dataTable>thead>tr>td.select-checkbox:after, 
table.dataTable>thead>tr>th.select-checkbox:after{
    display: block;
    position: absolute;
    top: 1.2em;
    left: 50%;
    width: 12px;
    height: 12px;
    box-sizing: border-box;
}

table.dataTable>thead>tr>td.select-checkbox.selectAll:after, 
table.dataTable>thead>tr>th.select-checkbox.selectAll:after{
    content: "✓";
    font-size: 20px;
    margin-top: -19px;
    margin-left: -6px;
    text-align: center;
    text-shadow: 1px 1px #b0bed9, -1px -1px #b0bed9, 1px -1px #b0bed9, -1px 1px #b0bed9;
}

.dt-scroll-head table{
    overflow: hidden;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.dt-scroll-head table.dataTable>thead>tr>th:first-child{
    border-top-left-radius: 5px;
}

.dt-scroll-head table.dataTable>thead>tr>th:last-child{
    border-top-right-radius: 5px;
}

.dt-scroll-body table{
    /*overflow: hidden; No se puede apiclar porque oculta el menu*/
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

table.dataTable>tbody:not(.rounded-0)>tr:last-child>td:first-child,
table.dataTable>tfoot>tr:last-child>th:first-child{
    border-bottom-left-radius: 5px;
}

table.dataTable>tbody:not(.rounded-0)>tr:last-child>td:last-child,
table.dataTable>tfoot>tr:last-child>th:last-child{
    border-bottom-right-radius: 5px;
}

div.dt-scroll-body {
    border: none;
    background: none !important;
}

div.DTS div.dt-scroll-body table{
    background-color: transparent;
}


tr.selected .dt-action button.btn-link{
    color:#ffffff;
}
/*datatable*/


/*DropDown Add*/
.dropdown-menu li {
    position: relative;
}
.dropdown-menu .dropdown-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: -7px;
}
.dropdown-menu .dropdown-submenu-left {
    right: 100%;
    left: auto;
}
.dropdown-menu > li:hover > .dropdown-submenu {
    display: block;
}
/*DropDown Add*/

/*Datatable*/
body.dt-print-view{
    background-color: #ffffff;
}

div.dt-container div.dt-info{
    padding: 5px 0;
    text-align: center;
}

.dark-mode div.dt-button-collection,
.dark-mode .btn-group .dropdown-menu{
    background-color: #1F2937;
}

.dark-mode div.dt-button-collection a.dropdown-item,
.dark-mode .btn-group .dropdown-menu a.dropdown-item{
    color: #ffffff;
}

.dark-mode div.dt-button-collection a.dropdown-item:focus:not(.active), 
.dark-mode div.dt-button-collection a.dropdown-item:hover:not(.active),
.dark-mode .btn-group .dropdown-menu a.dropdown-item:focus:not(.active),
.dark-mode .btn-group .dropdown-menu a.dropdown-item:hover:not(.active){
    color: #000000;
}

.dark-mode .dtsb-searchBuilder{
    color:#ffffff;
}

.dtb-popover-close{
    color:#000000;
    line-height: 18px;
}

.dt-datetime-date{
    color:#000000;
}

/*Datatable*/

/*bootstrap-select*/
#ExtraNotaData .bootstrap-select .dropdown-menu li{
    border-bottom: 1px solid #cecece;
}

#ExtraNotaData .bootstrap-select .dropdown-menu li small{
    padding-left: 0;
    display: block;
}
/*bootstrap-select*/

/*WhatsApp*/
    #WhatsApp_Body{    
        background: #efeae2 url(/img/WAImg/WA_bg.png);
    }

    #WhatsApp_Body ul{
        padding: 0 15px;
        color: #333;
    }


    #WhatsApp_Body ul li.S{
        width: 80%;
        margin-left: 20%;
        background-color: #d9fdd3;
        margin-bottom: 7.5px;
        margin-top: 7.5px;
        border-radius: 7.5px;
        padding: 10px 10px 12px 10px;
    }

    #WhatsApp_Body ul li.R{
        width: 80%;
        background-color: #ffffff;        
        margin-bottom: 7.5px;
        margin-top: 7.5px;
        border-radius: 7.5px;
        padding: 10px 10px 12px 10px;
    }

    #WhatsApp_Body ul li.date{
        text-align: center;
        margin: 15px 0;
    }

    #WhatsApp_Body ul li.date span{
        background: #fff;        
        padding: 5px;
        border-radius: 6px;
        text-align: center;
    }

    .WaBa_Head{
        margin-bottom: 8px;
        font-size: 15px;
        font-weight: bold;
        line-height: normal;
    }

    .WaBa_Body{
        position: relative;
        padding-bottom: 10px;
    }

    .WaBa_Body .Time{
        position: absolute;
        right: 0px;
        bottom:-10px;
    }

    .WaBa_Body .Time i:first-child{
        margin-right: -5px;
    }
    
    .WaBa_Foot{
        border-top: 1px solid rgba(17, 27, 33, .06);
        margin-top: 15px;
        text-align: center;
        padding-top: 10px;
        color: #8696a0;
    }

    .WaBa_Img{
        background-color: #ffffff;
        border-radius: 10px;
        padding: 10px;
        margin-bottom: 5px;
    }

    .WaBa_Img img{
        margin: 0 auto;
        display: block;
    }

    .WaBa_Head .pdf,
    .WaBa_Body .pdf{
        background-color: #ddd;
        border-radius: 4px;
        padding: 25px;
    }

    .WaBa_Head .pdf img,
    .WaBa_Body .pdf img{
        max-width: 50px;
        margin: 0 auto;
        display: block;
    }

    #WhatsApp_Body img.emojione {
        margin: 0px !important;
        display: inline !important;      
        height: auto;
        width: 50px;
    }
/*WhatsApp*/


@media print {
    body,
    body.dark-mode{
        background-color:#ffffff;
    }

    body.dark-mode #PrintArea ul:not(#Consultas_Wrap) .list-group-item{
        color: #000000;
        background-color: #ffffff;

    }
}
/* =========================================
   Impersonation Banner (Sidebar)
   ========================================= */
.impersonation-panel {
    background: linear-gradient(160deg, rgba(233,69,96,0.18) 0%, rgba(15,52,96,0.45) 100%);
    border-left: 3px solid #e94560;
    border-bottom: 1px solid rgba(233, 69, 96, 0.25);
    padding: 0.7rem 0.9rem;
    position: relative;
    overflow: hidden;
}
.impersonation-panel::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 60px;
    height: 60px;
    background: rgba(233, 69, 96, 0.08);
    border-radius: 50%;
}
.impersonation-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #e94560;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.2rem;
    opacity: 0.9;
}
.impersonation-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.impersonation-exit {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(233, 69, 96, 0.4);
    color: rgba(233, 69, 96, 0.9);
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}
.impersonation-exit:hover {
    background: rgba(233, 69, 96, 0.22);
    border-color: #e94560;
    color: #ff7a91;
}

/* DataTables Responsive – inline "+" control styling */
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control {
    cursor: pointer;
}
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before {
    background-color: var(--bs-primary);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    line-height: 16px;
    font-size: 11px;
    box-shadow: none;
}
.dtr-details {
    list-style: none;
    padding: 0.5rem 0.75rem;
    margin: 0;
}
.dtr-details li {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--bs-border-color-translucent);
    font-size: 0.85rem;
    text-wrap: auto;
    white-space: normal;
}
.dtr-details li:last-child {
    border-bottom: none;
}
.dtr-details .dtr-title {
    font-weight: 600;
    color: var(--bs-secondary-color);
    flex-shrink: 0;
    min-width: 90px;
}
.dtr-details .dtr-data {
    color: var(--bs-body-color);
}

/* table-mobile-cards CSS removed - now using mobileCards.js */

@media (max-width: 767.98px) {
    .product-card-mobile {
        padding: 0.75rem;
    }
    .product-card-header {
        display: flex;
        gap: 0.75rem;
        align-items: flex-start;
        margin-bottom: 0.75rem;
    }
    .product-card-img {
        width: 70px;
        height: 70px;
        object-fit: cover;
        border-radius: 0.5rem;
        flex-shrink: 0;
    }
    .product-card-img-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--bs-tertiary-bg);
        color: var(--bs-secondary-color);
        font-size: 1.5rem;
    }
    .product-card-info {
        flex: 1;
        min-width: 0;
    }
    .product-card-name {
        font-weight: 600;
        font-size: 1rem;
        margin-bottom: 0.25rem;
        word-wrap: break-word;
    }
    .product-card-price {
        font-size: 1.1rem;
        color: var(--bs-primary);
        font-weight: 700;
    }
    .product-card-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-top: 1px solid var(--bs-border-color-translucent);
        margin-bottom: 0.5rem;
    }
    .product-card-meta code {
        font-size: 0.75rem;
        color: var(--bs-secondary-color);
    }
    .product-card-actions {
        margin-top: 0.5rem;
    }
    .product-card-actions .btn {
        max-width: 100%;
    }
    .product-card-actions .dropdown-menu {
        width: 100%;
    }

    @media (max-width: 767.98px) {
    .catalog-card-mobile {
        padding: 0.75rem;
    }
    .catalog-card-header {
        margin-bottom: 0.75rem;
    }
    .catalog-card-title {
        font-weight: 600;
        font-size: 1rem;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .catalog-card-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-top: 1px solid var(--bs-border-color-translucent);
        margin-bottom: 0.5rem;
    }
    .catalog-card-status {
        margin-bottom: 0.5rem;
        text-align: center;
    }
    .catalog-card-actions {
        margin-top: 0.5rem;
    }
    .catalog-card-actions .btn {
        width: 100%;
    }
    .catalog-card-actions .dropdown-menu {
        width: 100%;
    }

    /* Override parent td flex for mobile cards */
    .table-mobile-cards td.d-md-none {
        display: block !important;
        text-align: left !important;
        padding: 0 !important;
        border-bottom: none !important;
    }

    .user-card-mobile {
        padding: 0.75rem;
    }
    .user-card-mobile.no-actions {
        padding-bottom: 0.75rem;
    }
    .user-card-mobile.no-actions {
        padding-bottom: 0.75rem;
    }

    .user-ficha-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.25rem;
    }
    .user-ficha-info {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    .user-ficha-name {
        font-weight: 600;
        font-size: 1rem;
    }
    .user-ficha-badges {
        display: flex;
        gap: 0.25rem;
    }
    .user-ficha-email {
        color: var(--bs-secondary-color);
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }
    .user-ficha-meta {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0;
        border-top: 1px solid var(--bs-border-color-translucent);
        margin-bottom: 0.75rem;
    }
    .user-ficha-meta:last-child {
        margin-bottom: 0;
    }
    .user-ficha-actions .btn {
        width: 100%;
    }

    .invitation-card-mobile {
        padding: 0.75rem;
    }
    .invitation-card-header {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }
    .invitation-card-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-top: 1px solid var(--bs-border-color-translucent);
        margin-bottom: 0.5rem;
    }
    .invitation-card-meta small {
        font-size: 0.75rem;
    }
    .invitation-card-actions {
        margin-top: 0.5rem;
    }
    .invitation-card-actions .btn {
        width: 100%;
    }
}

/* DataTables Global Stability Fixes */
table.dataTable {
    width: 100% !important;
    margin: 0 !important;
}

table.dataTable thead th, 
table.dataTable tbody td {
    vertical-align: middle;
}

/* Prevent alignment shifts on hover */
table.table-hover tbody tr:hover td {
    background-color: rgba(var(--bs-tertiary-bg-rgb), 0.5);
}

/* Standardized Action Column */
th.dt-action.all, td.dt-action.all {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    text-align: center !important;
    padding: 8px 4px !important;
}

/* Fix for DataTables ScrollY Header Mismatch */
.dt-scroll-head {
    overflow: hidden !important;
}
.dt-scroll-body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* Hide duplicated sorting icons and text in the scroll body header */
.dt-scroll-body thead,
.dataTables_scrollBody thead,
.dt-scroll-body thead tr,
.dataTables_scrollBody thead tr {
    display: none !important;
    height: 0 !important;
    visibility: hidden !important;
    border: none !important;
}

/* table-success overrides for catalogos activos */
[data-bs-theme=light] .table-success {
    --bs-table-bg: #d1e7dd;
}
[data-bs-theme=dark] .table-success {
    --bs-table-bg: #198754;
}
.table-success .font-monospace {
    color: #222 !important;
}
