/* Advanced Edition upsell touchpoints shared across modules:
   greyed Finances item + edition footer in the module dropdown,
   locked Timesheets Alignment tab, Configuration edition badge */

/* --- Module dropdown: edition-locked Finances item --- */

.eb-upsell-module-link,
.eb-upsell-module-link:hover {
    text-decoration: none;
}

.eb-upsell-module {
    position: relative;
    cursor: pointer;
}

.eb-upsell-module .dashboards-menu-icon {
    filter: grayscale(1);
    opacity: 0.55;
}

.eb-upsell-module .dashboard-view-label {
    color: #8a99b5;
}

.eb-upsell-module .eb-upsell-module-sublabel {
    color: #51b5cf;
}

.eb-upsell-module .eb-upsell-lock {
    display: none;
    position: absolute;
    right: 12px;
    top: 50%;
    margin-top: -12px;
    width: 24px;
    height: 24px;
    background: url(icons/ic_edition_lock.svg) no-repeat center;
    background-size: contain;
}

.eb-upsell-module:hover .eb-upsell-lock {
    display: block;
}

/* --- Module dropdown: edition footer row --- */

.eb-dropdown-edition-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin: 0 0 -10px; /* cancel footer padding-bottom so the row is flush to the rounded bottom */
    border-top: 1px solid #eaedf0;
    background: #f4f6f8;
}

.eb-dropdown-edition-label {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #65738b;
    white-space: nowrap;
}

.eb-dropdown-edition-row .eb-dropdown-upgrade-link {
    width: auto;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #51b5cf;
    white-space: nowrap;
    text-decoration: none;
}

.eb-dropdown-edition-row .eb-dropdown-upgrade-link:hover {
    color: #119bbe;
    text-decoration: none;
}

/* --- Timesheets: locked Alignment tab --- */

.eb-locked-tab {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    padding: 4px 10px;
    cursor: default;
    opacity: 0.99; /* isolate from sibling selectors */
}

.eb-locked-tab img {
    filter: grayscale(1);
    opacity: 0.5;
    vertical-align: middle;
}

.eb-locked-tab span {
    color: #8a99b5;
    vertical-align: middle;
}

.eb-locked-tab .eb-locked-tab-lock {
    display: inline-block;
    vertical-align: middle;
    width: 16px;
    height: 16px;
    margin-left: 4px;
    background: url(icons/ic_edition_lock_muted.svg) no-repeat center;
    background-size: contain;
}

/* moved to <body> and positioned by edition-upsell.js so toolbar overflow cannot clip it */
.eb-locked-tab-tooltip {
    display: none;
    position: absolute;
    background: #101724;
    box-shadow: 0 1px 3px rgba(12, 33, 69, 0.24);
    color: #ffffff;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 4px;
    text-align: center;
    z-index: 10060;
}

.eb-locked-tab-tooltip.eb-show {
    display: block;
}

.eb-locked-tab-tooltip:before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px; /* hover bridge so the link stays reachable */
}

/* collapse to icon-only at the same breakpoints as .track__header_view tabs */
@media screen and (max-width: 1500px) {
    .eb-locked-tab .eb-locked-tab-label {
        display: none !important;
    }

    .eb-locked-tab img {
        margin: 0;
    }
}

.eb-locked-tab-tooltip a,
.eb-locked-tab-tooltip a:hover {
    color: #51b5cf;
    text-decoration: none;
    display: block;
}

/* --- Configuration area: edition badge --- */

/* Badge: link floated far-right of the nav, right of the help icon. */
.editionBadgeAction {
    float: right;
    margin-top: 6px;
    margin-right: 12px;
}

/* Tighten nav spacing on Config pages so the badge fits at 1440. */
body.controller-config .headerNav .menuButton a {
    padding-left: 2px;
    padding-right: 2px;
}

/* Reserve right-side room so the absolute nav wraps before the help icon + badge, not under them. */
#timelineNav:has(.eb-header-edition-badge) .mainAdminNavigationAction {
    padding-right: 230px;
    box-sizing: border-box;
}

.eb-header-edition-badge,
.eb-header-edition-badge:hover {
    display: inline-block;
    vertical-align: middle;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #f79009;
    background: #fffaf2;
    border: 1px solid rgba(247, 144, 9, 0.5);
    border-radius: 100px;
    padding: 2px 14px;
    margin-left: 16px;
    white-space: nowrap;
    text-decoration: none;
}

.eb-header-edition-badge:hover {
    background: #fff3e0;
}

/* ── Config nav: edition-locked item ──────────────────────
   Security Log on Standard Cloud. The row stays a normal nav item so the panel's own
   layout still applies; only the label is muted and the badge is appended. */
/* Nav variant of the locked tab: the configuration nav is a vertical list of full-width rows, so
   this must stay a block and add no padding of its own - .eb-locked-tab is inline-block for the
   horizontal Timesheets tab bar. */
.eb-nav-lock.eb-locked-tab {
    display: block;
    padding: 0;
    vertical-align: baseline;
}

.eb-nav-lock .eb-locked-tab-lock {
    margin-left: 6px;
    width: 14px;
    height: 14px;
}

/* ── Security Log preview (Standard Cloud) ────────────────
   Sample screenshot plus the same upgrade CTA the benefits page uses. */
.eb-preview-shot-link {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

.eb-preview-shot {
    max-width: 100%;
    border: 1px solid #dfe1e6;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(12, 33, 69, 0.12);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.eb-preview-shot-link:hover .eb-preview-shot {
    border-color: #51b5cf;
    box-shadow: 0 2px 8px rgba(12, 33, 69, 0.18);
}

.eb-preview-unlock {
    margin-top: 22px;
}

.eb-preview-unlock-link,
.eb-preview-unlock-link:visited {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #51b5cf;
    text-decoration: none;
}

.eb-preview-unlock-link:hover {
    color: #119bbe;
    text-decoration: none;
}

.eb-preview-unlock-icon {
    width: 20px;
    height: 20px;
    flex: none;
    background: url(icons/ic_edition_lock.svg) no-repeat center;
    background-size: contain;
}
