        .dropdown-toggle::after {
            display: none !important;
        }
        .page-title-row > :first-child {
            min-width: 0;
            max-width: 100%;
            overflow: hidden;
        }
        .page-title-row > :last-child {
            flex-shrink: 0;
        }
                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;
        }
        img.invert {
            filter: invert(1);
        }
        .select2-dropdown {
            z-index: 10000 !important;
        }

        .select2-container--open .select2-dropdown {
            z-index: 10000 !important;
        }

        .select2-container {
            z-index: 9998 !important;
        }

        .select2-container--open {
            z-index: 9998 !important;
        }

        /* Make modal body scrollable with max height */
        #manageGeneralDiscountsModal .modal-body,
        #manageCustomerDiscountsModal .modal-body,
        #managePriceChangesModal .modal-body,
        #viewPriceHistoryModal .modal-body {
            max-height: calc(100vh - 200px);
            overflow-y: auto;
        }
        /* Frontend auth helpers */
        .auth-helper a {
            color: var(--bs-primary);
        }
        /* Make entire list item show draggable cursor and improve drag feedback */
        #orderList .list-group-item { cursor: grab; }
        #orderList .list-group-item:active { cursor: grabbing; }
        #orderList .list-group-item .drag-handle { cursor: grab; }
        .sortable-ghost { opacity: 0.7; }
        .auth-helper a:hover {
            text-decoration: underline;
        }
        .html-content h1,
        .html-content h2,
        .html-content h3,
        .html-content h4,
        .html-content h5,
        .html-content h6 {
            font-family: 'Public Sans', sans-serif;
            line-height: 1.25;
            margin: 0 0 0.75rem;
            font-weight: 700;
            text-transform:none;
        }

        .html-content h1 { font-size: 1.6rem; }
        .html-content h2 { font-size: 1.35rem; }
        .html-content h3 { font-size: 1.15rem; }
        .html-content h4 { font-size: 1.0rem; }
        .html-content h5 { font-size: 0.95rem; }
        .html-content h6 { font-size: 0.9rem; }

        .html-content img {
            max-width: 100%;
            height:auto
        }
        /* Orbit divider */
        .orbit-divider {
            display: flex;
            align-items: center;
            text-align: center;
            color: #9ca3af;
            font-size: 0.85rem;
        }

        .orbit-divider::before,
        .orbit-divider::after {
            content: '';
            flex: 1;
            border-bottom: 1px solid rgba(0,0,0,.1);
        }

        .orbit-divider span {
            padding: 0 .75rem;
        }
        /* Prevent animation when restoring sidebar after context switch */
                .offcanvas-backdrop-less {
                    overflow: hidden;
                }

                .offcanvas-xxl.show {
                    transition: none !important;
                }
                /* Orbit language switcher */
                .orbit-language-switch .orbit-flag {
                    width: 34px;
                    height: 34px;
                    border-radius: 50%;
                    background: #ffffff;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    overflow: hidden;
                    box-shadow: 0 1px 3px rgba(0,0,0,.15);
                }

                .orbit-language-switch .orbit-flag img {
                    width: 26px;
                    height: 26px;
                }

                .orbit-language-switch .orbit-chevron {
                    width: 12px;
                    opacity: .6;
                }

                /* Prevent flag icons from being inverted in dark mode */
                .orbit-language-switch .orbit-flag img,
                .orbit-language-switch .dropdown-menu img {
                    filter: none !important;
                }

                .orbit-language-switch button:hover .orbit-flag {
                    box-shadow: 0 0 0 3px rgba(255,255,255,.25);
                }
        .mobile-nav {
            background:#fff
        }
        .helios-logo {
            content: url("/assets/img/logo_orbit_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);
        }
        /* Select2 Placeholder Font */
        .select2-container,
        .select2-container * {
            font-family: 'Public Sans', sans-serif !important;
        }
        /* 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),
        .form-select-sm: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;
        }
        .backend-mode-indicator {
            background-color: rgba(0, 0, 0, 0.2);
            background-image: linear-gradient(
                45deg,
                rgba(0, 0, 0, 0.1) 25%,
                transparent 25%,
                transparent 50%,
                rgba(0, 0, 0, 0.1) 50%,
                rgba(0, 0, 0, 0.1) 75%,
                transparent 75%,
                transparent
            );
            background-size: 1rem 1rem;
            border-top: 1px solid rgba(0, 0, 0, 0.08);
        }
        .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;
        }

        /* DataTables sort icons: Bootstrap Icons chevrons via SVG (font file not available) */
        table.dataTable thead > tr > th span.dt-column-order::before,
        table.dataTable thead > tr > td span.dt-column-order::before {
            content: "" !important;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708z'/%3E%3C/svg%3E");
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            width: 10px;
            height: 10px;
            opacity: 0.55;
        }

        table.dataTable thead > tr > th span.dt-column-order::after,
        table.dataTable thead > tr > td span.dt-column-order::after {
            content: "" !important;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            width: 10px;
            height: 10px;
            opacity: 0.55;
        }

        table.dataTable thead > tr > th.dt-ordering-asc span.dt-column-order::before,
        table.dataTable thead > tr > td.dt-ordering-asc span.dt-column-order::before,
        table.dataTable thead > tr > th.dt-ordering-desc span.dt-column-order::after,
        table.dataTable thead > tr > td.dt-ordering-desc span.dt-column-order::after {
            opacity: 1;
        }

        @media (max-width: 768px) {
        .orbit-table-mobile {
            border: 0;
            width: 100%;
            min-width: 100%;
            table-layout: fixed;
        }

        .table-responsive > .orbit-table-mobile {
            width: 100% !important;
            min-width: 100% !important;
        }

        .table-responsive.orbit-table-mobile-wrap {
            overflow-x: visible;
        }

        .orbit-table-mobile tbody,
        .orbit-table-mobile tbody tr {
            width: 100%;
            box-sizing: border-box;
        }

        .orbit-table-mobile.table-bordered > :not(caption) > * > * {
            border: 0;
        }

        .orbit-table-mobile thead {
            display: none;
        }

        .orbit-table-mobile tbody tr {
            display: block;
            background: #ffffff;
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: var(--ui-radius);
            margin-bottom: 0.65rem;
            overflow: hidden;
            position: relative;
            box-shadow: none;
        }

        .orbit-table-mobile tbody td {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 0.55rem 0.8rem;
            border-top: 0;
            text-align: left !important;
            white-space: normal !important;
            background: transparent;
        }

        .orbit-table-mobile tbody tr:nth-child(even) {
            background: #f8f9fb;
        }

        .orbit-table-mobile tbody td[data-label]::before {
            content: attr(data-label);
            font-weight: 600;
            color: #6c757d;
            font-size: 0.75rem;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            flex: 0 0 40%;
        }


        .orbit-table-mobile td.orbit-table-actions {
            display: block;
            padding: 0.65rem 0.8rem;
        }

        .orbit-table-mobile td.orbit-table-actions .d-grid,
        .orbit-table-mobile td.orbit-table-actions .d-md-flex,
        .orbit-table-mobile td.orbit-table-actions .d-flex {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
            align-items: stretch;
            gap: 0.5rem !important;
        }

        .orbit-table-mobile td.orbit-table-actions .dropdown {
            width: 100%;
        }

        .orbit-table-mobile td.orbit-table-actions form,
        .orbit-table-mobile td.orbit-table-actions .btn {
            width: 100%;
        }

        .orbit-table-mobile td.orbit-table-actions .btn {
            justify-content: center;
        }

        .orbit-table-mobile tbody tr:last-child {
            margin-bottom: 0;
        }

        .orbit-table-mobile code {
            white-space: normal;
            word-break: break-word;
        }

        .orbit-table-mobile .text-truncate {
            max-width: none !important;
            overflow: visible;
            text-overflow: unset;
            white-space: normal !important;
        }

        .orbit-table-mobile td .text-muted.small {
            display: none;
        }
        }

        @media (min-width: 768px) {
        .table-responsive.orbit-table-mobile-wrap {
            overflow: visible !important;
            overflow-x: visible !important;
            overflow-y: visible !important;
        }

        .table-responsive.orbit-table-mobile-wrap > .table.orbit-table-mobile {
            overflow: visible !important;
        }

        .table-responsive.orbit-table-mobile-wrap .orbit-table-actions,
        .table-responsive.orbit-table-mobile-wrap .orbit-table-actions .dropdown {
            position: relative;
            overflow: visible;
        }

        .table-responsive.orbit-table-mobile-wrap .orbit-table-actions .dropdown,
        .table-responsive.orbit-table-mobile-wrap .orbit-table-actions .btn {
            width: auto !important;
        }

        .table-responsive.orbit-table-mobile-wrap .orbit-table-actions .btn {
            justify-content: center;
        }
        }

        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 {
            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:1080;
        }
        .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;
        }

        .select2-search--inline .select2-search__field {
            margin: 0;
            padding: 0;
            font-family: 'Public Sans', sans-serif;
            font-size: 16px;
            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--selected {
            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;
        }

        /* HostFact product selector – Bootstrap select match */
        .hostfact-product-select + .select2-container--default .select2-selection--single,
        .hostfact-debtor-select + .select2-container--default .select2-selection--single {
            height: calc(1.5em + 0.75rem + 2px);
            padding: 0.375rem 2.25rem 0.375rem 0.75rem;
            font-size: 1rem;
            font-weight: 400;
            line-height: 1.5;
            background-color: #ffffff;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 0.75rem center;
            background-size: 16px 12px;
            border: 1px solid #dee2e6;
            border-radius: 10px;
            appearance: none;
        }

        .hostfact-product-select + .select2-container--default .select2-selection--single .select2-selection__rendered,
        .hostfact-debtor-select + .select2-container--default .select2-selection--single .select2-selection__rendered {
            padding: 0;
            line-height: 1.5;
            color: #212529;
        }

        .hostfact-product-select + .select2-container--default .select2-selection--single .select2-selection__placeholder,
        .hostfact-debtor-select + .select2-container--default .select2-selection--single .select2-selection__placeholder {
            color: #6c757d;
        }

        .hostfact-product-select + .select2-container--default .select2-selection--single .select2-selection__arrow,
        .hostfact-debtor-select + .select2-container--default .select2-selection--single .select2-selection__arrow {
            display: none;
        }

        .hostfact-product-select + .select2-container .select2-dropdown,
        .hostfact-debtor-select + .select2-container .select2-dropdown {
            border: 1px solid #dee2e6;
            border-radius: 0.375rem;
            box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
        }

        .hostfact-product-select + .select2-container .select2-results__option,
        .hostfact-debtor-select + .select2-container .select2-results__option {
            padding: 0.375rem 0.75rem;
            font-size: 1rem;
        }

        #sidebar .helios-segmented .btn {
            background-color: transparent;
            color: rgba(255, 255, 255, 0.75);
            border-color: rgba(255, 255, 255, 0.14)!important;
            font-weight: 500;
        }
        #sidebar .helios-segmented .btn.is-selected {
            background-color: rgba(255, 255, 255, 0.14);
            color: #ffffff;
            border-color: rgba(255, 255, 255, 0.25);
            font-weight: 600;
        }
        #sidebar .helios-segmented .btn:not(.is-selected):hover {
            background-color: rgba(255, 255, 255, 0.08);
            color: #ffffff;
        }
        @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;
            }
        }