.icms-menu-toggle,
.icms-menu-overlay {
    display: none;
}

@media (max-width: 959px) {
    html,
    body {
        float: none;
        width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    body.icms-menu-open {
        overflow: hidden;
    }

    .icms-menu-toggle {
        display: block;
        position: fixed;
        top: 12px;
        left: 12px;
        z-index: 320;
        width: 44px;
        height: 44px;
        padding: 10px 8px;
        border: 0;
        border-radius: 4px;
        background: #3a444f;
        cursor: pointer;
        box-sizing: border-box;
    }

    .icms-menu-toggle span {
        display: block;
        height: 2px;
        margin: 6px 0;
        background: #f2f6f9;
    }

    body.icms-menu-open .icms-menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    body.icms-menu-open .icms-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.icms-menu-open .icms-menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .icms-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 290;
        background: rgba(0, 0, 0, 0.45);
    }

    body.icms-menu-open .icms-menu-overlay {
        display: block;
    }

    .sidebar_wrapper {
        z-index: 300;
        height: 100dvh;
        max-height: 100dvh;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }

    body.icms-menu-open .sidebar_wrapper {
        transform: translateX(0);
    }

    .sidebar {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar_footer {
        flex-shrink: 0;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .content_wrapper {
        width: 100%;
        max-width: 100%;
        float: none;
        overflow-x: hidden;
    }

    .content {
        min-width: 0;
        max-width: 100%;
    }

    .content .header {
        padding-left: 64px;
        width: auto;
        box-sizing: border-box;
    }

    .content .data {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .content .data::-webkit-scrollbar {
        height: 12px;
    }

    .content .data::-webkit-scrollbar-track {
        background: #dce4eb;
    }

    .content .data::-webkit-scrollbar-thumb {
        background: #8e9caa;
        border-radius: 6px;
    }

    .content .data table {
        width: 100%;
        min-width: max-content;
    }

    .content .data table th,
    .content .data table td {
        white-space: nowrap;
    }

    .chat-edit-composer .action_buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .chat-edit-composer .action_buttons a.back {
        margin-right: 0;
    }
}
