/*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;
}

@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;
}

@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);
  }
}

