        .dropdown-toggle::after {
            display: none !important;
        }
                html, body {
            overflow-x: hidden;
            height:100%;
            background-color: #ededed
        }
        body {
            font-family: 'Public Sans', sans-serif;
            font-size:15px;
            height: 100vh
        }
        :root {
            --ui-radius: 10px;
        }
        body.offcanvas-open {
            position: fixed;
            width: 100%;
            overflow-x: hidden !important;
        }
        .mobile-nav {
            background:#fff
        }
        .helios-logo {
            content: url("/assets/img/logo_helios_light.webp");
        }
        #mobileHeader {
            height:64px;
            z-index:1200;
            background:#264773;
            backdrop-filter:blur(6px);
        }
        .helios-hover-lift {
            transition: transform .12s ease, box-shadow .12s ease;
        }
        .helios-hover-lift:hover {
            transform: translateY(-1px);
            box-shadow: 0 .25rem .75rem rgba(0,0,0,.05);
        }
        .helios-badge {
            font-size: .65rem;
            font-weight: 500;
            padding: .15rem .4rem;
            border-radius: .375rem;
            background: #f1f3f5;
            color: #6c757d;
        }
        .dataTables_wrapper {
            overflow: visible!important;
        }
        .form-control-warning {
            background-color: #fff8e1;
            border: 1px solid #f0c36d;
            color: #000;
        }
        .helios-avatar {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            color: #fff;
            background: var(--helios-avatar-bg, #6c757d);
            border-radius: 10px;
            overflow: hidden;
            flex-shrink: 0;
        }

        .helios-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Sizes */
        .helios-avatar-sm { width: 32px; height: 32px; font-size: 0.75rem; }
        .helios-avatar-md { width: 48px; height: 48px; font-size: 0.95rem; }
        .helios-avatar-lg { width: 96px; height: 96px; font-size: 1.5rem; }
        .no-first-spacing > :first-child {
            margin-top: 0;
            padding-top: 0;
        }
        .no-last-spacing > :last-child {
            margin-bottom: 0;
            padding-bottom: 0;
        }
        .helios-clickable-rows tbody tr.session-row {
            cursor: pointer;
        }
        .helios-clickable-rows tbody tr.session-row:hover {
            background-color: rgba(0, 0, 0, 0.025);
        }
        .helios-clickable-rows tbody tr.known-ip-row,
        #knownIpsTable tbody tr.known-ip-row {
            cursor: pointer;
        }
        .helios-clickable-rows tbody tr.known-ip-row:hover,
        #knownIpsTable tbody tr.known-ip-row:hover {
            background-color: rgba(0, 0, 0, 0.025);
        }
        tr.user-separator {
            pointer-events: none;
        }
        #suspiciousSessionsModal tbody tr {
            cursor: pointer;
        }
        #suspiciousSessionsModal tbody tr:hover {
            background-color: rgba(0, 0, 0, 0.03);
        }
        .device-list-item {
            padding: .5rem .75rem;
            border-bottom: 1px solid var(--bs-border-color);
        }
        /* Ensure Select2 uses Public Sans everywhere, including placeholder */
        .select2-container,
        .select2-container * {
            font-family: 'Public Sans', sans-serif !important;
        }
        .select2-container--default
        .select2-selection__placeholder {
            font-family: 'Public Sans', sans-serif !important;
        }
        .select2-results__group {
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            color: rgba(26, 49, 80, 0.55);
            padding: 8px 12px 4px;
            background: transparent;
        }
        .select2-results__option {
            padding: 6px 12px;
            font-size: 15px;
            line-height: 1.4;
        }
        .select2-selection__choice {
            background: rgba(37, 70, 114, 0.12) !important;
            border: 1px solid rgba(37, 70, 114, 0.35) !important;
            color: #254672 !important;
            font-weight: 500;
        }
        .select2-results__option--highlighted {
            background-color: rgba(26, 49, 80, 0.08) !important;
        }
        .select2-results__option[aria-selected="true"] {
            background-color: rgba(26, 49, 80, 0.16) !important;
            font-weight: 600;
        }
        /* Default: netjes afgerond */
        .helios-collapsible {
            border-radius: .5rem;
            overflow: hidden;
        }

        /* Als de collapse OPEN is */
        .helios-collapsible
        .card-header
        button[aria-expanded="true"] {
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
        }

        /* Als de collapse DICHT is → card blijft mooi afgerond */
        .helios-collapsible
        .card-header
        button[aria-expanded="false"] {
            border-radius: .5rem;
        }
        /* Basis: geen dubbele randen */
        .helios-collapsible .card-header {
            border-bottom: 0;
        }

        /* Alleen als de collapse OPEN is, weer een scheidingslijn */
        .helios-collapsible .card-header:focus-within {
            border-bottom: 1px solid var(--bs-border-color);
        }
        .visually-hidden {
            position: absolute !important;
            width: 1px !important;
            height: 1px !important;
            padding: 0 !important;
            margin: -1px !important;
            overflow: hidden !important;
            clip: rect(0,0,0,0) !important;
            white-space: nowrap !important;
            border: 0 !important;
        }

        /* Filter dropdown refinements */
        .dropdown-menu .filter-item {
            margin: 0;
        }

        .dropdown-menu .filter-item:hover {
            background-color: rgba(0, 0, 0, 0.025);
        }

        .dropdown-menu .filter-item input:checked ~ .filter-count,
        .dropdown-menu .filter-item input:checked + .form-check-label {
            font-weight: 500;
        }

        .dropdown-menu .filter-item input:checked {
            /* no visual checkbox, but keeps state */
        }

        .dropdown-menu .filter-item input:checked ~ * {
            /* hook for future styling if needed */
        }

        .dropdown-menu .filter-item input:checked {
            /* no-op, state carrier only */
        }

        .dropdown-menu .filter-item input:checked ~ .filter-count {
            color: #000;
        }
        #activeFilters .remove-icon {
            margin-left: .35rem;
        }
        .helios-segmented .btn {
            border-radius: 0 !important;
        }
        .helios-segmented .btn.is-selected {
            background-color: rgba(var(--bs-primary-rgb), .12);
            color: var(--bs-primary);
            border-color: rgba(var(--bs-primary-rgb), .35);
        }
        .helios-segmented.btn-group-vertical .btn:first-of-type {
            border-top-left-radius: 10px !important;
            border-top-right-radius: 10px !important;
        }
        .helios-segmented.btn-group-vertical {
            border-top: 1px solid var(--bs-border-color);
            border-top-left-radius: 10px !important;
            border-top-right-radius: 10px !important;
        }
        .helios-segmented.btn-group-vertical {
            border-top: 1px solid var(--bs-border-color);
            border-top-left-radius: 10px !important;
            border-top-right-radius: 10px !important;
        }
        .helios-segmented .btn.is-selected,
        .helios-segmented label.btn.is-selected {
            background-color: #254672;
            border-color: #254672;
            color: #ffffff;
        }
        .helios-segmented.btn-group-vertical .btn:first-of-type {
            border-top-width: 1px!important;
        }
        .helios-segmented.btn-group-vertical .btn:last-of-type {
            border-bottom-left-radius: 10px !important;
            border-bottom-right-radius: 10px !important;
        }
        .helios-segmented.btn-group:not(.btn-group-vertical) .btn:first-of-type {
            border-top-left-radius: 10px !important;
            border-bottom-left-radius: 10px !important;
        }
        .helios-segmented.btn-group:not(.btn-group-vertical) .btn:last-of-type {
            border-top-right-radius: 10px !important;
            border-bottom-right-radius: 10px !important;
        }
        span.small {
            font-size:12px;
        }
        .rounded {
            border-radius:10px;
        }
        /* Cards */
        .card:not(.rounded):not(.rounded-pill) {
            border-radius: var(--ui-radius);
        }
        .card:not(.rounded):not(.rounded-pill) {
            border-radius: var(--ui-radius);
        }
        .card:not(.rounded):not(.rounded-pill) .card-header {
            border-top-left-radius: inherit;
            border-top-right-radius: inherit;
        }
        .card:not(.rounded):not(.rounded-pill) .card-footer {
            border-bottom-left-radius: inherit;
            border-bottom-right-radius: inherit;
        }
        .alert:not(.rounded):not(.rounded-pill) {
            border-radius: var(--ui-radius);
        }
        .btn:not(.rounded):not(.rounded-pill) {
            border-radius: var(--ui-radius);
        }
        .dropdown-menu:not(.rounded):not(.rounded-pill) {
            border-radius: var(--ui-radius);
        }
        .modal-content:not(.rounded):not(.rounded-pill) {
            border-radius: var(--ui-radius);
        }
        .form-control-plaintext {
            padding: .375rem .75rem;
            background-color: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 10px;
            color: #495057;
        }

        /* Slightly dim truly readonly values */
        .form-control-plaintext[readonly] {
            opacity: .9;
        }
        .form-control:not(.rounded):not(.rounded-pill),
        .form-select:not(.rounded):not(.rounded-pill) {
            border-radius: var(--ui-radius);
        }
        .badge:not(.rounded):not(.rounded-pill) {
            border-radius: calc(var(--ui-radius) / 1.5);
        }
        .no-focus-ring:focus,
        .no-focus-ring:focus-visible,
        .no-focus-ring:focus:not(:focus-visible) {
            outline: none !important;
            box-shadow: none !important;
        }
        .no-focus-ring {
            -webkit-tap-highlight-color: transparent;
        }
        .dropdown-menu.dropdown-menu-primary {
            background:#254774!important;
        }
        .dropdown-menu.dropdown-menu-primary li .dropdown-item {
            font-weight:500!important
        }
        .badge {
            display: inline-flex;
            align-items: center;
            line-height: 1;
            vertical-align: middle;
        }
        .timeline {
            position: relative;
            padding-left: 24px;
        }
        .timeline::before {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            left: 8px;
            width: 2px;
            background: rgba(0,0,0,.1);
        }
        .timeline-marker {
            position: relative;
            width: 16px;
            flex-shrink: 0;
        }
          .timeline-dot {
              position: absolute;
              left: -20px;
              top: 10px;
              z-index: 1;
              width: 10px;
              height: 10px;
              background: #6c757d;
              border-radius: 50%;
          }
          .card-body-update ul:last-child,
          .card-body-update p:last-child {
              margin-bottom: 0;
          }
        /* Must beat Bootstrap utility classes like .d-flex { display:flex !important; } */
        .timeline-item.is-hidden {
            display: none !important;
        }
        .card-body.card-body-preview p:last-child,
        .card-body.card-body-preview ul:last-child,
        .card-body.card-body-preview ol:last-child {
            margin-bottom:0
        }
        th[data-sort] {
            cursor: pointer;
            user-select: none;
            position: relative;
            padding-right: 18px;
        }
        th[data-sort]::after {
            content: "⇅";
            font-size: 10px;
            opacity: 0.35;
            position: absolute;
            right: 6px;
            top: 50%;
            transform: translateY(-50%);
        }
        th[data-sort].sort-asc::after {
            content: "▲";
            opacity: 1;
        }
        th[data-sort].sort-desc::after {
            content: "▼";
            opacity: 1;
        }
        .chart-container {
            position: relative;
            height: 180px; /* desktop */
        }
        .badge.bg-info {
            background-color: #8ab2d2 !important;
            color: #ffffff;
        }
        .alert-info {
            background-color: #e6f0f7;
            border: 1px solid #8ab2d2;
            color: #1a3150;
        }
        .drag-zone,
        .drag-handle {
            cursor: grab;
        }
        .drag-zone:active,
        .drag-handle:active {
            cursor: grabbing;
        }
        [data-sortable-item] {
            user-select: none;
        }
        .component-override {
            background-color: rgba(0, 0, 0, 0.012);
            background-image: linear-gradient(
                45deg,
                rgba(0, 0, 0, 0.015) 25%,
                transparent 25%,
                transparent 50%,
                rgba(0, 0, 0, 0.015) 50%,
                rgba(0, 0, 0, 0.015) 75%,
                transparent 75%,
                transparent
            );
            background-size: 1rem 1rem;
        }
        .component-maintenance {
            background-color: rgba(138, 178, 210, 0.06); /* zeer licht Helios-blauw */
            background-image: linear-gradient(
                45deg,
                rgba(138, 178, 210, 0.08) 25%,
                transparent 25%,
                transparent 50%,
                rgba(138, 178, 210, 0.08) 50%,
                rgba(138, 178, 210, 0.08) 75%,
                transparent 75%,
                transparent
            );
            background-size: 1rem 1rem;
        }
        .component-actions {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: nowrap;
        }
        .component-count {
            font-family: var(--bs-font-monospace);
        }
        .component-actions .badge {
            font-size: 0.75rem;
            padding: 0.35em 0.55em;
            line-height: 1;
            white-space: nowrap;
        }
        .component-visibility img {
            display: inline-block;
            opacity: .7;
        }
        .component-actions .btn,
        .component-actions .dropdown-toggle {
            padding: 0.25rem 0.45rem;
            font-size: 0.75rem;
            line-height: 1;
        }
        .component-actions img {
            width: 14px;
            height: 14px;
        }
        .component-actions .dropdown-menu {
            font-size: 0.85rem;
        }
        .component-item:last-child {
            margin-bottom: 0 !important;
        }
        .btn {
            font-weight:500
        }
        .btn.btn-info {
            background-color: #8ab2d2;
            border-color: #8ab2d2;
            color: #ffffff;
        }
        .btn.btn-info:hover {
            background-color: #6f9fbe;
            border-color: #6f9fbe;
            color: #ffffff;
        }
        .btn-outline-info {
            border: 1px solid #8ab2d2;
            color: #1a3150;
            background-color: transparent;
        }
        .btn-outline-info:hover {
            background-color: #8ab2d2;
            border-color: #8ab2d2;
            color: #ffffff;
        }
        .border-info {
            border-color: #8ab2d2 !important;
        }
        .text-info {
            color: #6f9fbe !important;
        }
        .form-check.form-switch {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .form-check.form-switch .form-check-input {
            margin-top: 0;
            flex-shrink: 0;
        }
        .form-check.form-switch .form-check-label {
            margin-bottom: 0;
            line-height: 1.4;
        }
        /* Loader spinner – Helios primary */
        .spinner-border.text-primary,
        .spinner-grow.text-primary {
            color: #1a3150 !important;
        }
        .bg-info-soft {
            background-color: #e6f0f7 !important;
        }
        .nav-item .nav-link,
        a {
        color:#1a3150;
        }
        a:hover {
        color:#162a45;
        }
        .collapse-arrow {
            display: inline-flex;
            align-items: center;
            transition: transform .2s ease;
        }
        .card-header[aria-expanded="true"] .collapse-arrow {
            transform: rotate(180deg);
        }
        .pagination .page-link {
            color: #1a3150;
            border-color: rgba(26, 49, 80, 0.15);
            background-color: #ffffff;
            font-weight: 500;
            min-width: 34px;
            text-align: center;
        }

        .pagination .page-link:hover {
            color: #ffffff;
            background-color: #1a3150;
            border-color: #1a3150;
        }

        .pagination .page-item.active .page-link {
            background-color: #1a3150;
            border-color: #1a3150;
            color: #ffffff;
            font-weight: 600;
        }

        .pagination .page-item.disabled .page-link {
            color: rgba(26, 49, 80, 0.4);
            background-color: #f5f6f8;
            border-color: rgba(26, 49, 80, 0.1);
            cursor: default;
        }

        .pagination .page-link:focus {
            box-shadow: none;
        }

        /* Form toggle buttons – Helios style */
        .form-check-input {
            cursor: pointer;
        }

        .form-check-input:checked {
            background-color: #1a3150;
            border-color: #1a3150;
        }

        .form-check-input:focus {
            box-shadow: none;
            border-color: rgba(26, 49, 80, 0.4);
        }

        /* Switch specific */
        .form-switch .form-check-input {
            width: 2.25em;
            height: 1.25em;
        }

        .form-switch .form-check-input:checked {
            background-color: #1a3150;
        }

        .form-switch .form-check-input:checked::before {
            background-color: #ffffff;
        }

        /* Button toggle groups (btn-check) */
        .btn-check:checked + .btn.btn-secondary,
        .btn-check:checked + .btn.btn-primary {
            background-color: #1a3150;
            border-color: #1a3150;
            color: #ffffff;
        }
        .bg-primary {
            background-color: #254672!important;
        }
        .btn-check:focus + .btn,
        .btn-check:hover + .btn {
            box-shadow: none;
        }
        label.btn-outline-tertiary.is-selected {
            background-color: #254672;
            border-color: #254672;
            color: #ffffff;
        }
        label.btn-outline-tertiary.is-selected {
            background-color: var(--bs-tertiary-bg);
            color: var(--bs-tertiary-color);
            border-color: var(--bs-tertiary-border-subtle);
        }
        label.btn.is-selected:focus,
        label.btn.is-selected:focus-visible,
        label.btn.is-selected:hover {
            background-color: inherit;
            color: inherit;
        }
        .btn-outline-secondary.btn-toggle {
            color: #1a3150;
            border-color: rgba(26, 49, 80, 0.25);
        }
        .btn-outline-secondary.btn-toggle:hover {
            background-color: #1a3150;
            color: #ffffff;
        }
        #serverDropdown.btn-outline-secondary {
            background-color: #ffffff;
            color: #1a3150;
        }
        #serverDropdown.btn-outline-secondary:hover,
        #serverDropdown.btn-outline-secondary:focus {
            background-color: #f8f9fb;
            color: #1a3150;
            border-color: rgba(26, 49, 80, 0.25);
            box-shadow: none;
        }
        #serverDropdown.btn-outline-secondary.show,
        #serverDropdown.btn-outline-secondary:active {
            background-color: #ffffff;
            color: #1a3150;
            border-color: rgba(26, 49, 80, 0.35);
            box-shadow: none;
        }
        .badge .lock-icon {
            height: 10px;
            width: auto;
            display: block;
        }
        .remove-icon {
            width: 16px;
            height: 16px;
            transition: filter 0.15s ease-in-out;
        }
        .btn-outline-primary:hover .invert-icon,
        .btn-outline-secondary:hover .invert-icon {
            filter: invert(1);
        }
        .btn-outline-danger:hover .remove-icon {
            filter: brightness(0) invert(1);
        }
        .agent-alt-card {
            opacity: 0.3;
            transition: opacity 0.2s ease-in-out;
        }
        .agent-alt-card:hover {
            opacity: 1;
        }
        .card .card-header {
            padding-top:10px;
            padding-bottom:10px
        }
        .card .card-header p.fw-semibold,
        .nav.nav-pills .nav-link {
            font-size:16px
        }
        /* Prevent tab titles from wrapping to multiple lines (centered text) */
        .nav.nav-pills .nav-link {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Ensure tab title truncates while badge remains visible */
        .nav.nav-pills .nav-link > span:first-of-type {
            overflow: hidden;
            text-overflow: ellipsis;
        }
       .chart-container {
            height: 300px;
        }
        .card.card-login {
            border-radius:10px
        }
        .nav.nav-pills .nav-link.active {
            background:#254772;
        }
        /* Tab count badges – subtle Helios style */
        .nav.nav-pills .nav-link .badge {
            margin-left: 6px;
            font-size: 11px;
            font-weight: 600;
            padding: 3px 7px;
            border-radius: 999px;
            line-height: 1;
            background-color: rgba(26, 49, 80, 0.06);
            color: rgba(26, 49, 80, 0.65);
        }
        /* Normalize tab count badges (override bg-secondary / bg-info usage) */
        .nav.nav-pills .nav-link .badge.bg-secondary,
        .nav.nav-pills .nav-link .badge.bg-info {
            background-color: rgba(26, 49, 80, 0.06) !important;
            color: rgba(26, 49, 80, 0.65) !important;
        }

        /* Active tab count badge – slightly more prominent */
        .nav.nav-pills .nav-link.active .badge {
            background-color: rgba(255, 255, 255, 0.55);
            color: rgba(26, 49, 80, 0.9);
        }
        /* Prevent dark/contrasty badges inside active tabs */
        .nav.nav-pills .nav-link.active .badge.bg-secondary,
        .nav.nav-pills .nav-link.active .badge.bg-info {
            background-color: rgba(255, 255, 255, 0.55) !important;
            color: rgba(26, 49, 80, 0.9) !important;
        }

        /* Dark backgrounds (safety for reused pills) */
        .nav.nav-pills.bg-dark .nav-link .badge,
        .nav.nav-pills.bg-tertiary .nav-link .badge {
            background-color: rgba(255, 255, 255, 0.25);
            color: #ffffff;
        }
        .table tr.table-dark th {
            background:#1a3150
        }
        .status-field.is-invalid .invalid-feedback {
            display: block;
        }
        .btn-outline-primary {
            border:1px solid #254672!important;
            color:#254672;
        }
        .btn-outline-primary:hover {
            border:1px solid #254672!important;
            background:#254672;
            color:#fff
        }
        .btn-outline-primary {
            border:1px solid #254672!important;
            color:#8e8e8e;
        }
        .btn-outline-primary:hover {
            border:1px solid #254672!important;
            background:#254672;
            color:#fff
        }
        .btn-check:checked + .btn-outline-primary {
            --bs-btn-active-bg: #254672;
            --bs-btn-active-border-color: #254672;
            --bs-btn-active-color: #ffffff;
        }
        .bg-primary {
            --bs-badge-bg: #254672;
            color: #fff;
        }
        .bg-primary {
            --bs-badge-bg: #254672;
            --bs-badge-color: #fff;
        }
        .btn.btn-link {
            color:#254672
        }
        .btn.btn-primary {
            background:#254672;
            border:1px solid #254672;
        }
        .card .card-header.bg-primary {
            background-color: #254672!important;
            color: #ffffff!important;
            border-bottom: 1px solid rgba(0, 0, 0, 0.08)!important;
        }
        .text-success {
            color:#98be61!important;
        }
        .alert-success {
            background-color: rgba(152, 190, 97, 0.18); /* zachte achtergrond */
            border: 1px solid #98be61;
            color: #1f2d16; /* donker, goed leesbaar groen */
        }
        .progress-bar.bg-success,
        .badge.bg-success,
        .btn.btn-success {
            background:#98be61!important;
        }
        .btn.btn-success:hover {
            background:#88AB57!important;
        }
        .toast.text-bg-success {
            background-color: #98be61 !important;
            color: #ffffff;
        }
        .toast.text-bg-success .btn-close {
            filter: invert(1);
        }
        .dropdown-menu .dropdown-item.active,
        .dropdown-menu .dropdown-item:active {
            background-color: rgba(26, 49, 80, 0.12); /* subtiele Helios-blauw tint */
            color: #1a3150;
            font-weight: 600;
        }
        .dropdown-menu .dropdown-item.active:hover {
            background-color: rgba(26, 49, 80, 0.18);
            color: #1a3150;
        }
        .btn.btn-success {
            border:1px solid #98be61;
        }
        .border-success {
            border-color:#98be61!important;
        }
        .border-primary {
            border-color:#254672!important;
        }
        .bg-primary {
            background:#254672;
        }
        h1, h2, h3, h4, h5, h6 {
        word-break: break-word;
        overflow-wrap: break-word;
        }

        table td,
        table th {
        white-space: nowrap;
        }

        h1,h2,h3,h4,h5 {
        font-family:'Unbounded',sans-serif;
        text-transform:uppercase;
        }
        h5.modal-title {
            font-size:16px;
            font-weight:600!important
        }
        .badge {
        font-weight:500;
        text-transform:uppercase;
        }
        #sidebar {
            max-width: 100vw;
            overflow-x: hidden;
            width:300px;
             height:100vh;
             z-index:1100;
             border-right:1px solid rgba(255,255,255,0.15);
             background:#223f67 !important;
             display:block;
        }
        #sidebar .nav-section-title {
            font-size: 12px;
            letter-spacing: .08em;
            color: rgba(255,255,255,.6);
        }

        #sidebar .nav-section-title a {
            display: flex;
            width: 100%;
            align-items: center;
            justify-content: space-between;
            padding: .6rem .75rem;
            border-radius: .5rem;
        }
        #sidebar .nav-section-title a:hover {
            background: rgba(255,255,255,.08);
            text-decoration: none;
        }

        #sidebar .nav {
            display: block !important;
        }
        #sidebar .nav li {
            display: block !important;
            width: 100%;
        }

        #sidebar .nav-link {
            display: flex;
            width: 100%;
            align-items: center;
            gap: .5rem;
            color: #e9ecef;
            font-weight: 500;
            border-radius: .5rem;
            padding: .45rem .75rem;
            margin: 1px 0;
        }

        #sidebar .nav-link:hover {
            background: rgba(255,255,255,.08);
            color: #ffffff;
            text-decoration: none;
        }

        #sidebar .nav-link.active {
            background: rgba(255,255,255,.15);
            color: #ffffff;
        }

        #sidebar .nav-link.text-danger:hover {
            background: rgba(220,53,69,.15);
        }

        #sidebar .nav-icon {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
            opacity: .85;
        }
        /* Sidebar chevron: rotates -90deg when its parent collapse-toggle
           reports aria-expanded="false". Bootstrap keeps that attribute
           in sync with the actual collapse state, so the chevron always
           matches what the user sees. Replaces the old chevron-open.svg
           / chevron-closed.svg image-swap. */
        #sidebar .sidebar-chevron {
            transition: transform .2s ease;
        }
        #sidebar [data-bs-toggle="collapse"][aria-expanded="false"] .sidebar-chevron {
            transform: rotate(-90deg);
        }
        #sidebar {
            backdrop-filter: blur(4px);
        }
        .modal {
            z-index: 1300;
        }
        .modal-title {
            font-family: 'Public Sans', sans-serif !important;
            font-weight: 700 !important;
            text-transform: none !important;
        }

        /* Updated custom dropdown styles */
        .dropdown-menu-primary,
        #sidebar .dropdown-menu {
            min-width: 220px;
            background: #1e3553 !important;
            padding: 0 !important;
            border-radius: .6rem !important;
            overflow: hidden; /* removes top/bottom line between items */
        }
        .dropdown-menu-primary .dropdown-item,
        #sidebar .dropdown-menu .dropdown-item {
            color: #e9ecef !important;
            padding: .7rem 1rem !important;
            font-size: 15px !important;
            margin: 0 !important;
            border: none !important; /* prevent thin separator lines */
        }
        .dropdown-menu-primary .dropdown-item .dropdown-link:hover,
        #sidebar .dropdown-menu .dropdown-item .dropdown-link:hover {
            background: rgba(255,255,255,0.12) !important;
            color: #ffffff !important;
            border: none !important;
            padding: .7rem 1rem !important;
            border-radius:0!important;
        }
        .dropdown-menu {
            padding:0;
            z-index:99;
        }
        .dropdown-menu .dropdown-divider {
            margin:0;
        }
        /* Match sidebar dropdown spacing for non-sidebar dropdowns */
        .dropdown-menu .dropdown-item {
            display: flex;
            align-items: center;
            gap: .5rem;
            padding: .45rem .75rem;
            margin: 1px 0;
            border-radius:0;
        }

        .dropdown-menu .dropdown-item:hover {
            background: rgba(0,0,0,.06);
        }
        /* Tooltip trigger styling */
        .text-tooltip {
            cursor: help;
            border-bottom: 1px dotted rgba(26, 49, 80, 0.6);
            text-decoration: none;
            display:inline-block;
        }
        .card .card-header .btn {
            font-size:15px
        }
        .collapse-arrow svg {
            transition: transform 0.2s ease;
        }

        button[aria-expanded="true"] .collapse-arrow svg {
            transform: rotate(180deg);
        }

        button[aria-expanded="false"] .collapse-arrow svg {
            transform: rotate(0deg);
        }
        .tooltip {
            font-size: 12px;
        }
        .tooltip .tooltip-inner {
            background-color: #000;
            color: #f8f9fa;
            padding: 6px 10px;
            border-radius: 6px;
            max-width: 260px;
            text-align: center;
        }

        .tooltip.bs-tooltip-top .tooltip-arrow::before {
            border-top-color: #000;
        }

        .tooltip.bs-tooltip-bottom .tooltip-arrow::before {
            border-bottom-color: #000;
        }

        .tooltip.bs-tooltip-start .tooltip-arrow::before {
            border-left-color: #000;
        }

        .tooltip.bs-tooltip-end .tooltip-arrow::before {
            border-right-color: #000;
        }
        .select2-container {
            width: 100% !important;
            font-family: 'Public Sans', sans-serif;
            font-size: 15px;
            line-height: 1.4;
        }
        .select2-container--default .select2-selection--multiple {
            min-height: 42px;
            padding: 4px 8px;
            border-radius: 0.5rem;
            border: 1px solid rgba(26, 49, 80, 0.25);
            background-color: #ffffff;
        }

        .select2-container--default.select2-container--focus
        .select2-selection--multiple {
            border-color: #1a3150;
        }

        /* Single-select sizing — match Bootstrap form-select / form-control height
           so adjacent fields in a row align cleanly. Mirrors the multiple-select
           treatment above for visual consistency. */
        .select2-container--default .select2-selection--single {
            height: 42px;
            padding: 4px 8px;
            border-radius: 0.5rem;
            border: 1px solid rgba(26, 49, 80, 0.25);
            background-color: #ffffff;
            display: flex;
            align-items: center;
        }
        .select2-container--default .select2-selection--single
        .select2-selection__rendered {
            line-height: 1.4;
            padding-left: 0;
            padding-right: 0;
            color: #1a3150;
            display: block;
        }
        .select2-container--default .select2-selection--single
        .select2-selection__placeholder {
            color: #6c757d;
        }
        .select2-container--default .select2-selection--single
        .select2-selection__arrow {
            height: 100%;
            top: 0;
            right: 6px;
        }
        .select2-container--default .select2-selection--single
        .select2-selection__clear {
            margin-right: 24px;
            color: #6c757d;
        }
        .select2-container--default.select2-container--focus
        .select2-selection--single {
            border-color: #1a3150;
        }

        .select2-search--inline .select2-search__field {
            margin: 0;
            padding: 0;
            font-family: 'Public Sans', sans-serif;
            font-size: 15px;
            vertical-align: middle;
        }

        .select2-dropdown {
            border-radius: 0.5rem;
            border: 1px solid rgba(26, 49, 80, 0.25);
        }
        .select2-results__option {
            padding: 8px 12px;
            font-size: 15px;
            color: #1a3150;
        }
        .select2-results__option--highlighted {
            background-color: rgba(26, 49, 80, 0.08) !important;
            color: #1a3150 !important;
        }
        .select2-results__option[aria-selected="true"] {
            background-color: rgba(26, 49, 80, 0.16) !important;
            color: #1a3150 !important;
        }
        .select2-selection__rendered {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 6px;
        }
        .select2-selection__choice {
            background:#274771!important;
            border: 0!important;
            font-size: 15px;
            font-weight: 500;
            color: #fff!important;
            padding-left:15px!important;
        }
        .select2-selection__choice__remove {
            font-weight: 700;
            opacity: 0.7;
            padding-left:5px!important;
            padding-top:1px!important;
            color: #fff!important;
            background:none;
            border: 0!important;
        }
        .select2-selection__choice__remove:hover {
            opacity: 1;
            background:none!important;
        }
        @media (max-width: 768px) {
            html, body {
                height:auto
            }
            .server-card {
                margin-bottom: 0 !important;
            }
            .row.g-4 {
                --bs-gutter-y: 0;
            }
            .device-list-item {
                padding: .5rem .75rem;
                border-bottom: 1px solid var(--bs-border-color);
            }
            label.btn-outline-secondary.is-selected,
            label.btn-outline-secondary.is-selected:focus,
            label.btn-outline-secondary.is-selected:hover {
                background-color: #6c757d;
                border-color: #6c757d;
                color: #ffffff;
            }
            .chart-container {
                height: 300px;
            }
            .timeline {
                    padding-left: 20px;
                }
                .timeline::before {
                    left: 10px;
                }
                .timeline-marker {
                    width: 0px;
                }
                .timeline-dot {
                    left: -14px;
                    top: 5px;
                }
                .timeline-content > .d-flex {
                    flex-direction: column;
                    align-items: flex-start !important;
                    gap: 0.5rem;
                }
                .timeline-content .btn-group {
                    width: 100%;
                    justify-content: flex-start;
                }
                .timeline-content .btn-group .btn {
                    width: auto;
                }
                .card-body,
                .card-body-update {
                    padding: 0.75rem !important;
                }
                .btn.rounded-pill,
                .btn-outline-secondary.rounded-pill {
                    width: 100%;
                }
                .nav-pills .nav-link {
                    padding: 0.5rem 0.75rem;
                }
        }
        @media (max-width: 576px) {
            .nav.nav-pills .nav-link {
                padding-left: .75rem;
                padding-right: .75rem;
                font-size: 14px;
            }
        }

/*
 * Bootstrap btn-group + btn-check radius fix.
 *
 * Pattern:
 *   <div class="btn-group">
 *     <input class="btn-check"><label class="btn">A</label>
 *     <input class="btn-check"><label class="btn">B</label>
 *     <input class="btn-check"><label class="btn">C</label>
 *   </div>
 *
 * Only the first label should have a left border-radius; only the last
 * should have a right border-radius; middle labels are square. Bootstrap
 * 5.3 ships selectors that handle this in theory, but in practice the
 * combination with .btn-outline-* and border-collapse can leave middle
 * labels with a left radius. !important guarantees the override wins
 * regardless of source-order or specificity quirks.
 *
 * MUST live at top level — never nest inside an @media wrapper, otherwise
 * the fix only applies at that breakpoint (regression seen 2026-05-03).
 */
.btn-group > .btn-check + .btn { border-radius: 0 !important; }
.btn-group > .btn-check:first-of-type + .btn {
    border-top-left-radius: var(--bs-btn-border-radius, var(--bs-border-radius)) !important;
    border-bottom-left-radius: var(--bs-btn-border-radius, var(--bs-border-radius)) !important;
}
.btn-group > .btn-check:last-of-type + .btn {
    border-top-right-radius: var(--bs-btn-border-radius, var(--bs-border-radius)) !important;
    border-bottom-right-radius: var(--bs-btn-border-radius, var(--bs-border-radius)) !important;
}

/* ── Helios filter chips ──────────────────────────────────────────────
 * Used on /security/events (severity / time / category strips). Inactive
 * chips share a single muted look; the active chip is bold-filled with the
 * severity colour and carries a check-icon — so the eye lands on it
 * immediately. Tiny shadow-ring on active gives extra "this is selected"
 * affordance without adding visual weight elsewhere.
 */
.helios-chip {
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    line-height: 1.25;
    transition: background-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}
.helios-chip:not(.helios-chip-active):hover {
    background-color: #e9ecef;
    color: #212529;
}
.helios-chip-active {
    box-shadow: 0 0 0 2px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.08);
}