@media (max-width: 801px) {
    .m-bg-none {
        background: none !important;
    }

    .user-left-container {
        width: 15%;
    }

    .side-top-bar .bi-arrow-left {
        -webkit-text-stroke: 2px;
    }

    .user-container {
        height: 12%;
    }

    .unit-position {
        font-size: small;
    }

    .icon-item-container {
        /* height: 10%; */
        padding: 3%;
    }
    /* Media query for screens with a maximum width of 767 pixels (typical mobile devices) */
    .sender-pp-container {
        width: 25%;
        padding: 3%;
    }

    .sender-pp {
        width: 50px;
        height: 50px;
    }

    .max-width-10vw {
        max-width: 10vw;
        width: 100%;
    }

    .notification-pop {
        margin-right: 33vw;
        margin-bottom: 5vh;
    }

    .mobile-screen {
        display: flex !important;
    }

    .center-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .big-screen {
        display: none !important;
        width: 0;
        height: 0;
        margin: 0;
        padding: 0;
    }

    .mobile-content {
        display: flex;
        background-color: rgba(255, 0, 0, 0) !important;
        width: 100vw;
        height: 100vh;
        justify-content: center;
        align-items: center;
    }

    .mobile-content-container {
        display: flex;
        background-color: rgb(255, 134, 134) !important;
        margin-top: 10vh;
        width: 95%;
        height: fit-content;
        flex-direction: column;
    }

    .mobile-top-bar {
        display: flex;
        position: fixed;
        height: 8vh;
        width: 100vw;
        background-color: var(--background-level-3) !important;
        top: 0;
        left: 0;
        z-index: 1000;
        box-shadow: 3px 4px 15px 0px rgba(0, 0, 0, 0.25);
    }

    .side-top-bar {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 15%;
        height: 100%;
    }

    .side-top-bar:hover {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 15%;
        height: 100%;
        background-color: #c7c7c7;
    }

    .middle-top-bar {
        display: flex;
        justify-content: center;
        text-align: center;
        align-items: center;
        width: 70%;
        height: 100%;
    }

    .main-wrapper {
        display: flex;
        width: 100vw;
        height: 100vh;
        justify-content: center;
        align-items: center;
    }

    .main-content-wrapper {
        display: flex;
        flex-direction: column;
        margin-left: 0vw;
        width: 100%;
        height: 100%;
    }

    .content-wrapper {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .main-content {
        display: flex;
        position: relative;
        flex-direction: column;
        align-items: center;
        margin-top: 8vh;
        width: 100%;
        min-height: 100%;
        height: fit-content;
        /* padding: 2%; */
        /* padding-top: 3%; */
        border-radius: 0px;
        filter: none;
        background-color: var(--background-level-2);
        overflow-x: hidden;
    }

    .main-content-container {
        margin-bottom: 10vh;
        width: 100%;
        height: fit-content;
        justify-content: center;
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
        /* padding: 1%; */
    }

    .floating-button {
        position: fixed;
        bottom: 15vh;
        right: 5vw;
        z-index: 1000; /* Ensure the button appears on top of other elements */
    }

    .card-main-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1%;
        background-color: rgba(0, 128, 0, 0);
        flex-wrap: wrap;
        width: 100%;
    }

    .card-main-container a {
        text-decoration: none;
        color: #305270;
    }

    .card-main-container h5 {
        font-size: 1.2rem;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
    }

    .card-custom, .device-card {
        display: flex;
        height: 15vh;
        padding: 4%;
        width: 95%;
        margin-right: 0;
        margin-bottom: 5%;
    }

    .card-custom:hover, .device-card:hover {
        color: rgb(255, 255, 255) !important;
        background-color: var(--golden-solid) !important;
    }

    .card-icon {
        height: 90%;
        width: 23%;
        background-color: rgba(255, 0, 0, 0);
        display: flex;
        justify-content: center;
        align-items: flex-start;
        align-self: center;
    }

    .card-main-content {
        margin-left: 2%;
    }

    .alertx-container {
        position: fixed;
        top: 5vh;
        bottom: auto;
        right: 5vw;
        z-index: 3000;
    }

    .alertx {
        min-height: 30px;
        width: 90vw;
    }

    .alertx-title {
        font-size: 1.2rem;
        font-weight: 700;
    }

    .alertx:hover {
        transform: scale(1.05);
    }

    .super-spacer {
        display: flex;
        height: 50vh;
        width: 100vw;
    }
}

@media (max-width: 767.98px) {
    .card {
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .container-fluid {
        margin: 0 !important;
        padding: 0 !important;
    }

    .dataTables_filter {
        text-align: center !important;
        float: none !important;
        width: 100%;
    }
    .dataTables_filter label {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .dataTables_filter input {
        margin-left: 0 !important;
        width: 100%;
        max-width: 280px;
    }
}

/* ══════════════════════════════════════
   MOBILE DASHBOARD LAYOUT
   (mirrors marketing project dashboard.css)
   ══════════════════════════════════════ */
@media (max-width: 801px) {


    .top-layout {
        display: flex;
        flex-direction: column;
        position: relative;
        overflow: hidden;
        width: 100%;
        height: 30vh;
        border-radius: 0px 0px 30px 30px;
        background: var(--golden-gradient);
        box-shadow: 3px 4px 15px 0px rgba(0, 0, 0, 0.25);
    }

    .top-layout .b-big-img {
        position: absolute;
        opacity: 0.2;
        z-index: 1;
        width: 100%;
    }

    .top-title-bar {
        z-index: 1000;
        display: flex;
        width: 100%;
        height: 15%;
        padding: 5%;
    }

    .top-title {
        color: #fff;
        font-size: 1.2rem;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
    }

    .pp-dash-container {
        display: flex;
        z-index: 1000;
        align-items: center;
        margin-top: 2%;
        height: 50%;
        width: 100%;
        padding: 5%;
    }

    .profile-photo-dashboard {
        aspect-ratio: 1 / 1;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
    }

    .profile-photo-dashboard img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .dashboard-text {
        display: flex;
        color: white;
        flex-direction: column;
        margin-left: 3vw;
        margin-top: -2vh;
    }

    .dashboard-hello {
        color: white !important;
        font-size: 1rem;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }

    .dashboard-name {
        color: #fff;
        font-size: 1.15rem;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
    }



    .layered-layout-container {
        margin-top: -10vh;
        display: flex;
        z-index: 1000;
        width: 100%;
        height: auto;
        justify-content: center;
        align-items: flex-start;
    }

    .layered-layout {
        z-index: 1000 !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 95%;
        height: auto;
        border-radius: 16px;
        background: var(--background-level-3);
        box-shadow: 3px 4px 8px 0px rgba(0, 0, 0, 0.212);
    }

    .toolbox-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(4rem, 1fr));
        height: auto !important;
        width: 100%;
        padding: 5% 3%;
        padding-bottom: 10vh;
        row-gap: 10%;
        column-gap: 2%;
        margin: 0;
        justify-items: center;
    }

    .tool-item-icon {
        width: 65px !important;
        height: 65px !important;
        background: black !important;
        border-radius: 50% !important;
        color: white !important;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.25rem !important;
    }

    .tool-item-icon span,
    .tool-item-icon i {
        font-size: 1.4rem !important;
    }

    .tool-item-icon:hover {
        background-color: var(--golden-solid) !important;
        color: white;
    }

    .tool-item-text {
        width: 100%;
        height: auto;
        margin-top: 8% !important;
        display: flex;
        overflow: visible;
        align-items: flex-start;
        justify-content: center;
        font-size: 0.7rem;
        opacity: 70%;
        text-decoration: none;
        text-align: center;
    }

    .tool-item-icon i {
        margin-top: 0.8vh;
        color: white !important;
    }

    .presence-container {
        width: 100%;
        height: auto;
        min-height: 40%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-top: 3%;
    }

    .presence-layer {
        position: relative;
        width: 95%;
        flex: 1;
        padding: 3%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        border-radius: 16px;
        background: var(--background-level-3);
        margin: 0 auto;
    }

    .presence-title {
        width: 95%;
        display: flex;
        font-weight: 700;
        font-size: 0.9rem;
        align-items: center;
    }

    .bottom-content-container {
        padding: 14px;
        gap: 12px;
        border-bottom: 1px solid rgba(128, 128, 128, 0.2);
        text-decoration: none;
        color: inherit;
        display: flex;
    }

    .bottom-content-container:last-child {
        border-bottom: none;
    }

    .bottom-more-shadow {
        content: "";
        position: absolute;
        bottom: 0;
        border-radius: 6px;
        left: 0;
        width: 100%;
        height: 70px;
        background: linear-gradient(to top, rgba(3, 0, 0, 0.315), rgba(255, 255, 255, 0));
        overflow: hidden;
    }

    .presence-layer .bg-content-layer {
        padding: 0;
        margin-top: 20px;
    }

    .presence-layer .material-symbols-outlined {
        font-size: 1.8rem !important;
    }
}
