/* =====================================================
   TMS RESPONSIVE FIX - FINAL CLEAN VERSION
   File: tmsResponsiveFix.css
   Purpose: Only responsive overrides
   Desktop / laptop design untouched
===================================================== */

/* =====================================================
   GLOBAL RESPONSIVE SAFETY
===================================================== */

@media (max-width:1199px){

    html,
    body,
    #main-wrapper{
        max-width:100% !important;
        overflow-x:hidden !important;
    }

    body{
        margin:0 !important;
        padding:0 !important;
        -webkit-text-size-adjust:100% !important;
    }

    img,
    svg{
        max-width:100%;
        height:auto;
    }

    table{
        width:100%;
    }

    .table-responsive{
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
    }

    .row{
        margin-left:0 !important;
        margin-right:0 !important;
    }

    .dropdown-menu{
        max-width:95vw !important;
    }

    .notification_dropdown .dropdown-menu,
    .header-profile .dropdown-menu{
        right:0 !important;
        left:auto !important;
    }
}

/* =====================================================
   FINAL STABLE RESPONSIVE HEADER
   Desktop/laptop untouched
   Tablet/mobile: Toggle + Search + Create + More
===================================================== */

@media (min-width:1200px){

    .tms-mobile-more-item{
        display:none !important;
    }
}

@media (max-width:1199px){

    .nav-header{
        position:fixed !important;
        top:0 !important;
        left:0 !important;
        width:58px !important;
        min-width:58px !important;
        height:72px !important;
        z-index:10010 !important;
        background:#ffffff !important;
        border-right:1px solid #eef2f7 !important;
        box-shadow:0 8px 24px rgba(15,23,42,.08) !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        padding:0 !important;
        margin:0 !important;
        overflow:hidden !important;
    }

    .nav-header .brand-logo,
    .nav-header .brand-logo *,
    .nav-header .brand-logo::before,
    .nav-header .brand-logo::after,
    .brand-title,
    .brand-sub-title{
        display:none !important;
        opacity:0 !important;
        visibility:hidden !important;
        width:0 !important;
        height:0 !important;
        max-width:0 !important;
        max-height:0 !important;
        overflow:hidden !important;
    }

    .nav-control{
        position:static !important;
        width:42px !important;
        height:42px !important;
        min-width:42px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        padding:0 !important;
        margin:0 !important;
        transform:none !important;
    }

    .hamburger{
        width:42px !important;
        height:42px !important;
        min-width:42px !important;
        border-radius:15px !important;
        background:#ffffff !important;
        box-shadow:0 10px 24px rgba(15,23,42,.14) !important;
        display:flex !important;
        flex-direction:column !important;
        align-items:center !important;
        justify-content:center !important;
        gap:5px !important;
        padding:0 !important;
        margin:0 !important;
        position:relative !important;
        transform:none !important;
    }

    .hamburger .line,
    .hamburger span{
        width:19px !important;
        height:2px !important;
        min-height:2px !important;
        background:#64748b !important;
        border-radius:20px !important;
        display:block !important;
        position:static !important;
        transform:none !important;
        margin:0 !important;
        opacity:1 !important;
    }

    .header{
        position:fixed !important;
        top:0 !important;
        left:58px !important;
        right:0 !important;
        width:calc(100% - 58px) !important;
        height:72px !important;
        min-height:72px !important;
        z-index:10000 !important;
        background:#ffffff !important;
        box-shadow:0 8px 24px rgba(15,23,42,.08) !important;
        overflow:visible !important;
        margin:0 !important;
    }

    .header .header-content{
        width:100% !important;
        height:72px !important;
        min-height:72px !important;
        padding:0 10px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        overflow:visible !important;
    }

    .header .navbar,
    .header .navbar-collapse{
        width:100% !important;
        height:100% !important;
        display:flex !important;
        align-items:center !important;
        padding:0 !important;
        margin:0 !important;
        overflow:visible !important;
    }

    .header-left{
        display:none !important;
    }

    .header-right{
        width:100% !important;
        height:44px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:stretch !important;
        gap:8px !important;
        margin:0 !important;
        padding:0 !important;
        overflow:visible !important;
    }

    .header-right > li{
        margin:0 !important;
        padding:0 !important;
        min-width:0 !important;
        list-style:none !important;
    }

    .header-right > li:not(:first-child):not(.tms-mobile-more-item){
        display:none !important;
    }

    .header-right > li:first-child,
    .header-right .nav-item:first-child{
        flex:1 1 0 !important;
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
        height:44px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:flex-start !important;
        gap:8px !important;
        order:0 !important;
    }
    .header-right > li:first-child > *,
    .header-right .nav-item:first-child > *{
        min-width:0 !important;
    }

    .header-right > li:first-child .search-wrapper{
        flex:1 1 100% !important;
        width:100% !important;
        max-width:none !important;
    }

    .header-right > li:first-child #openCreateModal,
    .header-right > li:first-child .create-btn{
        flex:0 0 auto !important;
    }

    .header-right.tms-no-header-actions{
        justify-content:flex-end !important;
    }

    .header-right.tms-no-header-actions > li:first-child{
        display:none !important;
    }

    .search-wrapper{
        flex:1 1 auto !important;
        width:100% !important;
        max-width:none !important;
        min-width:0 !important;
        height:42px !important;
        position:relative !important;
        overflow:visible !important;
        margin:0 !important;
        padding:0 !important;
    }

    #taskSearch,
    .search-wrapper input{
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
        height:42px !important;
        border-radius:15px !important;
        padding:0 38px 0 14px !important;
        font-size:12px !important;
        font-weight:650 !important;
        color:#334155 !important;
        background:#f8fafc !important;
        border:1px solid #e2e8f0 !important;
        box-shadow:none !important;
        outline:none !important;
        margin:0 !important;
    }

    #taskSearch::placeholder,
    .search-wrapper input::placeholder{
        color:#94a3b8 !important;
        font-weight:600 !important;
    }

    .search-wrapper i{
        position:absolute !important;
        right:13px !important;
        left:auto !important;
        top:50% !important;
        transform:translateY(-50%) !important;
        color:#64748b !important;
        font-size:13px !important;
        z-index:2 !important;
    }

    #searchResults,
    .search-results{
        width:100% !important;
        max-width:100% !important;
        left:0 !important;
        right:0 !important;
        top:48px !important;
        z-index:10150 !important;
        border-radius:14px !important;
    }

    #openCreateModal,
    .create-btn{
        flex:0 0 auto !important;
        width:auto !important;
        min-width:72px !important;
        height:42px !important;
        padding:0 13px !important;
        border-radius:15px !important;
        font-size:12px !important;
        font-weight:900 !important;
        line-height:1 !important;
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        gap:5px !important;
        white-space:nowrap !important;
        box-shadow:0 10px 22px rgba(67,97,238,.22) !important;
        margin:0 !important;
    }

    #openCreateModal i,
    .create-btn i{
        font-size:12px !important;
        margin:0 !important;
    }

    .tms-mobile-more-item{
        flex:0 0 42px !important;
        width:42px !important;
        height:42px !important;
        min-width:42px !important;
        position:relative !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        z-index:10120 !important;
        order:1 !important;
    }

    .tms-mobile-more-btn{
        width:42px !important;
        height:42px !important;
        min-width:42px !important;
        border:none !important;
        outline:none !important;
        border-radius:15px !important;
        background:#ffffff !important;
        color:#334155 !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        box-shadow:0 8px 20px rgba(15,23,42,.12) !important;
        cursor:pointer !important;
    }

    .tms-mobile-more-btn i{
        font-size:16px !important;
        line-height:1 !important;
    }

    .tms-mobile-more-menu{
        position:absolute !important;
        top:50px !important;
        right:0 !important;
        width:258px !important;
        max-width:calc(100vw - 74px) !important;
        background:#ffffff !important;
        border:1px solid #e5e7eb !important;
        border-radius:18px !important;
        box-shadow:0 24px 60px rgba(15,23,42,.22) !important;
        padding:10px !important;
        display:none !important;
        z-index:10180 !important;
    }

    .tms-mobile-more-item.active .tms-mobile-more-menu{
        display:block !important;
        animation:tmsMobileMoreIn .18s ease forwards;
    }

    .tms-mobile-more-title{
        padding:7px 10px 10px !important;
        font-size:12px !important;
        font-weight:900 !important;
        color:#94a3b8 !important;
        text-transform:uppercase !important;
        letter-spacing:.04em !important;
    }

    .tms-mobile-more-link{
        min-height:42px !important;
        padding:0 10px !important;
        border-radius:13px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:space-between !important;
        gap:10px !important;
        text-decoration:none !important;
        color:#334155 !important;
        font-size:13px !important;
        font-weight:750 !important;
    }

    .tms-mobile-more-link:hover{
        background:#f8fafc !important;
        color:#2563eb !important;
    }

    .tms-mobile-more-link span{
        display:flex !important;
        align-items:center !important;
        gap:10px !important;
        min-width:0 !important;
    }

    .tms-mobile-more-link i{
        width:18px !important;
        min-width:18px !important;
        text-align:center !important;
        color:#64748b !important;
        font-size:14px !important;
    }

    .tms-mobile-more-link b{
        min-width:20px !important;
        height:20px !important;
        border-radius:999px !important;
        background:#2563eb !important;
        color:#ffffff !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        padding:0 6px !important;
        font-size:10px !important;
        font-weight:900 !important;
    }

    .tms-mobile-more-link.danger{
        color:#dc2626 !important;
    }

    .tms-mobile-more-link.danger i{
        color:#dc2626 !important;
    }

    .tms-mobile-more-divider{
        height:1px !important;
        background:#eef2f7 !important;
        margin:7px 4px !important;
    }

    @keyframes tmsMobileMoreIn{
        from{
            opacity:0;
            transform:translateY(-6px) scale(.98);
        }
        to{
            opacity:1;
            transform:translateY(0) scale(1);
        }
    }

    .dlabnav{
        position:fixed !important;
        top:72px !important;
        left:0 !important;
        width:280px !important;
        max-width:84vw !important;
        height:calc(100vh - 72px) !important;
        z-index:9998 !important;
        background:#ffffff !important;
        transform:translateX(-110%) !important;
        transition:transform .25s ease !important;
        box-shadow:18px 0 45px rgba(15,23,42,.16) !important;
        border-right:1px solid #eef2f7 !important;
        overflow:hidden !important;
    }

    body.menu-toggle .dlabnav,
    #main-wrapper.menu-toggle .dlabnav,
    .menu-toggle .dlabnav{
        transform:translateX(0) !important;
    }

    .dlabnav .dlabnav-scroll{
        width:100% !important;
        height:100% !important;
        max-height:100% !important;
        overflow-y:auto !important;
        overflow-x:hidden !important;
        padding:16px 12px 40px !important;
    }

    .dlabnav .metismenu{
        padding:0 !important;
        margin:0 !important;
        width:100% !important;
    }

    .dlabnav .metismenu > li{
        width:100% !important;
        margin:0 0 6px !important;
    }

    .dlabnav .metismenu > li > a{
        width:100% !important;
        min-height:44px !important;
        border-radius:14px !important;
        display:flex !important;
        align-items:center !important;
        gap:12px !important;
        padding:0 14px !important;
        color:#64748b !important;
        font-size:14px !important;
        font-weight:750 !important;
        text-decoration:none !important;
    }

    .dlabnav .metismenu > li > a:hover{
        background:#f8fafc !important;
        color:#2563eb !important;
    }

    .dlabnav .metismenu > li > a i{
        width:22px !important;
        min-width:22px !important;
        text-align:center !important;
        color:#94a3b8 !important;
        font-size:17px !important;
    }

    .dlabnav .nav-text{
        display:inline-block !important;
        white-space:nowrap !important;
    }

    .dlabnav .metismenu ul{
        padding-left:38px !important;
        margin:4px 0 8px !important;
        background:transparent !important;
    }

    .dlabnav .metismenu ul a{
        font-size:13px !important;
        color:#64748b !important;
        padding:8px 0 !important;
        display:block !important;
        text-decoration:none !important;
    }

    body.menu-toggle .content-body,
    #main-wrapper.menu-toggle .content-body,
    .menu-toggle .content-body{
        margin-left:0 !important;
    }

    .content-body{
        padding-top:86px !important;
        margin-left:0 !important;
        width:100% !important;
    }

    .content-body .container-fluid{
        padding-left:12px !important;
        padding-right:12px !important;
    }
}

@media (max-width:420px){

    .nav-header{
        width:54px !important;
        min-width:54px !important;
        height:72px !important;
    }

    .header{
        left:54px !important;
        width:calc(100% - 54px) !important;
        height:72px !important;
        min-height:72px !important;
    }

    .header .header-content{
        padding:0 8px !important;
    }

    .header-right{
        gap:7px !important;
    }

    .nav-control,
    .hamburger{
        width:40px !important;
        height:40px !important;
        min-width:40px !important;
    }

    .tms-mobile-more-item,
    .tms-mobile-more-btn{
        width:40px !important;
        height:40px !important;
        min-width:40px !important;
        flex-basis:40px !important;
    }

    #openCreateModal,
    .create-btn{
        min-width:68px !important;
        height:40px !important;
        padding:0 8px !important;
        font-size:11px !important;
    }

    #taskSearch,
    .search-wrapper input{
        height:40px !important;
        font-size:11px !important;
        padding-left:12px !important;
        padding-right:34px !important;
    }

    .search-wrapper{
        height:40px !important;
    }

    .tms-mobile-more-menu{
        right:0 !important;
        width:248px !important;
        max-width:calc(100vw - 68px) !important;
    }

    .dlabnav{
        top:72px !important;
        width:265px !important;
        max-width:84vw !important;
        height:calc(100vh - 72px) !important;
    }
}

@media (max-width:360px){

    .header-right > li:first-child,
    .header-right .nav-item:first-child{
        gap:6px !important;
    }

    #openCreateModal,
    .create-btn{
        min-width:62px !important;
        font-size:10px !important;
        padding:0 6px !important;
    }

    .tms-mobile-more-menu{
        width:236px !important;
        max-width:calc(100vw - 64px) !important;
    }
}

/* =====================================================
   KANBAN BOARD RESPONSIVE
===================================================== */

@media (max-width:1199px){

    #boardView{
        width:100% !important;
        overflow-x:auto !important;
        overflow-y:hidden !important;
        -webkit-overflow-scrolling:touch !important;
        padding-bottom:12px !important;
    }

    .kanban-bx{
        display:flex !important;
        flex-wrap:nowrap !important;
        gap:16px !important;
        min-width:max-content !important;
    }

    .kanban-bx .col-xl-3{
        flex:0 0 300px !important;
        max-width:300px !important;
        min-width:300px !important;
    }

    .dropzoneContainer{
        min-height:100% !important;
    }

    .task-card{
        max-width:100% !important;
    }

    .task-title,
    .task-card h6,
    .task-card .card-title{
        overflow:hidden !important;
        text-overflow:ellipsis !important;
        white-space:nowrap !important;
    }

    #boardView::-webkit-scrollbar{
        height:8px !important;
    }

    #boardView::-webkit-scrollbar-thumb{
        background:#cbd5e1 !important;
        border-radius:999px !important;
    }
}

@media (max-width:767px){

    .kanban-bx{
        gap:12px !important;
    }

    .kanban-bx .col-xl-3{
        flex:0 0 285px !important;
        max-width:285px !important;
        min-width:285px !important;
    }
}

@media (max-width:420px){

    .kanban-bx .col-xl-3{
        flex:0 0 270px !important;
        max-width:270px !important;
        min-width:270px !important;
    }
}

@media (max-width:360px){

    .kanban-bx .col-xl-3{
        flex:0 0 255px !important;
        max-width:255px !important;
        min-width:255px !important;
    }
}

/* =====================================================
   CREATE / EDIT / SUBTASK MODAL RESPONSIVE
===================================================== */

@media (max-width:1199px){

    body.modal-open .header,
    body.modal-open .nav-header,
    body.modal-open .dlabnav,
    body:has(#createTaskModal.active) .header,
    body:has(#createTaskModal.active) .nav-header,
    body:has(#createTaskModal.active) .dlabnav,
    body:has(#createTaskModal.show) .header,
    body:has(#createTaskModal.show) .nav-header,
    body:has(#createTaskModal.show) .dlabnav{
        display:none !important;
    }

    .modal-backdrop{
        z-index:1040 !important;
    }

    .modal{
        z-index:1055 !important;
    }

    #createTaskModal,
    #editTaskModal,
    #subtaskEditModal,
    #subtaskPremiumEditModal,
    .tms-premium-subtask-modal,
    .tms-subtask-edit-modal,
    .premium-subtask-modal{
        z-index:1060 !important;
    }

    #createTaskModal .modal-dialog,
    #editTaskModal .modal-dialog,
    #subtaskEditModal .modal-dialog,
    #subtaskPremiumEditModal .modal-dialog,
    #createTaskModal .modal-content,
    #editTaskModal .modal-content,
    #subtaskEditModal .modal-content,
    #subtaskPremiumEditModal .modal-content{
        z-index:1061 !important;
        position:relative !important;
    }
}

@media (max-width:767px){

    .modal-dialog,
    .tms-premium-modal-dialog{
        max-width:calc(100% - 12px) !important;
        width:calc(100% - 12px) !important;
        margin:6px auto !important;
    }

    .modal-content,
    .tms-premium-modal-content{
        max-height:calc(100vh - 12px) !important;
        border-radius:18px !important;
        overflow:hidden !important;
    }

    #createTaskModal.active{
        position:fixed !important;
        inset:0 !important;
        z-index:1060 !important;
        width:100vw !important;
        height:100vh !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        padding:10px !important;
        overflow:hidden !important;
    }

    .create-modal-header,
    .tms-create-header,
    .tms-edit-header{
        display:flex !important;
        align-items:flex-start !important;
        justify-content:space-between !important;
        gap:12px !important;
        padding:18px 16px !important;
        flex-wrap:wrap !important;
    }

    .create-header-left,
    .tms-edit-header-left,
    .tms-edit-title-wrap{
        width:calc(100% - 52px) !important;
        flex:1 1 calc(100% - 52px) !important;
        display:flex !important;
        align-items:flex-start !important;
        gap:12px !important;
        min-width:0 !important;
    }

    .create-header-title-wrap,
    .tms-edit-header-title{
        flex:1 1 auto !important;
        min-width:0 !important;
    }

    .create-header-icon,
    .tms-edit-icon,
    .tms-edit-header-icon{
        width:46px !important;
        height:46px !important;
        min-width:46px !important;
        flex:0 0 46px !important;
        border-radius:14px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
    }

    .create-header-icon i,
    .tms-edit-icon i,
    .tms-edit-header-icon i{
        font-size:16px !important;
        margin:0 !important;
    }

    .create-header-title,
    .tms-edit-title,
    .tms-edit-header-title h4,
    .tms-edit-header-title h5{
        font-size:20px !important;
        line-height:1.25 !important;
        margin:0 !important;
        white-space:normal !important;
        word-break:normal !important;
        overflow-wrap:normal !important;
    }

    .create-header-subtitle,
    .tms-edit-subtitle,
    .tms-edit-header-title p{
        font-size:13px !important;
        line-height:1.45 !important;
        margin:4px 0 0 !important;
        white-space:normal !important;
        word-break:normal !important;
        overflow-wrap:normal !important;
        max-width:100% !important;
    }

    .tms-edit-header-actions{
        width:100% !important;
        display:flex !important;
        align-items:center !important;
        justify-content:space-between !important;
        gap:8px !important;
        flex-wrap:nowrap !important;
    }

    .tms-last-history-btn{
        max-width:calc(100% - 48px) !important;
        height:36px !important;
        padding:0 12px !important;
        font-size:12px !important;
        white-space:nowrap !important;
        border-radius:12px !important;
    }

    .tms-edit-close,
    .tms-modal-close-btn,
    button[data-bs-dismiss="modal"]{
        width:38px !important;
        height:38px !important;
        min-width:38px !important;
        flex:0 0 38px !important;
        padding:0 !important;
        border-radius:12px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
    }

    .modal-body,
    .tms-edit-body{
        max-height:calc(100vh - 210px) !important;
        padding:14px !important;
        overflow-y:auto !important;
        overflow-x:hidden !important;
    }

    .modal-footer,
    .tms-edit-footer{
        position:sticky !important;
        bottom:0 !important;
        background:#ffffff !important;
        display:flex !important;
        gap:10px !important;
        padding:12px 14px !important;
        z-index:5 !important;
        flex-wrap:wrap !important;
    }

    .modal-footer .btn,
    .tms-edit-footer .btn,
    .cancel-btn,
    .create-task-btn,
    .update-task-btn{
        flex:1 1 0 !important;
        min-width:0 !important;
        height:46px !important;
        border-radius:14px !important;
        font-size:13px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        gap:6px !important;
        white-space:normal !important;
        text-align:center !important;
    }

    .comment-tabs,
    .tms-task-tabs{
        overflow-x:auto !important;
        flex-wrap:nowrap !important;
        white-space:nowrap !important;
        -webkit-overflow-scrolling:touch !important;
    }
}

@media (max-width:380px){

    .create-header-title,
    .tms-edit-title,
    .tms-edit-header-title h4,
    .tms-edit-header-title h5{
        font-size:18px !important;
    }

    .create-header-subtitle,
    .tms-edit-subtitle,
    .tms-edit-header-title p{
        font-size:12px !important;
    }

    .modal-footer,
    .tms-edit-footer{
        flex-direction:column !important;
    }

    .modal-footer .btn,
    .tms-edit-footer .btn{
        width:100% !important;
    }
}

/* =====================================================
   COMMENTS / REPLIES / HISTORY RESPONSIVE
===================================================== */

@media (max-width:767px){

    .jira-comment-card,
    .jira-reply-card,
    .history-card{
        width:100% !important;
        margin-left:0 !important;
        padding:12px !important;
        gap:10px !important;
    }

    .jira-comment-header,
    .jira-reply-header{
        display:flex !important;
        flex-direction:column !important;
        align-items:flex-start !important;
        gap:6px !important;
    }

    .jira-comment-text,
    .jira-reply-text,
    .history-comment{
        width:100% !important;
        overflow-wrap:anywhere !important;
        word-break:normal !important;
        font-size:13px !important;
        line-height:1.45 !important;
    }

    .comment-actions{
        width:100% !important;
        display:flex !important;
        flex-wrap:wrap !important;
        gap:6px !important;
    }

    .reply-box,
    .comment-input-box,
    .tms-comment-box{
        width:100% !important;
    }

    .reply-box textarea,
    .comment-input-box textarea,
    .tms-comment-box textarea{
        width:100% !important;
        min-height:90px !important;
    }

    .mention-dropdown{
        max-width:calc(100vw - 32px) !important;
    }
}

/* =====================================================
   ATTACHMENTS RESPONSIVE
===================================================== */

@media (max-width:767px){

    .tms-attachment-row{
        flex-direction:column !important;
        align-items:flex-start !important;
        gap:12px !important;
    }

    .tms-attachment-left{
        width:100% !important;
        min-width:0 !important;
    }

    .tms-attachment-info{
        min-width:0 !important;
        width:calc(100% - 62px) !important;
    }

    .tms-attachment-name{
        overflow:hidden !important;
        text-overflow:ellipsis !important;
        white-space:nowrap !important;
        max-width:100% !important;
    }

    .tms-attachment-actions{
        width:100% !important;
        justify-content:flex-end !important;
    }

    .file-upload-label{
        flex-direction:column !important;
        align-items:flex-start !important;
        gap:12px !important;
    }

    .file-upload-right{
        align-self:flex-end !important;
    }
}

/* =====================================================
   SUBTASK RESPONSIVE
===================================================== */

@media (max-width:767px){

    .subtask-compact-header{
        flex-direction:column !important;
        align-items:flex-start !important;
    }

    .subtask-compact-right{
        width:100% !important;
        justify-content:flex-start !important;
        flex-wrap:wrap !important;
    }

    .subtask-save-btn{
        width:100% !important;
    }

    .tms-inner-tab-header{
        flex-direction:column !important;
        align-items:flex-start !important;
        gap:12px !important;
    }

    .tms-add-subtask-btn{
        width:100% !important;
        justify-content:center !important;
    }
}

/* =====================================================
   SEARCH RESULTS PAGE RESPONSIVE
===================================================== */

@media (max-width:992px){

    .tms-search-hero{
        flex-direction:column !important;
    }

    .tms-search-summary{
        grid-template-columns:repeat(2,1fr) !important;
    }

    .tms-search-layout{
        grid-template-columns:1fr !important;
    }

    .tms-search-sidebar{
        display:flex !important;
        gap:8px !important;
        overflow-x:auto !important;
        -webkit-overflow-scrolling:touch !important;
    }

    .tms-filter-title{
        display:none !important;
    }

    .tms-filter-btn{
        white-space:nowrap !important;
        width:auto !important;
        margin-bottom:0 !important;
    }
}

@media (max-width:767px){

    .tms-search-page{
        padding:6px 0 24px !important;
    }

    .tms-search-hero{
        padding:18px !important;
        border-radius:20px !important;
    }

    .tms-search-hero h2{
        font-size:24px !important;
    }

    .tms-search-box-large{
        width:100% !important;
        height:auto !important;
        min-height:52px !important;
        flex-wrap:wrap !important;
    }

    .tms-search-box-large button{
        width:100% !important;
    }

    .tms-search-summary{
        grid-template-columns:1fr !important;
    }

    .tms-results-header{
        flex-direction:column !important;
        align-items:flex-start !important;
    }

    .tms-back-board-btn{
        width:100% !important;
        justify-content:center !important;
    }

    .tms-results-list{
        max-height:none !important;
        overflow:visible !important;
    }

    .tms-result-card{
        flex-direction:column !important;
    }

    .tms-result-right{
        justify-content:flex-end !important;
        flex-wrap:wrap !important;
    }

    .tms-result-title{
        max-width:260px !important;
        white-space:normal !important;
    }
}

/* =====================================================
   PROFILE PAGE RESPONSIVE
===================================================== */

@media (max-width:991px){

    .profile-page,
    .profile-container,
    .profile-card,
    .app-profile,
    .card{
        max-width:100% !important;
    }

    .profile-info-row,
    .profile-details-row{
        flex-wrap:wrap !important;
    }
}

@media (max-width:767px){

    .profile-page,
    .profile-container{
        padding:12px !important;
    }

    .profile-card,
    .app-profile .card{
        border-radius:18px !important;
        overflow:hidden !important;
    }

    .profile-header,
    .profile-top-section{
        flex-direction:column !important;
        align-items:flex-start !important;
        gap:12px !important;
    }

    .profile-name,
    .profile-title{
        font-size:24px !important;
        line-height:1.25 !important;
        word-break:normal !important;
    }

    .profile-info-row,
    .profile-details-row,
    .profile-stat-row{
        display:grid !important;
        grid-template-columns:1fr !important;
        gap:12px !important;
    }
}

/* =====================================================
   MY TASKS PAGE RESPONSIVE
===================================================== */

@media (max-width:991px){

    .mytasks-wrapper,
    .my-tasks-wrapper,
    .tasks-dashboard{
        max-width:100% !important;
        overflow:hidden !important;
    }

    .task-status-grid,
    .mytask-status-grid,
    .status-card-grid{
        display:grid !important;
        grid-template-columns:repeat(2,1fr) !important;
        gap:14px !important;
    }
}

@media (max-width:767px){

    .task-status-grid,
    .mytask-status-grid,
    .status-card-grid{
        grid-template-columns:1fr !important;
    }

    .mytask-card,
    .status-card{
        width:100% !important;
        min-width:0 !important;
    }
}

/* =====================================================
   CHANGE PASSWORD PAGE RESPONSIVE
===================================================== */


@media (max-width:767px){

    .change-password-card,
    .change-password-wrapper,
    .password-card{
        width:100% !important;
        max-width:100% !important;
        border-radius:18px !important;
        padding:18px !important;
    }

    .change-password-card h2,
    .change-password-card h4,
    .password-card h2,
    .password-card h4{
        font-size:22px !important;
        line-height:1.25 !important;
        text-align:center !important;
    }

    .change-password-card .input-group,
    .password-card .input-group{
        width:100% !important;
    }

    .change-password-card .form-control,
    .password-card .form-control{
        min-width:0 !important;
        width:100% !important;
    }

    #passwordRules,
    .password-rules{
        padding-left:18px !important;
        font-size:13px !important;
        line-height:1.45 !important;
    }
}

/* =====================================================
   AUTH PAGES RESPONSIVE
   Login / Register / Forgot / OTP / Reset / Success
===================================================== */

@media (max-width:767px){

    .login-auth-page,
    .forgot-auth-page,
    .otp-auth-page,
    .success-auth-page,
    .register-auth-page{
        min-height:100vh !important;
        padding:18px 14px !important;
        align-items:flex-start !important;
        padding-top:36px !important;
    }

    .login-card,
    .forgot-card,
    .otp-card,
    .success-card,
    .register-box,
    .authincation-content{
        width:100% !important;
        max-width:100% !important;
        border-radius:22px !important;
    }

    .login-form-card,
    .forgot-card,
    .otp-card,
    .success-card,
    .register-form-card{
        padding:28px 18px !important;
    }

    .login-logo,
    .forgot-logo,
    .otp-logo,
    .success-logo,
    .register-logo{
        height:70px !important;
        max-width:100% !important;
        object-fit:contain !important;
    }

    .login-title,
    .forgot-title,
    .otp-title,
    .success-title,
    .register-title{
        font-size:24px !important;
        line-height:1.25 !important;
    }

    .login-subtitle,
    .forgot-subtitle,
    .otp-subtitle,
    .success-subtitle{
        font-size:13px !important;
    }

    .login-extra-row{
        flex-direction:column !important;
        align-items:flex-start !important;
        gap:10px !important;
    }

    .login-submit-btn,
    .forgot-submit-btn,
    .otp-submit-btn,
    .success-action-btn,
    .register-submit-btn{
        height:48px !important;
        width:100% !important;
    }

    .register-layout{
        grid-template-columns:1fr !important;
    }

    .register-info-panel{
        display:none !important;
    }

    .otp-input-group{
        gap:8px !important;
    }

    .otp-box{
        width:42px !important;
        height:48px !important;
        border-radius:12px !important;
        font-size:20px !important;
    }
}

@media (max-width:380px){

    .login-form-card,
    .forgot-card,
    .otp-card,
    .success-card,
    .register-form-card{
        padding:24px 14px !important;
    }

    .login-logo,
    .forgot-logo,
    .otp-logo,
    .success-logo,
    .register-logo{
        height:64px !important;
    }

    .login-title,
    .forgot-title,
    .otp-title,
    .success-title,
    .register-title{
        font-size:21px !important;
    }

    .otp-input-group{
        gap:6px !important;
    }

    .otp-box{
        width:38px !important;
        height:46px !important;
    }
}

/* =====================================================
   ACTIVITY HISTORY POPUP RESPONSIVE
===================================================== */

@media (max-width:767px){

    .tms-activity-popup{
        padding:10px !important;
    }

    .tms-activity-box{
        width:100% !important;
        max-width:100% !important;
        max-height:92vh !important;
        border-radius:20px !important;
    }

    .tms-activity-header{
        padding:18px !important;
    }

    .tms-activity-header h5{
        font-size:18px !important;
    }

    .tms-activity-toolbar{
        padding:12px 18px !important;
        overflow-x:auto !important;
    }

    .tms-activity-list{
        padding:14px 18px 18px !important;
        max-height:62vh !important;
    }

    .tms-activity-card{
        padding:14px !important;
        gap:12px !important;
    }

    .tms-activity-values{
        grid-template-columns:1fr !important;
    }
}
/* =====================================================
   FINAL SEARCH FULL WIDTH FORCE FIX
   Put this at the very bottom of tmsResponsiveFix.css
===================================================== */

@media (max-width:1199px){

    .header-right{
        width:100% !important;
        max-width:100% !important;
        height:44px !important;
        display:grid !important;
        grid-template-columns:minmax(0, 1fr) 42px !important;
        grid-template-rows:44px !important;
        column-gap:8px !important;
        align-items:center !important;
        justify-content:stretch !important;
        margin:0 !important;
        padding:0 !important;
        overflow:visible !important;
    }

    .header-right > li{
        margin:0 !important;
        padding:0 !important;
        min-width:0 !important;
        list-style:none !important;
    }

    .header-right > li:not(:first-child):not(.tms-mobile-more-item){
        display:none !important;
    }

    .header-right > li:first-child{
        grid-column:1 !important;
        grid-row:1 !important;
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
        height:44px !important;
        display:grid !important;
        grid-template-columns:minmax(0, 1fr) auto !important;
        grid-template-rows:44px !important;
        column-gap:8px !important;
        align-items:center !important;
        justify-content:stretch !important;
        margin:0 !important;
        padding:0 !important;
        overflow:visible !important;
    }

    .header-right > li:first-child .search-wrapper{
        grid-column:1 !important;
        grid-row:1 !important;
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
        height:42px !important;
        justify-self:stretch !important;
        align-self:center !important;
        margin:0 !important;
        padding:0 !important;
    }

    .header-right > li:first-child #taskSearch,
    .header-right > li:first-child .search-wrapper input{
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
        height:42px !important;
    }

    .header-right > li:first-child #openCreateModal,
    .header-right > li:first-child .create-btn{
        grid-column:2 !important;
        grid-row:1 !important;
        width:auto !important;
        min-width:72px !important;
        height:42px !important;
        justify-self:end !important;
        align-self:center !important;
        margin:0 !important;
        flex:none !important;
    }

    .tms-mobile-more-item{
        grid-column:2 !important;
        grid-row:1 !important;
        width:42px !important;
        min-width:42px !important;
        height:42px !important;
        justify-self:end !important;
        align-self:center !important;
        margin:0 !important;
        padding:0 !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
    }
}

@media (max-width:420px){

    .header-right{
        grid-template-columns:minmax(0, 1fr) 40px !important;
        column-gap:7px !important;
    }

    .header-right > li:first-child{
        grid-template-columns:minmax(0, 1fr) 68px !important;
        column-gap:7px !important;
    }

    .header-right > li:first-child #openCreateModal,
    .header-right > li:first-child .create-btn{
        min-width:68px !important;
        width:68px !important;
        height:40px !important;
        font-size:11px !important;
        padding:0 8px !important;
    }

    .header-right > li:first-child .search-wrapper,
    .header-right > li:first-child #taskSearch,
    .header-right > li:first-child .search-wrapper input{
        height:40px !important;
    }

    .tms-mobile-more-item,
    .tms-mobile-more-btn{
        width:40px !important;
        min-width:40px !important;
        height:40px !important;
    }
}
/* =====================================================
   TMS RESPONSIVE FIX - FINAL CLEAN VERSION
   File: tmsResponsiveFix.css
   Purpose: Only responsive overrides
   Desktop / laptop design untouched
===================================================== */

/* =====================================================
   GLOBAL RESPONSIVE SAFETY
===================================================== */

@media (max-width:1199px){

    html,
    body,
    #main-wrapper{
        max-width:100% !important;
        overflow-x:hidden !important;
    }

    body{
        margin:0 !important;
        padding:0 !important;
        -webkit-text-size-adjust:100% !important;
    }

    img,
    svg{
        max-width:100%;
        height:auto;
    }

    table{
        width:100%;
    }

    .table-responsive{
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
    }

    .row{
        margin-left:0 !important;
        margin-right:0 !important;
    }

    .dropdown-menu{
        max-width:95vw !important;
    }

    .notification_dropdown .dropdown-menu,
    .header-profile .dropdown-menu{
        right:0 !important;
        left:auto !important;
    }
}

/* =====================================================
   FINAL STABLE RESPONSIVE HEADER
   Desktop/laptop untouched
   Tablet/mobile: Toggle + Search + Create + More
===================================================== */

@media (min-width:1200px){

    .tms-mobile-more-item{
        display:none !important;
    }
}

@media (max-width:1199px){

    .nav-header{
        position:fixed !important;
        top:0 !important;
        left:0 !important;
        width:58px !important;
        min-width:58px !important;
        height:72px !important;
        z-index:10010 !important;
        background:#ffffff !important;
        border-right:1px solid #eef2f7 !important;
        box-shadow:0 8px 24px rgba(15,23,42,.08) !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        padding:0 !important;
        margin:0 !important;
        overflow:hidden !important;
    }

    .nav-header .brand-logo,
    .nav-header .brand-logo *,
    .nav-header .brand-logo::before,
    .nav-header .brand-logo::after,
    .brand-title,
    .brand-sub-title{
        display:none !important;
        opacity:0 !important;
        visibility:hidden !important;
        width:0 !important;
        height:0 !important;
        max-width:0 !important;
        max-height:0 !important;
        overflow:hidden !important;
    }

    .nav-control{
        position:static !important;
        width:42px !important;
        height:42px !important;
        min-width:42px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        padding:0 !important;
        margin:0 !important;
        transform:none !important;
    }

    .hamburger{
        width:42px !important;
        height:42px !important;
        min-width:42px !important;
        border-radius:15px !important;
        background:#ffffff !important;
        box-shadow:0 10px 24px rgba(15,23,42,.14) !important;
        display:flex !important;
        flex-direction:column !important;
        align-items:center !important;
        justify-content:center !important;
        gap:5px !important;
        padding:0 !important;
        margin:0 !important;
        position:relative !important;
        transform:none !important;
    }

    .hamburger .line,
    .hamburger span{
        width:19px !important;
        height:2px !important;
        min-height:2px !important;
        background:#64748b !important;
        border-radius:20px !important;
        display:block !important;
        position:static !important;
        transform:none !important;
        margin:0 !important;
        opacity:1 !important;
    }

    .header{
        position:fixed !important;
        top:0 !important;
        left:58px !important;
        right:0 !important;
        width:calc(100% - 58px) !important;
        height:72px !important;
        min-height:72px !important;
        z-index:10000 !important;
        background:#ffffff !important;
        box-shadow:0 8px 24px rgba(15,23,42,.08) !important;
        overflow:visible !important;
        margin:0 !important;
    }

    .header .header-content{
        width:100% !important;
        height:72px !important;
        min-height:72px !important;
        padding:0 10px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        overflow:visible !important;
    }

    .header .navbar,
    .header .navbar-collapse{
        width:100% !important;
        height:100% !important;
        display:flex !important;
        align-items:center !important;
        padding:0 !important;
        margin:0 !important;
        overflow:visible !important;
    }

    .header-left{
        display:none !important;
    }

    .header-right{
        width:100% !important;
        height:44px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:stretch !important;
        gap:8px !important;
        margin:0 !important;
        padding:0 !important;
        overflow:visible !important;
    }

    .header-right > li{
        margin:0 !important;
        padding:0 !important;
        min-width:0 !important;
        list-style:none !important;
    }

    .header-right > li:not(:first-child):not(.tms-mobile-more-item){
        display:none !important;
    }

    .header-right > li:first-child,
    .header-right .nav-item:first-child{
        flex:1 1 0 !important;
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
        height:44px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:flex-start !important;
        gap:8px !important;
        order:0 !important;
    }
    .header-right > li:first-child > *,
    .header-right .nav-item:first-child > *{
        min-width:0 !important;
    }

    .header-right > li:first-child .search-wrapper{
        flex:1 1 100% !important;
        width:100% !important;
        max-width:none !important;
    }

    .header-right > li:first-child #openCreateModal,
    .header-right > li:first-child .create-btn{
        flex:0 0 auto !important;
    }

    .header-right.tms-no-header-actions{
        justify-content:flex-end !important;
    }

    .header-right.tms-no-header-actions > li:first-child{
        display:none !important;
    }

    .search-wrapper{
        flex:1 1 auto !important;
        width:100% !important;
        max-width:none !important;
        min-width:0 !important;
        height:42px !important;
        position:relative !important;
        overflow:visible !important;
        margin:0 !important;
        padding:0 !important;
    }

    #taskSearch,
    .search-wrapper input{
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
        height:42px !important;
        border-radius:15px !important;
        padding:0 38px 0 14px !important;
        font-size:12px !important;
        font-weight:650 !important;
        color:#334155 !important;
        background:#f8fafc !important;
        border:1px solid #e2e8f0 !important;
        box-shadow:none !important;
        outline:none !important;
        margin:0 !important;
    }

    #taskSearch::placeholder,
    .search-wrapper input::placeholder{
        color:#94a3b8 !important;
        font-weight:600 !important;
    }

    .search-wrapper i{
        position:absolute !important;
        right:13px !important;
        left:auto !important;
        top:50% !important;
        transform:translateY(-50%) !important;
        color:#64748b !important;
        font-size:13px !important;
        z-index:2 !important;
    }

    #searchResults,
    .search-results{
        width:100% !important;
        max-width:100% !important;
        left:0 !important;
        right:0 !important;
        top:48px !important;
        z-index:10150 !important;
        border-radius:14px !important;
    }

    #openCreateModal,
    .create-btn{
        flex:0 0 auto !important;
        width:auto !important;
        min-width:72px !important;
        height:42px !important;
        padding:0 13px !important;
        border-radius:15px !important;
        font-size:12px !important;
        font-weight:900 !important;
        line-height:1 !important;
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        gap:5px !important;
        white-space:nowrap !important;
        box-shadow:0 10px 22px rgba(67,97,238,.22) !important;
        margin:0 !important;
    }

    #openCreateModal i,
    .create-btn i{
        font-size:12px !important;
        margin:0 !important;
    }

    .tms-mobile-more-item{
        flex:0 0 42px !important;
        width:42px !important;
        height:42px !important;
        min-width:42px !important;
        position:relative !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        z-index:10120 !important;
        order:1 !important;
    }

    .tms-mobile-more-btn{
        width:42px !important;
        height:42px !important;
        min-width:42px !important;
        border:none !important;
        outline:none !important;
        border-radius:15px !important;
        background:#ffffff !important;
        color:#334155 !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        box-shadow:0 8px 20px rgba(15,23,42,.12) !important;
        cursor:pointer !important;
    }

    .tms-mobile-more-btn i{
        font-size:16px !important;
        line-height:1 !important;
    }

    .tms-mobile-more-menu{
        position:absolute !important;
        top:50px !important;
        right:0 !important;
        width:258px !important;
        max-width:calc(100vw - 74px) !important;
        background:#ffffff !important;
        border:1px solid #e5e7eb !important;
        border-radius:18px !important;
        box-shadow:0 24px 60px rgba(15,23,42,.22) !important;
        padding:10px !important;
        display:none !important;
        z-index:10180 !important;
    }

    .tms-mobile-more-item.active .tms-mobile-more-menu{
        display:block !important;
        animation:tmsMobileMoreIn .18s ease forwards;
    }

    .tms-mobile-more-title{
        padding:7px 10px 10px !important;
        font-size:12px !important;
        font-weight:900 !important;
        color:#94a3b8 !important;
        text-transform:uppercase !important;
        letter-spacing:.04em !important;
    }

    .tms-mobile-more-link{
        min-height:42px !important;
        padding:0 10px !important;
        border-radius:13px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:space-between !important;
        gap:10px !important;
        text-decoration:none !important;
        color:#334155 !important;
        font-size:13px !important;
        font-weight:750 !important;
    }

    .tms-mobile-more-link:hover{
        background:#f8fafc !important;
        color:#2563eb !important;
    }

    .tms-mobile-more-link span{
        display:flex !important;
        align-items:center !important;
        gap:10px !important;
        min-width:0 !important;
    }

    .tms-mobile-more-link i{
        width:18px !important;
        min-width:18px !important;
        text-align:center !important;
        color:#64748b !important;
        font-size:14px !important;
    }

    .tms-mobile-more-link b{
        min-width:20px !important;
        height:20px !important;
        border-radius:999px !important;
        background:#2563eb !important;
        color:#ffffff !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        padding:0 6px !important;
        font-size:10px !important;
        font-weight:900 !important;
    }

    .tms-mobile-more-link.danger{
        color:#dc2626 !important;
    }

    .tms-mobile-more-link.danger i{
        color:#dc2626 !important;
    }

    .tms-mobile-more-divider{
        height:1px !important;
        background:#eef2f7 !important;
        margin:7px 4px !important;
    }

    @keyframes tmsMobileMoreIn{
        from{
            opacity:0;
            transform:translateY(-6px) scale(.98);
        }
        to{
            opacity:1;
            transform:translateY(0) scale(1);
        }
    }

    .dlabnav{
        position:fixed !important;
        top:72px !important;
        left:0 !important;
        width:280px !important;
        max-width:84vw !important;
        height:calc(100vh - 72px) !important;
        z-index:9998 !important;
        background:#ffffff !important;
        transform:translateX(-110%) !important;
        transition:transform .25s ease !important;
        box-shadow:18px 0 45px rgba(15,23,42,.16) !important;
        border-right:1px solid #eef2f7 !important;
        overflow:hidden !important;
    }

    body.menu-toggle .dlabnav,
    #main-wrapper.menu-toggle .dlabnav,
    .menu-toggle .dlabnav{
        transform:translateX(0) !important;
    }

    .dlabnav .dlabnav-scroll{
        width:100% !important;
        height:100% !important;
        max-height:100% !important;
        overflow-y:auto !important;
        overflow-x:hidden !important;
        padding:16px 12px 40px !important;
    }

    .dlabnav .metismenu{
        padding:0 !important;
        margin:0 !important;
        width:100% !important;
    }

    .dlabnav .metismenu > li{
        width:100% !important;
        margin:0 0 6px !important;
    }

    .dlabnav .metismenu > li > a{
        width:100% !important;
        min-height:44px !important;
        border-radius:14px !important;
        display:flex !important;
        align-items:center !important;
        gap:12px !important;
        padding:0 14px !important;
        color:#64748b !important;
        font-size:14px !important;
        font-weight:750 !important;
        text-decoration:none !important;
    }

    .dlabnav .metismenu > li > a:hover{
        background:#f8fafc !important;
        color:#2563eb !important;
    }

    .dlabnav .metismenu > li > a i{
        width:22px !important;
        min-width:22px !important;
        text-align:center !important;
        color:#94a3b8 !important;
        font-size:17px !important;
    }

    .dlabnav .nav-text{
        display:inline-block !important;
        white-space:nowrap !important;
    }

    .dlabnav .metismenu ul{
        padding-left:38px !important;
        margin:4px 0 8px !important;
        background:transparent !important;
    }

    .dlabnav .metismenu ul a{
        font-size:13px !important;
        color:#64748b !important;
        padding:8px 0 !important;
        display:block !important;
        text-decoration:none !important;
    }

    body.menu-toggle .content-body,
    #main-wrapper.menu-toggle .content-body,
    .menu-toggle .content-body{
        margin-left:0 !important;
    }

    .content-body{
        padding-top:86px !important;
        margin-left:0 !important;
        width:100% !important;
    }

    .content-body .container-fluid{
        padding-left:12px !important;
        padding-right:12px !important;
    }
}

@media (max-width:420px){

    .nav-header{
        width:54px !important;
        min-width:54px !important;
        height:72px !important;
    }

    .header{
        left:54px !important;
        width:calc(100% - 54px) !important;
        height:72px !important;
        min-height:72px !important;
    }

    .header .header-content{
        padding:0 8px !important;
    }

    .header-right{
        gap:7px !important;
    }

    .nav-control,
    .hamburger{
        width:40px !important;
        height:40px !important;
        min-width:40px !important;
    }

    .tms-mobile-more-item,
    .tms-mobile-more-btn{
        width:40px !important;
        height:40px !important;
        min-width:40px !important;
        flex-basis:40px !important;
    }

    #openCreateModal,
    .create-btn{
        min-width:68px !important;
        height:40px !important;
        padding:0 8px !important;
        font-size:11px !important;
    }

    #taskSearch,
    .search-wrapper input{
        height:40px !important;
        font-size:11px !important;
        padding-left:12px !important;
        padding-right:34px !important;
    }

    .search-wrapper{
        height:40px !important;
    }

    .tms-mobile-more-menu{
        right:0 !important;
        width:248px !important;
        max-width:calc(100vw - 68px) !important;
    }

    .dlabnav{
        top:72px !important;
        width:265px !important;
        max-width:84vw !important;
        height:calc(100vh - 72px) !important;
    }
}

@media (max-width:360px){

    .header-right > li:first-child,
    .header-right .nav-item:first-child{
        gap:6px !important;
    }

    #openCreateModal,
    .create-btn{
        min-width:62px !important;
        font-size:10px !important;
        padding:0 6px !important;
    }

    .tms-mobile-more-menu{
        width:236px !important;
        max-width:calc(100vw - 64px) !important;
    }
}

/* =====================================================
   KANBAN BOARD RESPONSIVE
===================================================== */

@media (max-width:1199px){

    #boardView{
        width:100% !important;
        overflow-x:auto !important;
        overflow-y:hidden !important;
        -webkit-overflow-scrolling:touch !important;
        padding-bottom:12px !important;
    }

    .kanban-bx{
        display:flex !important;
        flex-wrap:nowrap !important;
        gap:16px !important;
        min-width:max-content !important;
    }

    .kanban-bx .col-xl-3{
        flex:0 0 300px !important;
        max-width:300px !important;
        min-width:300px !important;
    }

    .dropzoneContainer{
        min-height:100% !important;
    }

    .task-card{
        max-width:100% !important;
    }

    .task-title,
    .task-card h6,
    .task-card .card-title{
        overflow:hidden !important;
        text-overflow:ellipsis !important;
        white-space:nowrap !important;
    }

    #boardView::-webkit-scrollbar{
        height:8px !important;
    }

    #boardView::-webkit-scrollbar-thumb{
        background:#cbd5e1 !important;
        border-radius:999px !important;
    }
}

@media (max-width:767px){

    .kanban-bx{
        gap:12px !important;
    }

    .kanban-bx .col-xl-3{
        flex:0 0 285px !important;
        max-width:285px !important;
        min-width:285px !important;
    }
}

@media (max-width:420px){

    .kanban-bx .col-xl-3{
        flex:0 0 270px !important;
        max-width:270px !important;
        min-width:270px !important;
    }
}

@media (max-width:360px){

    .kanban-bx .col-xl-3{
        flex:0 0 255px !important;
        max-width:255px !important;
        min-width:255px !important;
    }
}

/* =====================================================
   CREATE / EDIT / SUBTASK MODAL RESPONSIVE
===================================================== */

@media (max-width:1199px){

    body.modal-open .header,
    body.modal-open .nav-header,
    body.modal-open .dlabnav,
    body:has(#createTaskModal.active) .header,
    body:has(#createTaskModal.active) .nav-header,
    body:has(#createTaskModal.active) .dlabnav,
    body:has(#createTaskModal.show) .header,
    body:has(#createTaskModal.show) .nav-header,
    body:has(#createTaskModal.show) .dlabnav{
        display:none !important;
    }

    .modal-backdrop{
        z-index:1040 !important;
    }

    .modal{
        z-index:1055 !important;
    }

    #createTaskModal,
    #editTaskModal,
    #subtaskEditModal,
    #subtaskPremiumEditModal,
    .tms-premium-subtask-modal,
    .tms-subtask-edit-modal,
    .premium-subtask-modal{
        z-index:1060 !important;
    }

    #createTaskModal .modal-dialog,
    #editTaskModal .modal-dialog,
    #subtaskEditModal .modal-dialog,
    #subtaskPremiumEditModal .modal-dialog,
    #createTaskModal .modal-content,
    #editTaskModal .modal-content,
    #subtaskEditModal .modal-content,
    #subtaskPremiumEditModal .modal-content{
        z-index:1061 !important;
        position:relative !important;
    }
}

@media (max-width:767px){

    .modal-dialog,
    .tms-premium-modal-dialog{
        max-width:calc(100% - 12px) !important;
        width:calc(100% - 12px) !important;
        margin:6px auto !important;
    }

    .modal-content,
    .tms-premium-modal-content{
        max-height:calc(100vh - 12px) !important;
        border-radius:18px !important;
        overflow:hidden !important;
    }

    #createTaskModal.active{
        position:fixed !important;
        inset:0 !important;
        z-index:1060 !important;
        width:100vw !important;
        height:100vh !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        padding:10px !important;
        overflow:hidden !important;
    }

    .create-modal-header,
    .tms-create-header,
    .tms-edit-header{
        display:flex !important;
        align-items:flex-start !important;
        justify-content:space-between !important;
        gap:12px !important;
        padding:18px 16px !important;
        flex-wrap:wrap !important;
    }

    .create-header-left,
    .tms-edit-header-left,
    .tms-edit-title-wrap{
        width:calc(100% - 52px) !important;
        flex:1 1 calc(100% - 52px) !important;
        display:flex !important;
        align-items:flex-start !important;
        gap:12px !important;
        min-width:0 !important;
    }

    .create-header-title-wrap,
    .tms-edit-header-title{
        flex:1 1 auto !important;
        min-width:0 !important;
    }

    .create-header-icon,
    .tms-edit-icon,
    .tms-edit-header-icon{
        width:46px !important;
        height:46px !important;
        min-width:46px !important;
        flex:0 0 46px !important;
        border-radius:14px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
    }

    .create-header-icon i,
    .tms-edit-icon i,
    .tms-edit-header-icon i{
        font-size:16px !important;
        margin:0 !important;
    }

    .create-header-title,
    .tms-edit-title,
    .tms-edit-header-title h4,
    .tms-edit-header-title h5{
        font-size:20px !important;
        line-height:1.25 !important;
        margin:0 !important;
        white-space:normal !important;
        word-break:normal !important;
        overflow-wrap:normal !important;
    }

    .create-header-subtitle,
    .tms-edit-subtitle,
    .tms-edit-header-title p{
        font-size:13px !important;
        line-height:1.45 !important;
        margin:4px 0 0 !important;
        white-space:normal !important;
        word-break:normal !important;
        overflow-wrap:normal !important;
        max-width:100% !important;
    }

    .tms-edit-header-actions{
        width:100% !important;
        display:flex !important;
        align-items:center !important;
        justify-content:space-between !important;
        gap:8px !important;
        flex-wrap:nowrap !important;
    }

    .tms-last-history-btn{
        max-width:calc(100% - 48px) !important;
        height:36px !important;
        padding:0 12px !important;
        font-size:12px !important;
        white-space:nowrap !important;
        border-radius:12px !important;
    }

    .tms-edit-close,
    .tms-modal-close-btn,
    button[data-bs-dismiss="modal"]{
        width:38px !important;
        height:38px !important;
        min-width:38px !important;
        flex:0 0 38px !important;
        padding:0 !important;
        border-radius:12px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
    }

    .modal-body,
    .tms-edit-body{
        max-height:calc(100vh - 210px) !important;
        padding:14px !important;
        overflow-y:auto !important;
        overflow-x:hidden !important;
    }

    .modal-footer,
    .tms-edit-footer{
        position:sticky !important;
        bottom:0 !important;
        background:#ffffff !important;
        display:flex !important;
        gap:10px !important;
        padding:12px 14px !important;
        z-index:5 !important;
        flex-wrap:wrap !important;
    }

    .modal-footer .btn,
    .tms-edit-footer .btn,
    .cancel-btn,
    .create-task-btn,
    .update-task-btn{
        flex:1 1 0 !important;
        min-width:0 !important;
        height:46px !important;
        border-radius:14px !important;
        font-size:13px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        gap:6px !important;
        white-space:normal !important;
        text-align:center !important;
    }

    .comment-tabs,
    .tms-task-tabs{
        overflow-x:auto !important;
        flex-wrap:nowrap !important;
        white-space:nowrap !important;
        -webkit-overflow-scrolling:touch !important;
    }
}

@media (max-width:380px){

    .create-header-title,
    .tms-edit-title,
    .tms-edit-header-title h4,
    .tms-edit-header-title h5{
        font-size:18px !important;
    }

    .create-header-subtitle,
    .tms-edit-subtitle,
    .tms-edit-header-title p{
        font-size:12px !important;
    }

    .modal-footer,
    .tms-edit-footer{
        flex-direction:column !important;
    }

    .modal-footer .btn,
    .tms-edit-footer .btn{
        width:100% !important;
    }
}

/* =====================================================
   COMMENTS / REPLIES / HISTORY RESPONSIVE
===================================================== */

@media (max-width:767px){

    .jira-comment-card,
    .jira-reply-card,
    .history-card{
        width:100% !important;
        margin-left:0 !important;
        padding:12px !important;
        gap:10px !important;
    }

    .jira-comment-header,
    .jira-reply-header{
        display:flex !important;
        flex-direction:column !important;
        align-items:flex-start !important;
        gap:6px !important;
    }

    .jira-comment-text,
    .jira-reply-text,
    .history-comment{
        width:100% !important;
        overflow-wrap:anywhere !important;
        word-break:normal !important;
        font-size:13px !important;
        line-height:1.45 !important;
    }

    .comment-actions{
        width:100% !important;
        display:flex !important;
        flex-wrap:wrap !important;
        gap:6px !important;
    }

    .reply-box,
    .comment-input-box,
    .tms-comment-box{
        width:100% !important;
    }

    .reply-box textarea,
    .comment-input-box textarea,
    .tms-comment-box textarea{
        width:100% !important;
        min-height:90px !important;
    }

    .mention-dropdown{
        max-width:calc(100vw - 32px) !important;
    }
}

/* =====================================================
   ATTACHMENTS RESPONSIVE
===================================================== */

@media (max-width:767px){

    .tms-attachment-row{
        flex-direction:column !important;
        align-items:flex-start !important;
        gap:12px !important;
    }

    .tms-attachment-left{
        width:100% !important;
        min-width:0 !important;
    }

    .tms-attachment-info{
        min-width:0 !important;
        width:calc(100% - 62px) !important;
    }

    .tms-attachment-name{
        overflow:hidden !important;
        text-overflow:ellipsis !important;
        white-space:nowrap !important;
        max-width:100% !important;
    }

    .tms-attachment-actions{
        width:100% !important;
        justify-content:flex-end !important;
    }

    .file-upload-label{
        flex-direction:column !important;
        align-items:flex-start !important;
        gap:12px !important;
    }

    .file-upload-right{
        align-self:flex-end !important;
    }
}

/* =====================================================
   SUBTASK RESPONSIVE
===================================================== */

@media (max-width:767px){

    .subtask-compact-header{
        flex-direction:column !important;
        align-items:flex-start !important;
    }

    .subtask-compact-right{
        width:100% !important;
        justify-content:flex-start !important;
        flex-wrap:wrap !important;
    }

    .subtask-save-btn{
        width:100% !important;
    }

    .tms-inner-tab-header{
        flex-direction:column !important;
        align-items:flex-start !important;
        gap:12px !important;
    }

    .tms-add-subtask-btn{
        width:100% !important;
        justify-content:center !important;
    }
}

/* =====================================================
   SEARCH RESULTS PAGE RESPONSIVE
===================================================== */

@media (max-width:992px){

    .tms-search-hero{
        flex-direction:column !important;
    }

    .tms-search-summary{
        grid-template-columns:repeat(2,1fr) !important;
    }

    .tms-search-layout{
        grid-template-columns:1fr !important;
    }

    .tms-search-sidebar{
        display:flex !important;
        gap:8px !important;
        overflow-x:auto !important;
        -webkit-overflow-scrolling:touch !important;
    }

    .tms-filter-title{
        display:none !important;
    }

    .tms-filter-btn{
        white-space:nowrap !important;
        width:auto !important;
        margin-bottom:0 !important;
    }
}

@media (max-width:767px){

    .tms-search-page{
        padding:6px 0 24px !important;
    }

    .tms-search-hero{
        padding:18px !important;
        border-radius:20px !important;
    }

    .tms-search-hero h2{
        font-size:24px !important;
    }

    .tms-search-box-large{
        width:100% !important;
        height:auto !important;
        min-height:52px !important;
        flex-wrap:wrap !important;
    }

    .tms-search-box-large button{
        width:100% !important;
    }

    .tms-search-summary{
        grid-template-columns:1fr !important;
    }

    .tms-results-header{
        flex-direction:column !important;
        align-items:flex-start !important;
    }

    .tms-back-board-btn{
        width:100% !important;
        justify-content:center !important;
    }

    .tms-results-list{
        max-height:none !important;
        overflow:visible !important;
    }

    .tms-result-card{
        flex-direction:column !important;
    }

    .tms-result-right{
        justify-content:flex-end !important;
        flex-wrap:wrap !important;
    }

    .tms-result-title{
        max-width:260px !important;
        white-space:normal !important;
    }
}

/* =====================================================
   PROFILE PAGE RESPONSIVE
===================================================== */

@media (max-width:991px){

    .profile-page,
    .profile-container,
    .profile-card,
    .app-profile,
    .card{
        max-width:100% !important;
    }

    .profile-info-row,
    .profile-details-row{
        flex-wrap:wrap !important;
    }
}

@media (max-width:767px){

    .profile-page,
    .profile-container{
        padding:12px !important;
    }

    .profile-card,
    .app-profile .card{
        border-radius:18px !important;
        overflow:hidden !important;
    }

    .profile-header,
    .profile-top-section{
        flex-direction:column !important;
        align-items:flex-start !important;
        gap:12px !important;
    }

    .profile-name,
    .profile-title{
        font-size:24px !important;
        line-height:1.25 !important;
        word-break:normal !important;
    }

    .profile-info-row,
    .profile-details-row,
    .profile-stat-row{
        display:grid !important;
        grid-template-columns:1fr !important;
        gap:12px !important;
    }
}

/* =====================================================
   MY TASKS PAGE RESPONSIVE
===================================================== */

@media (max-width:991px){

    .mytasks-wrapper,
    .my-tasks-wrapper,
    .tasks-dashboard{
        max-width:100% !important;
        overflow:hidden !important;
    }

    .task-status-grid,
    .mytask-status-grid,
    .status-card-grid{
        display:grid !important;
        grid-template-columns:repeat(2,1fr) !important;
        gap:14px !important;
    }
}

@media (max-width:767px){

    .task-status-grid,
    .mytask-status-grid,
    .status-card-grid{
        grid-template-columns:1fr !important;
    }

    .mytask-card,
    .status-card{
        width:100% !important;
        min-width:0 !important;
    }
}

/* =====================================================
   CHANGE PASSWORD PAGE RESPONSIVE
===================================================== */


@media (max-width:767px){

    .change-password-card,
    .change-password-wrapper,
    .password-card{
        width:100% !important;
        max-width:100% !important;
        border-radius:18px !important;
        padding:18px !important;
    }

    .change-password-card h2,
    .change-password-card h4,
    .password-card h2,
    .password-card h4{
        font-size:22px !important;
        line-height:1.25 !important;
        text-align:center !important;
    }

    .change-password-card .input-group,
    .password-card .input-group{
        width:100% !important;
    }

    .change-password-card .form-control,
    .password-card .form-control{
        min-width:0 !important;
        width:100% !important;
    }

    #passwordRules,
    .password-rules{
        padding-left:18px !important;
        font-size:13px !important;
        line-height:1.45 !important;
    }
}

/* =====================================================
   AUTH PAGES RESPONSIVE
   Login / Register / Forgot / OTP / Reset / Success
===================================================== */

@media (max-width:767px){

    .login-auth-page,
    .forgot-auth-page,
    .otp-auth-page,
    .success-auth-page,
    .register-auth-page{
        min-height:100vh !important;
        padding:18px 14px !important;
        align-items:flex-start !important;
        padding-top:36px !important;
    }

    .login-card,
    .forgot-card,
    .otp-card,
    .success-card,
    .register-box,
    .authincation-content{
        width:100% !important;
        max-width:100% !important;
        border-radius:22px !important;
    }

    .login-form-card,
    .forgot-card,
    .otp-card,
    .success-card,
    .register-form-card{
        padding:28px 18px !important;
    }

    .login-logo,
    .forgot-logo,
    .otp-logo,
    .success-logo,
    .register-logo{
        height:70px !important;
        max-width:100% !important;
        object-fit:contain !important;
    }

    .login-title,
    .forgot-title,
    .otp-title,
    .success-title,
    .register-title{
        font-size:24px !important;
        line-height:1.25 !important;
    }

    .login-subtitle,
    .forgot-subtitle,
    .otp-subtitle,
    .success-subtitle{
        font-size:13px !important;
    }

    .login-extra-row{
        flex-direction:column !important;
        align-items:flex-start !important;
        gap:10px !important;
    }

    .login-submit-btn,
    .forgot-submit-btn,
    .otp-submit-btn,
    .success-action-btn,
    .register-submit-btn{
        height:48px !important;
        width:100% !important;
    }

    .register-layout{
        grid-template-columns:1fr !important;
    }

    .register-info-panel{
        display:none !important;
    }

    .otp-input-group{
        gap:8px !important;
    }

    .otp-box{
        width:42px !important;
        height:48px !important;
        border-radius:12px !important;
        font-size:20px !important;
    }
}

@media (max-width:380px){

    .login-form-card,
    .forgot-card,
    .otp-card,
    .success-card,
    .register-form-card{
        padding:24px 14px !important;
    }

    .login-logo,
    .forgot-logo,
    .otp-logo,
    .success-logo,
    .register-logo{
        height:64px !important;
    }

    .login-title,
    .forgot-title,
    .otp-title,
    .success-title,
    .register-title{
        font-size:21px !important;
    }

    .otp-input-group{
        gap:6px !important;
    }

    .otp-box{
        width:38px !important;
        height:46px !important;
    }
}

/* =====================================================
   ACTIVITY HISTORY POPUP RESPONSIVE
===================================================== */

@media (max-width:767px){

    .tms-activity-popup{
        padding:10px !important;
    }

    .tms-activity-box{
        width:100% !important;
        max-width:100% !important;
        max-height:92vh !important;
        border-radius:20px !important;
    }

    .tms-activity-header{
        padding:18px !important;
    }

    .tms-activity-header h5{
        font-size:18px !important;
    }

    .tms-activity-toolbar{
        padding:12px 18px !important;
        overflow-x:auto !important;
    }

    .tms-activity-list{
        padding:14px 18px 18px !important;
        max-height:62vh !important;
    }

    .tms-activity-card{
        padding:14px !important;
        gap:12px !important;
    }

    .tms-activity-values{
        grid-template-columns:1fr !important;
    }
}
/* =====================================================
   FINAL SEARCH FULL WIDTH FORCE FIX
   Put this at the very bottom of tmsResponsiveFix.css
===================================================== */

@media (max-width:1199px){

    .header-right{
        width:100% !important;
        max-width:100% !important;
        height:44px !important;
        display:grid !important;
        grid-template-columns:minmax(0, 1fr) 42px !important;
        grid-template-rows:44px !important;
        column-gap:8px !important;
        align-items:center !important;
        justify-content:stretch !important;
        margin:0 !important;
        padding:0 !important;
        overflow:visible !important;
    }

    .header-right > li{
        margin:0 !important;
        padding:0 !important;
        min-width:0 !important;
        list-style:none !important;
    }

    .header-right > li:not(:first-child):not(.tms-mobile-more-item){
        display:none !important;
    }

    .header-right > li:first-child{
        grid-column:1 !important;
        grid-row:1 !important;
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
        height:44px !important;
        display:grid !important;
        grid-template-columns:minmax(0, 1fr) auto !important;
        grid-template-rows:44px !important;
        column-gap:8px !important;
        align-items:center !important;
        justify-content:stretch !important;
        margin:0 !important;
        padding:0 !important;
        overflow:visible !important;
    }

    .header-right > li:first-child .search-wrapper{
        grid-column:1 !important;
        grid-row:1 !important;
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
        height:42px !important;
        justify-self:stretch !important;
        align-self:center !important;
        margin:0 !important;
        padding:0 !important;
    }

    .header-right > li:first-child #taskSearch,
    .header-right > li:first-child .search-wrapper input{
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
        height:42px !important;
    }

    .header-right > li:first-child #openCreateModal,
    .header-right > li:first-child .create-btn{
        grid-column:2 !important;
        grid-row:1 !important;
        width:auto !important;
        min-width:72px !important;
        height:42px !important;
        justify-self:end !important;
        align-self:center !important;
        margin:0 !important;
        flex:none !important;
    }

    .tms-mobile-more-item{
        grid-column:2 !important;
        grid-row:1 !important;
        width:42px !important;
        min-width:42px !important;
        height:42px !important;
        justify-self:end !important;
        align-self:center !important;
        margin:0 !important;
        padding:0 !important;
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
    }
}

@media (max-width:420px){

    .header-right{
        grid-template-columns:minmax(0, 1fr) 40px !important;
        column-gap:7px !important;
    }

    .header-right > li:first-child{
        grid-template-columns:minmax(0, 1fr) 68px !important;
        column-gap:7px !important;
    }

    .header-right > li:first-child #openCreateModal,
    .header-right > li:first-child .create-btn{
        min-width:68px !important;
        width:68px !important;
        height:40px !important;
        font-size:11px !important;
        padding:0 8px !important;
    }

    .header-right > li:first-child .search-wrapper,
    .header-right > li:first-child #taskSearch,
    .header-right > li:first-child .search-wrapper input{
        height:40px !important;
    }

    .tms-mobile-more-item,
    .tms-mobile-more-btn{
        width:40px !important;
        min-width:40px !important;
        height:40px !important;
    }
}
@media (max-width: 1199px){

    .nav-control{
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        visibility:visible !important;
        opacity:1 !important;
    }

    .hamburger{
        display:flex !important;
        flex-direction:column !important;
        justify-content:center !important;
        gap:4px !important;
        cursor:pointer !important;
        visibility:visible !important;
        opacity:1 !important;
    }

    .hamburger .line{
        width:22px !important;
        height:2px !important;
        background:#111827 !important;
        display:block !important;
        border-radius:10px;
    }

}
@media (min-width:768px) and (max-width:820px){

    .nav-control{
        display:flex !important;
        visibility:visible !important;
        opacity:1 !important;
        width:42px !important;
        min-width:42px !important;
    }

    .nav-control .hamburger{
        display:flex !important;
        flex-direction:column !important;
        gap:4px !important;
    }

    .nav-control .hamburger .line{
        display:block !important;
        width:22px !important;
        height:2px !important;
        background:#334155 !important;
        border-radius:10px !important;
    }

    .header-content{
        display:flex !important;
        align-items:center !important;
    }
}
@media (max-width:991px){

    .profile-page,
    .profile-page .container-fluid,
    .profile-banner1,
    .banner-content1,
    .banner-left1,
    .task-chart-card,
    .action-buttons-row,
    .action-card{
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
        overflow-x:hidden !important;
        box-sizing:border-box !important;
    }

    .profile-page{
        margin:0 !important;
        padding:12px !important;
        border-radius:0 !important;
        min-height:auto !important;
        overflow-y:visible !important;
    }

    .content-body{
        overflow-y:visible !important;
        min-height:100vh !important;
    }
}
@media(max-width:767px){

    .profile-edit-modal{
        align-items:flex-end !important;
        padding:0 !important;
    }

    .profile-edit-box{
        width:100% !important;
        max-height:92vh !important;
        border-radius:24px 24px 0 0 !important;
        overflow-y:auto !important;
    }

    .profile-edit-header{
        padding:18px !important;
    }

    .profile-edit-body{
        padding:18px !important;
    }

    .profile-edit-grid{
        grid-template-columns:1fr !important;
        gap:14px !important;
    }

    .profile-edit-footer{
        padding:14px 18px !important;
        position:sticky !important;
        bottom:0 !important;
        background:#ffffff !important;
    }

    .profile-cancel-btn,
    .profile-save-btn{
        flex:1 !important;
        justify-content:center !important;
    }
}
.issue-type-badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    width:max-content;
    padding:5px 10px;
    margin:6px 0 8px;
    border-radius:999px;
    font-size:11px;
    font-weight:800;
    letter-spacing:.2px;
    line-height:1;
}

.issue-type-badge i{
    font-size:11px;
}

.issue-task{
    background:#eef6ff;
    color:#2563eb;
    border:1px solid #bfdbfe;
}

.issue-bug{
    background:#fff1f2;
    color:#dc2626;
    border:1px solid #fecdd3;
}
#editTaskModal #attachmentContainer {
    width: 100%;
}

#editTaskModal .tms-attachment-row {
    width: 100%;
    max-width: 100%;
}

#editTaskModal .tms-attachment-left {
    flex: 1;
    min-width: 0;
}

#editTaskModal .tms-attachment-actions {
    flex-shrink: 0;
}

@media(max-width:991px){

    #editTaskModal #attachmentContainer{
        grid-template-columns:1fr !important;
    }
}

@media(max-width:575px){

    #editTaskModal .tms-attachment-row{
        align-items:flex-start !important;
        flex-direction:column !important;
    }

    #editTaskModal .tms-attachment-left{
        width:100% !important;
    }

    #editTaskModal .tms-attachment-actions{
        width:100% !important;
        justify-content:flex-end !important;
    }
}