body {
    font-size: 14px;
    color: #4c5258;
    letter-spacing: .5px;
    font-family: Roboto, sans-serif;
    background-color: #f7f8fa;
    overflow-x: hidden;
}
.wrapper {
    width: auto;
    position: relative
}
a {
    text-decoration: none;
}
::placeholder {
    opacity: 0.4 !important;
}
/* Header */

.top-header .navbar {
    position: fixed;
    top: 0;
    left: 0px;
    right: 0;
    background-color: #f7f8fa;
    border-bottom: 1px solid #e2e3e4;
    background-clip: padding-box;
    height: 60px;
    z-index: 10;
    padding: 0 1.5rem;
    transition: all .2s;
}
.top-header .navbar .top-navbar {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}
.top-header .navbar .top-navbar.has-overflow {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}
.top-header .navbar .top-navbar.has-overflow:hover {
    scrollbar-color: rgba(108, 117, 125, .45) transparent;
}
.top-header .navbar .top-navbar.has-overflow::-webkit-scrollbar {
    height: 4px;
}
.top-header .navbar .top-navbar.has-overflow::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}
.top-header .navbar .top-navbar.has-overflow::-webkit-scrollbar-track {
    background: transparent;
}
.top-header .navbar .top-navbar.has-overflow::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 4px;
}
.top-header .navbar .top-navbar.has-overflow:hover::-webkit-scrollbar-thumb {
    background: rgba(108, 117, 125, .45);
}
.top-header .navbar .top-navbar.has-overflow::-webkit-scrollbar-thumb:hover {
    background: rgba(108, 117, 125, .7);
}
.top-header .navbar .top-navbar .navbar-nav {
    flex-wrap: nowrap;
    width: max-content;
}
.top-header .navbar .top-navbar .nav-link {
    color: #293445;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 500;
    white-space: nowrap;
}
.top-header .navbar .topbar-logo-header,
.top-header .navbar .top-navbar-right {
    flex-shrink: 0;
}
.top-header .navbar .searchbar {
    position: relative;
    width: 30%;
}
.top-header .navbar .searchbar .search-close-icon {
    right: 2rem;
    opacity: 0.5;
    cursor: pointer;
}
.top-header .navbar .searchbar .form-control {
    border-radius: 30px;
    border: 1px solid rgb(206 212 218 / 0%);
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}
.top-header .navbar .dropdown-searchbar .form-control {
    border-radius: 30px;
    border: 1px solid rgb(206 212 218 / 0%);
    padding-left: 3rem;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}
.top-header .navbar .searchbar .form-control:focus, .top-header .navbar .dropdown-searchbar .form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25)
}
.top-header .navbar .searchbar .search-icon, .top-header .navbar .dropdown-searchbar .search-icon {
    opacity: 0.5;
}
.top-header .navbar .user-setting {
    height: 40px;
    border-radius: 30px;
    background-color: #fff;
    box-shadow: 0 0.125rem 0.25rem rgb(0 0 0 / 8%);
}
.top-header .navbar .busqueda-rapida-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 0.125rem 0.25rem rgb(0 0 0 / 8%);
    color: #0d6efd;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.top-header .navbar .busqueda-rapida-btn .bi-search {
    font-size: 16px;
    line-height: 1;
}
.top-header .navbar .busqueda-rapida-btn:hover {
    background-color: #0d6efd;
    color: #fff;
    box-shadow: 0 0.25rem 0.5rem rgb(13 110 253 / 25%);
    transform: translateY(-1px);
}
.dropdown-toggle-nocaret:after {
    display: none
}
.top-header .navbar .dropdown-menu {
    -webkit-animation: .6s cubic-bezier(.25, .8, .25, 1) 0s normal forwards 1 animdropdown;
    animation: .6s cubic-bezier(.25, .8, .25, 1) 0s normal forwards 1 animdropdown
}
@-webkit-keyframes animdropdown {
    from {
        -webkit-transform: translate3d(0, 6px, 0);
        transform: translate3d(0, 6px, 0);
        opacity: 0
    }
    to {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        opacity: 1
    }
}
@keyframes animdropdown {
    from {
        -webkit-transform: translate3d(0, 6px, 0);
        transform: translate3d(0, 6px, 0);
        opacity: 0
    }
    to {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        opacity: 1
    }
}
.top-header .navbar .dropdown-large {
    position: relative
}
.dropdown-large .dropdown-menu {
    width: 360px;
    border: 0;
    padding: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15)
}
.top-header .navbar .dropdown-large .dropdown-menu::after {
    content: '';
    width: 13px;
    height: 13px;
    background: #fff;
    position: absolute;
    top: -6px;
    right: 16px;
    transform: rotate(45deg);
    border-top: 1px solid #ddd;
    border-left: 1px solid #ddd
}
.top-header .navbar .dropdown-menu::after {
    content: '';
    width: 13px;
    height: 13px;
    background: #ffff;
    position: absolute;
    top: -6px;
    right: 16px;
    transform: rotate(45deg);
    border-top: 1px solid #ddd;
    border-left: 1px solid #ddd
}
.top-header .navbar .dropdown-item {
    padding: .5rem;
}
.top-header .navbar .dropdown-large .dropdown-item:hover {
    border-radius: 10px;
    color: #1e2125;
    background-color: #f5f5f5
}
.top-header .navbar .dropdown-item .setting-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    background-color: #e1e6eb;
}
.top-header .navbar .dropdown-item .setting-text {
    font-size: 16px;
    font-weight: 500;
}
.top-header .navbar .user-img {
    width: 40px;
    height: 40px;
    padding: 4px;
    border-radius: 50%;
}
.top-header .navbar .user-name {
    font-size: 15px;
    color: #5e636b;
    font-weight: 500;
    padding-right: 10px;
}
.top-header .navbar .dropdown-menu .apps:hover {
    background-color: #f8f9fa;
    transition: all 0.2;
}
.top-header .navbar .dropdown-menu .apps .apps-icon-box {
    color: #34383f;
    width: 52px;
    height: 52px;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    margin: auto;
    border-radius: 50%;
}
.top-header .navbar .dropdown-menu .apps .apps-name {
    color: #34383f;
    font-size: 15px;
}
.top-header .navbar .dropdown-menu .msg-time {
    font-size: 13px;
}
.top-header .navbar .dropdown-menu .dropdown-msg-user {
    font-size: 15px;
}
.top-header .navbar .dropdown-menu .dropdown-msg-text {
    font-size: 14px;
}
.header-message-list {
    position: relative;
    height: 420px
}
.header-notifications-list {
    position: relative;
    height: 420px
}
.top-header .navbar .dropdown-menu .notification-box {
    width: 52px;
    height: 52px;
    font-size: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e1e6eb;
}
.top-header .navbar .nav-link .notify-badge {
    position: absolute;
    top: -2px;
    right: -5px;
    color: #fff;
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fa0909;
}
.mobile-toggle-icon, .search-toggle-icon, .projects, .notifications, .messages {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #fff;
    color: #5e636b;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50%;
    border: 1px solid rgb(255 255 255 / 0%);
    box-shadow: 0 0.125rem 0.25rem rgb(0 0 0 / 8%);
}
/* Sidebar */

.top-header .topbar-logo-header {
    width: auto;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    z-index: 5;
    background: transparent;
    border-right: 1px solid #e2e3e4;
    transition: all .2s;
}
.mobile-topbar-header {
    display: none;
}
.overlay {
    display: none;
}
.logo-icon {
    width: 30px;
}
.logo-text {
    font-size: 22px;
    margin-left: 10px;
    margin-bottom: 0;
    letter-spacing: 1px;
    color: #3461ff;
}
.toggle-icon {
    font-size: 22px;
    cursor: pointer;
    color: #3461ff;
}
.nav-container {
    position: fixed;
    top: 60px;
    right: 0;
    left: 0;
    z-index: 9;
    background-color: #f7f8fa;
    border-bottom: 1px solid #e2e3e4;
    /* -webkit-box-shadow: 0 2px 6px 0 rgb(218 218 253 / 65%), 0 0px 6px 0 rgb(206 206 238 / 54%);
    box-shadow: 0 2px 6px 0 rgb(218 218 253 / 65%), 0 0px 6px 0 rgb(206 206 238 / 54%);*/
    background-clip: border-box;
    width: 100%;
    height: 60px;
    padding: 0px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-scroll {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}
.topbar-nav {
    background: transparent;
    width: 100%;
}
.topbar-nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
    background: 0 0
}
.topbar-nav .metismenu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}
.topbar-nav .metismenu>li {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 0%;
    flex: 1 1 0%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    position: relative;
}
.topbar-nav .metismenu a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: left;
    padding: 10px 15px;
    color: #5f5f5f;
    outline-width: 0;
    transition: all .3s ease-out;
}
.topbar-nav .metismenu ul a {
    padding: 8px 15px 8px 15px;
    font-size: 15px;
    border: 0;
}
.topbar-nav .metismenu ul a i {
    margin-right: 10px;
}
.topbar-nav .metismenu a .parent-icon {
    font-size: 22px;
    line-height: 1;
}
.topbar-nav .metismenu a .menu-title {
    margin-left: 10px;
}
.topbar-nav .metismenu a:hover, .topbar-nav .metismenu a:focus, .topbar-nav .metismenu a:active {
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(to left, #609BF3, #0D6EFD);
}
/* Mantener color del menú principal mientras el dropdown está abierto */
.topbar-nav .metismenu > li.mm-active > a {
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(to left, #609BF3, #0D6EFD);
}
@media (min-width: 1281px) {
    .nav-container {
        padding: 0 20px;
        justify-content: flex-start;
        overflow: visible;
    }
    .nav-scroll.has-overflow {
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: thin;
        scrollbar-color: transparent transparent;
    }
    .nav-scroll.has-overflow:hover {
        scrollbar-color: rgba(108, 117, 125, .45) transparent;
    }
    .nav-scroll.has-overflow::-webkit-scrollbar {
        height: 4px;
    }
    .nav-scroll.has-overflow::-webkit-scrollbar-button {
        display: none;
        width: 0;
        height: 0;
    }
    .nav-scroll.has-overflow::-webkit-scrollbar-track {
        background: transparent;
    }
    .nav-scroll.has-overflow::-webkit-scrollbar-thumb {
        background: transparent;
        border-radius: 4px;
    }
    .nav-scroll.has-overflow:hover::-webkit-scrollbar-thumb {
        background: rgba(108, 117, 125, .45);
    }
    .nav-scroll.has-overflow::-webkit-scrollbar-thumb:hover {
        background: rgba(108, 117, 125, .7);
    }
    .topbar-nav {
        width: max-content;
    }
    .topbar-nav .metismenu {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        flex-wrap: nowrap;
        width: max-content;
    }
    .topbar-nav .metismenu>li {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-flex: 0;
        -ms-flex: 0 0 auto;
        flex: 0 0 auto;
        flex-shrink: 0;
        white-space: nowrap;
    }
    .topbar-nav .metismenu a {
        padding: 10px 24px;
    }
    .topbar-nav .metismenu > li > a {
        white-space: nowrap;
        padding: 10px 28px;
    }
    .topbar-nav .metismenu > li > a.has-arrow {
        padding-right: 2.5rem;
    }
    .topbar-nav .metismenu a .parent-icon {
        font-size: 24px;
    }
    .topbar-nav .metismenu a .menu-title {
        margin-left: 12px;
        font-size: 14px;
        overflow: visible;
        text-overflow: clip;
    }
    .topbar-nav .metismenu>li>ul::-webkit-scrollbar {
        background: rgba(183, 192, 203, .7);
        width: 5px;
        border-radius: 10px;
    }
    .topbar-nav .metismenu>li>ul::-webkit-scrollbar-thumb {
        background: #6B97D8;
        border-radius: 10px;
    }
    .topbar-nav .metismenu>li>ul {
        overflow-y: auto;
        position: absolute;
        top: 100%;
        max-height: 80vh;
        min-width: 100%;
        z-index: 1001;
        background: white;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15);
    }
    /* Dropdown fijo: evita que el scroll horizontal lo recorte o se resetee al abrir */
    .topbar-nav .metismenu>li>ul.mm-fixed-dropdown {
        position: fixed !important;
        right: auto;
        bottom: auto;
        margin: 0;
        width: max-content;
        min-width: 260px;
        overflow-y: auto !important;
        overflow-x: hidden;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(108, 117, 125, .55) rgba(183, 192, 203, .25);
    }
    .topbar-nav .metismenu>li>ul.mm-fixed-dropdown > li > a {
        white-space: nowrap;
    }
    .topbar-nav .metismenu>li>ul.mm-fixed-dropdown::-webkit-scrollbar {
        width: 6px;
    }
    .topbar-nav .metismenu>li>ul.mm-fixed-dropdown::-webkit-scrollbar-thumb {
        background: rgba(108, 117, 125, .55);
        border-radius: 6px;
    }
    .topbar-nav.is-hoverable .metismenu>li>ul {
        height: auto !important;
    }
    .topbar-nav.is-hoverable .metismenu>li:hover>ul {
        display: block;
    }
    .topbar-nav.is-hoverable .metismenu>li:hover>a.has-arrow:after {
        -webkit-transform: rotate(-135deg);
        transform: rotate(-135deg);
    }
}
@media screen and (min-width:1025px) {
    .email-toggle-btn {
        display: none!important
    }
    .chat-toggle-btn {
        display: none!important
    }
}
.wrapper.toggled .top-header .navbar {
    left: 0px
}
.wrapper.toggled .page-content {
    margin-left: 0px
}
/* Page Content */

.page-content {
    margin-left: 0;
    margin-top: 120px;
    padding: 1.75rem 2rem;
    transition: all .2s;
}
@media screen and (min-width: 1200px) {
    .page-content {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}
@media screen and (min-width: 1600px) {
    .page-content {
        padding-left: 4.5rem;
        padding-right: 4.5rem;
    }
}
/* Utilities */

.radius-10 {
    border-radius: 10px;
}
.radius-15 {
    border-radius: 15px;
}
.radius-30 {
    border-radius: 30px;
}
.font-13 {
    font-size: 13px;
}
.font-14 {
    font-size: 14px;
}
.font-20 {
    font-size: 20px;
}
.font-22 {
    font-size: 22px;
}
.font-24 {
    font-size: 24px;
}
.font-30 {
    font-size: 30px;
}
.font-35 {
    font-size: 35px;
}
.text-justify {
    text-align: justify;
}
.table-responsive {
    white-space: nowrap;
}
.fm-menu .list-group a {
    font-size: 16px;
    color: #5f5f5f;
    display: flex;
    align-items: center;
}
.fm-menu .list-group a i {
    font-size: 23px;
}
.fm-menu .list-group a:hover {
    background-color: rgb(52 97 255 / 15%);
    color: #3461ff;
    transition: all .2s ease-out
}
.add-post {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
}
.fm-icon-box {
    font-size: 32px;
    background: #fff;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top {
    display: none;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 26px;
    color: #fff;
    position: fixed;
    border-radius: 50%;
    bottom: 20px;
    right: 12px;
    background-color: #0d6efd;
    z-index: 5
}
.back-to-top:hover {
    color: #fff;
    background-color: #000;
    transition: all .5s
}
.project-user-groups img {
    margin-right: -14px;
    border: 1px solid #e4e4e4;
    padding: 2px;
    cursor: pointer;
}
.project-user-plus {
    width: 33px;
    height: 33px;
    margin-right: 0px;
    line-height: 33px;
    background: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 22px;
    cursor: pointer;
    border: 1px dotted #a9b2bb;
    color: #404142;
}
.user-groups img {
    margin-left: -14px;
    border: 1px solid #e4e4e4;
    padding: 2px;
    cursor: pointer;
}
.user-plus {
    width: 33px;
    height: 33px;
    margin-left: -14px;
    line-height: 33px;
    background: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 22px;
    cursor: pointer;
    border: 1px dotted #a9b2bb;
    color: #404142;
}
.icon-box {
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border-radius: 50%;
    border: 1px solid #c7c8cb;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.product-box {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    background-color: #ffffff;
}
.best-product-item {
    background-color: #ffffff;
    cursor: pointer;
    border-radius: 10px;
    padding: .5rem;
}
.best-product-item:hover {
    background-color: #f5f5f5;
}
.product-box img {
    width: 100%;
}
.best-product {
    position: relative;
    height: 460px;
}
.chart-container1 {
    position: relative;
    height: 340px;
}
.gmaps, .gmaps-panaroma {
    height: 400px;
    background: #eee;
    border-radius: 3px;
}
.theme-icons {
    background-color: #fff;
    color: #434547;
}
.cursor-pointer {
    cursor: pointer;
}
.icon-badge {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.product-img-2 {
    width: 45px;
    height: 45px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #e6e6e6;
}
.error-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 18px;
    color: #fff;
    text-align: center;
    border-radius: 50%;
    margin: 5px;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075)!important
}
.productlist .product-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    border: 1px solid #e2e3e4;
    background-color: #ffffff;
}
.productlist .product-box img {
    width: 100%
}
.productlist .product-title {
    color: rgb(25, 27, 34);
}
.orderlist .product-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    border: 1px solid #e2e3e4;
    background-color: #ffffff;
}
.orderlist .product-box img {
    width: 100%
}
.orderlist .product-title {
    color: rgb(25, 27, 34);
}
.breadcrumb-title {
    font-size: 20px;
    border-right: 1.5px solid #aaa4a4;
}
.page-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    display: inline-block;
    padding-right: .5rem;
    color: #6c757d;
    font-family: LineIcons;
    content: "\ea5c";
}
.page-breadcrumb .breadcrumb li.breadcrumb-item {
    font-size: 16px;
}
.iconmenu .ps__rail-x {
    height: 0px;
}
.iconmenu .ps__rail-y {
    width: 0px;
}
.iconmenu .ps__rail-x.ps--clicking .ps__thumb-x, .iconmenu .ps__rail-x:focus>.ps__thumb-x, .iconmenu .ps__rail-x:hover>.ps__thumb-x {
    height: 5px
}
.iconmenu .ps__rail-y.ps--clicking .ps__thumb-y, .iconmenu .ps__rail-y:focus>.ps__thumb-y, .iconmenu .ps__rail-y:hover>.ps__thumb-y {
    width: 5px
}
.w_chart {
    position: relative;
    display: inline-block;
    width: 80px !important;
    height: 80px !important;
    text-align: center;
    font-size: 1.4em;
}
.w_percent {
    display: inline-block;
    line-height: 80px !important;
    z-index: 2;
    color: #0a0808;
}
.w_percent:after {
    content: '%';
    margin-left: 0.1em;
}
.w_chart canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px !important;
    height: 80px !important;
}
#geographic-map {
    width: 100%;
    height: 400px;
}
.new-customer-list {
    position: relative;
    height: 500px
}
.new-customer-list .customer-list-item {
    padding: 0.5rem;
    border-radius: 10px;
}
.new-customer-list .customer-list-item:hover {
    background-color: #f0f0f0;
}
.top-sellers-list {
    position: relative;
    height: 460px
}
.top-sellers-list .sellers-list-item {
    padding: 0.5rem;
    border-radius: 10px;
}
.top-sellers-list .sellers-list-item:hover {
    background-color: #f0f0f0;
}
.client-message {
    position: relative;
    height: 565px
}
.client-message .client-messages-list {
    padding: 0.5rem;
}
.client-message .client-messages-list:hover {
    background-color: #f0f0f0;
}
/* Widgets */

.widget-icon {
    width: 48px;
    height: 48px;
    background-color: #fafafa;
    border-radius: 50%;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.widget-icon-large {
    width: 54px;
    height: 54px;
    background-color: #fafafa;
    border-radius: 10px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
/* Chips */

.chip {
    display: inline-block;
    height: 32px;
    padding: 0 12px;
    margin-right: 1rem;
    margin-bottom: 1rem;
    font-size: 14px;
    font-weight: 500;
    line-height: 32px;
    color: rgba(0, 0, 0, .7);
    cursor: pointer;
    background-color: #f1f1f1;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 16px;
    -webkit-transition: all .3s linear;
    transition: all .3s linear;
    box-shadow: none;
}
.chip img {
    float: left;
    width: 32px;
    height: 32px;
    margin: 0 8px 0 -12px;
    border-radius: 50%;
}
.profile-cover {
    background-image: linear-gradient(to bottom right, rgb(26 30 33 / 50%), rgb(0 0 0 / 50%)), url(../images/gallery/33.png);
    background-size: cover;
    height: 24rem;
    background-position: center;
    margin: -4.0rem -1.5rem -5.5rem -1.5rem;
    padding: 1.5rem 1.5rem 6.5rem 1.5rem;
}
/* Email */

.email-wrapper {
    width: auto;
    height: 600px;
    overflow: hidden;
    border-radius: .25rem;
    position: relative;
    background: #fff;
    box-shadow: 0 .1rem .7rem rgba(0, 0, 0, .1)
}
.email-sidebar {
    width: 250px;
    height: 100%;
    position: absolute;
    background: #fff;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
    overflow: hidden;
    border-right: 1px solid rgba(0, 0, 0, .125);
    border-top-left-radius: .25rem;
    border-bottom-left-radius: .25rem
}
.email-sidebar-header {
    width: auto;
    height: auto;
    position: relative;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, .125);
    border-right: 0 solid rgba(0, 0, 0, .125);
    border-top-left-radius: .25rem;
    padding: 15px
}
.email-navigation {
    position: relative;
    padding: 0;
    height: 345px;
    border-bottom: 1px solid rgba(0, 0, 0, .125)
}
.email-header {
    position: absolute;
    height: 70px;
    left: 250px;
    right: 0;
    top: 0;
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, .125);
    border-top-right-radius: .25rem;
    z-index: 1
}
.email-content {
    position: absolute;
    left: 0;
    right: 0;
    width: auto;
    top: 70px;
    height: auto;
    margin-left: 250px;
    padding: 0;
    background: #fff;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem
}
.email-navigation a.list-group-item {
    color: #404142;
    padding: .35rem 1.25rem;
    background-color: #fff;
    border-bottom: 1px solid rgb(0 0 0 / 0%);
    transition: all .3s ease-out
}
.email-navigation a.list-group-item:hover {
    background-color: rgb(13 110 253 / .12)
}
.email-navigation a.list-group-item.active {
    color: #0b5ed7;
    font-weight: 600;
    background-color: rgb(13 110 253 / .12)
}
.email-meeting {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0
}
.email-meeting a.list-group-item {
    color: #404142;
    padding: .35rem 1.25rem;
    background-color: #fff;
    border-bottom: 1px solid rgb(0 0 0 / 0%)
}
.email-meeting a.list-group-item:hover {
    background-color: rgb(0 123 255 / 15%);
    transition: all .3s ease-out
}
.email-hangout .chat-user-online:before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 45px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff;
    background: #16e15e
}
.email-toggle-btn {
    width: auto;
    height: auto;
    margin-right: 10px;
    text-align: center;
    font-size: 24px;
    color: #404142;
    border-radius: 0;
    cursor: pointer;
    background-color: #fff;
    border: 0 solid rgb(0 0 0 / 15%)
}
.email-actions {
    width: 230px
}
.email-time {
    font-size: 13px;
    color: #6c757d
}
.email-list div.email-message {
    background: #fff;
    border-bottom: 1px solid rgb(0 0 0 / 8%);
    color: #383a3c
}
.email-list div.email-message:hover {
    transition: all .2s ease-out;
    background-color: #eceef1
}
.email-list {
    position: relative;
    height: 530px
}
.email-star {
    color: #6c757d
}
.email-read-box {
    position: relative;
    height: 530px
}
.compose-mail-popup {
    width: 42%;
    position: fixed;
    bottom: -30px;
    right: 30px;
    z-index: 15;
    display: none
}
.compose-mail-toggled {
    display: block
}
.compose-mail-title {
    font-size: 16px
}
.compose-mail-close {
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    font-size: 14px;
    border-radius: 2px;
    background-color: rgb(255 255 255 / 0%)
}
.compose-mail-close:hover {
    background-color: rgb(255 255 255 / 20%)
}
/* chat box */

.chat-wrapper {
    width: auto;
    height: 600px;
    border-radius: .25rem;
    position: relative;
    background: #fff;
    box-shadow: 0 .1rem .7rem rgba(0, 0, 0, .1)
}
.chat-sidebar {
    width: 340px;
    height: 100%;
    position: absolute;
    background: #fff;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
    overflow: hidden;
    border-right: 1px solid rgba(0, 0, 0, .125);
    border-top-left-radius: .25rem;
    border-bottom-left-radius: .25rem
}
.chat-sidebar-header {
    width: auto;
    height: auto;
    position: relative;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, .125);
    border-right: 0 solid rgba(0, 0, 0, .125);
    border-top-left-radius: .25rem;
    padding: 15px
}
.chat-sidebar-content {
    padding: 0
}
.chat-user-online {
    position: relative
}
.chat-sidebar-header .chat-user-online:before {
    content: '';
    position: absolute;
    bottom: 7px;
    left: 40px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff;
    background: #16e15e
}
.chat-list .chat-user-online:before {
    content: '';
    position: absolute;
    bottom: 7px;
    left: 36px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff;
    background: #16e15e
}
.chat-content {
    margin-left: 340px;
    padding: 85px 15px 15px 15px
}
.chat-header {
    position: absolute;
    height: 70px;
    left: 340px;
    right: 0;
    top: 0;
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, .125);
    border-top-right-radius: .25rem;
    z-index: 1
}
.chat-footer {
    position: absolute;
    height: 70px;
    left: 340px;
    right: 0;
    bottom: 0;
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, .125);
    border-bottom-right-radius: .25rem
}
.chat-footer-menu a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 18px;
    color: #6c757d;
    text-align: center;
    border-radius: 50%;
    margin: 3px;
    background-color: #fff;
    border: 1px solid rgb(0 0 0 / 15%)
}
.chat-tab-menu li a.nav-link {
    padding: .3rem .2rem;
    line-height: 1.2;
    color: #4a4b4c
}
.chat-tab-menu .nav-pills .nav-link.active, .chat-tab-menu .nav-pills .show>.nav-link {
    color: #008cff;
    background-color: rgb(0 123 255 / 0%)
}
.chat-title {
    font-size: 14px;
    color: #272b2f
}
.chat-msg {
    font-size: 13px;
    color: #6c757d
}
.chat-time {
    font-size: 13px;
    color: #6c757d
}
.chat-list {
    position: relative;
    height: 300px
}
.chat-list .list-group-item {
    border: 1px solid rgb(0 0 0 / 0%);
    background-color: transparent
}
.chat-list .list-group-item:hover {
    border: 1px solid rgb(0 0 0 / 0%);
    background-color: rgb(13 110 253 / .12)
}
.chat-list .list-group-item.active {
    background-color: rgb(13 110 253 / .12)
}
.chart-online {
    color: #16e15e
}
.chat-top-header-menu a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 18px;
    color: #6c757d;
    text-align: center;
    border-radius: 50%;
    margin: 3px;
    background-color: #fff;
    border: 1px solid rgb(0 0 0 / 15%)
}
.chat-content {
    position: relative;
    width: auto;
    height: 520px
}
.chat-content-leftside .chat-left-msg {
    width: fit-content;
    background-color: #eff2f5;
    padding: .8rem;
    border-radius: 12px;
    max-width: 480px;
    text-align: left;
    border-top-left-radius: 0
}
.chat-content-rightside .chat-right-msg {
    width: fit-content;
    background-color: #dcedff;
    padding: .8rem;
    border-radius: 12px;
    float: right;
    max-width: 480px;
    text-align: left;
    border-bottom-right-radius: 0
}
.chat-toggle-btn {
    width: 40px;
    height: 40px;
    line-height: 40px;
    margin-right: 15px;
    text-align: center;
    font-size: 24px;
    color: #6c757d;
    border-radius: 50%;
    cursor: pointer;
    background-color: #fff;
    border: 1px solid rgb(0 0 0 / 15%)
}
/* Authentication */

/*Nueva */

.campo-logo-cliente {
    max-width: 100%;
    max-height: 12rem;
    display: flex;
    justify-content: center;
}
.logo-cliente {
    width: auto;
    max-width: 12rem;
    max-height: 100%;
    padding: 1rem;
    border-radius: 5px;
}
.card-login {
    grid-row: 2 / 3;
}
.enlaces {
    grid-row: 3 / 4;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 1rem 0;
    justify-self: center;
    width: 80%;
    border-top: 1px solid #D5D5D5;
    margin: 5px auto;
    align-self: start;
}
.enlace-redes {
    justify-self: end;
    width: 3rem;
    height: 3rem;
    border-radius: .5rem;
    color: #fff;
    background-color: #222850;
    display: flex;
    justify-content: center;
    border: none;
}
.logo {
    display: flex;
    align-self: end;
    align-items: center;
    justify-content: center;
}
.logo-texto {
    color: #232850;
    font-size: 1rem;
    margin-top: 1rem;
    margin-right: .5rem;
}
.notice-img {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.header-alert {
    position: fixed;
    z-index: 999999999;
    width: 100%;
}

/* ERP - estilos reutilizables de modales */
.erp-modal .modal-content {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 16px 45px rgba(20, 35, 60, 0.18);
    overflow: hidden;
}

.erp-modal .modal-header {
    border-bottom: 1px solid #e9eff8;
    background: linear-gradient(120deg, #f6fbff 0%, #eef4ff 100%);
    padding: 0.75rem 1rem;
}

.erp-modal .modal-title {
    font-weight: 700;
    color: #1f2d3d;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.erp-modal .modal-title i {
    color: #2d6fd3;
}

.erp-modal .modal-body {
    background: #ffffff;
    padding: 1rem;
}

.erp-modal .modal-footer {
    border-top: 1px solid #e9eff8;
    background: #fbfdff;
    padding: 0.65rem 1rem;
}

/* Cuando el formulario envuelve header/body/footer dentro de un modal scrollable,
   el formulario debe ser el contenedor flex para que el body acote su altura
   y el footer permanezca visible (usado en facturacion_pedidos y cualquier otro
   modal ERP con muchas lineas). */
.erp-modal .modal-dialog-scrollable .modal-content > form,
.erp-modal.modal-dialog-scrollable .modal-content > form {
    display: flex;
    flex-direction: column;
    max-height: 100%;
    overflow: hidden;
}

.erp-modal .form-control,
.erp-modal .form-select {
    border-color: #dbe4f1;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.erp-modal .form-control:focus,
.erp-modal .form-select:focus {
    border-color: #7aa8ee;
    box-shadow: 0 0 0 0.2rem rgba(45, 111, 211, 0.16);
}

.erp-modal-auditoria .modal-body {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.erp-modal-auditoria .border-end {
    border-color: #edf2fa !important;
}

.erp-modal-auditoria .text-muted.small {
    line-height: 1.45;
}

@media (min-width: 1200px) {
    .authentication-content-nuevo {
        display: flex;
        height: 100vh;
        align-items: center;
    }
    .container-fluid-grid {
        align-self: center;
        display: grid;
        grid-template-columns: repeat(10, 1fr);
        grid-template-rows: 1fr;
        background: linear-gradient(to right, #01567d, #8ec7da, #fff);
        background-position: center;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        min-height: 100vh;
        overflow: auto;
    }
    .notice-section {
        grid-column: 2 / 7;
        background-color: #fff;
        max-height: 80%;
        height: 80%;
        width: 100%;
        align-self: center;
        justify-self: right;
        border-top-left-radius: 1rem;
        border-bottom-left-radius: 1rem;
        box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.5);
        z-index: 2;
        grid-row: 1 / 2;
        display: grid;
        grid-template-rows: 90% 10%;
    }
    .notice-img {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
        max-height: 100%;
        height: 100%;
        width: 100%;
        border-top-left-radius: 1rem;
        border-bottom-left-radius: 1rem;
        z-index: 1;
        align-self: center;
    }
    .enlaces {
        grid-row: 3 / 4;
        z-index: 2;
        display: flex;
        justify-content: space-around;
        align-items: center;
        column-gap: 4rem;
        padding: 1rem 0;
        justify-self: center;
        width: 75%;
        height: 75%;
        border-top: 1px solid #D5D5D5;
    }
    .enlace-redes {
        justify-self: end;
        width: 100%;
        height: 100%;
        border-radius: .5rem;
        color: #fff;
        background-color: #222850;
    }
    .login-grid {
        grid-column: 7 / 10;
        background-color: #fff;
        height: 80% !important;
        max-height: 80%;
        width: 100%;
        align-self: center;
        border-top-right-radius: 1rem;
        border-bottom-right-radius: 1rem;
        display: grid;
        grid-template-rows: 1fr 3fr 1fr;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
        padding: 0 1rem;
        background-color: #fff;
    }
    .campo-logo-cliente {
        max-height: 10rem;
        display: flex;
        justify-content: center;
        margin-top: 1.5rem;
    }
    .logo-cliente {
        height: 100%;
        width: auto;
        max-height: 100%;
        max-width: 100%;
        border-radius: 5px;
    }
    .card-login {
        grid-row: 2 / 3;
    }
    .logo {
        grid-row: 4 / 5;
        margin-top: 1rem;
        display: flex;
        align-self: end;
        align-items: center;
        justify-content: center;
        justify-self: center;
    }
    .logo-texto {
        color: #232850;
        font-size: 1rem;
        margin-top: 1rem;
    }
}
/*Fin Nueva*/

.authentication-card {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    max-width: 60rem;
    height: 100rem;
}
.login-separater span {
    position: relative;
    top: 26px;
    margin-top: -10px;
    background: #fff;
    padding: 5px;
    font-size: 12px;
    color: #cbcbcb;
    z-index: 1;
}
/* swicther */

.btn-switcher {
    position: fixed;
    right: 0px;
    top: 40%;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.header-colors-indigators .indigator {
    width: 50px;
    height: 50px;
    background-color: #f7f8fa;
    border-radius: 10px;
    cursor: pointer;
}
/* Responsive */

@media screen and (max-width: 1280px) {
    .page-content {
        margin-left: 0px;
        margin-top: 60px;
    }
    .topbar-logo-header {
        display: none;
    }
    .mobile-toggle-menu {
        display: block;
    }
    .nav-container {
        position: fixed;
        width: 260px;
        right: 0;
        left: -260px;
        z-index: 16;
        border-bottom: 1px solid #e4e4e4;
        background-clip: border-box;
        background: #ffffff;
        height: 93%;
        padding: 10px;
        display: flex;
        align-items: start;
        justify-content: flex-start;
        overflow-y: scroll;
        overflow-x: hidden;
    }
    /* El wrapper .nav-scroll es solo para desktop; en móvil no debe alterar el drawer */
    .nav-container .nav-scroll,
    .nav-container .nav-scroll.has-overflow {
        flex: none;
        width: 100%;
        min-width: 0;
        height: auto;
        overflow: visible;
        display: block;
        align-items: stretch;
        justify-content: flex-start;
    }
    .nav-container .topbar-nav {
        width: 100%;
    }
    .nav-container .topbar-nav .metismenu a {
        padding: 10px 15px;
    }
    .nav-container .topbar-nav .metismenu > li > a,
    .nav-container .topbar-nav .metismenu > li > a.has-arrow {
        white-space: normal;
        padding: 10px 15px;
    }
    .nav-container .topbar-nav .metismenu a .parent-icon {
        font-size: 22px;
    }
    .nav-container .topbar-nav .metismenu a .menu-title {
        margin-left: 10px;
        font-size: inherit;
    }
    .wrapper.toggled .nav-container {
        display: flex;
        left: 0px;
    }
    .wrapper.toggled .mobile-topbar-header {
        display: flex;
        align-items: center;
        height: 60px;
        background: white;
        border-bottom: 1px solid #f1f1f1;
        background-clip: border-box;
        position: fixed;
        width: 260px;
        left: 0;
        top: 0;
        right: 0;
        z-index: 10;
        padding: 0 30px;
    }
    .wrapper.toggled .overlay {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: #000;
        opacity: 0.6;
        z-index: 15;
        display: block;
        cursor: move;
        transition: all .2s ease-out;
    }
}
@media screen and (max-width:1025px) {
    .topbar-nav {
        left: -300px;
    }
    .top-header .navbar {
        left: 0px;
    }
    /* Toggeled */
    .wrapper.toggled .topbar-nav {
        left: 0px;
    }
    .wrapper.toggled .page-content {
        margin-left: 0px;
    }
    .wrapper.toggled .top-header .navbar {
        left: 0px;
    }
    .wrapper.toggled .overlay {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: #000;
        opacity: .6;
        z-index: 12;
        display: block;
        cursor: move;
        transition: all .2s ease-out
    }
    .top-header .navbar .full-searchbar {
        position: absolute;
        top: 0%;
        left: 0;
        right: 0%;
        width: 100%;
        height: 60px;
        background-color: #f7f8fa;
        border-bottom: 1px solid rgb(0 0 0 / 0%);
        background-clip: padding-box;
        display: flex !important;
        z-index: 1;
        align-items: center;
        justify-content: start;
        padding: 0 1rem;
        -webkit-animation: .6s cubic-bezier(.25, .8, .25, 1) 0s normal forwards 1 animdropdown;
        animation: .6s cubic-bezier(.25, .8, .25, 1) 0s normal forwards 1 animdropdown
    }
    .email-header {
        border-top-left-radius: .25rem
    }
    .email-sidebar {
        left: -280px
    }
    .email-content {
        margin-left: 0
    }
    .email-header {
        left: 0
    }
    .email-toggled .email-sidebar {
        left: 0
    }
    .email-toggled .overlay {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 250px;
        background: #000;
        opacity: .5;
        z-index: 9;
        display: block;
        cursor: move;
        transition: all .3s ease-out
    }
    .compose-mail-popup {
        width: auto;
        position: fixed;
        bottom: -30px;
        right: 0;
        left: 0
    }
    .chat-header {
        border-top-left-radius: .25rem
    }
    .chat-footer {
        border-bottom-left-radius: .25rem
    }
    .chat-sidebar {
        left: -370px
    }
    .chat-content {
        margin-left: 0
    }
    .chat-header {
        left: 0
    }
    .chat-footer {
        left: 0
    }
    .chat-toggled .chat-sidebar {
        left: 0
    }
    .chat-toggled .overlay {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 340px;
        background: #000;
        opacity: .5;
        z-index: 11;
        display: block;
        cursor: move;
        transition: all .3s ease-out
    }
}
@media screen and (max-width:1024px) {
    .authentication-card {
        padding: 1.5rem 0;
        height: auto;
    }
}
@media screen and (max-width:767px) {
    .top-header .navbar .dropdown-menu::after {
        display: none
    }
    .top-header .navbar .dropdown {
        position: static!important
    }
    .top-header .navbar .dropdown-menu {
        width: 100%!important;
    }
}
@media screen and (max-width:520px) {
    .chat-footer-menu, .chat-top-header-menu {
        display: none
    }
}

.accordion-colaborador {
    background: linear-gradient(180deg, #dbeafe, #bfdbfe);
}

.accordion-colaborador-conflicto {
    background: linear-gradient(180deg, #dbeafe, #bfdbfe);
    color: red;
}

.accordion-fecha {
    background: linear-gradient(180deg, #bcd4f7, #60a5fa);
    color: black;
}

.accordion-fecha-conflicto {
    background: linear-gradient(180deg, #fbc5c5, #f08080);
    color: #4b0000;
}

.accordion-fecha-falta {
    background: linear-gradient(180deg, #e0e0e0, #b0b0b0);
    color: #333333;
}

.accordion-marcacion {
    background: linear-gradient(180deg, #f0f9ff, #e0f2fe);
}

.revisado {
    color: #34C759;
}

.linea-revisado {
    color: #34C759;
}

#files_container {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Tema vibrante para SweetAlert2 */
.swal-rest {
  --rest-bg: linear-gradient(145deg, #fff4e6 0%, #ffe8cc 100%);
  --rest-border: #ffcc99;
  --rest-text-1: #2a1b0f;       /* título */
  --rest-text-2: #5b3d28;       /* cuerpo */
  --rest-accent: #ff6b35;       /* primario (naranja coral) */
  --rest-accent-2: #ff9f1c;     /* secundario (ámbar) */
  --rest-neutral: #2f2f2f;

  background: var(--rest-bg) !important;
  border: 1px solid var(--rest-border) !important;
  border-radius: 20px !important;
  box-shadow:
    0 10px 30px rgba(255, 107, 53, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25) !important;
  padding: 1.5rem !important;
}

.swal-rest .swal2-title {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--rest-text-1) !important;
  letter-spacing: .4px;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}

.swal-rest .swal2-html-container {
  color: var(--rest-text-2) !important;
  font-size: 0.975rem;
  line-height: 1.45;
}

/* Inputs */
.swal-rest .swal2-input,
.swal-rest .swal2-textarea,
.swal-rest .swal2-select {
  border-radius: 14px !important;
  border: 1px solid rgba(255, 159, 28, 0.55) !important;
  background: #fffaf3 !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.06) !important;
}
.swal-rest .swal2-input:focus,
.swal-rest .swal2-textarea:focus,
.swal-rest .swal2-select:focus {
  outline: none !important;
  border-color: var(--rest-accent) !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.25) !important;
}

/* Botones */
.swal-rest .swal2-actions {
  gap: .6rem !important;
}

.swal-rest .swal2-confirm {
  background: linear-gradient(135deg, var(--rest-accent) 0%, #ff7f50 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: .7rem 1.1rem !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 16px rgba(255, 107, 53, 0.35) !important;
  transform: translateY(0);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease !important;
}
.swal-rest .swal2-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(255, 107, 53, 0.45) !important;
  filter: brightness(1.03);
}
.swal-rest .swal2-confirm:active {
  transform: translateY(0);
}

/* Cancel */
.swal-rest .swal2-cancel {
  background: linear-gradient(135deg, #ffd166 0%, var(--rest-accent-2) 100%) !important;
  color: #3a2a10 !important;
  border: none !important;
  border-radius: 999px !important;
  padding: .7rem 1.1rem !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 16px rgba(255, 159, 28, 0.35) !important;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease !important;
}
.swal-rest .swal2-cancel:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(255, 159, 28, 0.45) !important;
  filter: brightness(1.02);
}

/* Iconos */
.swal-rest .swal2-icon.swal2-question {
  border-color: var(--rest-accent-2) !important;
  color: var(--rest-accent-2) !important;
}
.swal-rest .swal2-icon.swal2-error {
  border-color: var(--rest-accent) !important;
  color: var(--rest-accent) !important;
}
.swal-rest .swal2-icon.swal2-success {
  border-color: #2ec4b6 !important;
  color: #2ec4b6 !important;
}

/* Backdrop con toque cálido */
.swal2-container.swal2-backdrop-show .swal2-backdrop {
  background: radial-gradient(1100px 600px at 50% -10%, rgba(255, 159, 28, 0.15), transparent) !important;
}

/* Pequeños detalles */
.swal-rest .swal2-close {
  color: var(--rest-text-2) !important;
  opacity: .8;
}
.swal-rest .swal2-timer-progress-bar {
  background: var(--rest-accent) !important;
}


.tabla-presu-wrapper{ overflow-x:auto; }
/* Sticky para la primera columna (cabecera y celdas) */
th.sticky-left, td.sticky-left {
  position: sticky;
  left: 0;
  z-index: 3;         /* por encima de celdas normales */
  background: #fff;   /* evita transparencia al pasar por debajo */
}

/* Asegura que el TH esté aún por encima de TD sticky */
thead th.sticky-left { z-index: 5; }
 .mes-cell{ min-width:120px; vertical-align:top; }
  .mes-cell .nums.v{
    display:flex; flex-direction:column; align-items:center; gap:2px;
    font-variant-numeric: tabular-nums;
  }
  .mes-cell .line{
    display:flex; justify-content:space-between; gap:.35rem; width:100%;
  }
  .mes-cell .line small{ opacity:.7; }
  .mes-cell .bar{ height:4px; border-radius:2px; background:rgba(0,0,0,.08); margin-top:6px; width:100%; }
  .mes-cell .bar>span{ display:block; height:100%; }

  .bar-ok    { background:#198754; }   /* verde */
  .bar-warn  { background:#fd7e14; }   /* naranja */
  .bar-danger{ background:#dc3545; }   /* rojo */

  .txt-ok    { color:#198754; }
  .txt-warn  { color:#fd7e14; }
  .txt-danger{ color:#dc3545; }
/* Columnas pegadas */
th.sticky, td.sticky{ position:sticky; left:0; z-index:2; background:#fff; }
th.sticky-actions, td.sticky-actions{ position:sticky; right:0; z-index:2; background:#fff; }

.mes-cell .no-budget{
  font-size:.85rem;
  opacity:.6;
  padding:6px 0;
  border:1px dashed rgba(0,0,0,.18);
  border-radius:6px;
  line-height:1.1;
}

.swal-wide {
    font-size: 14px;
}

.swal-wide table {
    font-size: 13px;
}

.swal-wide td {
    word-break: break-word;
}

.swal-wide code {
    display: block;
    padding: 5px;
    background-color: #f4f4f4;
    border-radius: 3px;
    font-size: 12px;
}

/* Admin Home reusable classes */
.admin-home-shell {
    padding: 0;
}

.admin-home-header {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
}

.admin-home-title {
    margin: 0;
    font-size: 1.9rem;
    line-height: 1.2;
    color: inherit;
    font-weight: 500;
}

.admin-home-subtitle {
    margin: 0.2rem 0 0;
    color: #666;
    font-size: 0.9rem;
}

.admin-home-kpi .card {
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    box-shadow: none;
    transition: none;
}

.admin-home-kpi .card:hover {
    transform: none;
    box-shadow: none;
}

.admin-home-kpi .small {
    letter-spacing: 0;
}

#tab_panel_control.nav-tabs {
    border-bottom: 1px solid #ddd;
    margin-bottom: 0;
}

#tab_panel_control .nav-link {
    color: #333;
    border: 1px solid transparent;
    padding: 0.7rem 0.95rem;
    border-radius: 0.25rem 0.25rem 0 0;
    font-weight: 400;
}

#tab_panel_control .nav-link.active {
    color: #333;
    border-color: #ddd #ddd #fff;
    background: #fff;
}

.admin-home-tab-body {
    background: #fff;
    border: 1px solid #ddd;
    border-top: 0;
    border-radius: 0 0 0.25rem 0.25rem;
    padding: 1rem;
}

.admin-home-tab-body .card {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: none;
    transition: none;
}

.admin-home-tab-body .card:hover {
    transform: none;
    box-shadow: none;
}

.admin-home-section-card {
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    background: #ffffff;
    box-shadow: none;
}

.admin-home-section-head {
    border-bottom: 1px solid #eee;
    padding: 0.7rem 0.9rem;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.admin-home-section-head.centered-title {
    justify-content: center;
    text-align: center;
}

.admin-home-section-body {
    padding: 0.9rem;
}

.admin-home-grid-cards .card {
    border: 1px solid #ddd;
    border-radius: 0.25rem;
}

.admin-home-grid-cards .card-body {
    min-height: 82px;
}

.admin-home-table-wrap {
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    background: #ffffff;
}

.admin-home-table-wrap .table {
    margin: 0;
}

.admin-home-table-wrap thead {
    background: #f8f8f8;
}

.admin-home-table-wrap td,
.admin-home-table-wrap th {
    vertical-align: middle;
}

.admin-home-plugins-table th:nth-child(1),
.admin-home-plugins-table td:nth-child(1) {
    min-width: 170px;
    width: 170px;
}

.admin-home-plugins-table th:nth-child(2),
.admin-home-plugins-table td:nth-child(2) {
    width: 520px;
    word-break: break-word;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.admin-home-plugins-table td:nth-child(2) p {
    margin: 0;
    word-break: break-word;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.admin-home-plugins-table th:nth-child(3),
.admin-home-plugins-table td:nth-child(3) {
    min-width: 90px;
    width: 90px;
    white-space: nowrap;
    text-align: center;
}

.admin-home-plugins-table th:nth-child(4),
.admin-home-plugins-table td:nth-child(4) {
    min-width: 200px;
    width: 200px;
    white-space: nowrap;
    text-align: center;
}

.admin-home-plugins-table td:nth-child(4) .btn-group {
    display: inline-flex;
}

.admin-home-form-card {
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    background: #fff;
    padding: 0.9rem;
    margin-top: 1rem;
}

.admin-home-form-card h2 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.admin-home-settings-zone {
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    background: #fff;
    margin-top: 0.9rem;
    overflow: hidden;
}

.admin-home-settings-zone .zone-head {
    padding: 0.65rem 0.9rem;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #eee;
    background: #f5f5f5;
}

.admin-home-settings-zone .zone-body {
    padding: 0.9rem;
}

.admin-home-shell .form-control,
.admin-home-shell .form-select,
.admin-home-shell select.form-control,
.admin-home-shell input.form-control {
    border-color: #ddd;
    background-color: #ffffff;
    box-shadow: none;
    
}

.admin-home-shell .form-control:focus,
.admin-home-shell select.form-control:focus,
.admin-home-shell input.form-control:focus {
    border-color: #66afe9;
    box-shadow: none;
}

.admin-home-actions {
    margin-top: 1rem;
    padding-top: 0.7rem;
    border-top: 1px solid #eee;
}

.admin-home-text-right {
    text-align: right;
}

@media (max-width: 767px) {
    .admin-home-title {
        font-size: 1.55rem;
    }

    .admin-home-header .btn-group {
        margin-bottom: 0.65rem;
    }

    .admin-home-tab-body {
        padding: 0.75rem;
    }
}

/* =========================================================
   ERP Elegant UI Kit (reusable)
   Usage: wrap views with .erp-shell and compose with erp-* classes
   ========================================================= */
:root {
    --erp-bg: #f4f6fa;
    --erp-surface: #ffffff;
    --erp-surface-soft: #f8fafd;
    --erp-border: #d9e0ea;
    --erp-text: #263445;
    --erp-text-muted: #5d6a7b;
    --erp-primary: #1f4f8a;
    --erp-primary-strong: #173d6b;
    --erp-success: #1b7f5e;
    --erp-warning: #b57718;
    --erp-danger: #b33a3a;
    --erp-shadow-sm: 0 2px 8px rgba(21, 32, 53, 0.05);
    --erp-shadow-md: 0 8px 22px rgba(21, 32, 53, 0.09);
}

.erp-shell {
    padding: 0.25rem 0 1rem;
    color: var(--erp-text);
}

.erp-page-header {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    border: 1px solid var(--erp-border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.9rem;
    box-shadow: var(--erp-shadow-sm);
}

.erp-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--erp-text);
}

.erp-title .bi {
    font-size: 1.2em;
    line-height: 1;
    vertical-align: -0.08em;
}

.erp-subtitle {
    margin: 0.25rem 0 0;
    color: var(--erp-text-muted);
    font-size: 0.92rem;
}

.erp-toolbar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.erp-btn {
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 500;
    padding: 0.34rem 0.75rem;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

/* Bootstrap btn-group overrides: keep ERP buttons visually "stuck" */
.btn-group > .erp-btn {
    border-radius: 0;
}
.btn-group > .erp-btn:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}
.btn-group > .erp-btn:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.erp-btn-primary {
    
    color: #fff;
    background: var(--erp-primary);
    border-color: var(--erp-primary);
}

.erp-btn-primary:hover,
.erp-btn-primary:focus {
    color: #fff;
    background: var(--erp-primary-strong);
    border-color: var(--erp-primary-strong);
}

.erp-btn-soft {
    color: var(--erp-primary);
    background: #eef4fb;
    border-color: #d2e2f4;
}

.erp-btn-soft:hover,
.erp-btn-soft:focus {
    background: #e5eef9;
    border-color: #c3d7ef;
    color: var(--erp-primary-strong);
}

.erp-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.75rem;
}

.erp-col-3 { grid-column: span 3; }
.erp-col-4 { grid-column: span 4; }
.erp-col-6 { grid-column: span 6; }
.erp-col-12 { grid-column: span 12; }

.erp-card {
    background: var(--erp-surface);
    border: 1px solid var(--erp-border);
    border-radius: 10px;
    box-shadow: var(--erp-shadow-sm);
}

.erp-card-head {
    padding: 0.62rem 0.82rem;
    border-bottom: 1px solid #e9eef5;
    font-weight: 600;
    color: #32475f;
    background: var(--erp-surface-soft);
    border-radius: 10px 10px 0 0;
}

.erp-card-body {
    padding: 0.85rem;
}

.erp-kpi {
    background: var(--erp-surface);
    border: 1px solid var(--erp-border);
    border-radius: 10px;
    padding: 0.75rem;
    box-shadow: var(--erp-shadow-sm);
}

.erp-kpi-label {
    color: var(--erp-text-muted);
    font-size: 0.84rem;
}

.erp-kpi-value {
    margin-top: 0.15rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f2f44;
}

.erp-tabs {
    border-bottom: 1px solid var(--erp-border);
}

.erp-tabs .nav-link {
    border: 1px solid transparent;
    border-bottom: 2px solid transparent;
    color: #3f5168;
    border-radius: 8px 8px 0 0;
    padding: 0.6rem 0.9rem;
    font-weight: 500;
}

.erp-tabs .nav-link:hover {
    color: #2d4059;
    background: #f7faff;
}

.erp-tabs .nav-link.active {
    color: var(--erp-primary);
    background: #fff;
    border-color: var(--erp-border) var(--erp-border) #fff;
    border-bottom-color: #fff;
}

.erp-table-wrap {
    border: 1px solid var(--erp-border);
    border-radius: 10px;
    background: #fff;
    overflow-x: auto;
}

.erp-table {
    margin: 0;
}

.erp-table thead {
    background: #f7f9fc;
}

.erp-table th,
.erp-table td {
    vertical-align: middle;
    border-color: #e8edf4;
}

.erp-table tbody tr:hover {
    background: #fbfdff;
}

.erp-form-card {
    border: 1px solid var(--erp-border);
    border-radius: 10px;
    background: #fff;
    padding: 0.9rem;
}

.erp-form-card .form-control,
.erp-form-card .form-select,
.erp-form-card select.form-control,
.erp-form-card input.form-control {
    border-color: #cfd8e4;
    background-color: #fff;
    box-shadow: none;
}

.erp-form-card .form-control:focus,
.erp-form-card .form-select:focus,
.erp-form-card select.form-control:focus,
.erp-form-card input.form-control:focus {
    border-color: #88aedb;
    box-shadow: 0 0 0 0.15rem rgba(31, 79, 138, 0.13);
}

/* Select2: borde de obligatorio/inválido (el select nativo queda oculto) */
select:required:invalid + .select2-container--bootstrap-5 .select2-selection,
select.is-invalid + .select2-container--bootstrap-5 .select2-selection,
.was-validated select:invalid + .select2-container--bootstrap-5 .select2-selection {
    border-color: #dc3545 !important;
}

select:required:invalid + .select2-container--bootstrap-5.select2-container--focus .select2-selection,
select.is-invalid + .select2-container--bootstrap-5.select2-container--focus .select2-selection,
select:required:invalid + .select2-container--bootstrap-5.select2-container--open .select2-selection,
select.is-invalid + .select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

select:required:valid + .select2-container--bootstrap-5 .select2-selection,
select.is-valid + .select2-container--bootstrap-5 .select2-selection {
    border-color: #198754;
}

/* Select2: mismo ancho del contenedor (evita desborde / scroll horizontal) */
.select2-container {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}
.select2-container--bootstrap-5 {
    display: block;
}
.select2-container .select2-selection {
    box-sizing: border-box;
}

/*
 * Select2 dentro de input-group: width 100% + flex-wrap hace que el
 * contenedor baje debajo del icono (input-group-text). Mismo truco que
 * Bootstrap aplica a .form-control/.form-select (width: 1% + flex).
 */
.input-group > .select2-container {
    width: 1% !important;
    flex: 1 1 auto;
    max-width: 100%;
}
.input-group > .select2-container--bootstrap-5 {
    display: block;
}

.erp-divider {
    margin: 0.7rem 0;
    border-top: 1px solid #e5ebf3;
}

.erp-badge-ok {
    background: #e7f4ef;
    color: var(--erp-success);
    border: 1px solid #cae7dc;
}

.erp-badge-warn {
    background: #fff4df;
    color: var(--erp-warning);
    border: 1px solid #f3dfb4;
}

.erp-badge-danger {
    background: #fdeaea;
    color: var(--erp-danger);
    border: 1px solid #f4c9c9;
}

@media (max-width: 991px) {
    .erp-col-3,
    .erp-col-4,
    .erp-col-6 {
        grid-column: span 6;
    }
}

@media (max-width: 767px) {
    .page-content {
        padding: 0.7rem 0.9rem;
        font-size: 12px;
        letter-spacing: 0.2px;
    }

    .page-content > .container-fluid,
    .page-content .erp-shell.container-fluid,
    .page-content .container-fluid.erp-shell,
    .page-content .container-fluid {
        --bs-gutter-x: 0.5rem;
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }

    .page-content .table,
    .page-content .form-control,
    .page-content .form-select,
    .page-content .form-control-sm,
    .page-content .form-select-sm,
    .page-content .btn-sm,
    .page-content .nav-link,
    .page-content .card,
    .page-content .page-header h1 {
        font-size: inherit;
    }

    /* Select2 más compacto en móvil (igual que form-select-sm) */
    .page-content .select2-container--bootstrap-5 .select2-selection,
    .page-content .form-select-sm ~ .select2-container--bootstrap-5 .select2-selection {
        min-height: calc(1.5em + 0.4rem + 2px) !important;
        padding: 0.2rem 1.75rem 0.2rem 0.45rem !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        border-radius: 0.2rem;
    }
    .page-content .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered,
    .page-content .form-select-sm ~ .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
        font-size: 12px !important;
        line-height: 1.4 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-content .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
        height: 100% !important;
        top: 0 !important;
        right: 0.35rem !important;
    }
    .page-content .select2-dropdown .select2-search__field,
    .page-content .select2-results__option {
        font-size: 12px !important;
    }

    .page-content .page-header h1 {
        font-size: 1.15rem;
    }

    .page-content .page-header h1 small,
    .page-content .page-header h1 .fs-6 {
        font-size: 0.8rem !important;
    }

    .page-content .btn-sm {
        padding: 0.2rem 0.4rem;
        font-size: 0.75rem;
    }

    .page-content .table > :not(caption) > * > * {
        padding: 0.35rem 0.4rem;
    }

    .erp-shell {
        padding: 0.15rem 0 0.55rem;
        font-size: 0.8125rem;
    }

    .erp-page-header {
        padding: 0.5rem 0.65rem;
        margin-bottom: 0.55rem;
        border-radius: 8px;
    }

    .erp-title {
        font-size: 1.05rem;
    }

    .erp-title .bi {
        font-size: 1.25rem;
    }

    .erp-subtitle {
        font-size: 0.72rem;
        margin-top: 0.15rem;
    }

    .erp-form-card {
        padding: 0.5rem;
        border-radius: 8px;
    }

    .erp-form-card.card,
    .erp-shell .card.erp-form-card {
        padding: 0;
    }

    .erp-shell .card.erp-form-card > .card-body {
        padding: 0.5rem;
    }

    .erp-shell .card.erp-form-card > .card-body.p-0 {
        padding: 0 !important;
    }

    .erp-shell .card.erp-form-card > .card-header {
        padding: 0.4rem 0.5rem;
        font-size: 0.8125rem;
    }

    .erp-shell .col-form-label {
        padding-top: 0.15rem;
        padding-bottom: 0.15rem;
        font-size: 0.75rem;
        margin-bottom: 0;
    }

    .erp-shell .form-control-sm,
    .erp-shell .form-select-sm,
    .erp-shell .input-group-sm > .form-control,
    .erp-shell .input-group-sm > .form-select,
    .erp-shell .input-group-sm > .input-group-text {
        font-size: 0.8125rem;
    }

    .erp-shell .form-group {
        margin-bottom: 0.4rem;
    }

    .erp-shell .table,
    .erp-shell .erp-table {
        font-size: 0.75rem;
    }

    .erp-shell .table > :not(caption) > * > *,
    .erp-shell .erp-table > :not(caption) > * > * {
        padding: 0.28rem 0.3rem;
    }

    .erp-shell .accordion-button {
        padding: 0.45rem 0.65rem;
        font-size: 0.8125rem;
    }

    .erp-shell .accordion-body {
        padding: 0.5rem;
    }

    .erp-shell .badge {
        font-size: 0.7rem;
    }

    .erp-divider {
        margin: 0.45rem 0;
    }

    .erp-btn.btn-sm {
        padding: 0.28rem 0.5rem;
    }

    .erp-col-3,
    .erp-col-4,
    .erp-col-6,
    .erp-col-12 {
        grid-column: span 12;
    }
}

/* Elementos enviados (bandeja master-detail) */
.sent-shell { min-height: calc(100vh - 105px); }
.sent-workspace { border: 1px solid #dce3eb; background: #fff; min-height: 610px; display: flex; overflow: hidden; }
.sent-sidebar { width: 355px; flex: 0 0 355px; border-right: 1px solid #dce3eb; display: flex; flex-direction: column; min-height: 610px; }
.sent-sidebar-head { background: linear-gradient(135deg, #075ca6, #0878d8); color: #fff; padding: .8rem 1rem; }
.sent-sidebar-head h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.sent-tools { padding: .7rem; border-bottom: 1px solid #dce3eb; background: #fff; }
.sent-tabs { display: flex; gap: .4rem; margin-bottom: .65rem; }
.sent-tab { border: 1px solid #aeb8c4; border-radius: 18px; background: #fff; color: #243247; padding: .28rem .75rem; font-size: .75rem; text-decoration: none; transition: transform .15s ease, background-color .15s ease; }
.sent-tab:hover { transform: translateY(-1px); color: #075ca6; }
.sent-tab.active { border-color: #7cc5f5; background: #eaf7ff; color: #0765ad; }
.sent-list { overflow-y: auto; flex: 1 1 auto; }
.sent-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: .6rem; padding: .75rem .8rem; border-bottom: 1px solid #edf0f4; cursor: pointer; transition: background-color .15s ease, border-left-color .15s ease; border-left: 3px solid transparent; }
.sent-item:hover, .sent-item.active { background: #eef7ff; border-left-color: #0878d8; }
.sent-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #39b75d; color: #fff; font-size: .7rem; font-weight: 700; }
.sent-from, .sent-subject, .sent-preview { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sent-from { color: #243247; font-size: .76rem; font-weight: 700; text-transform: uppercase; }
.sent-subject { color: #313c4c; font-size: .74rem; font-weight: 600; }
.sent-preview { color: #6d7888; font-size: .67rem; }
.sent-date { color: #5e6875; font-size: .65rem; white-space: nowrap; text-align: right; }
.sent-status-error { color: #ba2d3b; }
.sent-main { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; background: #fff; }
.sent-empty { flex: 1 1 auto; display: grid; place-items: center; color: #6d7888; text-align: center; padding: 2rem; }
.sent-detail { display: none; flex: 1 1 auto; flex-direction: column; animation: sentDetailIn .2s ease; min-height: 0; }
.sent-detail-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: .7rem; padding: .8rem 1rem; border-bottom: 1px solid #dce3eb; flex: 0 0 auto; }
.sent-detail-body { padding: .85rem 1.25rem .35rem; overflow-y: visible; flex: 0 0 auto; }
.sent-detail-subject { font-size: 1rem; font-weight: 700; color: #243247; margin-bottom: .3rem; }
.sent-meta { color: #6d7888; font-size: .75rem; }
.sent-message-frame { width: 100%; min-height: 0; height: auto; border: 0; background: #fff; overflow: hidden; display: block; }
.sent-attachments { margin: .5rem 0 0; padding: .65rem .75rem; border: 1px solid #dce3eb; background: #f7f9fc; }
.sent-attachments-title { margin: 0 0 .45rem 0; font-size: .78rem; font-weight: 700; color: #314056; display: flex; align-items: center; gap: .35rem; }
.sent-attachments-title .bi { color: #0878d8; }
.sent-attachments-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.sent-attachment {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #1f3a5a;
    text-decoration: none;
    padding: .4rem .7rem;
    border: 1px solid #c5d6ea;
    background: #fff;
    border-radius: 6px;
    font-size: .78rem;
    font-weight: 600;
    transition: background-color .15s ease, border-color .15s ease;
}
.sent-attachment:hover { background: #eef6ff; border-color: #7cb5e8; color: #075ca6; }
.sent-attachment .bi-download { font-size: .85rem; color: #0878d8; }
.sent-footer { border-top: 1px solid #dce3eb; padding: .5rem 1rem; background: #fafbfd; display: flex; justify-content: flex-end; flex: 0 0 auto; }
.sent-error-box { display: none; color: #922936; background: #fff1f2; border-left: 3px solid #dc3545; padding: .55rem .7rem; margin-bottom: 1rem; font-size: .78rem; }
.sent-pager { padding: .55rem; display: flex; justify-content: space-between; border-top: 1px solid #dce3eb; }
@keyframes sentDetailIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
@media (max-width: 767px) {
    .sent-workspace { display: block; min-height: auto; }
    .sent-sidebar { width: 100%; min-height: 360px; max-height: 52vh; border-right: 0; border-bottom: 1px solid #dce3eb; }
    .sent-main { min-height: 480px; }
    .sent-detail-body { padding: 1rem; }
}

/* =========================================================
   Estilos globales (antes inline en master/header.html)
   ========================================================= */
.btn-info-informe {
    font-size: 0.85em;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
    cursor: pointer;
}
.btn-info-informe:hover {
    opacity: 1;
    transform: scale(1.2);
}
.btn-info-informe[aria-expanded="true"] {
    opacity: 1;
}

/* jQuery UI autocomplete — estilo Bootstrap */
.ui-autocomplete {
    position: absolute;
    z-index: 9999 !important;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: .375rem;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
    padding: .25rem 0;
    list-style: none;
    font-size: .875rem;
}
.ui-autocomplete .ui-menu-item-wrapper {
    display: block;
    padding: .35rem .75rem;
    color: #212529;
    cursor: pointer;
}
.ui-autocomplete .ui-menu-item-wrapper.ui-state-active,
.ui-autocomplete .ui-menu-item-wrapper:hover {
    background-color: #0d6efd;
    color: #fff;
    border-radius: .25rem;
}
.ui-helper-hidden-accessible {
    display: none;
}
   /* Botón X de limpieza Select2 */
.select2-container--bootstrap-5 .select2-selection__clear {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 0.35rem;
    padding: 0 !important;
    border: 1px solid #adb5bd !important;
    border-radius: 50%;
    background-color: #f1f3f5 !important;
    color: #495057 !important;
    opacity: 1 !important;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
}

.select2-container--bootstrap-5 .select2-selection__clear:hover {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #fff !important;
}