@layer avanza-clear {
    .avanza-header-menu {
        display: none !important;
    }
    html body:has(.account-top-bar) {
        background: #f3f6fa !important;
        color: #202b3c !important;
        font-family: "Segoe UI", Arial, sans-serif !important;
    }

    .account-top-bar, .mobile-app-bar {
        background: #fff !important;
        color: #263449 !important;
        border-bottom: 1px solid #e2e8f0 !important;
        box-shadow: none !important;
    }

    .account-top-bar {
        border-bottom: 2px solid #0f6cbd !important;
    }

    .account-top-bar .account-module {
        color: #17283c !important;
        font-size: 1.125rem !important;
        font-weight: 650 !important;
    }

    .account-top-bar .account-clock,
    .account-top-bar .account-user-controls,
    .account-top-bar .account-week,
    .account-top-bar .account-date,
    .account-top-bar .account-short-date,
    .account-top-bar .account-time,
    .account-top-bar .account-time small,
    .account-top-bar .account-profile,
    .account-top-bar .account-profile-label,
    .account-top-bar .account-user-icon {
        color: #34445a !important;
        background: transparent !important;
        border: 0 !important;
    }

    .account-top-bar .account-profile-label {
        width: auto !important;
        height: auto !important;
        border-radius: 0 !important;
    }

    .account-top-bar .account-clock button.fullscreen-toggle,
    .account-top-bar button.account-profile,
    .mobile-app-bar button {
        color: #34445a !important;
        background: transparent !important;
        border: 1px solid transparent !important;
        box-shadow: none !important;
    }

    .account-top-bar .account-clock button.fullscreen-toggle:hover,
    .account-top-bar button.account-profile:hover,
    .mobile-app-bar button:hover {
        background: #eef5fc !important;
        border-color: #d6e6f6 !important;
    }

    #app-side-navigation {
        background: #eaf2fa !important;
        border-right: 1px solid #e2e8f0 !important;
        box-shadow: none !important;
    }

    #app-side-navigation .nav-brand {
        padding-block: 1.25rem !important;
        background: transparent !important;
        border-bottom: 1px solid #edf0f5 !important;
    }

    #app-side-navigation .app-nav-links {
        gap: 0.25rem !important;
        padding-block: 1rem !important;
    }

    #app-side-navigation .app-nav-links a {
        background: transparent !important;
        color: #526174 !important;
        border: 0 !important;
        border-radius: 0.5rem !important;
        box-shadow: none !important;
        font: 500 0.875rem/1.4 "Segoe UI", Arial, sans-serif !important;
        min-height: 2.625rem !important;
    }

    #app-side-navigation .app-nav-links a:hover {
        background: #f1f5fa !important;
        color: #0f6cbd !important;
    }

    #app-side-navigation .app-nav-links a[aria-current="page"],
    body:has(.organization-content) #app-side-navigation .app-nav-links a[href="/cuentas"] {
        background: #d6e9fb !important;
        color: #0b5cab !important;
        font-weight: 650 !important;
    }

    body:has(.account-top-bar) nav[aria-label="Secciones"] button.active,
    body:has(.account-top-bar) nav[aria-label="Herramientas de mi espacio"] button.active,
    body:has(.account-top-bar) nav[aria-label="Vistas de notas"] button.selected,
    body:has(.account-top-bar) .layout-switch button[aria-pressed="true"] {
        color: #0b5cab !important;
    }

    #app-side-navigation .app-nav-links a svg {
        width: 20px !important;
        height: 20px !important;
        color: inherit !important;
        stroke-width: 1.8 !important;
    }

    #app-side-navigation button {
        color: #526174 !important;
        background: #eaf2fa !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: none !important;
    }

    .account-user-dropdown {
        background: #fff !important;
        color: #263449 !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 0.625rem !important;
        box-shadow: 0 8px 24px rgba(20, 44, 72, 0.1) !important;
    }

    body:has(.account-top-bar) :is(.compact-header, thead, .organization-content th) {
        background: #f0f4f9 !important;
        color: #34445a !important;
        border-color: #e2e8f0 !important;
    }

    body:has(.account-top-bar) .compact-header :is(button, span, div),
    body:has(.account-top-bar) thead :is(th, button) {
        background: transparent !important;
        color: #34445a !important;
        border-color: #e2e8f0 !important;
    }

    body:has(.account-top-bar) :is(.personal-tools, .list-toolbar) {
        background: #f8fafd !important;
        border-color: #e2e8f0 !important;
    }

    body:has(.account-top-bar) :is(.panel, .app-card, .organization-content, .calendar-toolbar, .gcal-toolbar) {
        border-color: #e2e8f0 !important;
        box-shadow: none !important;
    }

    body:has(.account-top-bar) .app-card {
        background: #fff !important;
        border-radius: 0.625rem !important;
        color: #263449 !important;
    }

    body:has(.account-top-bar) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), textarea, select) {
        border-color: #cdd7e3 !important;
        border-radius: 0.375rem !important;
        box-shadow: none !important;
    }

    body:has(.account-top-bar) :is(input, textarea, select):focus-visible {
        outline: 2px solid #0f6cbd !important;
        outline-offset: 1px !important;
    }

    body:has(.account-top-bar) :is(button, a):focus-visible {
        outline: 2px solid #0f6cbd !important;
        outline-offset: 2px !important;
    }

    .account-top-bar .account-header-brand {
        background: transparent !important;
    }

    @media (min-width: 641px) and (max-width: 1200px) {
        .account-top-bar .account-date {
            display: none !important;
        }

        .account-top-bar .account-short-date {
            display: inline !important;
        }
    }

    @media (min-width: 641px) and (max-width: 1024px) {
        .focus-reminder-grid {
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        }

        .focus-reminder-grid .pending-day-card {
            grid-column: 1 / -1 !important;
            height: auto !important;
            min-height: 0 !important;
        }
    }

    @media (max-width: 640px) {
        .focus-reminder-grid {
            grid-template-columns: minmax(0, 1fr) !important;
            height: auto !important;
            min-height: 0 !important;
            gap: 0.75rem !important;
        }

        .focus-reminder-grid :is(.focus-capture-column, .pending-focus, .compact-reminders, .pending-day-card) {
            width: 100% !important;
            min-width: 0 !important;
            height: auto !important;
            min-height: 0 !important;
            box-sizing: border-box !important;
        }

        .focus-reminder-grid .focus-select {
            min-width: 0 !important;
            max-width: 100% !important;
        }

        .mobile-app-bar {
            display: none !important;
        }

        .account-top-bar {
            position: fixed !important;
            inset: 0 0 auto 0 !important;
            width: 100% !important;
            max-width: 100% !important;
            height: auto !important;
            min-height: 96px !important;
            box-sizing: border-box !important;
            display: grid !important;
            grid-template-columns: 96px minmax(0, 1fr) auto 30px !important;
            grid-template-rows: 32px 32px !important;
            padding: 0.75rem !important;
            row-gap: 0.25rem !important;
            column-gap: 0.375rem !important;
            overflow: visible !important;
        }

        .account-top-bar .account-header-brand {
            position: static !important;
            transform: none !important;
            grid-column: 1 !important;
            grid-row: 1 !important;
            width: 96px !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        .account-top-bar .account-module {
            position: static !important;
            transform: none !important;
            width: auto !important;
            max-width: 100% !important;
            grid-column: 2 !important;
            grid-row: 1 !important;
            font-size: 0.875rem !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            white-space: nowrap !important;
        }

        .account-top-bar .account-user-controls {
            position: static !important;
            transform: none !important;
            grid-column: 3 !important;
            grid-row: 1 !important;
            width: auto !important;
            max-width: 94px !important;
            justify-self: end !important;
        }

        .account-top-bar .avanza-header-menu {
            display: inline-flex !important;
            grid-column: 4 !important;
            grid-row: 1 !important;
            width: 30px !important;
            height: 30px !important;
            padding: 0 !important;
            align-items: center !important;
            justify-content: center !important;
            border: 0 !important;
            background: transparent !important;
            color: #34445a !important;
        }

        .account-top-bar .account-clock {
            position: static !important;
            transform: none !important;
            box-sizing: border-box !important;
            grid-column: 1 / -1 !important;
            grid-row: 2 !important;
            width: 100% !important;
            justify-content: space-between !important;
            flex-wrap: nowrap !important;
            gap: 0.25rem !important;
        }

        .account-top-bar .account-clock button.fullscreen-toggle {
            width: 28px !important;
            height: 28px !important;
            min-height: 28px !important;
            min-width: 28px !important;
        }

        .account-top-bar .account-clock span {
            font-size: 0.75rem !important;
        }

        .account-top-bar .account-time {
            flex: 0 1 auto !important;
            min-width: 0 !important;
            white-space: nowrap !important;
            font-size: 0.6875rem !important;
        }

        .account-top-bar .account-time small {
            display: none !important;
        }

        .account-top-bar .account-profile {
            max-width: 94px !important;
            padding: 0 !important;
            gap: 0.25rem !important;
        }

        .account-top-bar .account-profile-label {
            font-size: 0.75rem !important;
        }
    }
}
