/* --- 1. Main Header Container Overrides --- */
.navbar.navbar-inverse.navbar-static-top {
  /* Mimic the .nav-bar container styles */
 /* background-color: white !important;*/
 background: linear-gradient(135deg, #64cd94 0%, #f8fcff 100%);
  border: none !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  min-height: 80px !important; /* Set height to 80px */
  margin-bottom: 0 !important;
  padding: 0 40px !important; /* Set padding-right: 40px; padding-left: 40px; */
  display: flex;
  align-items: center; /* align-items: center */
  justify-content: space-between; /* justify-content: space-between */
}

/* Ensure the .container respects the full flex layout */
.navbar-static-top > .container {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Hide the toggle button for desktop, as the header is now a single row */
.navbar-toggle {
    display: none !important;
}

/* --- 2. Logo/Branding Section (.portal-title) --- */
.navbar-header {
  /* Mimic .portal-title flex and font styles */
  display: flex !important;
  align-items: center !important;
  /* Use column-gap for spacing between logo/text */
  gap: 16px; 
  font-size: 24px !important;
  font-weight: 700 !important;
  color: rgb(26, 26, 46) !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Styling for the Logo/Branding Content inside 'Mobile Header' snippet */
.navbar-header img {
  height: 56px !important; /* Adjust if your image replaces the 'TM' icon */
  width: 56px !important;
  border-radius: 12px;
  /* Add shadow/background if using an image-based logo instead of the 'TM' div */
}

/* If you need to manually insert the 'TM' icon styling: */
/* You would need to add a custom element to your 'Mobile Header' snippet for this to work */
/*
.navbar-header .logo-icon {
    width: 56px; height: 56px; 
    background-image: linear-gradient(135deg, rgb(0, 102, 255) 0%, rgb(0, 82, 204) 100%); 
    border-radius: 12px; display: flex; align-items: center; justify-content: center; 
    font-weight: bold; color: white; font-size: 20px; 
    box-shadow: rgba(0, 102, 255, 0.2) 0px 4px 12px;
}
*/

/* --- 3. Navigation Links (Targeting .nav-links) --- */
#navbar {
    /* Ensure nav is visible and flows horizontally */
    float: right;
    display: block !important;
    height: auto !important;
    box-shadow: none !important;
}

.navbar-right.menu-bar > .weblinks.nav.navbar-nav {
  /* Set parent list to be a flex container */
  display: flex !important;
  align-items: center;
  gap: 0; /* Links manage their own spacing */
}

/* Base Link Styling to mimic the new default link style */
.navbar-inverse .navbar-nav > li > a {
  color: rgb(74, 85, 104) !important; /* Base color */
  font-weight: 500 !important; /* Base weight */
  font-size: 16px !important;
  padding: 12px 24px !important; /* Padding for the square button area */
  border-radius: 8px !important; /* Rounded corners */
  transition: all 0.3s ease !important;
  background-color: transparent !important; /* Remove Bootstrap default blue/gray background */
}

.navbar-inverse .navbar-nav > li > a:hover {
  /* Optional: Light hover effect */
  background-color: rgba(25, 164, 69, 0.05) !important; 
  color: #19a445 !important;
}

/* Active Link Styling to mimic the new active link style */
.navbar-inverse .navbar-nav > .weblink.active > a,
.navbar-inverse .navbar-nav > li > a[aria-current="page"],
.navbar-inverse .navbar-nav > .dropdown.open > .dropdown-toggle {
    /* Active color, background, and weight */
    color: rgb(1 1 2) !important; 
    font-weight: 600 !important;
    background-color: rgb(133 223 155) !important; /* Active background */
}

/* Remove dividers */
.divider-vertical {
  display: none !important;
}

/* --- 4. Dropdown Menu Overrides (for Profile/Sign Out) --- */

/* Style the dropdown container */
.dropdown-menu {
    /* Position and appearance */
    background-color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    min-width: 150px !important; /* Adjust width as needed */
}

/* Style the individual link items */
.dropdown-menu > li > a {
    /* Link appearance */
    padding: 10px 20px !important;
    color: rgb(74, 85, 104) !important;
    font-weight: 500 !important;
    transition: background-color 0.2s ease;
}

/* Style the hover state for links */
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background-color: rgb(225, 245, 230) !important; /* Light green background on hover */
    color: #19a445 !important; /* Green text on hover */
}

/* Style the divider line */
.dropdown-menu .divider {
    height: 1px !important;
    margin: 8px 0 !important;
    overflow: hidden;
    background-color: rgb(240, 240, 240) !important; /* Light gray divider */
    border-top: none !important;
}

/* Ensure caret (dropdown arrow) is the correct color */
.navbar-inverse .navbar-nav > li.dropdown > a .caret {
    border-top-color: #19a445 !important; /* Green caret */
    border-bottom-color: #19a445 !important;
}
/* --- 5. Remove Borders/Outlines on Focus/Hover --- */

.navbar-inverse .navbar-nav > li.dropdown > a {
    text-decoration: none !important; 
}
.nav-bar {
  display: none !important; /* Force override */
}

.page-title{
  font-size: 25px !important; 
}
.page-subtitle{
  padding-left: 35px !important;
  font-size: 14px !important;
}



/*Button Colour - GREEN THEME */
/* Apply consistent green theme to all your special buttons */
.btn.btn-default.btn-xs.aria-exp,
.addnote.btn.btn-primary,
.primary.btn.btn-primary,
.btn.btn-primary {
  background-color: #19a445; /* normal green */
  color: #fff;
  border-color: #19a445;
}

/* Hover / focus */
.btn.btn-default.btn-xs.aria-exp:hover,
.btn.btn-default.btn-xs.aria-exp:focus,
.addnote.btn.btn-primary:hover,
.addnote.btn.btn-primary:focus,
.primary.btn.btn-primary:hover,
.primary.btn.btn-primary:focus,
.btn.btn-primary:hover,
.btn.btn-primary:focus {
  background-color: #158a3a; /* hover green */
  border-color: #158a3a;
  color: #fff;
}

/* Active / clicked */
.btn.btn-default.btn-xs.aria-exp:active,
.btn.btn-default.btn-xs.aria-exp.active,
.addnote.btn.btn-primary:active,
.addnote.btn.btn-primary.active,
.primary.btn.btn-primary:active,
.primary.btn.btn-primary.active,
.btn.btn-primary:active,
.btn.btn-primary.active {
  background-color: #127332 !important; /* click/active green */
  border-color: #127332 !important;
  color: #fff !important;
  box-shadow: none;
}

/* Default + Cancel button - normal state */

/* Default / normal state */
.cancel.btn.btn-default,
.btn.btn-default,
.button2 {
    /* background-color: #fff !important;       white background */
    color: #19a445 !important;               /* green text */
    border: 1px solid #19a445 !important;    /* green border */
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent !important;
}



/* Hover / focus (solid green) */
.cancel.btn.btn-default:hover,
.cancel.btn.btn-default:focus,
.btn.btn-default:hover,
.btn.btn-default:focus,
.button2:hover,
.button2:focus,
.btn.button2:hover,
.btn.button2:focus {
    background-color: #19a445 !important;   /* green background */
    color: #fff !important;                 /* white text */
    border-color: #19a445 !important;
}

/* Active / clicked */
.cancel.btn.btn-default:active,
.cancel.btn.btn-default.active,
.btn.btn-default:active,
.btn.btn-default.active,
.button2:active,
.button2.active,
.btn.button2:active,
.btn.button2.active {
    background-color: #127332 !important; /* darker green when clicked */
    color: #fff !important;
    border-color: #127332 !important;
    box-shadow: none;
}




/* Table Styling Full Code*/
/* Table Container */
.view-grid.table-responsive {
    background: white;
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: visible;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    -webkit-overflow-scrolling: touch;
    width: 100% !important;
    max-width: 100% !important;
}

/* Custom Scrollbar */
.view-grid.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.view-grid.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.view-grid.table-responsive::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.view-grid.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Remove default Bootstrap table styles */
.view-grid.table-responsive table.table-striped tbody tr:nth-of-type(odd) {
    background: white !important;
}

/* Table Styling */
.view-grid.table-responsive table {
    width: 100% !important;
    min-width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
    background: white;
    table-layout: auto;
}

/* Table Headers */
.view-grid.table-responsive table thead th {
    background: #fafafa !important;
    border-bottom: 2px solid #e5e5e5 !important;
    border-top: none !important;
    padding: 14px 16px !important;
    text-align: left;
    font-weight: 600;
    color: #666 !important;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    vertical-align: middle;
}

.view-grid.table-responsive table thead th a {
    color: rgb(89 95 106) !important;
    text-decoration: none !important;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight:600;
    outline: none;
}

.view-grid.table-responsive table thead th a:hover {
    color: #333 !important;
    text-decoration: underline !important;
}

.view-grid.table-responsive table thead th a:active,
.view-grid.table-responsive table thead th a:focus {
    color: #222 !important;
    outline: none !important;
}

/* Table Rows */

.view-grid.table-responsive table tbody tr {
   background: white !important;
    border-bottom: 1px solid #e5e5e5;
    transition: all 0.2s ease;
    position: relative;
}

/* Row Hover Effect - Subtle lift without scale */
.view-grid.table-responsive table tbody tr:hover {
    background-color: white !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    z-index: 1;
}
/*
.view-grid.table-responsive table tbody tr {
    background: white !important;
    border-bottom: 1px solid #e5e5e5;
    transition: background-color 0.2s ease;
}
/*
.view-grid.table-responsive table tbody tr:hover {
    background: #f7fafc!important;
}
 */
/* Table Cells */
.view-grid.table-responsive table tbody td {
    padding: 18px 16px !important;
    vertical-align: middle !important;
    font-size: 14px;
    color: #333;
    border-top: none !important;
}

/* Case Title Column - First column with link */
.view-grid.table-responsive table tbody td:first-child a,
.view-grid.table-responsive table tbody td:nth-child(1) a {
    color: #19a445 !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 14px;
    outline: none;
}

.view-grid.table-responsive table tbody td:first-child a:hover,
.view-grid.table-responsive table tbody td:nth-child(1) a:hover {
    text-decoration: underline !important;
    color: #158a3a !important;
}

.view-grid.table-responsive table tbody td:first-child a:active,
.view-grid.table-responsive table tbody td:first-child a:focus {
    color: #127332 !important;
    outline: none !important;
}

/* Subject Column Styling (fix from Code 2) */
.view-grid.table-responsive table tbody td:nth-child(4) {
    color: #333 !important;
    font-weight: 400 !important;
}

.view-grid.table-responsive table tbody td:nth-child(4) a {
    color: #333 !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}

/* Customer Column Styling */
.view-grid.table-responsive table tbody td:nth-child(3) {
    color: #555;
    font-weight: 400;
}

/* Priority Column - Add badge styling */
.view-grid.table-responsive table tbody td:nth-child(4) {
    font-weight: 500;
}

.view-grid.table-responsive table tbody td:nth-child(4) span {
    background: #e1f5e6;
    color: #19a445;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
}

/* Status Column */
.view-grid.table-responsive table tbody td:nth-child(5) {
    color: #555;
    font-weight: 400;
}

/* Modified On / Created On Date Column */
.view-grid.table-responsive table tbody td:nth-child(6) {
    color: #555;
    white-space: nowrap;
}

/* Actions Column - Last column with button */
.view-grid.table-responsive table tbody td:last-child {
    text-align: right;
    padding-right: 20px !important;
}

.view-grid.table-responsive table tbody td:last-child button,
.view-grid.table-responsive table tbody td:last-child .btn,
.view-grid.table-responsive table tbody td:last-child a.btn {
    background: #19a445 !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 10px 14px !important;
    cursor: pointer;
    min-width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

.view-grid.table-responsive table tbody td:last-child button:hover,
.view-grid.table-responsive table tbody td:last-child .btn:hover,
.view-grid.table-responsive table tbody td:last-child a.btn:hover {
    background: #158a3a !important;
}

/* If the button has an icon/chevron */
.view-grid.table-responsive table tbody td:last-child button .glyphicon,
.view-grid.table-responsive table tbody td:last-child .btn .glyphicon {
    color: white;
    font-size: 16px;
}

/* Pagination at bottom */
.view-grid.table-responsive + .pagination,
.view-grid.table-responsive .pagination-wrapper,
.pagination {
    padding: 16px 0;
    display: flex;
    justify-content: flex-start;
    border-top: none;
    margin: 16px 0 0 0;
}

.pagination > li {
    display: inline-block;
    margin-right: 4px;
}

.pagination > li > a {
    padding: 8px 12px;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    /*border: 1px solid transparent;*/
    background: #f5f5f5;
    transition: all 0.2s ease;
    min-width: 36px;
    text-align: center;
}

.pagination > li > a:hover {
    background: #e5e5e5;
    color: #333;
}

.pagination > li.active > a {
    background: #19a445 !important;
    color: white !important;
    border-color: #19a445 !important;
}

.pagination > li.disabled > a {
    color: #ccc;
    cursor: not-allowed;
    background: #fafafa;
}

/* Remove extra spacing and borders */
.view-grid.table-responsive table thead tr {
    border-bottom: none;
}

/* Ensure no double borders */
.view-grid.table-responsive table tbody td {
    border-left: none !important;
    border-right: none !important;
}

.view-grid.table-responsive table thead th {
    border-left: none !important;
    border-right: none !important;
}

/* Responsive Design */
@media (max-width: 992px) {
    .view-grid.table-responsive table {
        font-size: 13px;
    }
    
    .view-grid.table-responsive table tbody td {
        padding: 14px 12px !important;
    }
    
    .view-grid.table-responsive table thead th {
        padding: 12px !important;
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .view-grid.table-responsive table {
        font-size: 12px;
    }
    
    .view-grid.table-responsive table tbody td {
        padding: 12px 8px !important;
    }
    
    .view-grid.table-responsive table thead th {
        padding: 10px 8px !important;
        font-size: 9px;
    }
}



/* Content Wrapping Title Description*/
/* More specific selector with higher specificity */
body .view-grid.table-responsive table tbody tr td:nth-child(1),
body .view-grid.table-responsive table tbody tr td:nth-child(4) {
    max-width: 200px !important;
  
    max-height: 100px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    white-space: normal !important;
    word-break: break-word !important;
    display: block !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

body .view-grid.table-responsive table tbody tr td:nth-child(1)::-webkit-scrollbar,
body .view-grid.table-responsive table tbody tr td:nth-child(4)::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
/* Ensure all table cells align properly */
body .view-grid.table-responsive table tbody tr td {
    vertical-align: top !important;
}
/* Home Screen Buttons */

/* Make btn.button2 default transparent */

footer .footer-bottom {
    background-color: #EDEDED !important;
}
/* Header alignment */
.navbar-collapse.collapse {
    margin-left: auto !important;
}

/* Modern Search Box - Compact Version */
.clear-search-compact {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    font-size: 16px;
    display: none;  /* Hidden by default */
    padding: 4px;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.clear-search-compact:hover {
    color: #19a445;
    background-color: #e1f5e6;
}
/* Create Case Button */
.btn.btn-primary.pull-right.action.create-action {
    border-radius: 5px;
    float: none !important;
    margin-left: 10px !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    white-space: nowrap !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Search and Create Case container - Parent wrapper */
.toolbar,
.view-toolbar,
div:has(> .input-group.view-search) {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
    margin-bottom: 15px !important;
    width: 100% !important;
}

/* Search input group */
.input-group.pull-left.view-search.entitylist-search,
.input-group.view-search {
    flex: 0 0 auto !important;
    max-width: 450px !important;
    width: auto !important;
    min-width: 200px !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    float: none !important;
    display: inline-flex !important;
    position: relative !important;
}

.input-group.pull-left.view-search.entitylist-search input,
.input-group.view-search input {
    flex: 1 1 auto !important;
    display: inline-block !important;
    width: 100% !important;
    min-width: 0 !important;
}

/* Search button inside input group */
.input-group-btn {
    display: inline-flex !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    width: auto !important;
}

.input-group-btn .btn {
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    width: auto !important;
}

/* Remove float from both elements */
.input-group.pull-left,
.btn.pull-right {
    float: none !important;
}

/* Keep button on the right for desktop */
@media screen and (min-width: 769px) {
    .btn.btn-primary.pull-right.action.create-action {
        float: none !important;
        width: auto !important;
        min-width: 130px !important;
        margin-bottom: 0 !important;
        margin-left: 15px !important;
        display: inline-block !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
    }
    
    /* Force horizontal layout */
    .toolbar,
    .view-toolbar,
    div:has(> .input-group.view-search) {
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 15px !important;
    }
    
    /* Ensure search and button are inline */
    .input-group.view-search,
    .btn.btn-primary.pull-right.action.create-action {
        display: inline-flex !important;
        vertical-align: middle !important;
    }
    
    /* Prevent search bar from growing too much */
    .input-group.view-search {
        flex-grow: 0 !important;
        flex-shrink: 1 !important;
        flex-basis: auto !important;
    }
    
    /* Ensure proper spacing */
    .input-group.view-search + .btn.btn-primary.pull-right.action.create-action {
        margin-left: 15px !important;
    }
}

/* Search Bar */
.input-group.pull-left.view-search.entitylist-search input::placeholder {
    color: gray !important;          /* standard gray */
    opacity: 1 !important;           /* ensure visibility */
}

.inner-stat-card:hover,
.stat-card.span-2:hover {
    box-shadow: 0 4px 16px rgba(25, 164, 69, 0.1);
    transform: translateY(-2px);
}

/* Hiding view dropdown */
ul.view-select.nav.nav-pills.pull-left {
  display: none !important;
}
 /* hide chat bot */
 .pva-embedded-web-chat-widget {
    display: none !important;
}
/* Hide Forgot password  */
a.btn.btn-default[href="/Account/Login/ForgotPassword"] {
    display: none;
}
   
 
 /* Register Tab hiding */
 
.nav-tabs>li {
    float: left;
    margin-bottom: -1px;
    display: none !important;
}


/* ========================================
   RESPONSIVE DESIGN - MOBILE & TABLET
   ======================================== */

/* Large Tablet (1024px and below) */
@media screen and (max-width: 1024px) {
    .navbar.navbar-inverse.navbar-static-top {
        padding: 0 30px !important;
    }
    
    .navbar-inverse .navbar-nav > li > a {
        padding: 10px 18px !important;
        font-size: 15px !important;
    }
}

/* Tablet (992px and below) */
@media screen and (max-width: 992px) {
    /* Header adjustments */
    .navbar.navbar-inverse.navbar-static-top {
        min-height: 70px !important;
        padding: 0 20px !important;
    }
    
    .navbar-header {
        font-size: 20px !important;
        gap: 12px;
    }
    
    .navbar-header img {
        height: 48px !important;
        width: 48px !important;
    }
    
    /* Navigation links - reduce padding */
    .navbar-inverse .navbar-nav > li > a {
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
    
    /* Page title adjustments */
    .page-title {
        font-size: 22px !important;
    }
    
    .page-subtitle {
        padding-left: 20px !important;
        font-size: 13px !important;
    }
}

/* Mobile Landscape / Small Tablet (768px and below) */
@media screen and (max-width: 768px) {
    /* Header - Make it mobile-friendly */
    .navbar.navbar-inverse.navbar-static-top {
        min-height: 60px !important;
        padding: 0 15px !important;
        flex-wrap: wrap !important;
    }
    
    .navbar-static-top > .container {
        flex-wrap: wrap !important;
    }
    
    /* Logo section */
    .navbar-header {
        font-size: 18px !important;
        gap: 10px;
        flex: 0 0 auto;
    }
    
    .navbar-header img {
        height: 40px !important;
        width: 40px !important;
    }
    
    /* SHOW mobile toggle button */
    .navbar-toggle {
        display: block !important;
        float: right !important;
        margin-top: 10px !important;
        margin-right: 0 !important;
        margin-bottom: 10px !important;
        background-color: #e1f5e6 !important;
        border: 1px solid #19a445 !important;
        border-radius: 4px !important;
        padding: 9px 10px !important;
    }
    
    .navbar-toggle .icon-bar {
        background-color: #19a445 !important;
        display: block !important;
        width: 22px !important;
        height: 2px !important;
        border-radius: 1px !important;
    }
    
    .navbar-toggle .icon-bar + .icon-bar {
        margin-top: 4px !important;
    }
    
    /* Navigation - Collapsible mobile menu */
    #navbar {
        float: none !important;
        width: 100% !important;
        margin-top: 10px !important;
        clear: both !important;
    }
    
    #navbar.collapse {
        display: none !important;
        max-height: 0 !important;
        overflow: hidden !important;
    }
    
    #navbar.collapse.in {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    .navbar-right.menu-bar > .weblinks.nav.navbar-nav {
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    .navbar-inverse .navbar-nav {
        margin: 0 -15px !important;
    }
    
    .navbar-inverse .navbar-nav > li {
        width: 100% !important;
        float: none !important;
    }
    
    .navbar-inverse .navbar-nav > li > a {
        padding: 12px 15px !important;
        border-radius: 0 !important;
        margin-bottom: 0 !important;
        display: block !important;
    }
    
    /* Dropdown menus on mobile */
    .navbar-inverse .navbar-nav .open .dropdown-menu {
        position: static !important;
        float: none !important;
        width: auto !important;
        margin-top: 0 !important;
        background-color: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }
    
    .navbar-inverse .navbar-nav .open .dropdown-menu > li > a {
        padding: 10px 30px !important;
        color: rgb(74, 85, 104) !important;
    }
    
    .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover {
        background-color: rgb(225, 245, 230) !important;
        color: #19a445 !important;
    }
    
    /* Page title */
    .page-title {
        font-size: 20px !important;
        padding: 15px 0 !important;
    }
    
    .page-subtitle {
        padding-left: 0 !important;
        font-size: 12px !important;
    }
    
    /* Buttons - Stack on mobile */
    .btn.btn-primary.pull-right,
    .btn.btn-primary.pull-right.action.create-action {
        float: none !important;
        display: block !important;
        width: 100% !important;
        margin-bottom: 10px !important;
        margin-left: 0 !important;
    }
    
    .pull-right {
        float: none !important;
    }
    
    .pull-left {
        float: none !important;
    }
    
    /* Search bar - Full width */
    .input-group.pull-left.view-search.entitylist-search,
    .input-group.view-search {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        margin-bottom: 10px !important;
        margin-right: 0 !important;
        flex: 1 1 100% !important;
    }
    
    .input-group.pull-left.view-search.entitylist-search input {
        width: 100% !important;
    }
    
    /* Search and button container on mobile */
    .toolbar,
    .view-toolbar,
    div:has(> .input-group.view-search) {
        flex-direction: column !important;
        align-items: stretch !important;
        flex-wrap: wrap !important;
    }
    
    /* Filter tabs */
    .nav-pills {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin-bottom: 15px !important;
    }
    
    .nav-pills > li {
        flex: 1 1 auto !important;
        min-width: 80px !important;
    }
    
    .nav-pills > li > a {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
    
    /* Table container */
    .view-grid.table-responsive {
        margin: 0 !important;
        border-radius: 8px !important;
    }
    
    /* Stats cards */
    .stat-card,
    .inner-stat-card {
        margin-bottom: 15px !important;
    }
}

/* Mobile Portrait (576px and below) */
@media screen and (max-width: 576px) {
    /* Compact mobile header */
    .navbar.navbar-inverse.navbar-static-top {
        min-height: 56px !important;
        padding: 0 10px !important;
    }
    
    .navbar-header {
        font-size: 16px !important;
        gap: 8px !important;
    }
    
    .navbar-header img {
        height: 36px !important;
        width: 36px !important;
    }
    
    .navbar-toggle {
        margin-top: 8px !important;
        margin-bottom: 8px !important;
        padding: 8px 9px !important;
    }
    
    /* Page title */
    .page-title {
        font-size: 18px !important;
        padding: 12px 10px !important;
    }
    
    .page-subtitle {
        font-size: 11px !important;
        padding-left: 10px !important;
    }
    
    /* Stats cards - Full width */
    .stat-card,
    .inner-stat-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 12px !important;
        padding: 15px !important;
    }
    
    /* Buttons - Smaller on mobile */
    .btn {
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
    
    /* Tab filters - Full width stacked */
    .nav-pills > li {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
    
    .nav-pills > li > a {
        text-align: center !important;
        display: block !important;
    }
    
    /* Table - Hide less important columns on very small screens */
    .view-grid.table-responsive table tbody td:nth-child(5),
    .view-grid.table-responsive table thead th:nth-child(5) {
        display: none !important;
    }
    
    /* Adjust table column widths */
    body .view-grid.table-responsive table tbody tr td:nth-child(1),
    body .view-grid.table-responsive table tbody tr td:nth-child(3) {
        max-width: 130px !important;
    }
    
    /* Compact action buttons */
    .view-grid.table-responsive table tbody td:last-child {
        padding-right: 10px !important;
    }
    
    .view-grid.table-responsive table tbody td:last-child button,
    .view-grid.table-responsive table tbody td:last-child .btn {
        min-width: 38px !important;
        height: 38px !important;
        padding: 8px 10px !important;
    }
    
    /* Search input adjustments */
    .input-group.pull-left.view-search.entitylist-search input {
        font-size: 14px !important;
        padding: 10px 12px !important;
    }
    
    /* Pagination - Smaller buttons */
    .pagination > li > a {
        padding: 6px 10px !important;
        font-size: 13px !important;
        min-width: 32px !important;
    }
    
    /* Create Case button - Full width */
    .btn.btn-primary.pull-right.action.create-action {
        width: 100% !important;
        float: none !important;
        text-align: center !important;
        margin-bottom: 15px !important;
        margin-left: 0 !important;
        display: block !important;
    }
}

/* Extra Small Mobile (480px and below) */
@media screen and (max-width: 480px) {
    .navbar-header {
        font-size: 14px !important;
    }
    
    .page-title {
        font-size: 16px !important;
    }
    
    /* Hide additional table columns on tiny screens */
    .view-grid.table-responsive table tbody td:nth-child(4),
    .view-grid.table-responsive table thead th:nth-child(4),
    .view-grid.table-responsive table tbody td:nth-child(6),
    .view-grid.table-responsive table thead th:nth-child(6) {
        display: none !important;
    }
    
    /* More compact table */
    .view-grid.table-responsive table tbody td {
        padding: 12px 8px !important;
        font-size: 12px !important;
    }
    
    .view-grid.table-responsive table thead th {
        padding: 10px 8px !important;
        font-size: 9px !important;
    }
    
    body .view-grid.table-responsive table tbody tr td:nth-child(1),
    body .view-grid.table-responsive table tbody tr td:nth-child(3) {
        max-width: 100px !important;
    }
}

/* Very Small Mobile (400px and below) */
@media screen and (max-width: 400px) {
    /* Hide brand text, show logo only */
    .navbar-header span:not(.sr-only) {
        display: none !important;
    }
    
    .page-title {
        font-size: 15px !important;
        padding: 10px 5px !important;
    }
    
    /* Ultra-compact table */
    .view-grid.table-responsive table tbody td {
        padding: 10px 6px !important;
        font-size: 11px !important;
    }
    
    .view-grid.table-responsive table thead th {
        padding: 8px 6px !important;
        font-size: 8px !important;
    }
    
    /* Smaller action buttons */
    .view-grid.table-responsive table tbody td:last-child button,
    .view-grid.table-responsive table tbody td:last-child .btn {
        min-width: 32px !important;
        height: 32px !important;
        padding: 6px 8px !important;
    }
    
    .view-grid.table-responsive table tbody td:last-child .glyphicon {
        font-size: 12px !important;
    }
}

/* Landscape Orientation (Mobile devices in landscape) */
@media screen and (max-width: 812px) and (orientation: landscape) {
    .navbar.navbar-inverse.navbar-static-top {
        min-height: 50px !important;
        padding: 0 15px !important;
    }
    
    .navbar-header {
        font-size: 16px !important;
    }
    
    .navbar-header img {
        height: 32px !important;
        width: 32px !important;
    }
    
    .navbar-toggle {
        margin-top: 6px !important;
        margin-bottom: 6px !important;
        padding: 6px 8px !important;
    }
    
    .navbar-inverse .navbar-nav > li > a {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
    
    .page-title {
        font-size: 18px !important;
    }
}

/* Fix Bootstrap Collapse for Mobile */
@media screen and (max-width: 768px) {
    /* Ensure collapse works properly */
    .navbar-collapse {
        border-top: 1px solid transparent !important;
        box-shadow: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .navbar-collapse.in {
        overflow-y: auto !important;
    }
    
    /* Fix navbar header float */
    .navbar-header {
        float: left !important;
    }
    
    .navbar-toggle {
        float: right !important;
    }
}

/* Improve Touch Targets for Mobile */
@media screen and (max-width: 768px) {
    /* Ensure buttons have minimum touch target size (44x44px) */
    .btn,
    .navbar-inverse .navbar-nav > li > a,
    .dropdown-menu > li > a,
    .pagination > li > a {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Table action buttons */
    .view-grid.table-responsive table tbody td:last-child button,
    .view-grid.table-responsive table tbody td:last-child .btn {
        min-width: 44px !important;
        min-height: 44px !important;
    }
}

/* Container Responsive Width */
@media screen and (max-width: 768px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
    }
}

/* Ensure full width for main content areas */
body .container,
body .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
}

/* Page content wrapper */
.page-content,
.main-content,
body > .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Table parent containers */
.view-grid.table-responsive,
.table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Stats cards container */
.stat-cards-container,
.stats-wrapper {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
}

/* Individual stat cards */
.stat-card,
.inner-stat-card {
    flex: 1 1 calc(25% - 15px) !important;
    min-width: 200px !important;
    box-sizing: border-box !important;
}

/* Search and filter section */
.entitylist-search,
.view-search {
    width: 100% !important;
    max-width: 100% !important;
}

/* Responsive adjustments for smaller screens */
@media screen and (max-width: 1200px) {
    .stat-card,
    .inner-stat-card {
        flex: 1 1 calc(50% - 15px) !important;
    }
    
    body .container,
    .page-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media screen and (max-width: 768px) {
    .stat-card,
    .inner-stat-card {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
    
    body .container,
    .page-content {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* Fix for Flexbox on Older Browsers */
@supports not (display: flex) {
    .navbar.navbar-inverse.navbar-static-top {
        display: block !important;
    }
    
    .navbar-right.menu-bar > .weblinks.nav.navbar-nav {
        display: block !important;
    }
    
    .navbar-static-top > .container {
        display: block !important;
    }
}

/* Print Styles */
@media print {
    .navbar-toggle,
    .navbar.navbar-inverse.navbar-static-top {
        display: none !important;
    }
    
    .view-grid.table-responsive {
        overflow: visible !important;
    }
    
    .view-grid.table-responsive table {
        border: 1px solid #ddd !important;
    }
}

/* Description field size in form*/
.clearfix.cell.textarea.form-control-cell textarea#description {
    min-height: 100px;
    height: auto;
    resize: vertical; /* Allows users to resize if needed */
}

/* ADD Comment buttons Hover Effect */
.addnote.btn.btn-primary {
    position: relative;
}

.addnote.btn.btn-primary:hover::after {
    content: "Add Comment";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 14px;
    z-index: 1000;
    margin-bottom: 5px;
}

/* Optional: Add arrow pointing down */
.addnote.btn.btn-primary:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 1000;
    margin-bottom: -5px;
}

/* Hide External Authentications in Profile */
.list-group.nav-profile a[href="/en-US/Account/Manage/ChangeLogin"] {
    display: none;
}



/* Additional Green Theme Elements */

/* Nav Pills / Tabs - Green Theme */
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
    background-color: #19a445 !important;
    color: #fff !important;
}

.nav-pills > li > a:hover {
    background-color: rgba(25, 164, 69, 0.1) !important;
    color: #19a445 !important;
}

/* Form Submit Buttons - GREEN */
input[type="submit"].btn-primary,
button[type="submit"].btn-primary {
    background-color: #19a445 !important;
    border-color: #19a445 !important;
}

input[type="submit"].btn-primary:hover,
button[type="submit"].btn-primary:hover {
    background-color: #158a3a !important;
    border-color: #158a3a !important;
}

/* Search Button in Input Group - GREEN */
.input-group-btn .btn {
    background-color: #19a445 !important;
    border-color: #19a445 !important;
    color: #fff !important;
}

.input-group-btn .btn:hover {
    background-color: #158a3a !important;
    border-color: #158a3a !important;
}

/* Profile Styling */
.list-group-item.active, .list-group-item.active:hover, .list-group-item.active:focus {
    z-index: 2;
    color: #fff;
    background-color: #19a445;
    border-color: #19a445;
}

/* Hide remeber me checkbox in login page */

.checkbox {
  display: none !important;
}
/* Hide Profile screen how to contact section */
#ContentContainer_MainContent_MainContent_ContentBottom_MarketingOptionsPanel {
  display: none !important;
}


/* Align search bar */
.pull-right.toolbar-actions {
    padding-top: 10px !important;
}
/* Case Title */

.clearfix.cell.text.form-control-cell {
    padding-top: 10px !important;
}

/* Submit button alignment */
.crmEntityFormView .actions {
    padding-left: 30px !important;
}

.col-sm-6.clearfix {
    padding-left: 40px !important;
}


/* password eye icon */

/* CSS for Password Eye Icons on Change Password Page */

/* Make parent containers position relative for all three password fields */
#OldPassword,
#NewPassword,
#ConfirmPassword {
    padding-right: 45px !important;
    box-sizing: border-box !important;
}

/* Make the col-sm-8 containers position relative */
.col-sm-8:has(#OldPassword),
.col-sm-8:has(#NewPassword),
.col-sm-8:has(#ConfirmPassword) {
    position: relative !important;
}

/* Eye toggle button styling - HIDDEN BY DEFAULT */
.password-toggle-icon {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 8px !important;
    z-index: 10 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    transition: opacity 0.2s ease !important;
    opacity: 0 !important;
}

/* Show eye icon when password field has value */
.password-toggle-icon.visible {
    display: flex !important;
    opacity: 1 !important;
}

.password-toggle-icon:hover {
    opacity: 0.7 !important;
}

.password-toggle-icon:focus {
    outline: 2px solid #0066cc !important;
    outline-offset: 2px !important;
    border-radius: 4px !important;
}

/* SVG icon inside the button */
.password-toggle-icon svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    pointer-events: none !important;
}

/* Hide/Show eye icons based on password visibility state */
.password-toggle-icon .eye-closed {
    display: none !important;
}

.password-toggle-icon.showing .eye-open {
    display: none !important;
}

.password-toggle-icon.showing .eye-closed {
    display: block !important;
}

/* Smooth transition for icon appearance */
.password-toggle-icon {
    transition: opacity 0.2s ease !important;
}

/* Additional specificity for form-group */
.form-group .col-sm-8 {
    position: relative !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .password-toggle-icon {
        right: 8px !important;
    }
    
    #OldPassword,
    #NewPassword,
    #ConfirmPassword {
        padding-right: 40px !important;
    }
}

/* Padding adjustments for other classes as requested */
.pull-right.toolbar-actions {
    padding-top: 5px !important;
}

.clearfix.cell.text.form-control-cell {
    padding-top: 5px !important;
}


/* No Activity alert*/

.alert.alert-block.alert-warning {
  position: relative;
  color: transparent; /* hide original text */
}

.alert.alert-block.alert-warning::before {
  content: "There are no notes to display.";
  color: #856404; /* or your warning text color */
  position: relative;
  top: 0;
  left: 0;
}


/* Note Description hiding */
/* Hide "Created by # Portals-Case Management Portal" text */
.createdby.text-muted {
    display: none !important;
}

/* Remove the createdby div entirely from layout */
div.createdby {
    display: none !important;
}

/* Style the description box */
.description p {
    background-color: #f8f9fa;
    padding: 12px 15px;
    border-left: 4px solid #28a745;
    margin: 0 0 15px 0;
    font-size: 15px;
    color: #2c3e50;
    font-weight: 500;
    border-radius: 4px;
}

/* Add icon before description text */
.description p::before {
    content: "📝 ";
    margin-right: 5px;
}

/* Remove border from attachment box */
.attachment-outer-border {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Remove any borders from attachment sections */
div[class*="attachment"] {
    border: none !important;
}

/* Adjust spacing after removing "Created by" */
.from h5 {
    margin-bottom: 5px;
}

.from + .description {
    margin-top: 0;
}

/* Compact the note section */
.col-md-9.col-xs-12.content {
    padding-top: 0;
}

/* Remove attachment separator borders */
.attachment-separator {
    display: none;
}
/* Profile page tab hiding */
.panel-heading{
    display: none;
}
/* Profile page button hide */
#ContentContainer_MainContent_MainContent_ContentBottom_SubmitButton {
    display: none !important;
}

/* Footer Content */
footer .footer-bottom p {
    display: none;
}

