/* =========================================================
CM3 Styles (tidied + grouped)
- Same selectors/properties, just organised
- No behaviour changes intended
========================================================= */
/* =========================================================
Root variables + global overflow
========================================================= */
:root {
    --sidebar-width: 205px;
    --footer-height: 5px;
    overflow-x: hidden;
    overflow-y: hidden;
    /* Sidebar palette */
    --sb-bg: #FFFFF;
    /* soft blue-grey */
    --sb-surface: rgba(255, 255, 255, .65);
    --sb-border: rgba(204, 204, 206);
    --sb-text: #1F2937;
    /* slate-800 */
    --sb-muted: #64748B;
    /* slate-500 */
    --sb-hover-bg: #EAF6E6;
    --sb-active-bg: #DDEED8;
    --sb-active-text: #1F4D2E;
    /* deep blue */
    --sb-active-border: rgba(51, 102, 204, .35);
    /* Scrollbars */
    --cm3-scrollbar-size: 8px;
    --cm3-scrollbar-thumb: rgba(100, 116, 139, 0.55);
    /* slate-500 */
    --cm3-scrollbar-thumb-hover: rgba(100, 116, 139, 0.8);
    --cm3-scrollbar-track: transparent;
    /* Tabs */
    --cm3-tab-bg: rgba(248, 250, 252, .75);
    /* soft slate */
    --cm3-tab-bg-hover: rgba(248, 250, 252, 1);
    --cm3-tab-active-bg: #fff;
    --cm3-tab-text: #475569;
    /* slate-600 */
    --cm3-tab-text-hover: #1f2937;
    /* slate-800 */
    --cm3-tab-active-text: #1e40af;
    /* deep blue */
    --cm3-tab-border: rgba(15, 23, 42, .10);
    /* subtle border */
    --cm3-tab-border-strong: rgba(15, 23, 42, .16);
    --cm3-tab-shadow: 0 1px 2px rgba(15, 23, 42, .06);
    --cm3-tab-shadow-active: 0 2px 10px rgba(15, 23, 42, .08);
    /* fall-backs */
    --cm3-header-guess: 64px;
    --cm3-actionbar-guess: 52px;
    --cm3-spacing-guess: 72px;
    /* margins/padding/gaps */
}

/* =========================================================
Scrollbars
========================================================= */
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--cm3-scrollbar-thumb) var(--cm3-scrollbar-track);
}

/* WebKit browsers */
*::-webkit-scrollbar {
    width: var(--cm3-scrollbar-size);
    height: var(--cm3-scrollbar-size);
}

*::-webkit-scrollbar-track {
    background: var(--cm3-scrollbar-track);
}

*::-webkit-scrollbar-thumb {
    background-color: var(--cm3-scrollbar-thumb);
    border-radius: 8px;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: var(--cm3-scrollbar-thumb-hover);
}

/* =========================================================
Focus handling (accessibility)
========================================================= */
/* Remove harsh browser outline */
:focus {
    outline: none;
}

/* Use focus-visible for keyboard users */
:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
}

.btn:focus,
.btn:active:focus,
.nav-link:focus {
    outline: none;
    box-shadow: none;
}

.btn:focus-visible, .nav-link:focus-visible {
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.35);
}

/* =========================================================
Background (early rule - kept)
========================================================= */
body {
    background: radial-gradient(circle at 20% 0%, rgba(120, 200, 120, 0.08), transparent 40%), #FAFFF7;
}

/* =========================================================
Toasts
========================================================= */
#toast-container .toast {
    opacity: 1 !important;
    background: initial;
}

#toast-container.toast-container .toast {
    opacity: 1 !important;
    background-image: none !important;
}

#toast-container .toast.cm3-toast-enhanced.fade {
    transition: opacity 0.45s ease, transform 0.45s ease !important;
}

#toast-container .toast.cm3-toast-enhanced.fade.show {
    opacity: 1 !important;
    transform: translateY(0);
}

#toast-container .toast.cm3-toast-enhanced.fade:not(.show) {
    opacity: 0 !important;
    transform: translateY(-6px);
}

.cm3-toast-bar {
    height: 3px;
    width: 100%;
    transform-origin: left;
    transform: scaleX(1);
    opacity: 0.65;
    transition: transform linear;
}

/* Toast icon sizing + vertical alignment */
#toast-container .toast.cm3-toast-enhanced .toast-body {
    display: flex;
    /* ensure flex even if BS changes */
    align-items: center;
    /* vertical centre icon + text */
    gap: 0.5rem;
    /* consistent spacing */
}

/* Bigger icon, perfectly centred */
#toast-container .toast.cm3-toast-enhanced .toast-body i.bi {
    font-size: 1.6rem;
    /* try 1.4–2.0rem */
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0 !important;
    /* overrides mt-1 if present */
}

/* Multi-line messages align nicely beside icon */
#toast-container .toast.cm3-toast-enhanced .toast-body .cm3-toast-msg {
    line-height: 1.35;
}

/* =========================================================
Login page
========================================================= */
.card,
.datatable-container {
    background-color: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cm3-login-wrap {
    min-height: calc(100vh - var(--header-height, 60px));
    padding: 3rem 1rem 2rem;
    display: flex;
    justify-content: center;
    /* horizontal center */
    align-items: flex-start;
    /* stay near top */
    margin-left: calc(-1 * var(--sidebar-width, 0px));
}

/* The actual card (NOT a wrapper) */
.cm3-login-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94));
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.cm3-login-card {
    width: 100%;
    max-width: 440px;
}

/* Top accent line */
.cm3-login-card::before {
    content: "";
    display: block;
    height: 3px;
    margin: -1.25rem -1rem 1rem;
    /* stretch to card edges */
    background: linear-gradient(90deg, #2D516B, rgba(45, 81, 107, 0.35));
    border-radius: 8px 8px 0 0;
}

/* Keep above background layers if needed */
.cm3-login-wrap,
.cm3-login-card {
    position: relative;
    z-index: 5;
}

/* Default: centered in whatever space we have */
.cm3-login-wrap {
    min-height: calc(100vh - var(--header-height, 60px));
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: #4B4B4B;
}

/* Card stays a real card */
/* When the left sidebar is shown on desktop, shift the login area right */
@media (min-width: 992px) {
    .cm3-login-wrap {
        padding-right: 1rem;
    }
}

/* =========================================================
Scroll containers
========================================================= */
.preferences-form-container {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.settings-form-container .dt-container {
    margin: 0;
    box-sizing: border-box;
}

.settings-form-container table {
    width: max-content;
}

/* =========================================================
Split button (Raise)
========================================================= */
.btn-split {
    display: inline-flex;
    position: relative;
    vertical-align: middle;
}

.btn-split .btn-main,
.btn-split .btn-toggle {
    background-color: #C53030;
    border: 1px solid #B42318;
    color: #FFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.btn-split .btn-main {
    border-radius: 3px;
    text-align: left;
    min-width: 137px;
    padding: 11px 10px 11px 8px;
    gap: 6px;
}

.btn-split .btn-toggle {
    border-radius: 3px;
    padding: 0 10px;
    margin-left: 2px;
}

.btn-split .btn-main:hover,
.btn-split .btn-toggle:hover {
    background-color: #B42318;
    border: 1px solid #9B1C1C;
}

/* NOTE: you had ".btn-split .btn-split:active" (odd but preserved) */
.btn-split .btn-split:active,
.btn-split .btn-toggle:active {
    background-color: #7A1E1E !important;
    border-color: #7A1E1E !important;
}

/* NOTE: you had ".btn-split .btn-split:focus" (odd but preserved) */
.btn-split .btn-split:focus,
.btn-split .btn-toggle:focus {
    outline: 2px solid rgba(197, 48, 48, 0.35);
    outline-offset: 0;
}

.btn-split .btn-main-icon {
    width: 15px;
    height: 15px;
}

/* Raise dropdown */
#raiseButton .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #FFF;
    border: 1px solid #CCC;
    border-radius: 0;
    box-shadow: -7px 7px 10px #111;
    min-width: 160px;
    z-index: 10;
}

#raiseButton .dropdown-menu a {
    display: block;
    padding: 5px 0 5px 12px;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
    margin-bottom: 5px;
    border-left: 2px solid #FFF;
    margin-right: 0;
    margin-left: 0;
}

#raiseButton .dropdown-menu a:hover {
    background-color: #BEE4FF;
    border-left: 2px solid #0070C0;
}

#raiseButton.show .dropdown-menu {
    display: block;
}

/* Dropdown item hover chevron */
.dropdown-menu .dropdown-item {
    position: relative;
    padding-left: 2rem;
    /* space for chevron */
}

.dropdown-menu .dropdown-item:hover {
    background-color: #EAF6E6 !important;
    color: #1F4D2E;
}

.dropdown-menu .dropdown-item::after {
    content: "\f285";
    /* Bootstrap Icons: chevron-compact-right */
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    font-size: 0.9rem;
}

.dropdown-menu .dropdown-item:hover::after,
.dropdown-menu .dropdown-item:focus::after {
    opacity: 0.6;
    transform: translate(2px, -50%);
}

/* =========================================================
Mobile nav overlay / toggle
========================================================= */
#sidebarToggleBtn {
    display: none;
    background-color: #B5D9FF;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 998;
}

.nav-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* =========================================================
Filters dropdown
========================================================= */
.filters-dropdown {
    border: 1px solid #DEE2E6;
    border-radius: 2px;
    background-color: #F8F9FA;
    margin-bottom: 8px;
}

.filters-header {
    background: #1400ff8a;
    color: #FFF;
    font-size: 16px;
    padding: 8px 18px;
    border-radius: 3px 3px 0 0;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #7D72FD;
}

/* NOTE: .filters-arrow is defined twice in your original; merged */
.filters-arrow {
    margin-left: 10px;
    font-size: 14px;
    display: inline-block;
    transition: transform 0.25s ease;
}

.filters-collapsed {
    display: none !important;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background-color: #F8F9FA;
    padding: 10px;
    border: 1px solid #CCC;
    border-radius: 0 0 6px 6px;
    border-top: none;
    font-family: Arial, sans-serif;
    font-size: 14px;
    overflow: hidden;
}

/* Hide filter action buttons when collapsed */
#filtersToggleBtn[aria-expanded="false"] + .cm3-filter-actions {
    display: none !important;
}

/* Optional: smooth entrance */
#filtersToggleBtn[aria-expanded="true"] + .cm3-filter-actions {
    animation: cm3FadeIn 0.15s ease-in;
}

@keyframes cm3FadeIn {
    from {
        opacity: 0;
        transform: translateY(-2px);
    }
    
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-box label {
    display: block;
    margin: 5px 0;
}

.filter-box-title {
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
    border-bottom: 1px solid #CCC;
    padding-bottom: 4px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 0;
    align-items: center;
}

.filter-actions,
.filters-dropdown {
    flex: 0 0 auto;
}

.filter-actions input[type=text] {
    padding: 6px 10px;
    border: 1px solid #CCC;
    border-radius: 4px;
    flex: 1;
}

/* Collapsible filters panel */
#main-filters {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    flex: 0 0 auto;
    transition: max-height 0.25s ease, opacity 0.25s ease;
}

#main-filters:not(.filters-collapsed) {
    max-height: 2000px;
    opacity: 1;
}

.filters-rotated {
    transform: rotate(90deg);
}

.tabDiv {
    max-width: 100%;
    overflow-x: auto;
}

/* =========================================================
Base document + typography
========================================================= */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    padding-top: var(--header-height);
    font: 13px "roboto", sans-serif, "helvetica", sans-serif, "arial", sans-serif;
    font-family: "Arial", sans-serif;
    background-color: #F9F9F9;
    color: #333;
    padding: 0 !important;
}

h1,
label {
    font-weight: 600;
}

h1 {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
    color: #2970C0;
}

.surface {
    background: #FFF;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
}

a {
    text-decoration: none;
    color: #145A8D;
}

a:hover {
    color: #2A7FC1;
    cursor: pointer;
}

ol,
ul {
    padding-left: 0.5rem;
}

/* =========================================================
Navbar
========================================================= */
.navbar-nav {
    position: absolute;
    margin-left: auto;
    right: 0;
    padding-top: 0;
}

.navbar-nav2 {
    margin-left: 945px;
}

.navbar {
    position: sticky !important;
}

.navbarwithpadding {
    margin-top: 0;
    padding: 0;
}

.navbar-nav .nav-link {
    color: #0B3A5A;
    padding: 2px 10px 2px 15px !important;
    font-size: 13px;
}

.navbar-brand img {
    height: 30px;
}

.actionLink,
.bookmark-this,
.resetPassword {
    padding-left: 18px !important;
}

#tacCaution {
    font-size: 12px;
}

/* =========================================================
Misc legacy bits
========================================================= */
.minitable {
    width: 230px;
    font-size: 10px;
}

.text-blue {
    padding: 50px 0 1px;
    margin: 0;
    font-size: 21px;
    color: #0070C0;
}

.guide,
.help,
.logout {
    background-repeat: no-repeat;
    float: right;
    background-size: 18px 18px;
    margin-top: 20px;
}

.guide,
.help {
    background-image: url(/img/guide_icon.svg);
    margin-right: 0;
}

.help {
    background-image: url(/img/Support_icon.svg);
}

.logout::after,
.logout::before {
    margin-right: 20px !important;
}

.logout {
    background-image: url(/img/log_out.svg);
    margin-right: 1px;
}

label {
    display: block;
}

input[type=password],
input[type=text] {
    max-width: 300px;
    padding: 5px;
    border: 1px solid #4B5563;
    border-radius: 3px;
    font-size: 16px;
    box-sizing: border-box;
}

input[type=password] {
    margin-bottom: 20px;
}

/* =========================================================
Drop down
========================================================= */
.dropdown-text {
    font-size: small;
    /*+box-shadow: 1px 1px 6px #8AB2E5;*/
    -moz-box-shadow: 1px 1px 6px #8AB2E5;
    -webkit-box-shadow: 1px 1px 6px #8AB2E5;
    box-shadow: 1px 1px 6px #8AB2E5;
}

/* =========================================================
Sidebar text links
========================================================= */
.navtext,
.navtext a {
    display: inline-block;
    color: var(--sb-muted);
    transition: all 0.4s ease;
    text-decoration: none;
    font-size: small;
    padding: 7px 0 7px 10px;
}

.navtext:hover,
.navtext a:hover {
    cursor: pointer !important;
    background: var(--sb-hover-bg);
    color: var(--sb-text);
}

.navtext.active,
.navtext a.active {
    background: var(--sb-active-bg);
    color: var(--sb-active-text);
    box-shadow: inset 3px 0 0 var(--sb-active-border);
}

.rightBar {
    border-right: 1px solid #D1D5DB;
    padding-right: 6px;
}

/* =========================================================
Name + dropdown button
========================================================= */
.dd-button:after,
.nameMessage {
    position: absolute;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
    margin-left: auto;
    z-index: 5;
}

.placecenter {
    margin: 0 auto;
    max-width: 1200px;
}

#resetheading {
    margin: 10px 0 4px;
    font-size: 18px;
    color: #555;
    display: inline-block;
    line-height: 1.1;
}

.dd-button {
    display: inline-block;
    border: 1px solid #FD3C43;
    border-radius: 4px;
    padding: 10px 30px 10px 7px;
    cursor: pointer;
    white-space: nowrap;
    color: #F4F4F4;
    font-size: 12px;
}

.dd-button:after {
    content: "";
    top: 50%;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #FFF;
}

.dd-button,
.dd-button:hover {
    background-color: #FD3C43;
}

.dd-input,
.dd-input + .dd-menu {
    display: none;
}

.dd-menu {
    position: absolute;
    top: 100%;
    border: 1px solid #CCC;
    border-radius: 4px;
    padding: 0;
    margin: 2px 0 0;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.1);
    background-color: #FFF;
    list-style-type: none;
}

.dd-input:checked + .dd-menu {
    display: block;
}

.dd-menu li {
    content: " »";
    padding: 10px 20px;
    cursor: pointer;
    white-space: nowrap;
}

.dd-menu li:hover {
    background-color: #0070C0;
    color: #F4F4F4;
}

.dd-menu li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #000;
    border: 0;
}

.dd-menu li a:hover {
    color: #F4F4F4;
    border: 0;
}

.dd-menu li a::before {
    content: " >>";
    color: #F4F4F4;
    position: absolute;
    left: 0;
    pointer-events: none;
    text-decoration: none;
}

.dd-menu li.divider {
    padding: 0;
    border-bottom: 1px solid #CCC;
}

/* =========================================================
Sticky sidebar container
========================================================= */
.mobNav {
    position: sticky;
    top: var(--header-height);
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height) - var(--footer-height));
}

/* =========================================================
Collapsible tool sections
========================================================= */
.tool-collapse-btn {
    color: inherit;
}

.tool-collapse-btn:hover {
    opacity: 0.9;
}

.tool-collapse-btn .collapse-chevron {
    display: inline-block;
    transform: rotate(0deg);
    transition: transform 180ms ease;
    line-height: 1;
    font-size: 1.1em;
}

.tool-collapse-btn.collapsed .collapse-chevron {
    transform: rotate(-90deg);
}

.risks .collapse {
    transition: height 220ms ease;
}

/* =========================================================
Detail tabs (CM3)
========================================================= */
/* Base tab strip */
.cm3-detail-tabs {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 4px;
}

/* All tabs */
.cm3-detail-tabs .nav-link {
    border-radius: 0.45rem 0.45rem 0 0;
    border: 1px solid transparent;
    background: rgba(248, 249, 250, 0.6);
    color: #495057;
    font-weight: 600;
    padding: 0.45rem 0.75rem;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

/* Hover (inactive only) */
.cm3-detail-tabs .nav-link:not(.active):hover {
    background: rgba(248, 249, 250, 0.95);
    color: #212529;
}

/* Active tab — clear but not shouty */
.cm3-detail-tabs .nav-link.active {
    background: #FFF;
    color: #1E40AF;
    /* CM3 blue / slate */
    border-color: rgba(0, 0, 0, 0.15);
    border-bottom-color: #FFF;
    /* merges into content */
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.05);
    font-weight: 600;
    position: relative;
    z-index: 2;
}

/* Focus-visible (keyboard users) */
.cm3-detail-tabs .nav-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}

.cm3-detail-tabs .nav-link.active::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -4px;
    height: 2px;
    background: #1E40AF;
    border-radius: 2px;
}

.cm3-detail-tabs .nav-link:not(.active) {
    opacity: 0.85;
}

/* =========================================================
Detail tabs (specific ID strip)
========================================================= */
#detailTabsNav.cm3-detail-tabs {
    height: auto;
    max-height: none;
    overflow-x: auto;
    /* only horizontal scroll */
    overflow-y: hidden;
    /* kill vertical scrollbar */
    border-bottom: 1px solid var(--cm3-tab-border);
    padding-bottom: 4px;
    /* avoids 1–2px scrollbar/border quirks */
}

#detailTabsNav.cm3-detail-tabs .nav-link {
    border-radius: 0.55rem 0.55rem 0 0;
    border: 1px solid transparent;
    /* avoids jump on active */
    background: var(--cm3-tab-bg);
    color: var(--cm3-tab-text);
    font-weight: 600;
    opacity: 0.82;
    /* makes inactive feel lighter */
    padding: 0.45rem 0.8rem;
    box-shadow: var(--cm3-tab-shadow);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    white-space: nowrap;
}

#detailTabsNav.cm3-detail-tabs .nav-link:not(.active):hover {
    background: var(--cm3-tab-bg-hover);
    color: var(--cm3-tab-text-hover);
    border-color: var(--cm3-tab-border);
    opacity: 0.95;
}

#detailTabsNav.cm3-detail-tabs .nav-link.active {
    background: var(--cm3-tab-active-bg);
    color: var(--cm3-tab-active-text);
    border-color: var(--cm3-tab-border-strong);
    border-bottom-color: #FFF;
    /* merges into content pane */
    opacity: 1;
    box-shadow: var(--cm3-tab-shadow-active);
    position: relative;
    z-index: 2;
}

#detailTabsNav.cm3-detail-tabs .nav-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 .15rem rgba(13, 110, 253, .20), var(--cm3-tab-shadow-active);
}

@media (min-width: 768px) {
    #detailTabsNav.cm3-detail-tabs {
        overflow: visible;
    }
}

/* =========================================================
Tables (CM3)
========================================================= */
table.cm3-table thead th,
table.cm3-table tbody td {
    padding: 0.35rem;
}

table.cm3-table tbody tr {
    transition: background-color 0.12s ease-in-out, box-shadow 0.12s ease-in-out;
}

table.cm3-table tbody tr:hover > * {
    background-color: rgba(120, 180, 120, 0.06);
    box-shadow: inset 0 0 0 9999px rgba(45, 81, 107, 0.02);
    cursor: pointer;
}

table.cm3-table thead th {
    border-bottom: 1px solid rgba(15, 23, 42, 0.25);
    padding-left: 0.45rem;
    padding-right: 1.7rem;
    white-space: nowrap;
}

/* =========================================================
Sortable tabs
========================================================= */
.user-select-none {
    user-select: none;
}

.ui-sortable-helper {
    cursor: grabbing;
}

.cm3-tab-placeholder {
    visibility: visible !important;
    border: 1px dashed #9AA6B2;
    background: rgba(0, 0, 0, 0.03);
}

.cm3-sorting .ui-tabs-nav a {
    pointer-events: none;
}

/* =========================================================
Small icons / badges
========================================================= */
.followLedActive,
.greenLedActive {
    height: 45px;
    width: 15px;
    margin-left: 10px;
}

.reportimg {
    height: 15px;
    width: 15px;
}

/* =========================================================
Notices / tables
========================================================= */
.notice {
    background-color: #FFF;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    -khtml-border-radius: 10px;
    border-radius: 10px;
    color: #555;
    font-size: 14px;
    text-align: left;
    padding: 1px 6px;
    border: 1px solid #B5BCC7;
    font-weight: 400;
}

.verticaldetail-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    /* critical */
}

.verticaldetail-table td,
.verticaldetail-table th {
    border: 1px solid #DEE2E6;
    padding: 8px;
}

.verticaldetail-table td,
.verticaldetail-table th {
    word-wrap: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}

.verticaldetail-table th {
    background-color: #F1F5F9;
    color: #334155;
    font-weight: 600;
}

.tabFirstDiv {
    margin-top: 13px;
    margin-bottom: 10px;
}

.common_fixed_table_class {
    border: 1px solid #007ACC;
}

/* =========================================================
Legacy tabs
========================================================= */
.tab .tab__heads {
    margin: 0;
    padding: 0;
    float: left;
    list-style: none;
    height: 32px;
    border-bottom: 1px solid #CCC;
    width: 100%;
}

.tab .tab__heads li {
    float: left;
    margin: 6px 1px 0 0;
    cursor: pointer;
    padding: 0 17px;
    height: 32px;
    line-height: 31px;
    color: #333;
    border-bottom: 0;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    background-color: #E5E5E5;
}

.tab .tab__heads li:hover {
    background-color: #DAE9F7;
    color: #2F93F0;
}

.tab .tab__heads li.active {
    border: 1px solid #CCC;
    background-color: #CFE5FA;
    color: #000;
    border-bottom: 1px solid #FFF;
    display: block;
    background-position: 0 -102px;
}

.ui-buttonr:hover,
.ui-state-default a,
.ui-state-default a:link,
.ui-state-default a:visited,
a.ui-button,
a:link.ui-button,
a:visited.ui-button {
    cursor: pointer !important;
}

/* =========================================================
Header + sidebar
========================================================= */
.header {
    background-color: #F3F8EF !important;
    padding-bottom: 0;
    padding-top: 0;
}

.navSection {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    min-height: calc(100vh - var(--header-height));
    overflow-y: hidden;
    z-index: 999;
    width: var(--sidebar-width);
    padding-top: 10px;
    border-right: 1px solid #DEE2E6;
    background-color: #FFFFFF;
}

.dropdown {
    margin-left: -35px;
}

.page_title {
    color: #0070C0 !important;
    font-size: 22px;
    margin-left: 0;
}

img.logo {
    height: 42px;
}

.issue_raise_container {
    margin-top: 77px;
}

/* =========================================================
Forms
========================================================= */
h4 {
    font-size: 18px;
    color: #555;
}

.form-control:focus {
    border-color: #4A90E2;
    outline: 0;
}

textarea {
    resize: vertical;
}

.section-header {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row > .form-group {
    flex: 1;
}

.notes-section,
.optional-section {
    border: 1px solid #CCC;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    background-color: #F9F9F9;
}

.notes-section h4,
.optional-section h4 {
    margin-top: 0;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}

.form-buttons {
    margin-top: 20px;
}

.btn-secondary {
    background-color: #F0F0F0;
    color: #333;
    border: 1px solid #CCC;
}

.notes-text {
    font-size: 12px;
    color: #666;
}

/* =========================================================
Risks
========================================================= */
.risks td.risk-picked-initial {
    border: 2px dashed #1F51FF !important;
}

.risks td.risk-picked-final,
.risks td.risk-picked-initial.risk-picked-final {
    border: 2px solid #1F51FF !important;
}

/* =========================================================
Reports table
========================================================= */
.reports {
    margin: auto auto 20px;
    border-collapse: collapse;
    width: 85%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.reports td,
.reports th {
    text-align: center;
    padding: 10px;
    border: 1px solid #DDD;
}

.reports th {
    background-color: #F2F2F2;
    font-weight: 700;
}

.reports tr:nth-child(even) {
    background-color: #F9F9F9;
}

.reports tr:hover,
.strategiesdropdown-content a:hover {
    background-color: #F1F1F1;
}

.reports td strong {
    font-weight: 700;
}

#chart_container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    padding-bottom: 15px;
}

/* =========================================================
Strategies dropdown
========================================================= */
.strategiesdropdown {
    position: relative;
    display: inline-block;
}

.strategiesdropdown-button {
    background-color: #FD3C43;
    color: #FFF;
    padding: 10px 30px 10px 7px;
    font-size: 12px;
    font-weight: 700;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 3px 3px 3px #B7B7B7;
    margin-top: 10px;
}

.strategiesdropdown-content {
    display: none;
    position: absolute;
    background-color: #FFF;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border: 1px solid #DDD;
    border-radius: 5px;
}

.strategiesdropdown-content a {
    color: #000;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
}

.strategiesdropdown:hover .strategiesdropdown-content {
    display: block;
}

.strategiesdropdown:hover .strategiesdropdown-button {
    background-color: #D32F2F;
}

/* =========================================================
More forms + buttons
========================================================= */
.form-group {
    margin-bottom: 20px;
}

.radio-group label {
    display: inline-block;
    margin-right: 15px;
    color: #666;
}

input[type=radio] {
    margin-right: 8px;
}

.submit-button {
    margin-top: 20px;
}

.abandon-button {
    background-color: #F8F9FA;
    color: #333;
    padding: 10px 20px;
    border: 1px solid #DDD;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    margin-left: 10px;
}

.abandon-button:hover {
    background-color: #E2E6EA;
}

.note {
    font-size: 13px;
    color: #555;
    margin-bottom: 15px;
}

/* Info table */
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table tr {
    border: 1px solid #DDD;
}

.info-table tr:nth-child(even) {
    background-color: #F5F5F5;
}

.info-table th {
    text-align: right;
    padding: 8px 15px;
    width: 40%;
    color: #666;
    font-weight: 400;
}

.info-table td {
    text-align: left;
    padding: 8px 15px;
    color: #333;
}

.btn-container {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.btn-back,
.btn-remove {
    background-color: #FFF;
    color: #333;
    border: 1px solid #DDD;
}

.btn-back {
    background-color: #F5F5F5;
}

.kpi_table {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.kpi_table th,
.setting_table th,
td,
tr {
    border-left: 0 none #FFF !important;
    border-right: 0 none #FFF !important;
}

/* Arrow helper */
.arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid #000;
    transition: transform 0.2s ease;
}

.arrow-down {
    transform: rotate(90deg);
}

.arrow-right {
    transform: rotate(0deg);
}

/* Storage params */
.storage-parameters {
    border-collapse: collapse;
    border: 1px solid #DDD;
    background-color: #FEFEFE;
    flex: 0 0 auto;
}

.storage-parameters td,
.storage-parameters th {
    text-align: left;
    padding: 8px 12px;
    border: 1px solid #DDD;
}

.storage-parameters th {
    background-color: #F4F4F4;
    font-weight: 700;
}

.storage-params-table {
    max-width: 300px;
    width: 100%;
    margin-left: 0;
    margin-right: auto;
    font-size: 0.85rem;
}

/* DataTables container */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-group input[type=checkbox] {
    margin-right: 10px;
}

.abandonLink {
    border: 1px solid #B5B5B5;
    background-color: #EFEFEF;
    margin-left: 0 !important;
    background-size: 14px 14px;
    color: #474749;
}

/* IMPORTANT: This looked like accidental garbage in your original.
Preserved exactly (so nothing “breaks”), but you probably want to fix it. */
.form-check-label {
    margin-bottom: 0;
    display: inline-block;
    font-weight: 700;
    padding-top: 2px;
    color: #145A8D;
}

.form-check-input:checked {
    background-color: #145A8D;
    border-color: #145A8D;
}

/* Search input */
.search-container {
    position: relative;
    width: 100%;
}

.search-container input {
    width: 100%;
    padding-left: 30px;
}

.search-container .search-icon {
    position: absolute;
    left: 10px;
    top: 30%;
    transform: translateY(-50%);
    color: #AAA;
    pointer-events: none;
    font-size: 16px;
}

.form-heading {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.form-subtext {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Summary table */
.summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.summary-table td,
.summary-table th {
    border: 1px solid #DDD;
    padding: 8px;
    text-align: left;
}

.summary-table th {
    background-color: #F7F7F7;
    font-weight: 700;
    color: #333;
}

.summary-table td {
    background-color: #FFF;
}

.form-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

.error {
    color: red;
}

.submit-button {
    background-color: #4A90E2;
    color: #FFF;
    padding: 10px 20px;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #357AB8;
}

.updatepswdbutton {
    border: 1px solid #FF6F6F;
    background-color: #FFF7F2;
}

.authenticatordiv {
    margin: 25px 0 4px;
    font-size: 18px !important;
    color: #555;
}

.vertical-table td,
.vertical-table th {
    border: 1px solid #DEE2E6;
    padding: 8px;
}

.vertical-table th {
    background-color: #F0F0F0;
}

/*Settings pills*/
.nav-pills {
    --bs-nav-pills-border-radius: 0.5rem;
    /* slightly softer */
}

.nav-pills .nav-link {
    background: transparent;
    border: 1px solid transparent;
    color: rgba(71, 85, 105, 0.914);
    /* slate */
    font-weight: 600;
    border-radius: var(--bs-nav-pills-border-radius);
    transition: all 0.15s ease;
}

.nav-pills .nav-link:hover {
    background: rgba(0, 0, 0, 0.04);
}

.nav-pills .nav-link.active {
    background: rgba(37, 156, 204, 0.10);
    /* slightly lighter */
    border: 1px solid rgba(37, 156, 204, 0.30);
    color: #259CCC !important;
    font-weight: 600;
}

/* =========================================================
Todo tabs layout (BS5 tabs)
========================================================= */
#todoTabsNav.nav-pills .nav-link {
    /* layout */
    border-radius: 999px;
    padding: 0.35rem 0.55rem;
    line-height: 1.1;
    background: rgba(45, 81, 107, 0.06);
    color: #2D516B;
    border: 1px solid rgba(45, 81, 107, 0.16);
    box-shadow: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
}

/* icons: slightly soften so text leads */
#todoTabsNav.nav-pills .nav-link img {
    opacity: 0.9;
}

/* hover: gentle, not shouty */
#todoTabsNav.nav-pills .nav-link:hover {
    background: rgba(45, 81, 107, 0.10);
    border-color: rgba(45, 81, 107, 0.24);
    color: #1F3F56;
}

/* active: still branded, but not a solid block */
#todoTabsNav.nav-pills .nav-link.active,
#todoTabsNav.nav-pills .show > .nav-link {
    background: rgba(45, 81, 107, 0.18);
    border-color: rgba(45, 81, 107, 0.45);
    color: #1F3F56;
    /* subtle “pressed / selected” feel */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 1px 2px rgba(15, 23, 42, 0.08);
}

/* keyboard focus: visible but subtle */
#todoTabsNav.nav-pills .nav-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.15rem rgba(45, 81, 107, 0.18);
}

/* optional: make counts feel like a badge without changing markup */
#todoTabsNav.nav-pills .nav-link span {
    white-space: nowrap;
}

#todoTabsNav .cm3-pill-count {
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 0.78em;
    background: rgba(45, 81, 107, 0.14);
    border: 1px solid rgba(45, 81, 107, 0.18);
    color: #2D516B;
}

#todoTabsNav .nav-link.active .cm3-pill-count {
    background: rgba(45, 81, 107, 0.20);
    border-color: rgba(45, 81, 107, 0.28);
    color: #1F3F56;
}

/* Soften INACTIVE pills slightly */
#todoTabsNav.nav-pills .nav-link:not(.active) {
    background: rgba(45, 81, 107, 0.04);
    /* was ~0.06 */
    border-color: rgba(45, 81, 107, 0.12);
    /* was ~0.16 */
    color: rgba(45, 81, 107, 0.85);
}

/* icons on inactive pills */
#todoTabsNav.nav-pills .nav-link:not(.active) img {
    opacity: 0.75;
}

/* hover still gives confidence */
#todoTabsNav.nav-pills .nav-link:not(.active):hover {
    background: rgba(45, 81, 107, 0.09);
    border-color: rgba(45, 81, 107, 0.22);
    color: #1F3F56;
}

.setting-section,
.to-do-section,
.todo-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.setting-section {
    width: calc(100vw - var(--sidebar-width));
}

.todo-panel {
    height: calc(100vh - var(--header-height, 0px));
}

.to-do-section {
    width: calc(100vw - var(--sidebar-width));
    height: calc(100vh - var(--header-height, 0.5em));
}

.todo-panel {
    min-width: 0;
}

/* wrapper inside the column */
#todoTabs {
    min-height: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

/* keep the nav fixed-height, content fills the rest */
#todoTabsNav {
    flex: 0 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-gutter: stable;
}

/* tab content is the vertical scroller (one scroller only) */
#todoTabsContent {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding-right: 1px;
    scrollbar-gutter:stable;
    background-color: #FFFFFF;
}

#todoTabsContent .tab-pane {
    height: 100%;
}

#todoTabsContent .tab-pane.active {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* the table container always fills remaining space */
#todoTabsContent .tab-pane.active .settings-form-container {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: auto;
    scrollbar-gutter: stable;
}

/* =========================================================
Main wrappers + sections
========================================================= */
.main-explorer-wrapper,
.main-todo-wrapper {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.setting-sidebar {
    margin-top: 115px;
}

.charts-section,
.storage-section {
    min-height: 100%;
    height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
}

.storage-section {
    width: calc(100vw - var(--sidebar-width));
    padding: 0 0 5px;
}

.charts-section {
    width: calc(100vw - var(--sidebar-width) - 10px);
    padding: 0 0.5rem 5px 0.4rem;
}

.footer {
    height: var(--footer-height);
    border-top: 1px solid #007ACC;
}

/* =========================================================
Todo list + status colours
========================================================= */
.buttonsdetail {
    list-style: none;
}

.top-button {
    display: inline-block;
    margin-top: 4px;
}

.taskList td a {
    text-decoration: none;
}

.completed {
    color: green;
    text-decoration: line-through;
}

.not-completed {
    color: red;
}

.running {
    color: #000;
}

.completed a {
    color: green;
}

.not-completed a {
    color: red;
}

.running a {
    color: #000;
}

/* =========================================================
Root cause + attachments
========================================================= */
.risks table,
.root-cause-table {
    border-collapse: collapse;
    width: 100%;
}

.root-cause-table {
    box-sizing: border-box;
    border: 2px solid rgba(37, 156, 204, 0.25);
    outline: 0 solid transparent;
    /* outline won't affect layout */
    transition: box-shadow 0.15s ease, outline-color 0.15s ease;
}

/* Hover highlight without size change */
.root-cause-table:hover {
    outline: 2px solid rgba(37, 156, 204, 0.18);
    /* cosmetic only */
    outline-offset: -2px;
    /* keeps it inside border */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* Remove heavy grid borders */
.root-cause-table th,
.root-cause-table td {
    border: none;
    padding: 10px;
}

/* Soft row dividers */
.root-cause-table tbody tr + tr td {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Header styling */
.root-cause-table thead th {
    background-color: #F5F5F5;
    color: #333;
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.sixm-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    white-space: nowrap;
}

.sixm-heading {
    font-weight: 600;
}

/* Checkbox alignment */
.root-cause-table input[type=checkbox] {
    margin: 0;
}

/* Grid view layout */
.sixm-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: start;
}

/* Prevent layout shift on button focus/active */
.sixm-actions .btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    /* critical */
}

/* Use a shadow for focus instead of border width changes */
.sixm-actions .btn-icon:focus, .sixm-actions .btn-icon:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(37, 156, 204, 0.20);
}

.root-cause-table {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

@media (max-width: 991.98px) {
    .sixm-grid {
        grid-template-columns: 1fr;
    }
}

/* In grid view: each table becomes a "card" */
.sixm-grid .root-cause-table {
    max-width: none;
    margin-bottom: 0;
    /* grid handles spacing */
}

.sixm-grid .root-cause-table {
    margin-bottom: 0;
    /* grid controls spacing */
}

/* Wrap each 6M table */
/* wrapper for each table card */
.sixm-card {
    position: relative;
    /* critical: anchor the fish */
}

/* fish watermark top-right */
.sixm-fish {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 18px;
    /* small */
    opacity: 0.35;
    /* subtle */
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    filter: grayscale(100%) brightness(1.1);
    transform: scaleX(-1);
}

.sixm-card:hover .sixm-fish {
    opacity: 0.45;
    transform: translateY(-1px);
}

/* Show fish only in grid mode */
.sixm-fish {
    display: none;
}

.sixm-grid .sixm-fish {
    display: block;
}

/* if your header covers it, push it slightly lower */
.root-cause-table .sixm-header {
    padding-right: 48px;
    /* create space so fish doesn't sit under buttons */
}

.edit-causes,
.edit-five-why {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #007BFF;
    color: #FFF;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
}

.edit-causes:hover,
.edit-five-why:hover {
    background-color: #0056B3;
}

.edit-btn {
    background: 0 0;
    border: 0;
    color: #007BFF;
    cursor: pointer;
    font-size: 1rem;
    margin-left: 10px;
}

.edit-btn:hover {
    text-decoration: underline;
}

#attachedFilesList .attached-file {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1px solid #DEE2E6;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    background-color: #F8F9FA;
}

#attachedFilesList .attached-file a {
    text-decoration: none;
    color: #0D6EFD;
}

#attachedFilesList .attached-file .btn-danger {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
}

/* =========================================================
Explorer layout
========================================================= */
.cm3-filter-group {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.cm3-filter-title {
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem 0.65rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cm3-filter-body {
    padding: 0.5rem 0.65rem;
}

.filter-scroll {
    max-height: 210px;
    overflow: auto;
}

.cm3-filter-footer {
    position: sticky;
    bottom: 0;
    background: #F7F7F7;
    backdrop-filter: blur(6px);
    padding: 0.6rem;
    border-radius: 0.5rem;
    border: 1px solid #CBCBCB;
}

.cm3-active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.cm3-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #FFF;
    font-size: 0.78rem;
}

.cm3-chip button {
    border: 0;
    background: transparent;
    padding: 0;
    line-height: 1;
}

/* CM3 Filters: prevent falling off screen */
.cm3-filters .cm3-filters-body {
    max-height: calc( 100vh - (var(--cm3-header-guess) + var(--cm3-actionbar-guess) + var(--cm3-spacing-guess)) );
    overflow: auto;
    overscroll-behavior: contain;
}

@media (max-width: 768px) {
    .cm3-filters .cm3-filters-body {
        max-height: calc(100vh - 260px);
    }
}

/* Keep your sticky footer always visible inside the scroll area */
.cm3-filters .cm3-filter-footer {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: rgba(243, 246, 251, 0.95);
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.6rem;
    border-radius: 0.5rem;
}

/* Optional: give each group a sensible internal scroll */
.cm3-filters .filter-scroll {
    max-height: 210px;
    overflow: auto;
}

/* =========================================================
Settings layout
========================================================= */
/* This is the scroll container */
.settings-form-container {
    flex: 1 1 auto;
    min-height: 0;
    scrollbar-gutter: stable;
    overflow-x: auto;
    box-sizing: border-box;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter:stable;
    padding-right: 0.25em;
    background-color: #FFFFFF;
}

.capa-wrapper,
.form-container {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.capa-wrapper {
    border: 1px solid #007ACC;
}

#editsummary,
#teamForm {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

/* Progress bar */
.progress-bar {
    position: relative;
    transition: width 0.6s ease;
}

.progress-bar i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

td.goBtnCell {
    vertical-align: bottom !important;
}

.main-account-wrapper {
    min-height: calc(100vh - var(--header-height));
}

.chnage_password,
.create-tag,
.edit-function,
.edit-tag,
.edit-user-details,
.my-account,
.user-details,
add-function {
    min-height: 0;
    height: calc(100vh - var(--header-height) - var(--footer-height));
}

/* Datatable container (second definition preserved later originally) */
.doughnut_chart,
div#rootcausetab {
    max-height: 750px;
    overflow-y: scroll;
}

.create_action_div {
    margin-top: 40px;
    border: 1px solid #B5BCC7;
    padding: 5px;
    width: 75%;
}

a.btn.btn-primary.report_btn {
    margin-bottom: 10px;
}

.userlist {
    margin-top: 23px;
}

.progress_description_div {
    margin-top: 50px;
}

.eye_img {
    min-width: 50px;
}

/* Risks matrix */
.risks table {
    table-layout: fixed !important;
}

.risks td,
.risks th {
    border: 1px solid #CCC;
    padding: 8px;
    vertical-align: middle;
    text-align: center;
    font-size: 13px;
    font-family: Arial, sans-serif;
}

.risks th {
    font-weight: 700;
    color: #036;
    white-space: normal;
    word-wrap: break-word;
    width: 150px;
}

.risks .side {
    background-color: #F5F5F5;
    font-weight: 700;
    width: 160px;
}

.risks .blank {
    border: 0 !important;
    background: 0 0 !important;
}

.risks .horizontal {
    text-align: center;
    border: 0 !important;
    color: #1770B7;
    padding-top: 8px;
}

.verticalCell {
    height: 44px !important;
    width: 131px !important;
    border: 0 #FFF !important;
}

.verticalText {
    border: 0 #FFF !important;
    color: #1770B7 !important;
    transform: rotate(-90deg);
}

/* Heatmap colours */
.low-low {
    background-color: #3AF901;
}

.low-med {
    background-color: #87FA00;
}

.low-high {
    background-color: #CEFB02;
}

.med-low {
    background-color: #FEF001;
}

.med-med {
    background-color: #FFCE03;
}

.med-high {
    background-color: #FD9A01;
}

.high-low {
    background-color: #FD6104;
}

.high-med {
    background-color: #FF2C05;
}

.high-high {
    background-color: #F00505;
}

.capainfoLink img {
    width: 8px;
    height: 8px;
}

.attachment img {
    width: 15px;
    height: 15px;
}

/* =========================================================
Toggle switch
========================================================= */
.user-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.user-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.user-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CCC;
    transition: 0.4s;
    border-radius: 26px;
}

.user-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    transition: 0.4s;
    border-radius: 50%;
}

.user-switch input:checked + .user-slider {
    background-color: #4CAF50;
}

.user-switch input:checked + .user-slider:before {
    transform: translateX(24px);
}

/* =========================================================
Tool sections headings
========================================================= */
.five-why-section h6,
.risks h6,
.tool-section h6 {
    background-color: #EFEFEF;
    background-repeat: repeat-x;
    border: 1px solid #B5BCC7;
    padding: 4px 7px;
    font-size: 15px;
    min-height: 17px;
    box-shadow: 0 0 5px 0 #B6B6B6;
}

.five-why-content {
    background: #FFF;
    border-top: none;
    padding: 5px;
    margin: 5px;
}

#five-why-content {
    border: 1px solid #B5BCC7;
}

.five-why-table {
    border-collapse: collapse;
    margin-top: 10px;
}

.five-why-table td,
.five-why-table th {
    border: 1px solid #CCC !important;
    text-align: left;
}

.five-why-table th {
    background-color: #EAEAEA;
    font-weight: 700;
    color: #333;
}

.five-why-table td {
    background-color: #F9F9F9;
}

.five-why-table input[type=text] {
    margin-bottom: 0;
}

.edituserbutton {
    border: 1px solid #FFB460;
    background-color: #FFF7F2;
    padding: 5px 10px;
    margin: 10px;
}

.six-m-tool-section {
    border: 1px solid #B5BCC7;
    margin-bottom: 10px;
}

/* =========================================================
Todo "more" dropdown + panel transitions
========================================================= */
#todoTabs .cm3-more-tab {
    position: relative;
    z-index: 999999 !important;
}

#todoTabs .cm3-more-menu {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 9999999 !important;
    display: none;
}

#todoTabs .cm3-more-tab.is-open > .cm3-more-menu {
    display: block !important;
}

/* Filters arrow (id-specific) */
#filters-arrow {
    transition: transform 180ms ease;
}

#filters-arrow.filters-rotated {
    transform: rotate(-90deg);
}

/* jQuery UI tab panel transitions */
#todoTabs .ui-tabs-panel {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 180ms ease, transform 180ms ease;
    will-change: opacity, transform;
}

#todoTabs .ui-tabs-panel.cm3-panel-active {
    opacity: 1;
    transform: translateY(0);
}

div.dt-container div.dt-length label {
    text-transform: capitalize;
    padding-top: 5px;
    padding-left: 5px;
    font-size: 10px;
}

div.dt-container div.dt-length select {
    margin-left: 4px !important;
}

div.dt-container div.dt-search label {
    font-size: 12px;
    padding-left: 8px;
}

div.dt-container div.dt-search input {
}

@media (prefers-reduced-motion: reduce) {
    #todoTabs .ui-tabs-panel {
        transition: none;
        transform: none;
    }
}

/* =========================================================
Media queries (kept as-is, just grouped + formatted)
========================================================= */
@media only screen and (min-device-width: 320px) and (max-device-width: 375px) {
    .mobNav {
        margin-top: 45px !important;
    }
    
    .navbar-nav {
        position: relative !important;
    }
    
    .capa-wrapper {
        width: 100% !important;
    }
    
    ul.buttonsdetail {
        margin-left: 13px;
        margin-top: 0;
    }
    
    div#dtab1 {
        margin-top: 85% !important;
    }
    
    ul.buttonsdetail li a {
        margin-top: 4px;
    }
    
    .navSection {
        position: relative !important;
    }
    
    .capa-wrapper {
        margin-top: 10px !important;
    }
    
    .page_title {
        display: block !important;
        width: auto !important;
        white-space: pre-wrap !important;
        word-break: break-word !important;
    }
    
    #follow-link {
        margin-left: 3px !important;
    }
    
    button.navbar-toggler {
        border: 1px solid #000;
        background: rgba(0, 0, 0, 0.55);
        margin-bottom: 7px;
        margin-right: 30px;
    }
    
    img.logo {
        display: none !important;
    }
    
    .setting-section,
    .todo-tab-cotinaer {
        margin-top: 90px !important;
    }
    
    #mobNav {
        width: 100% !important;
    }
    
    .fixed-top {
        position: relative !important;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1030;
    }
    
    .navbar-nav2 {
        margin-left: 0 !important;
    }
    
    .nameMessage {
        top: 66% !important;
    }
    
    .navbar-nav .nav-link {
        float: left !important;
        margin-left: 10px !important;
    }
    
    li.nav-item {
        margin-bottom: 10px;
    }
    
    .storage-section {
        margin-top: 0 !important;
        width: 100% !important;
    }
    
    .issue_raise_container {
        width: 890px !important;
        margin: 10px !important;
    }
    
    a#sendButton {
        margin-top: 10px;
    }
    
    a.btn.btn-primary.report_btn {
        margin-bottom: 10px;
        width: 150px !important;
    }
    
    .form-buttons .report_btn,
    a#sendButton {
        width: 150px !important;
    }
    
    .progress-containment,
    .progress_description_div {
        width: 100%;
    }
}

@media only screen and (min-device-width: 376px) and (max-device-width: 768px) {
    .mobNav {
        margin-top: 45px !important;
    }
    
    .navbar-nav {
        position: relative !important;
    }
    
    .capa-wrapper {
        width: 100% !important;
    }
    
    ul.buttonsdetail {
        margin-left: 13px;
        margin-top: 0;
    }
    
    div#dtab1 {
        margin-top: 60% !important;
    }
    
    ul.buttonsdetail li a {
        margin-top: 4px;
    }
    
    .navSection {
        position: relative !important;
    }
    
    .capa-wrapper {
        margin-top: 10px !important;
    }
    
    .page_title {
        display: block !important;
        width: auto !important;
        white-space: pre-wrap !important;
        word-break: break-word !important;
    }
    
    #follow-link {
        margin-left: 3px !important;
    }
    
    button.navbar-toggler {
        border: 1px solid #000;
        background: rgba(0, 0, 0, 0.55);
        margin-bottom: 7px;
        margin-right: 30px;
    }
    
    img.logo {
        display: none !important;
    }
    
    .todo-tab-cotinaer {
        margin-top: 90px !important;
    }
    
    #mobNav {
        width: 100% !important;
    }
    
    .fixed-top {
        position: relative !important;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1030;
    }
    
    .navbar-nav2 {
        margin-left: 0 !important;
    }
    
    .nameMessage {
        top: 66% !important;
    }
    
    .navbar-nav .nav-link {
        float: left !important;
        margin-left: 10px !important;
    }
    
    li.nav-item {
        margin-bottom: 10px;
    }
    
    .storage-section {
        margin-top: 0 !important;
        width: 100% !important;
    }
    
    .issue_raise_container {
        width: 890px !important;
        margin: 10px !important;
    }
    
    a.btn.btn-primary.report_btn {
        margin-bottom: 0 !important;
    }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 768px) {
    .navbar-nav2 {
        margin-left: 0 !important;
    }
    
    ul.nav.navbar-nav.ml-auto.w-100.justify-content-end {
        display: inline-grid !important;
        margin-top: 40px !important;
        left: 50px !important;
    }
    
    .mobNav {
        margin-top: 70px !important;
    }
    
    .navbar-nav {
        position: relative !important;
    }
    
    .capa-wrapper {
        width: 70% !important;
        margin-top: 70px !important;
    }
    
    ul.buttonsdetail {
        margin-left: 13px;
        margin-top: 0;
    }
    
    div#dtab1 {
        margin-top: 20% !important;
    }
    
    ul.buttonsdetail li a {
        margin-top: 4px;
    }
    
    .navSection {
        position: relative !important;
    }
    
    .page_title {
        margin-bottom: 20px !important;
        display: block !important;
        width: max-content !important;
        white-space: pre-wrap !important;
        word-break: break-word !important;
    }
    
    #follow-link {
        margin-left: 3px !important;
    }
    
    button.navbar-toggler {
        border: 1px solid #000;
        background: rgba(0, 0, 0, 0.55);
        margin-bottom: 7px;
        margin-right: 30px;
    }
    
    img.logo {
        display: none !important;
    }
    
    .todo-tab-cotinaer {
        margin-top: 90px !important;
    }
    
    #mobNav {
        width: 30% !important;
    }
    
    .fixed-top {
        position: relative !important;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1030;
    }
    
    .nameMessage {
        top: 20% !important;
    }
    
    .navbar-nav .nav-link {
        float: left !important;
        margin-left: 10px !important;
    }
    
    li.nav-item {
        margin-bottom: 10px;
    }
    
    .storage-section {
        width: 70%;
    }
    
    .nav.navbar.navbar-expand-md.navbar-dark.mb-4.bg-white.fixed-top {
        padding: 20px;
        height: 150px !important;
    }
    
    .issue_raise_container {
        margin-top: 45px !important;
        width: 80% !important;
    }
    
    .col-md-9.my-account,
    .create_action_div {
        width: 70% !important;
    }
    
    .create_action_div {
        margin-top: 68px !important;
        border: 1px solid #B5BCC7;
        padding: 5px !important;
    }
    
    a#sendButton {
        margin-top: 0 !important;
    }
    
    a.btn.btn-primary.report_btn {
        margin-bottom: 0 !important;
    }
    
    .col-xs-6.col-md-10.manage_team_role_div {
        width: 70%;
        margin-top: 65px;
    }
    
    .progress-containment,
    .progress_description_div {
        margin-top: 50px;
        width: 70%;
    }
}

@media only screen and (min-device-width: 769px) and (max-device-width: 865px) {
    .navbar-nav2 {
        margin-left: 0 !important;
    }
    
    ul.nav.navbar-nav.ml-auto.w-100.justify-content-end {
        display: inline-grid !important;
        margin-top: 40px !important;
        left: 50px !important;
    }
    
    .mobNav {
        margin-top: 70px !important;
    }
    
    .navbar-nav {
        position: relative !important;
    }
    
    .capa-wrapper {
        width: 70% !important;
    }
    
    ul.buttonsdetail {
        margin-left: 13px;
        margin-top: 0;
    }
    
    div#dtab1 {
        margin-top: 73% !important;
    }
    
    ul.buttonsdetail li a {
        margin-top: 4px;
    }
    
    .navSection {
        position: relative !important;
    }
    
    .capa-wrapper {
        margin-top: 70px !important;
    }
    
    .page_title {
        margin-bottom: 20px !important;
        display: block !important;
        width: max-content !important;
        white-space: pre-wrap !important;
        word-break: break-word !important;
    }
    
    #follow-link {
        margin-left: 3px !important;
    }
    
    button.navbar-toggler {
        border: 1px solid #000;
        background: rgba(0, 0, 0, 0.55);
        margin-bottom: 7px;
        margin-right: 30px;
    }
    
    img.logo {
        display: none !important;
    }
    
    .todo-tab-cotinaer {
        margin-top: 90px !important;
    }
    
    #mobNav {
        width: 30% !important;
    }
    
    .fixed-top {
        position: relative !important;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1030;
    }
    
    .nameMessage {
        top: 20% !important;
    }
    
    .navbar-nav .nav-link {
        float: left !important;
        margin-left: 10px !important;
    }
    
    li.nav-item {
        margin-bottom: 10px;
    }
    
    .storage-section {
        width: 70%;
    }
    
    nav.navbar.navbar-expand-md.navbar-dark.mb-4.bg-white.fixed-top {
        padding: 20px;
        height: 150px !important;
    }
    
    .issue_raise_container {
        margin-top: 45px !important;
        width: 80% !important;
    }
    
    .col-md-9.my-account {
        width: 70% !important;
    }
    
    a#sendButton {
        margin-top: 0 !important;
    }
    
    a.btn.btn-primary.report_btn {
        margin-bottom: 0 !important;
    }
    
    .progress-containment,
    .progress_description_div {
        width: 70%;
    }
}

@media only screen and (min-device-width: 866px) and (max-device-width: 1024px) {
    .mobNav {
        margin-top: 30px !important;
    }
    
    .navbar-nav {
        margin-top: 40px !important;
    }
    
    .capa-wrapper {
        width: 76% !important;
    }
    
    ul.buttonsdetail {
        margin-left: 13px;
        margin-top: 0;
    }
    
    div#dtab1 {
        margin-top: 12% !important;
    }
    
    ul.buttonsdetail li a {
        margin-top: 4px;
    }
    
    .navSection {
        position: relative !important;
    }
    
    .capa-wrapper {
        margin-top: 35px !important;
    }
    
    .page_title {
        font-size: 16px !important;
        margin-bottom: 20px !important;
        display: block !important;
        width: max-content !important;
        white-space: pre-wrap !important;
        word-break: break-word !important;
    }
    
    #follow-link {
        margin-left: 3px !important;
    }
    
    button.navbar-toggler {
        border: 1px solid #000;
        background: rgba(0, 0, 0, 0.55);
        margin-bottom: 7px;
        margin-right: 30px;
    }
    
    img.logo {
        display: none !important;
    }
    
    .todo-tab-cotinaer {
        margin-top: 90px !important;
    }
    
    #mobNav {
        width: 250px !important;
    }
    
    .fixed-top {
        position: relative !important;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1030;
        height: 130px;
    }
    
    .navbar-nav2 {
        margin-left: 0 !important;
    }
    
    .nameMessage {
        top: 20% !important;
    }
    
    .navbar-nav .nav-link {
        float: left !important;
        margin-left: 10px !important;
    }
    
    li.nav-item {
        margin-bottom: 10px;
    }
    
    .storage-section {
        margin-top: 35px !important;
        width: 76%;
    }
    
    nav.navbar.navbar-expand-md.navbar-dark.mb-4.bg-white.fixed-top {
        padding: 20px;
        height: 150px !important;
    }
    
    .issue_raise_container {
        margin-top: 45px !important;
        width: 80% !important;
    }
    
    .col-xs-6.col-md-10.chnage_password {
        width: 74%;
    }
    
    .create_action_div {
        border: 1px solid #B5BCC7 !important;
        padding: 5px !important;
        width: 75% !important;
    }
    
    .create_action_div,
    a#sendButton {
        margin-top: 0 !important;
    }
    
    a.btn.btn-primary.report_btn {
        margin-bottom: 0 !important;
    }
    
    .col-xs-6.col-md-10.manage_team_role_div {
        width: 71%;
        margin-top: 45px;
    }
    
    .progress-containment,
    .progress_description_div {
        margin-top: 50px;
        width: 70%;
    }
}

.date-suffix {
    font-size: 0.7em;
    vertical-align: 2px;
    margin-left: 1px;
}

.attached-file {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.attached-file.fade-out {
    opacity: 0;
    transform: translateX(8px);
}

@media only screen and (min-device-width: 1025px) and (max-device-width: 1440px) {
    .mobNav {
        margin-top: 30px !important;
    }
    
    .navSection,
    .navbar-nav {
        position: relative !important;
    }
    
    ul.buttonsdetail {
        margin-left: 13px;
        margin-top: 0;
    }
    
    div#dtab1 {
        margin-top: 16% !important;
    }
    
    ul.buttonsdetail li a {
        margin-top: 4px;
    }
    
    .capa-wrapper {
        margin-top: 36px !important;
        width: 56% !important;
    }
    
    .page_title {
        display: block !important;
        width: max-content !important;
        white-space: pre-wrap !important;
        word-break: break-word !important;
    }
    
    #follow-link {
        margin-left: 3px !important;
    }
    
    button.navbar-toggler {
        border: 1px solid #000;
        background: rgba(0, 0, 0, 0.55);
        margin-bottom: 7px;
        margin-right: 30px;
    }
    
    img.logo {
        display: none !important;
    }
    
    .todo-tab-cotinaer {
        margin-top: 90px !important;
    }
    
    #mobNav {
        width: 250px !important;
    }
    
    .fixed-top {
        position: relative !important;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1030;
    }
    
    .navbar-nav2 {
        margin-left: 0 !important;
    }
    
    .nameMessage {
        top: 20% !important;
    }
    
    .navbar-nav .nav-link {
        float: left !important;
        margin-left: 10px !important;
    }
    
    li.nav-item {
        margin-bottom: 10px;
    }
    
    .storage-section {
        margin-top: 35px !important;
        width: 80%;
    }
    
    nav.navbar.navbar-expand-md.navbar-dark.mb-4.bg-white.fixed-top {
        padding: 20px;
    }
    
    .issue_raise_container {
        margin-top: 45px !important;
        width: 80% !important;
    }
    
    .col-xs-6.col-md-10.chnage_password {
        width: 75%;
    }
    
    a#sendButton {
        margin-top: 0 !important;
    }
    
    a.btn.btn-primary.report_btn {
        margin-bottom: 0 !important;
    }
    
    .col-xs-6.col-md-10.manage_team_role_div {
        width: 82%;
        margin-top: 40px;
    }
    
    .progress-containment,
    .progress_description_div {
        margin-top: 50px;
        width: 70%;
    }
}

/* Grid */
.sixm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (max-width: 991.98px) {
    .sixm-grid {
        grid-template-columns: 1fr;
    }
}

/* Make the normal single-table view not too wide */
.six-m-tool-section .root-cause-table {
    width: 100%;
    max-width: 1100px;
}

.sixm-type {
    font-size: 2rem;
    /* roughly 2× normal */
    font-weight: 700;
    line-height: 1.1;
}

.sixm-label {
    font-size: 1rem;
    /* normal size */
    font-weight: 500;
    color: #64748B;
    /* optional subtle slate tone */
}

/* Header cell */
.sixm-header-cell {
    padding: 0;
    border-bottom: 0;
}

.sixm-header-cell {
    padding: 0 !important;
    border-bottom: 0;
    width: 250px;
    /* avoid double lines */
}

.root-cause-table thead tr:nth-child(2) th {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Flex container */
.sixm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.5rem;
    min-height: 50px;
    /* Forces consistent height */
}

/* Left side title */
.sixm-title {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

/* Large type name */
.sixm-type {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
}

/* Subtitle */
.sixm-label {
    font-size: 1rem;
    font-weight: 500;
    color: #64748B;
}

/* Right side action buttons */
.sixm-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 5-Why start */
/* Grid layout */
.five-why-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (max-width: 991.98px) {
    .five-why-grid {
        grid-template-columns: 1fr;
    }
}

/* Card */
.five-why-card {
    position: relative;
    border: 2px solid rgba(0, 0, 0, 0.16);
    border-radius: 14px;
    background: #FFF;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    margin-bottom: 0.75rem;
    transition: box-shadow 0.15s ease;
}

.five-why-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(37, 156, 204, 0.25) inset;
}

/* Watermark */
.five-why-mark {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    font-size: 1.25rem;
    opacity: 0.18;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

/* Header */
.five-why-card-header {
    position: relative;
    z-index: 2;
    padding: 0.6rem 0.75rem;
    background: #F5F5F5;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.five-why-header-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.five-why-card-title {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    min-width: 220px;
}

.five-why-card-type {
    font-weight: 800;
    font-size: 1.05rem;
}

.five-why-card-sub {
    font-weight: 600;
    opacity: 0.75;
}

/* Buttons next to title */
.five-why-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.25rem;
    position: relative;
    z-index: 3;
}

/* IMPORTANT: scoped icon button styling (no global .btn.btn-icon) */
.five-why-actions .btn.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: #FFF;
    border-radius: 10px;
    line-height: 1;
}

.five-why-actions .btn.btn-icon:hover {
    background: rgba(37, 156, 204, 0.08);
}

/* Table */
.five-why-card .five-why-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.five-why-card .five-why-table th,
.five-why-card .five-why-table td {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.6rem 0.75rem;
}

.five-why-card .five-why-table thead th {
    background: #FFF;
    font-weight: 700;
}

/* 5-Why end */
.btn.btn-icon i {
    font-size: 1rem;
}

.btn.btn-icon:hover {
    background: rgba(37, 156, 204, 0.08);
}

/* Icon buttons */
.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #FFF;
    transition: all 0.15s ease;
}

/* Hover effects */
.btn-edit:hover {
    background: rgba(37, 156, 204, 0.12);
    border-color: rgba(37, 156, 204, 0.3);
}

.btn-save:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
}

.btn-stop:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
}

@media only screen and (min-device-width: 1441px) and (max-device-width: 2560px) {
    ul.buttonsdetail {
        margin-left: 13px;
        margin-top: 0;
    }
    
    ul.buttonsdetail li a {
        margin-top: 4px;
    }
    
    #follow-link {
        margin-left: 3px !important;
    }
    
    button.navbar-toggler {
        border: 1px solid #000;
        background: rgba(0, 0, 0, 0.55);
        margin-bottom: 7px;
        margin-right: 30px;
    }
    
    .cm3-toast-enhanced .toast-body {
        align-items: center;
    }
    
    .cm3-toast-enhanced .toast-body i.bi {
        font-size: 1.4rem;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .cm3-toast-enhanced .cm3-toast-msg {
        line-height: 1.35;
    }
    
    .todo-tab-cotinaer {
        margin-top: 90px !important;
    }
    
    .navbar-nav .nav-link {
        float: left !important;
        margin-left: 10px !important;
    }
    
    li.nav-item {
    }
    
    .minitable {
        margin-left: auto;
    }
    
    .minitable,
    .navbar-nav2 {
        float: right !important;
        position: absolute !important;
        right: 350px !important;
    }
    
    nav.navbar.navbar-expand-md.navbar-dark.mb-4.bg-white.fixed-top {
        padding: 20px;
    }
    
    .navbar-nav {
        position: relative !important;
        padding-top: 30px !important;
    }
    
    .page_title {
        display: block !important;
        width: max-content !important;
        white-space: pre-wrap !important;
        word-break: break-word !important;
    }
    
    .fixed-top {
        position: relative !important;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1030;
    }
    
    .navbar-nav2 {
        margin-left: 0 !important;
    }
    
    .nameMessage {
        top: 21% !important;
    }
    
    .issue_raise_container {
        margin-top: 45px !important;
        width: 80% !important;
    }
    
    .user-details-wrapper {
        min-height: calc(100vh - var(--header-height, 20px));
    }
    
    .col-xs-6.col-md-10.chnage_password,
    .col-xs-6.col-md-10.manage_team_role_div {
        width: 82%;
    }
    
    a.btn.btn-primary.report_btn {
        margin-bottom: 0 !important;
    }
    
    .col-xs-6.col-md-10.manage_team_role_div {
        margin-top: 40px;
    }
    
    .progress-containment,
    .progress_description_div {
        margin-top: 50px;
        width: 70%;
    }
}

/* Fade entire row text except last column (Modify) */
.field-hidden td:not(:last-child) {
    color: #6C757D;
    /* Bootstrap secondary */
}

/* Optional: soften badge even more */
.field-hidden .badge {
    opacity: 0.7;
}

/* =========================================================
Responsive sidebar toggle
========================================================= */
@media (max-width: 1290px) {
    #mobNav {
        display: block !important;
        position: fixed !important;
        top: calc(var(--header-height)) !important;
        left: 0 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.25s ease-out !important;
        z-index: 999 !important;
        overflow-y: hidden !important;
    }
    
    #mobNav.is-open {
        transform: translateX(0) !important;
        -moz-box-shadow: 5px 5px 11px #494949;
        -webkit-box-shadow: 5px 5px 11px #494949;
        box-shadow: 5px 5px 11px #494949;
    }
    
    .setting-section,
    .to-do-section {
        left: 0 !important;
        width: 100vw !important;
    }
    
    .form-container,
    .explore_section {
        width: 100vw !important;
    }
    
    .navSection {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        overflow-y: hidden;
        transform: translateX(-100%);
        transition: transform 0.28s ease;
    }
    
    .navSection.active {
        display: block !important;
        transform: translateX(0) !important;
    }
    
    .sidebarToggleBtn {
        display: inline-block !important;
        position: fixed;
        top: 0.75rem;
        left: 0;
        z-index: 1050;
        width: 26px;
        height: 50px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #FFF;
        border-radius: 0 3px 3px 0;
        cursor: pointer;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
        padding: 2px;
        border-right: 1px solid #000;
        border-top: 1px solid #000;
        border-bottom: 1px solid #000;
        border-left: 1px solid transparent;
    }
    
    .sidebarToggleBtn .burger {
        position: relative;
        display: block;
        width: 18px;
        height: 2px;
        background-color: #1E5AA8;
        border-radius: 2px;
        transition: background-color 0.2s ease;
    }
    
    .sidebarToggleBtn .burger::after,
    .sidebarToggleBtn .burger::before {
        content: "";
        position: absolute;
        left: 0;
        width: 18px;
        height: 2px;
        background-color: #1E5AA8;
        border-radius: 2px;
        transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
    }
    
    .sidebarToggleBtn .burger::before {
        top: -6px;
    }
    
    .sidebarToggleBtn .burger::after {
        top: 6px;
    }
    
    .sidebarToggleBtn[aria-expanded=true] .burger {
        background-color: transparent;
    }
    
    .sidebarToggleBtn[aria-expanded=true] .burger::after,
    .sidebarToggleBtn[aria-expanded=true] .burger::before {
        top: 0;
    }
    
    .sidebarToggleBtn[aria-expanded=true] .burger::before {
        transform: rotate(45deg);
    }
    
    .sidebarToggleBtn[aria-expanded=true] .burger::after {
        transform: rotate(-45deg);
    }
    
    .sidebarToggleBtn:active,
    .sidebarToggleBtn:focus {
        outline: 0;
    }
    
    .nav-overlay {
        display: none !important;
        position: fixed !important;
        inset: 0;
        background: rgba(0, 0, 0, 0.4) !important;
        z-index: 900 !important;
    }
    
    .nav-overlay.show {
        display: block !important;
    }
    
    .form-check-input:checked {
        background-color: #0D6EFD;
        border-color: #0D6EFD;
    }
    
    .cm3-login-wrap {
        margin-left: 0;
    }
    
    h1,
    h1 span {
        white-space: normal;
        /* allow wrapping */
        word-break: break-word;
        /* break long words */
        overflow-wrap: anywhere;
        /* modern, safest */
    }
    
    #todoTabsNav.nav-pills .nav-link {
        padding-top: 0.20rem;
        padding-bottom: 0.20rem;
    }
    
    div.dt-container div.dt-length label {
        display: none !important;
    }
    
    div.dt-container div.dt-length select {
        display: none !important;
    }
    
    div.dt-container div.dt-search input {
        float: left;
    }
    
    @media (max-width: 575.98px) {
        .header-logo {
            height: 30px;
        }
    }
}
