.dhx_toolbar__item.logo-container img {
    display: inline-block;
    object-fit: contain;
    height: 34px !important;
    width: auto;
    padding-left: 4px !important;
}

.logo-text-first {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    color: var(--re-ink) !important;
    font-style: italic;
    text-transform: uppercase;
    font-size: 2.0rem;
    margin-right: -4px;
}

.logo-text-second {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    color: var(--re-ink-muted) !important;
    font-style: italic;
    text-transform: uppercase;
    font-size: 2.0rem;
}

.dhx_toolbar__item.logo-container .logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dhx_navbar .dhx_button--color_secondary.dhx_button--view_link .dhx_button__icon {
    color: var(--re-primary);
}

.dhx_toolbar-button__icon {
    color: var(--re-primary) !important;
}

.dhx_toolbar-button {
    border-radius: 8px !important;
}

.dhx_toolbar-button--active {
    background-color: var(--re-primary-soft) !important;
    color: var(--re-primary) !important;
}

.dhx_toolbar-button--active .dhx_toolbar-button__icon {
    color: var(--re-primary) !important;
}

.dhx_toolbar .dhx_navbar {
    padding: 12px 12px;
    gap: 4px;
}

.dhx_toolbar .dhx_toolbar-separator,
.dhx_toolbar .dhx_toolbar__separator,
.dhx_toolbar-item--separator {
    background: var(--re-border) !important;
    width: 1px !important;
    margin: 8px 6px !important;
    height: calc(100% - 16px) !important;
    opacity: 0.9;
}

.dhx_navbar,
.dhx_toolbar {
    background: var(--re-surface) !important;
}

/* ======== Main toolbar custom CSS ======== */
.mainToolbar-custom .dhx_toolbar-button {
    background: var(--re-primary-softer);
    color: var(--re-primary);
}
.mainToolbar-custom .dhx_toolbar-button {
    margin-right: 10px;
}
/* ======================================== */

/* Portal toolbar avatar (imageButton + SVG data URL): keep circular clip */
.mainToolbar-custom [data-dhx-id="avatar"] .dhx_toolbar-button__image,
.mainToolbar-custom [data-dhx-id="avatar"] img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

/* Read-only section title in page toolbars (toolbarsQy lbl_* ) */
.re-toolbar-section-title .dhx_toolbar-button__text,
.re-toolbar-section-title .dhx_toolbar__text {
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--re-primary);
}
.re-toolbar-section-title .dhx_toolbar-button__icon {
    color: var(--re-primary);
}

/* Proposals toolbar: hint when owner signature apply is blocked */
.re-toolbar-owner-sign-hint .dhx_toolbar-button__text,
.re-toolbar-owner-sign-hint .dhx_toolbar__text {
    font-size: 12px;
    font-style: italic;
    color: var(--re-text-muted, #6b7280);
    white-space: nowrap;
}

.dhx_toolbar-button[data-dhx-id="counter"] {
    background-color: var(--re-primary-softer);
    color: var(--re-primary);
    padding: 6px 8px;
}
.dhx_toolbar-button[data-dhx-id="counter"] .dhx_toolbar-button__text {
    margin-left: 6px;
}

/* ======== tabbar custom CSS ======== */
.dhx_tabbar-header__wrapper {
    height: 55px;
    background-color: var(--re-surface);
    border-bottom: 1px solid var(--re-border) !important;
}
.dhx_tabbar-tab {
    height: auto !important;
}
.dhx_tabbar-tab-button {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dhx_tabbar-tab-button {
    color: var(--re-primary);
    font-weight: 600;
}

.dhx_tabbar-header-active {
    background-color: var(--re-primary);
}
/* ================================== */

/* Quick spin on toolbar refresh icons when clicked (class toggled from header.php). */
@keyframes re-toolbar-refresh-spin {
    to {
        transform: rotate(360deg);
    }
}

.re-toolbar-refresh-spin-once {
    display: inline-block;
    animation: re-toolbar-refresh-spin 0.3s ease-out;
}

.dhx_tabbar_scroll {
    height: 56px !important;
    display: flex;
}