@media only screen and (min-width: 1201px) and (max-width: 3840px) {
    .sidebar-md {
        display: none;
    }

    .page-topbar .navbar-header {
        justify-content: flex-end;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1200px) {
    .sidebar-md {
        display: none;
    }

    .page-topbar .navbar-header {
        justify-content: flex-end;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1024px) {

    #cartview .card .desktop-card-body {
        overflow-y: auto;
        overflow-x: hidden;
        height: 92vh;
    }
}

@media only screen and (min-width: 769px) and (max-width: 991px) {
    .sidebar-lg {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }
}

@media only screen and (min-width: 577px) and (max-width: 768px) {
    .sidebar-lg {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }
}

@media only screen and (min-width: 375px) and (max-width: 576px) {
    .sidebar-lg {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }

    /*========= pos css =========*/

    .card-body .search-button {
        padding: 10px 15px;
    }

    .card-body .pos-card-input {
        padding: 0px 12px;
    }

    /*========= pos css =========*/

}

@media only screen and (min-width: 200px) and (max-width: 374px) {

    .subtitle {
        line-height: 20px;
        font-size: 14px;
    }

    .sidebar-lg {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }

    /*========= pos css =========*/

    .card-body .search-button {
        padding: 10px 15px;
    }

    .card-body .pos-card-input {
        padding: 0px 12px;
    }

    /*========= pos css =========*/
}

/* New login form */

/* New login form  start */

@media (max-width:1024px) {
    .card-box {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

/* New login form  start */
@media (max-width:576px) {

    .bg-new {
        background: conic-gradient(from 45deg, var(--bs-secondary), var(--bs-primary));
    }

    .offcanvas-body .card-title {
        font-size: 16px;
    }

    .theme-label-name {
        font-size: 14px;
    }

    .theme-label {
        padding: 2px 20px;
        right: -44px;
    }

    .paln-img {
        display: none;
    }

    .card-box {
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .pos-header img {
        width: 125px;
    }
}

@media (max-width:992px) {

    .main-content-rtl {
        margin-right: 0rem !important;
    }

    .pos-menu {
        overflow: auto !important;
        overflow-x: hidden !important;
        height: 63vh !important;
    }

}

@media (max-width:1140px) {
    .righ-side {
        width: 33%;
    }
}

@media (max-width:1440px) {
    .pos-menu {
        overflow-y: auto;
        overflow-x: hidden;
        height: 65vh;
        padding: 0px 10px;
    }
}






@media only screen and (max-width: 1440px) and (min-width: 768px) {

    .login-forgot-padding,
    .register-padding {
        padding: 20px 200px;
    }
}

@media only screen and (max-width: 992px) and (min-width: 1200px) {
    .login-forgot-padding {
        padding: 20px 140px !important;
    }
}

@media only screen and (max-width: 1024px) and (min-width: 576px) {
    .login-forgot-padding {
        padding: 10px 60px;
    }

    .register-padding {
        padding: 10px 60px;
    }
}

@media only screen and (max-width: 992px) {
    .login-left-content .logo-img {
        width: 270px;
    }
}


@media only screen and (max-width: 576px) and (min-width: 375px) {

    .login-forgot-padding {
        padding: 10px 40px;
    }

    .register-padding {
        padding: 10px 40px;
    }
}

@media only screen and (max-width: 374px) and (min-width: 200px) {
    .login-forgot-padding {
        padding: 10px 30px;
    }

    .register-padding {
        padding: 10px 30px;
    }
}

/* ================================================================
   SOFTMIXSHOP — MEJORAS RESPONSIVE ADMIN PANEL (móvil/tablet)
   ================================================================ */

/* Sidebar-md: asegurar que el panel colapsado tenga scroll */
.sidebar.sidebar-md {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1050;
    box-shadow: 4px 0 24px rgba(0,0,0,.25);
}

/* Topbar: botón hamburguesa con área táctil suficiente */
@media (max-width: 991px) {
    .page-topbar .navbar-toggler {
        min-width: 44px;
        min-height: 44px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Header items: área táctil mínima 44px */
    .page-topbar .header-item,
    .page-topbar .btn {
        min-height: 40px;
        display: flex;
        align-items: center;
    }

    /* Cards en dashboard: igual altura en fila */
    .dashboard-card { margin-bottom: 16px; }

    /* Select múltiple en forms: ancho completo */
    .bootstrap-select { width: 100% !important; }

    /* Offcanvas lateral: ancho más razonable en tablet */
    .offcanvas-end { width: min(320px, 85vw) !important; }

    /* Image upload preview */
    .img-preview { max-width: 100%; height: auto; }
}

@media (max-width: 575px) {
    /* Filtros de búsqueda en tablas: apilados */
    .dataTables_filter { float: none; text-align: left; margin-bottom: 10px; }
    .dataTables_filter input {
        width: 100% !important;
        min-height: 40px;
        margin-left: 0 !important;
    }
    .dataTables_length { float: none; margin-bottom: 8px; }

    /* Paginación DataTables */
    .dataTables_paginate { float: none; margin-top: 12px; }
    .paginate_button { padding: 4px 8px !important; font-size: .8rem !important; }

    /* Info de tabla */
    .dataTables_info { float: none; }

    /* Badge en tablas: inline-flex */
    .badge { display: inline-flex; align-items: center; }

    /* Switch toggles: área táctil */
    .form-check-input[type=checkbox] { width: 2.5em; height: 1.4em; cursor: pointer; }

    /* Alert en el top */
    .alert { font-size: .82rem; padding: 10px 14px; }

    /* Image upload box responsive */
    .upload-box { padding: 16px !important; }

    /* Tabs: scroll horizontal */
    .nav-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
    .nav-tabs .nav-link { white-space: nowrap; }

    /* Modals: sin margen lateral */
    .modal-dialog { margin: 6px; }
    .modal-footer { flex-direction: column; gap: 8px; }
    .modal-footer .btn { width: 100%; }

    /* Grid de imágenes en producto */
    .product-images-grid { grid-template-columns: repeat(3, 1fr) !important; }

    /* Input groups: apilados */
    .input-group:not(.qty-input) { flex-direction: column; }
    .input-group:not(.qty-input) .form-control,
    .input-group:not(.qty-input) .input-group-text { border-radius: 8px !important; margin-bottom: 4px; }
}