/* Mobile */
@media (max-width: 767px) {
    /*** All ***/
    .app-content {
        width: 100%;
        margin: 0 auto;
    }
    .main-left,
    .main-right,
    .col-sm-4,
    .col-sm-5,
    .col-md-1,
    .col-md-2,
    .col-md-3,
    .col-md-4,
    .col-md-5,
    .col-md-6,
    .col-md-7,
    .col-md-8,
    .col-md-9,
    .col-md-10,
    .col-md-11,
    .col-md-12,
    .col-xs-12 {
        padding-right: unset !important;
        padding-left: unset !important;
    }
    .dataTables_wrapper {
        margin: unset !important;
    }
    .find {
        width: 380px;
        text-align: center;
        margin: 0 auto;
    }
    .tw-px-5 {
        padding-left: 10px;
        padding-right: 10px;
    }
    .content .row {
        margin-right: 0;
        margin-left: 0;
    }
    .table-responsive {
        border: unset !important;
        /* overflow: hidden; */
    }
    .custom-form-login #username,
    .custom-form-login #password {
        color: #000 !important;
    }
    .box-header h1 {
        font-size: 26px !important;
    }
    .btn-ac {
        font-size: 0 !important;
    }
    .box-tools .tw-dw-btn {
        height: 2rem !important;
        padding-left: 9px;
        padding-right: 2px;
    }
    .dataTables_wrapper .row.margin-bottom-20.margin-top-20.text-center {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }
    .dataTables_wrapper .row .lth {
        order: 1;
        flex: 1;
        text-align: left;
    }
    .dataTables_wrapper .row .act {
        order: 2;
        flex: 1;
        text-align: right;
    }
    .dataTables_wrapper .row .find {
        order: 3;
        flex: 0 0 100%;
        margin-top: 10px;
    }
    div.dataTables_wrapper div.dataTables_length label {
        width: 100%;
    }

    /*** Header ***/
    .header-content {
        align-items: center !important;
    }
    .header-business-name {
        display: none;
    }
    .header-business-logo {
        width: 60px;
    }
    .header-business-btn {
        align-items: center !important;
    }
    .custom-header {
        top: 0;
        z-index: 10;
    }
    .custom-header .app-content {
        padding: 0 5px !important;
    }
    .custom-header .side-bar-heading {
        font-size: 14px;
    }
    .shd .cl-1,
    .shd .cl-2,
    .shd .cl-3,
    .shd .cl-4 {
        width: 100%;
    }
    /*** Sidebar ***/
    .btn-collapse {
        display: none !important;
    }
    .overlay {
        display: none !important;
    }
    .side-bar {
        display: none !important;
    }
    /* Show sidebar when small-view-side-active is present */
    /* .side-bar.small-view-side-active {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: white !important;
        z-index: 1002 !important;
        overflow-y: auto !important;
        padding: 20px !important;
    } */
    .small-view-side-active #side-bar,
    .small-view-side-active .sidebar-menu,
    .small-view-side-active nav > ul,
    .small-view-side-active > ul {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
        margin: 0;
        list-style: none;
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .small-view-side-active .sidebar-menu > li,
    .small-view-side-active nav > ul > li,
    .small-view-side-active > ul > li {
        display: inline-flex !important;
        flex: 0 0 auto;
        position: relative;
    }

    .small-view-side-active .sidebar-menu > li > a,
    .small-view-side-active nav > ul > li > a,
    .small-view-side-active > ul > li > a {
        display: inline-flex;
        align-items: center;
        height: 44px;
        padding: 0 12px;
        border-radius: 8px;
        color: #374151;
        text-decoration: none;
        white-space: nowrap;
    }
    .small-view-side-active .treeview-menu,
    .small-view-side-active .submenu,
    .small-view-side-active li > ul {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1100;
        background: #fff;
        border: 1px solid #e5e7eb;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    }
    .small-view-side-active li.menu-open > .treeview-menu,
    .small-view-side-active li.menu-open > .submenu,
    .small-view-side-active li.menu-open > ul {
        display: block !important;
    }

    /*** Dashboard ***/
    .tw-grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .mini-dash-2 .mini-bg {
        padding-bottom: unset !important;
    }
    .dashboard .left,
    .dashboard .right {
        padding-right: 15px !important;
        padding-left: 15px !important;
    }
    /*** Mobile Bottom Navigation ***/
    .mobile-bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 60px !important;
        background: #ffffff !important;
        border-top: 1px solid #d6d6d6 !important;
        z-index: 1001 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-around !important;
        padding: 0 8px !important;
    }

    .mobile-bottom-nav .nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 !important;
        height: 100% !important;
        padding: 0 8px !important;
        text-decoration: none !important;
        color: #6b7280 !important;
        transition: all 0.2s ease !important;
        border-radius: 8px !important;
        margin: 0 2px !important;
    }

    .mobile-bottom-nav .nav-item:hover,
    .mobile-bottom-nav .nav-item.active {
        color: #0070f4 !important;
    }

    .mobile-bottom-nav .nav-item .nav-icon {
        font-size: 18px !important;
        margin-bottom: 2px !important;
    }

    .mobile-bottom-nav .nav-item .nav-label {
        font-size: 12px !important;
        font-weight: 500 !important;
        text-align: center !important;
        line-height: 1 !important;
    }
    .nav-icon svg {
        width: 30px;
        height: 30px;
    }

    /*** Mobile Menu ***/
    .menu-grid {
        grid-template-columns: 1fr;
    }
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .mobile-menu-container {
        padding: 16px;
    }

    .menu-item {
        padding: 12px;
        min-height: 50px;
    }

    .menu-item-icon {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }

    .menu-item-text {
        font-size: 13px;
    }
    /*** Report ***/
    .profit_loss_header {
        display: flex;
        flex-direction: column;
        margin-top: 15px;
    }
    .profit_loss_header .col-xs-6,
    .profit_loss_header .select2 {
        width: 100% !important;
    }
    .mobile-tab-select {
        margin-top: 10px;
        margin-bottom: 15px;
    }

    .mobile-tab-select select {
        width: 100%;
        border: 1px solid #ddd;
        border-radius: 4px;
        background-color: #fff;
        font-size: 14px;
    }

    .nav-tabs-custom .nav-tabs {
        display: none;
    }
    .rp_purchase_sell .col-xs-6 {
        width: 100% !important;
        padding: 0 !important;
    }
    .st-rp {
        display: none;
    }
    .rp-tool-head {
        display: flex;
        flex-direction: column;
    }
    .rp-tool-head .col-md-6 {
        width: 100%;
    }

    /*** Button Colvis***/
    .dt-button-collection.custom-styled {
        left: 10px !important;
        right: 10px !important;
        width: calc(100vw - 20px) !important;
        max-width: 350px !important;
    }

    .dt-button-collection.custom-styled .colvis-multi-column-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 8px !important;
    }

    .dt-button-collection.custom-styled .colvis-column {
        flex: 1 !important;
        min-width: 150px !important;
        max-width: calc(50% - 4px) !important;
    }

    .custom-colvis-dropdown {
        min-width: 300px !important;
        max-width: 350px !important;
        width: 100% !important;
    }

    .custom-colvis-dropdown .colvis-multi-column-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .colvis-column.left-column {
        flex: 1 !important;
        min-width: 150px !important;
        max-width: calc(50% - 4px) !important;
        border-right: 1px solid #e5e7eb;
        border-bottom: none;
        padding-right: 8px;
        padding-bottom: 0;
    }

    .colvis-column.right-column {
        flex: 1 !important;
        min-width: 150px !important;
        max-width: calc(50% - 4px) !important;
        padding-left: 8px;
        padding-top: 0;
    }

    /* Ensure proper spacing for column items */
    .colvis-column .colvis-item {
        display: block !important;
        margin-bottom: 4px !important;
        white-space: nowrap !important;
    }
    /*** VM Form ***/
    .wm-form {
        margin-bottom: 40px;
    }
    .wm-form .table-responsive {
        overflow-x: visible !important;
    }
    .wm-form .btn-group button {
        margin-bottom: 10px;
    }
    .wm-form .card .large-bagde {
        flex-direction: column;
        align-items: flex-start;
    }
    .wm-form .card .large-bagde .col-md-4 {
        padding-left: 15px !important;
    }
    .wm-form .search-group {
        display: flex;
        flex-wrap: wrap;
    }
    .wm-form .search-group .text-left {
        order: 1;
        flex: 1;
    }
    .wm-form .search-group .col-md-2 {
        order: 2;
        flex: 1;
    }
    .wm-form .search-group .col-md-8 {
        order: 3;
        flex: 0 0 100%;
    }
    .wm-form .btn-ac {
        font-size: 13px !important;
    }
    .wm-form .table .select2 {
        width: 85% !important;
    }
    .wm-form .grand-total {
        margin-top: 20px;
    }
    .wm-form .total-table {
        width: 250px !important;
    }
    .cus-table .table-responsive .table {
        overflow-x: visible !important;
    }
    /*** Footer ***/
    .scrolltop {
        bottom: 50px !important;
        right: -10px !important;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .btn-collapse {
        display: unset !important;
    }
    .mobile-bottom-nav {
        display: none !important;
    }
    .mb {
        background-color: rgb(255 255 255 / var(--tw-bg-opacity)) !important;
        height: 100% !important;
    }
    .mb .small-view-side-active {
        display: grid;
        z-index: 1000;
        position: absolute;
    }
    .custom-header .app-content .header-content {
        height: 60px;
        align-items: center;
    }
    .menu .submenu{
        opacity: 0;
    }
}

/* Desktop */
@media (min-width: 768px) {
    
    .mobile-bottom-nav {
        display: none !important;
    }
    .mobile-tab-select {
        display: none;
    }
    /* Dashboard */
    .full-bg {
        position: relative;
        width: 100vw;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
}
@media (min-width: 1025px) {
    .menu .responsive{
        opacity: 0;
        display: none !important; 
    }
}
