html {
    font-size: 14px;
    font-family: 'Nunito Sans', sans-serif;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
        min-height: 100%;
        font-family: 'Nunito Sans', sans-serif;
    }
}

html {
    position: relative;
    min-height: 100%;
    font-family: 'Nunito Sans', sans-serif;
}

*:not(.fa-solid):not(.fa):not(.e-icons) {
    font-family: 'Nunito Sans';
}

.btn {
    display: inline-block; /* Ensures the button looks clickable */
    padding: 5px 10px; /* Adds padding for better appearance */
    text-align: center; /* Centers the text inside the button */
    text-decoration: none; /* Removes underline from links */
    color: white; /* Sets the text color */
    border-radius: 5px; /* Adds rounded corners */
    font-size: 15px; /* Adjusts the font size */
}

.btn-primary {
    background-color: #ef7b44;
    border-color:inherit;
}
    .btn-primary:hover {
        cursor: pointer;
        background-color: #ef7b44;
        color: white;
        border-color: #ef7b44;
    }

.btn-outline-primary {
    background-color: transparent;
    color: #ef7b44;
    border-color: #ef7b44;
}

    .btn-outline-primary:hover {
        cursor: pointer;
        background-color: #ef7b44;
        color: white;
        border-color: #ef7b44;
    }

.btn-primary:active,
.btn-primary:focus {
    background-color: #ef7b44;
    border-color: inherit;
    outline: none; /* Optional: Remove focus outline */
}

body {
    margin-bottom: 40px;
    background-color: white;
    color: black;
    overflow: auto;
}

.e-bigger {
    /*font-size: x-large;*/
}

@media (min-width: 768px) {
    .main-content {
        margin-left: 110px;
        margin-right: 10px;
    }
}


.main-content {
    margin-top: 10px;
    margin-left: 110px;
    margin-right: 10px;
    overflow-y: initial;
    /*height: 100vh;*/
    object-fit: scale-down;
}


/*BreadCrumb*/
.e-breadcrumb a, .e-breadcrumb a:hover {
    text-decoration: none !important;
    color: black !important;
    background-color: inherit;
}

/*Button*/
.btn:focus, .btn:active {
    outline: none !important;
    box-shadow: none;
}

/*Hyperlink*/
.no-a-decoration, .no-a-decoration:hover {
    text-decoration: none;
    color: black;
}

/*Logo*/
.logo-wrapper {
    height: 60px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.app-logo {
    padding: 10px 10px;
    width: 80% !important;
    height: 80% !important;
}

/*Menu*/
#menu {
    width: 100% !important;
    background-color: white;
    overflow: hidden;
}

    #menu .e-menu-item:not(.e-separator) {
        height: 50px;
        border-radius: 4px;
    }

    #menu .e-menu-item {
        box-sizing: border-box;
    }

        #menu .e-menu-item a {
            width: 100%;
            color: black;
            font-weight: 300;
            padding: 7px 5px;
            box-sizing: border-box;
        }

    #menu .e-anchor-wrap {
        display: inline-block;
    }

    #menu .e-menu-item .e-anchor-wrap span.e-menu-icon {
        /*color: rgb(171, 163, 152);*/
        color: black;
    }

    #menu .e-menu-item.e-separator {
        border: none;
        margin: 5px 5px;
        text-transform: uppercase;
        font-weight: bold;
        font-size: 13px;
        color: #ef7b44;
    }

        #menu .e-menu-item.e-separator:not(:first-child) {
            margin-top: 35px;
        }

.pageTitle {
    color: black;
}

/*Navbar*/
nav.navbar {
    top: 0;
    right: 0;
    margin-inline-start: auto;
    background-color: inherit;
    position: fixed;
    /*margin-inline-start: 93%;*/
}

    nav.navbar i {
        border-radius: 50%;
        font-size: 1.2rem;
        cursor: pointer;
    }

        nav.navbar i:hover, nav.navbar img:hover, nav.navbar a:hover {
            cursor: pointer;
            background-color: #48545f14;
            transform: scale(1.1) translateZ(0px);
        }

nav.navbar {
    /*margin-left: 290px;*/
}

/*Profile Pic*/
img.profile-pic {
    width: fit-content;
    height: 45px;
    border-radius: 20%;
}

.profile-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    /*background-color: rgba(72, 84, 95, 0.12);*/
    background-color: inherit;
    padding: 16px 20px;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 10px;
}

    .profile-wrapper .titles {
        line-height: 1;
    }

.profilenav-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    /*background-color: rgba(72, 84, 95, 0.12);*/
    background-color: inherit;
    border-radius: 12px;
    position: relative;
}

    .profilenav-wrapper .titles {
        line-height: 1;
    }

/*SideBar*/
@media (max-width: 768px) {
    #sidebar {
        width: 100%;
        position: relative;
    }
}

#sidebar {
    background-color: white;
    padding: 10px 20px;
    overflow: auto;
    position: fixed;
}

    #sidebar .e-menu-wrapper {
        width: 100%;
        background-color: inherit;
    }

#sidebar-menu {
    padding: 10px;
    border-radius: 20%;
    font-size: 1.2rem;
    cursor: pointer;
}

    #sidebar-menu:hover {
        cursor: pointer;
        background-color: #48545f14;
        transform: scale(1.60) translateZ(0px);
    }

#sidebar.e-close {
    padding-left: 10px;
    padding-right: 10px;
    overflow: auto;
    overflow-x: hidden;
}

    #sidebar.e-close .app-logo {
        display: none;
    }

    #sidebar.e-close #sidebar-menu {
        margin-inline-end: 25%;
    }

#sidebar.e-close, .e-menu-icon {
    padding-left: 10px;
}

    #sidebar.e-close .e-anchor-wrap, #sidebar.e-close .e-menu-item.e-menu-caret-icon {
        font-size: 0px;
    }

    #sidebar.e-close .profile-wrapper .titles {
        display: none !important;
    }


    #sidebar.e-open .e-anchor-wrap,
    #sidebar.e-close .e-menu-icon, #sidebar.e-open .e-menu-icon {
        visibility: visible;
    }

#sidebar.e-open .profile-wrapper .titles, #sidebar.e-open .app-logo {
    display: flex;
}

#sidebar.e-sidebar.e-right.e-close {
    visibility: visible;
    transform: translateX(10%);
}

#sidebar.e-open #sidebar-toggler:before {
    content: '\f100'
}

#sidebar.e-close #sidebar-toggler:before {
    content: '\f1001'
}

/*Widget*/
.widget {
    border-radius: 1rem;
    background-color: #1a222b;
}

    .widget.summary > div:first-child {
        background-color: #222b33;
        padding: 1rem;
        border-top-left-radius: 1rem;
        border-bottom-left-radius: 1rem;
    }

        .widget.summary > div:first-child i {
            font-weight: bold;
        }

    .widget.income > div:first-child {
        color: #65da41;
    }

    .widget.expense > div:first-child {
        color: #ff4e48;
    }

    .widget.balance > div:first-child {
        color: #2aa1ff;
    }

    .widget.chart {
        padding: 5px;
    }

<style >
/* Chat container */
.chatContainer {
    width: 300px;
    max-height: 400px;
    background-color: #f4f4f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: fixed;
    bottom: 20px;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

/* Chat header */
.chatHeader {
    background-color: #4a76a8;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* Chat content area */
.chatContent {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    border-bottom: 1px solid #ddd;
}

.messagesList {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

    /* Message styling */
    .messagesList li {
        margin: 5px 0;
        padding: 8px 10px;
        border-radius: 4px;
        font-size: 14px;
    }

        .messagesList li:nth-child(odd) {
            background-color: #e0f7fa;
            color: #00796b;
        }

        .messagesList li:nth-child(even) {
            background-color: #dcedc8;
            color: #33691e;
            text-align: right;
        }

/* Chat footer input styles */
.chatFooter {
    display: flex;
    padding: 8px;
    gap: 5px;
    align-items: center;
    background-color: #f9f9f9;
}

.recipientInput, .userInput, .messageInput {
    width: 30%;
    padding: 8px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.messageInput {
    width: 40%;
}

.chatFooter button {
    background-color: #4a76a8;
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

    .chatFooter button:hover {
        background-color: #365980;
    }

.left-footer {
    position: fixed;
    bottom: 0;
    left: 0px;
    width: 100%;
    padding: 0px;
    background-color: #f4f4f9;
    text-align: start;
    border-top: 1px solid #ccc;
    margin-left: 101px;
}

#SCaseGrid .e-gridcontent {
    overflow-x: auto;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    html {
        font-size: 12px; /* Smaller font for smaller screens */
        font-family: 'Nunito Sans', sans-serif;
    }

    .main-content {
        margin-left: 10px;
        margin-right: 10px;
        margin-top: 5px;
    }

    /* Sidebar styling for mobile */
    #sidebar {
        width: 100%;
        position: relative;
        padding: 10px;
    }

    /* Chat container adjustments */
    .chatContainer {
        width: 90%; /* Full width for mobile */
        max-height: 60vh; /* Adjust height */
        margin: 0 auto;
        bottom: 10px;
    }

    .chatHeader, .chatFooter, .messagesList li {
        font-size: 12px; /* Smaller font in chat elements */
    }

    .recipientInput, .userInput, .messageInput {
        width: 60px; /* Smaller input widths */
        padding: 5px;
        font-size: 12px;
    }

    .chatFooter button {
        padding: 6px 8px;
        font-size: 12px;
    }

    /* Footer adjustments */
    .left-footer {
        margin-left: 0;
        padding: 8px;
        font-size: 12px;
    }

    /* Grid Mobile Layout Simulation */
    #SCaseGrid.e-grid {
        max-width: 360px; /* Max width to simulate a mobile screen */
        margin: auto;
        border: 16px solid #f4f4f4;
        border-radius: 36px;
        box-shadow: 0 0px 2px rgb(144, 144, 144), 0 0px 10px rgba(0, 0, 0, 0.16);
        overflow: hidden;
    }

    #SCaseGrid .e-grid-column[field="Id"],
    #SCaseGrid .e-grid-column[field="CreatedBy.FullName"] {
        display: none !important;
    }

    /* Responsive Styles for Better Mobile View */
    #SCaseGrid .e-headercell, #SCaseGrid .e-rowcell {
        padding: 8px;
        font-size: 14px;
    }

    #SCaseGrid .e-gridcontent {
        overflow-x: auto;
    }

    /* Adjust pager for mobile */
    #SCaseGrid .e-pager .e-mfirst,
    #SCaseGrid .e-pager .e-mlast,
    #SCaseGrid .e-pager .e-mprev,
    #SCaseGrid .e-pager .e-mnext {
        padding: 5px;
        font-size: 12px;
    }
}


/* Style for the overall comment section */
/*.comment-section {
    margin-top: 20px;
}*/

/* Style for individual comment cards */
/*.comment-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}*/

/* Header with author and date */
/*.comment-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: bold;
}

.comment-date {
    color: #777;
}*/

/* Body with comment content */
/*.comment-body {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

    .comment-body p {
        margin: 0;
    }*/

/* Footer with edit and delete options */
/*.comment-footer {
    font-size: 14px;
    color: #555;
}

    .comment-footer a {
        color: #007bff;
        text-decoration: none;
    }

        .comment-footer a:hover {
            text-decoration: underline;
        }*/

/* Add spacing between comment blocks */
/*.comment-footer {
    margin-top: 10px;
}*/

/* Style for the image files (display them inline) */
.comment-files {
    margin-top: 10px;
}

.comment-image {
    width: 100px;
    height: 100px;
    object-fit: cover; /* Ensures the image fits within the given size */
    margin-right: 10px;
}

.non-image-files {
    margin-top: 10px;
    display: flex;
    flex-direction: column; /* Ensures non-image files stack vertically */
}

    .non-image-files a {
        margin-bottom: 5px; /* Adds space between non-image file links */
    }

.comment-section {
    margin-top: 20px;
}

.comment-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: bold;
}

.comment-date {
    color: #777;
}

.comment-body {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

    .comment-body p {
        margin: 0;
    }

.comment-footer {
    font-size: 14px;
    color: #555;
}

    .comment-footer a {
        color: #007bff;
        text-decoration: none;
    }

        .comment-footer a:hover {
            text-decoration: underline;
        }

.comment-footer {
    margin-top: 10px;
}

.comment-text {
    white-space: pre-wrap; /* Makes sure line breaks and white spaces are preserved */
    word-wrap: break-word; /* Ensures long words break within the container */
}

.image-files {
    display: flex;
    flex-wrap: wrap; /* Makes the images wrap to new lines if necessary */
    gap: 10px; /* Adds some space between the images */
}

.scrollable-comments {
    max-height: 589px;
    overflow-y: auto;
    border: 1px solid #ddd; /* Optional: adds a border for better visibility */
    padding: 10px; /* Optional: adds some spacing */
    background-color: #f9f9f9; /* Optional: subtle background color */
    border-radius: 5px; /* Optional: rounded corners */
}

.scrollable-details-comments {
    max-height: 578px;
    overflow-y: auto;
    border: 1px solid #ddd; /* Optional: adds a border for better visibility */
    padding: 10px; /* Optional: adds some spacing */
    background-color: #f9f9f9; /* Optional: subtle background color */
    border-radius: 5px; /* Optional: rounded corners */
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1050;
}

    .loading-overlay p {
        margin-top: 10px;
        font-size: 1.25rem;
        color: #007bff;
    }