@import url(/bertai-static/v-1796167333/styles/custom/petplus/colors.css);

:root {
    --portal-header-bg: var(--petplus-header-bg);
    --portal-header-logotipo-bg-image: url(/bertai-static/v-1796167333/images/custom/petplus/logotipo.png);
    --portal-header-toggle-menu-filter: var(--filter-n0);
    --portal-header-dropdown-data-filter: var(--filter-n0);

    --portal-color-title-accent: var(--portal-color-primary);
    /* panelita.css pinta h1 y h2 con este token, y por defecto es g700 */
    --color-main-dark: var(--portal-color-primary);

    --btn-bgColor: var(--portal-color-primary);
    --btn-borderColor: var(--portal-color-primary);
}

.btn--secondary {
    --btn-color: var(--portal-color-primary);
    --btn-borderColor: var(--portal-color-primary);
}

.password-rules {
    --checkbox-color: var(--portal-color-primary);
    --input-focus-border-color: var(--portal-color-primary);
    --input-focus-box-shadow: 0px 0px 0px 2px var(--petplus-primary);
}

.emptyState__title {
    color: var(--portal-color-primary);
}

/* User dropdown menu, portal-top-menu.jsp */
#top-nav .dropdown .menu-link:hover,
#top-nav .dropdown .menu-link.active {
    background-color: var(--portal-color-primary-light);
}

#top-nav .row-menu .menu-link:hover::before,
#top-nav .row-menu .menu-link.active::before {
    background: var(--portal-color-primary);
}

#top-nav .dropdown .menu-link:hover > .icon-container,
#top-nav .dropdown .menu-link.active > .icon-container,
#top-nav .dropdown .menu-link.delete:hover .icon-container {
    filter: var(--portal-filter-primary);
}

#top-nav .dropdown .menu-link:hover > p,
#top-nav .dropdown .menu-link.active > p,
#top-nav .dropdown .menu-link.delete:hover,
#top-nav .dropdown .menu-link.delete:hover > p {
    color: var(--portal-color-primary);
}

/* Sidebar, portal-left-menu.jsp */
#sidebar .sidebar-section .title:not(.active, .sidebar-item-logout):hover,
#sidebar .section-links .sidebar-link:not(.active, .sidebar-item-logout):hover {
    background-color: var(--portal-color-primary-light);
    color: var(--portal-color-primary);
}

#sidebar .sidebar-section .title:not(.active, .sidebar-item-logout):hover .icon-container,
#sidebar .sidebar-section .title:not(.active, .sidebar-item-logout):hover span::after {
    filter: var(--portal-filter-primary);
}

/* Fallback rules (no #sidebar/:not(.active) scoping) still fire when an item is both .active and :hover */
.sidebar-section .title:hover,
.section-links .sidebar-link:hover {
    background-color: var(--portal-color-primary-light);
}

#sidebar a.active {
    background-color: var(--portal-color-primary);
    color: var(--color-n0);
}

/*
 * Toasts (bootstrap-notify) and legacy chosen/air-datepicker below are loaded via each
 * page's head-static, which renders AFTER this stylesheet in portal-template.jsp — same-specificity
 * overrides would lose. "body" gives just enough extra specificity to win regardless of load order,
 * and is a real ancestor either way (these widgets mount to document.body, not inside .layout-portal).
 */
body [data-notify=container].toast.save-icon,
body [data-notify=container].toast.wifi-icon,
body [data-notify=container].toast.info-icon,
body [data-notify=container].toast.pause-icon,
body [data-notify=container].toast.block-icon {
    --notify-bg-color: var(--portal-color-primary-light);
}

body .toast.save-icon,
body .toast.wifi-icon,
body .toast.info-icon,
body .toast.pause-icon,
body .toast.block-icon {
    --notify-text-color: var(--portal-color-primary);
}

body [data-notify=container] .actions .action:only-child,
body [data-notify=container] .actions .action:nth-child(1) {
    border-color: var(--portal-color-primary);
    background-color: var(--portal-color-primary);
}

body [data-notify=container] #saveBtn.success::after {
    background: var(--portal-color-primary);
}

body .chzn-container-multi .chzn-choices li.search-choice {
    background: var(--portal-color-primary-light);
}

body .chzn-container-multi .chzn-choices li.search-choice span {
    color: var(--portal-color-primary) !important;
}

body .chzn-container-multi .chzn-choices .search-choice .search-choice-close,
body .chzn-container-multi .chzn-choices .search-choice .search-choice-close:hover {
    filter: var(--portal-filter-primary);
}

body .chzn-container-active .chzn-single,
body .chzn-container-active .chzn-choices {
    border: 1px solid var(--portal-color-primary);
}

body .air-datepicker-cell.-current- {
    --adp-color-current-date: var(--portal-color-primary);
}

body .air-datepicker-cell.-selected-.-current-,
body .air-datepicker-cell.-selected- {
    color: var(--portal-color-primary);
}

body .air-datepicker-cell.-selected-::after {
    background-color: var(--portal-color-primary);
}
