/* Desktop */
@media (min-width: 1025px) {
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    body.is-tablet .topbar .topbar-inner {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body.is-mobile {
        overflow-x: hidden;
    }

    body.is-mobile #page-content-wrapper,
    body.is-mobile main.gmt-main,
    body.is-mobile .app-content {
        overflow-x: hidden;
    }

    body.is-mobile .container-fluid.app-content {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    body.is-mobile .topbar .topbar-inner {
        padding-left: 10px !important;
        padding-right: 10px !important;
        gap: 8px !important;
    }

    body.is-mobile .topbar-title {
        display: none !important;
    }

    body.is-mobile .topbar-right .btn,
    body.is-mobile .topbar-right .nav-link {
        padding: 8px 10px !important;
    }

    body.is-mobile .topbar-right .btn.btn-sm {
        padding: 8px 10px !important;
    }

    body.is-mobile .topbar-right .btn .me-1 {
        margin-right: 0 !important;
    }

    body.is-mobile .topbar-right .btn .d-none.d-md-inline,
    body.is-mobile .topbar-right .btn .d-none.d-lg-inline,
    body.is-mobile .topbar-right .btn .d-none.d-xl-inline {
        display: none !important;
    }

    body.is-mobile #sidebar-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 290px;
        height: 100dvh;
        transform: translateX(-100%);
        z-index: 3000;
        transition: transform .25s ease;
    }

    body.is-mobile.sidebar-open #sidebar-wrapper {
        transform: translateX(0);
    }

    body.is-mobile #sidebarOverlay {
        position: fixed;
        inset: 0;
        z-index: 2999;
    }

    body.is-mobile .pro-data-toolbar {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        gap: 8px !important;
        align-items: start;
        padding: 6px !important;
    }

    body.is-mobile .pro-search-box {
        grid-column: 1 / -1;
    }

    body.is-mobile .pro-data-toolbar[data-mobile-toolbar-ready="1"] .pro-search-box {
        grid-column: 1 / 2;
    }

    body.is-mobile .pro-data-toolbar[data-mobile-toolbar-ready="1"] .mobile-primary-actions {
        grid-column: 2 / 3;
        display: flex;
        align-items: stretch;
        gap: 6px;
    }

    body.is-mobile .pro-data-toolbar[data-mobile-toolbar-ready="1"] .mobile-primary-actions .btn {
        min-height: 44px !important;
        height: 44px !important;
        padding: 0 12px !important;
        font-size: 13px !important;
    }

    body.is-mobile .pro-toolbar-strip {
        grid-column: 1 / -1;
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: flex-start;
    }

    body.is-mobile .pro-toolbar-strip .pro-toolbar-group {
        width: 100%;
        flex-wrap: wrap;
    }

    body.is-mobile main .btn,
    body.is-mobile main .form-control,
    body.is-mobile main .form-select,
    body.is-mobile main .input-group-text {
        min-height: 44px;
    }

    body.is-mobile .pro-page-header {
        padding: 4px 8px !important;
        gap: 6px !important;
        margin-bottom: 6px !important;
    }

    body.is-mobile .pro-page-title {
        font-size: 22px !important;
        line-height: 1.1 !important;
        margin: 0 !important;
    }

    body.is-mobile .pro-page-subtitle,
    body.is-mobile .breadcrumb {
        display: none !important;
    }

    body.is-mobile .pro-header-actions {
        gap: 6px !important;
    }

    body.is-mobile .pro-header-actions .btn {
        min-height: 38px !important;
        height: 38px !important;
        padding: 0 10px !important;
        font-size: 13px !important;
    }

    body.is-mobile .pro-header-actions [data-toggle-advanced] {
        display: none !important;
    }

    body.is-mobile .pro-header-actions [data-mobile-header-overflow="1"] {
        display: none !important;
    }

    body.is-mobile .filters-section {
        padding: 6px !important;
    }

    body.is-mobile .filters-section .pro-toolbar-strip [data-toggle-advanced],
    body.is-mobile .filters-section .pro-toolbar-strip .column-visibility-dropdown,
    body.is-mobile .filters-section .pro-toolbar-strip [data-columns-reset],
    body.is-mobile .filters-section .pro-toolbar-strip select[name="per_page"],
    body.is-mobile .filters-section .pro-toolbar-strip select[name="sort"],
    body.is-mobile .filters-section .pro-toolbar-strip select[name="direction"],
    body.is-mobile .filters-section .pro-toolbar-strip .export-dropdown,
    body.is-mobile .filters-section .pro-toolbar-strip .btn-export,
    body.is-mobile .filters-section .pro-toolbar-strip .btn-refresh {
        display: none !important;
    }

    body.is-mobile .filters-section .pro-toolbar-strip .pro-toolbar-group {
        width: auto;
    }

    body.is-mobile .filters-section .pro-toolbar-strip .btn-reset-filters {
        display: none !important;
    }

    body.is-mobile .filters-section .pro-toolbar-strip .btn,
    body.is-mobile .filters-section .pro-toolbar-strip .form-select {
        min-height: 38px !important;
        height: 38px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        font-size: 13px !important;
    }

    body.is-mobile .pro-data-toolbar[data-mobile-toolbar-ready="1"] .pro-toolbar-strip {
        display: none !important;
    }

    body.is-mobile .filters-section .pro-toolbar-strip .btn[data-bs-toggle="collapse"] {
        display: inline-flex !important;
    }

    body.is-mobile .mobile-toolbar-actions {
        display: grid !important;
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    body.is-mobile .mobile-toolbar-actions .btn {
        min-height: 38px !important;
        height: 38px !important;
        padding: 0 10px !important;
        font-size: 13px !important;
        border-radius: 10px !important;
    }

    body.is-mobile .mobile-toolbar-actions .mobile-more-btn {
        justify-content: center;
    }

    body.is-mobile .content-card.pro-data-panel,
    body.is-mobile .pro-data-panel,
    body.is-mobile .pro-table-zone {
        margin-top: 4px !important;
        padding-top: 4px !important;
    }

    body.is-mobile .mobile-card-view {
        padding-top: 6px !important;
    }

    body.is-mobile .advanced-data-section {
        margin-bottom: 8px !important;
    }

    body.is-mobile .modal-dialog {
        margin: 0;
    }

    body.is-mobile .modal-content {
        min-height: 100dvh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    body.is-mobile .modal-body {
        flex: 1 1 auto;
        overflow: auto;
    }

    body.is-mobile .modal-footer {
        flex: 0 0 auto;
        background: #fff;
    }

    body.is-mobile .offcanvas,
    body.is-mobile .dropdown-menu {
        max-width: calc(100vw - 16px);
    }

    body.is-mobile .gmt-mobile-more-modal .modal-dialog {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        max-width: none;
    }

    body.is-mobile .gmt-mobile-more-modal .modal-content {
        min-height: auto;
        max-height: 80dvh;
        border-radius: 16px 16px 0 0;
    }

    body.is-mobile.mobile-filters-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: 3040;
    }

    body.is-mobile .pro-filters-collapse .mobile-filters-sheet-header {
        display: flex !important;
        position: sticky;
        top: 0;
        background: rgba(248, 249, 250, 0.98);
        padding: 4px 0;
        z-index: 1;
    }

    body.is-mobile .pro-filters-collapse.show {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 80dvh;
        overflow: auto;
        z-index: 3050;
        padding: 10px;
    }

    body.is-mobile .pro-filters-collapse.show > .card {
        border-radius: 16px;
        box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.22);
    }
}
