:root {
    --app-shell-ink: var(--text-primary, #2D3E3F);
    --app-shell-muted: var(--text-secondary, #5A6C6D);
    --app-shell-green: var(--action-primary, #4F6B53);
    --app-shell-green-hover: var(--action-primary-hover, #3F5743);
    --app-shell-sage: var(--sage-green, #8BA888);
    --app-shell-blue: var(--soft-blue, #A8C5DA);
    --app-shell-orange: var(--attention-orange, #E49741);
    --app-shell-bg: var(--warm-bg, #F8F6F3);
    --app-shell-surface: var(--warm-card, #FFFFFF);
    --app-shell-border: var(--warm-border, #E8E4DF);
    --app-shell-header-height: 64px;
    --app-shell-footer-min-height: 76px;
    --app-shell-focus: #58775D;
    --app-shell-shadow: 0 24px 56px rgba(45, 62, 63, 0.16);
    --app-shell-icon-neutral: #637170;
    --home-page-overlay: color-mix(in srgb, var(--aside-surface, #FBFCF9) 50%, transparent);
}

.app-shell-v2 {
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--app-shell-ink);
    background: var(--app-shell-bg);
}

.app-shell-v2 .wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
}

.app-shell-v2 .main-sidebar,
.app-shell-v2 #sidebar-overlay {
    display: none !important;
}

.app-shell-v2 .main-header,
.app-shell-v2 .content-wrapper,
.app-shell-v2 .main-footer,
body.app-shell-v2.sidebar-mini.sidebar-collapse .main-header,
body.app-shell-v2.sidebar-mini.sidebar-collapse .content-wrapper,
body.app-shell-v2.sidebar-mini.sidebar-collapse .main-footer,
body.app-shell-v2.wauth-false.sidebar-mini .main-header,
body.app-shell-v2.wauth-false.sidebar-mini .content-wrapper,
body.app-shell-v2.wauth-false.sidebar-mini .main-footer {
    margin-left: 0 !important;
}

.app-shell-v2 .content-wrapper {
    flex: 1 0 auto;
    min-width: 0;
    min-height: 0 !important;
    background-color: #FFFFFF;
    background-image: url("/images/pared_blanca.jpeg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.app-shell-v2 .content-wrapper > .content.content-home {
    background-color: transparent;
    background-image: none;
}

body.app-shell-v2.wauth-false .content-wrapper {
    background-color: #FFFFFF;
    background-image: url("/images/pared_blanca.jpeg");
}

body.app-shell-v2.wauth-false .content-wrapper > .content.content-home {
    background-color: var(--home-page-overlay);
    background-image: none;
    padding: 0;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

body.app-shell-v2.wauth-false:has(.public-auth-page--login) .content-wrapper > .content.content-home {
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
}

/* Inicio conserva un segundo .content-home legacy: evitamos duplicar la foto. */
body.app-shell-v2.wauth-false #whome.public-entry-host {
    background-color: transparent;
    background-image: none;
}

body.app-shell-v2.wauth-true:not(.app-shell-billing-surface) .content-wrapper > .content.content-home {
    background-color: var(--home-page-overlay);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/*
 * Bootstrap inserta el backdrop como hijo directo de body. El blur de la
 * superficie principal crea un contexto de apilado independiente, por lo que
 * un modal renderizado dentro de la vista puede quedar por debajo del backdrop.
 * Mientras haya un modal abierto retiramos únicamente ese contexto y elevamos
 * el par modal/backdrop por encima de la cabecera y del supermenú.
 */
body.app-shell-v2.modal-open.wauth-true:not(.app-shell-billing-surface) .content-wrapper > .content.content-home {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

body.app-shell-v2.modal-open > .modal-backdrop {
    z-index: 1070;
}

body.app-shell-v2.modal-open .modal {
    z-index: 1080;
}

/* Los diálogos de confirmación abiertos desde un modal deben cubrirlo por completo. */
body.app-shell-v2.modal-open > .factura-csp-dialog {
    z-index: var(--z-modal-raised, 1090);
}

body.app-shell-v2.app-shell-billing-surface .content-wrapper > .content.content-home {
    background-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

body.app-shell-v2.wauth-true:not(.app-shell-billing-surface) :is(
    .landing-page-container,
    .task098-bonos-bg-blur,
    .centros-translucent-panel,
    .informes-page-shell.bg-blur
) {
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    outline: 0 !important;
}

.app-shell-skip-link {
    position: fixed;
    top: 0.5rem;
    left: 0.75rem;
    z-index: 12000;
    padding: 0.75rem 1rem;
    color: #FFFFFF;
    background: var(--app-shell-green);
    border-radius: 0.5rem;
    font-weight: 700;
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.app-shell-skip-link:focus {
    color: #FFFFFF;
    transform: translateY(0);
}

.app-shell-header {
    position: sticky !important;
    top: 0;
    z-index: 1045;
    display: block;
    width: 100%;
    height: var(--app-shell-header-height);
    min-height: var(--app-shell-header-height);
    margin: 0;
    padding: 0 !important;
    color: var(--app-shell-ink);
    background: var(--app-shell-surface) !important;
    background-image: none !important;
    border: 0;
    border-bottom: 1px solid var(--app-shell-border);
    box-shadow: 0 1px 0 rgba(45, 62, 63, 0.03);
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell-header__inner {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1.5vw, 1.25rem);
    width: 100%;
    min-height: var(--app-shell-header-height);
    padding: 0 clamp(0.75rem, 2vw, 1.75rem);
    container-name: app-shell-header;
    container-type: inline-size;
}

.app-shell-brand,
body.app-shell-v2.wauth-false .app-shell-brand {
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    width: clamp(9.5rem, 13vw, 12.5rem);
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.app-shell-brand:hover,
.app-shell-brand:focus {
    color: inherit;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.app-shell-brand picture {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

.app-shell-brand__image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 34px;
    object-fit: contain;
    object-position: left center;
}

.app-shell-navigation {
    flex: 1 1 auto;
    min-width: 0;
}

.app-shell-navigation-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    width: min(100%, 21rem);
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 0.35rem 0.65rem;
    color: var(--app-shell-ink);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.app-shell-navigation-trigger:hover,
.app-shell-navigation-trigger[aria-expanded="true"] {
    color: var(--app-shell-green-hover);
    background: #F1F4F0;
    border-color: #DCE5DA;
}

.app-shell-navigation-trigger__icon {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--app-shell-icon-neutral);
    background: transparent;
    border-radius: 0;
    font-size: 1rem;
    transition: color 160ms ease;
}

.app-shell-navigation-trigger.has-attention[aria-expanded="false"] .app-shell-navigation-trigger__icon::after,
.lnkmensajes .app-shell-nav-item.notaside .app-shell-nav-item__icon::after,
.lnkllamadas.hayllamadas .app-shell-nav-item__icon::after,
.lnkllamadas .app-shell-nav-item.blink-campana .app-shell-nav-item__icon::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 0.55rem;
    height: 0.55rem;
    content: "";
    background: #E23D4F;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(226, 61, 79, 0.18);
}

.app-shell-navigation-trigger:hover .app-shell-navigation-trigger__icon,
.app-shell-navigation-trigger[aria-expanded="true"] .app-shell-navigation-trigger__icon {
    color: var(--app-shell-green);
}

.app-shell-navigation-trigger__copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    line-height: 1.1;
}

.app-shell-navigation-trigger__eyebrow {
    margin-bottom: 0.18rem;
    color: var(--app-shell-muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.app-shell-navigation-trigger__title {
    overflow: hidden;
    color: var(--app-shell-ink);
    font-size: 0.98rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-shell-navigation-trigger__chevron {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: var(--app-shell-muted);
    font-size: 0.72rem;
    transition: transform 160ms ease;
}

.app-shell-navigation-trigger[aria-expanded="true"] .app-shell-navigation-trigger__chevron {
    transform: rotate(180deg);
}

.app-shell-navigation-backdrop {
    position: fixed;
    top: var(--app-shell-header-height);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1046;
    background: rgba(45, 62, 63, 0.26);
    backdrop-filter: blur(1px);
}

.app-shell-supermenu {
    position: fixed;
    top: calc(var(--app-shell-header-height) + 0.75rem);
    left: 50%;
    z-index: 1047;
    width: min(calc(100vw - 2rem), 88rem);
    max-height: calc(100dvh - var(--app-shell-header-height) - 1.5rem);
    padding: clamp(1.25rem, 2.5vw, 2rem);
    overflow: auto;
    color: var(--app-shell-ink);
    background: var(--app-shell-surface);
    border: 1px solid var(--app-shell-border);
    border-radius: 1.1rem;
    box-shadow: var(--app-shell-shadow);
    transform: translate(-50%, -0.4rem);
    opacity: 0;
    overscroll-behavior: contain;
    transition: opacity 160ms ease, transform 160ms ease;
}

.app-shell-supermenu.is-open {
    transform: translate(-50%, 0);
    opacity: 1;
}

.app-shell-supermenu__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--app-shell-border);
}

.app-shell-supermenu__eyebrow {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--app-shell-orange);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.app-shell-supermenu__header h2 {
    margin: 0;
    padding: 0;
    color: var(--app-shell-ink);
    border: 0;
    font-size: clamp(1.2rem, 2vw, 1.55rem) !important;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.app-shell-supermenu__close {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    color: var(--app-shell-muted);
    background: #F4F5F3;
    border: 1px solid var(--app-shell-border);
    border-radius: 50%;
    font: inherit;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.app-shell-supermenu__close:hover {
    color: var(--app-shell-green-hover);
    background: #EAF0E9;
    border-color: #CCD8CA;
}

.app-shell-supermenu__groups {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.75rem);
}

.app-shell-nav-group {
    min-width: 0;
}

.app-shell-nav-group + .app-shell-nav-group {
    padding-left: clamp(1rem, 2vw, 1.75rem);
    border-left: 1px solid var(--app-shell-border);
}

.app-shell-nav-group__title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.5rem;
    margin: 0 0 0.75rem;
    padding: 0;
    color: var(--app-shell-muted);
    border: 0;
    font-size: 0.78rem !important;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.app-shell-nav-group__title > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--app-shell-green);
    background: #EEF2ED;
    border-radius: 0.55rem;
    font-size: 0.82rem;
}

.app-shell-nav-group--daily .app-shell-nav-group__title > span {
    color: #496A51;
    background: #EDF3EE;
}

.app-shell-nav-group--care .app-shell-nav-group__title > span {
    color: #456578;
    background: #EDF3F7;
}

.app-shell-nav-group--team .app-shell-nav-group__title > span {
    color: #647054;
    background: #F0F3EA;
}

.app-shell-nav-group--account .app-shell-nav-group__title > span {
    color: #9A6021;
    background: #FFF3E7;
}

.app-shell-nav-group__items {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.app-shell-nav-entry {
    min-width: 0;
    border: 0;
}

.app-shell-nav-entry--responsive-help,
.app-shell-nav-group--responsive-help-only {
    display: none;
}

body.app-shell-v2.wauth-false .app-shell-nav-entry--responsive-help,
body.app-shell-v2.wauth-false .app-shell-nav-group--responsive-help-only {
    display: block;
}

.app-shell-nav-item {
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 0.4rem 0.55rem;
    overflow: hidden;
    color: var(--app-shell-ink);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.65rem;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.app-shell-nav-item:hover {
    color: var(--app-shell-green-hover);
    background: #F3F5F2;
    border-color: #E3E9E1;
    box-shadow: none;
    transform: none;
}

.app-shell-nav-item.is-current,
.app-shell-nav-item[aria-current="page"] {
    color: var(--app-shell-green-hover);
    background: #EAF0E9;
    border-color: #CDDACA;
}

.app-shell-nav-item.is-disabled {
    color: #879392;
    cursor: not-allowed;
    opacity: 0.62;
}

.app-shell-nav-item__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    color: var(--app-shell-icon-neutral);
    background: transparent;
    border-radius: 0;
    font-size: 0.95rem;
    transition: color 140ms ease;
}

.app-shell-nav-item:hover .app-shell-nav-item__icon,
.app-shell-nav-item:focus-visible .app-shell-nav-item__icon {
    color: var(--app-shell-green);
}

.app-shell-nav-item.is-current .app-shell-nav-item__icon,
.app-shell-nav-item[aria-current="page"] .app-shell-nav-item__icon {
    color: var(--app-shell-green);
    background: transparent;
}

.app-shell-nav-item.is-disabled .app-shell-nav-item__icon {
    color: #879392;
}

.app-shell-nav-item__label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.app-shell-nav-item__badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.4rem;
    padding: 0.12rem 0.45rem;
    color: #6F4317;
    background: #FFF0DF;
    border: 1px solid #F1C28D;
    border-radius: 999px;
    font-size: 0.67rem;
    font-weight: 800;
    white-space: nowrap;
}

.app-shell-nav-item__arrow {
    color: #9AA4A3;
    font-size: 0.64rem;
    opacity: 0;
    transform: translateX(-0.25rem);
    transition: opacity 140ms ease, transform 140ms ease;
}

.app-shell-nav-item:hover .app-shell-nav-item__arrow,
.app-shell-nav-item:focus-visible .app-shell-nav-item__arrow {
    opacity: 1;
    transform: translateX(0);
}

.app-shell-nav-item--premium {
    color: #7B4B18;
    background: #FFF7EE;
    border-color: #EBC18F;
}

.app-shell-header-actions,
body.app-shell-v2.wauth-false nav .app-shell-header-actions {
    display: flex !important;
    flex: 0 0 auto;
    flex-direction: row !important;
    align-items: center;
    gap: 0.25rem;
    margin: 0 0 0 auto;
    padding: 0;
}

.app-shell-header-actions > .dropdown {
    position: relative;
    flex: 0 0 auto;
    align-self: center;
}

.app-shell-header-actions > .dropdown > .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 1050;
    transform: none !important;
}

.app-shell-header-action {
    display: flex;
    align-items: center;
    min-width: 0;
    border: 0 !important;
}

.app-shell-header-action.header-session-timer {
    min-width: 0;
    margin: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.app-shell-header-action__button,
.app-shell-profile__trigger,
.app-shell-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    margin: 0;
    padding: 0.45rem 0.65rem;
    color: var(--app-shell-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.65rem;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.app-shell-header-action__button:hover,
.app-shell-profile__trigger:hover,
.app-shell-login-link:hover {
    color: var(--app-shell-green-hover);
    background: #F1F4F0;
    border-color: #DCE5DA;
    box-shadow: none;
    transform: none;
}

.app-shell-header-action__button--icon {
    width: 44px;
    padding: 0;
}

.app-shell-session-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
}

.app-shell-session-copy .autocierre {
    position: static;
    bottom: auto !important;
    padding: 0;
    color: var(--app-shell-muted);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.app-shell-session-copy .header-session-time {
    color: var(--app-shell-ink);
    font-size: 0.78rem;
    font-weight: 750;
}

.app-shell-session-reset .header-session-sync {
    color: var(--app-shell-orange);
    font-size: 0.68rem;
}

.app-shell-count-badge {
    position: absolute;
    top: 0.15rem;
    right: 0.1rem;
    min-width: 1rem;
    min-height: 1rem;
    margin: 0;
    padding: 0.12rem 0.25rem;
    color: #FFFFFF;
    background: var(--app-shell-orange) !important;
    border: 2px solid var(--app-shell-surface);
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 800;
    line-height: 0.75rem;
    text-align: center;
}

.app-shell-count-badge:empty {
    display: none;
}

.app-shell-notification-menu,
.app-shell-profile__menu {
    margin-top: 0.5rem;
    overflow: hidden;
    color: var(--app-shell-ink);
    background: var(--app-shell-surface);
    border: 1px solid var(--app-shell-border);
    border-radius: 0.85rem;
    box-shadow: 0 16px 36px rgba(45, 62, 63, 0.14);
}

.app-header-popover {
    width: min(22rem, calc(100vw - 1.5rem));
    min-width: min(22rem, calc(100vw - 1.5rem));
    padding: 0;
}

.app-header-popover__heading {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
    background: color-mix(in srgb, var(--app-shell-green) 4%, var(--app-shell-surface));
    border-bottom: 1px solid var(--app-shell-border);
}

.app-header-popover__heading-icon,
.app-header-popover__item-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: var(--app-shell-green);
    background: color-mix(in srgb, var(--app-shell-green) 10%, var(--app-shell-surface));
    border-radius: 0.65rem;
}

.app-header-popover__heading-icon {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 1rem;
}

.app-header-popover__heading-copy,
.app-header-popover__item-copy {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.app-header-popover__heading-copy {
    gap: 0.1rem;
}

.app-header-popover__title {
    color: var(--app-shell-ink);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
}

.app-header-popover__subtitle {
    color: var(--app-shell-muted);
    font-size: 0.75rem;
    line-height: 1.35;
}

.app-header-popover__list {
    display: flex;
    max-height: min(25rem, calc(100vh - var(--app-shell-header-height) - 8rem));
    overflow-x: hidden;
    overflow-y: auto;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--app-shell-muted) 35%, transparent) transparent;
}

.app-header-popover__item.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.75rem 1rem;
    color: var(--app-shell-ink);
    background: var(--app-shell-surface);
    border-bottom: 1px solid color-mix(in srgb, var(--app-shell-border) 72%, transparent);
    white-space: normal;
    transition: background-color 140ms ease, color 140ms ease;
}

.app-header-popover__item.dropdown-item:last-child {
    border-bottom: 0;
}

.app-header-popover__item.dropdown-item:hover,
.app-header-popover__item.dropdown-item:focus-visible {
    color: var(--app-shell-ink);
    background: color-mix(in srgb, var(--app-shell-green) 7%, var(--app-shell-surface));
}

.app-header-popover__item.dropdown-item:focus-visible {
    outline: 2px solid var(--app-shell-focus);
    outline-offset: -3px;
}

.app-header-popover__item-icon {
    width: 2.15rem;
    height: 2.15rem;
    font-size: 0.85rem;
}

.app-header-popover__item-icon--appointment {
    color: #6B642E;
    background: #F4F0D9;
}

.app-header-popover__item-icon--call {
    color: #3F6673;
    background: #E6F0F3;
}

.app-header-popover__item-icon--file {
    color: #665478;
    background: #F0EAF4;
}

.app-header-popover__item-copy {
    gap: 0.16rem;
    overflow: hidden;
}

.app-header-popover__item-heading {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.app-header-popover__item-title {
    overflow: hidden;
    color: var(--app-shell-ink);
    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-header-popover__item-preview {
    display: -webkit-box;
    overflow: hidden;
    color: var(--app-shell-muted);
    font-size: 0.78rem;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.app-header-popover__item-meta {
    color: var(--app-shell-muted);
    font-size: 0.7rem;
    line-height: 1.35;
}

.app-header-popover__unread-dot {
    flex: 0 0 auto;
    width: 0.45rem;
    height: 0.45rem;
    background: var(--app-shell-orange);
    border-radius: 50%;
}

.app-header-popover__item-chevron {
    flex: 0 0 auto;
    color: color-mix(in srgb, var(--app-shell-muted) 62%, transparent);
    font-size: 0.62rem;
}

.app-header-popover__footer.dropdown-item {
    display: block;
    padding: 0.72rem 1rem;
    color: var(--app-shell-green);
    background: color-mix(in srgb, var(--app-shell-green) 4%, var(--app-shell-surface));
    border-top: 1px solid var(--app-shell-border);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
}

.app-header-popover__footer.dropdown-item:hover,
.app-header-popover__footer.dropdown-item:focus-visible {
    color: var(--app-shell-green-hover);
    background: color-mix(in srgb, var(--app-shell-green) 9%, var(--app-shell-surface));
}

.app-header-popover__footer.dropdown-item:focus-visible {
    outline: 2px solid var(--app-shell-focus);
    outline-offset: -3px;
}

.app-header-popover [hidden] {
    display: none !important;
}

.app-shell-profile__trigger {
    max-width: 14rem;
}

.app-shell-profile {
    display: flex;
    align-items: center;
    min-width: 0;
}

.app-shell-profile__avatar {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #FFFFFF;
    background: var(--app-shell-green);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.app-shell-profile__avatar--large {
    width: 42px;
    height: 42px;
    font-size: 0.78rem;
}

.app-shell-profile__name {
    max-width: 8.5rem;
    overflow: hidden;
    color: var(--app-shell-ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-shell-profile__chevron {
    color: var(--app-shell-muted);
    font-size: 0.58rem;
}

.app-shell-profile__menu {
    min-width: 15rem;
    padding: 0.5rem;
}

.app-shell-profile__summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
}

.app-shell-profile__summary > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.app-shell-profile__summary strong {
    overflow: hidden;
    color: var(--app-shell-ink);
    font-size: 0.85rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-shell-profile__summary small {
    margin-top: 0.16rem;
    color: var(--app-shell-muted);
    font-size: 0.7rem;
}

.app-shell-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 42px;
    color: var(--app-shell-ink);
    border-radius: 0.5rem;
    font-size: 0.82rem;
}

.app-shell-dropdown-item:hover,
.app-shell-dropdown-item:focus {
    color: var(--app-shell-green-hover);
    background: #F1F4F0;
}

.app-shell-dropdown-item i {
    width: 1rem;
    color: var(--app-shell-green);
    text-align: center;
}

.app-shell-footer,
body.app-shell-v2 footer.main-footer {
    display: block !important;
    flex: 0 0 auto;
    min-height: var(--app-shell-footer-min-height);
    margin: 0 !important;
    padding: 1.1rem clamp(1rem, 2.5vw, 2rem);
    color: var(--app-shell-muted);
    background: var(--app-shell-bg);
    border: 0;
    border-top: 1px solid var(--app-shell-border);
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.78rem;
}

.app-shell-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    max-width: 96rem;
    margin: 0 auto;
}

.app-shell-footer__primary,
.app-shell-footer__secondary {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.app-shell-footer__copyright {
    color: var(--app-shell-ink);
    font-size: 0.78rem;
    white-space: nowrap;
}

.app-shell-footer__links,
.app-shell-footer__languages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.8rem;
}

.app-shell-footer a {
    min-height: 32px;
    color: var(--app-shell-muted);
    font-size: 0.76rem;
    line-height: 32px;
    text-decoration: none;
}

.app-shell-footer a:hover,
.app-shell-footer a:focus {
    color: var(--app-shell-green-hover);
    box-shadow: none;
    transform: none;
    text-decoration: underline;
    text-underline-offset: 0.18rem;
}

.app-shell-footer__languages {
    gap: 0.25rem;
    padding: 0.16rem;
    background: #EEF1ED;
    border: 1px solid #E0E5DE;
    border-radius: 999px;
}

.app-shell-footer__languages a {
    min-width: 32px;
    min-height: 28px;
    padding: 0 0.45rem;
    border-radius: 999px;
    line-height: 28px;
    text-align: center;
}

.app-shell-footer__languages a.is-current {
    color: #FFFFFF;
    background: var(--app-shell-green);
    font-weight: 800;
    text-decoration: none;
}

.app-shell-footer__motto {
    color: var(--app-shell-muted);
    font-style: italic;
    white-space: nowrap;
}

input.dz-hidden-input {
    position: fixed !important;
    top: -1000px !important;
    left: -1000px !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden !important;
    opacity: 0 !important;
    border: 0 !important;
    pointer-events: none !important;
}

.app-shell-v2 :is(
    .app-shell-navigation-trigger,
    .app-shell-supermenu__close,
    .app-shell-nav-item,
    .app-shell-header-action__button,
    .app-shell-profile__trigger,
    .app-shell-login-link,
    .app-shell-footer a
):focus-visible {
    outline: 3px solid var(--app-shell-focus);
    outline-offset: 2px;
    box-shadow: none;
}

/*
 * Desktop keeps the legal footer visible and delegates long-page scrolling to
 * .content-home. Let flexbox use the footer's real rendered height instead of
 * the legacy 114px viewport subtraction, which no longer matches this shell.
 */
@media (min-width: 992px) {
    .app-shell-v2 .wrapper {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    .app-shell-v2 .content-wrapper {
        flex: 1 1 auto;
        overflow: hidden;
    }

    .app-shell-v2 .content-wrapper > .content.content-home {
        height: 100%;
        min-height: 0;
    }
}

body.app-shell-v2.wpage-HomeMensajes .content-wrapper,
body.app-shell-v2.wpage-HomeLlamada .content-wrapper {
    height: calc(100dvh - var(--app-shell-header-height));
}

body.app-shell-v2.wpage-HomeMensajes .app-shell-footer,
body.app-shell-v2.wpage-HomeLlamada .app-shell-footer {
    display: none !important;
}

.app-shell-v2.sidebar-mini.sidebar-collapse #iframeFac,
.app-shell-v2.sidebar-mini.sidebar-collapse #iframeFac.facturacion-iframe-fixed[class*="facturacion-iframe-height-"] {
    padding: var(--app-shell-header-height) 0 var(--app-shell-footer-min-height) 0;
}

.app-shell-v2.sidebar-mini.sidebar-collapse #iframeFac.facturacion-iframe-resized {
    padding: 0;
}

@media (max-width: 1199px) {
    .app-shell-header-action__label,
    .app-shell-profile__name,
    .app-shell-profile__chevron {
        display: none;
    }

    .app-shell-profile__trigger {
        width: 44px;
        padding: 0;
    }
}

@media (max-width: 991px) {
    :root {
        --app-shell-header-height: 60px;
        --app-shell-footer-min-height: 0px;
    }

    /*
     * Mobile pages scroll with the document. Override the legacy fixed
     * .content-home viewport height so growing forms remain before the footer
     * in the shared flex flow.
     */
    .app-shell-v2 .content-wrapper {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible;
    }

    .app-shell-v2 .content-wrapper > .content.content-home {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    body.app-shell-menu-open {
        overflow: hidden;
    }

    .app-shell-header__inner {
        gap: 0.35rem;
        padding: 0 0.55rem;
    }

    .app-shell-brand {
        width: 7.5rem;
    }

    .app-shell-navigation-trigger {
        width: 100%;
        min-height: 44px;
        padding: 0.25rem 0.45rem;
    }

    .app-shell-navigation-trigger__icon {
        width: 30px;
        height: 30px;
    }

    .app-shell-navigation-trigger__title {
        font-size: 0.9rem;
    }

    .app-shell-supermenu {
        top: var(--app-shell-header-height);
        left: 0;
        width: 100%;
        max-height: calc(100dvh - var(--app-shell-header-height));
        padding: 1rem;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 0 0 1rem 1rem;
        transform: translateY(-0.4rem);
    }

    .app-shell-supermenu.is-open {
        transform: translateY(0);
    }

    .app-shell-supermenu__header {
        position: sticky;
        top: -1rem;
        z-index: 1;
        margin: -1rem -1rem 1rem;
        padding: 0.9rem 1rem;
        background: var(--app-shell-surface);
    }

    .app-shell-supermenu__groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-shell-nav-group + .app-shell-nav-group {
        padding-left: 0;
        border-left: 0;
    }

    .app-shell-footer__inner,
    .app-shell-footer__primary,
    .app-shell-footer__secondary {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-shell-footer__inner {
        gap: 0.9rem;
    }

    .app-shell-footer__primary,
    .app-shell-footer__secondary {
        gap: 0.45rem;
    }

    .app-shell-footer__motto {
        white-space: normal;
    }
}

@media (max-width: 767px) {
    .app-shell-header,
    .app-shell-header * {
        font-size: revert;
    }

    .app-shell-brand {
        width: 7rem;
    }

    .app-shell-brand__image {
        height: 32px;
    }

    .app-shell-header-actions {
        gap: 0;
    }

    .app-shell-header-action.header-session-timer {
        display: none;
    }

    .app-shell-header-action__button,
    .app-shell-profile__trigger {
        width: 40px;
        min-height: 40px;
        padding: 0;
    }

    .app-shell-profile__avatar {
        width: 32px;
        height: 32px;
        font-size: 0.64rem;
    }

    .app-shell-supermenu__groups {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .app-shell-nav-group__title {
        min-height: 2rem;
        margin-bottom: 0.45rem;
        font-size: 0.75rem !important;
    }

    .app-shell-nav-item {
        min-height: 48px;
        font-size: 0.9rem;
    }

    .app-shell-footer {
        padding: 1rem;
        font-size: 0.78rem;
    }

    .app-shell-footer__links {
        gap: 0.1rem 0.75rem;
    }
}

@container app-shell-header (max-width: 318px) {
    body.app-shell-v2.wauth-true .app-shell-help-action {
        display: none;
    }

    body.app-shell-v2.wauth-true .app-shell-nav-entry--responsive-help,
    body.app-shell-v2.wauth-true .app-shell-nav-group--responsive-help-only {
        display: block;
    }
}

@supports not (container-type: inline-size) {
    @media (max-width: 332px) {
        body.app-shell-v2.wauth-true .app-shell-help-action {
            display: none;
        }

        body.app-shell-v2.wauth-true .app-shell-nav-entry--responsive-help,
        body.app-shell-v2.wauth-true .app-shell-nav-group--responsive-help-only {
            display: block;
        }
    }
}

@media (max-width: 575px) {
    .app-shell-brand {
        width: 42px;
        height: 42px;
    }

    .app-shell-brand picture {
        justify-content: center;
    }

    .app-shell-brand__image {
        width: 32px;
        height: 32px;
        object-position: center;
    }

    .app-shell-navigation-trigger {
        gap: 0.4rem;
    }

    .app-shell-navigation-trigger__eyebrow {
        display: none;
    }

    .app-shell-navigation-trigger__icon {
        display: none;
    }

    .app-shell-navigation-trigger__title {
        font-size: 0.84rem;
    }

    .app-shell-navigation-trigger__chevron {
        width: 20px;
    }

    body.app-shell-v2.wauth-false .app-shell-login-link {
        width: 44px;
        padding: 0;
    }

    body.app-shell-v2.wauth-false .app-shell-login-link__label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .app-shell-count-badge {
        top: 0;
        right: 0;
    }

    .app-shell-header-actions > .dropdown > .app-shell-notification-menu {
        position: fixed !important;
        top: var(--app-shell-header-height) !important;
        right: 0.5rem !important;
        bottom: auto !important;
        left: 0.5rem !important;
        width: auto;
        max-width: none;
        transform: none !important;
    }

    .app-shell-header-actions > .dropdown > .app-shell-profile__menu {
        position: fixed !important;
        top: var(--app-shell-header-height) !important;
        right: 0.5rem !important;
        bottom: auto !important;
        left: 0.5rem !important;
        width: auto;
        transform: none !important;
    }

    .app-shell-footer__links {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-shell-skip-link,
    .app-shell-navigation-trigger,
    .app-shell-navigation-trigger__chevron,
    .app-shell-supermenu,
    .app-shell-supermenu__close,
    .app-shell-nav-item,
    .app-shell-nav-item__arrow,
    .app-shell-header-action__button,
    .app-shell-profile__trigger,
    .app-shell-login-link {
        scroll-behavior: auto;
        transition: none;
    }
}
