/*!
 *   AdminLTE v3.0.0-alpha
 *   Author: Abdullah Almsaeed
 *	 Website: AdminLTE.io <http://adminlte.io>
 *   License: Open source - MIT <http://opensource.org/licenses/MIT>
 */
/*!
 * Bootstrap v4.1.0 (https://getbootstrap.com/)
 * Copyright 2011-2018 The Bootstrap Authors
 * Copyright 2011-2018 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 */

.login-page {
    background: url("../images/login_wall_5.jpg") no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;
    height: 100%;
    background-position: center center;
    background-size: cover; 
}

.otv-page {
    background: url("../images/otv-wall-1.jpg") no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;
    height: 100%;
    background-position: center center;
    background-size: cover; 
    display: flex;
    justify-content: center;
}

.hidden {
    display: none !important;
    visibility: hidden !important;
}

.pointer {
    cursor: pointer;
}

.pointer_none {
    cursor: none;
}

.dragndrop {
    cursor: move;
}


.invisible {
    visibility: hidden !important;
}

.table {
	table-layout:fixed;
}

.table-truncated td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-item-description {
    position: relative;
    height: 50px;
    width: 100%;
    line-height: 50px;
}

.icon-container {
    display: inline-flex;
    align-items: center;
    height: 100%;
  }

.list-item-clicktoshow .user-fa-icon,
.list-item-description .dragndrop {
    line-height: 50px;
}

.list-item-clicktoshow.d-inline-flex {
    max-width: 100%;
    flex: 1;
}

/*
 * The favorite-star placeholder stays as an empty Font Awesome <i> until the
 * item is flagged as favorite (the "fa-star" class is toggled at runtime).
 * Font Awesome still reserves ~1.25em for that empty element, which pushed the
 * item label far away from the drag/health icons. Collapse it while empty and
 * keep a small, consistent ml-2 gap before the label.
 */
.item-favorite-star:not(.fa-star) {
    display: none;
}

.list-item-row-description {
    margin-left: 0.1rem;
}

.list-item-row-description-extend {
    flex: 1;
}

.list-item-actions {
    position: absolute;
    top: 8px;
    right: 0px;
    color:#c4c4c4;
}

.simplePassMeter {
    border: 1px solid #aaa;
    background-color: #f3f3f3;
    color: #666;
    font-size: 1.5em;
    padding: 10px 5px 0 5px;
    margin: 10px;
    width: 25%;
}

.meterFail { border: 1px solid #daa; background-color: #fdd; }
.meterWarn { border: 1px solid #fd6; background-color: #feb; }
.meterGood { border: 1px solid #ada; background-color: #dfd; }
.meterExcel { border: 1px solid #aad; background-color: #ddf; }

.simplePassMeterBar { background-color: #ddd; }
.meterFail .simplePassMeterProgress  { background-color: #f66; }
.meterWarn .simplePassMeterProgress  { background-color: #fd6; }
.meterGood .simplePassMeterProgress  { background-color: #ada; }
.meterExcel .simplePassMeterProgress { background-color: #88f; }

.ui-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    float: left;
    display: none;
    min-width: 160px;
    _width: 160px;
    padding: 4px 0;
    margin: 2px 0 0 0;
    list-style: none;
    background-color: #ffffff;
    border-color: #ccc;
    border-color: rgba(0, 0, 0, 0.2);
    border-style: solid;
    border-width: 1px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding;
    background-clip: padding-box;
    border-right-width: 2px;
    border-bottom-width: 2px;
}

.ui-menu-item {
    display: block;
    margin-left: 3px;
    padding: 3px 15px 0px 5px;
    clear: both;
    font-weight: normal;
    line-height: 18px;
    color: #555555;
    white-space: nowrap;
    cursor: pointer;
}
  
.ui-state-focus, .ui-state-active {
    color: #ffffff;
    text-decoration: none;
    background-color: #0088cc;
    border-radius: 0px;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    background-image: none;
}

.icon-badge{
    position:relative;
    float:left;
}

.icon-badge-text{
    margin: 0;
    position:absolute;
    top: -10px;
    left: 9px;
    font-size: .7rem;
    font-weight: 300;
    padding: 2px 4px;
}

.icon-badge-far {
    right: -16px;
}

.icon-badge-text-bottom-right{
    margin: 0;
    position:absolute;
    top: -10px;
    left: 9px;
    font-size: .7rem;
    font-weight: 300;
    padding: 2px 4px;
}

.sticky-footer {
    position: fixed;
    bottom: 40px;
    background-color: rgb(255, 198, 198);
    border: 1px solid rgb(243, 105, 105);
    padding: 10px;
}

.row-selected {
    background-color: #026fcc;
}

.btn-group {  
    white-space: nowrap;              
}
.btn-group .btn {  
    float: none;
    display: inline-block;
}
 .btn + .dropdown-toggle { 
    margin-left: -4px;
}

.dataTables_wrapper { 
    overflow-x: visible; 
    overflow-y: visible; 
}

.is-invalid .select2-selection,
.needs-validation ~ span > .select2-dropdown{
  border-color:red !important;
}


.card-header > .card-tools-left {
    position: absolute;
    left: 1rem;
    top: .5rem;
}

.datatable.path {
    font-size: 11pt;
}

.tp-borders {
    border: 1px dashed #aaa !important;
}

.td-100 {
    width:100px;
}

.footer {
    position: fixed;
    bottom: 10px;
    color:white;
}

.menu-footer {
    position: fixed;
    padding-bottom: 10px;
    bottom: 0px;
}

.tp-brand-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 57px;
    overflow: hidden;
}

.tp-brand-home-link {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    color: inherit;
    text-decoration: none !important;
}

.tp-brand-home-link:hover,
.tp-brand-home-link:focus {
    color: inherit;
    text-decoration: none !important;
}

.tp-brand-home-link .brand-image {
    float: none;
    position: static;
    margin: 0 0.5rem 0 0.2rem;
    flex: 0 0 auto;
}

.tp-brand-home-link .brand-text {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-sidebar-version-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 22px;
    max-width: 92px;
    padding: 2px 7px;
    margin-right: 8px;
    border-radius: 999px;
    flex: 0 0 auto;
    overflow: hidden;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    color: #212529 !important;
    background: #ffc107;
    box-shadow: inset 0 0 0 1px rgba(33, 37, 41, 0.08);
    text-decoration: none !important;
}

.tp-sidebar-version-badge span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tp-sidebar-version-badge:hover,
.tp-sidebar-version-badge:focus {
    color: #212529 !important;
    background: #e0a800;
    text-decoration: none !important;
}

.sidebar-collapse .tp-sidebar-version-badge,
.sidebar-closed .tp-sidebar-version-badge {
    display: none !important;
}

.tp-admin-version-alert {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    vertical-align: middle;
    max-width: 100%;
    margin: 0 0 0 0.7rem;
    padding: 0.22rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.2rem;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.86rem;
    line-height: 1.25;
}

.tp-admin-version-alert i {
    margin-right: 0 !important;
    opacity: 0.85;
    font-size: 0.8rem;
}

.tp-admin-version-alert-link {
    margin-left: 0.2rem !important;
    color: #fff !important;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.tp-admin-version-alert-link:hover,
.tp-admin-version-alert-link:focus {
    color: #fff !important;
    text-decoration: underline;
}

#sidebar-footer {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: nowrap;
    overflow: visible;
}

.tp-sidebar-footer-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-decoration: none !important;
    line-height: 1;
    vertical-align: middle;
}

.tp-sidebar-footer-action:hover,
.tp-sidebar-footer-action:focus {
    color: #7fd8ff !important;
    text-decoration: none !important;
}

.tp-sidebar-footer-action:focus {
    outline: none;
}

.tp-online-users-drawer {
    position: fixed;
    left: 1rem;
    bottom: 4rem;
    width: min(340px, calc(100vw - 1rem));
    z-index: 1065;
    overflow: visible;
}

.tp-online-users-drawer .card {
    border-radius: 0.85rem;
    overflow: hidden;
}

.tp-online-users-drawer-content {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

.tp-online-users-item {
    padding: 0.5rem 0.75rem;
    border-left: 0;
    border-right: 0;
    transition: background-color 0.15s ease;
}

.tp-online-users-item:hover {
    background-color: rgba(23, 162, 184, 0.06);
}

.tp-online-users-item .font-weight-bold {
    font-size: 0.95rem;
    line-height: 1.15;
}

.tp-online-users-item .small {
    line-height: 1.1;
    color: #6c757d;
}

.tp-online-users-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 0.6rem;
    border-radius: 999px;
    background: rgba(23, 162, 184, 0.12);
    color: #17a2b8;
    flex: 0 0 28px;
    font-size: 0.9rem;
    overflow: hidden;
}

.tp-online-users-avatar::after {
    content: "";
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 8px;
    height: 8px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #28a745;
}

.tp-online-users-avatar-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 999px;
}

.dark-mode .tp-online-users-avatar {
    background: rgba(255, 255, 255, 0.08);
    color: #8bd3dd;
}

.dark-mode .tp-online-users-avatar::after {
    border-color: #343a40;
    background: #51cf66;
}

.dark-mode .tp-online-users-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .tp-online-users-item .small {
    color: #adb5bd;
}

.tp-online-users-meta {
    min-width: 0;
}

@media (max-width: 767.98px) {
    .tp-sidebar-version-badge {
        display: none !important;
    }

    .tp-online-users-drawer {
        width: min(340px, calc(100vw - 1rem));
    }
}

.login-logo {
    letter-spacing: 4px;
    font-size: 40pt;
    color: #082d51;
}

.img-modal {
    width:100%;
}

.toast-center-center {
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
}

.no-link, .no-link:hover {
    text-decoration: inherit;
    color: inherit;
}

.tooltip {
    top:0px;
    background-color:black;
    color:white;
    border-radius:5px;
    opacity:0;
    position:absolute;
    -webkit-transition: opacity 0.5s;
    -moz-transition:  opacity 0.5s;
    -ms-transition: opacity 0.5s;
    -o-transition:  opacity 0.5s;
    transition:  opacity 0.5s;
}

.input-group > .select2-container--bootstrap4 .select2-selection--single {
	height: 100%;
	line-height: inherit;
	padding-top: 10px;
}

/* Some issues with background-image on buttons in 
 * dark mode and it's not particularly pretty. */
.btn {
    background-image: none !important;
}

/* Light blue on blue is not very readable */
.dark-mode .jstree-anchor:hover {
    color: #fff !important;
}

/* Not adminlte items */
.dark-mode .select2-selection {
    background-color: #343a40 !important;
    border: 1px solid #6c757d !important;
}
.dark-mode .select2-selection span {
    color: #fff !important;
}

/* Scrollbar */
.dark-mode {
    scrollbar-color: #3b3b3b #555;
}

/**
 * blink_me
 *
 * CSS rule to make an element blink by changing its opacity repeatedly.
 */
.blink_me {
    /* Define the animation: 1 second, linear timing, infinite loop */
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    /* At 50% of the animation cycle, reduce the opacity to 30% */
    50% {
        opacity: 0.5;
    }
}

.edition-lock-badge {
    margin-top: 15px;
    margin-bottom: 15px;
}

#table-failed th:last-child,
#table-failed td:last-child {
    white-space: nowrap;
    width: 1%;
    min-width: 96px;
    text-align: center;
}

#table-failed .failed-auth-add-blacklist {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
}

#table_teampass_items_list.tp-show-corrupted-items .tp-item-corrupted-marker {
    display: inline-block;
}

#table_teampass_items_list .tp-item-corrupted-marker {
    display: none;
}

#table_teampass_items_list.tp-show-corrupted-items tr.tp-item-corrupted-warning .list-item-row-description,
#table_teampass_items_list.tp-show-corrupted-items tr.tp-item-corrupted-warning .list-item-row-description-extend {
    color: #b26a00;
}

#table_teampass_items_list.tp-show-corrupted-items tr.tp-item-corrupted-warning .list-item-description {
    background-color: rgba(255, 193, 7, 0.08);
}

#table_teampass_items_list.tp-show-corrupted-items tr.tp-item-corrupted-danger .list-item-row-description,
#table_teampass_items_list.tp-show-corrupted-items tr.tp-item-corrupted-danger .list-item-row-description-extend {
    color: #b91c1c;
}

#table_teampass_items_list.tp-show-corrupted-items tr.tp-item-corrupted-danger .list-item-description {
    background-color: rgba(220, 53, 69, 0.08);
}

/* ============================================================
   Items folder loading progress bar (NProgress-style)
   ============================================================ */
#tp-folder-progress-wrap {
    position: relative;
    height: 0;
    overflow: hidden;
}
#tp-folder-progress-wrap.tp-progress-active {
    height: 3px;
}
#tp-folder-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background-color: #007bff;
    transition: width 0.25s ease-out, opacity 0.4s ease;
    will-change: width;
}
#tp-folder-progress-bar.tp-progress-done {
    opacity: 0;
}

/* Section headers distinguishing sub-folders from items */
#table_teampass_subfolders_list thead th,
#table_teampass_items_list thead th {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 4px 10px;
    background-color: #f8f9fa;
}
#table_teampass_subfolders_list thead th {
    color: #856404;
    border-bottom: 2px solid #ffc107 !important;
}
#table_teampass_items_list thead th {
    color: #0056b3;
    border-bottom: 2px solid #007bff !important;
}

/* ****
* ITEMS skeleton
* *****/
.skeleton-line {
    display: inline-block;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: tp-shimmer 1.4s ease-in-out infinite;
    border-radius: 3px;
    height: 0.85em;
    vertical-align: middle;
}
@keyframes tp-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-sm    { width: 70px; }
.skeleton-md    { width: 130px; }
.skeleton-lg    { width: 200px; }
.skeleton-xl    { width: 280px; }
.skeleton-title { width: 240px; height: 1.3em; }
.skeleton-input {
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%) !important;
    background-size: 200% 100% !important;
    animation: tp-shimmer 1.4s ease-in-out infinite !important;
    color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    border-radius: 3px !important;
    pointer-events: none;
}
.skeleton-block {
    display: block;
    width: 100%;
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: tp-shimmer 1.4s ease-in-out infinite;
    border-radius: 3px;
}

/* Persistent highlight on the currently selected item row */
#teampass_items_list tr.item-selected td {
    background-color: rgba(0, 123, 255, 0.07) !important;
    box-shadow: inset 3px 0 0 #007bff;
}

/* Fade-in animation when the detail panel first appears */
@keyframes tp-panel-fadein {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}
#items-details-container.tp-panel-appearing {
    animation: tp-panel-fadein 180ms ease-out forwards;
}

/* ============================================================
   Accessibility (D4)
   ============================================================ */

/* Skip-to-content link: invisible until focused via keyboard */
.tp-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 11000;
    background-color: #007bff;
    color: #fff;
    padding: 8px 16px;
    border-radius: 0 0 4px 0;
    text-decoration: none;
}
.tp-skip-link:focus {
    left: 0;
    color: #fff;
    outline: 2px solid #fff;
    outline-offset: -4px;
}

/* Visible keyboard focus everywhere (mouse clicks stay outline-free) */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.form-control:focus-visible {
    outline: 2px solid #1f6feb;
    outline-offset: 1px;
}
body.dark-mode a:focus-visible,
body.dark-mode button:focus-visible,
body.dark-mode [role="button"]:focus-visible,
body.dark-mode input:focus-visible,
body.dark-mode select:focus-visible,
body.dark-mode textarea:focus-visible,
body.dark-mode .form-control:focus-visible {
    outline-color: #58a6ff;
}

/* ============================================================
   Small screens (D5) — most-used flows: login, search, item view
   ============================================================ */
@media (max-width: 767.98px) {
    /* Compact page headers */
    .content-header h1 {
        font-size: 1.35rem;
    }

    /* Item detail / forms: let action buttons wrap without overflowing */
    .card-footer .btn,
    #form-item-buttons .btn {
        margin-bottom: 0.35rem;
    }

    /* Modals fill the viewport comfortably */
    .modal-dialog {
        margin: 0.5rem;
    }

    /* Injected overlays stay within the viewport */
    #tp-palette-box {
        max-width: 94vw !important;
        margin-top: 6vh !important;
    }
    .navbar-nav .dropdown-menu-lg {
        max-width: 92vw;
    }
    #toast-container > div {
        max-width: 92vw;
    }

    /* Folder tree stacks above the items list: keep a breathing gap */
    #folders-tree-card {
        margin-bottom: 0.75rem;
    }
}

/* =========================================================================
   Top-bar cluster (right side) — grouped by intent: Find · Awareness · View · Account
   One consistent icon-button style, group separators, a single account chip.
   Works on both the light (navbar-white/navbar-light) and dark (navbar-dark) bars.
   ========================================================================= */
.tp-topbar {
    align-items: center;
}

/* Uniform icon buttons: search, theme, recent, notifications, score.
   Compounded with .nav-link to outrank AdminLTE's `.navbar-expand .navbar-nav .nav-link` padding. */
.tp-topbar .nav-link.tp-topbar-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: 8px;
    line-height: 1;
    transition: background-color .15s ease;
}
.tp-topbar-btn > i {
    font-size: 1.05rem;
}
.navbar-light .tp-topbar-btn:hover,
.navbar-light .tp-topbar-btn:focus {
    background-color: rgba(0, 0, 0, .05);
}
.navbar-dark .tp-topbar-btn:hover,
.navbar-dark .tp-topbar-btn:focus {
    background-color: rgba(255, 255, 255, .10);
}
.tp-topbar-btn:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Keyboard-shortcut hint on the search button */
.tp-topbar-kbd {
    font-size: .68rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    padding: 2px 6px;
    border-radius: 5px;
    line-height: 1;
    opacity: .8;
}
.navbar-light .tp-topbar-kbd {
    border: 1px solid rgba(0, 0, 0, .18);
    color: inherit;
}
.navbar-dark .tp-topbar-kbd {
    border: 1px solid rgba(255, 255, 255, .22);
    color: inherit;
}

/* Thin vertical group separators (rendered as empty <li>) */
.tp-topbar-sep {
    align-self: center;
    width: 1px;
    height: 22px;
    margin: 0 4px;
    flex: 0 0 auto;
}
.navbar-light .tp-topbar-sep {
    background-color: rgba(0, 0, 0, .12);
}
.navbar-dark .tp-topbar-sep {
    background-color: rgba(255, 255, 255, .16);
}

/* Account identity chip (compounded with .nav-link to outrank AdminLTE padding) */
.tp-topbar .nav-link.tp-account-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 40px;
    padding: 0 10px 0 6px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: background-color .15s ease;
}
.navbar-light .tp-account-chip {
    background-color: rgba(0, 0, 0, .03);
    border-color: rgba(0, 0, 0, .08);
}
.navbar-light .tp-account-chip:hover,
.navbar-light .tp-account-chip:focus {
    background-color: rgba(0, 0, 0, .06);
}
.navbar-dark .tp-account-chip {
    background-color: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .09);
}
.navbar-dark .tp-account-chip:hover,
.navbar-dark .tp-account-chip:focus {
    background-color: rgba(255, 255, 255, .11);
}
.tp-account-chip:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.tp-account-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #007bff;
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.tp-account-avatar-lg {
    width: 42px;
    height: 42px;
    font-size: .98rem;
}

.tp-account-identity {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    max-width: 160px;
}
.tp-account-name {
    font-weight: 600;
    font-size: .86rem;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tp-account-exp {
    font-size: .7rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
/* Full-strength name + muted expiry — override AdminLTE's 50%-opacity nav-link colour */
.navbar-light .tp-account-chip .tp-account-name {
    color: rgba(0, 0, 0, .82);
}
.navbar-dark .tp-account-chip .tp-account-name {
    color: rgba(255, 255, 255, .92);
}
.navbar-light .tp-account-chip .tp-account-exp {
    color: #6c757d;
}
.navbar-dark .tp-account-chip .tp-account-exp {
    color: rgba(255, 255, 255, .65);
}
.tp-account-caret {
    font-size: .7rem;
    opacity: .6;
}

/* Account dropdown */
.tp-account-menu {
    min-width: 260px;
    padding-top: 0;
}
.tp-account-menu-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 16px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.dark-mode .tp-account-menu-head {
    border-bottom-color: rgba(255, 255, 255, .1);
}
.tp-account-menu-identity {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.tp-account-menu-name {
    font-weight: 600;
    font-size: .95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tp-account-menu-role {
    font-size: .68rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6c757d;
}
.dark-mode .tp-account-menu-role {
    color: rgba(255, 255, 255, .55);
}

/* Compact on small screens: keep the avatar, drop name + expiry */
@media (max-width: 767.98px) {
    .tp-account-identity {
        display: none;
    }
    .tp-topbar-sep {
        margin: 0 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tp-topbar-btn,
    .tp-account-chip {
        transition: none;
    }
}
