.app-sidebar__user-avatar {
    width: 48px;
    background: gray;
    padding: 6px;
}

.app-sidebar__toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15pt;
}

.app-sidebar__toggle::before {
    display: none;
}

.headerRegister, .header-primary {
    background: #009688;
    color: #FFF;
}

.headerUpdate {
    background: #007bff;
    color: #FFF;
}

.notBlock {
    display: none !important;
}

#divLoading {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(254, 254, 255, .65);
    z-index: 9999;
}

#divLoading img {
    width: 50px;
    height: 50px;
}

.required {
    color: red;
    font-size: 13pt;
    font-weight: bold;
}

/* ── Foto upload ── */
.prevPhoto {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    max-width: 300px;
    height: 200px;
    border: 1px solid #CCC;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    background: #f0f0f0;
    margin: auto;
    overflow: hidden;
}

/* Label clickeable que cubre todo el área */
.prevPhoto > label {
    cursor: pointer;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    margin: 0;
}

/* Div contenedor de la imagen — encima del label */
.prevPhoto > div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 3;
    pointer-events: none;
}

/* Imagen dentro del contenedor */
.prevPhoto > div > img,
.prevPhoto > div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.upimg {
    display: none !important;
}

/* Botón X eliminar foto */
.delPhoto {
    color: #FFF;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    min-width: 25px;
    background: red;
    position: absolute;
    right: -10px;
    top: -10px;
    z-index: 10;
    cursor: pointer;
}

/* ── Errores ── */
.errorArchivo {
    font-size: 16px;
    font-family: arial;
    color: #cc0000;
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
}

/* ── Tablas e imágenes ── */
#tbl_list_productos img {
    width: 50px;
}

.imgProductoDelete {
    width: 175px;
}

#imgCategoria {
    text-align: center;
}

#imgCategoria img {
    width: auto;
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    display: block;
    margin: auto;
    border-radius: 4px;
}
/* ── Links ── */
.linkw:hover {
    text-decoration: none;
}

/* ── Botón flotante WhatsApp ── */
.float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
}

.float:hover {
    text-decoration: none;
    color: #25d366;
    background-color: #fff;
}

.my-float {
    margin-top: 16px;
}
/* ── Foto upload OVERRIDE ── */
.prevPhoto {
    background: #f0f0f0 !important;
    background-image: none !important;
    overflow: hidden !important;
}

.prevPhoto > div {
    position: relative !important;
    z-index: 3 !important;
    pointer-events: none !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
}

.prevPhoto > div > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    pointer-events: none !important;
    position: relative !important;
    z-index: 3 !important;
}

.prevPhoto > label {
    z-index: 2 !important;
}

/* === Fix desborde del banner/slider en móvil === */
.section-slide,
.wrap-slick1,
.slick1 {
    width: 100%;
    overflow: hidden;
}

.item-slick1 {
    width: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .item-slick1 {
        height: 320px;
        background-position: center top;
    }

    .item-slick1 .container {
        height: 100% !important;
    }
}

@media (max-width: 480px) {
    .item-slick1 {
        height: 260px;
    }
}

/* === Tablas compactas del Dashboard (últimos registros) === */
.tbl-mini {
    table-layout: fixed;
    width: 100%;
}

.tbl-mini th,
.tbl-mini td {
    word-break: break-word;
    white-space: normal;
    font-size: 12px;
    padding: 4px 5px;
    vertical-align: middle;
}

.tbl-mini th:nth-child(1), .tbl-mini td:nth-child(1) { width: 10%; }
.tbl-mini th:nth-child(2), .tbl-mini td:nth-child(2) { width: 24%; }
.tbl-mini th:nth-child(3), .tbl-mini td:nth-child(3) { width: 20%; }
.tbl-mini th:nth-child(4), .tbl-mini td:nth-child(4) { width: 28%; }
.tbl-mini th:nth-child(5), .tbl-mini td:nth-child(5) { width: 18%; }

@media (max-width: 576px) {
    .tbl-mini th,
    .tbl-mini td {
        font-size: 10.5px;
        padding: 3px 4px;
    }

    .tbl-mini .badge {
        font-size: 9px;
        padding: 3px 5px;
        white-space: nowrap;
    }
}