﻿

@media (min-width: 1600px) {
    .container {
        width: 100%;
        max-width: 1600px;
    }

    .search-input {
        width: 325px;
    }

    .task-item {
        min-width: 100%;
    }
    .recycle-dialog {
        margin-top: 79px;
        max-width: 1600px;
        width: 100%;
    }
    .modal-xl {
        max-width: 1600px;
        width: 100%;
        min-height: 400px;
    }
}

/* Task board: use the available page container without clipping the fifth column. */
@media (min-width: 1280px) {
    body.task-board-page > header .container,
    body.task-board-page > #mainContent {
        width: calc(100% - 32px);
        max-width: 1920px;
    }

    body.task-board-page .task-container {
        min-width: 0;
        overflow-x: hidden;
    }

    body.task-board-page .task-column {
        flex: 1 1 0;
        min-width: 0;
    }
}

@media (min-width: 1500px) {
    body.task-board-page .main__top-container,
    body.task-board-page .inner-more-info-container,
    body.task-board-page .top-container__right-side {
        flex-wrap: nowrap;
    }

    body.task-board-page .inner-more-info-container {
        flex: 0 0 auto;
        gap: 8px;
    }

    body.task-board-page .top-container__right-side {
        flex: 1 1 auto;
        gap: 8px;
    }

    body.task-board-page .main-task-toolbar {
        flex: 1 1 auto;
    }

    body.task-board-page .main-search-form {
        min-width: 250px;
    }

    body.task-board-page .task-index-mobile-actions {
        display: flex;
        flex: 0 0 auto;
        gap: 6px;
        white-space: nowrap;
    }
}

/* Keep the board usable between the mobile tabs and the five-column layout. */
@media (min-width: 901px) and (max-width: 1499.98px) {
    body.task-board-page .main-search-form {
        min-width: 280px;
    }

    body.task-board-page .pinned-filter-button {
        flex: 0 0 34px;
        width: 34px;
        min-width: 34px;
        padding: 0;
    }

    body.task-board-page .pinned-filter-button span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

@media (min-width: 901px) and (max-width: 1279.98px) {
    body.task-board-page .task-container {
        overflow-x: auto;
        overscroll-behavior-x: contain;
    }

    body.task-board-page .task-column {
        flex: 0 0 280px;
        min-width: 280px;
    }
}

@media (max-width: 900px) {
    .workspace-container.executor-workspace-mobile {
        display: flex;
        flex-direction: column;
        gap: 12px;
        height: auto;
        min-height: 0;
        overflow: visible;
        margin-top: 8px;
    }

    .workspace-container.executor-workspace-mobile .left-side,
    .workspace-container.executor-workspace-mobile .right-side__container,
    .workspace-container.executor-workspace-mobile .right-side__container .right-side {
        width: 100%;
        max-width: 100%;
    }

    .workspace-container.executor-workspace-mobile .left-side {
        order: 1;
        border-width: 1px;
        border-radius: 0px;
        overflow: visible;
    }

    .workspace-container.executor-workspace-mobile .left-side__header {
        max-height: none;
        font-size: 16px;
        padding: 10px 12px;
        border-bottom-width: 1px;
    }

    .workspace-container.executor-workspace-mobile .left-side__header img {
        width: 20px;
        height: 20px;
    }

    .workspace-container.executor-workspace-mobile .workspace-modules-container {
        gap: 10px;
        padding: 10px 10px 14px;
        overflow: visible;
        max-height: none;
    }

    .workspace-container.executor-workspace-mobile .module-add-subtask-outside-card {
        font-size: 16px;
        padding: 10px 12px;
    }

    .workspace-container.executor-workspace-mobile .right-side__container {
        order: 2;
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-right: 0;
    }

    .workspace-container.executor-workspace-mobile .active-workspace-wrapper {
        order: 1;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .workspace-container.executor-workspace-mobile .right-side {
        order: 2;
        gap: 12px;
        border-width: 1px;
        border-right: 1px solid #d7e3ef;
        border-radius: 0px;
        overflow: hidden;
    }

    .workspace-container.executor-workspace-mobile .right-side .task-main-info h2 {
        font-size: 16px;
        padding: 10px 12px;
        max-height: none;
        border-bottom-width: 1px;
    }

    .workspace-container.executor-workspace-mobile .task-date-info,
    .workspace-container.executor-workspace-mobile .task-client-info,
    .workspace-container.executor-workspace-mobile .user-online-list {
        max-width: none;
    }

    .workspace-container.executor-workspace-mobile .user-online-list {
        max-height: none;
        padding: 0 8px 10px;
    }

    .workspace-container.executor-workspace-mobile .user-online-list__container {
        max-height: none;
    }

    .workspace-container.executor-workspace-mobile .user-list__role-info {
        align-self: flex-start;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .workspace-container.executor-workspace-mobile .task-side-actions {
        max-width: none;
        padding: 0 8px 8px;
    }

    .workspace-container.executor-workspace-mobile .task-delete-visual-button {
        min-height: 44px;
        border-radius: 0px;
        font-size: 14px;
    }

    .workspace-container.executor-workspace-mobile .workspace-reception-block .reception-status {
        padding: 8px 10px;
        border-radius: 0;
        font-size: 14px;
    }

    .workspace-container.executor-workspace-mobile .workspace-subtask-group {
        gap: 12px;
        margin-bottom: 12px;
    }

    .workspace-container.executor-workspace-mobile .task-status-workspace {
        padding: 0px;
        border-radius: 0px;
        gap: 8px;
    }

    .workspace-container.executor-workspace-mobile .task-status-workspace .status-workspace__header {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .workspace-container.executor-workspace-mobile .task-status-workspace .status-workspace__header .status-workspace__date {
        width: 100%;
        justify-content: space-between;
    }

    .workspace-container.executor-workspace-mobile .subtask-workspace .status-workspace__main-container {
        flex-direction: column;
    }

    .workspace-container.executor-workspace-mobile .subtask-workspace .status-workspace__main-container .status-worksapce__main-attachments {
        width: 100%;
        max-width: none;
        height: auto;
    }

    .workspace-container.executor-workspace-mobile .status-worksapce__main-subtask-list {
        max-height: none;
        margin-bottom: 10px;
        overflow: hidden;
    }
    .task-status-workspace .status-worksapce__main-actions{
        padding: 0;
        justify-content: right;
    }
}

@media (min-width: 1280px) and (max-width: 1599px) {
    .container {
        width: 100%;
        max-width: 1280px;
    }
    .d-flex {
        justify-content: space-between;
    }
    .task-item {
        min-width: 100%;
        max-width: 360px;
    }
    .recycle-dialog {
        max-width: 1599px;
        width: 100%;
    }
    .recycle-dialog .modal-content{
        max-width: 1280px;
        width: 100%;
        margin: 0 auto;
    }
    .modal-xl {
        max-width: 1280px;
        width: 100%;
        min-height: 400px;
    }
}
@media (max-width: 900px) {
    body {
        --mobile-header-height: 0px;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body.has-mobile-header {
        padding-top: 10px;
    }

    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1040;
        margin-bottom: 0;
    }

    body.mobile-menu-open::before {
        content: "";
        position: fixed;
        inset: var(--mobile-header-height) 0 0 0;
        background: rgba(24, 38, 66, 0.3);
        z-index: 1030;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 12px;
    }

    .main-container {
        width: 100%;
    }

    .header-container {
        margin-left: 0;
        margin-bottom: 12px;
    }

    .filter-form {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .date-filter,
    .status-filter,
    .search-filter,
    .org-filter {
        width: 100%;
        align-self: stretch;
    }

    .date-input,
    .search-input,
    .org-input,
    .header-container select,
    .header-container button,
    .header-container .btn.btn-primary {
        width: 100%;
        max-width: 100%;
        min-height: 44px;
    }
    .header-container input {
        min-height: unset;
    }
    .inner-container {
        flex-direction: column;
        gap: 12px;
    }

    .inner-more-info-container {
        width: 100%;
        flex-direction: row;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .create-contianer {
        min-width: 172px;
    }

    .create-date,
    .create-time {
        font-size: 16px;
    }

    .create-contianer a,
    .more-info-button-container button {
        min-height: 44px;
    }

    .more-info-button-container {
        flex: 1 0 auto;
        gap: 8px;
    }

        .more-info-button-container button {
            min-width: 150px;
            padding: 0 10px;
        }

    .task-inner-container {
        width: 100%;
        min-width: 0;
    }

    #switchTaskColumns {
        margin-bottom: 12px;
        flex-wrap: wrap;
    }

    .switch-container {
        min-height: 44px;
    }

    .switch-circle {
        min-height: 40px;
    }

    .kanban-mobile-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 10px;
    }

    .kanban-mobile-tab {
        min-height: 44px;
        border: 2px solid #267AFC;
        border-radius: 0px;
        background-color: #fff;
        color: #267AFC;
        touch-action: manipulation;
        font-size: 14px;
        font-weight: 500;
        padding: 8px 10px;
        text-align: center;
        line-height: 1.2;
        transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    }

    .kanban-mobile-tab--status-0,
    .kanban-mobile-tab--status-1 {
        border-color: #2059b1;
        color: #2059b1;
    }

    .kanban-mobile-tab--status-2 {
        border-color: #b46e00;
        color: #b46e00;
    }

    .kanban-mobile-tab--status-3,
    .kanban-mobile-tab--status-4 {
        border-color: #6840c6;
        color: #6840c6;
    }

    .kanban-mobile-tab--status-5,
    .kanban-mobile-tab--status-6 {
        border-color: #1f7a4a;
        color: #1f7a4a;
    }

    .kanban-mobile-tab--status-0.active,
    .kanban-mobile-tab--status-1.active {
        background-color: #2059b1;
        box-shadow: 0 4px 10px rgba(32, 89, 177, 0.24);
    }

    .kanban-mobile-tab--status-2.active {
        background-color: #b46e00;
        box-shadow: 0 4px 10px rgba(180, 110, 0, 0.24);
    }

    .kanban-mobile-tab--status-3.active,
    .kanban-mobile-tab--status-4.active {
        background-color: #6840c6;
        box-shadow: 0 4px 10px rgba(104, 64, 198, 0.24);
        box-shadow: inset 0 0 0 1px currentColor;
    }

    .kanban-mobile-tab--status-5.active,
    .kanban-mobile-tab--status-6.active {
        background-color: #1f7a4a;
        box-shadow: 0 4px 10px rgba(31, 122, 74, 0.24);
    }

    .kanban-mobile-tab--status-0,
    .kanban-mobile-tab--status-1 {
        border-color: #dce9ff;
        background-color: #dce9ff;
        color: #2059b1;
    }

    .kanban-mobile-tab--status-2 {
        border-color: #fff0ce;
        background-color: #fff0ce;
        color: #b46e00;
    }

    .kanban-mobile-tab--status-3,
    .kanban-mobile-tab--status-4 {
        border-color: #ece4ff;
        background-color: #ece4ff;
        color: #6840c6;
    }

    .kanban-mobile-tab--status-5,
    .kanban-mobile-tab--status-6 {
        border-color: #dff5e8;
        background-color: #dff5e8;
        color: #1f7a4a;
    }



    .kanban-mobile-tab--status-0,
    .kanban-mobile-tab--status-1 {
        border-color: #dce9ff;
        background-color: #dce9ff;
        color: #2059b1;
    }

    .kanban-mobile-tab--status-2 {
        border-color: #fff0ce;
        background-color: #fff0ce;
        color: #b46e00;
    }

    .kanban-mobile-tab--status-3,
    .kanban-mobile-tab--status-4 {
        border-color: #ece4ff;
        background-color: #ece4ff;
        color: #6840c6;
    }

    .kanban-mobile-tab--status-5,
    .kanban-mobile-tab--status-6 {
        border-color: #dff5e8;
        background-color: #dff5e8;
        color: #1f7a4a;
    }


    .kanban-mobile-tab--status-0,
    .kanban-mobile-tab--status-1 {
        border-color: #dce9ff;
        background-color: #dce9ff;
        color: #2059b1;
    }

    .kanban-mobile-tab--status-2 {
        border-color: #fff0ce;
        background-color: #fff0ce;
        color: #b46e00;
    }

    .kanban-mobile-tab--status-3,
    .kanban-mobile-tab--status-4 {
        border-color: #ece4ff;
        background-color: #ece4ff;
        color: #6840c6;
    }

    .kanban-mobile-tab--status-5,
    .kanban-mobile-tab--status-6 {
        border-color: #dff5e8;
        background-color: #dff5e8;
        color: #1f7a4a;
    }


    .task-container {
        display: block;
        max-height: none;
        overflow: visible;
    }

    .task-column {
        display: none;
        min-height: 0;
        border-right: 0;
        animation: mobileKanbanFade 0.2s ease;
    }

        .task-column.mobile-kanban-active {
            display: block;
        }


    .task-header {
        background-color: #fff;
        border-bottom: 2px solid #d7e3ef;
        padding: 10px;
    }

        .task-header h3 {
            font-size: 16px;
        }

    .task-count {
        min-width: 24px;
        height: 24px;
        font-size: 13px;
        line-height: 24px;
    }

    .task-column-container {
        width: 100%;
    }

    .task-item {
        width: 100%;
        max-width: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .task-info {
        padding: 10px;
        padding-bottom: 5px;
        flex-direction: row;
        align-items: stretch;
    }
    .task-content {
        padding: 10px;
        padding-bottom: 0px;
    }
    .task-info__side {
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        flex-direction: column;
    }


    .task-info__role {
        font-size: 10px;
        line-height: 1.2;
    }

    .task-info__name {
        font-size: 13px;
        line-height: 1.25;
    }

    .task-section__label,
    .task-section p,
    .task-info__date,
    .task-deadline__date,
    .task-deadline__remain,
    .order-phone p,
    .order-address p {
        font-size: 13px;
        line-height: 1.3;
    }

    .task-content,
    .task-content p,
    .task-section,
    .task-section p,
    .task-info__name,
    .order-phone p,
    .order-address p {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .task-button {
        flex-wrap: wrap;
    }

    .task-button button,
    .confirm-button,
    .status-change-btn {
        flex: 1 1 100%;
        min-height: 37px;
        font-size: 13px;
    }

    .content-deadlines .dispatcher-deadline--with-action {
        flex-wrap: wrap;
        align-items: stretch;
    }

    .task-button--deadline {
        margin-left: 0;
    }




        .task-item:not(:last-child) {
            border-bottom: 2px solid #EAF0F4;
        }

    .task-info,
    .content-order-info,
    .task-button,
    .task-button.has-user .has-user-inner {
        gap: 8px;
    }

        .task-button button,
        .confirm-button,
        .status-change-btn,
        #load-more-btn,
        #load-more-executor-btn,
        #load-my-tasks-btn {
            min-height: 44px;
            font-size: 16px;
        }

    #load-more-btn,
    #load-more-executor-btn,
    #load-my-tasks-btn {
        margin-top: 10px;
        padding: 8px 0;
    }

    .modal-body form {
        width: 100%;
    }

    .task-column,
    .task-column-container,
    .task-item,
    .task-card-shell,
    .task-content,
    .task-bottom__container,
    .deadline__container,
    .content-deadlines,
    .online-container,
    .current-search-filters,
    .current-search-filters__item,
    .online-container .onlinebar,
    .top-container__right-side,
    .main-task-toolbar,
    .inner-more-info-container {
        min-width: 0;
    }

    .task-info__date,
    .task-deadline__date,
    .task-deadline__remain {
        white-space: normal;
    }
    .task-info__date{
        text-align: end;
    }
    .task-buttons-container {
        width: 100%;
        justify-content: flex-end;
    }

    .task-content__collapse-arrow {
        margin-top: -10px;
    }

    .kanban-mobile-tabs {
        position: sticky;
        top: 8px;
        z-index: 5;
        background: #fff;
        padding: 6px 0;
    }

    @keyframes mobileKanbanFade {
        from {
            opacity: 0;
            transform: translateY(6px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 900px) {

    nav {
        height: auto;
        min-height: 56px;
        border-radius: 0;
    }

    .container-navbar {
        padding: 8px 0;
        max-width: 100%;
    }

    .navbar-collapse.collapse {
        display: block !important;
        width: 100%;
    }

    .header-main-bar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        grid-template-areas:
            "auth actions toggle"
            "menu menu menu";
        column-gap: 8px;
        row-gap: 0;
        align-items: center;
    }

        .header-main-bar #authSection {
            grid-area: auth;
            justify-self: stretch;
            overflow: hidden;
        }

    #accountLink {
        min-width: 0;
        cursor: pointer;
    }

    .header-user-avatar {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .user-nickname {
        font-size: 16px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-main-bar .header-navigation {
        grid-area: actions;
        justify-self: end;
        gap: 8px;
    }

    .navigation-link {
        width: 40px;
        height: 40px;
        min-width: 40px;
        max-width: 40px;
    }

    .mobile-header-toggle {
        grid-area: toggle;
        display: inline-flex;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        padding: 0;
        border: 1px solid #d7e3ef;
        border-radius: 50px;
        background-color: #267afc;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
        cursor: pointer;
    }

    .mobile-header-toggle__line {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background-color: #fff;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .header-main-bar.is-mobile-menu-open .mobile-header-toggle__line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .header-main-bar.is-mobile-menu-open .mobile-header-toggle__line:nth-child(2) {
        opacity: 0;
    }

    .header-main-bar.is-mobile-menu-open .mobile-header-toggle__line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .header-center-navigation {
        grid-area: menu;
        justify-content: stretch;
        align-items: stretch;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 6px;
        max-height: 0;
        padding-top: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.2s ease, padding-top 0.2s ease;
    }

    .header-main-bar.is-mobile-menu-open .header-center-navigation {
        max-height: min(60vh, 420px);
        padding-top: 6px;
        opacity: 1;
        overflow-y: auto;
    }

    .header-center-link,
    .header-center-link--button {
        width: 100%;
        min-height: 42px;
        justify-content: flex-start;
        padding: 10px 12px;
        background-color: #fff;
        border: 1px solid #d7e3ef;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
    }

        .header-center-link::after {
            right: auto;
            bottom: 8px;
            left: 0;
            width: 3px;
            height: calc(100% - 16px);
            border-radius: 0 999px 999px 0;
        }

    .header-center-form {
        width: 100%;
    }

    .main__top-container {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
        min-height: 0;
        padding: 8px 12px;
        overflow: visible;
    }

    .inner-more-info-container,
    .top-container__right-side,
    .main-task-toolbar,
    .create-contianer,
    .more-info-button-container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .inner-more-info-container,
    .top-container__right-side {
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
        margin-left: 0;
    }

    .create-contianer,
    .more-info-button-container,
    .main-task-toolbar {
        flex-wrap: wrap;
        gap: 8px;
    }

        .create-contianer a,
        .create-date,
        .create-time,
        .more-info-button-container button,
        .open-filter-menu,
        .open-online-menu,
        .pinned-filter-button {
            min-height: 42px;
            font-size: 15px;
        }

        .create-contianer a,
        .more-info-button-container button {
            flex: 1 1 150px;
            min-width: 0;
        }

    .create-date,
    .create-time {
        flex: 1 1 120px;
        justify-content: center;
        min-width: 0;
    }

    .main-search-form {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .main-search-input {
        height: 42px;
        font-size: 16px;
    }

    .pinned-filter-button {
        flex: 1 1 170px;
        min-width: 0;
        padding: 0 10px;
    }

    .open-filter-menu,
    .open-online-menu {
        flex: 1 1 140px;
        padding: 0 12px;
        text-align: center;
    }

    .top-container__right-side .current-search-filters {
        order: 2;
        width: 100%;
        min-width: 0;
    }

        .top-container__right-side .current-search-filters .current-search-filters__item {
            max-width: 100%;
            padding: 4px 8px;
            line-height: 1.25;
            overflow-wrap: anywhere;
        }

    .header-container {
        width: min(360px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
        height: auto;
        min-height: 0;
        max-height: calc(100vh - 96px);
        overflow-y: auto;
        left: calc(-100vw - 24px);
    }

        .header-container.visible {
            left: 12px;
        }

    .date-filter__container {
        gap: 8px;
        flex-wrap: wrap;
    }

    .date-filter {
        flex: 1 1 130px;
        min-width: 0;
    }
        .date-filter.separator {
            display: none;
        }
    .date-input {
        width: 100%;
    }

    .online-container .onlinebar {
        max-width: calc(100vw - 24px);
    }
}
/* Mobile refinements for TaskItems index and header (no desktop impact) */
@media (max-width: 900px) {
    body.has-mobile-header #mainContent {
        padding-top: 60px;
    }

    header .header-main-bar #authSection,
    header #accountLink,
    header .user-nickname {
        min-width: 0;
    }

    header #accountLink {
        max-width: 100%;
    }

    header .user-nickname {
        max-width: calc(100vw - 192px);
    }

    header .header-main-bar .header-navigation {
        flex-shrink: 0;
    }

    header .header-center-navigation {
        margin-top: 4px;
        padding-right: 1px;
    }

    header .header-main-bar.is-mobile-menu-open .header-center-navigation {
        padding-bottom: 6px;
    }

    .task-index-mobile-fix.main-container {
        width: 100%;
        max-width: 100%;
        padding-inline: 0;
    }

    .task-index-mobile-fix .main__top-container {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
        padding: 8px 0;
    }

    .task-index-mobile-fix .inner-more-info-container,
    .task-index-mobile-fix .top-container__right-side {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-left: 0;
        min-width: 0;
    }

    .task-index-mobile-fix .create-contianer {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        min-width: 0;
    }

    .task-index-mobile-fix .create-contianer a {
        flex: 1 1 100%;
        min-width: 0;
    }

    .task-index-mobile-fix .create-date,
    .task-index-mobile-fix .create-time {
        flex: 1 1 calc(50% - 4px);
        margin: 0;
        min-width: 0;
        justify-content: center;
    }

    .task-index-mobile-fix .more-info-button-container {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .task-index-mobile-fix .more-info-button-container button {
        min-width: 0;
        width: 100%;
        margin: 0;
    }

    .task-index-mobile-fix .main-task-toolbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        width: 100%;
    }

    .task-index-mobile-fix .main-search-form,
    .task-index-mobile-fix .main-search-input,
    .task-index-mobile-fix .pinned-filter-button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .task-index-mobile-fix .pinned-filter-button {
        justify-content: center;
        margin: 0;
    }

    .task-index-mobile-fix .task-index-mobile-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .task-index-mobile-fix .open-filter-menu,
    .task-index-mobile-fix .open-online-menu {
        width: 100%;
        margin: 0;
        text-align: center;
        min-width: 0;
    }

    .task-index-mobile-fix .top-container__right-side .current-search-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
        margin-bottom: 0;
    }

    .task-index-mobile-fix .top-container__right-side .current-search-filters .current-search-filters__item {
        margin: 0;
        max-width: 100%;
    }

    .kanban-mobile-tabs {
        position: static;
        top: auto;
        z-index: auto;
        background: transparent;
        padding: 0;
    }

    .kanban-mobile-tab--status-0 {
        background-color: #dce9ff;
        border-color: #dce9ff;
        color: #2059b1;
    }

    .kanban-mobile-tab--status-1 {
        background-color: #fff0ce;
        border-color: #fff0ce;
        color: #b46e00;
    }

    .kanban-mobile-tab--status-inspected {
        background-color: #ddf7ef;
        border-color: #ddf7ef;
        color: #14795a;
    }

    .kanban-mobile-tab--status-2 {
        background-color: #ece4ff;
        border-color: #ece4ff;
        color: #6840c6;
    }

    .kanban-mobile-tab--status-3 {
        background-color: #dff5e8;
        border-color: #dff5e8;
        color: #1f7a4a;
    }

    .kanban-mobile-tab--status-0.active,
    .kanban-mobile-tab--status-1.active,
    .kanban-mobile-tab--status-inspected.active,
    .kanban-mobile-tab--status-2.active,
    .kanban-mobile-tab--status-3.active {
        box-shadow: inset 0 0 0 1px currentColor;
    }

    .task-index-mobile-fix .header-container,
    .task-index-mobile-fix .online-container {
        position: relative;
        top: auto;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-6px);
        margin: 0;
        margin-top: -10px;
        z-index: 2;
        transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.2s ease, margin-top 0.2s ease, padding 0.2s ease;
    }

    .task-index-mobile-fix .header-container:not(.visible),
    .task-index-mobile-fix .online-container:not(.visible) {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        border-width: 0 !important;
    }

    .task-index-mobile-fix .header-container.visible,
    .task-index-mobile-fix .online-container.visible {
        opacity: 1;
        pointer-events: auto;
        max-height: 72vh;
        overflow-y: auto;
        transform: translateY(0);
        margin-top: 0;
    }

    .task-index-mobile-fix .header-container {
        padding: 10px;
    }

    .task-index-mobile-fix .header-container .filter-form {
        min-height: 0;
    }

    .task-index-mobile-fix .online-container {
        padding: 10px !important;
        border-radius: 10px;
    }

    .task-index-mobile-fix .online-container .onlinebar {
        width: 100%;
        max-width: 100%;
    }

    /* Final mobile kanban palette: enforce 4 distinct tab colors even in active state */
    .kanban-mobile-tabs .kanban-mobile-tab.kanban-mobile-tab--order-0,
    .kanban-mobile-tabs .kanban-mobile-tab.kanban-mobile-tab--order-0.active {
        background-color: #dce9ff !important;
        border-color: #dce9ff !important;
        color: #2059b1 !important;
    }

    .kanban-mobile-tabs .kanban-mobile-tab.kanban-mobile-tab--order-1,
    .kanban-mobile-tabs .kanban-mobile-tab.kanban-mobile-tab--order-1.active {
        background-color: #fff0ce !important;
        border-color: #fff0ce !important;
        color: #b46e00 !important;
    }

    .kanban-mobile-tabs .kanban-mobile-tab.kanban-mobile-tab--order-2,
    .kanban-mobile-tabs .kanban-mobile-tab.kanban-mobile-tab--order-2.active {
        background-color: #ddf7ef !important;
        border-color: #ddf7ef !important;
        color: #14795a !important;
    }

    .kanban-mobile-tabs .kanban-mobile-tab.kanban-mobile-tab--order-3,
    .kanban-mobile-tabs .kanban-mobile-tab.kanban-mobile-tab--order-3.active {
        background-color: #ece4ff !important;
        border-color: #ece4ff !important;
        color: #6840c6 !important;
    }

    .kanban-mobile-tabs .kanban-mobile-tab.kanban-mobile-tab--order-4,
    .kanban-mobile-tabs .kanban-mobile-tab.kanban-mobile-tab--order-4.active {
        background-color: #dff5e8 !important;
        border-color: #dff5e8 !important;
        color: #1f7a4a !important;
    }
    .task-button button {
        min-height: 36px;
        font-size: 13px;
    }
    .notifHubbox {
        top: unset !important;
        left: unset !important;
        right: unset !important;
        width: 100vw !important;
        background: #00000066;
        height: calc(100vh - 60px);
    }
    .notifHub.notification-panel {
        width: 100vw;
        max-width: none;
        right: unset;
        left: unset;
        padding: 18px;
        max-height: calc(100vh - 60px);
    }
    .task-status-workspace .status-workspace__main-container .status-worksapce__main-attachments{
        height: 452px;
        flex-direction: column;
    }
    .workspace-modules-container .module.not-active.completion .module-info__description .module-info__description-text, .workspace-modules-container .module.not-active.subtasks .module-info__description .module-info__description-text{
        font-size: 14px;
    }
    .task-status-workspace .status-workspace__main-container{
        padding: 0;
    }
    .status-worksapce__main-actions__save span{
        margin-top: 2px;
    }
    .task-status-workspace .status-worksapce__main-actions .status-worksapce__main-actions-right {
        align-items: center;
        width: 302px;
    }
    .status-workspace__main-text-container{
        padding: 10px;
    }
    .workspace-modules-container .module .module-header .module-status{
        text-wrap: nowrap;
    }
    .status-worksapce__main-subtask-item .status-worksapce__main-subtask-item__header-actions{
        justify-content: space-between;
        width: 100%;
    }
    .workspace-modules-container .module .module-header .module-date.deadline {
        padding-right: 0px;
    }
    .status-worksapce__main-subtask-item .status-worksapce__main-subtask-item__header{
        flex-direction: column-reverse;
    }
    .status-worksapce__main-subtask-item-name{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .task-status-workspace .status-workspace__main-container .status-worksapce__main-description{
        padding: 0;
    }
    .task-status-workspace .status-worksapce__main-subtask-item-name{
        width: 100%;
        justify-content: space-between;
    }
    .status-worksapce__main-subtask-list.status-workspace__list-empty .status-workspace__empty-message{
        font-size: 18px;
    }
    .workspace-modules-container .module .module-info__summary-text{
        margin-bottom: 10px;
    }
    .status-worksapce__main-description p{
        padding: 10px;
    }
    .task-status-workspace .status-workspace__main-container .status-worksapce__main-description .status-worksapce__main-edit-description{
        padding: 10px; 
    }
    .task-status-workspace .status-worksapce__main-actions .status-worksapce__main-actions__return span{
        margin-top: 2px;
    }

    #editModalBody, #createModalBody, #confirmModalBody, #recycleModalBody, #registerModalBody {
        height: 98vh;
    }
    .history-row {
        grid-template-columns: unset;
    }
    .status-worksapce__main-subtask-item .status-worksapce__main-subtask-item-toggle{
        margin-left: auto;
    }
    .auth-header{
        flex-grow: unset;
    }
}
