html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    padding-top: 70px;
}

/* Charts layout */
.charts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}

.chart {
    flex: 1 1 420px;
    min-width: 360px;
    height: 360px;
    max-width: 600px;
}

h2 {
    margin-bottom: 24px;
}

h3 {
    margin-top: 48px;
}

h4 {
    margin-top: 24px;
}

/* ============================================
   Tick2Tick Theme Presets
   ============================================ */
:root {
    --t2t-primary-color: #4A0404;
    --t2t-primary-hover: #3a634f;
    --t2t-primary-active: #274036;
}

/* ============================================
   Tick2Tick solid button
   ============================================ */
.btn-t2t {
    color: #fff;
    background-color: var(--t2t-primary-color);
    border-color: var(--t2t-primary-color);
    transition: all .15s ease-in-out;
}

    .btn-t2t:hover,
    .btn-t2t:focus {
        color: #fff;
        background-color: var(--t2t-primary-hover);
        border-color: var(--t2t-primary-hover);
    }

    .btn-t2t:active {
        color: #fff;
        background-color: var(--t2t-primary-active);
        border-color: var(--t2t-primary-active);
    }

    .btn-t2t:disabled,
    .btn-t2t.disabled {
        color: #fff;
        background-color: var(--t2t-primary-color);
        border-color: var(--t2t-primary-color);
        opacity: .65;
    }

/* ============================================
   Tick2Tick outline button
   ============================================ */
.btn-outline-t2t {
    color: var(--t2t-primary-color);
    border: 1px solid var(--t2t-primary-color);
    background-color: transparent;
    font-weight: 500;
    transition: all .15s ease-in-out;
}

    .btn-outline-t2t:hover,
    .btn-outline-t2t:focus {
        color: #fff;
        background-color: var(--t2t-primary-color);
        border-color: var(--t2t-primary-color);
    }

    .btn-outline-t2t:active {
        color: #fff;
        background-color: var(--t2t-primary-active);
        border-color: var(--t2t-primary-active);
    }

    .btn-outline-t2t:disabled,
    .btn-outline-t2t.disabled {
        color: var(--t2t-primary-color);
        background-color: transparent;
        border-color: var(--t2t-primary-color);
        opacity: .65;
    }

/* ============================================
   Tick2Tick solid danger button
   ============================================ */
.btn-danger-t2t {
    color: #fff;
    background-color: #dc3545; /* Standard Danger Red */
    border-color: #dc3545;
    transition: all .15s ease-in-out;
}

    .btn-danger-t2t:hover,
    .btn-danger-t2t:focus {
        color: #fff;
        background-color: #bb2d3b; /* Darker red */
        border-color: #b02a37;
    }

    .btn-danger-t2t:active {
        color: #fff;
        background-color: #b02a37;
        border-color: #a52834;
    }

    .btn-danger-t2t:disabled,
    .btn-danger-t2t.disabled {
        color: #fff;
        background-color: #dc3545;
        border-color: #dc3545;
        opacity: .65;
    }

/* ============================================
   Tick2Tick outline danger button
   ============================================ */
.btn-outline-danger-t2t {
    color: #dc3545;
    border: 1px solid #dc3545;
    background-color: transparent;
    font-weight: 500;
    transition: all .15s ease-in-out;
}

    .btn-outline-danger-t2t:hover,
    .btn-outline-danger-t2t:focus {
        color: #fff;
        background-color: #dc3545;
        border-color: #dc3545;
    }

    .btn-outline-danger-t2t:active {
        color: #fff;
        background-color: #b02a37;
        border-color: #b02a37;
    }

    .btn-outline-danger-t2t:disabled,
    .btn-outline-danger-t2t.disabled {
        color: #dc3545;
        background-color: transparent;
        border-color: #dc3545;
        opacity: .65;
    }

/* ============================================
   Tick2Tick Navbar Theme
   ============================================ */
.navbar-t2t {
    background-color: var(--t2t-primary-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

    .navbar-t2t .navbar-brand,
    .navbar-t2t .nav-link,
    .navbar-t2t .dropdown-toggle {
        color: #fff !important;
        transition: color .15s ease-in-out, background-color .15s ease-in-out;
    }

        .navbar-t2t .nav-link:hover,
        .navbar-t2t .nav-link:focus,
        .navbar-t2t .dropdown-toggle:hover,
        .navbar-t2t .dropdown-toggle:focus {
            color: #e2e8e2 !important;
        }

    /* Mobile toggler */
    .navbar-t2t .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.25);
    }

    .navbar-t2t .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    /* Optional dropdown hover (if used) */
    .navbar-t2t .dropdown-menu {
        background-color: #fff;
    }

    .navbar-t2t .dropdown-item:hover {
        background-color: var(--t2t-primary-color);
        color: #fff;
    }

.dropdown-item.text-dark:hover {
    color: #fff !important;
}

/* ============================================
   Tick2Tick Account Nav (Manage / Settings)
   ============================================ */
.nav-t2t .nav-link {
    color: var(--t2t-primary-color);
    border-radius: 6px;
    transition: all 0.15s ease-in-out;
}

    .nav-t2t .nav-link:hover,
    .nav-t2t .nav-link:focus {
        color: #fff;
        background-color: var(--t2t-primary-hover);
    }

    .nav-t2t .nav-link.active {
        color: #fff;
        background-color: var(--t2t-primary-color);
        border-color: var(--t2t-primary-color);
    }

/* ============================================
   Tick2Tick Text Color
   ============================================ */
.text-t2t {
    color: var(--t2t-primary-color) !important;
}

.text-t2t-hover:hover {
    color: var(--t2t-primary-hover) !important;
}

/* ============================================
   Tick2Tick Links and Checkboxes
   ============================================ */

/* --- Links --- */
a.t2t-link,
a.t2t-link:link,
a.t2t-link:visited {
    color: var(--t2t-primary-color);
    transition: color 0.15s ease-in-out;
}

    a.t2t-link:hover,
    a.t2t-link:focus {
        color: var(--t2t-primary-hover);
        text-decoration: underline;
    }

/* --- Checkboxes --- */
.form-check-input.t2t-check {
    border: 1.8px solid var(--t2t-primary-color);
    width: 1.1em;
    height: 1.1em;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

    .form-check-input.t2t-check:checked {
        background-color: var(--t2t-primary-color);
        border-color: var(--t2t-primary-color);
    }

    .form-check-input.t2t-check:focus {
        box-shadow: 0 0 0 0.15rem rgba(48, 82, 67, 0.25);
        border-color: var(--t2t-primary-hover);
    }

/* ============================================
   Tick2Tick Form Controls
   ============================================ */
.form-control:focus {
    border-color: var(--t2t-primary-color);
    box-shadow: 0 0 0 0.2rem rgba(48, 82, 67, 0.25); /* subtle green glow */
    outline: 0;
}

.t2t-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 40px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    padding: 0;
    position: relative;
}

    .t2t-icon-btn i {
        font-size: 22px;
        color: white;
        line-height: 1;
    }

/* Base dropdown look */
#notificationDropdown {
    width: 400px !important; /* wider */
    color: #000;
    max-height: 50vh;
    flex-direction: column; /* allow internal sections to size properly */
}

    /* Make sure all text defaults to dark */
    #notificationDropdown .dropdown-header,
    #notificationDropdown .dropdown-item,
    #notificationDropdown li,
    #notificationDropdown .small {
        color: #000 !important;
    }

    /* Allow wrapping for long messages */
    #notificationDropdown .dropdown-item {
        white-space: normal;
        border-radius: 8px;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

        /* Hover effect: dark background + white text */
        #notificationDropdown .dropdown-item:hover {
            background-color: var(--t2t-primary-color); /* deep green tone like your screenshot */
            color: #fff !important;
        }

            /* Ensure inner text (title, small, link) also turns white */
            #notificationDropdown .dropdown-item:hover .fw-semibold,
            #notificationDropdown .dropdown-item:hover .small,
            #notificationDropdown .dropdown-item:hover a {
                color: #fff !important;
            }

            /* Optional: make the check button visible against dark bg */
            #notificationDropdown .dropdown-item:hover button {
                border-color: #fff !important;
                color: #fff !important;
            }

    /* Widen the dropdown shadow slightly for balance */
    #notificationDropdown.shadow-sm {
        box-shadow: 0 4px 12px rgba(0,0,0,.25) !important;
    }

 Scrollable notification list area 
#notificationList {
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 60px;
}

/* Tighter badge placement */
.t2t-badge {
    position: absolute;
    top: -4px; /* tweak 2–4px to taste */
    right: 5px; /* tweak 2–6px to taste */
    transform: none; /* cancel the big 50% translate */
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#notificationClearAll.btn.btn-sm {
    padding: .15rem .5rem;
}

.grid-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap; /* allow wrapping on mobile */
}

.grid-box {
    flex: 1 1 45%; /* two grids side-by-side on desktop */
    min-width: 300px; /* forced stacking below this width */
}

@media (max-width: 768px) {
    .grid-box {
        flex: 1 1 100%; /* full width on mobile */
    }
}

.t2t-section-block {
    display: block;
    width: 100%;
    margin-bottom: 24px; /* space between the two sections */
}

    .t2t-section-block > div:first-child {
        margin-bottom: 8px; /* space between checkbox and its grids */
    }

.two-column {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

    .two-column .column {
        flex: 1;
        min-width: 300px;
    }

@media (max-width: 768px) {
    .two-column {
        flex-direction: column;
    }
}

.dropDownContainer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.dropDownLabel {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.split-two {
    display: flex;
    width: 100%;
    gap: 20px;
    flex-wrap: wrap;
}

.left-side,
.right-side {
    flex: 1 1 400px;
    min-width: 0;
}

@media (max-width: 768px) {
    .split-two {
        flex-direction: column;
        gap: 0;
        row-gap: 20px;
    }

    .left-side,
    .right-side {
        flex: auto;
        width: 100%;
    }
}

.split-three {
    display: flex;
    width: 100%;
    gap: 20px;
    flex-wrap: wrap;
}

    .split-three > .col {
        flex: 1 1 320px; /* 3 columns on wide screens */
        min-width: 0; /* prevent overflow */
    }

@media (max-width: 768px) {
    .split-three {
        flex-direction: column;
        gap: 0;
        row-gap: 20px;
    }

        .split-three > .col {
            flex: auto;
            width: 100%;
        }
}

/*signal viuslaization*/
.dx-datagrid-detail-row > td {
    padding: 0 !important;
}

.master-detail-sticky-wrapper {
    position: sticky;
    left: 0;
    width: calc(100vw - 200px);
    max-width: 100%;
    overflow: hidden;
    background-color: white;
    z-index: 1;
}

/* 1. Reset the header panel to allow overflow */
.dx-datagrid-header-panel {
    overflow: hidden;
}

    /* 2. Make the toolbar container scrollable */
    .dx-datagrid-header-panel .dx-toolbar {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        display: block; /* Override default flex to control layout */
        white-space: nowrap; /* Prevent items from wrapping to new lines */
    }

    /* 3. Align toolbar sections inline */
    .dx-datagrid-header-panel .dx-toolbar-items-container {
        display: flex !important;
        flex-direction: row !important;
        width: max-content; /* Critical: allows container to be wider than the screen */
        min-width: 100%;
    }

    /* 4. Remove absolute positioning so items sit side-by-side */
    .dx-datagrid-header-panel .dx-toolbar-before,
    .dx-datagrid-header-panel .dx-toolbar-after,
    .dx-datagrid-header-panel .dx-toolbar-center {
        position: static !important;
        display: flex !important;
        flex-shrink: 0; /* Prevent buttons from squishing */
        vertical-align: middle;
    }

    /* 5. Custom Scrollbar Styling (Optional but recommended for visibility) */
    .dx-datagrid-header-panel .dx-toolbar::-webkit-scrollbar {
        height: 4px;
    }

    .dx-datagrid-header-panel .dx-toolbar::-webkit-scrollbar-thumb {
        background: rgba(48, 82, 67, 0.3); /* Matches your --t2t-primary-color */
        border-radius: 10px;
    }

.floating-docs-btn {
    position: fixed;
    /* Adjusted to match Silktide's 10px spacing */
    bottom: 10px;
    right: 10px;
    /* Exact dimensions from #silktide-cookie-icon */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /* Background and Color */
    background-color: var(--t2t-primary-color);
    color: white !important;
    /* Flex alignment */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Matching Silktide shadow and behavior */
    text-decoration: none !important;
    box-shadow: 0px 0px 6px 0px #0000001a;
    z-index: 99999; /* Matched to Silktide wrapper z-index */
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    padding: 0;
}

    /* Tooltip - Adjusted position to account for the tighter 10px button margin */
    .floating-docs-btn .tooltip-text {
        visibility: hidden;
        width: 180px;
        background-color: #333;
        color: #fff;
        text-align: center;
        border-radius: 8px;
        padding: 8px 12px;
        position: absolute;
        z-index: 100000;
        bottom: 75px; /* Positioned above the 60px button + gap */
        right: 0;
        opacity: 0;
        transition: opacity 0.3s, transform 0.3s;
        font-size: 13px;
        line-height: 1.4;
        font-family: Helvetica Neue, Segoe UI, Arial, sans-serif; /* Matched font */
        pointer-events: none;
        transform: translateY(10px);
        box-shadow: -5px 5px 10px 0px #00000012; /* Matched Silktide box shadow */
    }

        /* The arrow on the tooltip */
        .floating-docs-btn .tooltip-text::after {
            content: "";
            position: absolute;
            top: 100%;
            right: 22px; /* Centered better to the button */
            border-width: 6px;
            border-style: solid;
            border-color: #333 transparent transparent transparent;
        }

    /* Hover interactions */
    .floating-docs-btn:hover {
        transform: scale(1.05); /* Slightly more subtle scale to match UI feel */
        background-color: var(--t2t-primary-hover);
        /* Slightly stronger shadow on hover */
        box-shadow: 0px 4px 12px 0px #0000002a;
    }

        .floating-docs-btn:hover .tooltip-text {
            visibility: visible;
            opacity: 1;
            transform: translateY(0);
        }

    /* Icon size - Silktide uses standard SVG scaling, 24px is a good match */
    .floating-docs-btn i {
        font-size: 24px;
        line-height: 1;
        display: block;
    }