/* InspiniaTheme (BS5) — TESS shell parity with legacy Inspinia top-navigation baseline */

/* Inspinia5 main UI font — Gill Sans MT (legacy Inspinia header stack); sizes from app.css */
body.tess-inspinia5-body {
    --tess-inspinia5-ui-font: cjk, 'Gill Sans MT', 'Lucida Grande', 'Century Gothic',
        '微软雅黑', 'Microsoft YaHei', 'Microsoft Yahei',
        STXihei, Arial, helvetica, sans-serif;
    --tess-font-sans: var(--tess-inspinia5-ui-font);
}

body.tess-inspinia5-body,
body.tess-theme-body.tess-inspinia5-body {
    font-family: var(--tess-inspinia5-ui-font);
    font-size: var(--theme-body-font-size, 0.813rem);
    font-weight: var(--theme-body-font-weight, 400);
    line-height: var(--theme-body-line-height, 1.5);
}

.tess-inspinia5-shell {
    min-height: 100vh;
    font-family: var(--tess-inspinia5-ui-font);
    font-size: var(--theme-body-font-size, 0.813rem);
    font-weight: var(--theme-body-font-weight, 400);
    line-height: var(--theme-body-line-height, 1.5);
    letter-spacing: normal;
    background: var(--tess-background, #f3f3f4);
    --tess-btn-primary: #1ab394;
    --tess-btn-primary-hover: #18a689;
    --tess-btn-secondary: #1c84c6;
    --tess-btn-secondary-hover: #1a7bb9;
    --tess-btn-neutral-border: #e7eaec;
}

.tess-inspinia5-shell.gray-bg,
.tess-inspinia5-shell .gray-bg {
    background-color: #f3f3f4;
}

.tess-inspinia5-shell .white-bg {
    background-color: #fff;
}

.tess-inspinia5-shell .tess-main-content {
    padding: 0;
    position: relative;
    right: auto !important;
    z-index: 0;
}

.tess-inspinia5-shell .loginColumns {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tess-inspinia5-shell .loginColumns .row {
    align-items: center;
}

.tess-inspinia5-shell .loginColumns .form-control {
    display: block;
    width: 100%;
    height: 36px;
    padding: 6px 12px;
    border: 1px solid #e5e6e7;
    background-color: #fff;
    color: #676a6c;
    border-radius: 1px;
    box-shadow: none;
}

.tess-inspinia5-shell .loginColumns .form-group {
    margin-bottom: 15px;
}

.tess-inspinia5-shell .loginColumns .btn-primary {
    background-color: #1ab394;
    border-color: #1ab394;
}

.tess-inspinia5-shell .loginColumns .btn-primary:hover,
.tess-inspinia5-shell .loginColumns .btn-primary:focus {
    background-color: #18a689;
    border-color: #18a689;
}

/* --- Header: ported from modules/inspinia/inspinia/css/style.css (.top-navigation) --- */

.tess-inspinia5-shell .tess-inspinia5-navbar {
    margin-bottom: 0;
    flex-wrap: nowrap;
    font-family: var(--tess-inspinia5-ui-font);
    font-weight: var(--theme-font-weight-semibold, 600);
    position: relative;
    z-index: 1031;
}

.tess-inspinia5-shell .tess-inspinia5-navbar .navbar-header {
    float: none;
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
}

.tess-inspinia5-shell .tess-inspinia5-navbar .navbar-collapse {
    flex-direction: row;
    align-items: stretch;
    overflow: visible !important;
    position: relative;
    z-index: 1032;
}

.tess-inspinia5-shell .tess-inspinia5-navbar .navbar-nav,
.tess-inspinia5-shell .tess-inspinia5-navbar ul.nav {
    flex-direction: row;
    align-items: stretch;
}

.tess-inspinia5-shell ul#header-item-pagename_menu_quickmenu.tess-nav-main-left {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: stretch;
    min-width: 0;
    overflow: hidden;
    scrollbar-width: thin;
}

.tess-inspinia5-shell.tess-header-reflow-ready ul#header-item-pagename_menu_quickmenu.tess-nav-main-left {
    overflow: visible;
}

.tess-inspinia5-shell #header-item-logininfo.navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    margin-left: auto;
}

.tess-inspinia5-shell .tess-inspinia5-navbar .nav-item {
    display: flex;
    align-items: stretch;
}

.tess-inspinia5-shell .tess-inspinia5-navbar .nav-link,
.tess-inspinia5-shell .tess-inspinia5-navbar .nav-item > a {
    display: flex;
    align-items: center;
}

.tess-inspinia5-shell .tess-page-header.row {
    --bs-gutter-x: 0;
    width: 100%;
    margin: 0 !important;
    overflow: visible;
    position: relative;
    z-index: 1030;
}

.tess-inspinia5-shell .row.content {
    --bs-gutter-x: 0;
    box-sizing: border-box;
    width: 100%;
    margin: 0 !important;
    max-width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative;
    right: auto !important;
    z-index: 0;
}

.tess-inspinia5-shell .tess-inspinia5-brand.navbar-brand {
    background: #1ab394;
    color: #fff !important;
    padding: 15px 25px;
    font-size: 18px;
    line-height: 20px;
    margin-right: 0;
}

.tess-inspinia5-shell .tess-inspinia5-brand.navbar-brand:hover,
.tess-inspinia5-shell .tess-inspinia5-brand.navbar-brand:focus {
    color: #fff !important;
}

.tess-inspinia5-shell .tess-inspinia5-navbar-toggler {
    background-color: #1ab394;
    color: #fff;
    border: 0;
    padding: 6px 12px;
    font-size: 14px;
    margin: 8px;
}

.tess-inspinia5-shell .tess-inspinia5-navbar .navbar-nav .nav-link {
    padding: 15px 20px;
    color: #676a6c;
    font-size: 13px;
    font-weight: 600;
    line-height: 16px;
}

.tess-inspinia5-shell .tess-inspinia5-navbar .navbar-nav .nav-link:hover,
.tess-inspinia5-shell .tess-inspinia5-navbar .navbar-nav .nav-link:focus {
    background: #fff;
    color: #1ab394;
}

.tess-inspinia5-shell .tess-inspinia5-navbar .navbar-nav .nav-item.active {
    height: 50px;
    background: #fff;
    flex: 0 0 auto;
}

.tess-inspinia5-shell .tess-inspinia5-navbar .navbar-nav .nav-item.active > .nav-link,
.tess-inspinia5-shell .tess-inspinia5-navbar .navbar-nav .nav-item.active > a {
    padding-top: 9px;
    padding-bottom: 9px;
    color: #1ab394;
    line-height: 16px;
    white-space: nowrap;
    gap: 6px;
}

.tess-inspinia5-shell .tess-inspinia5-navbar .tess-nav-dropdown {
    position: relative;
    display: flex;
    align-items: stretch;
    height: 50px;
    padding-top: 0;
}

.tess-inspinia5-shell .tess-inspinia5-navbar .tess-nav-dropdown > .dropdown-toggle {
    height: 100%;
    align-items: center;
}

.tess-inspinia5-shell .tess-inspinia5-navbar .dropdown-menu {
    top: 100%;
    left: 0;
    right: auto;
    bottom: auto;
    margin-top: 0;
    padding: 3px 0;
    font-size: 12px;
    min-width: 12rem;
    background-color: #fff;
    background-clip: padding-box;
    box-shadow: 0 0 3px rgba(86, 96, 117, 0.35), 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e7eaec;
    border-radius: 3px;
    position: absolute;
    z-index: 1045 !important;
}

.tess-inspinia5-shell .tess-inspinia5-navbar .tess-nav-dropdown.show,
.tess-inspinia5-shell .tess-inspinia5-navbar .tess-nav-dropdown:focus-within,
.tess-inspinia5-shell .tess-inspinia5-navbar .tess-nav-dropdown:hover {
    position: relative;
    z-index: 1044;
}

.tess-inspinia5-shell .tess-inspinia5-navbar .tess-nav-dropdown.show > .dropdown-menu,
.tess-inspinia5-shell .tess-inspinia5-navbar .tess-nav-dropdown:focus-within > .dropdown-menu,
.tess-inspinia5-shell .tess-inspinia5-navbar .tess-nav-dropdown:hover > .dropdown-menu,
.tess-inspinia5-shell .tess-inspinia5-navbar .dropdown-menu.show {
    display: block;
}

.tess-inspinia5-shell .tess-inspinia5-navbar .nav-link.dropdown-toggle {
    white-space: nowrap;
}

.tess-inspinia5-shell .form-control,
.tess-inspinia5-shell .form-select,
.bootbox .form-control,
.bootbox .form-select,
.jqmWindow.jqmodal-dialog-div .form-control,
.jqmWindow.jqmodal-dialog-div .form-select {
    display: block;
    width: 100%;
    padding: 6px 12px;
    font-size: var(--theme-font-size-base, 13px);
    line-height: 1.42857143;
    color: #676a6c;
    background-color: #fff;
    border: 1px solid #e5e6e7;
    border-radius: 1px;
    box-shadow: none;
}

.tess-inspinia5-shell .form-control:focus,
.tess-inspinia5-shell .form-select:focus,
.bootbox .form-control:focus,
.bootbox .form-select:focus,
.jqmWindow.jqmodal-dialog-div .form-control:focus,
.jqmWindow.jqmodal-dialog-div .form-select:focus {
    border-color: #1ab394;
    outline: 0;
    box-shadow: none;
}

.tess-inspinia5-shell .input-group .input-group-text,
.tess-inspinia5-shell .input-group-addon,
.bootbox .input-group .input-group-text,
.bootbox .input-group-addon {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    font-size: var(--theme-font-size-base, 13px);
    color: #555;
    background-color: #eee;
    border: 1px solid #e5e6e7;
    border-radius: 1px;
}

.tess-inspinia5-shell .input-group .form-control {
    flex: 1 1 auto;
    width: 1%;
}

.tess-inspinia5-shell .form-check.form-switch {
    padding-left: 2.5em;
    min-height: 1.5rem;
}

.tess-inspinia5-shell .form-check:not(.form-switch) .form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.15em;
}

.tess-inspinia5-shell .form-check.form-switch .form-check-input {
    width: 2em;
    height: 1em;
    margin-top: 0;
    cursor: pointer;
}

.tess-inspinia5-shell .form-check.form-switch .form-check-input:checked {
    background-color: #1ab394;
    border-color: #1ab394;
}

.tess-inspinia5-shell .btn-default,
.tess-inspinia5-shell .btn-outline-secondary {
    color: inherit;
    background-color: #fff;
    border-color: var(--tess-btn-neutral-border);
}

.tess-inspinia5-shell .btn-outline-primary {
    background-color: #fff;
    border-color: var(--tess-btn-primary);
    color: var(--tess-btn-primary);
}

.tess-inspinia5-shell .btn-outline-primary:hover,
.tess-inspinia5-shell .btn-outline-primary:focus {
    background-color: var(--tess-btn-primary);
    border-color: var(--tess-btn-primary);
    color: #fff;
}

.tess-inspinia5-shell .btn-outline-warning,
.tess-inspinia5-shell .btn-outline-danger {
    background-color: #fff;
}

.tess-inspinia5-shell .btn-primary {
    background-color: var(--tess-btn-primary);
    border-color: var(--tess-btn-primary);
}

.tess-inspinia5-shell .btn-primary:hover,
.tess-inspinia5-shell .btn-primary:focus {
    background-color: var(--tess-btn-primary-hover);
    border-color: var(--tess-btn-primary-hover);
}

.tess-inspinia5-shell .btn-success {
    background-color: var(--tess-btn-secondary);
    border-color: var(--tess-btn-secondary);
}

.tess-inspinia5-shell .btn.btn-primary.btn-outline:not(.btn-outline-primary),
.tess-inspinia5-shell .btn.btn-success.btn-outline:not(.btn-outline-secondary) {
    background-color: transparent;
    background-image: none !important;
    box-shadow: none !important;
}

.tess-inspinia5-shell .btn.btn-primary.btn-outline:not(.btn-outline-primary) {
    border-color: var(--tess-btn-primary);
    color: var(--tess-btn-primary);
}

.tess-inspinia5-shell .btn.btn-success.btn-outline:not(.btn-outline-secondary) {
    border-color: var(--tess-btn-secondary);
    color: var(--tess-btn-secondary);
}

.tess-inspinia5-shell .btn.btn-warning.btn-outline:not(.btn-outline-warning) {
    background-color: transparent;
    background-image: none !important;
    box-shadow: none !important;
}

.tess-inspinia5-shell .btn.btn-danger.btn-outline:not(.btn-outline-danger) {
    background-color: transparent;
    background-image: none !important;
    box-shadow: none !important;
}

.tess-inspinia5-shell .tess-inspinia5-navbar .dropdown-menu .dropdown-item {
    padding: 5px 16px;
    color: #676a6c;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;
}

.tess-inspinia5-shell .tess-inspinia5-navbar .dropdown-menu .tess-nav-menu-icon {
    max-height: 20px;
    max-width: 20px;
    margin-right: 6px;
}

.tess-inspinia5-shell .tess-inspinia5-navbar .dropdown-menu .dropdown-item:hover,
.tess-inspinia5-shell .tess-inspinia5-navbar .dropdown-menu .dropdown-item:focus {
    color: #1ab394;
    background: #fff;
}

/* Floating context menus (body-appended; same chrome as header nav + AjaxTabs menus) */
ul.tess-context-menu.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 10050 !important;
    margin: 0;
    margin-top: 0;
    padding: 3px 0;
    font-size: 12px;
    min-width: 12rem;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    box-shadow: 0 0 3px rgba(86, 96, 117, 0.35), 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e7eaec;
    border-radius: 3px;
}

ul.tess-context-menu.dropdown-menu.show {
    display: block;
}

ul.tess-context-menu.dropdown-menu .dropdown-item {
    display: block;
    width: 100%;
    padding: 5px 16px;
    color: #676a6c;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    border: 0;
    background: transparent;
}

ul.tess-context-menu.dropdown-menu .dropdown-item:hover,
ul.tess-context-menu.dropdown-menu .dropdown-item:focus {
    color: #1ab394;
    background: #fff;
}

ul.tess-contact-category-menu.dropdown-menu {
    max-height: 70vh;
    overflow-y: auto;
}

.tess-inspinia5-shell .tess-inspinia5-navbar .nav-item.quickmarker {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 2px;
    height: 50px;
    min-width: 0;
    overflow: visible;
    padding: 0 6px;
}

.tess-inspinia5-shell .tess-inspinia5-navbar .tess-quickmenu-link {
    display: inline-flex !important;
    align-items: center;
    flex: 0 0 auto;
    height: 50px;
    padding: 0 2px;
}

.tess-inspinia5-shell .tess-inspinia5-navbar .tess-quickmenu-icon {
    max-height: 18px;
    max-width: 18px;
    object-fit: contain;
}

.tess-inspinia5-shell .tess-inspinia5-navbar .tess-nav-page-icon {
    max-height: 26px;
    max-width: 26px;
    object-fit: contain;
    vertical-align: middle;
}

.tess-inspinia5-shell .tess-inspinia5-navbar .tess-nav-menu-icon {
    max-height: 28px;
    vertical-align: middle;
    margin-right: 4px;
}

.tess-inspinia5-shell #header-item-logininfo .badge {
    font-size: 10px;
    vertical-align: top;
}

.tess-inspinia5-shell .label {
    background-color: #d1dade;
    color: #5e5e5e;
    font-family: var(--tess-inspinia5-ui-font);
    font-weight: var(--tess-font-weight-medium);
    padding: 3px 8px;
    border-radius: 0.25em;
    line-height: 1;
    white-space: nowrap;
    font-size: 10px !important;
    display: inline;
}

.tess-inspinia5-shell .label-danger {
    background-color: #ed5565;
    color: #fff;
}

/* --- Header right: user, actions, language --- */

.tess-inspinia5-shell #header-item-logininfo.tess-header-logininfo.navbar-nav {
    align-items: center;
    gap: 2px;
    padding-right: 10px;
}

.tess-inspinia5-shell #header-item-logininfo .tess-header-user {
    align-items: center;
    border-right: 0;
    display: flex;
    height: 50px;
    margin-right: 0;
    padding-right: 0;
    position: relative;
}

.tess-inspinia5-shell #header-item-logininfo:not(.tess-header-collapse-actions) .tess-header-user {
    margin-right: 8px;
    padding-right: 10px;
}

.tess-inspinia5-shell #header-item-logininfo:not(.tess-header-collapse-actions) .tess-header-user::after {
    background: rgba(100, 116, 139, 0.14);
    content: '';
    height: 28px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-collapse-meta:not(.tess-header-collapse-actions) .tess-header-user {
    margin-right: 8px;
    padding-right: 12px;
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-has-collapsed:not(.tess-header-collapse-lang) {
    gap: 6px;
}

.tess-inspinia5-shell .tess-header-user-block {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    gap: 8px;
    height: 50px;
    min-height: 50px;
    padding: 0 8px 0 2px;
}

.tess-inspinia5-shell .tess-header-user-avatar {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    height: 50px;
    justify-content: center;
    line-height: 0;
}

.tess-inspinia5-shell .tess-header-user-avatar .dragsource {
    align-items: center;
    background-color: transparent !important;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    line-height: 0;
    overflow: hidden;
    padding: 0 !important;
    vertical-align: top;
}

.tess-inspinia5-shell .tess-header-user-avatar .dragsource > div {
    display: block;
    flex-shrink: 0;
    vertical-align: top;
}

.tess-inspinia5-shell .tess-header-user-avatar .contacticon {
    border-radius: 50%;
    vertical-align: top;
}

.tess-inspinia5-shell .tess-header-user-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    justify-content: center;
    line-height: 1.25;
    min-width: 0;
}

.tess-inspinia5-shell .tess-header-user-name {
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.tess-inspinia5-shell .tess-header-user-display {
    margin-right: 4px;
}

.tess-inspinia5-shell .tess-header-user-login {
    color: #64748b;
    font-weight: 500;
}

.tess-inspinia5-shell .tess-header-user-version {
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
}

.tess-inspinia5-shell .tess-header-user-version b {
    color: #475569;
    font-weight: 600;
}

.tess-inspinia5-shell #header-item-logininfo .tess-header-action {
    align-items: center;
    display: flex;
    height: 50px;
}

.tess-inspinia5-shell .tess-header-lang {
    align-items: center;
    display: flex;
    height: 50px;
    position: relative;
}

.tess-inspinia5-shell #header-item-logininfo:not(.tess-header-collapse-lang) .tess-header-lang {
    margin-left: 4px;
    padding-left: 0;
}

.tess-inspinia5-shell #header-item-logininfo:not(.tess-header-collapse-lang) .tess-header-lang::before {
    background: rgba(100, 116, 139, 0.14);
    content: '';
    height: 28px;
    left: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
}

.tess-inspinia5-shell .tess-header-lang-switch {
    align-items: center;
    border-left: 0;
    display: flex;
    gap: 4px;
    margin-left: 10px;
    padding: 0 2px 0 0;
}

.tess-inspinia5-shell .tess-header-icon-btn {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(100, 116, 139, 0.22);
    border-radius: 6px;
    color: #475569;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    margin: 0 1px;
    padding: 0;
    position: relative;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    width: 32px;
}

.tess-inspinia5-shell .tess-header-icon-btn:hover,
.tess-inspinia5-shell .tess-header-icon-btn:focus {
    background: #f8fafc;
    border-color: rgba(100, 116, 139, 0.38);
    color: #1e293b;
}

.tess-inspinia5-shell .tess-header-icon-btn > i {
    font-size: 14px;
    line-height: 1;
}

.tess-inspinia5-shell .tess-header-icon-btn .label {
    border-radius: 8px;
    display: inline-block;
    font-size: 9px !important;
    font-weight: 700;
    height: 16px;
    line-height: 16px;
    min-width: 16px;
    padding: 0 4px;
    position: absolute;
    right: -5px;
    text-align: center;
    top: -5px;
}

.tess-inspinia5-shell #header-item-logininfo .count-info {
    display: inline-flex;
    min-height: 0;
    width: auto;
}

.tess-inspinia5-shell .tess-header-lang-flags {
    align-items: center;
    display: inline-flex;
    gap: 4px;
}

.tess-inspinia5-shell .tess-header-lang-flag {
    border-radius: 4px;
    display: inline-flex;
    line-height: 0;
    opacity: 0.88;
    padding: 2px;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.tess-inspinia5-shell .tess-header-lang-flag:hover,
.tess-inspinia5-shell .tess-header-lang-flag:focus {
    background: rgba(100, 116, 139, 0.08);
    opacity: 1;
}

.tess-inspinia5-shell .tess-header-lang-flag img {
    border-radius: 2px;
    box-shadow: none;
    display: block;
    filter: saturate(0.92);
    height: auto;
    max-height: 18px;
    width: auto;
}

/* Legacy login block selectors (mini panel + reflow script) */
.tess-inspinia5-shell #header-item-logininfo > li.nav-item:first-child {
    align-items: center;
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
}

.tess-inspinia5-shell #header-item-logininfo .header-item-logininfo-wrap,
.tess-inspinia5-shell #header-item-logininfo .header-item-logininfo-user {
    align-items: center;
    display: flex;
    float: none;
}

.tess-inspinia5-shell #header-item-logininfo .header-item-logininfo-user p,
.tess-inspinia5-shell #header-item-logininfo .header-item-logininfo-cell {
    display: block;
    font-size: 12px;
    height: auto;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
}

.tess-inspinia5-shell #header-item-logininfo.navbar-nav > li {
    flex-shrink: 0;
}

.tess-inspinia5-shell #header-item-logininfo.tess-logininfo-hidden {
    display: none !important;
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-collapse-meta .tess-header-user-meta {
    display: none !important;
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-collapse-meta .tess-header-user-anchor {
    display: inline-flex;
    width: auto;
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-collapse-meta .tess-header-user-block {
    gap: 0;
    padding: 0;
    width: auto;
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-collapse-meta .tess-header-user-avatar {
    height: 28px;
    max-height: 28px;
    max-width: 28px;
    min-height: 28px;
    min-width: 28px;
    width: 28px;
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-collapse-meta.tess-header-collapse-actions.tess-header-collapse-lang {
    gap: 0;
    padding-right: 4px;
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-collapse-meta.tess-header-collapse-actions.tess-header-collapse-lang .tess-header-user {
    flex: 0 0 auto;
    justify-content: center;
    margin: 0;
    padding: 0;
    width: auto;
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-collapse-meta.tess-header-collapse-actions.tess-header-collapse-lang .tess-header-user-anchor {
    justify-content: center;
    width: auto;
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-collapse-meta.tess-header-collapse-actions.tess-header-collapse-lang .tess-header-user-block {
    justify-content: center;
    min-height: 28px;
    padding: 0;
    width: auto;
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-collapse-meta.tess-header-collapse-actions.tess-header-collapse-lang .tess-header-user-avatar .dragsource,
.tess-inspinia5-shell #header-item-logininfo.tess-header-collapse-meta.tess-header-collapse-actions.tess-header-collapse-lang .tess-header-user-avatar .dragsource > div {
    height: 28px;
    width: 28px;
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-collapse-actions .tess-header-action {
    display: none !important;
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-user-avatar-only {
    overflow: visible;
    position: relative;
    z-index: 1035;
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-user-avatar-only .tess-header-user {
    min-width: 48px;
    z-index: 1036;
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-user-avatar-only .tess-header-user-anchor {
    justify-content: center;
    min-width: 48px;
    z-index: 1036;
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-user-avatar-only .tess-header-user-anchor.tess-header-user-flyout-open {
    z-index: 1054;
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-user-avatar-only .tess-header-user-flyout {
    display: none !important;
    left: auto;
    margin-top: 0;
    max-width: min(280px, calc(100vw - 12px));
    right: 0;
    top: calc(100% - 1px);
    transform: none;
    z-index: 1053;
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-user-avatar-only .tess-header-user-anchor.tess-header-user-flyout-open .tess-header-user-flyout,
.tess-inspinia5-shell #header-item-logininfo.tess-header-user-avatar-only .tess-header-user-flyout.tess-header-user-flyout-fixed {
    border-top: 1px solid #e7eaec;
    box-shadow: 0 6px 16px rgba(57, 62, 80, 0.16);
    display: block !important;
    filter: drop-shadow(0 5px 12px rgba(57, 62, 80, 0.14));
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-user-avatar-only .tess-header-user-flyout.tess-header-user-flyout-fixed::before,
.tess-inspinia5-shell #header-item-logininfo.tess-header-user-avatar-only .tess-header-user-anchor.tess-header-user-flyout-open .tess-header-user-flyout::before {
    background: #fff;
    height: 20px;
    top: -20px;
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-user-avatar-only .tess-header-user-anchor::after {
    content: '';
    height: 14px;
    left: auto;
    min-width: 48px;
    pointer-events: auto;
    position: absolute;
    right: 0;
    top: calc(100% - 12px);
    transform: none;
    width: 100%;
    z-index: 1052;
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-collapse-lang li.tess-header-lang {
    display: none !important;
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-has-collapsed .tess-header-user {
    overflow: visible;
    position: relative;
    z-index: 1;
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-has-collapsed .tess-header-user-anchor {
    z-index: 1;
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-has-collapsed .tess-header-user-anchor.tess-header-user-flyout-open {
    z-index: 1053;
}

.tess-inspinia5-shell .tess-header-user-anchor {
    align-items: center;
    display: flex;
    height: 50px;
    overflow: visible;
    position: relative;
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-has-collapsed:not(.tess-header-user-avatar-only) .tess-header-user-anchor::after {
    content: '';
    height: 16px;
    left: 0;
    pointer-events: auto;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 1052;
}

.tess-inspinia5-shell .tess-header-user-flyout {
    background: #fff;
    border: 1px solid #e7eaec;
    border-top: 0;
    box-shadow: 0 6px 16px rgba(57, 62, 80, 0.16);
    display: none;
    margin-top: -4px;
    min-width: 220px;
    max-width: 280px;
    padding: 16px 14px 14px;
    pointer-events: auto;
    position: absolute;
    right: 0;
    text-align: center;
    top: 100%;
    z-index: 1051;
}

.tess-inspinia5-shell .tess-header-user-flyout::before {
    content: '';
    height: 16px;
    left: 0;
    pointer-events: auto;
    position: absolute;
    right: 0;
    top: -16px;
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-has-collapsed:not(.tess-header-user-avatar-only) .tess-header-user-anchor:hover .tess-header-user-flyout,
.tess-inspinia5-shell #header-item-logininfo.tess-header-has-collapsed:not(.tess-header-user-avatar-only) .tess-header-user-anchor.tess-header-user-flyout-open .tess-header-user-flyout {
    display: block;
}

.tess-inspinia5-shell .tess-header-flyout-section {
    display: none;
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-collapse-meta .tess-header-flyout-meta {
    display: block;
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-collapse-actions .tess-header-flyout-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 260px;
    padding: 10px 8px;
}

.tess-inspinia5-shell #header-item-logininfo.tess-header-collapse-lang .tess-header-flyout-lang {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    border-left: 0;
    margin-left: 0;
    padding-left: 0;
}

.tess-inspinia5-shell .tess-header-flyout-actions .tess-header-icon-btn,
.tess-inspinia5-shell #header-item-logininfo-mini .tess-header-flyout-actions .tess-header-icon-btn {
    flex: 0 0 32px;
    margin: 0;
}

.tess-inspinia5-shell .tess-header-flyout-actions .tess-header-icon-btn .label,
.tess-inspinia5-shell #header-item-logininfo-mini .tess-header-flyout-actions .tess-header-icon-btn .label {
    right: -4px;
    top: -4px;
}

.tess-inspinia5-shell #header-item-logininfo-mini .tess-header-flyout-lang.tess-header-lang-switch {
    border-left: 0;
    justify-content: center;
    margin-left: 0;
    padding-left: 0;
}

.tess-inspinia5-shell .tess-header-flyout-section + .tess-header-flyout-section {
    border-top: 1px solid rgba(100, 116, 139, 0.14);
    margin-top: 12px;
    padding-top: 12px;
}

.tess-inspinia5-shell .tess-header-flyout-meta {
    padding-bottom: 2px;
}

.tess-inspinia5-shell .tess-header-flyout-user {
    display: block;
    font-size: 11px;
    line-height: 1.3;
    margin: 0 0 4px;
    white-space: normal;
    word-break: break-word;
}

.tess-inspinia5-shell .tess-header-flyout-actions.tess-header-mini-actions {
    justify-content: center;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 10px 12px;
}

.tess-inspinia5-shell #header-item-logininfo-mini .tess-header-flyout-section {
    display: block;
}

.tess-inspinia5-shell .tess-inspinia5-navbar {
    display: flex;
    align-items: stretch;
    position: relative;
}

.tess-inspinia5-shell #header-item-logininfo {
    flex: 0 0 auto;
    margin-left: auto;
}

.tess-inspinia5-shell .tess-inspinia5-navbar.tess-header-show-toggler.tess-header-collapse-quickmenu #navbar:not(.show) .quickmarker {
    display: none !important;
}

.tess-inspinia5-shell .tess-inspinia5-navbar.tess-header-show-toggler.tess-header-collapse-menus #navbar:not(.show) .tess-nav-dropdown {
    display: none !important;
}

.tess-inspinia5-shell .tess-inspinia5-navbar.tess-header-show-toggler.tess-header-collapse-quickmenu #navbar.show .quickmarker {
    align-items: center;
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    height: auto;
    min-height: 44px;
    padding: 8px 12px;
    width: 100%;
}

.tess-inspinia5-shell .tess-inspinia5-navbar.tess-header-show-toggler.tess-header-collapse-menus #navbar.show .tess-nav-dropdown {
    display: flex !important;
    flex-direction: column;
    height: auto;
    width: 100%;
}

.tess-inspinia5-shell .tess-inspinia5-navbar.tess-header-show-toggler #navbar.show .tess-quickmenu-link {
    height: auto;
    min-height: 32px;
    padding: 6px 10px;
}

/* Collapsed left panel: quickmenu, then page title, then module menus */
.tess-inspinia5-shell .tess-inspinia5-navbar.tess-header-show-toggler #navbar.show #header-item-pagename_menu_quickmenu {
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
}

.tess-inspinia5-shell .tess-inspinia5-navbar.tess-header-show-toggler #navbar.show #header-item-pagename_menu_quickmenu > .quickmarker {
    order: 1;
}

.tess-inspinia5-shell .tess-inspinia5-navbar.tess-header-show-toggler #navbar.show #header-item-pagename_menu_quickmenu > .nav-item.active {
    display: flex !important;
    order: 2;
    width: 100%;
}

.tess-inspinia5-shell .tess-inspinia5-navbar.tess-header-show-toggler #navbar.show #header-item-pagename_menu_quickmenu > .tess-nav-dropdown {
    order: 3;
}

.tess-inspinia5-shell #header-item-logininfo-mini {
    position: absolute;
    width: auto;
    min-width: 150px;
    max-width: 260px;
    height: 50px;
    background-color: #fff;
    right: 0;
    top: 0;
    overflow: hidden;
    text-align: center;
    z-index: 1046;
    display: none;
}

.tess-inspinia5-shell #header-item-logininfo-mini.tess-logininfo-mini-visible {
    display: block !important;
}

.tess-inspinia5-shell #header-item-logininfo-mini:hover,
.tess-inspinia5-shell #header-item-logininfo-mini.tess-logininfo-mini-open {
    height: auto;
    min-height: 50px;
    overflow: visible;
    border: 1px solid #e7eaec;
    border-top: 0;
    box-shadow: 0 6px 16px rgba(57, 62, 80, 0.16);
}

.tess-inspinia5-shell .header-item-logininfo-mini-wrap {
    align-items: center;
    display: inline-flex;
    height: 50px;
    justify-content: center;
    margin-top: 0;
    text-align: center;
}

.tess-inspinia5-shell .header-item-logininfo-mini-panel {
    display: none;
    padding: 8px 10px 10px;
    position: static;
    text-align: center;
    top: auto;
    background: #fff;
}

.tess-inspinia5-shell #header-item-logininfo-mini:hover .header-item-logininfo-mini-panel,
.tess-inspinia5-shell #header-item-logininfo-mini.tess-logininfo-mini-open .header-item-logininfo-mini-panel {
    display: block;
}

.tess-inspinia5-shell .header-item-logininfo-mini-user {
    display: block;
    height: auto;
    margin: 0 0 8px;
    width: auto;
    font-size: 11px;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
}

.tess-inspinia5-shell .header-item-logininfo-mini-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 0 auto 8px;
    position: static;
    width: auto;
}

.tess-inspinia5-shell .tess-header-mini-actions .tess-header-icon-btn {
    margin: 0;
}

.tess-inspinia5-shell .header-item-logininfo-mini-lang {
    margin-top: 4px;
}

.tess-inspinia5-shell #header-item-logininfo.navbar-top-links > li > a.count-info.tess-header-icon-btn,
.tess-inspinia5-shell #header-item-logininfo.navbar-top-links > li > a.count-info.tess-nav-count-info,
.tess-inspinia5-shell #header-item-logininfo.navbar-top-links > li > a.count-info.tess-nav-count-info--settings,
.tess-inspinia5-shell #header-item-logininfo.navbar-top-links > li > a.count-info.tess-nav-count-info--logout,
.tess-inspinia5-shell .top-navigation #header-item-logininfo.navbar-top-links > li > a.count-info.tess-nav-count-info,
.tess-inspinia5-shell .top-navigation #header-item-logininfo.navbar-top-links > li > a.count-info.tess-nav-count-info--settings,
.tess-inspinia5-shell .top-navigation #header-item-logininfo.navbar-top-links > li > a.count-info.tess-nav-count-info--logout {
    align-items: center;
    display: inline-flex;
    float: none;
    justify-content: center;
    min-height: 0;
    padding: 0;
    width: 32px;
}

/* --- Footer: ported from inspinia.bluenion.css --- */

.tess-inspinia5-shell .brisc-inspinia-footer {
    --bs-gutter-x: 0;
    height: 40px;
    padding: 0 220px 0 0;
    align-items: center;
    line-height: 39px;
    background: #fff;
    border-top: 1px solid #e7eaec;
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow: hidden;
    clear: both;
    width: 100%;
    margin: 0;
}

.tess-inspinia5-shell .brisc-inspinia-footer > * {
    flex-shrink: 0;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    width: auto;
}

.tess-inspinia5-shell .brisc-inspinia-footer .tesscopyright,
.tess-inspinia5-shell .brisc-inspinia-footer p {
    line-height: 39px;
    margin: 0;
    flex: 0 0 auto;
    min-width: 0;
}

.tess-inspinia5-shell .brisc-inspinia-footer .footermarker {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    float: none;
    height: 39px;
    line-height: 1;
    padding-left: 0;
    vertical-align: middle;
}

.tess-inspinia5-shell .brisc-inspinia-footer .footermarker table {
    margin: 0;
    width: auto;
}

.tess-inspinia5-shell .brisc-inspinia-footer .footermarker td {
    line-height: 1;
    padding: 0 2px;
    white-space: nowrap;
}

.tess-inspinia5-shell .brisc-inspinia-footer .tess-translator-toggle {
    align-items: center;
    display: inline-flex;
    gap: 6px;
    height: 39px;
    line-height: 1;
    white-space: nowrap;
}

.tess-inspinia5-shell .brisc-inspinia-footer .tess-translator-toggle-label {
    font-size: inherit;
    margin: 0;
}

.tess-inspinia5-shell .brisc-inspinia-footer .tess-translator-toggle .form-check.form-switch {
    margin-bottom: 0;
    min-height: 0;
    padding-left: 2.5em;
}

.tess-inspinia5-shell .brisc-inspinia-footer .tess-translator-toggle .form-check-input:not(:checked) {
    background-color: #d1dade;
    border-color: #a7b1c2;
}

.tess-inspinia5-shell .brisc-inspinia-footer .tess-translator-toggle .form-check-input:checked {
    background-color: #1ab394;
    border-color: #1ab394;
}

.tess-inspinia5-shell .brisc-inspinia-footer .footermarker1 {
    overflow: hidden;
    position: absolute;
    right: 10px;
    top: 0;
    height: 39px;
    line-height: 39px;
    max-width: 200px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tess-inspinia5-shell .brisc-inspinia-footer .tesscopyright {
    text-align: center;
    padding-left: 10px;
    margin: 0;
    float: none;
}

/* --- Legacy widget shells on BS5 pages (Inspinia5 card parity) --- */

.tess-inspinia5-shell .ibox {
    margin-bottom: 1.25rem;
    background: #fff;
    border: 0;
    border-radius: 0.375rem;
    box-shadow: var(--theme-theme-card-box-shadow, 0 1px 2px rgba(57, 62, 80, 0.12));
}

.tess-inspinia5-shell .ibox-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
    background: #fff;
    border-radius: 0.375rem 0.375rem 0 0;
}

.tess-inspinia5-shell .ibox-title h5 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: #676a6c;
    line-height: 1.3;
}

.tess-inspinia5-shell .ibox-tools {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
}

.tess-inspinia5-shell .ibox-tools .collapse-link,
.tess-inspinia5-shell .ibox-tools .close-link {
    color: #a7b1c2;
    cursor: pointer;
    opacity: 0.85;
    padding: 0.15rem 0.25rem;
}

.tess-inspinia5-shell .ibox-tools .collapse-link:hover,
.tess-inspinia5-shell .ibox-tools .close-link:hover {
    color: #676a6c;
    opacity: 1;
}

.tess-inspinia5-shell .ibox-content {
    padding: 1rem;
}

.tess-inspinia5-shell .ibox.float-e-margins {
    margin-bottom: 1.25rem;
}

/* BoxWidget → card shell (overrides per-widget generated styles) */
.tess-inspinia5-shell div[id^="widget-"][class^="widget-"] {
    background-color: #fff !important;
    border: 1px solid #e7eaec !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 1px 4px rgba(57, 62, 80, 0.14) !important;
    margin-bottom: 1.25rem !important;
    margin-top: 0 !important;
    overflow: hidden;
}

.tess-inspinia5-shell .tess-boxwidget-head,
.tess-inspinia5-shell [class*="widget-head-"] {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem;
    height: auto !important;
    min-height: 2.5rem;
    padding: 0.75rem 1rem !important;
    background: #fff !important;
    background-image: none !important;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.12) !important;
    border-radius: 0.375rem 0.375rem 0 0 !important;
    overflow: visible !important;
}

.tess-inspinia5-shell .tess-boxwidget-title,
.tess-inspinia5-shell [class*="widget-title-"] {
    float: none !important;
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.3;
    text-shadow: none !important;
    color: #676a6c !important;
    text-align: left;
}

.tess-inspinia5-shell [class*="widget-controls-"] {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto;
    gap: 0.35rem;
    vertical-align: middle !important;
}

.tess-inspinia5-shell [class*="widget-controls-"] a {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    opacity: 0.85;
}

.tess-inspinia5-shell [class*="widget-controls-"] a:hover {
    opacity: 1;
}

.tess-inspinia5-shell [class*="widget-controls-"] svg text,
.tess-inspinia5-shell [class*="widget-controls-"] .livicon svg text {
    display: none !important;
}

.tess-inspinia5-shell [class*="widget-body-"] {
    border-radius: 0 0 0.375rem 0.375rem !important;
    padding: 0.75rem 1rem !important;
    text-align: left !important;
}

.tess-inspinia5-shell .font-bold {
    font-weight: 600;
}

.tess-inspinia5-shell .panel {
    margin-bottom: 1rem;
}

.tess-inspinia5-shell .profile-image {
    float: left;
    width: 120px;
}

.tess-inspinia5-shell .profile-image img {
    height: 96px;
    width: 96px;
}

.tess-inspinia5-shell .profile-info {
    margin-left: 120px;
}

.tess-inspinia5-shell .contact-card-topmenu {
    line-height: 1;
    font-family: var(--tess-inspinia5-ui-font);
}

.tess-inspinia5-shell .tess-contact-card,
.tess-inspinia5-shell .tess-contact-card .label,
.tess-inspinia5-shell table.contact,
.tess-inspinia5-shell table.contact td,
.tess-inspinia5-shell table.contact h3,
.tess-inspinia5-shell .contact-card-info-compact,
.tess-inspinia5-shell .contact-card-meta,
.tess-inspinia5-shell .contact-card-meta-chip,
.tess-inspinia5-shell .contact-card-path,
.tess-inspinia5-shell .contact-detail,
.tess-inspinia5-shell .contact-title,
.tess-inspinia5-shell .niceContact {
    font-family: var(--tess-inspinia5-ui-font);
}

.tess-inspinia5-shell .contact-card-meta-col {
    border-left: 1px solid #e7eaec;
    color: #676a6c;
    font-size: 12px;
    padding: 0 12px 8px;
}

.tess-inspinia5-shell .contact-card-meta {
    gap: 10px;
}

.tess-inspinia5-shell .contact-card-meta-chip {
    background: #f3f3f4;
    border-color: #e7eaec;
    color: #676a6c;
}

.tess-inspinia5-shell .contact-card-meta-chip-value {
    color: #2f4050;
}

.tess-inspinia5-shell .contact-card-meta-stat {
    background: #fff;
    border-color: #e7eaec;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.tess-inspinia5-shell .contact-card-meta-row dt {
    color: #a7b1c2;
}

.tess-inspinia5-shell .contact-card-meta-row dd {
    color: #676a6c;
}

.tess-inspinia5-shell .contact-card-meta-namecards {
    margin-bottom: 2px;
}

.tess-inspinia5-shell .contact-card-meta-namecards img.sborder {
    max-height: 72px;
    object-fit: cover;
    width: auto;
}

.tess-inspinia5-shell .contact-card-path {
    background: #f3f3f4;
    border-color: #e7eaec;
    box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.04);
}

.tess-inspinia5-shell .contact-card-path-separator {
    color: #b5b9c2;
    opacity: 0.9;
}

.tess-inspinia5-shell .contact-card-path .divlink:hover {
    background: rgba(26, 179, 148, 0.1);
}

.tess-inspinia5-shell .contact-card-path .niceContact {
    color: #676a6c;
    font-size: 12px;
}

.tess-inspinia5-shell .contact-card-path .niceContact b {
    color: #2f4050;
    font-weight: 600;
}

.tess-inspinia5-shell .tess-contact-card .tess-mark-as-client-btn .btn {
    font-size: 11px;
    line-height: 1.25;
    padding: 1px 8px;
}

.tess-inspinia5-shell .card-cols {
    overflow: auto;
}

.tess-inspinia5-shell .sidepanel-layout-table,
.tess-inspinia5-shell .sidepanel-layout-flex {
    --tess-sidepanel-bg: var(--theme-sidenav-bg);
    --tess-sidepanel-fg: var(--theme-sidenav-item-color);
    --tess-sidepanel-muted: var(--theme-sidenav-item-color);
    --tess-sidepanel-button-bg: transparent;
    --tess-sidepanel-button-hover-bg: var(--theme-sidenav-item-hover-bg);
    --tess-sidepanel-button-active-bg: var(--theme-sidenav-item-active-bg);
}

.tess-inspinia5-shell .sidepanel-layout-flex {
    --tess-sidepanel-width-hidden: 26px;
    min-height: 0;
    display: flex;
    width: 100%;
    align-items: stretch;
    background: #f3f3f4;
    margin-left: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100%;
    position: relative;
    z-index: 0;
}

@property --tess-sidepanel-current-width {
    inherits: false;
    initial-value: 200px;
    syntax: '<length-percentage>';
}

.tess-inspinia5-shell .sidepanel-layout-flex .sidepanel {
    --tess-sidepanel-current-width: var(--tess-sidepanel-width-wide, 200px);
    flex: 0 0 var(--tess-sidepanel-current-width);
    background: var(--theme-sidenav-bg);
    border-right: 1px solid var(--theme-sidenav-border-color);
    box-shadow: none;
    color: var(--theme-sidenav-item-color);
    display: flex;
    flex-direction: column;
    max-width: var(--tess-sidepanel-current-width);
    min-height: calc(100vh - 100px);
    min-width: var(--tess-sidepanel-current-width);
    padding: 8px 0 0;
    transition: --tess-sidepanel-current-width 0.25s ease-in-out;
    width: var(--tess-sidepanel-current-width);
}

.tess-inspinia5-shell .sidepanel-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: visible;
    overflow-y: auto;
    padding: 0 0 8px;
}

.tess-inspinia5-shell .sidepanel-mode-footer {
    background: var(--theme-sidenav-bg);
    border-top: 1px solid var(--theme-sidenav-border-color);
    flex: 0 0 auto;
    margin-top: auto;
    padding: 8px 0 10px;
    text-align: center;
}

.tess-inspinia5-shell .sidepanel-mode-toggle {
    background: transparent;
    border: 0;
    color: var(--theme-sidenav-item-color);
    cursor: pointer;
    display: inline-flex;
    font-size: 18px;
    line-height: 1;
    opacity: 0.85;
    padding: 6px 10px;
}

.tess-inspinia5-shell .sidepanel-mode-toggle svg.lucide {
    display: block;
    height: 20px;
    transition: transform 0.2s ease-in-out, opacity 0.15s ease-in-out;
    width: 20px;
}

.tess-inspinia5-shell .sidepanel-mode-toggle:hover,
.tess-inspinia5-shell .sidepanel-mode-toggle:focus {
    color: var(--theme-sidenav-item-hover-color);
    opacity: 1;
    outline: none;
}

.tess-inspinia5-shell .sidepanel-layout-flex .sidepanel-content,
.tess-inspinia5-shell .sidepanel-layout-flex #placeholder {
    flex: 1 1 auto;
    min-width: 0;
}

.tess-inspinia5-shell .sidepanel-layout-flex .sidepanelmainpart {
    flex: 1 1 auto;
    min-width: 0;
    transition: flex 0.25s ease-in-out;
}

.tess-inspinia5-shell .sidepanel-layout-flex .sidepanel-main-inner {
    padding: 6px 6px 18px 0;
}

.tess-inspinia5-shell .sidepanelmainpart:has(#contactplaceholder) .sidepanel-main-inner {
    padding-top: 1px;
}

.tess-inspinia5-shell .sidepanel form,
.tess-inspinia5-shell .sidepanel .form-inline,
.tess-inspinia5-shell .sidepanel .input-group {
    align-items: center;
    display: flex;
    gap: 4px;
    width: 100%;
}

.tess-inspinia5-shell .sidepanel input[type="text"],
.tess-inspinia5-shell .sidepanel input[type="search"],
.tess-inspinia5-shell .sidepanel select {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
}

.tess-inspinia5-shell .sidepanel input[type="button"],
.tess-inspinia5-shell .sidepanel input[type="submit"],
.tess-inspinia5-shell .sidepanel button,
.tess-inspinia5-shell .sidepanel .btn {
    flex: 0 0 auto;
}

.tess-inspinia5-shell .sidepanel .input-group.note-editor,
.tess-inspinia5-shell .dashboard-header .input-group.note-editor,
.tess-inspinia5-shell .input-group.note-editor:has(.searchnicecombo) {
    padding: 0 6px;
    width: 100%;
}

.tess-inspinia5-shell .tess-dashboard-panel .card-body:has(.searchnicecombo) .input-group.note-editor {
    margin-bottom: 0.65rem;
}

.tess-inspinia5-shell .sidepanel .input-group.note-editor .niceCombo,
.tess-inspinia5-shell .dashboard-header .input-group.note-editor .niceCombo,
.tess-inspinia5-shell .input-group.note-editor:has(.searchnicecombo) .niceCombo {
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
}

.tess-inspinia5-shell .sidepanel .input-group.note-editor .input-group-btn,
.tess-inspinia5-shell .dashboard-header .input-group.note-editor .input-group-btn,
.tess-inspinia5-shell .input-group.note-editor:has(.searchnicecombo) .input-group-btn {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 4px;
}

.tess-inspinia5-shell .sidepanel .input-group.note-editor .input-group-btn .btn,
.tess-inspinia5-shell .sidepanel .input-group.note-editor .input-group-btn button,
.tess-inspinia5-shell .dashboard-header .input-group.note-editor .input-group-btn .btn,
.tess-inspinia5-shell .dashboard-header .input-group.note-editor .input-group-btn button,
.tess-inspinia5-shell .input-group.note-editor:has(.searchnicecombo) .input-group-btn .btn,
.tess-inspinia5-shell .input-group.note-editor:has(.searchnicecombo) .input-group-btn button {
    align-items: center;
    border-style: solid;
    border-width: 1px;
    display: inline-flex;
    font-size: 12px;
    height: 30px;
    justify-content: center;
    line-height: 1;
    padding: 4px 8px;
}

.tess-inspinia5-shell .sidepanel .input-group.note-editor .input-group-btn .tess-search-go-btn,
.tess-inspinia5-shell .dashboard-header .input-group.note-editor .input-group-btn .tess-search-go-btn,
.tess-inspinia5-shell .input-group.note-editor:has(.searchnicecombo) .input-group-btn .tess-search-go-btn {
    border-color: var(--tess-btn-primary);
}

.tess-inspinia5-shell .sidepanel .input-group.note-editor .input-group-btn .tess-search-help-btn,
.tess-inspinia5-shell .dashboard-header .input-group.note-editor .input-group-btn .tess-search-help-btn,
.tess-inspinia5-shell .input-group.note-editor:has(.searchnicecombo) .input-group-btn .tess-search-help-btn {
    background-color: #fff;
    border-color: #d1dade;
    color: #676a6c;
    font-weight: 600;
    min-width: 30px;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
}

.tess-inspinia5-shell .sidepanel .input-group.note-editor .input-group-btn .tess-search-help-btn:hover,
.tess-inspinia5-shell .sidepanel .input-group.note-editor .input-group-btn .tess-search-help-btn:focus,
.tess-inspinia5-shell .dashboard-header .input-group.note-editor .input-group-btn .tess-search-help-btn:hover,
.tess-inspinia5-shell .dashboard-header .input-group.note-editor .input-group-btn .tess-search-help-btn:focus,
.tess-inspinia5-shell .input-group.note-editor:has(.searchnicecombo) .input-group-btn .tess-search-help-btn:hover,
.tess-inspinia5-shell .input-group.note-editor:has(.searchnicecombo) .input-group-btn .tess-search-help-btn:focus {
    background-color: #f8f9fa;
    border-color: #c5ccd1;
    color: #333;
}

/* Sidepanel contact search — subdued controls on dark sidenav background */
.tess-inspinia5-shell .sidepanel .input-group.note-editor {
    padding: 6px 8px 8px;
}

.tess-inspinia5-shell .sidepanel .input-group.note-editor.tess-contact-search {
    padding-top: 1px;
}

.tess-inspinia5-shell .sidepanel .searchnicecombo {
    background-color: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 4px;
}

.tess-inspinia5-shell .sidepanel .searchnicecombo-focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: color-mix(in srgb, var(--theme-primary, #1ab394) 55%, rgba(255, 255, 255, 0.2)) !important;
    box-shadow: 0 0 0 1px rgba(26, 179, 148, 0.18);
}

.tess-inspinia5-shell .sidepanel .searchnicecombo .niceComboText,
.tess-inspinia5-shell .sidepanel .searchnicecombo .niceComboTextArea {
    color: var(--theme-sidenav-item-hover-color);
}

.tess-inspinia5-shell .sidepanel .input-group.note-editor .input-group-btn .tess-search-go-btn {
    background-color: rgba(26, 179, 148, 0.14);
    border-color: color-mix(in srgb, var(--theme-primary, #1ab394) 65%, transparent);
    color: #b7ecdf;
}

.tess-inspinia5-shell .sidepanel .input-group.note-editor .input-group-btn .tess-search-go-btn:hover,
.tess-inspinia5-shell .sidepanel .input-group.note-editor .input-group-btn .tess-search-go-btn:focus {
    background-color: rgba(26, 179, 148, 0.24);
    border-color: var(--theme-primary, #1ab394);
    color: #e8f7f3;
}

.tess-inspinia5-shell .sidepanel .input-group.note-editor .input-group-btn .tess-search-help-btn {
    background-color: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    color: var(--theme-sidenav-item-color) !important;
    font-weight: 600;
}

.tess-inspinia5-shell .sidepanel .input-group.note-editor .input-group-btn .tess-search-help-btn:hover,
.tess-inspinia5-shell .sidepanel .input-group.note-editor .input-group-btn .tess-search-help-btn:focus {
    background-color: rgba(255, 255, 255, 0.11) !important;
    border-color: rgba(255, 255, 255, 0.24) !important;
    color: var(--theme-sidenav-item-hover-color) !important;
}

/* Dashboard / light areas keep crisp search chrome */
.tess-inspinia5-shell .dashboard-header .searchnicecombo,
.tess-inspinia5-shell .tess-dashboard-panel .searchnicecombo {
    background-color: #fff !important;
    border: 1px solid #d1dade !important;
    border-radius: 2px;
}

.tess-inspinia5-shell .dashboard-header .searchnicecombo-focus,
.tess-inspinia5-shell .tess-dashboard-panel .searchnicecombo-focus {
    border-color: var(--tess-btn-primary, #1ab394) !important;
}

/* Sidepanel BatchBox widget — flush on sidenav (no rounded-corner artifacts) */
.tess-inspinia5-shell .sidepanel div[id^="widget-"][class^="widget-"] {
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-bottom: 0.75rem !important;
    overflow: visible !important;
}

.tess-inspinia5-shell .sidepanel .tess-boxwidget-head,
.tess-inspinia5-shell .sidepanel [class*="widget-head-"] {
    background: rgba(255, 255, 255, 0.06) !important;
    background-image: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 !important;
    min-height: 2.25rem;
    overflow: visible !important;
    padding: 0.55rem 0.65rem !important;
}

.tess-inspinia5-shell .sidepanel .tess-boxwidget-title,
.tess-inspinia5-shell .sidepanel [class*="widget-title-"] {
    color: var(--theme-sidenav-item-hover-color) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tess-inspinia5-shell .sidepanel [class*="widget-controls-"] a {
    color: var(--theme-sidenav-item-color);
    opacity: 0.8;
}

.tess-inspinia5-shell .sidepanel [class*="widget-controls-"] a:hover {
    color: var(--theme-sidenav-item-hover-color);
    opacity: 1;
}

.tess-inspinia5-shell .sidepanel [class*="widget-body-"] {
    background-color: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
    padding: 0.35rem 0.65rem 0.65rem !important;
}

.tess-inspinia5-shell .sidepanel .batchbox-message {
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: var(--theme-sidenav-item-color);
    font-size: 11px;
    line-height: 1.45;
    padding: 2px 0 6px;
    text-align: center;
}

.tess-inspinia5-shell .sidepanel .batchbox-message b {
    color: var(--theme-sidenav-item-hover-color);
    font-weight: 700;
}

.tess-inspinia5-shell .sidepanel .batchbox-typecounts {
    color: var(--theme-sidenav-item-color);
    opacity: 0.9;
}

.tess-inspinia5-shell .sidepanel .batchbox-extramessage {
    color: #f8ac59 !important;
}

.tess-inspinia5-shell .sidepanel .batchbox-message a img {
    filter: brightness(1.35);
    margin-left: 3px;
    opacity: 0.8;
    vertical-align: middle;
}

.tess-inspinia5-shell .sidepanel .batchbox {
    background-color: lightgreen !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 40px auto;
    border: 2px solid transparent !important;
    border-radius: 0 !important;
    height: 56px;
    margin-top: 4px;
}

.tess-inspinia5-shell .sidepanel .batchbox-dragover {
    background-color: #ffe8e8 !important;
    border: 2px dashed #ed5565 !important;
    box-shadow: inset 0 0 0 2px rgba(237, 85, 101, 0.35);
}

.tess-inspinia5-shell .sidepanel .dragsource-batchbox {
    background-color: rgba(255, 200, 200, 0.85) !important;
    box-shadow: inset 0 0 0 2px rgba(237, 85, 101, 0.55);
    color: #fff;
}

/* Contact drag-drop feedback (table, path, todos — not only sidepanel) */
.tess-inspinia5-shell .dragsource[draggable="true"] {
    cursor: grab;
}

.tess-inspinia5-shell .dragsource.dragsource-dragging {
    cursor: grabbing;
    opacity: 0.75;
}

.tess-inspinia5-shell .dragsource-dragover {
    background-color: rgba(237, 85, 101, 0.12) !important;
    border-radius: 4px;
    box-shadow: inset 0 0 0 2px #ed5565;
    opacity: 0.85;
    outline: 2px dashed #ed5565;
    outline-offset: 1px;
}

.tess-inspinia5-shell .dragsource-batchbox {
    background-color: rgba(255, 200, 200, 0.85) !important;
    box-shadow: inset 0 0 0 2px rgba(237, 85, 101, 0.55);
    color: #fff;
}

.tess-inspinia5-shell .batchbox-dragover {
    background-color: #ffe8e8 !important;
    border-color: #ed5565 !important;
    border-style: dashed !important;
    box-shadow: inset 0 0 0 2px rgba(237, 85, 101, 0.35);
}

.tess-inspinia5-shell .sidepanelgroup {
    background: transparent;
    border-bottom: 0;
    margin: 0;
}

.tess-inspinia5-shell .sidepanel > div > .sidepanelgroup + .sidepanelgroup {
    border-top: 1px solid var(--theme-sidenav-border-color);
    margin-top: 6px;
    padding-top: 4px;
}

.tess-inspinia5-shell .sidepanelgroup-sub {
    border-left: 2px solid color-mix(in srgb, var(--theme-primary, #1ab394) 40%, var(--theme-sidenav-border-color));
    margin: 6px 8px 10px 14px;
}

.tess-inspinia5-shell .sidepanelgroup-sub > .sidepanelgrouphead {
    background: color-mix(in srgb, var(--theme-primary, #1ab394) 14%, var(--theme-sidenav-item-hover-bg));
    border-radius: 4px;
    color: var(--theme-primary, #1ab394);
    font-size: calc(var(--theme-sidenav-item-font-size, 0.875rem) * 0.82);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-right: 6px;
    min-height: 28px;
    opacity: 1;
    padding: 5px 8px 5px 10px;
    text-transform: none;
}

.tess-inspinia5-shell .sidepanelgroup-sub > .sidepanelgrouphead .sidepanelrighticon {
    color: inherit;
    font-size: 11px;
    opacity: 0.85;
}

.tess-inspinia5-shell .sidepanelgroup-sub .sidepanelbutton,
.tess-inspinia5-shell .sidepanelgroup-sub .sidepanellink_sub {
    min-height: 28px;
    padding-left: 14px;
}

.tess-inspinia5-shell .sidepanelgroup-sub .sidepanelbuttonicon {
    flex: 0 0 20px;
    font-size: 0.92em;
}

.tess-inspinia5-shell .sidepanelgrouphead {
    align-items: center;
    background: color-mix(in srgb, var(--theme-primary, #1ab394) 12%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--theme-primary, #1ab394) 28%, transparent);
    color: var(--theme-primary, #1ab394);
    display: flex;
    font-size: calc(var(--theme-sidenav-item-font-size, 0.875rem) * 0.7);
    font-weight: var(--theme-font-weight-bold, 700);
    gap: 6px;
    letter-spacing: 0.1em;
    min-height: 34px;
    padding: 8px 12px 6px 22px;
    box-shadow: none;
    text-shadow: none;
    text-transform: uppercase;
}

.tess-inspinia5-shell .sidepanelgrouphead .sidepanelrighticon {
    color: inherit;
    opacity: 0.9;
}

.tess-inspinia5-shell .sidepanelgroupcontent {
    background: transparent;
}

.tess-inspinia5-shell .sidepanelseparator {
    background: var(--theme-sidenav-border-color);
    border: 0;
    box-shadow: none;
    height: 1px;
    margin: 6px 12px;
    opacity: 0.65;
}

.tess-inspinia5-shell .sidepanelrighticon {
    display: inline-block;
    margin-left: auto;
    transition: transform 0.1s ease-in-out;
}

.tess-inspinia5-shell .sidepanelgrouphead--expanded .sidepanelrighticon,
.tess-inspinia5-shell .sidepanelgrouphead[aria-expanded="true"] .sidepanelrighticon {
    transform: rotate(-180deg);
}

.tess-inspinia5-shell .sidepanel .contact-tagcloud {
    --contact-tag-ghost-bg: rgba(255, 255, 255, 0.05);
    --contact-tag-ghost-border: var(--theme-sidenav-border-color, rgba(255, 255, 255, 0.2));
    --contact-tag-ghost-fg: var(--theme-sidenav-item-color, #a7b1c2);
    --contact-tag-hover-bg: var(--theme-sidenav-item-hover-bg, rgba(255, 255, 255, 0.1));
    --contact-tag-hover-border: rgba(255, 255, 255, 0.34);
    --contact-tag-selected-ring: color-mix(in srgb, var(--contact-tag-accent) 45%, transparent);
    padding: 6px 8px 8px;
}

.tess-inspinia5-shell .sidepanel .contact-tagcloud-filters {
    background: rgba(0, 0, 0, 0.14);
    border-color: var(--theme-sidenav-border-color);
}

.tess-inspinia5-shell .sidepanel .contact-tagcloud-filter-label {
    color: var(--theme-sidenav-item-color);
    opacity: 0.72;
}

.tess-inspinia5-shell .sidepanel .contact-tagcloud-clear {
    color: var(--theme-sidenav-item-color);
    opacity: 0.85;
    text-decoration: none;
}

.tess-inspinia5-shell .sidepanel .contact-tagcloud-clear:hover,
.tess-inspinia5-shell .sidepanel .contact-tagcloud-clear:focus {
    color: var(--theme-sidenav-item-hover-color, #fff);
    text-decoration: none;
}

.tess-inspinia5-shell .sidepanel .contact-tagcloud-mode--segmented {
    border-color: var(--theme-sidenav-border-color);
}

.tess-inspinia5-shell .sidepanel .contact-tagcloud-mode-option span {
    color: var(--theme-sidenav-item-color);
    opacity: 0.8;
}

.tess-inspinia5-shell .sidepanel .contact-tagcloud-mode-option input:checked + span {
    color: #fff !important;
    opacity: 1;
}

.tess-inspinia5-shell .sidepanel .contact-tagcloud .contact-tagcloud-tag:not(.contact-tagcloud-tag-selected) .label.contact-tagcloud-pill,
.tess-inspinia5-shell .sidepanel .contact-tagcloud .contact-tagcloud-tag:not(.contact-tagcloud-tag-selected) .tessbadge.contact-tagcloud-pill {
    background-color: var(--contact-tag-ghost-bg);
    border: 1px solid var(--contact-tag-ghost-border);
    border-radius: 999px !important;
    color: var(--contact-tag-ghost-fg) !important;
    display: inline-block !important;
    font-family: inherit;
    font-size: calc(0.72rem * var(--tag-scale, 1)) !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    padding: 3px 9px;
    white-space: nowrap;
}

.tess-inspinia5-shell .sidepanel .contact-tagcloud-tag:not(.contact-tagcloud-tag-selected):hover .contact-tagcloud-pill,
.tess-inspinia5-shell .sidepanel .contact-tagcloud-tag:not(.contact-tagcloud-tag-selected):focus-visible .contact-tagcloud-pill {
    background-color: var(--contact-tag-hover-bg);
    border-color: var(--contact-tag-hover-border);
    color: var(--contact-tag-ghost-fg) !important;
}

.tess-inspinia5-shell .sidepanel .contact-tagcloud-tag-selected .label.contact-tagcloud-pill,
.tess-inspinia5-shell .sidepanel .contact-tagcloud-tag-selected .tessbadge.contact-tagcloud-pill,
.tess-inspinia5-shell .sidepanel .contact-tagcloud-chip .label.contact-tagcloud-pill,
.tess-inspinia5-shell .sidepanel .contact-tagcloud-chip .tessbadge.contact-tagcloud-pill {
    background-color: var(--contact-tag-accent) !important;
    border-color: var(--contact-tag-accent) !important;
    box-shadow: 0 0 0 2px var(--contact-tag-selected-ring);
    color: #fff !important;
    font-weight: 600 !important;
}

.tess-inspinia5-shell .sidepanel .contact-tagcloud-tag-selected:hover .label.contact-tagcloud-pill,
.tess-inspinia5-shell .sidepanel .contact-tagcloud-tag-selected:focus-visible .label.contact-tagcloud-pill,
.tess-inspinia5-shell .sidepanel .contact-tagcloud-chip:hover .label.contact-tagcloud-pill {
    color: #fff !important;
}

.tess-inspinia5-shell .sidepanel .contact-tagcloud-chip .contact-tagcloud-chip-remove,
.tess-inspinia5-shell .sidepanel .contact-tagcloud-chip .contact-tagcloud-chip-remove:hover {
    color: #fff;
    opacity: 0.9;
}

.tess-inspinia5-shell .sidepanel .contact-tagcloud-chip .contact-tagcloud-chip-remove:hover {
    opacity: 1;
}

.tess-inspinia5-shell .sidepanel .contact-tagcloud-chip .contact-tagcloud-pill {
    align-items: center;
    display: inline-flex !important;
    font-size: 0.72rem !important;
    gap: 4px;
    padding: 2px 4px 2px 8px;
}

.tess-inspinia5-shell .sidepanelbuttonlink {
    color: inherit;
    display: block;
    text-decoration: none;
}

.tess-inspinia5-shell .sidepanelbutton,
.tess-inspinia5-shell .sidepanellink_sub {
    align-items: center;
    background: var(--tess-sidepanel-button-bg);
    border-left: 3px solid transparent;
    border-right: 0;
    border-top: 0;
    box-shadow: none;
    color: var(--theme-sidenav-item-color);
    display: flex;
    gap: 6px;
    height: auto;
    min-height: 30px;
    padding: 4px 10px 4px 12px;
    transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.tess-inspinia5-shell .sidepanel-layout-flex .sidepanelbutton:hover,
.tess-inspinia5-shell .sidepanel-layout-flex .sidepanellink_sub:hover,
.tess-inspinia5-shell .sidepanel-layout-flex .sidepanelbuttonlink:hover > .sidepanelbutton:not(.sidepanelbuttonactive),
.tess-inspinia5-shell .sidepanel-layout-flex .sidepanelbuttonlink:hover > .sidepanellink_sub:not(.sidepanelbuttonactive),
.tess-inspinia5-shell .sidepanelbutton:hover,
.tess-inspinia5-shell .sidepanellink_sub:hover {
    background: var(--theme-sidenav-item-hover-bg);
    border-left-color: var(--theme-primary, #1ab394);
    border-right-color: transparent;
    color: var(--theme-sidenav-item-hover-color);
}

.tess-inspinia5-shell .sidepanel-layout-flex .sidepanelbuttonactive,
.tess-inspinia5-shell .sidepanelbuttonactive {
    background: var(--theme-sidenav-item-active-bg);
    border-top: 0;
    border-bottom: 0;
    border-left: 3px solid var(--theme-primary, #1ab394);
    border-right: 0;
    color: #fff;
}

.tess-inspinia5-shell .sidepanel-layout-flex .sidepanelbuttontext,
.tess-inspinia5-shell .sidepanel-layout-flex .sidepanellink_subtext {
    color: inherit;
}

.tess-inspinia5-shell .sidepanelbuttonicon {
    align-items: center;
    background: transparent;
    color: inherit;
    display: inline-flex;
    flex: 0 0 20px;
    justify-content: center;
}

.tess-inspinia5-shell .sidepanelbuttontext {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
}

.tess-inspinia5-shell .sidepanelbuttonlabel {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tess-inspinia5-shell .sidepanelbuttonbadges {
    margin-left: auto;
}

.tess-inspinia5-shell .sidepanel-toggle {
    background: transparent;
    border: 0;
    color: var(--theme-sidenav-item-color);
    display: inline-flex;
    height: auto;
    margin: 0;
    padding: 6px 8px;
    position: static;
    top: auto;
    width: auto;
    z-index: auto;
}

/* Sidepanel condensed (icon-only) mode — desktop only */
@media (min-width: 992px) {
    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-hidden .sidepanel {
        cursor: pointer;
        justify-content: center;
        overflow: visible;
        padding: 0;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-hidden .sidepanel-body {
        display: none;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-hidden .sidepanel-mode-footer {
        align-items: center;
        border-top: 0;
        display: flex;
        flex: 1 1 auto;
        justify-content: center;
        margin: 0;
        min-height: 0;
        padding: 0;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-hidden .sidepanel-mode-toggle {
        opacity: 1;
        padding: 4px 2px;
        pointer-events: none;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-hidden .sidepanel-mode-toggle svg.lucide {
        height: 14px;
        width: 14px;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanel,
    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanel-body {
        overflow: visible;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanel {
        overflow: visible;
        padding-left: 0;
        padding-right: 0;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanel .sidepanelbuttonlink .sidepanelbuttontext,
    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanel .sidepanelbuttonlink .sidepanellink_subtext {
        flex: 0 0 0;
        letter-spacing: 0;
        min-width: 0;
        overflow: hidden;
        width: 0;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanel .sidepanelbuttonlink .sidepanelbuttonlabel,
    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanel .sidepanelbuttonlink .sidepanellink_subtext .sidepanelbuttonlabel {
        border: 0;
        clip: rect(0, 0, 0, 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        white-space: nowrap;
        width: 1px;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:hover > .sidepanelgroupcontent .sidepanelbuttontext,
    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:focus-within > .sidepanelgroupcontent .sidepanelbuttontext,
    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:hover > .sidepanelgroupcontent .sidepanellink_subtext,
    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:focus-within > .sidepanelgroupcontent .sidepanellink_subtext {
        display: flex;
        flex: 1 1 auto;
        letter-spacing: normal;
        min-width: 0;
        overflow: visible;
        text-transform: none;
        width: auto;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:hover > .sidepanelgroupcontent .sidepanelbuttonlabel,
    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:focus-within > .sidepanelgroupcontent .sidepanelbuttonlabel {
        clip: auto;
        display: inline !important;
        height: auto;
        margin: 0;
        overflow: visible;
        padding: 0;
        position: static;
        white-space: normal;
        width: auto;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:hover > .sidepanelgroupcontent .sidepanelbutton,
    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:focus-within > .sidepanelgroupcontent .sidepanelbutton,
    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:hover > .sidepanelgroupcontent .sidepanellink_sub,
    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:focus-within > .sidepanelgroupcontent .sidepanellink_sub {
        justify-content: flex-start;
        min-height: 30px;
        padding: 4px 12px;
        position: static;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:hover > .sidepanelgroupcontent .sidepanelbuttonicon,
    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:focus-within > .sidepanelgroupcontent .sidepanelbuttonicon {
        flex: 0 0 20px;
        font-size: 13px;
        margin: 0;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:hover > .sidepanelgroupcontent .sidepanelbuttonbadges,
    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:focus-within > .sidepanelgroupcontent .sidepanelbuttonbadges {
        display: inline-flex !important;
        font-size: inherit;
        line-height: inherit;
        margin-left: auto;
        position: static;
        right: auto;
        top: auto;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanel .sidepanelbuttonlink .sidepanelbutton,
    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanel .sidepanelbuttonlink .sidepanellink_sub {
        justify-content: center;
        min-height: 38px;
        padding: 6px 4px;
        position: relative;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanel .sidepanelbuttonlink .sidepanelbuttonbadges {
        font-size: 9px;
        line-height: 1;
        margin: 0;
        position: absolute;
        right: 6px;
        top: 6px;
        z-index: 1;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup > .sidepanelgrouphead.sidepanelgrouphead--has-abbr {
        flex-direction: column;
        font-size: 0.62rem;
        gap: 2px;
        justify-content: center;
        letter-spacing: 0;
        line-height: 1.1;
        min-height: 44px;
        padding: 6px 2px;
        text-transform: none;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgrouphead-abbr {
        color: var(--theme-primary, #1ab394);
        display: block;
        font-size: 1em;
        font-weight: 700;
        letter-spacing: 0.04em;
        max-width: 100%;
        overflow: hidden;
        text-align: center;
        text-overflow: ellipsis;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgrouphead-title {
        display: none;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup > .sidepanelgrouphead.sidepanelgrouphead--has-abbr .sidepanelrighticon {
        font-size: 9px;
        margin-left: 0;
        opacity: 0.75;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelbuttonicon {
        flex: 0 0 auto;
        font-size: 14px;
        line-height: 1;
        margin: 0 auto;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelbuttonicon .fa,
    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelbuttonicon i {
        font-size: 14px;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelbuttonicon-fallback {
        align-items: center;
        background: var(--theme-sidenav-item-hover-bg);
        border-radius: 4px;
        display: inline-flex;
        font-size: 0.75rem;
        font-weight: 700;
        height: 24px;
        justify-content: center;
        min-width: 24px;
        width: 24px;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelbuttonicon .sidepaneliconimage {
        display: block;
        height: auto;
        margin: 0 auto;
        max-height: 22px;
        max-width: 22px;
        width: auto;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup > .sidepanelgrouphead:not(.sidepanelgrouphead--has-abbr) {
        font-size: 0.62rem;
        justify-content: center;
        letter-spacing: 0.04em;
        line-height: 1.1;
        min-height: 44px;
        overflow: hidden;
        padding: 6px 2px;
        text-align: center;
        text-overflow: ellipsis;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelseparator {
        margin: 6px 8px;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanel > .sidepanel-body > div > :not(.sidepanelgroup):not(.sidepanelbuttonlink):not(.sidepanelseparator) {
        display: none !important;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup {
        position: relative;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:not(.sidepanelgroup-sub):hover,
    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:not(.sidepanelgroup-sub):focus-within {
        z-index: 1070;
    }

    /* Strip: hide group menus until hover flyout. */
    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup > .sidepanelgroupcontent {
        display: none !important;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanel-flyout-heading {
        border-bottom: 1px solid var(--theme-sidenav-border-color);
        color: var(--theme-sidenav-item-color);
        display: block;
        font-size: calc(var(--theme-sidenav-item-font-size, 0.875rem) * 0.75);
        font-weight: var(--theme-font-weight-bold, 700);
        letter-spacing: 0.08em;
        line-height: 1.25;
        padding: 10px 14px 8px;
        text-transform: uppercase;
        white-space: normal;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:not(.sidepanelgroup-sub):hover > .sidepanelgroupcontent,
    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:not(.sidepanelgroup-sub):focus-within > .sidepanelgroupcontent {
        background: var(--theme-sidenav-bg);
        border: 1px solid var(--theme-sidenav-border-color);
        border-radius: 4px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
        display: block !important;
        left: 100%;
        margin-left: 0;
        max-height: calc(100vh - 120px);
        max-width: 300px;
        min-width: 240px;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 0 0 4px;
        position: absolute;
        top: 0;
        z-index: 1071;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:not(.sidepanelgroup-sub):hover > .sidepanelgroupcontent::before,
    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:not(.sidepanelgroup-sub):focus-within > .sidepanelgroupcontent::before {
        content: '';
        height: 100%;
        left: -14px;
        position: absolute;
        top: 0;
        width: 14px;
    }

    /* Sub-groups inside a flyout expand inline. */
    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:hover > .sidepanelgroupcontent .sidepanelgroup-sub > .sidepanelgroupcontent,
    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:focus-within > .sidepanelgroupcontent .sidepanelgroup-sub > .sidepanelgroupcontent {
        background: transparent;
        border: 0;
        box-shadow: none;
        display: block !important;
        left: auto;
        margin: 0;
        max-height: none;
        max-width: none;
        min-width: 0;
        overflow: visible;
        padding: 0;
        position: static;
        top: auto;
        width: auto;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:hover > .sidepanelgroupcontent .sidepanelgrouphead-abbr,
    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:focus-within > .sidepanelgroupcontent .sidepanelgrouphead-abbr {
        display: none !important;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:hover > .sidepanelgroupcontent .sidepanelgrouphead--has-abbr,
    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:focus-within > .sidepanelgroupcontent .sidepanelgrouphead--has-abbr,
    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:hover > .sidepanelgroupcontent .sidepanelgrouphead,
    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:focus-within > .sidepanelgroupcontent .sidepanelgrouphead {
        flex-direction: row;
        font-size: calc(var(--theme-sidenav-item-font-size, 0.875rem) * 0.7);
        justify-content: flex-start;
        letter-spacing: 0.1em;
        min-height: 34px;
        padding: 8px 12px 6px 16px;
        text-transform: uppercase;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:hover > .sidepanelgroupcontent .sidepanelgrouphead .sidepanelgrouphead-title,
    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:focus-within > .sidepanelgroupcontent .sidepanelgrouphead .sidepanelgrouphead-title {
        display: inline;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:hover > .sidepanelgroupcontent .sidepanelgrouphead .sidepanelrighticon,
    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-condensed .sidepanelgroup:focus-within > .sidepanelgroupcontent .sidepanelgrouphead .sidepanelrighticon {
        font-size: inherit;
        margin-left: auto;
        opacity: 1;
    }
}

@media (max-width: 991.98px) {
    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-hidden .sidepanel {
        cursor: pointer;
        justify-content: center;
        padding: 0;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-hidden .sidepanel-body {
        display: none;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-hidden .sidepanel-mode-footer {
        align-items: center;
        border-top: 0;
        display: flex;
        flex: 1 1 auto;
        justify-content: center;
        margin: 0;
        padding: 0;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-hidden .sidepanel-mode-toggle {
        padding: 4px 2px;
        pointer-events: none;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex.sidepanel-hidden .sidepanel-mode-toggle svg.lucide {
        height: 14px;
        width: 14px;
    }
}

.tess-inspinia5-shell .ajaxtabsnav.nav-tabs {
    align-items: flex-end;
    border-bottom: 1px solid #e7eaec;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin: 0;
    padding: 0;
}

.tess-inspinia5-shell .ajaxtabsnav > li {
    float: none;
    margin: 0;
}

.tess-inspinia5-shell .ajaxtabsnav > li > a.ajaxtabeara {
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e7eaec;
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
    color: #676a6c;
    cursor: pointer;
    display: inline-flex;
    gap: 4px;
    height: auto;
    line-height: 1.15 !important;
    min-height: 24px;
    padding: 3px 8px;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.tess-inspinia5-shell .ajaxtabsnav .tessbadge,
.tess-inspinia5-shell .ajaxtabsnav .label,
.tess-inspinia5-shell .ajaxtabsnav .badge {
    border-radius: 8px;
    font-size: 9px !important;
    line-height: 1.1;
    margin-left: 3px;
    min-width: 0;
    padding: 0 4px;
}

.tess-inspinia5-shell .ajaxtabsnav .contact-search-tab-ear .contact-tagcloud-pill {
    border-radius: 999px;
    font-size: 0.62rem !important;
    line-height: 1.2 !important;
    margin-left: 0;
    padding: 2px 7px;
}

.tess-inspinia5-shell .ajaxtabsnav .contact-search-tab-ear {
    gap: 4px;
}

.tess-inspinia5-shell .ajaxtabsnav > li > a.ajaxtabeara > p {
    align-items: center;
    display: inline-flex;
    font-size: inherit;
    line-height: 1.15 !important;
    margin: 0;
    max-height: none;
}

.tess-inspinia5-shell .ajaxtabsnav > li > a.ajaxtabeara > img {
    display: block;
    float: none;
    max-height: 14px;
    max-width: 16px;
    padding-right: 0;
}

.tess-inspinia5-shell .ajaxtabsnav > li > a.ajaxtabeara > i {
    display: inline-block;
    float: none;
    font-size: 11px;
    line-height: 1;
    padding-top: 0;
}

.tess-inspinia5-shell .ajaxtabsnav .tabearbuttons {
    font-size: 75%;
    margin-left: 2px;
}

.tess-inspinia5-shell .ajaxtabsnav .tabearbutton {
    color: #ccc;
    margin-bottom: 0;
    margin-left: 3px;
    width: 7px;
}

.tess-inspinia5-shell .ajaxtabsnav .tabearbutton i {
    color: inherit;
    font-size: 9px;
    line-height: 1;
}

.tess-inspinia5-shell .ajaxtabsnav .tabearbutton:hover,
.tess-inspinia5-shell .ajaxtabsnav .tabearbutton:hover i {
    color: #1ab394;
}

.tess-inspinia5-shell .ajaxtabsnav > li:not(.tabearactive) > a.ajaxtabeara:hover {
    background: #fff !important;
    border-color: #d1dade !important;
    box-shadow: none;
    color: #676a6c !important;
}

.tess-inspinia5-shell .ajaxtabsnav > li.tabearactive > a.ajaxtabeara {
    background: #fff;
    color: #1ab394;
}

.tess-inspinia5-shell .ajaxtabsnav > li.tabearactive > a.ajaxtabeara {
    border-top: 2px solid #1ab394;
    font-weight: 600;
}

.tess-inspinia5-shell .tabcontents {
    background: #fff !important;
    border: 1px solid #e7eaec;
    border-radius: 0 4px 4px;
    border-top: 0;
    padding: 8px;
}

.tess-inspinia5-shell .tabcontent {
    text-align: left;
}

.tess-inspinia5-shell .tabcontent.tess-tabcontent-loading {
    display: block !important;
    min-height: 260px;
}

.tess-inspinia5-shell .tess-todo-card,
.tess-inspinia5-shell .tess-todo-line {
    background: #fff;
    border: 1px solid #e7eaec;
    border-left: 2px solid #1ab394;
    border-radius: 3px;
    color: #676a6c;
    margin: 8px 0;
    padding: 12px 14px;
}

.tess-inspinia5-shell .tess-todo-card-row,
.tess-inspinia5-shell .tess-todo-line-main,
.tess-inspinia5-shell .tess-todo-line-meta {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.45;
}

.tess-inspinia5-shell .tess-todo-card-label,
.tess-inspinia5-shell .tess-todo-line-date,
.tess-inspinia5-shell .tess-todo-line-assigned {
    color: #888;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.tess-inspinia5-shell .tess-todo-card-value,
.tess-inspinia5-shell .tess-todo-line-task {
    min-width: 0;
}

.tess-inspinia5-shell .tess-todo-type {
    background: #e8f7f3;
    border-radius: 2px;
    color: #1ab394;
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 5px;
}

.tess-inspinia5-shell .tess-todo-id {
    color: #999;
    font-size: 11px;
}

.tooltip,
.tess-inspinia5-shell .tooltip {
    opacity: 1 !important;
    z-index: 1085 !important;
    font-family: var(--tess-inspinia5-ui-font);
    font-size: var(--tess-font-size-sm);
    line-height: var(--tess-line-height-base);
}

.ui-tooltip,
.qtip,
.qtip-default,
.tooltipster-base {
    z-index: 1085 !important;
    font-family: var(--tess-inspinia5-ui-font);
    font-size: var(--tess-font-size-sm);
    line-height: var(--tess-line-height-base);
}

.tooltip-inner,
.tess-inspinia5-shell .tooltip-inner,
.ui-tooltip,
.qtip,
.qtip-default,
.qtip-content,
.tooltipster-base .tooltipster-box,
.tooltipster-content {
    background: rgba(33, 37, 41, 0.96) !important;
    color: #fff !important;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    padding: 5px 8px;
    font-family: var(--tess-inspinia5-ui-font);
    font-size: var(--tess-font-size-sm);
    line-height: var(--tess-line-height-base);
}

.tooltip.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before,
.tooltip.bs-tooltip-top .tooltip-arrow::before,
.tess-inspinia5-shell .tooltip.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before,
.tess-inspinia5-shell .tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: rgba(33, 37, 41, 0.96) !important;
}

.tooltip.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before,
.tooltip.bs-tooltip-bottom .tooltip-arrow::before,
.tess-inspinia5-shell .tooltip.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before,
.tess-inspinia5-shell .tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: rgba(33, 37, 41, 0.96) !important;
}

.tooltip.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before,
.tooltip.bs-tooltip-left .tooltip-arrow::before,
.tess-inspinia5-shell .tooltip.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before,
.tess-inspinia5-shell .tooltip.bs-tooltip-left .tooltip-arrow::before {
    border-left-color: rgba(33, 37, 41, 0.96) !important;
}

.tooltip.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before,
.tooltip.bs-tooltip-right .tooltip-arrow::before,
.tess-inspinia5-shell .tooltip.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before,
.tess-inspinia5-shell .tooltip.bs-tooltip-right .tooltip-arrow::before {
    border-right-color: rgba(33, 37, 41, 0.96) !important;
}

.tess-inspinia5-shell .nicetable tfoot .btn,
.tess-inspinia5-shell [class^="nicetablefooter"] .btn,
.tess-inspinia5-shell [class*=" nicetablefooter"] .btn,
.tess-inspinia5-shell [class^="nicetablefooter"] a.btn,
.tess-inspinia5-shell [class*=" nicetablefooter"] a.btn,
.tess-inspinia5-shell [class^="nicetablefooter"] button,
.tess-inspinia5-shell [class*=" nicetablefooter"] button,
.tess-inspinia5-shell [class^="nicetablefooter"] input[type="button"],
.tess-inspinia5-shell [class*=" nicetablefooter"] input[type="button"],
.tess-inspinia5-shell [class^="nicetablefooter"] input[type="submit"],
.tess-inspinia5-shell [class*=" nicetablefooter"] input[type="submit"],
.tess-inspinia5-shell .nicetablefooter .btn,
.tess-inspinia5-shell .nicetablefooter button,
.tess-inspinia5-shell .nicetablefooter input[type="button"],
.tess-inspinia5-shell .nicetablefooter input[type="submit"],
.tess-inspinia5-shell .nicetable tfoot button,
.tess-inspinia5-shell .nicetable tfoot input[type="button"],
.tess-inspinia5-shell .nicetable tfoot input[type="submit"],
.tess-inspinia5-shell .nicetable .tablefooter .btn,
.tess-inspinia5-shell .nicetable .tablefooter button,
.tess-inspinia5-shell .nicetable .tablefooter input[type="button"],
.tess-inspinia5-shell .nicetable .tablefooter input[type="submit"],
.tess-inspinia5-shell .nicetable input[type="button"],
.tess-inspinia5-shell .nicetable .dataTables_wrapper .btn,
.tess-inspinia5-shell .nicetable .paginate_button,
.tess-inspinia5-shell .nicetable button,
.tess-inspinia5-shell .niceTableFooter .btn,
.tess-inspinia5-shell .niceTableFooter button,
.tess-inspinia5-shell .niceTableFooter input[type="button"],
.tess-inspinia5-shell .niceTableFooter input[type="submit"],
.tess-inspinia5-shell .tess-nicetable-toolbar .btn,
.tess-inspinia5-shell .tess-nicetable-multiselect-cell .btn,
.bootbox .tess-nicetable-toolbar .btn,
.bootbox .tess-nicetable-multiselect-cell .btn {
    align-items: center;
    background-color: #fff;
    border-color: #d1dade;
    border-radius: 2px;
    border-style: solid;
    border-width: 1px;
    color: #676a6c;
    display: inline-flex;
    font-size: 11px !important;
    gap: 0.35rem;
    height: auto !important;
    justify-content: center;
    line-height: 1.2 !important;
    min-height: 26px;
    padding: 4px 8px !important;
    text-decoration: none;
    vertical-align: middle;
}

.tess-inspinia5-shell .tess-nicetable-toolbar .btn:hover,
.tess-inspinia5-shell .tess-nicetable-toolbar .btn:focus,
.tess-inspinia5-shell .tess-nicetable-multiselect-cell .btn:hover,
.tess-inspinia5-shell .tess-nicetable-multiselect-cell .btn:focus,
.bootbox .tess-nicetable-toolbar .btn:hover,
.bootbox .tess-nicetable-toolbar .btn:focus,
.bootbox .tess-nicetable-multiselect-cell .btn:hover,
.bootbox .tess-nicetable-multiselect-cell .btn:focus {
    background-color: #f8f9fa;
    border-color: #c5ccd1;
    color: #333;
    text-decoration: none;
}

.tess-inspinia5-shell .tess-nicetable-toolbar .btn.btn-outline-danger,
.tess-inspinia5-shell .tess-nicetable-multiselect-cell .btn.btn-outline-danger,
.tess-inspinia5-shell .tess-nicetable-toolbar .btn.btn-danger,
.tess-inspinia5-shell .tess-nicetable-multiselect-cell .btn.btn-danger,
.bootbox .tess-nicetable-toolbar .btn.btn-outline-danger,
.bootbox .tess-nicetable-multiselect-cell .btn.btn-outline-danger {
    border-color: #ed5565;
    color: #ed5565;
}

.tess-inspinia5-shell .tess-nicetable-toolbar .btn.btn-outline-danger:hover,
.tess-inspinia5-shell .tess-nicetable-multiselect-cell .btn.btn-outline-danger:hover,
.bootbox .tess-nicetable-toolbar .btn.btn-outline-danger:hover,
.bootbox .tess-nicetable-multiselect-cell .btn.btn-outline-danger:hover {
    background-color: #ed5565;
    border-color: #ed5565;
    color: #fff;
}

.tess-inspinia5-shell .tess-nicetable-toolbar .btn i,
.tess-inspinia5-shell .tess-nicetable-multiselect-cell .btn i,
.bootbox .tess-nicetable-toolbar .btn i,
.bootbox .tess-nicetable-multiselect-cell .btn i {
    font-size: 11px;
    line-height: 1;
    margin-right: 0.15em;
    width: 1em;
}

.tess-inspinia5-shell .tess-nicetable-toolbar,
.tess-inspinia5-shell [class^="nicetablefooter"],
.tess-inspinia5-shell [class*=" nicetablefooter"],
.bootbox .tess-nicetable-toolbar {
    align-items: center;
    box-sizing: border-box;
    clear: both;
    display: flex;
    flex: 0 0 100%;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
    max-width: 100%;
    min-height: 0;
    width: 100%;
}

.tess-inspinia5-shell [class^="nicetablefooter"].tess-nicetable-toolbar,
.tess-inspinia5-shell [class*=" nicetablefooter"].tess-nicetable-toolbar,
.bootbox [class^="nicetablefooter"].tess-nicetable-toolbar,
.bootbox [class*=" nicetablefooter"].tess-nicetable-toolbar {
    padding: 4px 8px;
}

.tess-inspinia5-shell [class^="nicetablefooter"].tess-nicetable-toolbar-empty,
.tess-inspinia5-shell [class*=" nicetablefooter"].tess-nicetable-toolbar-empty,
.bootbox [class^="nicetablefooter"].tess-nicetable-toolbar-empty,
.bootbox [class*=" nicetablefooter"].tess-nicetable-toolbar-empty {
    gap: 0;
    min-height: 0;
    padding: 0;
}

.tess-inspinia5-shell th[class*="nicetablehead"],
.tess-inspinia5-shell th[class*="nicetablehead-rotated"],
.bootbox th[class*="nicetablehead"],
.bootbox th[class*="nicetablehead-rotated"] {
    font-size: 11px;
    font-weight: normal;
    line-height: 1.2;
}

.tess-inspinia5-shell .nicetable-outdiv-empty,
.tess-inspinia5-shell .nicetable-rows-host-empty,
.bootbox .nicetable-outdiv-empty,
.bootbox .nicetable-rows-host-empty {
    background-color: #e2e4e6;
    margin: 0;
    padding: 0;
}

.tess-inspinia5-shell div[class*="nicetabletitle"]:not([class*="loading"]) {
    margin-bottom: 0;
}

.tess-inspinia5-shell .nicetable_empty_rows[class*="nicetable_caption"] {
    background-color: #e2e4e6;
    height: auto;
    margin-top: 0;
    min-height: 160px;
    padding-top: 20px;
}

.tess-inspinia5-shell .nicetable-norecords-icon {
    margin-top: 0;
}

.tess-inspinia5-shell .tess-nicetable-rows-panel,
.bootbox .tess-nicetable-rows-panel {
    box-sizing: border-box;
    clear: both;
    display: block;
    max-width: 100%;
    width: 100%;
}

.tess-inspinia5-shell .tess-nicetable-rows-host,
.bootbox .tess-nicetable-rows-host {
    box-sizing: border-box;
    clear: both;
    display: flex;
    flex-wrap: wrap;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    width: 100%;
}

.tess-inspinia5-shell div[class^="nicetable"]:not([class*="footer"]):not([class*="help"]):not([class*="title"]),
.bootbox div[class^="nicetable"]:not([class*="footer"]):not([class*="help"]):not([class*="title"]) {
    box-sizing: border-box;
    display: block;
    max-width: 100%;
    width: 100%;
}

.tess-inspinia5-shell .tess-nicetable-toolbar-actions,
.tess-inspinia5-shell [class^="nicetablefooter"] > div,
.tess-inspinia5-shell [class*=" nicetablefooter"] > div,
.bootbox .tess-nicetable-toolbar-actions {
    align-items: center;
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
    min-width: 0;
}

.tess-inspinia5-shell .tess-nicetable-toolbar-actions > span,
.bootbox .tess-nicetable-toolbar-actions > span {
    display: inline-flex;
}

.tess-inspinia5-shell .tess-nicetable-toolbar-pager,
.bootbox .tess-nicetable-toolbar-pager {
    flex: 0 0 auto;
}

.tess-inspinia5-shell .tess-nicetable-multiselect-cell,
.bootbox .tess-nicetable-multiselect-cell {
    border-top: 1px solid #e7eaec;
    padding: 6px 8px !important;
}

.tess-inspinia5-shell [class^="nicetablefooter"] .btn i,
.tess-inspinia5-shell [class*=" nicetablefooter"] .btn i {
    font-size: 11px;
    line-height: 1;
}

.tess-inspinia5-shell .bootbox.modal,
.modal {
    --theme-modal-bg: #fff;
    --theme-modal-border-color: #e7eaec;
    --theme-secondary-bg: #fff;
}

.tess-inspinia5-shell .bootbox.modal {
    z-index: 1065 !important;
}

/* xmlreq slow-response dialog — above progressDiv (inline z-index 9999) */
.bootbox.modal.tess-xmlreq-timeout-dialog {
    z-index: 10050 !important;
}

.modal-backdrop.tess-xmlreq-timeout-backdrop {
    z-index: 10040 !important;
}

.tess-inspinia5-shell .bootbox.modal-backdrop,
.modal-backdrop {
    backdrop-filter: blur(4px);
    background-color: rgba(49, 58, 70, 0.45) !important;
}

/* AJAX area loading overlay — progressDiv is appended to body by xmlreq */
body .progressDiv {
    align-items: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: rgba(var(--theme-primary-rgb, 26, 179, 148), 0.14) !important;
    background-image: none !important;
    border-radius: 4px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 1 !important;
    overflow: hidden;
}

body .progressDiv > div {
    text-align: center;
    width: 100%;
}

body .progressDiv h4 {
    color: #676a6c;
    font-size: 13px;
    font-weight: 600;
    margin: 10px 0 0;
    text-shadow: none !important;
}

body .progressDiv .sk-spinner-wave {
    margin-left: auto;
    margin-right: auto;
}

body .progressDiv .tess-spinner-circle2 {
    animation: none;
    margin-left: auto;
    margin-right: auto;
    opacity: 1;
}

body .progressDiv .tess-spinner-text {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    margin-top: 12px;
    text-shadow: none;
    color: #676a6c;
}

/* Button-scoped AJAX overlay (relationship picker rows) */
body .progressDiv.progressDiv--local {
    border-radius: 8px;
    min-height: 0 !important;
}

body .progressDiv.progressDiv--local .sk-spinner-wave {
    margin-top: 0 !important;
    width: 72px !important;
}

body .progressDiv.progressDiv--local > div {
    padding: 2px;
}

.tess-inspinia5-shell .bootbox.modal-backdrop {
    z-index: 1060 !important;
}

/* Popups append to body — must not be scoped under .tess-inspinia5-shell */
.bootbox.modal,
.modal {
    --theme-modal-header-padding-y: 0.5rem;
    --theme-modal-header-padding-x: 1rem;
    --theme-modal-header-padding: 0.5rem 1rem;
}

.bootbox.modal .modal-content,
.modal .modal-content {
    background-color: #fff !important;
    border: 1px solid #e7eaec !important;
    border-radius: 4px;
    box-shadow: 0 10px 28px rgba(57, 62, 80, 0.18) !important;
    color: #676a6c;
}

.bootbox.modal .modal-header,
.modal .modal-header {
    align-items: center;
    background-color: #fff;
    border-bottom: 1px solid #e7eaec;
    display: flex;
    gap: 0.25rem;
    min-height: 0;
    padding: 0.5rem 1rem;
}

.bootbox.modal .modal-header .modal-title,
.modal .modal-header .modal-title {
    flex: 1 1 auto;
    font-size: var(--theme-body-font-size, 0.813rem);
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
    min-width: 0;
}

.bootbox.modal .modal-header .bootbox-close-button,
.bootbox.modal .modal-header .bootbox-close-button.close {
    -webkit-margin-start: auto;
    font-size: 1.125rem;
    line-height: 1;
    margin-inline-start: auto;
    opacity: 0.55;
    padding: 0.125rem 0.25rem !important;
}

.bootbox.modal .modal-header .bootbox-close-button:hover,
.bootbox.modal .modal-header .bootbox-close-button:focus {
    opacity: 0.85;
}

.bootbox.modal .modal-header .btn-close {
    -webkit-margin-start: auto;
    height: 0.65rem;
    margin: 0 0 0 auto !important;
    margin-inline-start: auto;
    opacity: 0.55;
    padding: 0;
    width: 0.65rem;
}

.bootbox.modal .modal-body,
.bootbox.modal .bootbox-body,
.modal .modal-body {
    background-color: #fff;
    font-size: var(--theme-body-font-size, 0.813rem);
    line-height: var(--theme-body-line-height, 1.5);
    box-sizing: border-box;
    overflow-x: hidden;
}

.bootbox .formdiv,
.bootbox .formtable,
.bootbox .tess-form-bootstrap-rows,
.jqmWindow.jqmodal-dialog-div .formdiv,
.jqmWindow.jqmodal-dialog-div .formtable,
.jqmWindow.jqmodal-dialog-div .tess-form-bootstrap-rows {
    font-family: var(--tess-inspinia5-ui-font, var(--theme-body-font-family, inherit));
    font-size: var(--theme-body-font-size, 0.813rem);
    line-height: var(--theme-body-line-height, 1.5);
}

.bootbox .formdiv,
.jqmWindow.jqmodal-dialog-div .formdiv {
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
    margin: 0;
    max-width: 100%;
    padding: 0;
    width: 100% !important;
}

.bootbox .formtable,
.jqmWindow.jqmodal-dialog-div .formtable {
    box-sizing: border-box;
    margin: 0;
    max-width: 100%;
    width: 100%;
}

.bootbox .formlabel,
.bootbox .formfield,
.bootbox .formtable td,
.jqmWindow.jqmodal-dialog-div .formlabel,
.jqmWindow.jqmodal-dialog-div .formfield,
.jqmWindow.jqmodal-dialog-div .formtable td {
    font-size: inherit;
    line-height: inherit;
}

.bootbox .niceCombo,
.bootbox .niceComboText,
.bootbox .niceComboTextArea,
.jqmWindow.jqmodal-dialog-div .niceCombo,
.jqmWindow.jqmodal-dialog-div .niceComboText,
.jqmWindow.jqmodal-dialog-div .niceComboTextArea {
    font-size: inherit;
    line-height: inherit;
}

.bootbox .niceComboList,
.jqmWindow.jqmodal-dialog-div .niceComboList {
    font-size: var(--theme-font-size-base, 0.813rem);
    line-height: var(--theme-body-line-height, 1.5);
}

.bootbox .popupinput,
.bootbox .popupinput-simple,
.jqmWindow.jqmodal-dialog-div .popupinput,
.jqmWindow.jqmodal-dialog-div .popupinput-simple {
    font-size: var(--theme-font-size-base, 0.813rem);
    line-height: var(--theme-body-line-height, 1.5);
    min-height: 0;
}

.bootbox select.popupinput,
.bootbox select.popupinput-simple,
.jqmWindow.jqmodal-dialog-div select.popupinput,
.jqmWindow.jqmodal-dialog-div select.popupinput-simple {
    min-height: calc(1.5em + 8px);
}

.bootbox.modal .modal-footer,
.modal .modal-footer {
    background-color: #fff;
    border-top: 1px solid #e7eaec;
}

/* Keep ingest/ajax submit buttons visibly "primary" while showing Working... */
.bootbox button.btn.tess-submit-working,
.bootbox button.btn-primary.tess-submit-working,
.jqmWindow.jqmodal-dialog-div button.btn.tess-submit-working,
.jqmWindow.jqmodal-dialog-div button.btn-primary.tess-submit-working {
    opacity: 1 !important;
    color: #fff !important;
    background-color: var(--tess-btn-primary, #1ab394) !important;
    border-color: var(--tess-btn-primary, #1ab394) !important;
    cursor: wait;
    box-sizing: border-box;
}

.bootbox button.btn.tess-submit-working img,
.jqmWindow.jqmodal-dialog-div button.btn.tess-submit-working img {
    vertical-align: middle;
    margin-right: 0.35em;
}

.jqmWindow.jqmodal-dialog-div {
    background: #fff !important;
    border: 1px solid #e7eaec !important;
    box-shadow: 0 10px 28px rgba(57, 62, 80, 0.18) !important;
    color: #676a6c;
    padding: 12px;
}

.jqmOverlay {
    background-color: rgba(49, 58, 70, 0.45) !important;
    backdrop-filter: blur(4px);
}

/* Dashboard quick-link tiles (legacy .widget.style1) */
.tess-inspinia5-shell .widget.style1,
.tess-inspinia5-shell a.widget.style1 {
    display: block;
    background-color: #1ab394;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    padding: 9px 10px;
    margin-bottom: 8px;
    min-height: 59px;
}

.tess-inspinia5-shell .widget.style1:hover,
.tess-inspinia5-shell a.widget.style1:hover {
    background-color: #18a689;
    color: #fff;
}

.tess-inspinia5-shell .widget.style1 .row {
    margin: 0;
    align-items: center;
}

.tess-inspinia5-shell .widget.style1 h2,
.tess-inspinia5-shell .widget.style1 span {
    color: #fff;
}

.tess-inspinia5-shell .widget.style1 .fa,
.tess-inspinia5-shell .widget.style1 img {
    max-height: 36px;
}

.tess-inspinia5-shell .widget {
    border-radius: 0.375rem;
    padding: 15px 20px;
    margin-bottom: 10px;
    margin-top: 10px;
    box-shadow: 0 1px 2px rgba(57, 62, 80, 0.1);
}

.tess-inspinia5-shell .widget h2,
.tess-inspinia5-shell .widget h3 {
    margin-top: 5px;
    margin-bottom: 0;
}

.tess-inspinia5-shell .navy-bg,
.tess-inspinia5-shell .widget.navy-bg {
    background-color: #1ab394 !important;
    color: #fff;
}

.tess-inspinia5-shell .yellow-bg,
.tess-inspinia5-shell .widget.yellow-bg {
    background-color: #f8ac59 !important;
    color: #fff;
}

.tess-inspinia5-shell .red-bg,
.tess-inspinia5-shell .widget.red-bg,
.tess-inspinia5-shell .widget.style1.red-bg {
    background-color: #ed5565 !important;
    color: #fff;
}

.tess-inspinia5-shell .widget.red-bg h2,
.tess-inspinia5-shell .widget.red-bg span,
.tess-inspinia5-shell .widget.style1.red-bg h2,
.tess-inspinia5-shell .widget.style1.red-bg span {
    color: #fff;
}

.tess-inspinia5-shell .widget.navy-bg h2,
.tess-inspinia5-shell .widget.navy-bg p,
.tess-inspinia5-shell .widget.yellow-bg h2,
.tess-inspinia5-shell .widget.yellow-bg p {
    color: #fff;
}

.tess-inspinia5-shell .widget h2.no-margins {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
}

.tess-inspinia5-shell .widget span {
    font-size: 12px;
}

/* Dashboard: compact stat tiles (widget2) */
.tess-inspinia5-shell #sortable-view .widget {
    padding: 7.5px 12px;
    margin-top: 4px;
    margin-bottom: 4px;
}

.tess-inspinia5-shell #sortable-view .widget .m-b {
    margin-bottom: 0 !important;
}

.tess-inspinia5-shell #sortable-view .widget .fa-3x {
    font-size: 1.85em;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.tess-inspinia5-shell #sortable-view .widget h2 {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0.15rem 0;
}

.tess-inspinia5-shell #sortable-view .widget p.font-bold {
    font-size: 11px;
    line-height: 1.25;
    margin: 0;
}

.tess-inspinia5-shell #sortable-view .lock-sub-height-1 .widget,
.tess-inspinia5-shell #sortable-view .lock-sub-height-2 .widget {
    min-height: 0;
}

.tess-inspinia5-shell #sortable-view .p-xxs {
    padding: 2px !important;
}

.tess-inspinia5-shell .dashboard-header .set-sub-color-1 a,
.tess-inspinia5-shell .dashboard-header .set-sub-color-1 a:hover,
.tess-inspinia5-shell .dashboard-header .set-sub-color-1 a:active {
    color: #fff;
}

.tess-inspinia5-shell .dashboard-header .set-sub-color-1 a:hover {
    color: #e8f8f4;
}

.tess-inspinia5-shell #sortable-view > .col-md-4 > .ibox:first-child .ibox-content > h3:first-child:empty {
    display: none;
}

.tess-inspinia5-shell #sortable-view .ibox-content.text-center h1 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: #676a6c;
}

/* Dashboard quick-link tiles (legacy urlwidget .urlbox) */
.tess-inspinia5-shell a .urlbox,
.tess-inspinia5-shell .urlbox {
    text-align: center;
    border: 1px solid rgba(26, 179, 148, 0.35);
    border-radius: 0.375rem;
    background-color: #1ab394;
    color: #fff;
    padding: 8px 4px 6px;
    margin-top: 4px;
    margin-bottom: 4px;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(57, 62, 80, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.tess-inspinia5-shell a:hover .urlbox,
.tess-inspinia5-shell .urlbox:hover {
    color: #fff;
    background-color: #18a689;
    border-color: rgba(26, 179, 148, 0.55);
    box-shadow: 0 4px 12px rgba(26, 179, 148, 0.28);
    transform: translateY(-2px);
}

.tess-inspinia5-shell .urlbox .urlicon {
    display: block;
    line-height: 1;
}

.tess-inspinia5-shell .urlbox .urltext {
    padding-top: 4px;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.2;
    margin: 0;
    color: #fff;
}

.tess-inspinia5-shell .ibox .ibox-content .row:has(.urlbox) {
    margin-left: -4px;
    margin-right: -4px;
}

.tess-inspinia5-shell .ibox .ibox-content .row:has(.urlbox) > [class*="col-"] {
    padding-left: 4px;
    padding-right: 4px;
}

/* Dashboard P2 (#ins blades): stat tiles, url cards, panels, todos */
.tess-inspinia5-shell .tess-dashboard-shell .card.tess-dashboard-panel,
.tess-inspinia5-shell .tess-dashboard-shell .card.tess-dashboard-user,
.tess-inspinia5-shell .tess-dashboard-shell .card.tess-urlwidget,
.tess-inspinia5-shell .tess-dashboard-shell .card.tess-trip-stats {
    background-color: #fff;
    border: 1px solid #e7eaec;
    box-shadow: 0 1px 4px rgba(57, 62, 80, 0.14);
}

.tess-inspinia5-shell .tess-dashboard-panel .card-header {
    gap: 0.375rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.tess-inspinia5-shell .tess-dashboard-panel .card-header-actions .collapse-link,
.tess-inspinia5-shell .tess-dashboard-panel .card-header-actions .close-link {
    color: #a7b1c2;
    cursor: pointer;
    opacity: 0.85;
}

.tess-inspinia5-shell .tess-dashboard-panel .card-header-actions .collapse-link:hover,
.tess-inspinia5-shell .tess-dashboard-panel .card-header-actions .close-link:hover {
    color: #676a6c;
    opacity: 1;
}

.tess-inspinia5-shell .tess-crm-stats {
    display: flex;
    flex-wrap: nowrap;
}

.tess-inspinia5-shell .tess-crm-stats > [class*="col-"] {
    display: flex;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    min-width: 0;
    padding-left: 4px;
    padding-right: 4px;
}

.tess-inspinia5-shell .tess-crm-stats .tess-stat-tile {
    flex: 1 1 auto;
    width: 100%;
    --tess-stat-tile-icon-size: 1.3125rem;
    --tess-stat-tile-body-py: 0.34rem;
    --tess-stat-tile-body-px: 0.26rem;
    --tess-stat-tile-body-gap: 0.26rem;
    --tess-stat-tile-value-size: 0.75rem;
    --tess-stat-tile-label-size: 9px;
    --tess-stat-tile-icon-fa-size: 0.6rem;
}

.tess-inspinia5-shell .tess-crm-stats .tess-stat-tile .card-body {
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
}

.tess-inspinia5-shell .tess-crm-stats .tess-stat-tile-icon {
    flex-shrink: 0;
    margin: 0;
}

.tess-inspinia5-shell .tess-crm-stats .tess-stat-tile-copy {
    min-width: 0;
    width: auto;
}

.tess-inspinia5-shell .tess-crm-stats .tess-stat-tile-value {
    line-height: 1.1;
}

.tess-inspinia5-shell .tess-crm-stats .tess-stat-tile-label {
    line-height: 1.15;
}

.tess-inspinia5-shell .tess-approval-stats > [class*="col-"],
.tess-inspinia5-shell .tess-trip-stats .row > [class*="col-"] {
    min-width: 0;
}

.tess-inspinia5-shell .tess-stat-tile {
    background-color: #fff;
    border: 1px solid #e7eaec;
    box-shadow: 0 1px 3px rgba(57, 62, 80, 0.1);
    --tess-stat-tile-icon-size: 1.875rem;
    --tess-stat-tile-body-py: 0.375rem;
    --tess-stat-tile-body-px: 0.75rem;
    --tess-stat-tile-body-gap: 0.75rem;
    --tess-stat-tile-value-size: 0.9375rem;
    --tess-stat-tile-label-size: 11px;
    --tess-stat-tile-icon-fa-size: 0.675rem;
    --tess-stat-tile-min-height: 0;
}

.tess-inspinia5-shell .tess-stat-tile .card-body {
    gap: var(--tess-stat-tile-body-gap) !important;
    min-height: var(--tess-stat-tile-min-height);
    padding: var(--tess-stat-tile-body-py) var(--tess-stat-tile-body-px) !important;
}

.tess-inspinia5-shell .tess-stat-tile-icon {
    align-items: center;
    background: rgba(26, 179, 148, 0.14);
    border-radius: 50%;
    color: #1ab394;
    display: flex;
    height: var(--tess-stat-tile-icon-size);
    justify-content: center;
    width: var(--tess-stat-tile-icon-size);
}

.tess-inspinia5-shell .tess-stat-tile-icon .fa {
    font-size: var(--tess-stat-tile-icon-fa-size);
}

.tess-inspinia5-shell .tess-stat-tile-warning .tess-stat-tile-icon {
    background: rgba(248, 172, 89, 0.18);
    color: #f8ac59;
}

.tess-inspinia5-shell .tess-stat-tile-danger .tess-stat-tile-icon {
    background: rgba(237, 85, 101, 0.18);
    color: #ed5565;
}

.tess-inspinia5-shell .tess-stat-tile-value {
    color: #676a6c;
    font-size: var(--tess-stat-tile-value-size);
    font-weight: 600;
    line-height: 1.2;
}

.tess-inspinia5-shell .tess-stat-tile-label {
    color: #888;
    font-size: var(--tess-stat-tile-label-size);
    line-height: 1.25;
}

.tess-inspinia5-shell .set-sub-color-1 .tess-stat-tile-primary .card-body {
    background-color: #1ab394;
}

.tess-inspinia5-shell .set-sub-color-1 .tess-stat-tile-warning .card-body {
    background-color: #f8ac59;
}

.tess-inspinia5-shell .set-sub-color-1 .tess-stat-tile-danger .card-body {
    background-color: #ed5565;
}

.tess-inspinia5-shell .tess-stat-tile.position-relative {
    cursor: pointer;
}

.tess-inspinia5-shell .tess-stat-tile .stretched-link::after {
    z-index: 1;
}

.tess-inspinia5-shell .set-sub-color-1 .tess-stat-tile .tess-stat-tile-value,
.tess-inspinia5-shell .set-sub-color-1 .tess-stat-tile .tess-stat-tile-label,
.tess-inspinia5-shell .set-sub-color-1 .tess-stat-tile .tess-stat-tile-label a {
    color: #fff;
}

.tess-inspinia5-shell .set-sub-color-1 .tess-stat-tile .tess-stat-tile-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* Work records today pane stat tiles */
.tess-inspinia5-shell .tess-workrecord-stats > [class*="col-"] {
    min-width: 0;
}

.tess-inspinia5-shell .tess-workrecord-stats .tess-stat-tile {
    height: 100%;
    --tess-stat-tile-icon-size: 2.0625rem;
    --tess-stat-tile-body-py: 0.49rem;
    --tess-stat-tile-body-px: 0.64rem;
    --tess-stat-tile-value-size: 1.125rem;
    --tess-stat-tile-label-size: 12px;
    --tess-stat-tile-icon-fa-size: 0.825rem;
    --tess-stat-tile-min-height: 3.56rem;
}

.tess-inspinia5-shell .tess-workrecord-stats .tess-stat-tile-value {
    line-height: 1.15;
}

.tess-inspinia5-shell .tess-workrecord-stats .tess-stat-tile-label {
    margin-top: 0.11rem;
}

/* Control center cache info panels */
.tess-inspinia5-shell .tess-cache-info-shell {
    background: #fff;
    border: 1px solid #e7eaec;
    box-shadow: 0 2px 10px rgba(47, 64, 80, 0.1);
}

.tess-inspinia5-shell .tess-cache-info-hero {
    background: linear-gradient(135deg, #1ab394 0%, #148f76 55%, #117a65 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
}

.tess-inspinia5-shell .tess-cache-info-hero::after {
    background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.18) 0%, transparent 55%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.tess-inspinia5-shell .tess-cache-info-hero > * {
    position: relative;
    z-index: 1;
}

.tess-inspinia5-shell .tess-cache-info-hero-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0.65rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    color: #fff;
    display: flex;
    font-size: 1.35rem;
    height: 3rem;
    justify-content: center;
    width: 3rem;
}

.tess-inspinia5-shell .tess-cache-info-hero-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.tess-inspinia5-shell .tess-cache-info-hero-lead {
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    line-height: 1.45;
}

.tess-inspinia5-shell .tess-cache-info-kpis > [class*="col-"] {
    min-width: 0;
}

.tess-inspinia5-shell .tess-cache-info-kpi {
    align-items: center;
    backdrop-filter: blur(2px);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0.45rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    display: flex;
    gap: 0.65rem;
    min-height: 3.25rem;
    padding: 0.55rem 0.75rem;
}

.tess-inspinia5-shell .tess-cache-info-kpi-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    display: flex;
    flex-shrink: 0;
    font-size: 0.95rem;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.tess-inspinia5-shell .tess-cache-info-kpi-value {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.1;
}

.tess-inspinia5-shell .tess-cache-info-kpi-label {
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    line-height: 1.25;
    margin-top: 0.12rem;
}

.tess-inspinia5-shell .tess-cache-info-panel {
    border: 1px solid #e7eaec;
    box-shadow: 0 1px 5px rgba(57, 62, 80, 0.12);
    overflow: hidden;
}

.tess-inspinia5-shell .tess-cache-info-panel--primary {
    border-top: 3px solid #1ab394;
}

.tess-inspinia5-shell .tess-cache-info-panel--info {
    border-top: 3px solid #23c6c8;
}

.tess-inspinia5-shell .tess-cache-info-panel-header {
    align-items: flex-start;
    background: linear-gradient(180deg, #fafbfc 0%, #f3f6f8 100%);
    border-bottom: 1px solid #e7eaec;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
}

.tess-inspinia5-shell .tess-cache-info-panel-heading {
    align-items: flex-start;
    display: flex;
    flex: 1 1 auto;
    gap: 0.75rem;
    min-width: 0;
}

.tess-inspinia5-shell .tess-cache-info-panel-icon {
    align-items: center;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: #fff;
    display: flex;
    font-size: 0.95rem;
    height: 2.35rem;
    justify-content: center;
    width: 2.35rem;
}

.tess-inspinia5-shell .tess-cache-info-panel--primary .tess-cache-info-panel-icon {
    background: linear-gradient(145deg, #1ab394, #148f76);
}

.tess-inspinia5-shell .tess-cache-info-panel--info .tess-cache-info-panel-icon {
    background: linear-gradient(145deg, #23c6c8, #1ba9ab);
}

.tess-inspinia5-shell .tess-cache-info-panel .card-title {
    color: #2f4050;
    font-size: 0.95rem;
    font-weight: 700;
}

.tess-inspinia5-shell .tess-cache-info-panel-desc {
    color: #676a6c;
    font-size: 11px;
    line-height: 1.35;
    margin-top: 0.15rem;
}

.tess-inspinia5-shell .tess-cache-info-status {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    gap: 0.35rem;
    letter-spacing: 0.03em;
    line-height: 1;
    padding: 0.35rem 0.6rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.tess-inspinia5-shell .tess-cache-info-status--on {
    background: rgba(26, 179, 148, 0.14);
    border: 1px solid rgba(26, 179, 148, 0.35);
    color: #148f76;
}

.tess-inspinia5-shell .tess-cache-info-status--off {
    background: rgba(237, 85, 101, 0.1);
    border: 1px solid rgba(237, 85, 101, 0.28);
    color: #c0392b;
}

.tess-inspinia5-shell .tess-cache-info-status-dot {
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
    height: 0.45rem;
    width: 0.45rem;
}

.tess-inspinia5-shell .tess-cache-info-panel-body {
    padding: 0.9rem 1rem 1rem;
}

.tess-inspinia5-shell .tess-cache-info-path {
    background: #2f4050;
    border-radius: 0.4rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
    margin-bottom: 0.85rem;
    padding: 0.55rem 0.7rem;
}

.tess-inspinia5-shell .tess-cache-info-path-label {
    color: rgba(255, 255, 255, 0.55);
    display: block;
    font-family: var(--tess-font-sans, inherit);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.tess-inspinia5-shell .tess-cache-info-path-value {
    background: transparent;
    border: 0;
    color: #e8f4f1;
    display: block;
    font-size: 11px;
    line-height: 1.4;
    padding: 0;
    word-break: break-all;
}

.tess-inspinia5-shell .tess-cache-info-stats > [class*="col-"] {
    min-width: 0;
}

.tess-inspinia5-shell .tess-cache-info-stats .tess-stat-tile {
    height: 100%;
    --tess-stat-tile-icon-size: 2.1rem;
    --tess-stat-tile-body-py: 0.55rem;
    --tess-stat-tile-body-px: 0.75rem;
    --tess-stat-tile-value-size: 1.15rem;
    --tess-stat-tile-label-size: 11px;
    --tess-stat-tile-icon-fa-size: 0.82rem;
    --tess-stat-tile-min-height: 3.75rem;
}

.tess-inspinia5-shell .tess-cache-info-panel--info .set-sub-color-1 .tess-stat-tile-primary .card-body {
    background-color: #23c6c8;
}

.tess-inspinia5-shell .tess-cache-info-panel-footer {
    background: #f8f9fa;
    border-top: 1px solid #e7eaec;
    padding: 0.65rem 1rem;
}

.tess-inspinia5-shell .tess-cache-info-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    width: 100%;
}

.tess-inspinia5-shell .tess-cache-info-action-group {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tess-inspinia5-shell .tess-cache-info-action-label {
    color: #676a6c;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tess-inspinia5-shell .tess-cache-info-actions .btn {
    font-weight: 600;
    margin-bottom: 0;
    padding: 0.38rem 0.85rem;
}

.tess-inspinia5-shell .tess-cache-info-actions .btn-danger,
.tess-inspinia5-shell .tess-cache-info-actions .btn.btn-danger {
    background-color: #ed5565 !important;
    border-color: #c0392b !important;
    box-shadow: 0 1px 3px rgba(192, 57, 43, 0.28);
    color: #fff !important;
}

.tess-inspinia5-shell .tess-cache-info-actions .btn-danger:hover,
.tess-inspinia5-shell .tess-cache-info-actions .btn-danger:focus,
.tess-inspinia5-shell .tess-cache-info-actions .btn.btn-danger:hover,
.tess-inspinia5-shell .tess-cache-info-actions .btn.btn-danger:focus {
    background-color: #d64d5b !important;
    border-color: #a93226 !important;
    box-shadow: 0 2px 6px rgba(192, 57, 43, 0.32);
    color: #fff !important;
}

.tess-inspinia5-shell .tess-cache-info-actions .btn-outline-danger {
    background-color: #ed5565 !important;
    border-color: #c0392b !important;
    box-shadow: 0 1px 3px rgba(192, 57, 43, 0.28);
    color: #fff !important;
}

.tess-inspinia5-shell .tess-cache-info-actions .btn-outline-danger:hover,
.tess-inspinia5-shell .tess-cache-info-actions .btn-outline-danger:focus {
    background-color: #d64d5b !important;
    border-color: #a93226 !important;
    color: #fff !important;
}

.tess-inspinia5-shell .tess-cache-info-actions .btn-primary {
    background-color: var(--tess-btn-primary, #1ab394) !important;
    border-color: #148f76 !important;
    box-shadow: 0 1px 3px rgba(26, 179, 148, 0.24);
    color: #fff !important;
}

.tess-inspinia5-shell .tess-cache-info-actions .btn-primary:hover,
.tess-inspinia5-shell .tess-cache-info-actions .btn-primary:focus {
    background-color: var(--tess-btn-primary-hover, #18a689) !important;
    border-color: #117a65 !important;
    color: #fff !important;
}

.tess-inspinia5-shell .tess-cache-info-actions .btn-outline-secondary,
.tess-inspinia5-shell .tess-cache-info-actions .btn-outline:not([class*="btn-outline-"]) {
    background-color: #fff !important;
    border-color: #1ab394 !important;
    color: #148f76 !important;
}

.tess-inspinia5-shell .tess-cache-info-actions .btn-outline-secondary:hover,
.tess-inspinia5-shell .tess-cache-info-actions .btn-outline-secondary:focus,
.tess-inspinia5-shell .tess-cache-info-actions .btn-outline:not([class*="btn-outline-"]):hover,
.tess-inspinia5-shell .tess-cache-info-actions .btn-outline:not([class*="btn-outline-"]):focus {
    background-color: #1ab394 !important;
    border-color: #148f76 !important;
    color: #fff !important;
}

.tess-inspinia5-shell .tess-cache-info-alert {
    font-size: 12px;
}

.tess-inspinia5-shell .tess-trip-stats {
    background-color: #fff;
    border: 1px solid #e7eaec;
    box-shadow: 0 1px 4px rgba(57, 62, 80, 0.14);
}

.tess-inspinia5-shell .tess-trip-stats > .card-body {
    padding: 0.375rem !important;
}

.tess-inspinia5-shell .tess-urlwidget-body {
    padding: 0.5rem 0.65rem 0.4rem;
}

.tess-inspinia5-shell .tess-urlwidget-grid {
    --bs-gutter-x: 0.35rem;
    --bs-gutter-y: 0.35rem;
}

.tess-inspinia5-shell .tess-urlwidget-grid > [class*="col-"] {
    display: flex;
    min-width: 0;
}

.tess-inspinia5-shell .tess-urlwidget-grid > [class*="col-"] > a {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.tess-inspinia5-shell .tess-url-tile {
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #dfe3e8;
    border-radius: 0.25rem;
    box-shadow: none;
    display: flex;
    flex: 1 1 auto;
    gap: 0.35rem;
    min-height: 2.5rem;
    padding: 0.35rem 0.45rem;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}

.tess-inspinia5-shell a:hover .tess-url-tile,
.tess-inspinia5-shell .tess-url-tile:hover {
    background-color: #fff;
    border-color: rgba(26, 179, 148, 0.45);
    box-shadow: 0 2px 6px rgba(26, 179, 148, 0.12);
}

.tess-inspinia5-shell .tess-url-tile-icon {
    color: #1ab394;
    flex-shrink: 0;
    font-size: 0.95rem;
    line-height: 1;
    text-align: center;
    width: 1rem;
}

.tess-inspinia5-shell .tess-url-tile-icon--compact {
    font-size: 0.85rem;
}

.tess-inspinia5-shell .tess-url-tile-label {
    color: #676a6c;
    display: -webkit-box;
    flex: 1 1 auto;
    font-size: 10px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.15;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    text-align: left;
    white-space: normal;
    word-break: break-word;
}

.tess-inspinia5-shell .tess-url-tile-image {
    flex-shrink: 0;
    height: 1.25rem;
    width: 1.25rem;
}

.tess-inspinia5-shell .tess-dashboard-user-avatar img {
    border-radius: 50%;
}

.tess-inspinia5-shell .tess-dashboard-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
}

.tess-inspinia5-shell .tess-todo-bucket-title {
    align-items: center;
    border-bottom: 1px solid #e7eaec;
    color: #676a6c;
    display: flex;
    font-size: 11px;
    font-weight: 600;
    gap: 6px;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    padding-bottom: 6px;
    text-transform: uppercase;
}

.tess-inspinia5-shell .tess-todo-bucket-count {
    background: #f3f3f4;
    border-radius: 10px;
    color: #888;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    min-width: 1.5rem;
    padding: 3px 7px;
    text-align: center;
}

.tess-inspinia5-shell .tess-todo-list,
.tess-inspinia5-shell ul.todo-list.small-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tess-inspinia5-shell .nicetable .tess-todo-list {
    padding: 4px 0 8px;
}

.tess-inspinia5-shell .tess-todo-item {
    background: #fff;
    border: 1px solid #e7eaec;
    border-left: 3px solid #cbd5e1;
    border-radius: 6px;
    list-style: none;
    margin: 0 0 6px;
    overflow: hidden;
    padding: 0;
}

.tess-inspinia5-shell .tess-todo-item:last-child {
    margin-bottom: 0;
}

.tess-inspinia5-shell .tess-todo-item.todo-default {
    border-left-color: #94a3b8;
}

.tess-inspinia5-shell .tess-todo-item.todo-overdue {
    border-left-color: var(--tess-text-error, #ed5565);
}

.tess-inspinia5-shell .tess-todo-item.todo-today {
    border-left-color: #f8ac59;
}

.tess-inspinia5-shell .tess-todo-item.todo-completed {
    border-left-color: #1ab394;
    opacity: 0.78;
}

/* Contact card inline list sits outside .nicetable; reinforce urgency left edge. */
.tess-inspinia5-shell .contact-todo-list .tess-todo-item.todo-overdue:not(.todo-completed),
.tess-inspinia5-shell .contact-todo-list .tess-todo-item:has(.todotext-overdue-notdone):not(.todo-completed) {
    border-left: 3px solid var(--tess-text-error, #ed5565);
}

.tess-inspinia5-shell .contact-todo-list .tess-todo-item.todo-today:not(.todo-completed),
.tess-inspinia5-shell .contact-todo-list .tess-todo-item:has(.todotext-today-notdone):not(.todo-completed) {
    border-left: 3px solid #f8ac59;
}

.tess-inspinia5-shell .contact-todo-list .tess-todo-item.todo-completed {
    border-left: 3px solid #1ab394;
}

.tess-inspinia5-shell .tess-todo-item__row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
}

.tess-inspinia5-shell .tess-todo-item--compact .tess-todo-item__row {
    padding: 6px 8px;
}

.tess-inspinia5-shell .tess-todo-item--compact .tess-todo-item__task {
    font-size: 12px;
}

.tess-inspinia5-shell .tess-todo-item__check i {
    color: #64748b;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
}

.tess-inspinia5-shell .tess-todo-item.todo-completed .tess-todo-item__check i {
    color: #1ab394;
}

.tess-inspinia5-shell .tess-todo-item__date {
    color: #64748b;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    min-width: 3.5em;
    white-space: nowrap;
}

.tess-inspinia5-shell .tess-todo-item__people {
    align-items: center;
    display: inline-flex;
    flex-shrink: 0;
    gap: 3px;
}

.tess-inspinia5-shell .tess-todo-item__people > i {
    color: #94a3b8;
    font-size: 10px;
}

.tess-inspinia5-shell .tess-todo-item__type {
    align-items: center;
    background: #e8f7f3;
    border-radius: 4px;
    color: #1ab394;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    gap: 4px;
    line-height: 1.2;
    padding: 3px 8px;
    white-space: nowrap;
}

.tess-inspinia5-shell .tess-todo-item__contact {
    background: #f1f5f9 !important;
    border: 1px solid #dbe3ea !important;
    border-radius: 4px !important;
    color: #334155 !important;
    display: inline-block;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 !important;
    max-width: 220px;
    overflow: hidden;
    padding: 3px 8px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tess-inspinia5-shell .tess-todo-item__task {
    color: #334155;
    cursor: pointer;
    flex: 1 1 180px;
    font-size: 13px;
    line-height: 1.35;
    min-width: 0;
}

.tess-inspinia5-shell .tess-todo-item.todo-overdue:not(.todo-completed) .tess-todo-item__task {
    color: var(--tess-text-error, #ed5565);
}

.tess-inspinia5-shell .tess-todo-item__task.todotext-overdue-notdone {
    color: var(--tess-text-error, #ed5565);
}

.tess-inspinia5-shell .tess-todo-item.todo-today:not(.todo-completed) .tess-todo-item__task {
    color: #1c1c1c;
    font-weight: 600;
}

.tess-inspinia5-shell .tess-todo-item__task.todotext-today-notdone {
    color: #1c1c1c;
    font-weight: 600;
}

.tess-inspinia5-shell .tess-todo-item.todo-completed .tess-todo-item__task,
.tess-inspinia5-shell .tess-todo-item__task.todotext-completed {
    color: #94a3b8;
    text-decoration: line-through;
}

.tess-inspinia5-shell .tess-todo-item__time {
    color: var(--tess-text-error, #ed5565);
    font-weight: 600;
}

.tess-inspinia5-shell .tess-todo-item .todoassigner {
    color: var(--tess-text-error, #ed5565);
    font-size: 11px;
    font-weight: 600;
}

.tess-inspinia5-shell .tess-todo-item__created {
    color: #94a3b8;
    flex-shrink: 0;
    font-size: 10px;
    margin-left: auto;
    white-space: nowrap;
}

.tess-inspinia5-shell .tess-todo-item__delete i {
    color: #94a3b8;
    cursor: pointer;
    font-size: 13px;
}

.tess-inspinia5-shell .tess-todo-item__delete i:hover {
    color: #ed5565;
}

.tess-inspinia5-shell .tess-todo-item--more {
    background: transparent;
    border: 1px dashed #dbe3ea;
    border-left: 1px dashed #dbe3ea;
    padding: 0;
    text-align: center;
}

.tess-inspinia5-shell .tess-todo-item--more a {
    color: #1ab394;
    display: block;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 10px;
    text-decoration: none;
}

.tess-inspinia5-shell .tess-todo-item--more a:hover {
    color: #148f77;
    text-decoration: underline;
}

.tess-inspinia5-shell #sortable-view.row.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

.tess-inspinia5-shell .wrapper.wrapper-content {
    padding: 20px 15px 40px;
}

.tess-inspinia5-shell .dashboard-header.wrapper-content {
    padding-top: 16px;
}

.tess-inspinia5-shell #sortable-view.row > .col-md-4 {
    float: none;
    min-width: 0;
}

.tess-inspinia5-shell #sortable-view.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

@media (max-width: 991.98px) {
    .tess-inspinia5-shell .tess-inspinia5-navbar {
        flex-wrap: wrap;
    }

    .tess-inspinia5-shell .tess-inspinia5-navbar .navbar-collapse.show {
        background: #fff;
        border-top: 1px solid #e7eaec;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
        display: block !important;
        height: auto !important;
        left: 0;
        max-height: calc(100vh - 50px);
        overflow-x: hidden !important;
        overflow-y: auto !important;
        position: absolute;
        right: 0;
        top: 50px;
        width: 100%;
        z-index: 1050;
    }

    .tess-inspinia5-shell .tess-inspinia5-navbar .navbar-collapse.show .navbar-nav,
    .tess-inspinia5-shell .tess-inspinia5-navbar .navbar-collapse.show ul.nav,
    .tess-inspinia5-shell .tess-inspinia5-navbar .navbar-collapse.show #header-item-pagename_menu_quickmenu {
        align-items: stretch;
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        width: 100%;
    }

    .tess-inspinia5-shell .tess-inspinia5-navbar .navbar-collapse.show .nav-item,
    .tess-inspinia5-shell .tess-inspinia5-navbar .navbar-collapse.show .nav-link {
        display: flex;
        height: auto !important;
        line-height: 1.35 !important;
        min-height: 40px;
        width: 100%;
    }

    .tess-inspinia5-shell .tess-inspinia5-navbar .navbar-collapse.show .nav-item.active > .nav-link {
        padding: 10px 12px;
    }

    .tess-inspinia5-shell .tess-inspinia5-navbar .navbar-collapse.show .dropdown-menu {
        border: 0;
        box-shadow: none;
        padding-left: 16px;
        position: static;
        width: 100%;
    }

    /* Hamburger panel: quickmenu first, page title second, module menus last */
    .tess-inspinia5-shell .tess-inspinia5-navbar .navbar-collapse.show #header-item-pagename_menu_quickmenu > .quickmarker {
        align-items: center;
        display: flex !important;
        flex-wrap: wrap;
        gap: 8px;
        height: auto;
        min-height: 44px;
        order: 1;
        padding: 8px 12px;
        width: 100%;
    }

    .tess-inspinia5-shell .tess-inspinia5-navbar .navbar-collapse.show #header-item-pagename_menu_quickmenu > .nav-item.active {
        order: 2;
    }

    .tess-inspinia5-shell .tess-inspinia5-navbar .navbar-collapse.show #header-item-pagename_menu_quickmenu > .tess-nav-dropdown,
    .tess-inspinia5-shell .tess-inspinia5-navbar .navbar-collapse.show #header-item-pagename_menu_quickmenu > .tess-nav-mobile-menu {
        order: 3;
        width: 100%;
    }

    .tess-inspinia5-shell .tess-inspinia5-navbar .navbar-collapse.show .tess-quickmenu-link {
        height: auto;
        min-height: 32px;
        padding: 6px 10px;
    }

    .tess-inspinia5-shell .tess-inspinia5-navbar .navbar-collapse.show .tess-nav-mobile-menu {
        display: block !important;
        height: auto !important;
        padding: 0 0 8px;
    }

    .tess-inspinia5-shell .tess-inspinia5-navbar .navbar-collapse.show .tess-nav-mobile-menu-group {
        padding: 4px 12px 0;
    }

    .tess-inspinia5-shell .tess-inspinia5-navbar .navbar-collapse.show .tess-nav-mobile-menu-heading {
        color: #676a6c;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.02em;
        margin: 8px 0 6px;
        text-transform: uppercase;
    }

    .tess-inspinia5-shell .tess-inspinia5-navbar .navbar-collapse.show .tess-nav-mobile-menu-items {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .tess-inspinia5-shell .tess-inspinia5-navbar .navbar-collapse.show .tess-nav-menu-link {
        display: block;
        padding: 0 12px;
        width: 100%;
    }

    .tess-inspinia5-shell .tess-inspinia5-navbar .navbar-collapse.show .tess-nav-menu-btn {
        align-items: center;
        display: inline-flex;
        gap: 6px;
        justify-content: flex-start;
        min-width: 200px;
        text-align: left;
        width: 100%;
    }

    .tess-inspinia5-shell .tess-inspinia5-navbar .navbar-collapse.show .dropdown-menu .dropdown-item.tess-nav-menu-link {
        min-width: 200px;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex {
        flex-direction: column;
    }

    .tess-inspinia5-shell .sidepanel-layout-flex .sidepanel {
        border-bottom: 1px solid var(--theme-sidenav-border-color);
        border-right: 0;
        min-height: 0;
        width: 100% !important;
    }
}

.tess-inspinia5-shell .ibox-content > .row {
    display: block;
    margin-right: -15px;
    margin-left: -15px;
}

.tess-inspinia5-shell .ibox-content > .row::after {
    content: "";
    display: table;
    clear: both;
}

.tess-inspinia5-shell .col-xs-1, .tess-inspinia5-shell .col-xs-2, .tess-inspinia5-shell .col-xs-3,
.tess-inspinia5-shell .col-xs-4, .tess-inspinia5-shell .col-xs-5, .tess-inspinia5-shell .col-xs-6,
.tess-inspinia5-shell .col-xs-7, .tess-inspinia5-shell .col-xs-8, .tess-inspinia5-shell .col-xs-9,
.tess-inspinia5-shell .col-xs-10, .tess-inspinia5-shell .col-xs-11, .tess-inspinia5-shell .col-xs-12 {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

.tess-inspinia5-shell .col-xs-2 {
    flex: 0 0 16.66666667%;
    max-width: 16.66666667%;
    float: left;
}

.tess-inspinia5-shell .col-xs-3 {
    flex: 0 0 25%;
    max-width: 25%;
    float: left;
}

.tess-inspinia5-shell .col-xs-4 {
    flex: 0 0 33.33333333%;
    max-width: 33.33333333%;
    float: left;
}

.tess-inspinia5-shell .col-xs-6 {
    flex: 0 0 50%;
    max-width: 50%;
    float: left;
}

.tess-inspinia5-shell .col-md-4 {
    flex: 0 0 33.33333333%;
    max-width: 33.33333333%;
    float: left;
}

.tess-inspinia5-shell #sortable-view.row::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 991px) {
    .tess-inspinia5-shell .col-md-4 {
        width: 100%;
    }
}

.tess-inspinia5-shell .panel-default > .panel-heading {
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid #e7eaec;
    padding: 10px 15px;
}

.tess-inspinia5-shell .panel {
    background: #fff;
    border: 1px solid #e7eaec;
    border-radius: 4px;
}

.tess-inspinia5-shell .panel-body {
    padding: 15px;
}

@media (max-width: 991px) {
    .tess-inspinia5-shell .tess-inspinia5-navbar .navbar-collapse {
        padding: 0 12px 12px;
    }

    .tess-inspinia5-shell .tess-inspinia5-navbar .navbar-nav .nav-link {
        padding: 10px 12px;
    }
}

@media (min-width: 992px) {
    .tess-inspinia5-shell .tess-inspinia5-navbar-toggler {
        display: none;
    }

    .tess-inspinia5-shell .tess-inspinia5-navbar.tess-header-show-toggler .tess-inspinia5-navbar-toggler {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .tess-inspinia5-shell .tess-inspinia5-navbar.tess-header-show-toggler #navbar.tess-navbar-collapse:not(.show) {
        display: none !important;
    }

    .tess-inspinia5-shell .tess-inspinia5-navbar.tess-header-show-toggler .navbar-collapse.show,
    .tess-inspinia5-shell .tess-inspinia5-navbar.tess-header-show-toggler #navbar.tess-navbar-collapse.show {
        background: #fff;
        border-top: 1px solid #e7eaec;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
        display: block !important;
        height: auto !important;
        left: 0;
        max-height: calc(100vh - 50px);
        overflow-x: hidden !important;
        overflow-y: auto !important;
        position: absolute;
        right: 0;
        top: 50px;
        width: 100%;
        z-index: 1050;
    }

    .tess-inspinia5-shell .tess-inspinia5-navbar.tess-header-show-toggler .navbar-collapse.show .navbar-nav,
    .tess-inspinia5-shell .tess-inspinia5-navbar.tess-header-show-toggler #navbar.tess-navbar-collapse.show #header-item-pagename_menu_quickmenu {
        align-items: stretch;
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        width: 100%;
    }

    .tess-inspinia5-shell .tess-inspinia5-navbar.tess-header-show-toggler #navbar.tess-navbar-collapse.show .nav-item,
    .tess-inspinia5-shell .tess-inspinia5-navbar.tess-header-show-toggler #navbar.tess-navbar-collapse.show .nav-link,
    .tess-inspinia5-shell .tess-inspinia5-navbar.tess-header-show-toggler #navbar.tess-navbar-collapse.show .tess-nav-dropdown > .dropdown-toggle {
        display: flex;
        height: auto !important;
        line-height: 1.35 !important;
        min-height: 40px;
        width: 100%;
    }

    .tess-inspinia5-shell .tess-inspinia5-navbar.tess-header-show-toggler #navbar.tess-navbar-collapse.show .dropdown-menu {
        border: 0;
        box-shadow: none;
        padding-left: 16px;
        position: static;
        width: 100%;
    }

    .tess-inspinia5-shell .tess-inspinia5-navbar {
        display: flex;
        align-items: stretch;
    }

    .tess-inspinia5-shell #navbar.tess-navbar-collapse:not(.show),
    .tess-inspinia5-shell .tess-inspinia5-navbar .navbar-collapse:not(.show) {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap;
        align-items: stretch;
        height: 50px !important;
        flex: 1 1 auto;
        min-width: 0;
    }

    .tess-inspinia5-shell #navbar.tess-navbar-collapse.show,
    .tess-inspinia5-shell .tess-inspinia5-navbar .navbar-collapse.show {
        height: auto !important;
        min-height: 0 !important;
    }

    .tess-inspinia5-shell #header-item-pagename_menu_quickmenu {
        flex: 1 1 auto;
        min-width: 0;
        overflow: visible;
    }

    .tess-inspinia5-shell #header-item-logininfo {
        flex: 0 0 auto;
    }
}

@media (max-width: 991.98px) {
    .tess-inspinia5-shell .tess-inspinia5-navbar .tess-nav-dropdown {
        display: block;
        height: auto;
    }

    .tess-inspinia5-shell #navbar.tess-navbar-collapse.show,
    .tess-inspinia5-shell .tess-inspinia5-navbar .navbar-collapse.show {
        height: auto !important;
        min-height: 0 !important;
    }

    .tess-inspinia5-shell #navbar.tess-navbar-collapse.show #header-item-pagename_menu_quickmenu {
        flex-direction: column !important;
        height: auto !important;
    }
}

/* -------------------------------------------------------------------------
   Button unification — neutralize legacy button.css on Bootstrap .btn,
   BS3 class shims, and TESS semantic colors under Inspinia5.
   ------------------------------------------------------------------------- */

.tess-inspinia5-shell a.btn,
.tess-inspinia5-shell button.btn,
.tess-inspinia5-shell input.btn[type="button"],
.tess-inspinia5-shell input.btn[type="submit"] {
    background-image: none !important;
    box-shadow: none !important;
    font-family: inherit;
    line-height: 1.5;
    margin: 0;
    text-shadow: none !important;
    vertical-align: middle;
}

.tess-inspinia5-shell a.btn:after,
.tess-inspinia5-shell button.btn:after {
    content: none !important;
    display: none !important;
}

.tess-inspinia5-shell .btn.btn-xs {
    border-radius: var(--bs-btn-border-radius, 0.25rem);
    font-size: var(--bs-btn-font-size-sm, 0.875rem);
    line-height: var(--bs-btn-line-height-sm, 1.5);
    padding: var(--bs-btn-padding-y-sm, 0.25rem) var(--bs-btn-padding-x-sm, 0.5rem);
}

.tess-inspinia5-shell .btn.btn-large {
    border-radius: var(--bs-btn-border-radius-lg, 0.3rem);
    font-size: var(--bs-btn-font-size-lg, 1.25rem);
    line-height: var(--bs-btn-line-height-lg, 1.5);
    padding: var(--bs-btn-padding-y-lg, 0.5rem) var(--bs-btn-padding-x-lg, 1rem);
}

.tess-inspinia5-shell .btn.btn-outline:not([class*="btn-outline-"]) {
    background-color: #fff;
    border-color: #e7eaec;
    color: inherit;
}

.tess-inspinia5-shell .btn.btn-outline:not([class*="btn-outline-"]):hover,
.tess-inspinia5-shell .btn.btn-outline:not([class*="btn-outline-"]):focus {
    background-color: #f8f9fa;
    border-color: #d1dade;
    color: inherit;
}

.tess-inspinia5-shell .btn-secondary {
    background-color: var(--tess-btn-secondary);
    border-color: var(--tess-btn-secondary);
    color: #fff;
}

.tess-inspinia5-shell .btn-secondary:hover,
.tess-inspinia5-shell .btn-secondary:focus {
    background-color: var(--tess-btn-secondary-hover);
    border-color: var(--tess-btn-secondary-hover);
    color: #fff;
}

.tess-inspinia5-shell .btn-outline-secondary:hover,
.tess-inspinia5-shell .btn-outline-secondary:focus {
    background-color: #f8f9fa;
    border-color: #d1dade;
    color: inherit;
}

.tess-inspinia5-shell .input-group.note-editor .input-group-btn {
    align-items: stretch;
    display: flex;
}

.tess-inspinia5-shell .input-group.note-editor .input-group-btn .btn {
    align-items: center;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    line-height: 1;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
}

.bootbox .modal-footer .btn .tess-btn-icon-leading,
.bootbox .modal-footer .btn i.fa,
.bootbox .modal-footer .btn i.far,
.bootbox .modal-footer .btn i.fas {
    margin-right: 0.35em;
}

.tess-inspinia5-shell a.btn:not(.tess-btn-icon-leading):not(.tess-nicetable-inline-btn) > i:first-child:not(:only-child),
.tess-inspinia5-shell button.btn:not(.tess-btn-icon-leading):not(.tess-nicetable-inline-btn) > i:first-child:not(:only-child),
.bootbox a.btn:not(.tess-btn-icon-leading):not(.tess-nicetable-inline-btn) > i:first-child:not(:only-child),
.bootbox button.btn:not(.tess-btn-icon-leading):not(.tess-nicetable-inline-btn) > i:first-child:not(:only-child) {
    margin-right: 0.35em;
}

.tess-inspinia5-shell .btn.tess-btn-icon-leading,
.bootbox .btn.tess-btn-icon-leading {
    align-items: center;
    display: inline-flex;
    gap: 0.35em;
}

.tess-inspinia5-shell .nicetable .tess-nicetable-inline-btn,
.tess-inspinia5-shell [class^="nicetable"] .tess-nicetable-inline-btn,
.tess-inspinia5-shell .tess-usertable-more-actions .btn,
.bootbox .nicetable .tess-nicetable-inline-btn,
.bootbox [class^="nicetable"] .tess-nicetable-inline-btn,
.bootbox .tess-nicetable-inline-btn,
.bootbox .tess-usertable-more-actions .btn {
    align-items: center;
    border-style: solid;
    border-width: 1px;
    display: inline-flex;
    font-size: 11px;
    gap: 0.45rem;
    line-height: 1.2;
    padding: 0.28rem 0.6rem;
    white-space: nowrap;
}

.tess-inspinia5-shell .btn.tess-btn-icon-leading > i:first-child,
.bootbox .btn.tess-btn-icon-leading > i:first-child,
.tess-inspinia5-shell .tess-nicetable-inline-btn > i:first-child,
.bootbox .tess-nicetable-inline-btn > i:first-child {
    flex: 0 0 auto;
    font-size: 11px;
    line-height: 1;
    margin: 0;
}

.tess-inspinia5-shell .tess-nicetable-inline-btn.btn-outline-warning,
.bootbox .tess-nicetable-inline-btn.btn-outline-warning,
.tess-inspinia5-shell .tess-usertable-more-actions .btn-outline-warning,
.bootbox .tess-usertable-more-actions .btn-outline-warning {
    background-color: #fff;
    border-color: #f8ac59;
    color: #b06b12;
}

.tess-inspinia5-shell .tess-nicetable-inline-btn.btn-outline-warning:hover,
.tess-inspinia5-shell .tess-nicetable-inline-btn.btn-outline-warning:focus,
.bootbox .tess-nicetable-inline-btn.btn-outline-warning:hover,
.bootbox .tess-nicetable-inline-btn.btn-outline-warning:focus,
.tess-inspinia5-shell .tess-usertable-more-actions .btn-outline-warning:hover,
.tess-inspinia5-shell .tess-usertable-more-actions .btn-outline-warning:focus,
.bootbox .tess-usertable-more-actions .btn-outline-warning:hover,
.bootbox .tess-usertable-more-actions .btn-outline-warning:focus {
    background-color: #f8ac59;
    border-color: #f8ac59;
    color: #fff;
}

.tess-inspinia5-shell .tess-nicetable-inline-btn.btn-outline-secondary,
.bootbox .tess-nicetable-inline-btn.btn-outline-secondary,
.tess-inspinia5-shell .tess-usertable-more-actions .btn-outline-secondary,
.bootbox .tess-usertable-more-actions .btn-outline-secondary {
    background-color: #fff;
    border-color: #94a3b8;
    color: #475569;
}

.tess-inspinia5-shell .tess-nicetable-inline-btn.btn-outline-secondary:hover,
.tess-inspinia5-shell .tess-nicetable-inline-btn.btn-outline-secondary:focus,
.bootbox .tess-nicetable-inline-btn.btn-outline-secondary:hover,
.bootbox .tess-nicetable-inline-btn.btn-outline-secondary:focus,
.tess-inspinia5-shell .tess-usertable-more-actions .btn-outline-secondary:hover,
.tess-inspinia5-shell .tess-usertable-more-actions .btn-outline-secondary:focus,
.bootbox .tess-usertable-more-actions .btn-outline-secondary:hover,
.bootbox .tess-usertable-more-actions .btn-outline-secondary:focus {
    background-color: #f1f5f9;
    border-color: #64748b;
    color: #1e293b;
}

.tess-inspinia5-shell .nicetable .tess-nicetable-inline-btn i,
.tess-inspinia5-shell [class^="nicetable"] .tess-nicetable-inline-btn i,
.bootbox .nicetable .tess-nicetable-inline-btn i,
.bootbox [class^="nicetable"] .tess-nicetable-inline-btn i,
.bootbox .tess-nicetable-inline-btn i {
    font-size: 11px;
    line-height: 1;
    margin: 0;
}

.tess-inspinia5-shell .nicetable-moredivusertable,
.bootbox .nicetable-moredivusertable,
.tess-inspinia5-shell .nicetable-moredivusers,
.bootbox .nicetable-moredivusers {
    padding: 0 !important;
}

.tess-inspinia5-shell .tess-usertable-more,
.bootbox .tess-usertable-more {
    background: #fff;
    border: 1px solid rgba(100, 116, 139, 0.16);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
    display: grid;
    gap: 14px;
    margin: 8px 0;
    max-width: none;
    padding: 14px 16px;
    width: 100%;
}

.tess-inspinia5-shell .tess-usertable-more-header,
.bootbox .tess-usertable-more-header {
    align-items: flex-start;
    border-bottom: 1px solid rgba(100, 116, 139, 0.12);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    padding-bottom: 12px;
}

.tess-inspinia5-shell .tess-usertable-more-heading h4,
.bootbox .tess-usertable-more-heading h4 {
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.tess-inspinia5-shell .tess-usertable-more-subtitle,
.bootbox .tess-usertable-more-subtitle {
    color: #64748b;
    font-size: 12px;
    margin: 2px 0 0;
}

.tess-inspinia5-shell .tess-usertable-more-actions,
.bootbox .tess-usertable-more-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tess-inspinia5-shell .tess-usertable-more-grid,
.bootbox .tess-usertable-more-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.tess-inspinia5-shell .tess-usertable-more-group h5,
.bootbox .tess-usertable-more-group h5,
.tess-inspinia5-shell .tess-usertable-more-wide h5,
.bootbox .tess-usertable-more-wide h5 {
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.tess-inspinia5-shell .tess-usertable-more-fields,
.bootbox .tess-usertable-more-fields {
    display: grid;
    gap: 8px;
    margin: 0;
}

.tess-inspinia5-shell .tess-usertable-more-field,
.bootbox .tess-usertable-more-field {
    min-width: 0;
}

.tess-inspinia5-shell .tess-usertable-more-field dt,
.bootbox .tess-usertable-more-field dt {
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    margin: 0;
}

.tess-inspinia5-shell .tess-usertable-more-field dd,
.bootbox .tess-usertable-more-field dd {
    color: #334155;
    font-size: 12px;
    line-height: 1.4;
    margin: 2px 0 0;
    overflow-wrap: anywhere;
}

.tess-inspinia5-shell .tess-usertable-more-wide,
.bootbox .tess-usertable-more-wide {
    border-top: 1px solid rgba(100, 116, 139, 0.12);
    padding-top: 12px;
}

.tess-inspinia5-shell .tess-usertable-more-permissions,
.bootbox .tess-usertable-more-permissions {
    color: #334155;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.tess-inspinia5-shell .tess-more-panel-generic,
.bootbox .tess-more-panel-generic {
    background: #fff;
    border: 1px solid rgba(100, 116, 139, 0.16);
    border-radius: 8px;
    box-sizing: border-box;
    margin: 8px 0;
    padding: 12px 14px;
    width: 100%;
}

.tess-inspinia5-shell .tess-more-panel-grid,
.bootbox .tess-more-panel-grid {
    display: grid;
    gap: 10px 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 0;
}

.tess-inspinia5-shell .tess-more-panel-item dt,
.bootbox .tess-more-panel-item dt {
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0;
    text-transform: uppercase;
}

.tess-inspinia5-shell .tess-more-panel-item dd,
.bootbox .tess-more-panel-item dd {
    color: #334155;
    font-size: 12px;
    line-height: 1.4;
    margin: 2px 0 0;
    overflow-wrap: anywhere;
}

.tess-inspinia5-shell div[class*="nicetabletitle"]:not([class*="loading"]),
.bootbox div[class*="nicetabletitle"]:not([class*="loading"]) {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    line-height: 1.3;
    min-height: 30px;
    width: auto;
}

.tess-inspinia5-shell div[class*="nicetabletitle"]:not([class*="loading"])::after,
.bootbox div[class*="nicetabletitle"]:not([class*="loading"])::after {
    content: '';
    flex: 1 1 auto;
    min-width: 4px;
    order: 0;
}

.tess-inspinia5-shell div[class*="nicetabletitle"]:not([class*="loading"]) > .nicetable-titletoolbar,
.bootbox div[class*="nicetabletitle"]:not([class*="loading"]) > .nicetable-titletoolbar {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    gap: 4px;
    order: 1;
}

.tess-inspinia5-shell .nicetable-title-leading,
.bootbox .nicetable-title-leading {
    align-items: baseline;
    display: inline-flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    font-weight: bold;
    gap: 0;
    line-height: 1.3;
    min-width: 0;
}

.tess-inspinia5-shell .nicetable-title-counter,
.bootbox .nicetable-title-counter {
    display: inline;
    flex: 0 0 auto;
    font-weight: normal;
    line-height: inherit;
    margin-left: 0.35em;
    white-space: nowrap;
}

.tess-inspinia5-shell .nicetable-title-counter span,
.bootbox .nicetable-title-counter span {
    line-height: inherit;
}

.tess-inspinia5-shell div[class*="nicetabletitle"]:not([class*="loading"]) > div[style*="float:right"],
.tess-inspinia5-shell div[class*="nicetabletitle"]:not([class*="loading"]) > .nicetable-titlebutton-div,
.bootbox div[class*="nicetabletitle"]:not([class*="loading"]) > div[style*="float:right"],
.bootbox div[class*="nicetabletitle"]:not([class*="loading"]) > .nicetable-titlebutton-div {
    flex: 0 0 auto;
    float: none;
    margin-left: 0;
    margin-top: 0;
}

.tess-inspinia5-shell .nicetable-titlebutton-div,
.bootbox .nicetable-titlebutton-div {
    display: inline-flex;
    flex: 0 0 auto;
    float: none;
    margin-left: 0;
    margin-top: 0;
    width: auto;
}

.tess-inspinia5-shell .nicetable-titlebutton,
.bootbox .nicetable-titlebutton {
    align-items: center;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: #676a6c;
    display: inline-flex;
    font-size: 11px;
    height: 26px;
    justify-content: center;
    line-height: 1;
    min-width: 26px;
    padding: 0;
    width: 26px;
}

.tess-inspinia5-shell .nicetable-titlebutton:hover,
.tess-inspinia5-shell .nicetable-titlebutton:focus,
.bootbox .nicetable-titlebutton:hover,
.bootbox .nicetable-titlebutton:focus {
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: #1ab394;
}

.tess-inspinia5-shell .nicetable-titlebutton .nicetable-titlebutton-slot,
.bootbox .nicetable-titlebutton .nicetable-titlebutton-slot {
    display: none;
}

.tess-inspinia5-shell .nicetable-titlebutton i,
.bootbox .nicetable-titlebutton i {
    font-size: 11px;
    line-height: 1;
    margin: 0;
}

.tess-inspinia5-shell .visual-compatibility-button-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tess-inspinia5-shell .visual-compatibility-button-row {
    align-items: center;
    border-bottom: 1px solid rgba(100, 116, 139, 0.12);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    padding: 10px 0;
}

.tess-inspinia5-shell .visual-compatibility-button-row:last-child {
    border-bottom: 0;
}

.tess-inspinia5-shell .visual-compatibility-button-label {
    color: var(--tess-color-text-muted, #64748b);
    flex: 1 1 140px;
    font-size: 13px;
    min-width: 120px;
}

.tess-inspinia5-shell .bootbox .modal-footer,
.tess-inspinia5-shell .modal .modal-footer {
    gap: 0.5rem;
}

.tess-inspinia5-shell .bootbox .modal-footer .btn,
.tess-inspinia5-shell .bootbox .modal-footer button {
    background-image: none !important;
    box-shadow: none !important;
    margin: 0;
}

.tess-inspinia5-shell .bootbox .modal-footer .btn-default,
.tess-inspinia5-shell .bootbox .modal-footer .btn-secondary,
.tess-inspinia5-shell .bootbox .modal-footer .btn-light {
    background-color: #fff;
    border-color: var(--tess-btn-neutral-border);
    color: inherit;
}

.tess-inspinia5-shell .bootbox .modal-footer .btn-primary {
    background-color: var(--tess-btn-primary);
    border-color: var(--tess-btn-primary);
    color: #fff;
}

/* Bootbox mounts on body, outside .tess-inspinia5-shell — these rules apply file-wide on Inspinia5. */
.bootbox .modal-footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.bootbox .modal-footer .btn,
.bootbox .modal-footer button {
    align-items: center;
    background-image: none !important;
    border-radius: 2px;
    border-style: solid;
    border-width: 1px;
    box-shadow: none !important;
    display: inline-flex;
    font-size: 0.8125rem;
    gap: 0.35rem;
    line-height: 1.2;
    margin: 0;
    padding: 0.35rem 0.65rem;
}

.bootbox .modal-footer .btn-outline-secondary,
.bootbox .modal-footer .btn-light,
.bootbox .modal-footer .btn-default {
    background-color: #fff;
    border-color: #d1dade;
    color: #676a6c;
}

.bootbox .modal-footer .btn-outline-secondary:hover,
.bootbox .modal-footer .btn-outline-secondary:focus,
.bootbox .modal-footer .btn-light:hover,
.bootbox .modal-footer .btn-light:focus,
.bootbox .modal-footer .btn-default:hover,
.bootbox .modal-footer .btn-default:focus {
    background-color: #f8f9fa;
    border-color: #c5ccd1;
    color: #333;
}

.bootbox .modal-footer .btn-primary {
    background-color: var(--tess-btn-primary, #1ab394);
    border-color: var(--tess-btn-primary, #1ab394);
    color: #fff;
}

.bootbox .modal-footer .btn-danger {
    background-color: #ed5565;
    border-color: #ed5565;
    color: #fff;
}

.bootbox .modal-footer .btn-warning {
    background-color: #f8ac59;
    border-color: #f8ac59;
    color: #fff;
}

.bootbox .modal-footer .btn .tess-btn-icon-leading,
.bootbox .modal-footer .btn i.fa,
.bootbox .modal-footer .btn i.far,
.bootbox .modal-footer .btn i.fas {
    margin-right: 0.35em;
}

.tess-inspinia5-shell .tess-achievement-panel {
    margin: 2px 8px 10px;
    padding: 0;
}

.tess-inspinia5-shell .tess-achievement-empty {
    align-items: center;
    color: var(--theme-sidenav-item-color);
    display: flex;
    font-size: 12px;
    gap: 8px;
    opacity: 0.9;
    padding: 8px 10px 10px;
}

.tess-inspinia5-shell .tess-achievement-empty i {
    color: #ed5565;
    font-size: 15px;
}

.tess-inspinia5-shell .tess-achievement-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tess-inspinia5-shell .tess-achievement-item {
    align-items: center;
    border-bottom: 1px solid color-mix(in srgb, var(--theme-sidenav-border-color) 75%, transparent);
    display: flex;
    gap: 8px;
    padding: 7px 10px;
}

.tess-inspinia5-shell .tess-achievement-item:last-child {
    border-bottom: 0;
}

.tess-inspinia5-shell .tess-achievement-item__icon {
    flex: 0 0 18px;
    font-size: 14px;
    line-height: 1;
    text-align: center;
}

.tess-inspinia5-shell .tess-achievement-item__label {
    color: var(--theme-sidenav-item-hover-color);
    flex: 1 1 auto;
    font-size: 12px;
    line-height: 1.25;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tess-inspinia5-shell .tess-achievement-item__count {
    border-radius: 10px;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    min-width: 1.6rem;
    padding: 2px 7px;
    text-align: center;
}

.tess-inspinia5-shell .tess-achievement-item__score {
    color: #f8ac59;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 600;
    min-width: 2rem;
    text-align: right;
}

.tess-inspinia5-shell .tess-achievement-total {
    align-items: center;
    background: var(--theme-sidenav-item-active-bg);
    border-radius: 6px;
    display: flex;
    gap: 8px;
    margin-top: 6px;
    padding: 8px 10px;
}

.tess-inspinia5-shell .tess-achievement-total__label {
    align-items: center;
    color: var(--theme-sidenav-item-active-color);
    display: inline-flex;
    flex: 1 1 auto;
    font-size: 11px;
    font-weight: 700;
    gap: 6px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.tess-inspinia5-shell .tess-achievement-total__label i {
    font-size: 12px;
    opacity: 0.9;
}

.tess-inspinia5-shell .tess-achievement-total__count {
    background: #f8e71c;
    border-radius: 10px;
    color: #1e293b;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    min-width: 1.8rem;
    padding: 2px 8px;
    text-align: center;
}

.tess-inspinia5-shell .tess-achievement-total__score {
    color: #f8ac59;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    min-width: 2rem;
    text-align: right;
}

/* Edit relationships popup (bootbox / tesspopup dragdrop) — 3-state rows: inactive → active → deleted */
.bootbox .tess-relationship-picker,
.tess-relationship-picker {
    max-width: 100%;
}

.bootbox .tess-relationship-picker__hint,
.tess-relationship-picker__hint {
    color: #676a6c;
    font-size: 12px;
    line-height: 1.45;
    margin: 0 0 10px;
}

.bootbox .tess-relationship-picker__legend,
.tess-relationship-picker__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.bootbox .tess-relationship-picker__legend-chip,
.tess-relationship-picker__legend-chip {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    padding: 4px 10px;
    pointer-events: none;
}

.bootbox .tess-relationship-picker__grid,
.tess-relationship-picker__grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 100%;
}

.bootbox .tess-relationship-picker__item,
.tess-relationship-picker__item {
    margin: 0;
    max-width: 100%;
}

.bootbox .tess-relationship-picker__item > span,
.tess-relationship-picker__item > span {
    display: block;
    max-width: 100%;
}

.bootbox .tess-relationship-picker__item .btn.tess-relationship-picker__btn,
.tess-relationship-picker__item .btn.tess-relationship-picker__btn {
    border-radius: 8px;
    border-width: 2px;
    box-shadow: none;
    display: block;
    height: auto;
    line-height: 1.4;
    max-width: 100%;
    min-height: 3rem;
    padding: 10px 12px;
    text-align: left;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: normal;
    width: 100%;
}

.bootbox .tess-relationship-picker__row,
.tess-relationship-picker__row {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    width: 100%;
}

.bootbox .tess-relationship-picker__main,
.tess-relationship-picker__main {
    flex: 1 1 auto;
    min-width: 0;
}

.bootbox .tess-relationship-picker__contacts,
.tess-relationship-picker__contacts {
    display: block;
    font-size: 13px;
    line-height: 1.45;
}

.bootbox .tess-relationship-picker__contact,
.tess-relationship-picker__contact {
    font-weight: 500;
}

.bootbox .tess-relationship-picker__link,
.tess-relationship-picker__link {
    font-weight: 600;
    white-space: nowrap;
}

.bootbox .tess-relationship-picker__link i,
.tess-relationship-picker__link i {
    margin-right: 4px;
}

.bootbox .tess-relationship-picker__state,
.tess-relationship-picker__state {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    gap: 2px;
    letter-spacing: 0.02em;
    line-height: 1.2;
    padding: 5px 10px;
    text-transform: uppercase;
    white-space: nowrap;
}

.bootbox .tess-relationship-picker__state--compact,
.tess-relationship-picker__state--compact {
    font-size: 10px;
    padding: 3px 8px;
}

/* Not linked */
.bootbox .tess-relationship-picker__btn--inactive,
.tess-relationship-picker__btn--inactive,
.bootbox .tess-relationship-picker__legend-chip.tess-relationship-picker__btn--inactive,
.tess-relationship-picker__legend-chip.tess-relationship-picker__btn--inactive {
    background: #fff;
    border-color: #d1dade;
    border-style: dashed;
    color: #676a6c;
}

.bootbox .tess-relationship-picker__btn--inactive .tess-relationship-picker__link,
.tess-relationship-picker__btn--inactive .tess-relationship-picker__link {
    color: #1ab394;
}

.bootbox .tess-relationship-picker__btn--inactive .tess-relationship-picker__state,
.tess-relationship-picker__btn--inactive .tess-relationship-picker__state {
    background: #f3f3f4;
    color: #888;
}

.bootbox .tess-relationship-picker__btn--inactive:hover,
.tess-relationship-picker__btn--inactive:hover,
.bootbox .tess-relationship-picker__btn--inactive:focus,
.tess-relationship-picker__btn--inactive:focus {
    background: #f8f9fa;
    border-color: #1ab394;
    color: #676a6c;
}

/* Active */
.bootbox .tess-relationship-picker__btn--active,
.tess-relationship-picker__btn--active,
.bootbox .tess-relationship-picker__legend-chip.tess-relationship-picker__btn--active,
.tess-relationship-picker__legend-chip.tess-relationship-picker__btn--active {
    background: #1ab394;
    border-color: #18a689;
    color: #fff;
}

.bootbox .tess-relationship-picker__btn--active .tess-relationship-picker__link,
.tess-relationship-picker__btn--active .tess-relationship-picker__link,
.bootbox .tess-relationship-picker__btn--active .tess-relationship-picker__contact,
.tess-relationship-picker__btn--active .tess-relationship-picker__contact {
    color: #fff;
}

.bootbox .tess-relationship-picker__btn--active .tess-relationship-picker__state,
.tess-relationship-picker__btn--active .tess-relationship-picker__state {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.bootbox .tess-relationship-picker__btn--active:hover,
.tess-relationship-picker__btn--active:hover,
.bootbox .tess-relationship-picker__btn--active:focus,
.tess-relationship-picker__btn--active:focus {
    background: #18a689;
    border-color: #159a7f;
    color: #fff;
}

/* Soft-deleted / removed */
.bootbox .tess-relationship-picker__btn--deleted,
.tess-relationship-picker__btn--deleted,
.bootbox .tess-relationship-picker__legend-chip.tess-relationship-picker__btn--deleted,
.tess-relationship-picker__legend-chip.tess-relationship-picker__btn--deleted {
    background: #fff8e8;
    border-color: #f8ac59;
    color: #8a6d3b;
}

.bootbox .tess-relationship-picker__btn--deleted .tess-relationship-picker__link,
.tess-relationship-picker__btn--deleted .tess-relationship-picker__link {
    color: #f8ac59;
    text-decoration: none;
}

.bootbox .tess-relationship-picker__btn--deleted .tess-relationship-picker__state,
.tess-relationship-picker__btn--deleted .tess-relationship-picker__state {
    background: rgba(248, 172, 89, 0.2);
    color: #c6762a;
}

.bootbox .tess-relationship-picker__btn--deleted:hover,
.tess-relationship-picker__btn--deleted:hover,
.bootbox .tess-relationship-picker__btn--deleted:focus,
.tess-relationship-picker__btn--deleted:focus {
    background: #fff3d6;
    border-color: #f59f43;
    color: #8a6d3b;
}

.bootbox .tess-relationship-picker__footer,
.tess-relationship-picker__footer {
    border-top: 1px solid #e7eaec;
    margin-top: 16px;
    padding-top: 12px;
    text-align: right;
}

.bootbox .tess-relationship-picker__footer .btn,
.tess-relationship-picker__footer .btn {
    min-width: 8rem;
}

.bootbox .tess-relationship-picker__footer .tess-relationship-picker__merge-btn,
.tess-relationship-picker__footer .tess-relationship-picker__merge-btn {
    align-items: center;
    background-color: #ed5565;
    background-image: none !important;
    border-color: #ed5565;
    box-shadow: none !important;
    color: #fff;
    display: inline-flex;
    font-size: 0.8125rem;
    gap: 0.35rem;
    justify-content: center;
    line-height: 1.2;
    min-width: 8rem;
    padding: 0.35rem 0.65rem;
}

.bootbox .tess-relationship-picker__footer .tess-relationship-picker__merge-btn:hover,
.bootbox .tess-relationship-picker__footer .tess-relationship-picker__merge-btn:focus,
.tess-relationship-picker__footer .tess-relationship-picker__merge-btn:hover,
.tess-relationship-picker__footer .tess-relationship-picker__merge-btn:focus {
    background-color: #d64d5b;
    border-color: #d64d5b;
    color: #fff;
}

.bootbox .tess-relationship-picker__footer .tess-relationship-picker__merge-btn i,
.tess-relationship-picker__footer .tess-relationship-picker__merge-btn i {
    margin-right: 0.35em;
}
