/*Color de la barra donde esta el logo*/

.app-header__logo {
    background-color: #454674;
}

/* Header responsive (logo + sucursal + acciones) */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}

.app-header__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 60%;
}

.app-header__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.app-header__sucursal {
  font-weight: 700;
  color: #FFD700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.app-nav {
  flex: 0 0 auto;
  margin-left: auto;
}

.app-search--global {
  position: relative;
}

.app-search__results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(520px, 92vw);
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(69, 70, 116, 0.12);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
  z-index: 1200;
  padding: 8px 0;
}

.app-search__results.d-none {
  display: none !important;
}

.app-search__result-empty {
  padding: 14px 18px;
  color: #6c757d;
  font-size: 0.9rem;
}

.app-search__result-group {
  padding: 4px 0 8px;
}

.app-search__result-group + .app-search__result-group {
  border-top: 1px solid #eef1f6;
}

.app-search__result-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  padding: 8px 18px 6px;
}

.app-search__result-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 18px;
  color: #1f2937;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.app-search__result-item:hover,
.app-search__result-item:focus {
  background: #f6f8fc;
  color: #111827;
  text-decoration: none;
}

.app-search__result-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
  background: #eef2ff;
  color: #454674;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.app-search__result-text {
  min-width: 0;
}

.app-search__result-primary {
  font-weight: 700;
  line-height: 1.2;
  color: #1f2937;
}

.app-search__result-secondary {
  display: block;
  font-size: 0.84rem;
  color: #6b7280;
  margin-top: 2px;
}

.app-search__result-meta {
  display: block;
  font-size: 0.78rem;
  color: #9aa3b2;
  margin-top: 3px;
}

@media (min-width: 992px) {
  .app-header__left {
    max-width: 70%;
  }
  .app-header__sucursal {
    max-width: 240px;
  }
}

.app-header__sucursal--mobile {
  font-size: 0.7rem;
  max-width: 140px;
}

@media (max-width: 576px) {
  .app-header {
    flex-wrap: wrap;
    padding-right: 8px;
  }

  .app-header__logo img {
    width: 120px;
  }

  .app-header__brand {
    max-width: 180px;
  }

  .app-header__left {
    flex: 1 1 auto;
  }

  .app-nav {
    margin-left: auto;
  }

  .app-search {
    display: none;
  }
}
.app-header {
    background-color: #454674;
}
/*=======================================

/*Color de menu Amburguesa*/

.app-sidebar__toggle:focus, .app-sidebar__toggle:hover {
    background-color: #333457;
}
.app-sidebar {
    background-color: #0E0D15;
}
/*==================================================*/

/*Color del menu cuando pasamos por el hover*/

.app-menu__item.active, .app-menu__item:hover, .app-menu__item:focus {
    background: #454674;
    border-left-color: #333457;
}
/*color de menu*/

.treeview.is-expanded [data-toggle='treeview'] {
    background: #454674;
}
/*Color de sut menu*/

.treeview-menu {
    background: #333457;
}
.treeview-item.active, .treeview-item:hover, .treeview-item:focus {
    background: #25263F;
}
.sidebar-mini.sidenav-toggled .treeview:hover .app-menu__item {
    background: #25263F;
}
.app-sidebar__user-avatar {
    width: 48px;
    height: 48px;
    background: gray;
    /* padding: 6px;*/
}
/*boton personalizados*/

.btn-personalizado {
    color: #FFF;
    background-color: #454674;
    border-color: #454674;
}
.btn-personalizado:hover {
    color: #FFF;
    background-color: #6A6BA6;
    border-color: #6A6BA6;
}
.btn-personalizado:focus, .btn-personalizado.focus {
    -webkit-box-shadow: 0 0 0 0 rgba(38, 166, 154, 0.5);
    box-shadow: 0 0 0 0 rgba(38, 166, 154, 0.5);
}
.btn-personalizado.disabled, .btn-personalizado:disabled {
    color: #FFF;
    background-color: #454674;
    border-color: #454674;
}
.btn-personalizado:not(:disabled):not(.disabled):active, .btn-personalizado:not(:disabled):not(.disabled).active, .show>.btn-personalizado.dropdown-toggle {
    color: #FFF;
    background-color: #B7B8D5;
    border-color: #00564e;
}
.btn-personalizado:not(:disabled):not(.disabled):active:focus, .btn-personalizado:not(:disabled):not(.disabled).active:focus, .show>.btn-personalizado.dropdown-toggle:focus {
    -webkit-box-shadow: 0 0 0 0 rgba(38, 166, 154, 0.5);
    box-shadow: 0 0 0 0 rgba(38, 166, 154, 0.5);
}
.headerRegister, .header-primary {
    background: #454674;
    color: #FFF;
}
.headerUpdate {
    background: #454674;
    color: #FFF;
}
.textcenter {
    text-align: center;
}
.textright {
    text-align: right;
}
.textleft {
    text-align: left;
}
.bootstrap-select>.dropdown-toggle {
    border: 1px solid #CCC;
}
/*Estilos login*/

#divLoading {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(254, 254, 255, .65);
    z-index: 9999;
    display: none;
}
#divLoading img {
    width: 50px;
    height: 50px;
}
.required {
    color: red;
    font-size: 13pt;
    font-weight: bold;
}
/* style portada categorÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â­a */

.prevPhoto {
    display: flex;
    justify-content: space-between;
    width: 300px;
    height: 200px;
    border: 1px solid #CCC;
    position: relative;
    cursor: pointer;
    background: url(../images/uploads/portada_categoria.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    margin: auto;
}
.prevPortada {
    width: 100%;
    min-width: 200px;
    background: none;
}
.prevPhoto label {
    cursor: pointer;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}
.prevPhoto img {
    width: 100%;
    height: 100%;
}
.upimg, .notblock {
    display: none !important;
}
.errorArchivo {
    font-size: 16px;
    font-family: arial;
    color: #cc0000;
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
}
.delPhoto {
    color: #FFF;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    background: red;
    position: absolute;
    right: -10px;
    top: -10px;
    z-index: 10;
}
#tbl_list_productos img {
    width: 50px;
}
.imgProductoDelete {
    width: 175px;
}
#imgCategoria {
    text-align: center;
}
#imgCategoria img {
    width: 200px;
    margin: auto;
}
/* Upload fotos*/

#containerImages {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}
#containerImages>div {
    margin-right: 10px;
    margin-bottom: 8px;
}
.prevImage {
    border: 1px solid #CCC;
    width: 120px;
    height: 148px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.prevImage img {
    width: 100%;
}
.inputUploadfile {
    display: none;
}
.btnUploadfile, .btnDeleteImage {
    border: 0;
    background-color: #009688;
    text-align: center;
    padding: 2px 3px;
    color: #FFF;
    font-size: 9pt;
    cursor: pointer;
    width: 100%;
}
.btnDeleteImage {
    background-color: #dc3545;
}
.prevImage .loading {
    width: 30px;
    height: 30px;
}
#celFotos img {
    width: 150px;
    margin: 10px;
}
/* TIENDA VIRTUAL */

.divmetodpago label, #divCondiciones {
    width: 100%;
    display: flex;
}
.divmetodpago label input, #divCondiciones input {
    margin-right: 15px;
}
#divCondiciones a {
    margin-left: 5px;
}
#divCondiciones label {
    margin-bottom: 0;
}
.linkw:hover {
    text-decoration: none;
}
.container-title {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.container-title input {
    border: 1px solid #CCC;
    padding: 4px;
    border-radius: 5px;
    margin-right: 5px;
}
.dflex {
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.ui-datepicker-calendar {
    display: none;
}
.page-content ul li {
    list-style-type: disc;
    margin-left: 15px;
    margin-bottom: 10px;
}
.page-content ol li {
    list-style-type: decimal;
    margin-left: 15px;
    margin-bottom: 10px;
}
.page-content ul li ul li, .page-content ol li ul li {
    list-style-type: circle;
    list-style-position: inside;
    margin-left: 15px;
}
.page-content ol li ol li, .page-content ul li ol li {
    list-style-type: lower-latin;
    list-style-position: inside;
    margin-left: 15px;
}
.page-error {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-height: calc(100vh - 110px);
    margin-bottom: 0;
}
.page-error h1 {
    margin: 10px;
    color: #dc3545;
    font-size: 42px;
}
.contenedorQR {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.botonF1{
    width:60px;
    height:60px;
    border-radius:100%;
    background:#464775;
    right:0;
    bottom:0;
    position:absolute;
    margin-right:16px;
    margin-bottom:16px;
    border:none;
    outline:none;
    color:#FFF;
    font-size:25px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    transition:.3s;  
  }
  span{
    transition:.5s;  
  }
  .botonF1:hover span{
    transform:rotate(360deg);
  }
  .botonF1:active{
    transform:scale(3.3);
    outline: none;
   
  }

  .texto-encimaVerde{

    width:25px;
    height:25px;
    border-radius:100%;
    background:#059735;
    right:0;
    bottom:0;
    position:absolute;
    margin-right:10px;
    margin-bottom:10px;
    border:none;
    outline:none;
    color:#FFF;
    font-size:20px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    transition:.3s;  
  }

  .texto-encimaRojo{

    width:25px;
    height:25px;
    border-radius:100%;
    background:#FC4237;
    right:0;
    bottom:0;
    position:absolute;
    margin-right:10px;
    margin-bottom:10px;
    border:none;
    outline:none;
    color:#FFF;
    font-size:20px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    transition:.3s;  
  }

  .popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.popup-content {
    position: absolute;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.closeBtn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.closeBtn:hover,
.closeBtn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.popup-content h5 {
    color: #dc3545; /* Un tono de lila */
    margin-bottom: 15px;
}

.popup-content p {
    color:#1E303F ; /* Otro tono de lila mÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¡s oscuro */
}

/* ESTE CSS PARA MOSTRAR EL MONTO DE INVERSION */
.containers {
    display: flex;
    gap: 10px;
}

.cards {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 5px;
    text-align: center;
    width: 200px;
}

.cards h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.monto-inversion {
    font-size: 18px;
    color: red;
    font-weight: bold;
}

.monto-recuperar {
    font-size: 18px;
    color: green;
    font-weight: bold;
}

.monto-ganacia {
    font-size: 18px;
    color: gray;
    font-weight: bold;
}

/* Media Query para pantallas moviles */
@media (max-width: 768px) {\r\n  .cierres-actions .btn-text {\r\n    display: none;\r\n  }\r\n  .cierres-actions .btn-cierre-action {\r\n    padding-left: 0.6rem;\r\n    padding-right: 0.6rem;\r\n  }\r\n}

    .monto-inversion,
    .monto-recuperar,
    .monto-ganacia {
        font-size: 12px;
    }
}
/* ==================================================================== */
#productos {
    transition: all 0.5s ease;
  }

  .aviso {
    color:#DC3545;
    font-size: 12px;
    display: none;
}

.dataTables_filter input {
    width: 400px !important;
    height: 37px !important;
    padding: 10px 20px !important;
    font-size: 15px !important;
    border: 2px solid #ccc !important;
    border-radius: 8px !important;
    transition: all 0.3s !important;
}

/* Efecto hover y focus*/
.dataTables_filter input:hover {
    border-color: #888 !important;
}

.dataTables_filter input:focus {
    border-color: #555 !important;
    box-shadow: 0 0 8px rgba(0,0,0,0.1) !important;
}

.fila-seleccionada {
    background-color: #d7ecff;
    font-weight: bold;
}

 .d-none-important {
      display: none !important;
    }
/* AnimaciÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â³n Fade + Slide */
    .fade-slide-in {
      animation: fadeSlideIn 0.4s ease forwards;
    }

    @keyframes fadeSlideIn {
      0% {
        opacity: 0;
        transform: translateX(30px);
      }
      100% {
        opacity: 1;
        transform: translateX(0);
      }
    }

    ul li {
    cursor: pointer;
}

.toolbar-icon {
    transition: transform 0.2s, color 0.2s;
    cursor: pointer;
  }
  .toolbar-icon:hover {
    color: #0d6efd; /* Azul Bootstrap */
    transform: scale(1.2); /* Aumenta un poco el tamaÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â±o al pasar el mouse */
  }


/* Ajuste mobile para vista Productos */
@media (max-width: 768px) {\r\n  .cierres-actions .btn-text {\r\n    display: none;\r\n  }\r\n  .cierres-actions .btn-cierre-action {\r\n    padding-left: 0.6rem;\r\n    padding-right: 0.6rem;\r\n  }\r\n}
    .app-content--productos .tile-body {
        padding: 10px;
    }
    .app-content--productos .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
}



/* Tabs productos: solo iconos en movil */
@media (max-width: 768px) {\r\n  .cierres-actions .btn-text {\r\n    display: none;\r\n  }\r\n  .cierres-actions .btn-cierre-action {\r\n    padding-left: 0.6rem;\r\n    padding-right: 0.6rem;\r\n  }\r\n}
  .app-content--productos .nav-tabs .nav-link {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }
}




/* Cierres: acciones */
.cierres-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cierres-actions .btn-cierre-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cierres-actions .btn-cierre-action i {
  font-size: 1rem;
  line-height: 1;
}
.cierres-actions .btn-text {
  font-size: 0.95rem;
  line-height: 1.2;
}
@media (max-width: 768px) {
  .cierres-actions .btn-text {
    display: none;
  }
  .cierres-actions .btn-cierre-action {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }
}



/* Ventas DataTableLite: ajustes flexibles por columna */
.col-vta-num { width: 36px; min-width: 24px; max-width: 60px; }
.col-vta-accion { width: 110px; min-width: 80px; max-width: 160px; }
.col-vta-img { width: 70px; min-width: 50px; max-width: 90px; }
.col-vta-cod { width: 140px; min-width: 120px; max-width: 220px; }
.col-vta-desc { width: 260px; min-width: 200px; max-width: 420px; }
.col-vta-marca { width: 180px; min-width: 140px; max-width: 260px; }
.col-vta-stock { width: 70px; min-width: 60px; max-width: 90px; }
.col-vta-precios { width: 220px; min-width: 180px; max-width: 320px; }
.col-vta-oferta { width: 110px; min-width: 90px; max-width: 160px; }
.col-vta-tipo { width: 130px; min-width: 110px; max-width: 200px; }
.col-vta-ubic { width: 120px; min-width: 90px; max-width: 180px; }



/* Ventas: evitar scroll extra y permitir ajustar anchos */
.app-content--ventas .ventas-table-wrap {
  overflow: visible;
}
.app-content--ventas .table-responsive-custom {
  overflow-x: auto;
  overflow-y: auto;
}
.app-content--ventas .table-responsive-custom .table td.col-vta-num,
.app-content--ventas .table-responsive-custom .table th.col-vta-num {
  width: 36px !important;
  min-width: 24px !important;
  max-width: 60px !important;
}
.app-content--ventas .table-responsive-custom .table td.col-vta-accion,
.app-content--ventas .table-responsive-custom .table th.col-vta-accion {
  width: 110px !important;
  min-width: 80px !important;
  max-width: 160px !important;
}
.app-content--ventas .table-responsive-custom .table td.col-vta-img,
.app-content--ventas .table-responsive-custom .table th.col-vta-img {
  width: 70px !important;
  min-width: 50px !important;
  max-width: 90px !important;
}
.app-content--ventas .table-responsive-custom .table td.col-vta-cod,
.app-content--ventas .table-responsive-custom .table th.col-vta-cod {
  width: 140px !important;
  min-width: 120px !important;
  max-width: 220px !important;
}
.app-content--ventas .table-responsive-custom .table td.col-vta-desc,
.app-content--ventas .table-responsive-custom .table th.col-vta-desc {
  width: 260px !important;
  min-width: 200px !important;
  max-width: 420px !important;
}
.app-content--ventas .table-responsive-custom .table td.col-vta-marca,
.app-content--ventas .table-responsive-custom .table th.col-vta-marca {
  width: 180px !important;
  min-width: 140px !important;
  max-width: 260px !important;
}
.app-content--ventas .table-responsive-custom .table td.col-vta-stock,
.app-content--ventas .table-responsive-custom .table th.col-vta-stock {
  width: 70px !important;
  min-width: 60px !important;
  max-width: 90px !important;
}
.app-content--ventas .table-responsive-custom .table td.col-vta-precios,
.app-content--ventas .table-responsive-custom .table th.col-vta-precios {
  width: 220px !important;
  min-width: 180px !important;
  max-width: 320px !important;
}
.app-content--ventas .table-responsive-custom .table td.col-vta-oferta,
.app-content--ventas .table-responsive-custom .table th.col-vta-oferta {
  width: 110px !important;
  min-width: 90px !important;
  max-width: 160px !important;
}
.app-content--ventas .table-responsive-custom .table td.col-vta-tipo,
.app-content--ventas .table-responsive-custom .table th.col-vta-tipo {
  width: 130px !important;
  min-width: 110px !important;
  max-width: 200px !important;
}
.app-content--ventas .table-responsive-custom .table td.col-vta-ubic,
.app-content--ventas .table-responsive-custom .table th.col-vta-ubic {
  width: 120px !important;
  min-width: 90px !important;
  max-width: 180px !important;
}

/* Historial cuentas: modal mÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¡s grande */
.modal-historial-xl {
  max-width: 95vw;
}
.modal-historial-xl .modal-body {
  max-height: 80vh;
  overflow-y: auto;
}

/* DataTableLite: mantener scroll solo en la tabla */
.app-content--ventas #dataTableVentasProductosContainer,
.app-content--ventas #dataTableVentasProductosContainer .card,
.app-content--ventas #dataTableVentasProductosContainer .card-body,
.app-content--productos #dataTableContainer,
.app-content--productos #dataTableContainer .card,
.app-content--productos #dataTableContainer .card-body {
  overflow: visible;
}

.app-content--ventas #dataTableVentasProductosContainer .table-responsive-custom,
.app-content--productos #dataTableContainer .table-responsive-custom {
  min-height: 560px;
  max-height: clamp(560px, 72vh, 920px);
  overflow-x: auto;
  overflow-y: auto;
}

.app-content--ventas #dataTableVentasProductosContainer {
  margin-top: 8px;
}

/* Cuentas a cobrar: DataTableLite con look mas tradicional */
.app-content--cuentascobrar #dataTableCuentasActivasContainer,
.app-content--cuentascobrar #dataTableCuentasInactivasContainer {
  margin-top: 10px;
}

.app-content--cuentascobrar #dataTableCuentasActivasContainer .card,
.app-content--cuentascobrar #dataTableCuentasInactivasContainer .card {
  border: 1px solid #dbe3ee !important;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(37, 60, 89, 0.08) !important;
  overflow: hidden;
}

.app-content--cuentascobrar #dataTableCuentasActivasContainer .card-header,
.app-content--cuentascobrar #dataTableCuentasInactivasContainer .card-header {
  background: linear-gradient(180deg, #fbfcfe 0%, #f3f6fa 100%);
  border-bottom: 1px solid #dbe3ee;
  padding: 0.85rem 1rem;
}

.app-content--cuentascobrar #dataTableCuentasActivasContainer .card-footer,
.app-content--cuentascobrar #dataTableCuentasInactivasContainer .card-footer {
  background: #fbfcfe;
  border-top: 1px solid #dbe3ee;
  padding: 0.75rem 1rem;
}

.app-content--cuentascobrar #dataTableCuentasActivasContainer .input-group-text,
.app-content--cuentascobrar #dataTableCuentasInactivasContainer .input-group-text {
  background: #eef3f8;
  border-color: #cfd9e6;
  color: #5d6d81;
}

.app-content--cuentascobrar #dataTableCuentasActivasContainer .form-control,
.app-content--cuentascobrar #dataTableCuentasInactivasContainer .form-control {
  border-color: #cfd9e6;
  box-shadow: none;
}

.app-content--cuentascobrar #dataTableCuentasActivasContainer .form-control:focus,
.app-content--cuentascobrar #dataTableCuentasInactivasContainer .form-control:focus {
  border-color: #7aa7d9;
  box-shadow: 0 0 0 0.16rem rgba(69, 129, 192, 0.14);
}

.app-content--cuentascobrar #dataTableCuentasActivasContainer .table-responsive-custom,
.app-content--cuentascobrar #dataTableCuentasInactivasContainer .table-responsive-custom {
  border: none;
  min-height: 560px;
  max-height: clamp(560px, 70vh, 900px);
}

.app-content--cuentascobrar #dataTableCuentasActivasContainer .table thead th,
.app-content--cuentascobrar #dataTableCuentasInactivasContainer .table thead th {
  background: #e9eef5;
  color: #334155;
  border-bottom: 1px solid #d5deea;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.app-content--cuentascobrar #dataTableCuentasActivasContainer .table tbody tr:nth-child(even),
.app-content--cuentascobrar #dataTableCuentasInactivasContainer .table tbody tr:nth-child(even) {
  background-color: #fbfcfe;
}

.app-content--cuentascobrar #dataTableCuentasActivasContainer .table tbody tr:hover,
.app-content--cuentascobrar #dataTableCuentasInactivasContainer .table tbody tr:hover {
  background-color: #eef5ff;
}

.app-content--cuentascobrar #dataTableCuentasActivasContainer .table td,
.app-content--cuentascobrar #dataTableCuentasInactivasContainer .table td {
  border-top: 1px solid #edf1f6;
  font-size: 0.84rem;
  color: #344054;
}

.app-content--cuentascobrar #dataTableCuentasActivasContainer .table td.dtl-wrap,
.app-content--cuentascobrar #dataTableCuentasInactivasContainer .table td.dtl-wrap {
  min-width: 200px;
  max-width: 200px;
  line-height: 1.3;
}

#dataTableLibroBancoMovimientosContainer .table.table-dtl-strict-width th.col-librobanco-concepto,
#dataTableLibroBancoMovimientosContainer .table.table-dtl-strict-width td.col-librobanco-concepto {
  width: 200px !important;
  min-width: 200px !important;
  max-width: 200px !important;
}

#dataTableLibroBancoMovimientosContainer .table td.col-librobanco-concepto.dtl-wrap,
#dataTableLibroBancoMovimientosContainer .table .librobanco-concepto-wrap {
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

#dataTableLibroBancoMovimientosContainer .table.table-dtl-strict-width th.col-librobanco-usuario,
#dataTableLibroBancoMovimientosContainer .table.table-dtl-strict-width td.col-librobanco-usuario {
  width: 160px !important;
  min-width: 160px !important;
  max-width: 160px !important;
}

#dataTableLibroBancoMovimientosContainer .table td.col-librobanco-usuario.dtl-wrap {
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.3;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

#dataTableGastosContainer .table.table-dtl-strict-width th.col-gastos-categoria,
#dataTableGastosContainer .table.table-dtl-strict-width td.col-gastos-categoria {
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
}

#dataTableGastosContainer .table.table-dtl-strict-width th.col-gastos-descripcion,
#dataTableGastosContainer .table.table-dtl-strict-width td.col-gastos-descripcion {
  width: 240px !important;
  min-width: 240px !important;
  max-width: 240px !important;
}

#dataTableGastosContainer .table td.col-gastos-categoria.dtl-wrap,
#dataTableGastosContainer .table td.col-gastos-descripcion.dtl-wrap {
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

#dataTableGastosContainer .table.table-dtl-strict-width th.col-gastos-usuario,
#dataTableGastosContainer .table.table-dtl-strict-width td.col-gastos-usuario {
  width: 160px !important;
  min-width: 160px !important;
  max-width: 160px !important;
}

#dataTableGastosContainer .table td.col-gastos-usuario.dtl-wrap {
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.3;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.app-content--cajachica #dataTableCajaChicaMovimientosContainer .table.table-dtl-strict-width th.col-cajachica-concepto,
.app-content--cajachica #dataTableCajaChicaMovimientosContainer .table.table-dtl-strict-width td.col-cajachica-concepto {
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
}

.app-content--cajachica #dataTableCajaChicaMovimientosContainer .table td.col-cajachica-concepto {
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.app-content--cajachica .cajachica-export-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 1200px) {
  .app-content--cuentascobrar #dataTableCuentasActivasContainer .table-responsive-custom,
  .app-content--cuentascobrar #dataTableCuentasInactivasContainer .table-responsive-custom {
    min-height: 460px;
    max-height: clamp(460px, 64vh, 740px);
  }

  .app-content--cajachica #dataTableCajaChicaMovimientosContainer .table td.col-cajachica-concepto,
  .app-content--cajachica #dataTableCajaChicaMovimientosContainer .table th.col-cajachica-concepto {
    font-size: 0.76rem;
  }
}

@media (max-width: 767px) {
  .app-content--cajachica .cajachica-export-toolbar {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .app-content--cuentascobrar #dataTableCuentasActivasContainer .card-header .text-right,
  .app-content--cuentascobrar #dataTableCuentasInactivasContainer .card-header .text-right,
  .app-content--cuentascobrar #dataTableCuentasActivasContainer .card-footer .text-right,
  .app-content--cuentascobrar #dataTableCuentasInactivasContainer .card-footer .text-right {
    text-align: left !important;
    margin-top: 0.45rem;
  }

  .app-content--cuentascobrar #dataTableCuentasActivasContainer .table-responsive-custom,
  .app-content--cuentascobrar #dataTableCuentasInactivasContainer .table-responsive-custom {
    min-height: 240px;
    max-height: clamp(240px, 56vh, 500px);
  }
}

.app-nav__item--alerts {
  position: relative;
}

.app-nav__alert-badge {
  position: absolute;
  top: 6px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #009688;
}

.app-notification--alerts {
  min-width: 360px;
}

.app-notification--alerts .app-notification__content {
  max-height: 360px;
  overflow-y: auto;
}

.app-notification--alerts .app-notification__item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-notification--alerts .app-notification__item > div {
  flex: 1;
  min-width: 0;
}

.app-notification__count {
  margin-left: auto;
  min-width: 34px;
  text-align: center;
}

@media (max-width: 768px) {
  .app-notification--alerts {
    min-width: 300px;
    max-width: calc(100vw - 24px);
  }
}

@media (max-width: 1200px) {
  .app-content--ventas #dataTableVentasProductosContainer .table-responsive-custom,
  .app-content--productos #dataTableContainer .table-responsive-custom {
    min-height: 460px;
    max-height: clamp(460px, 66vh, 760px);
  }
}

@media (max-width: 768px) {
  .app-content--ventas #dataTableVentasProductosContainer .table-responsive-custom,
  .app-content--productos #dataTableContainer .table-responsive-custom {
    min-height: 240px;
    max-height: clamp(240px, 58vh, 520px);
  }
}

.app-content--analisiscompras .analisis-mini-card {
  border: 1px solid #dfe6ee;
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px 14px;
  min-height: 74px;
}

.app-content--analisiscompras #navAnalisisComprasModo .nav-link {
  font-weight: 600;
}

.app-content--analisiscompras #dataTableResumenAnalisisComprasContainer tbody tr {
  cursor: pointer;
}

.app-content--analisiscompras #dataTableResumenAnalisisComprasContainer tbody tr.dtl-row-active {
  background: rgba(13, 110, 253, 0.08);
}

.perfil-config-modal .modal-body {
  background: #f8fafc;
}

.perfil-config-resumen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.perfil-config-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.perfil-config-helper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  background: #f8fbfd;
  color: #475569;
}

.perfil-config-helper i {
  color: #1d6f8f;
  margin-top: 2px;
}

.perfil-config-card {
  border: 1px solid #dbe4ee;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.perfil-config-card .card-header {
  background: #eef4f9;
  border-bottom: 1px solid #dbe4ee;
}

.perfil-config-list {
  min-height: 320px;
  max-height: 420px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0;
}

.perfil-config-item,
.perfil-config-empty,
.perfil-config-placeholder {
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 8px;
  padding: 10px 12px;
}

.perfil-config-item {
  cursor: pointer;
  transition: all 0.2s ease;
}

.perfil-config-item:hover,
.perfil-config-item.active {
  border-color: #1d6f8f;
  box-shadow: 0 8px 20px rgba(29, 111, 143, 0.12);
}

.perfil-config-placeholder {
  border-style: dashed;
  min-height: 58px;
  background: #f1f8fb;
}

.perfil-config-item-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.perfil-config-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e6f2f7;
  color: #1d6f8f;
  flex-shrink: 0;
}

.perfil-config-item-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.perfil-config-item-copy small {
  color: #64748b;
  word-break: break-word;
}

.perfil-config-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.perfil-menu-tree {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.perfil-menu-group {
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.perfil-menu-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #f8fbfd;
  border-bottom: 1px solid #e2e8f0;
}

.perfil-menu-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.perfil-menu-group-title i {
  color: #1d6f8f;
}

.perfil-menu-group-body {
  padding: 10px;
}

.perfil-group-sort-handle,
.orden-menu-handle,
.perfil-window-sort-handle {
  cursor: move;
}

.orden-menu-handle,
.perfil-window-sort-handle {
  width: 30px;
  height: 30px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
  background: #fff;
}

.perfil-sort-placeholder {
  border: 1px dashed #1d6f8f;
  border-radius: 10px;
  background: rgba(29, 111, 143, 0.08);
  min-height: 48px;
  margin-bottom: 8px;
}

.perfil-menu-node {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 8px;
}

.perfil-menu-node.is-selected {
  border-color: #1d6f8f;
  box-shadow: 0 8px 20px rgba(29, 111, 143, 0.12);
}

.perfil-menu-node.is-partial > .perfil-menu-node-main {
  background: #fff9eb;
}

.perfil-menu-node-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
}

.perfil-menu-node-main:hover {
  background: #f8fbfd;
}

.perfil-menu-node-main.is-clickable {
  cursor: pointer;
}

.perfil-menu-node-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.perfil-menu-node-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e6f2f7;
  color: #1d6f8f;
  flex-shrink: 0;
}

.perfil-menu-node-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.perfil-menu-node-text small {
  color: #64748b;
  word-break: break-word;
}

.perfil-menu-node-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.perfil-menu-node-children {
  padding: 0 10px 10px 46px;
}

.perfil-menu-toggle {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #fff;
  color: #475569;
}

.perfil-menu-badge {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
}

.perfil-menu-badge.is-assigned {
  background: #d1fae5;
  color: #166534;
}

.perfil-menu-badge.is-available {
  background: #e2e8f0;
  color: #475569;
}

.perfil-menu-badge.is-partial {
  background: #fef3c7;
  color: #92400e;
}

.perfil-config-action-item {
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #dbe4ee;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .perfil-config-list {
    min-height: 220px;
  }

  .perfil-menu-node-main,
  .perfil-menu-group-header {
    flex-direction: column;
    align-items: stretch;
  }

  .perfil-menu-node-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .perfil-menu-node-children {
    padding-left: 14px;
  }
}
/* Informe cobradores: ajustar texto largo al ancho de cada columna */
#dataTableInformeCobradoresContainer .table.table-dtl-strict-width th,
#dataTableInformeCobradoresContainer .table.table-dtl-strict-width td {
  box-sizing: border-box;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
}

#dataTableInformeCobradoresContainer .table.table-dtl-strict-width td strong,
#dataTableInformeCobradoresContainer .table.table-dtl-strict-width td small {
  display: block;
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* Informe cobradores: legibilidad del total cobrado */
#txtResumenTituloTotalCobrado,
#txtResumenTotalCobrado,
#txtResumenPorcentajeCobrado {
  color: #111827 !important;
}

/* Informe cobradores: tabla de totales por cobrador */
.informe-cobradores-totales table {
  table-layout: fixed;
  background: #fff;
}

.informe-cobradores-totales th,
.informe-cobradores-totales td {
  vertical-align: middle;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.informe-cobradores-totales thead th {
  color: #111827;
  font-weight: 700;
}
/* DataTableLite: encabezados ordenables */
.table-dtl-fixed-layout {
  table-layout: fixed;
}

.table td.dtl-wrap,
.table th.dtl-wrap,
.table.table-dtl-strict-width td,
.table.table-dtl-strict-width th {
  box-sizing: border-box;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.3;
}

.table td.dtl-wrap *,
.table th.dtl-wrap * {
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.table td.dtl-wrap .d-flex > div,
.table th.dtl-wrap .d-flex > div {
  min-width: 0;
}

.dtl-sortable {
  cursor: pointer;
  user-select: none;
}

.dtl-sortable .dtl-sort-icon {
  color: #6b7280;
  font-size: 10px;
  margin-left: 4px;
}

.dtl-sort-active .dtl-sort-icon {
  color: #111827;
  font-weight: 700;
}
