/* Admin Home canvas. Everything is scoped to .admin-home so other dashboard tabs keep their styles. */

.admin-home,
.home-sheet,
.home-select-menu,
.home-confirm,
.home-notification-widget {
    --h-radius: 26px;
    --h-gap: 20px;
    --h-row-gap: 30px;
    --h-row: 250px;
    --h-ease: cubic-bezier(.2, .9, .25, 1);
    --h-spring: cubic-bezier(.3, 1.35, .45, 1);

    /* Shared with the shell (admin-shell.css); the fallbacks are the light values. */
    --h-text: var(--mx-text, #0d1838);
    --h-muted: var(--mx-muted, #5b6889);
    --h-ink: var(--mx-ink, #0d1838);
    --h-on-ink: var(--mx-on-ink, #ffffff);
    --h-hair: var(--mx-hair, rgba(13, 24, 56, .08));
    --h-hair-strong: var(--mx-hair-strong, rgba(13, 24, 56, .16));
    --h-bg: var(--mx-bg, radial-gradient(1200px 600px at 8% -10%, #dfe6ff 0%, rgba(223, 230, 255, 0) 60%),
            radial-gradient(900px 520px at 100% 0%, #ffe7dc 0%, rgba(255, 231, 220, 0) 55%),
            linear-gradient(180deg, #eef2fb 0%, #f6f4fb 100%));

    --h-faint: rgba(13, 24, 56, .42);
    --h-glass: var(--mx-glass, rgba(255, 255, 255, .64));
    --h-glass-strong: var(--mx-glass-strong, rgba(255, 255, 255, .9));
    --h-stroke: var(--mx-stroke, rgba(255, 255, 255, .8));
    --h-chip: var(--mx-chip, rgba(13, 24, 56, .045));
    --h-chip-strong: var(--mx-chip-strong, rgba(13, 24, 56, .09));
    --h-stage: linear-gradient(160deg, rgba(44, 73, 149, .10), rgba(241, 90, 49, .07));
    --h-sheet: rgba(246, 248, 253, .86);
    --h-handle: rgba(13, 24, 56, .55);
    --h-badge: rgba(92, 102, 128, .94);
    --h-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 18px 40px -22px rgba(24, 40, 110, .38), 0 2px 8px rgba(24, 40, 110, .06);
    --h-shadow-lift: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 28px 60px -24px rgba(24, 40, 110, .45), 0 4px 14px rgba(24, 40, 110, .08);
    --h-orb-a: rgba(91, 118, 255, .35);
    --h-orb-b: rgba(255, 128, 92, .28);

    --h-info: #0ea5e9;
    --h-warn: #f59e0b;
    --h-danger: #e5484d;
    --h-ok: #16a34a;
}

.admin-home {
    position: relative;
    isolation: isolate;
    flex-shrink: 0;
    min-height: calc(100vh - 110px);
    margin: 0 0 24px;
    padding: 18px 24px 56px;
    border-radius: 30px;
    background: var(--h-bg);
    color: var(--h-text);
    overflow: clip;
    transition: background .4s ease, color .4s ease;
}

/* Bleed through the content frame so the canvas fills the screen. */
.admin-dashboard .admin-home {
    min-height: 100dvh;
    margin-inline: calc(var(--content-padding-x) * -1);
    margin-bottom: -20px;
    border-radius: 0;
    padding-top: 22px;
    padding-inline: max(24px, var(--content-padding-x));
}

/* The page behind the canvas uses the same wash, so the color reaches the bottom of the screen. */
body.admin-dashboard:has(#admin-home) {
    background: var(--mx-bg, var(--h-bg));
}

/* Dark Home surfaces follow html[data-mx-theme]; data-home-theme kept as a bridge for floating sheets. */
html[data-mx-theme="dark"] .admin-home,
html[data-mx-theme="dark"] .home-sheet,
html[data-mx-theme="dark"] .home-select-menu,
html[data-mx-theme="dark"] .home-confirm,
.admin-home[data-home-theme="dark"],
.home-sheet[data-home-theme="dark"],
.home-select-menu[data-home-theme="dark"],
.home-confirm[data-home-theme="dark"] {
    --h-faint: rgba(238, 241, 255, .42);
    --h-glass: var(--mx-glass, rgba(24, 30, 58, .58));
    --h-glass-strong: var(--mx-glass-strong, rgba(34, 41, 74, .92));
    --h-stroke: var(--mx-stroke, rgba(255, 255, 255, .09));
    --h-chip: var(--mx-chip, rgba(255, 255, 255, .055));
    --h-chip-strong: var(--mx-chip-strong, rgba(255, 255, 255, .11));
    --h-stage: linear-gradient(160deg, rgba(99, 122, 255, .16), rgba(241, 90, 49, .10));
    --h-sheet: rgba(18, 22, 44, .86);
    --h-handle: rgba(238, 241, 255, .7);
    --h-badge: rgba(150, 158, 186, .9);
    --h-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 22px 48px -24px rgba(0, 0, 0, .7), 0 2px 10px rgba(0, 0, 0, .25);
    --h-shadow-lift: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 34px 70px -26px rgba(0, 0, 0, .8), 0 4px 16px rgba(0, 0, 0, .3);
    --h-orb-a: rgba(91, 118, 255, .32);
    --h-orb-b: rgba(241, 90, 49, .18);
}

.admin-home::before,
.admin-home::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    will-change: transform;
    animation: home-drift 22s ease-in-out infinite alternate;
}

.admin-home.is-settled::before,
.admin-home.is-settled::after {
    will-change: auto;
}

.admin-home::before {
    top: 18%;
    inset-inline-start: -160px;
    background: var(--h-orb-a);
}

.admin-home::after {
    bottom: -180px;
    inset-inline-end: -120px;
    background: var(--h-orb-b);
    animation-delay: -11s;
}

/* Dashboard frame and tab strip on Home */

.admin-dashboard .admin-home .admin-customized-dashboard {
    background: transparent;
    padding: 0;
    gap: 0;
    grid-template-rows: auto;
    border-radius: 0;
}

.admin-dashboard .admin-home .admin-customized-dashboard .contents {
    grid-row: 1;
    grid-column: 1 / -1;
}

/* Top bar */

.home-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 0 4px 22px;
}

.home-greeting {
    min-width: 0;
}

.home-greeting__date {
    display: block;
    color: var(--h-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home-greeting__title {
    margin: 4px 0 0;
    color: var(--h-text);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
}

html[lang=ar] .home-greeting__title {
    font-size: 24px;
}

.home-pill {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border: 1px solid var(--h-stroke);
    border-radius: 999px;
    background: var(--h-glass);
    box-shadow: var(--h-shadow);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);
}

.home-pill__btn,
.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--h-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s var(--h-spring);
}

.home-pill__btn:hover,
.home-btn:hover {
    background: var(--h-chip-strong);
}

.home-pill__btn:active,
.home-btn:active {
    transform: scale(.96);
}

.home-pill__btn:focus,
.home-btn:focus,
.home-pill__btn--icon:focus {
    outline: none;
}

.home-pill__btn:focus:not(:focus-visible),
.home-btn:focus:not(:focus-visible),
.home-pill__btn--icon:focus:not(:focus-visible) {
    background: transparent;
    box-shadow: none;
}

/* Keep Edit/Done fill after mouse click (focus without :focus-visible). */
.home-pill__btn--primary:focus:not(:focus-visible),
.home-btn--primary:focus:not(:focus-visible) {
    background: var(--h-ink);
    color: var(--h-on-ink);
    box-shadow: none;
}

.home-pill__btn:focus-visible,
.home-btn:focus-visible,
.home-icon-btn:focus-visible,
.home-card__remove:focus-visible,
.home-card__resize:focus-visible,
.home-catalog__item:focus-visible,
.home-suggest__tile:focus-visible {
    outline: 2px solid #6d83ff;
    outline-offset: 2px;
}

.home-pill__btn--icon {
    width: 36px;
    padding: 0;
}

.home-leave-cal__nav .home-pill__btn--icon:focus,
.home-leave-cal__nav .home-pill__btn--icon:focus-visible {
    outline: none;
    background: transparent;
    box-shadow: none;
}

.home-pill__btn--primary,
.home-btn--primary {
    background: var(--h-ink);
    color: var(--h-on-ink);
}

.home-pill__btn--primary:hover,
.home-btn--primary:hover {
    background: var(--h-ink);
    opacity: .9;
}

.home-btn--primary:disabled {
    cursor: default;
    opacity: .45;
}

.home-btn--primary.is-loading {
    position: relative;
    overflow: hidden;
    opacity: 1;
    cursor: default;
    isolation: isolate;
}

.home-btn--primary.is-loading>* {
    position: relative;
    z-index: 1;
}

.home-btn--primary.is-loading::before,
.home-btn--primary.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.home-btn--primary.is-loading::before {
    background: currentColor;
    opacity: .04;
}

.home-btn--primary.is-loading::after {
    background-image: linear-gradient(105deg, transparent 0%, transparent 10%, color-mix(in srgb, currentColor 16%, transparent) 36%, color-mix(in srgb, currentColor 10%, white 72%) 49%, color-mix(in srgb, currentColor 22%, transparent) 58%, transparent 90%, transparent 100%);
    background-size: 230% 100%;
    background-repeat: no-repeat;
    animation: home-btn-load 1.35s ease-in-out infinite;
}

@keyframes home-btn-load {
    0% {
        background-position: 115% 0;
    }

    100% {
        background-position: -115% 0;
    }
}

.admin-home:not(.is-editing) [data-edit-only],
.admin-home.is-editing [data-view-only] {
    display: none;
}

.home-edit-hint {
    margin: -10px 4px 18px;
    color: var(--h-muted);
    font-size: 13px;
    text-align: center;
    animation: home-fade .25s ease both;
}

/* Empty state */

.home-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 420px;
    margin: 48px auto;
    padding: 36px 28px;
    border: 1px solid var(--h-stroke);
    border-radius: var(--h-radius);
    background: var(--h-glass);
    box-shadow: var(--h-shadow);
    text-align: center;
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
}

.home-empty[hidden] {
    display: none;
}

.home-empty__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, #5b76ff, #a35bff);
    color: #fff;
    font-size: 22px;
}

.home-empty__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.home-empty__text {
    margin: 0;
    color: var(--h-muted);
}

/* Grid */

.home-grid {
    --span-s: 3;
    --span-m: 6;
    --span-l: 6;
    --span-xl: 12;
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: var(--h-row);
    grid-auto-flow: row dense;
    gap: var(--h-row-gap) var(--h-gap);
}

.home-card {
    position: relative;
    min-width: 0;
    contain: layout style;
    animation: home-in .34s var(--h-ease) both;
    animation-delay: calc(var(--home-widget-i, 0) * 40ms);
}

.home-card.is-shown {
    animation: none;
}

.home-card--s {
    grid-column: span var(--span-s);
}

.home-card--m {
    grid-column: span var(--span-m);
}

.home-card--l {
    grid-column: span var(--span-l);
    grid-row: span 2;
}

.home-card--xl {
    grid-column: span var(--span-xl);
    grid-row: span 2;
}

.home-card__surface {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--h-stroke);
    border-radius: var(--h-radius);
    background: var(--h-glass);
    box-shadow: var(--h-shadow);
    overflow: hidden;
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);
    transition: transform .3s var(--h-ease), box-shadow .3s var(--h-ease), background .4s ease;
}

.home-card__surface::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: -40%;
    inset-inline-end: -20%;
    width: 70%;
    height: 90%;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--w-a), transparent);
    opacity: .14;
    pointer-events: none;
}

.admin-home:not(.is-editing) .home-card:hover .home-card__surface {
    transform: translateY(-3px);
    box-shadow: var(--h-shadow-lift);
}

.home-card__head {
    position: relative;
    z-index: 1;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 16px 18px 8px;
}

.home-card__total {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
    z-index: 2;
}

.home-card__total[hidden] {
    display: none !important;
}

.home-card--full .home-card__head {
    padding-inline-end: 250px;
}

.home-card--full:has(.home-event-widget) .home-card__head {
    padding-inline-end: 300px;
}

.admin-dashboard .admin-home .home-card.home-card--full:has(.home-event-widget) .widget>.widget-header {
    inset-inline-end: 76px;
}

.home-card__filter {
    position: absolute;
    z-index: 2;
    top: 14px;
    inset-inline-end: 20px;
    display: flex;
    align-items: center;
    max-width: calc(100% - 160px);
}

.home-card.is-date-open {
    z-index: 6;
}

.home-card.is-date-open .home-card__surface {
    overflow: visible;
}

.home-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    min-width: 0;
    padding: 0 14px;
    border: 1px solid var(--h-hair-strong, rgba(13, 24, 56, .16));
    border-radius: 999px;
    background: var(--h-chip, rgba(13, 24, 56, .045));
    box-shadow: none;
    color: var(--h-muted, #5b6889);
    transition: border-color .15s ease, background .15s ease;
}

.home-filter:hover,
.home-filter:focus-within {
    border-color: var(--h-hair-strong, rgba(13, 24, 56, .16));
    background: var(--h-glass-strong, rgba(255, 255, 255, .9));
}

.home-filter__control {
    appearance: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--h-muted, #5b6889);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.home-filter__control:focus {
    outline: none;
    color: var(--h-text, #0d1838);
}

.home-filter--date {
    display: inline-flex;
    align-items: center;
    width: 168px;
    max-width: 100%;
    height: 36px;
    padding: 0 12px;
    cursor: pointer;
    position: relative;
    gap: 8px;
    overflow: visible;
}

.home-filter__glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--h-muted, #5b6889);
    font-size: 12px;
    flex: 0 0 auto;
    pointer-events: none;
}

.home-filter--date .home-filter__control {
    flex: 1 1 auto;
    width: 0;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    padding: 0 !important;
    cursor: pointer;
    color: var(--h-muted, #5b6889);
    position: static !important;
    background: transparent !important;
    box-shadow: none !important;
}

.bootstrap-datetimepicker-widget.home-date-menu {
    z-index: 4001 !important;
    direction: ltr;
    width: 292px !important;
    margin-top: 8px !important;
    padding: 12px !important;
    border: 1px solid var(--h-stroke, rgba(13, 24, 56, .1)) !important;
    border-radius: 18px !important;
    background: var(--h-glass-strong, rgba(255, 255, 255, .96)) !important;
    box-shadow: var(--h-shadow-lift, 0 22px 44px -24px rgba(24, 40, 110, .42)) !important;
    overflow: hidden;
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    backdrop-filter: blur(28px) saturate(180%);
}

.bootstrap-datetimepicker-widget.home-date-menu .datepicker,
.bootstrap-datetimepicker-widget.home-date-menu .datepicker-days,
.bootstrap-datetimepicker-widget.home-date-menu .datepicker-months,
.bootstrap-datetimepicker-widget.home-date-menu .datepicker-years {
    width: 100%;
}

.bootstrap-datetimepicker-widget.home-date-menu table {
    width: 100%;
    margin: 0;
}

[dir=rtl] .bootstrap-datetimepicker-widget.home-date-menu .datepicker-days table {
    direction: rtl;
}

[dir=rtl] .bootstrap-datetimepicker-widget.home-date-menu .datepicker-months tbody td,
[dir=rtl] .bootstrap-datetimepicker-widget.home-date-menu .datepicker-years tbody td,
[dir=rtl] .bootstrap-datetimepicker-widget.home-date-menu .datepicker-decades tbody td {
    direction: rtl;
}

.bootstrap-datetimepicker-widget.home-date-menu thead tr:first-child th {
    padding: 6px 4px 10px;
}

.bootstrap-datetimepicker-widget.home-date-menu th,
.bootstrap-datetimepicker-widget.home-date-menu td {
    border: 0 !important;
    border-radius: 12px;
    color: var(--h-text, #0d1838);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
    height: 34px;
    width: 34px;
    padding: 0 !important;
    vertical-align: middle;
}

.bootstrap-datetimepicker-widget.home-date-menu td.day {
    width: 34px;
    height: 34px;
}

.bootstrap-datetimepicker-widget.home-date-menu td.old,
.bootstrap-datetimepicker-widget.home-date-menu td.new {
    color: var(--h-muted, #5b6889) !important;
    opacity: .55;
}

.bootstrap-datetimepicker-widget.home-date-menu td.day:hover,
.bootstrap-datetimepicker-widget.home-date-menu td.hour:hover,
.bootstrap-datetimepicker-widget.home-date-menu td.minute:hover,
.bootstrap-datetimepicker-widget.home-date-menu td.month:hover,
.bootstrap-datetimepicker-widget.home-date-menu td.year:hover {
    background: var(--h-chip-strong, rgba(13, 24, 56, .09)) !important;
    color: var(--h-text, #0d1838) !important;
}

.bootstrap-datetimepicker-widget.home-date-menu td.active,
.bootstrap-datetimepicker-widget.home-date-menu td.active:hover {
    background: var(--h-ink, #0d1838) !important;
    color: var(--h-on-ink, #fff) !important;
    text-shadow: none !important;
    box-shadow: 0 8px 16px -10px rgba(13, 24, 56, .55);
}

.bootstrap-datetimepicker-widget.home-date-menu td.today:before {
    border-bottom-color: var(--w-a, #2f7bff) !important;
}

.bootstrap-datetimepicker-widget.home-date-menu .picker-switch {
    color: var(--h-text, #0d1838);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -.02em;
    border-radius: 12px;
}

.bootstrap-datetimepicker-widget.home-date-menu .prev,
.bootstrap-datetimepicker-widget.home-date-menu .next,
.bootstrap-datetimepicker-widget.home-date-menu .picker-switch {
    text-align: center;
}

.bootstrap-datetimepicker-widget.home-date-menu .prev,
.bootstrap-datetimepicker-widget.home-date-menu .next {
    color: var(--h-muted, #5b6889);
    border-radius: 12px;
}

.bootstrap-datetimepicker-widget.home-date-menu .prev>span,
.bootstrap-datetimepicker-widget.home-date-menu .next>span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25em;
    height: 1.25em;
    line-height: 1;
}

[dir=rtl] .bootstrap-datetimepicker-widget.home-date-menu .datepicker-days thead {
    position: relative;
}

[dir=rtl] .bootstrap-datetimepicker-widget.home-date-menu .datepicker-days thead tr:first-child>.prev,
[dir=rtl] .bootstrap-datetimepicker-widget.home-date-menu .datepicker-days thead tr:first-child>.next {
    position: absolute;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 34px;
}

[dir=rtl] .bootstrap-datetimepicker-widget.home-date-menu .datepicker-days thead tr:first-child>.prev {
    right: 0;
}

[dir=rtl] .bootstrap-datetimepicker-widget.home-date-menu .datepicker-days thead tr:first-child>.next {
    left: 0;
}

.bootstrap-datetimepicker-widget.home-date-menu .datepicker-months,
.bootstrap-datetimepicker-widget.home-date-menu .datepicker-years,
.bootstrap-datetimepicker-widget.home-date-menu .datepicker-decades {
    position: relative;
}

.bootstrap-datetimepicker-widget.home-date-menu .datepicker-months thead,
.bootstrap-datetimepicker-widget.home-date-menu .datepicker-years thead,
.bootstrap-datetimepicker-widget.home-date-menu .datepicker-decades thead {
    position: absolute;
    inset-inline: 0;
    top: 0;
    display: block;
    width: auto;
    height: 34px;
}

.bootstrap-datetimepicker-widget.home-date-menu .datepicker-months thead tr:first-child,
.bootstrap-datetimepicker-widget.home-date-menu .datepicker-years thead tr:first-child,
.bootstrap-datetimepicker-widget.home-date-menu .datepicker-decades thead tr:first-child {
    display: flex;
    align-items: center;
    width: 100%;
    height: 34px;
    position: relative;
}

[dir=rtl] .bootstrap-datetimepicker-widget.home-date-menu .datepicker-months thead tr:first-child,
[dir=rtl] .bootstrap-datetimepicker-widget.home-date-menu .datepicker-years thead tr:first-child,
[dir=rtl] .bootstrap-datetimepicker-widget.home-date-menu .datepicker-decades thead tr:first-child {
    direction: rtl;
}

.bootstrap-datetimepicker-widget.home-date-menu .datepicker-months thead tr:first-child>.picker-switch,
.bootstrap-datetimepicker-widget.home-date-menu .datepicker-years thead tr:first-child>.picker-switch,
.bootstrap-datetimepicker-widget.home-date-menu .datepicker-decades thead tr:first-child>.picker-switch {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: 34px;
    text-align: center;
}

.bootstrap-datetimepicker-widget.home-date-menu .datepicker-months thead tr:first-child>.prev,
.bootstrap-datetimepicker-widget.home-date-menu .datepicker-months thead tr:first-child>.next,
.bootstrap-datetimepicker-widget.home-date-menu .datepicker-years thead tr:first-child>.prev,
.bootstrap-datetimepicker-widget.home-date-menu .datepicker-years thead tr:first-child>.next,
.bootstrap-datetimepicker-widget.home-date-menu .datepicker-decades thead tr:first-child>.prev,
.bootstrap-datetimepicker-widget.home-date-menu .datepicker-decades thead tr:first-child>.next {
    position: static;
    display: flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 34px;
}

.bootstrap-datetimepicker-widget.home-date-menu .prev:hover,
.bootstrap-datetimepicker-widget.home-date-menu .next:hover,
.bootstrap-datetimepicker-widget.home-date-menu .picker-switch:hover {
    background: var(--h-chip, rgba(13, 24, 56, .045)) !important;
    color: var(--h-text, #0d1838);
}

.bootstrap-datetimepicker-widget.home-date-menu .datepicker-days thead .dow {
    color: var(--h-muted, #5b6889);
    font-size: 11px;
    font-weight: 700;
    height: 28px;
}

.bootstrap-datetimepicker-widget.home-date-menu .picker-switch.accordion-toggle {
    display: none;
}

.bootstrap-datetimepicker-widget.home-date-menu tfoot {
    border-top: 1px solid var(--h-hair, rgba(13, 24, 56, .08));
}

.bootstrap-datetimepicker-widget.home-date-menu tfoot th {
    padding-top: 10px !important;
    height: auto;
}

.bootstrap-datetimepicker-widget.home-date-menu .btn,
.bootstrap-datetimepicker-widget.home-date-menu a.btn {
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--h-chip, rgba(13, 24, 56, .045)) !important;
    box-shadow: none !important;
    color: var(--w-a, #2f7bff) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 7px 12px !important;
    line-height: 1.2 !important;
}

.bootstrap-datetimepicker-widget.home-date-menu .btn:hover,
.bootstrap-datetimepicker-widget.home-date-menu a.btn:hover {
    background: var(--h-chip-strong, rgba(13, 24, 56, .09)) !important;
    color: var(--h-text, #0d1838) !important;
}

.bootstrap-datetimepicker-widget.home-date-menu[data-home-theme="dark"] {
    background: rgba(34, 41, 74, .96) !important;
    border-color: rgba(255, 255, 255, .12) !important;
}

.bootstrap-datetimepicker-widget.home-date-menu[data-home-theme="dark"] th,
.bootstrap-datetimepicker-widget.home-date-menu[data-home-theme="dark"] td {
    color: #e8ecf8;
}

.bootstrap-datetimepicker-widget.home-date-menu[data-home-theme="dark"] td.active,
.bootstrap-datetimepicker-widget.home-date-menu[data-home-theme="dark"] td.active:hover {
    background: #e8ecf8 !important;
    color: #0d1838 !important;
}

.bootstrap-datetimepicker-widget.home-date-menu .datepicker-months th,
.bootstrap-datetimepicker-widget.home-date-menu .datepicker-years th,
.bootstrap-datetimepicker-widget.home-date-menu .datepicker-decades th,
.bootstrap-datetimepicker-widget.home-date-menu .datepicker-months td,
.bootstrap-datetimepicker-widget.home-date-menu .datepicker-years td,
.bootstrap-datetimepicker-widget.home-date-menu .datepicker-decades td {
    width: auto !important;
    height: auto;
    white-space: normal;
}

.bootstrap-datetimepicker-widget.home-date-menu .datepicker-months thead tr:first-child>th,
.bootstrap-datetimepicker-widget.home-date-menu .datepicker-years thead tr:first-child>th,
.bootstrap-datetimepicker-widget.home-date-menu .datepicker-decades thead tr:first-child>th {
    height: 34px;
}

.bootstrap-datetimepicker-widget.home-date-menu .datepicker-months tbody td,
.bootstrap-datetimepicker-widget.home-date-menu .datepicker-years tbody td,
.bootstrap-datetimepicker-widget.home-date-menu .datepicker-decades tbody td {
    padding-top: 28px !important;
}

.bootstrap-datetimepicker-widget.home-date-menu .datepicker-months table,
.bootstrap-datetimepicker-widget.home-date-menu .datepicker-years table {
    table-layout: fixed;
    width: 100%;
}

.bootstrap-datetimepicker-widget.home-date-menu table td span.month,
.bootstrap-datetimepicker-widget.home-date-menu table td span.year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: calc(33.333% - 8px);
    height: 32px;
    margin: 4px 2px;
    border-radius: 999px;
    background: transparent;
    color: var(--h-text, #0d1838);
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: none;
}

.bootstrap-datetimepicker-widget.home-date-menu table td span.month:hover,
.bootstrap-datetimepicker-widget.home-date-menu table td span.year:hover {
    background: var(--h-chip-strong, rgba(13, 24, 56, .09)) !important;
    color: var(--h-text, #0d1838) !important;
}

.bootstrap-datetimepicker-widget.home-date-menu table td span.month.active,
.bootstrap-datetimepicker-widget.home-date-menu table td span.year.active,
.bootstrap-datetimepicker-widget.home-date-menu table td span.month.active:hover,
.bootstrap-datetimepicker-widget.home-date-menu table td span.year.active:hover {
    background: var(--h-ink, #0d1838) !important;
    color: var(--h-on-ink, #fff) !important;
    text-shadow: none !important;
}

.bootstrap-datetimepicker-widget.home-date-menu[data-home-theme="dark"] table td span.month,
.bootstrap-datetimepicker-widget.home-date-menu[data-home-theme="dark"] table td span.year {
    color: #e8ecf8;
}

.bootstrap-datetimepicker-widget.home-date-menu[data-home-theme="dark"] table td span.month:hover,
.bootstrap-datetimepicker-widget.home-date-menu[data-home-theme="dark"] table td span.year:hover {
    background: rgba(255, 255, 255, .08) !important;
    color: #e8ecf8 !important;
}

.bootstrap-datetimepicker-widget.home-date-menu[data-home-theme="dark"] table td span.month.active,
.bootstrap-datetimepicker-widget.home-date-menu[data-home-theme="dark"] table td span.year.active,
.bootstrap-datetimepicker-widget.home-date-menu[data-home-theme="dark"] table td span.month.active:hover,
.bootstrap-datetimepicker-widget.home-date-menu[data-home-theme="dark"] table td span.year.active:hover {
    background: #e8ecf8 !important;
    color: #0d1838 !important;
}

.home-filter--year {
    width: 132px;
    padding-inline: 4px;
    justify-content: space-between;
}

.home-filter__field {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    margin: 0;
    min-width: 0;
}

.home-filter__control--year {
    width: 3.2rem;
    text-align: center;
    color: var(--h-text, #0d1838);
    font-weight: 700;
}

.home-filter__step {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--h-muted, #5b6889);
    font-size: 10px;
    cursor: pointer;
}

.home-filter__step:hover,
.home-filter__step:focus {
    background: transparent !important;
    color: var(--h-text, #0d1838);
    outline: none;
}

.home-filter__step:disabled,
.home-filter__step.is-disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}

[data-home-theme="dark"] .home-filter {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .055);
    color: #9aa6c5;
}

[data-home-theme="dark"] .home-filter:hover,
[data-home-theme="dark"] .home-filter:focus-within {
    background: rgba(34, 41, 74, .92);
}

[data-home-theme="dark"] .home-filter__control,
[data-home-theme="dark"] .home-filter__control--year,
html[data-mx-theme="dark"] .home-filter--date .home-filter__control,
html[data-mx-theme="dark"] .home-filter__control--year {
    color: var(--mx-text, #eef1ff) !important;
    -webkit-text-fill-color: var(--mx-text, #eef1ff);
}

.home-card__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--w-a), var(--w-b));
    box-shadow: 0 8px 16px -8px var(--w-a);
    color: #fff;
    font-size: 14px;
}

.home-card__title {
    margin: 0;
    overflow: hidden;
    color: var(--h-text);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
}

html[lang=ar] .home-card__title {
    font-family: Tajawal, Calibri, sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    /* Tajawal sits high in the line box; Calibri (English) sits on the icon center. */
    transform: translateY(2px);
}

.home-card__body {
    z-index: 1;
    flex: 1;
    min-height: 0;
    padding: 2px 18px 16px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--h-hair-strong) transparent;
    display: flex;
    flex-direction: column;
}

.home-card--full .home-card__body {
    padding: 0 10px 10px;
}

.home-card__body>.home-pair,
.home-card__body>.home-pair--leaves {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

.home-card__caption {
    position: absolute;
    inset-inline: 0;
    bottom: -23px;
    overflow: hidden;
    color: var(--h-muted);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
}

.home-accent--indigo {
    --w-a: #5b6cff;
    --w-b: #8b5cf6;
}

.home-accent--blue {
    --w-a: #2f7bff;
    --w-b: #22b8ff;
}

.home-accent--teal {
    --w-a: #0fb5a6;
    --w-b: #22d3ee;
}

.home-accent--orange {
    --w-a: #f15a31;
    --w-b: #f7a440;
}

.home-accent--cyan {
    --w-a: #0ea5e9;
    --w-b: #38bdf8;
}

.home-accent--rose {
    --w-a: #e5484d;
    --w-b: #f472b6;
}

.home-accent--violet {
    --w-a: #8b5cf6;
    --w-b: #ec4899;
}

.home-accent--green {
    --w-a: #16a34a;
    --w-b: #84cc16;
}

.home-accent--amber {
    --w-a: #f59e0b;
    --w-b: #f97316;
}

.home-accent--gold {
    --w-a: #d4a017;
    --w-b: #f5c542;
}

.home-accent--pink {
    --w-a: #ec4899;
    --w-b: #f9a8d4;
}

/* Edit mode */

.home-card__remove,
.home-card__resize {
    position: absolute;
    z-index: 4;
    margin: 0;
    padding: 0;
    border: 0;
    cursor: pointer;
    opacity: 0;
    transform: scale(.4);
    transition: transform .26s var(--h-spring), opacity .2s ease;
    pointer-events: none;
}

.home-card__remove {
    top: -10px;
    inset-inline-start: -10px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--h-badge);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
    color: #fff;
    font-size: 12px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.home-card__resize {
    bottom: 4px;
    inset-inline-end: 4px;
    width: 34px;
    height: 34px;
    background: transparent;
    cursor: nwse-resize;
    touch-action: none;
}

[dir="rtl"] .home-card__resize,
.admin-home[dir="rtl"] .home-card__resize {
    cursor: nesw-resize;
}

.home-card__resize span {
    position: absolute;
    inset: 6px;
    border-bottom: 4px solid var(--h-handle);
    border-inline-end: 4px solid var(--h-handle);
    border-end-end-radius: 18px;
}

.admin-home.is-editing .home-card__remove,
.admin-home.is-editing .home-card__resize {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.admin-home.is-editing .home-card__caption {
    opacity: 1;
}

.admin-home.is-editing .home-card {
    cursor: grab;
    will-change: transform;
    animation: home-wobble .3s ease-in-out infinite alternate;
}

.admin-home.is-editing .home-card:nth-child(even) {
    animation-duration: .34s;
    animation-direction: alternate-reverse;
}

.admin-home.is-editing .home-card.is-dragging,
.admin-home.is-editing .home-card.is-resizing {
    animation-play-state: paused;
}

.home-card.is-resizing .home-card__surface {
    opacity: .28;
}

.admin-home.is-editing .home-card__body,
.admin-home.is-editing .home-card__head {
    pointer-events: none;
    user-select: none;
}

.home-card.is-dragging {
    opacity: .35;
}

.home-card.is-busy .home-card__surface {
    opacity: .6;
}

.home-card.is-removing {
    animation: home-out .2s ease forwards !important;
}

.home-card.is-morphing {
    animation: home-morph .36s var(--h-spring) both !important;
}

.home-resize-ghost {
    position: absolute;
    z-index: 5;
    display: grid;
    place-items: center;
    border: 2px dashed rgba(109, 131, 255, .9);
    border-radius: var(--h-radius);
    background: rgba(109, 131, 255, .10);
    pointer-events: none;
    contain: layout paint;
    transition: width .18s var(--h-ease), height .18s var(--h-ease), left .18s var(--h-ease);
}

.home-resize-ghost span {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--h-ink);
    color: var(--h-on-ink);
    font-size: 12px;
    font-weight: 700;
}

/* Existing dashboard partials inside a card */

.admin-dashboard .admin-home .home-card .widget {
    position: static;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
}

.admin-dashboard .admin-home .home-card .widget>.widget-header {
    position: absolute;
    z-index: 2;
    top: 14px;
    inset-inline-end: 16px;
    gap: 10px;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.admin-dashboard .admin-home .home-card .widget>.widget-header>.icon,
.admin-dashboard .admin-home .home-card .widget>.widget-header>.title {
    display: none;
}

.admin-dashboard .admin-home .home-card .widget>.widget-content {
    padding: 0;
}

.admin-dashboard .admin-home .home-card .widget-header .right {
    flex: 0 0 210px;
    max-width: 210px;
    padding: 0;
}

.admin-dashboard .admin-home .home-card .request-panel>.widget-header {
    top: 21px;
    height: 22px;
    align-items: center;
}

.admin-dashboard .admin-home .home-card .request-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 26px;
    min-height: 20px;
    padding: 0.25em 0.5em;
    border-radius: 999px;
    background: var(--h-chip-strong);
    color: var(--h-text);
    font-size: calc(0.83 * 0.875rem);
    font-weight: 700;
    line-height: 1;
}

/* Tajawal digits have almost no descent, so flex centering leaves them high in the pill. */
html[lang=ar] .admin-dashboard .admin-home .home-card .request-count {
    padding-top: calc(0.25em + 2px);
    padding-bottom: calc(0.25em - 2px);
}

.admin-dashboard .admin-home .home-card .view-all-requests {
    display: inline-flex;
    align-items: center;
    color: var(--h-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.admin-dashboard .admin-home .home-card .k-grid,
.admin-dashboard .admin-home .home-card .k-grid-header,
.admin-dashboard .admin-home .home-card .k-grid-header-wrap,
.admin-dashboard .admin-home .home-card .k-grid-content,
.admin-dashboard .admin-home .home-card .k-grid table,
.admin-dashboard .admin-home .home-card .k-grid tr,
.admin-dashboard .admin-home .home-card .k-grid .k-alt,
.admin-dashboard .admin-home .home-card .k-detail-row,
.admin-dashboard .admin-home .home-card .k-detail-cell,
.admin-dashboard .admin-home .home-card .k-hierarchy-cell {
    border-color: var(--h-hair);
    background: transparent !important;
    box-shadow: none !important;
    color: var(--h-text);
}

.admin-dashboard .admin-home .home-card .k-grid {
    border: 0;
}

.admin-dashboard .admin-home .admin-customized-dashboard .home-card .k-grid th {
    padding: 8px 6px;
    border: 0;
    border-bottom: 1px solid var(--h-hair);
    background: transparent !important;
    color: var(--h-muted) !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Kendo's loader paints a white sheet over the whole grid, header included. */
.admin-home .home-card .k-grid .k-loading-color {
    background-color: transparent;
}

.admin-home .home-card .k-grid .k-loading-mask + .k-header,
.admin-home .home-card .k-grid .k-loading-mask + .k-header + table,
.admin-home .home-card .k-grid .k-loading-mask + .k-grid-header {
    filter: none;
    transition: none;
}

.admin-dashboard .admin-home .alert-dashboard .home-card .k-grid td,
.admin-dashboard .admin-home .home-card .k-grid td {
    border-color: var(--h-hair);
    color: var(--h-text);
}

.admin-dashboard .admin-home .home-card .k-grid tbody tr:hover>td {
    background: var(--h-chip);
}

.admin-dashboard .admin-home .home-card .k-grid a {
    color: var(--h-text);
}

.admin-dashboard .admin-home .home-card .dashboard-request-view,
.admin-dashboard .admin-home .home-card .k-grid .btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: var(--h-chip-strong);
    color: var(--h-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}

.admin-dashboard .admin-home .home-card .dashboard-request-view:hover,
.admin-dashboard .admin-home .home-card .k-grid .btn-light:hover {
    background: var(--h-ink, #0d1838);
    color: var(--h-on-ink, #fff);
}

.admin-dashboard .admin-home .home-card .requester-photo,
.admin-dashboard .admin-home .home-card .zoomable-thumb2 {
    border-radius: 50%;
}

/* Notification rows: type headers, card entries, round action and circle pager */

.home-notification-widget .k-grid.k-widget {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

.home-notification-widget .k-grid table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0 5px;
}

.home-card__body:has(.home-event-widget) {
    overflow-x: hidden;
}

.home-event-widget .k-grid,
.home-event-widget .k-grid-content {
    overflow-x: hidden !important;
}

.home-event-widget .k-grid.k-widget {
    border: 1px solid var(--h-hair, rgba(13, 24, 56, .12));
    border-radius: 14px;
    background: color-mix(in srgb, var(--h-glass-strong, #fff) 92%, var(--h-chip, rgba(13, 24, 56, .04)));
    box-shadow: 0 10px 24px -20px rgba(24, 40, 110, .55);
    overflow: hidden !important;
}

.home-card--xl .home-event-widget .k-grid th:nth-child(4),
.home-card--xl .home-event-widget .k-grid td:nth-child(4) {
    width: 16%;
}

.home-card--xl .home-event-widget .k-grid th:nth-child(5),
.home-card--xl .home-event-widget .k-grid td:nth-child(5),
.home-card--xl .home-event-widget .k-command-cell {
    width: 20% !important;
}

.home-card--xl .home-event-widget--anniversary .k-grid th:nth-child(5),
.home-card--xl .home-event-widget--anniversary .k-grid td:nth-child(5) {
    width: 16% !important;
}

.home-card--xl .home-event-widget--anniversary .k-grid th:nth-child(6),
.home-card--xl .home-event-widget--anniversary .k-grid td:nth-child(6),
.home-card--xl .home-event-widget--anniversary .k-command-cell {
    width: 18% !important;
}

.home-event-widget .k-grid-header,
.home-event-widget .k-grid-header-wrap,
.home-event-widget .k-grid thead,
.home-event-widget .k-grid thead tr,
.home-event-widget .k-grid thead th,
.home-event-widget .k-grid-header th,
.home-event-widget .k-grid thead .k-cell-inner,
.home-event-widget .k-grid-header .k-cell-inner {
    height: auto !important;
    overflow: visible !important;
}

.home-event-widget .k-grid thead th,
.home-event-widget .k-grid-header th {
    padding: 6px 8px 8px !important;
    line-height: 1.35 !important;
    white-space: nowrap;
    color: var(--h-muted, #8b95b2) !important;
}

.home-event-widget .k-grid table {
    width: 100% !important;
    min-width: 0 !important;
}

.home-event-widget .k-grid th:nth-child(1),
.home-event-widget .k-grid td:nth-child(1) {
    width: 8%;
}

.home-event-widget .k-grid th:nth-child(2),
.home-event-widget .k-grid td:nth-child(2) {
    width: 36%;
}

.home-event-widget .k-grid th:nth-child(3),
.home-event-widget .k-grid td:nth-child(3) {
    width: 20%;
}

.home-event-widget .k-grid th:nth-child(4),
.home-event-widget .k-grid td:nth-child(4) {
    width: 24%;
}

.home-event-widget .k-grid th:nth-child(5),
.home-event-widget .k-grid td:nth-child(5) {
    width: 12%;
}

.home-event-widget--anniversary .k-grid th:nth-child(1),
.home-event-widget--anniversary .k-grid td:nth-child(1) {
    width: 7%;
}

.home-event-widget--anniversary .k-grid th:nth-child(2),
.home-event-widget--anniversary .k-grid td:nth-child(2) {
    width: 24%;
}

.home-event-widget--anniversary .k-grid th:nth-child(3),
.home-event-widget--anniversary .k-grid td:nth-child(3) {
    width: 16%;
}

.home-event-widget--anniversary .k-grid th:nth-child(4),
.home-event-widget--anniversary .k-grid td:nth-child(4) {
    width: 18%;
}

.home-event-widget--anniversary .k-grid th:nth-child(5),
.home-event-widget--anniversary .k-grid td:nth-child(5) {
    width: 25%;
}

.home-event-widget--anniversary .k-grid th:nth-child(6),
.home-event-widget--anniversary .k-grid td:nth-child(6) {
    width: 10%;
}

.home-event-widget .k-grid tbody tr:not(.k-detail-row):not(:has(> .k-hierarchy-cell))>td {
    overflow: hidden !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-event-widget .home-event-name,
.home-event-widget .home-event-period {
    display: block;
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-event-widget .k-grid tbody td:has(.home-event-message) {
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: clip;
}

.home-event-widget .home-event-message {
    display: block;
    overflow: visible;
    max-width: 100%;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}

.home-notification-widget .k-grid>table>tbody>tr:has(> .k-hierarchy-cell)>td,
.home-notification-widget .k-grid tr:has(> .k-hierarchy-cell)>td {
    padding: 7px 10px;
    overflow: visible !important;
    border: 0;
    background: var(--h-chip, rgba(13, 24, 56, .045)) !important;
    color: var(--h-text, #0d1838);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .01em;
}

.home-notification-widget .k-grid tr:has(> .k-hierarchy-cell)>td:first-child {
    border-inline-start: 1px solid var(--h-hair, rgba(13, 24, 56, .08));
    border-start-start-radius: 12px;
    border-end-start-radius: 12px;
}

.home-notification-widget .k-grid tr:has(> .k-hierarchy-cell)>td:last-child {
    border-inline-end: 1px solid var(--h-hair, rgba(13, 24, 56, .08));
    border-start-end-radius: 12px;
    border-end-end-radius: 12px;
}

.home-notification-widget .k-grid tbody tr:has(> .k-hierarchy-cell):hover>td {
    background: var(--h-chip-strong, rgba(13, 24, 56, .09)) !important;
}

.home-notification-widget .k-grid tbody tr.k-detail-row>td.k-hierarchy-cell,
.home-notification-widget .k-grid tbody tr.k-detail-row:hover>td.k-hierarchy-cell,
.home-notification-widget .k-grid tbody tr.k-detail-row:has(> .k-hierarchy-cell)>td.k-hierarchy-cell,
.home-notification-widget .k-grid tbody tr.k-detail-row:has(> .k-hierarchy-cell):hover>td.k-hierarchy-cell {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.admin-dashboard .admin-home .home-card .home-notification-widget .k-grid tbody tr:not(.k-detail-row)>td.k-hierarchy-cell {
    background: var(--h-chip, rgba(13, 24, 56, .045)) !important;
    border-start-start-radius: 12px !important;
    border-end-start-radius: 12px !important;
}

.admin-dashboard .admin-home .home-card .home-notification-widget .k-grid tbody tr:not(.k-detail-row):hover>td.k-hierarchy-cell {
    background: var(--h-chip-strong, rgba(13, 24, 56, .09)) !important;
}

.home-notification-widget col.k-hierarchy-col {
    width: 48px !important;
}

.home-notification-widget .k-hierarchy-cell {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    padding: 7px 10px !important;
    overflow: visible !important;
    text-align: center;
    vertical-align: middle;
}

.home-notification-widget .k-hierarchy-cell>.k-icon {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    display: inline-block !important;
    width: 28px !important;
    height: 28px !important;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--h-text, #0d1838) 10%, transparent) !important;
    color: var(--h-text, #0d1838) !important;
    font-size: 16px !important;
    line-height: 28px !important;
    text-align: center;
    vertical-align: middle;
    text-decoration: none !important;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h-text, #0d1838) 18%, transparent) !important;
    transform: none !important;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.home-notification-widget .k-hierarchy-cell>.k-icon::before {
    content: "" !important;
    position: absolute !important;
    top: 50%;
    left: 50%;
    display: block !important;
    width: 7px;
    height: 7px;
    margin: 0;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    font-size: 0 !important;
    line-height: 0 !important;
    background: none !important;
    speak: none;
}

.home-notification-widget .k-hierarchy-cell>.k-icon.k-i-expand::before {
    transform: translate(-65%, -50%) rotate(-45deg);
}

[dir=rtl] .home-notification-widget .k-hierarchy-cell>.k-icon.k-i-expand::before {
    transform: translate(-35%, -50%) rotate(135deg);
}

.home-notification-widget .k-hierarchy-cell>.k-icon.k-i-collapse::before {
    transform: translate(-50%, -65%) rotate(45deg);
}

.home-notification-widget .k-hierarchy-cell>.k-icon:hover,
.home-notification-widget .k-hierarchy-cell>.k-icon:focus,
.home-notification-widget .k-hierarchy-cell>.k-icon:focus-visible {
    background: color-mix(in srgb, var(--h-text, #0d1838) 16%, transparent) !important;
    color: var(--h-text, #0d1838) !important;
}

.home-notification-widget .k-detail-row>.k-hierarchy-cell,
.home-notification-widget .k-detail-row>.k-detail-cell {
    background: transparent !important;
}

.home-notification-widget .k-detail-cell {
    padding: 2px 2px 6px 8px;
    border: 0;
}

.home-notification-widget .k-grid tbody tr.k-detail-row>.k-detail-cell,
.home-notification-widget .k-grid tbody tr.k-detail-row:hover>.k-detail-cell,
.home-notification-widget .k-grid tbody tr.k-detail-row:has(> .k-hierarchy-cell)>.k-detail-cell,
.home-notification-widget .k-grid tbody tr.k-detail-row:has(> .k-hierarchy-cell):hover>.k-detail-cell {
    overflow: hidden !important;
    border-radius: 12px !important;
    border-start-start-radius: 12px !important;
    border-start-end-radius: 12px !important;
    border-end-start-radius: 12px !important;
    border-end-end-radius: 12px !important;
}

.home-notification-widget .k-grid tbody tr.k-detail-row:hover>.k-detail-cell,
.home-notification-widget .k-grid tbody tr.k-detail-row:has(> .k-hierarchy-cell):hover>.k-detail-cell {
    background: var(--h-chip-strong, rgba(13, 24, 56, .09)) !important;
}

.home-notification-widget .k-detail-cell .k-grid {
    margin: 6px 8px 8px;
    padding: 8px;
    border: 1px solid var(--h-hair, rgba(13, 24, 56, .12));
    border-radius: 14px;
    background: color-mix(in srgb, var(--h-glass-strong, #fff) 92%, var(--h-chip, rgba(13, 24, 56, .04)));
    box-shadow: 0 10px 24px -20px rgba(24, 40, 110, .55);
    box-sizing: border-box;
}

.home-notification-widget .k-detail-cell .k-grid.k-widget {
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}

.home-notification-widget .k-detail-cell .k-grid-content,
.home-notification-widget .k-detail-cell .k-grid-header,
.home-notification-widget .k-detail-cell .k-grid>table {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.home-notification-widget .k-detail-cell .k-grid td:has(.zoomable-thumb-container2) {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    padding-inline: 7px 0 !important;
}

.home-notification-widget .k-detail-cell .k-grid table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
}

.home-notification-widget .k-detail-cell .k-grid td.home-notify-name {
    overflow: hidden !important;
    padding-inline: 8px 12px !important;
    white-space: nowrap !important;
}

.home-notification-widget .k-detail-cell .k-grid td.home-notify-meta {
    overflow: hidden !important;
    text-align: start !important;
    vertical-align: middle !important;
}

.home-notification-widget .k-detail-cell .k-grid td.home-notify-badge {
    width: auto !important;
    padding-inline: 8px !important;
    white-space: nowrap !important;
    text-align: end !important;
}

.home-notification-widget .k-grid tbody tr:not(.k-detail-row):not(:has(> .k-hierarchy-cell))>td {
    padding: 7px 10px;
    overflow: visible !important;
    border: 0;
    border-top: 1px solid var(--h-hair, rgba(13, 24, 56, .08));
    border-bottom: 1px solid var(--h-hair, rgba(13, 24, 56, .08));
    background: var(--h-glass-strong, rgba(255, 255, 255, .95));
    vertical-align: middle;
    box-shadow: 0 6px 14px -14px rgba(24, 40, 110, .45);
    transition: background .18s ease, box-shadow .18s ease;
}

.home-notification-widget .k-grid tbody tr:not(.k-detail-row):not(:has(> .k-hierarchy-cell)):hover>td,
.home-notification-widget .k-grid tbody tr:not(.k-detail-row):not(:has(> .k-hierarchy-cell)).k-hover>td,
.home-notification-widget .k-grid tbody tr:not(.k-detail-row):not(:has(> .k-hierarchy-cell)).k-state-hover>td {
    background: color-mix(in srgb, var(--h-text, #0d1838) 8%, var(--h-glass-strong, #fff)) !important;
    color: var(--h-text, #0d1838);
    box-shadow: 0 10px 20px -14px rgba(24, 40, 110, .35);
}

.home-notification-widget .k-detail-cell .k-grid tbody tr:not(.k-detail-row),
.home-notification-widget .k-detail-cell .k-grid tbody tr:not(.k-detail-row):hover,
.home-notification-widget .k-detail-cell .k-grid tbody tr:not(.k-detail-row).k-hover,
.home-notification-widget .k-detail-cell .k-grid tbody tr:not(.k-detail-row).k-state-hover {
    background: transparent !important;
}

.home-notification-widget .k-detail-cell .k-grid tbody tr:not(.k-detail-row)>td:first-child,
.home-notification-widget .k-detail-cell .k-grid tbody tr:not(.k-detail-row):hover>td:first-child {
    overflow: hidden !important;
    border-inline-start: 1px solid var(--h-hair, rgba(13, 24, 56, .08));
    border-start-start-radius: 12px !important;
    border-end-start-radius: 12px !important;
}

.home-notification-widget .k-detail-cell .k-grid tbody tr:not(.k-detail-row)>td:last-child,
.home-notification-widget .k-detail-cell .k-grid tbody tr:not(.k-detail-row):hover>td:last-child {
    overflow: hidden !important;
    border-inline-end: 1px solid var(--h-hair, rgba(13, 24, 56, .08));
    border-start-end-radius: 12px !important;
    border-end-end-radius: 12px !important;
}

.home-notification-widget .zoomable-thumb-container2,
.home-notification-widget .zoomable-thumb2 {
    display: block;
    width: 30px;
    height: 30px;
    margin: 0;
}

.home-notification-widget .k-detail-cell .k-command-cell {
    width: 90px !important;
    min-width: 90px !important;
    padding: 7px 8px !important;
    overflow: hidden !important;
    text-align: center !important;
    vertical-align: middle;
}

.home-notification-widget .k-detail-cell .k-command-cell .dashboard-request-view {
    margin-inline: auto;
}

.home-event-widget .k-command-cell {
    width: 12% !important;
    min-width: 0 !important;
    padding: 7px 8px !important;
}

.home-event-widget--anniversary .k-command-cell {
    width: 10% !important;
}

.home-notification-widget .dashboard-request-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: var(--h-chip-strong, rgba(13, 24, 56, .09)) !important;
    color: var(--h-text, #0d1838) !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background .18s ease, color .18s ease, visibility .15s ease;
}

.home-notification-widget .dashboard-request-view:hover,
.home-notification-widget .dashboard-request-view:focus {
    background: var(--h-ink, #0d1838) !important;
    color: #fff !important;
}

html[data-mx-theme="dark"] .home-notification-widget .dashboard-request-view,
html[data-mx-theme="dark"] .home-notification-widget .k-command-cell .btn-light,
html[data-mx-theme="dark"] .admin-home .home-card .dashboard-request-view,
html[data-mx-theme="dark"] .admin-home .home-card .k-grid .btn-light {
    --btn-base-bg: var(--mx-chip-strong);
    --btn-base-text: var(--mx-text);
    --btn-base-border: transparent;
    --btn-hover-bg: rgba(255, 255, 255, .22);
    --btn-hover-border: transparent;
    --btn-state-color: var(--mx-text);
    background-color: var(--mx-chip-strong) !important;
    color: var(--mx-text) !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

html[data-mx-theme="dark"] .home-notification-widget .dashboard-request-view:hover,
html[data-mx-theme="dark"] .home-notification-widget .dashboard-request-view:focus,
html[data-mx-theme="dark"] .home-notification-widget .k-command-cell .btn-light:hover,
html[data-mx-theme="dark"] .home-notification-widget .k-command-cell .btn-light:focus,
html[data-mx-theme="dark"] .admin-home .home-card .dashboard-request-view:hover,
html[data-mx-theme="dark"] .admin-home .home-card .k-grid .btn-light:hover {
    background: rgba(255, 255, 255, .22) !important;
    background-color: rgba(255, 255, 255, .22) !important;
    color: var(--mx-text) !important;
}

/* Same as admin grids: Open appears on row hover (desktop) */
@media (min-width: 992px) {
    .home-notification-widget .k-grid tbody tr:not(.k-grid-edit-row):not(.active-row)>.k-command-cell .dashboard-request-view {
        visibility: hidden;
    }

    .home-notification-widget .k-grid tbody tr:not(.k-grid-edit-row):not(.active-row):hover>.k-command-cell .dashboard-request-view,
    .home-notification-widget .k-grid tbody tr:not(.k-grid-edit-row):not(.active-row)>.k-command-cell .dashboard-request-view:focus,
    .home-notification-widget .k-grid tbody tr:not(.k-grid-edit-row):not(.active-row)>.k-command-cell .dashboard-request-view:focus-visible {
        visibility: visible;
    }
}

.home-notification-widget .zoomable-thumb2 {
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--h-glass-strong, #fff), 0 4px 10px -6px rgba(24, 40, 110, .45);
    object-fit: cover;
}

.home-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.home-entry__text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.home-entry__name {
    flex: 0 1 auto;
    width: auto;
    max-width: 36%;
    min-width: 0;
    overflow: hidden;
    color: var(--h-text, #0d1838);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-entry__meta {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
    color: var(--h-muted, #5b6889);
    font-size: 11.5px;
    line-height: 1.35;
    text-align: start;
    white-space: normal;
    overflow-wrap: break-word;
}

.home-notification-widget .home-entry__name {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-notification-widget .home-entry__meta {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-align: start;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}

.home-notification-widget .home-entry__line {
    display: inline;
}


.home-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    max-width: none;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--h-chip-strong, rgba(13, 24, 56, .09));
    color: var(--h-muted, #5b6889);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.3;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.home-badge::before {
    content: "";
    flex: 0 0 auto;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.home-badge--danger {
    background: rgba(229, 72, 77, .12);
    color: #d1343a;
}

.home-badge--warning {
    background: rgba(245, 158, 11, .16);
    color: #b45309;
}

.home-badge--info {
    background: rgba(14, 165, 233, .12);
    color: #0369a1;
}

[data-home-theme="dark"] .home-badge--danger {
    color: #fca5a5;
}

[data-home-theme="dark"] .home-badge--warning {
    color: #fbbf6a;
}

[data-home-theme="dark"] .home-badge--info {
    color: #7dd3fc;
}

.home-notification-widget .k-pager-wrap.k-grid-pager,
.home-notification-widget .k-pager-wrap {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 28px;
    min-height: 28px;
    max-height: 28px;
    margin-top: 6px;
    padding: 0 2px !important;
    border: 0;
    border-radius: 0;
    background: transparent;
    line-height: 1 !important;
}

.home-notification-widget .k-pager-wrap .k-link,
.home-notification-widget .k-pager-wrap .k-pager-nav,
.home-notification-widget .k-pager-wrap .k-pager-numbers .k-link,
.home-notification-widget .k-grid-pager .k-link,
.home-notification-widget .k-grid-pager .k-pager-nav {
    box-sizing: border-box;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 26px !important;
    min-width: 26px !important;
    height: 26px !important;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: var(--h-chip, rgba(13, 24, 56, .045)) !important;
    color: var(--h-text, #0d1838) !important;
    font-size: 12px !important;
    font-weight: 700;
    line-height: 1 !important;
    font-variant-numeric: tabular-nums;
    box-shadow: inset 0 0 0 1px var(--h-hair, rgba(13, 24, 56, .08));
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.home-notification-widget .k-pager-wrap .k-link:hover:not(.k-disabled):not(.k-selected),
.home-notification-widget .k-grid-pager .k-link:hover:not(.k-disabled):not(.k-selected) {
    background: var(--h-chip-strong, rgba(13, 24, 56, .09)) !important;
}

.home-notification-widget .k-pager-wrap .k-link.k-selected,
.home-notification-widget .k-grid-pager .k-link.k-selected {
    background: var(--h-ink, #0d1838) !important;
    color: var(--h-on-ink, #fff) !important;
    box-shadow: 0 4px 10px -8px rgba(13, 24, 56, .7) !important;
}

.home-notification-widget .k-pager-wrap .k-disabled {
    opacity: .32;
}

.home-notification-widget .k-pager-numbers-wrap select {
    display: none !important;
}

.home-notification-widget .k-pager-numbers-wrap {
    display: flex;
    align-items: center;
    height: 26px;
    margin: 0 2px;
}

.home-notification-widget .k-pager-numbers {
    display: flex !important;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    height: 26px;
    list-style: none;
}

.home-notification-widget .k-pager-numbers>li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    height: 26px;
    line-height: 1;
}

.home-notification-widget .k-pager-info,
.home-notification-widget .k-grid-pager .k-pager-info {
    display: block;
    margin-inline-start: auto;
    padding: 0 2px 0 0 !important;
    color: var(--h-muted, #5b6889);
    font-size: 11.5px !important;
    font-weight: 600;
    line-height: 1 !important;
}

.home-notification-widget .k-pager-wrap .k-icon,
.home-notification-widget .k-grid-pager .k-pager-nav .k-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 12px !important;
    line-height: 1 !important;
}

.admin-dashboard .admin-home[data-home-theme="dark"] .home-card .request-status {
    background: rgba(255, 255, 255, .08);
    color: var(--h-text);
}

.admin-dashboard .admin-home[data-home-theme="dark"] .home-card .request-status-pending {
    color: #fbbf6a;
}

.admin-dashboard .admin-home[data-home-theme="dark"] .home-card .request-status-accepted {
    color: #6ee7a0;
}

.admin-dashboard .admin-home[data-home-theme="dark"] .home-card .request-status-rejected {
    color: #fca5a5;
}

.home-card__body:has(.notice-period-panel) {
    overflow: hidden;
}

.admin-dashboard .admin-home .home-card .notice-period-panel {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.admin-dashboard .admin-home .home-card .notice-period-panel>.widget-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--h-hair-strong) transparent;
}

.admin-dashboard .admin-home .home-card .notice-period-employees {
    display: grid;
    align-content: start;
    gap: 8px;
    max-height: none;
    margin: 0;
    padding: 0 2px;
    overflow: visible;
    list-style: none;
}

.admin-dashboard .admin-home .home-card .notice-period-panel .home-more {
    position: static;
    display: flex;
    width: fit-content;
    margin: 12px auto 4px;
}

.admin-dashboard .admin-home .home-card .notice-period-panel .home-more[hidden] {
    display: none !important;
}

.home-event-widget .home-more {
    display: flex;
    width: fit-content;
    margin: 10px auto 2px;
}

.home-event-widget .home-more[hidden] {
    display: none !important;
}

.home-event-widget.is-loading {
    opacity: .72;
}

.admin-dashboard .admin-home[data-home-theme="dark"] .notice-period-panel .home-more,
.admin-dashboard .admin-home[data-home-theme="dark"] .home-event-widget .home-more {
    background: rgba(255, 255, 255, .08);
    box-shadow: none;
    color: var(--h-text);
}

.admin-dashboard .admin-home .home-card .notice-period-employees li {
    border: 0;
    border-radius: 16px;
    background: var(--h-chip);
    color: var(--h-text);
}

.admin-dashboard .admin-home .home-card .notice-period-employees li.table-danger {
    background: rgba(229, 72, 77, .14);
}

.admin-dashboard .admin-home .home-card .notice-employee-name {
    color: var(--h-text);
}

.admin-dashboard .admin-home .home-card .notice-working-date,
.admin-dashboard .admin-home .home-card .notice-period-empty {
    color: var(--h-muted);
}

.admin-dashboard .admin-home .home-card .select2-selection {
    height: 36px;
    padding-inline: 14px 0;
    border: 1px solid var(--h-hair-strong);
    border-radius: 999px;
    background: var(--h-chip);
    box-shadow: none;
}

.admin-dashboard .admin-home .home-card .select2.select2-container--focus .select2-selection--single,
.admin-dashboard .admin-home .home-card .select2.select2-container--open .select2-selection--single {
    border-color: var(--h-hair-strong);
    background: var(--h-glass-strong);
}

.admin-dashboard .admin-home .home-card .select2-selection__rendered,
.admin-dashboard .admin-home .home-card .select2-selection__placeholder {
    color: var(--h-muted);
    font-size: 13px;
    font-weight: 600;
}

.admin-dashboard .admin-home .home-card .select2 .select2-selection__arrow {
    min-width: 32px;
    background: transparent;
    border: 0;
}

.admin-dashboard .admin-home .home-card .select2 .select2-selection__arrow>b {
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border: 0;
    border-right: 1.5px solid var(--h-muted);
    border-bottom: 1.5px solid var(--h-muted);
    transform: rotate(45deg);
}

.select2-container.home-select-menu,
.select2-container.home-select-menu>.select2-dropdown {
    box-sizing: border-box;
}

.select2-container .home-select-menu.select2-dropdown,
.select2-container .home-select-menu.select2-dropdown--above,
.select2-container .home-select-menu.select2-dropdown--below {
    overflow: hidden;
    box-sizing: border-box;
    margin-top: 8px;
    padding: 6px;
    border: 1px solid var(--h-stroke);
    border-radius: 18px;
    background: var(--h-glass-strong);
    box-shadow: var(--h-shadow-lift);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    backdrop-filter: blur(28px) saturate(180%);
}

.select2-container .home-select-menu.select2-dropdown--above {
    margin-top: 0;
    margin-bottom: 8px;
}

.select2-container .home-select-menu .select2-search--dropdown {
    padding: 4px 4px 8px;
    background: transparent;
}

.select2-container .home-select-menu .select2-search__field {
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--h-hair-strong);
    border-radius: 12px;
    background: var(--h-chip);
    color: var(--h-text);
}

.select2-container .home-select-menu .select2-results__options {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 280px;
}

.select2-container .home-select-menu .select2-results__option {
    margin: 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--h-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
}

.select2-container .home-select-menu .select2-results__option .select2-option {
    color: inherit;
}

.select2-container .home-select-menu .select2-results__option--highlighted {
    background: var(--h-chip-strong);
    color: var(--h-text);
}

.select2-container .home-select-menu .select2-results__option[aria-selected="true"] {
    background: var(--h-ink);
    color: var(--h-on-ink);
}

.select2-container .home-select-menu .select2-results__option[aria-selected="true"] .select2-option:after {
    color: var(--h-on-ink);
}

.admin-dashboard .admin-home .home-card .highcharts-container,
.admin-dashboard .admin-home .home-card [id="EmployeesbyAgecontainer"],
.admin-dashboard .admin-home .home-card [id="countByServicePeriod"],
.admin-dashboard .admin-home .home-card .home-count-bars {
    margin: 0 !important;
}

.admin-dashboard .admin-home .home-card .widget:has(.home-rank-bars) {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.admin-dashboard .admin-home .home-card .widget-content:has(.home-rank-bars) {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.home-rank-bars {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    overflow: auto;
    padding-block: 2px 8px;
    padding-inline: 2px 16px;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(32, 130, 157, .45) transparent;
}

.home-rank-bars::-webkit-scrollbar {
    width: 6px;
}

.home-rank-bars::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(32, 130, 157, .4);
}

.home-rank-bars--clickable .home-rank-bars__row {
    cursor: pointer;
}

.home-rank-bars__row {
    display: flex;
    box-sizing: border-box;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.home-rank-bars__head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
}

.home-rank-bars__name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: var(--h-muted, #5b6889);
    font-size: 12px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-rank-bars__amount {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.home-rank-bars__track {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(32, 130, 157, .12);
}

.home-rank-bars__fill {
    display: block;
    height: 100%;
    min-width: 4px;
    border-radius: inherit;
}

/* Glance content */

.home-glance {
    display: flex;
    gap: 18px;
    height: 100%;
    min-width: 0;
}

.home-card--s .home-glance {
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.home-glance__link {
    position: absolute;
    z-index: 2;
    inset: 0;
    border-radius: var(--h-radius);
}

.home-glance__metric {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
}

.home-card--m .home-glance__metric {
    flex-basis: 30%;
    padding-bottom: 4px;
}

.home-card:not(.home-card--s) .home-glance:has(> .home-glance__empty) {
    align-items: center;
}

.home-card:not(.home-card--s) .home-glance:has(> .home-glance__empty) .home-glance__metric {
    justify-content: center;
}

.home-glance__value {
    display: block;
    color: var(--h-text);
    font-size: 54px;
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: .95;
    font-variant-numeric: tabular-nums;
}

.home-glance__label {
    display: block;
    margin-top: 8px;
    color: var(--h-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-glance__sub {
    overflow: hidden;
    color: var(--h-muted);
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-glance__sub strong {
    color: var(--h-text);
    font-weight: 600;
}

.home-card--s .home-glance--stat .home-glance__sub {
    display: inline-flex;
    align-items: baseline;
    align-self: flex-start;
    gap: 7px;
    max-width: 100%;
    margin-top: auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--h-chip-strong);
    color: var(--h-text);
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
}

.home-card--s .home-glance--stat .home-glance__sub strong {
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -.03em;
    line-height: 1;
}

.home-card--s .home-glance--stat .home-glance__sub span {
    overflow: hidden;
    color: var(--h-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-card--s .home-glance--stat-period {
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

/* Medium pair stats (New vs Leavers, Gender, Active): total + two equal sides */
.home-card--m .home-glance--stat-pair,
.home-card--m .home-glance--stat-period {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.home-card--m .home-glance--stat-pair > .home-glance__metric,
.home-card--m .home-glance--stat-period > .home-glance__metric {
    flex: 0 0 auto;
    flex-basis: 28%;
    max-width: 9.5rem;
    justify-content: center;
    padding-bottom: 0;
}

.home-card--m .home-glance--stat-pair > .home-split.home-split--glance,
.home-card--m .home-glance--stat-period > .home-split.home-split--glance {
    flex: 1 1 0;
    min-width: 0;
    align-self: center;
}

.home-glance__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: auto;
    min-width: 0;
}

.home-card--m .home-glance--stat-pair > .home-glance__foot,
.home-card--m .home-glance--stat-period > .home-glance__foot {
    flex: 1 0 100%;
    margin-top: 2px;
}

.home-glance__foot .home-glance__sub {
    margin-top: 0;
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 8.75rem);
}

.home-glance__period,
.home-period-wrap {
    display: block;
    flex: 0 0 auto;
    margin: 0;
    margin-inline-start: auto;
    min-width: 0;
    max-width: 100%;
}

.home-period-select {
    min-width: 9.5rem;
    max-width: 12rem;
    width: 9.5rem;
}

.home-period-wrap .select2-container {
    width: 9.5rem !important;
    min-width: 9.5rem;
    max-width: 12rem;
}

.home-card--s .home-glance__foot:not(:has(.home-glance__period)) {
    justify-content: flex-start;
}

.home-card--glance .home-card__body:has(.home-glance--stat) {
    overflow: hidden;
}

.home-glance__list {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: safe center;
    gap: 6px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-glance__row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 7px 10px;
    border-radius: 14px;
    background: var(--h-chip);
}

.home-glance__row-main {
    flex: 1;
    min-width: 0;
}

.home-glance__name,
.home-glance__meta {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-glance__name {
    color: var(--h-text);
    font-size: 13px;
    font-weight: 600;
}

.home-glance__meta {
    color: var(--h-muted);
    font-size: 11px;
}

.home-avatar {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--h-glass-strong);
    object-fit: cover;
}

.home-dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin-inline: 10px;
    border-radius: 50%;
    background: var(--h-muted);
    box-shadow: 0 0 0 4px var(--h-chip);
}

.home-dot--pending {
    background: var(--h-warn);
}

.home-dot--accepted {
    background: var(--h-ok);
}

.home-dot--rejected {
    background: var(--h-danger);
}

.home-faces {
    display: flex;
    align-items: center;
    min-height: 34px;
}

.home-faces .home-avatar {
    width: 34px;
    height: 34px;
}

.home-faces .home-avatar+.home-avatar {
    margin-inline-start: -10px;
}

.home-people {
    display: grid;
    flex: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.home-people-scroll {
    flex: 1 1 auto;
    min-width: 0;
}

.home-people--scroll {
    display: flex;
    grid-template-columns: none;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--h-hair-strong) transparent;
}

.home-people--scroll .home-person {
    flex: 0 0 calc((100% - 20px) / 3);
    scroll-snap-align: start;
}

.home-people--scroll .home-more {
    flex: 0 0 auto;
    align-self: center;
    margin: 0 4px;
}

.home-people--scroll .home-more[hidden] {
    display: none !important;
}

.admin-dashboard .admin-home[data-home-theme="dark"] .home-people--scroll .home-more {
    background: rgba(255, 255, 255, .08);
    box-shadow: none;
    color: var(--h-text);
}

.home-people--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 10px 8px;
    border-radius: 18px;
    background: var(--h-chip);
    text-align: center;
}

.home-person .home-avatar {
    width: 46px;
    height: 46px;
}

.home-person.is-soon .home-avatar {
    box-shadow: 0 0 0 2px var(--h-glass-strong), 0 0 0 4px var(--h-warn);
}

.home-person__name {
    display: -webkit-box;
    overflow: hidden;
    color: var(--h-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home-person__date {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--h-chip-strong);
    color: var(--h-muted);
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.home-person.is-soon .home-person__date {
    background: rgba(245, 158, 11, .16);
    color: #b45309;
}

[data-home-theme="dark"] .home-person.is-soon .home-person__date {
    color: #fbbf6a;
}

.home-chips {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: safe center;
    gap: 8px;
    min-width: 0;
}

.home-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 9px 12px;
    border-radius: 14px;
    background: var(--h-chip);
    color: var(--h-text);
    font-size: 13px;
    font-weight: 600;
}

.home-chip__name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-chip__count {
    flex: 0 0 auto;
    min-width: 28px;
    padding: 2px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--w-a), var(--w-b));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.home-glance__empty {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--h-muted);
    font-size: 13px;
    font-weight: 600;
}

.home-glance__empty i {
    color: var(--h-ok);
}

.home-shimmer {
    display: block;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--h-chip) 0%, var(--h-chip-strong) 50%, var(--h-chip) 100%);
    background-size: 200% 100%;
    animation: home-shimmer 1.2s linear infinite;
}

.home-shimmer--value {
    width: 64px;
    height: 46px;
}

.home-shimmer--row {
    height: 44px;
    border-radius: 14px;
}

.home-shimmer--faces {
    width: 92px;
    height: 34px;
    border-radius: 999px;
}

/* Schematic previews (gallery only) */

.home-schematic {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    height: 100%;
    padding: 0 8px;
}

.home-schematic__row {
    height: 16px;
    border-radius: 8px;
    background: var(--h-chip-strong);
}

.home-schematic__row:nth-child(2n) {
    width: 82%;
}

.home-schematic__row:nth-child(3n) {
    width: 64%;
}

.home-schematic--chart .home-schematic__row {
    background: linear-gradient(90deg, var(--w-a), var(--w-b));
    opacity: .75;
}

.home-schematic--chart .home-schematic__row:nth-child(1) {
    width: 40%;
}

.home-schematic--chart .home-schematic__row:nth-child(2) {
    width: 88%;
}

.home-schematic--chart .home-schematic__row:nth-child(3) {
    width: 70%;
}

.home-schematic--chart .home-schematic__row:nth-child(4) {
    width: 52%;
}

.home-schematic--chart .home-schematic__row:nth-child(5) {
    width: 30%;
}

/* Confirm dialog (confirm2 with cssClass: 'home-confirm') */

body:has(.modal.home-confirm.show)>.modal-backdrop.show {
    background: rgba(6, 10, 28, .42);
    opacity: 1;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.modal.home-confirm .modal-dialog {
    max-width: 380px;
    margin-inline: auto;
}

.modal.home-confirm .modal-content {
    overflow: hidden;
    border: 1px solid var(--h-stroke);
    border-radius: var(--h-radius);
    background: var(--h-sheet);
    box-shadow: var(--h-shadow-lift);
    color: var(--h-text);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    backdrop-filter: blur(40px) saturate(180%);
}

.modal.home-confirm .modal-body {
    padding: 28px 28px 8px !important;
}

.modal.home-confirm .modal-box-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, #5b76ff, #a35bff);
    box-shadow: 0 12px 24px -12px #5b76ff;
}

.modal.home-confirm .modal-box-icon>i {
    margin: 0 !important;
    color: #fff !important;
    font-size: 22px;
}

.modal.home-confirm .modal-box-message {
    color: var(--h-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
}

.modal.home-confirm .modal-footer {
    gap: 8px;
    padding: 16px 24px 24px !important;
    border-top: 0 !important;
}

.modal.home-confirm .modal-footer>.btn {
    min-width: 108px;
    height: 40px;
    margin: 0;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: none;
    transition: background .2s ease, opacity .2s ease, transform .2s var(--h-spring);
}

.modal.home-confirm .modal-footer>.btn:active {
    transform: scale(.96);
}

.modal.home-confirm .modal-footer>.btn:focus-visible {
    outline: 2px solid #6d83ff;
    outline-offset: 2px;
}

.modal.home-confirm .modal-footer>.btn-accept {
    background: var(--h-ink);
    color: var(--h-on-ink);
}

.modal.home-confirm .modal-footer>.btn-accept:hover {
    background: var(--h-ink);
    opacity: .9;
}

.modal.home-confirm .modal-footer>.btn-cancel {
    background: var(--h-chip-strong);
    color: var(--h-text);
}

.modal.home-confirm .modal-footer>.btn-cancel:hover {
    background: var(--h-hair-strong);
}

/* Gallery sheet */

.home-sheet {
    position: fixed;
    z-index: 1060;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    /* Sit where a full sheet would, so a shorter list collapses upward. */
    padding-top: max(16px, calc(100dvh - 16px - min(88dvh, 880px)));
    color: var(--h-text);
}

.home-sheet[hidden] {
    display: none;
}

.home-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 28, .42);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    animation: home-fade .3s ease both;
}

.home-sheet__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(1000px, calc(100% - 32px));
    max-height: min(88dvh, 880px);
    border: 1px solid var(--h-stroke);
    border-radius: 32px;
    background: var(--h-sheet);
    box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .55);
    overflow: hidden;
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    backdrop-filter: blur(40px) saturate(180%);
    animation: home-sheet-up .38s var(--h-ease) both;
}

.home-sheet.is-closing .home-sheet__panel {
    animation: home-sheet-down .22s ease both;
}

.home-sheet.is-closing .home-sheet__backdrop {
    animation: home-fade .22s ease reverse both;
}

.home-sheet__grabber {
    display: block;
    flex-shrink: 0;
    width: 42px;
    height: 5px;
    margin: 10px auto 4px;
    border-radius: 3px;
    background: var(--h-hair-strong);
}

.home-sheet__view {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.home-sheet__view[hidden] {
    display: none;
}

.home-sheet__view.is-entering {
    --h-flow: 1;
    animation: home-view-in .3s var(--h-ease) both;
}

[dir=rtl] .home-sheet__view.is-entering {
    --h-flow: -1;
}

.home-sheet__top {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
    padding: 8px 22px 14px;
}

.home-search {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 10px;
    height: 46px;
    margin: 0;
    padding: 0 16px;
    border-radius: 16px;
    background: var(--h-chip-strong);
    color: var(--h-muted);
}

.home-search input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: var(--h-text);
    font-size: 15px;
}

.home-search input[type="search"]::placeholder {
    color: var(--h-muted);
}

.home-icon-btn {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--h-chip-strong);
    color: var(--h-text);
    cursor: pointer;
    transition: transform .2s var(--h-spring);
}

.home-icon-btn:active {
    transform: scale(.92);
}

.home-sheet__scroll {
    min-height: 0;
    padding: 0 22px 28px;
    overflow: auto;
    scrollbar-width: thin;
}

.home-sheet__section {
    margin: 10px 4px 12px;
    color: var(--h-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.home-sheet__section[hidden] {
    display: none;
}

.home-suggest {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.home-suggest__tile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--h-text);
    text-align: center;
    cursor: pointer;
}

.home-suggest__tile[hidden] {
    display: none;
}

.home-suggest__tile:hover .home-stage {
    transform: translateY(-3px);
}

.home-suggest__name {
    font-size: 14px;
    font-weight: 700;
}

.home-suggest__meta {
    margin-top: -6px;
    color: var(--h-muted);
    font-size: 12px;
}

.home-stage {
    position: relative;
    display: grid;
    place-items: center;
    height: 200px;
    border-radius: 24px;
    background: var(--h-stage);
    overflow: hidden;
    transition: transform .3s var(--h-ease);
}

.home-stage--tall {
    height: 380px;
}

.home-preview {
    position: relative;
    flex: 0 0 auto;
    pointer-events: none;
    transform-origin: center;
}

.home-preview .home-card {
    position: absolute;
    inset: 0;
    animation: home-fade .3s ease both;
}

.home-catalog {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-catalog li[hidden] {
    display: none;
}

.home-catalog__item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: var(--h-text);
    text-align: start;
    cursor: pointer;
    transition: background .2s ease;
}

.home-catalog__item:hover {
    background: var(--h-chip-strong);
}

.home-catalog__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--w-a), var(--w-b));
    box-shadow: 0 10px 20px -10px var(--w-a);
    color: #fff;
    font-size: 17px;
}

.home-catalog__text {
    flex: 1;
    min-width: 0;
}

.home-catalog__title {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

.home-catalog__desc {
    display: block;
    overflow: hidden;
    color: var(--h-muted);
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-catalog__state {
    flex: 0 0 auto;
    color: var(--h-muted);
    font-size: 12px;
    font-weight: 600;
}

.home-catalog__state .is-added {
    color: var(--h-ok);
}

.home-detail__head {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.home-detail__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.home-detail__desc {
    margin: 2px 0 0;
    color: var(--h-muted);
    font-size: 13px;
}

.home-carousel {
    display: flex;
    gap: 18px;
    padding: 8px 22px 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 22px;
    scrollbar-width: none;
    cursor: grab;
    touch-action: pan-y;
}

.home-carousel.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

.home-carousel::-webkit-scrollbar {
    display: none;
}

.home-carousel__slide {
    display: flex;
    flex: 0 0 min(620px, 86%);
    flex-direction: column;
    gap: 10px;
    scroll-snap-align: center;
    text-align: center;
}

.home-carousel__label {
    color: var(--h-muted);
    font-size: 13px;
    font-weight: 700;
}

.home-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0 4px;
}

.home-carousel__dots button {
    width: 8px;
    height: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--h-hair-strong);
    cursor: pointer;
    transition: width .25s var(--h-ease), background .25s ease;
}

.home-carousel__dots button.is-active {
    width: 22px;
    background: var(--h-ink);
}

.home-detail__actions {
    display: flex;
    justify-content: center;
    padding: 12px 22px 26px;
}

.home-detail__actions .home-btn {
    height: 48px;
    min-width: 220px;
    font-size: 15px;
}

/* Responsive */

@media (max-width: 1200px) {
    .home-grid {
        --span-s: 6;
        --span-m: 12;
        --span-l: 12;
        --span-xl: 12;
    }
}

@media (max-width: 768px) {
    .admin-home {
        padding: 14px 16px 48px;
        border-radius: 0;
    }

    .home-top {
        flex-direction: column;
        align-items: stretch;
    }

    .home-pill {
        align-self: flex-end;
    }

    .home-greeting__title {
        font-size: 24px;
    }

    .home-grid {
        --span-s: 12;
        --h-row: 220px;
        grid-auto-rows: 220px;
    }

    .home-card--full .home-card__head {
        padding-inline-end: 18px;
    }

    .admin-dashboard .admin-home .home-card.home-card--full:has(.home-event-widget) .widget>.widget-header {
        inset-inline-end: 16px;
    }

    .admin-dashboard .admin-home .home-card .widget>.widget-header {
        display: none;
    }

    .home-sheet {
        align-items: stretch;
        padding-top: 0;
    }

    .home-sheet__panel {
        width: 100%;
        max-height: 100vh;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .home-people--5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Classic dashboard elite widgets */

.home-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    min-height: 100%;
    padding: 4px 2px;
}

.home-stat__value {
    color: var(--h-text, #0d1838);
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.home-stat__label {
    color: var(--h-muted, #5b6889);
    font-size: 12.5px;
    font-weight: 600;
}

.home-stat__period {
    margin-top: 4px;
}

.home-chip-select {
    appearance: none;
    min-width: 9.5rem;
    max-width: 100%;
    padding: 6px 28px 6px 12px;
    border: 0;
    border-radius: 999px;
    background:
        linear-gradient(45deg, transparent 50%, var(--h-muted, #5b6889) 50%) calc(100% - 14px) calc(50% - 2px) / 5px 5px no-repeat,
        linear-gradient(135deg, var(--h-muted, #5b6889) 50%, transparent 50%) calc(100% - 10px) calc(50% - 2px) / 5px 5px no-repeat,
        var(--h-chip, rgba(13, 24, 56, .06));
    color: var(--h-text, #0d1838);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
}

.home-chip-select--year {
    min-width: 5.5rem;
    width: 5.5rem;
    text-align: center;
    padding-inline: 10px;
    background: var(--h-chip, rgba(13, 24, 56, .06));
}

[data-home-theme="dark"] .home-chip-select {
    background:
        linear-gradient(45deg, transparent 50%, #9aa6c5 50%) calc(100% - 14px) calc(50% - 2px) / 5px 5px no-repeat,
        linear-gradient(135deg, #9aa6c5 50%, transparent 50%) calc(100% - 10px) calc(50% - 2px) / 5px 5px no-repeat,
        rgba(255, 255, 255, .08);
    color: #f3f6ff;
}

[dir="rtl"] .home-chip-select {
    padding: 6px 12px 6px 28px;
    background:
        linear-gradient(45deg, transparent 50%, var(--h-muted, #5b6889) 50%) 14px calc(50% - 2px) / 5px 5px no-repeat,
        linear-gradient(135deg, var(--h-muted, #5b6889) 50%, transparent 50%) 10px calc(50% - 2px) / 5px 5px no-repeat,
        var(--h-chip, rgba(13, 24, 56, .06));
}


.home-split {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
    justify-content: center;
}

.home-split__sides {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.home-split__side {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 16px;
    background: var(--h-chip, rgba(13, 24, 56, .04));
}

.home-split__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--w-a, #5b6cff), var(--w-b, #8b5cf6));
    color: #fff;
    font-size: 14px;
}

.home-split__icon--new,
.home-split__icon--active {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.home-split__icon--leavers,
.home-split__icon--inactive {
    background: linear-gradient(135deg, #dc2626, #f97316);
}

.home-split__icon--male {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
}

.home-split__icon--female {
    background: linear-gradient(135deg, #db2777, #f472b6);
}

.home-split__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.home-split__value {
    color: var(--h-text, #0d1838);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.home-split__label {
    color: var(--h-muted, #5b6889);
    font-size: 11px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-split.home-split--glance {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
    height: auto;
    justify-content: stretch;
}

.home-split--glance .home-split__side {
    padding: 8px 10px;
}

.home-split--glance .home-split__value {
    font-size: 1.1rem;
}

.home-chart {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 100%;
}

.home-chart__toolbar {
    display: flex;
    justify-content: flex-end;
}

.home-chart__canvas {
    min-height: 260px;
    flex: 1 1 auto;
    height: 100%;
}

.home-pair__chart .home-chart__canvas,
.home-pair .home-chart__canvas {
    min-height: 0;
    height: 100%;
    max-height: 100%;
}

.home-chart__footer {
    display: flex;
    justify-content: flex-end;
}

.home-link {
    color: var(--w-a, #2f7bff);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.home-link:hover {
    text-decoration: underline;
}

.home-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 100%;
    max-height: 100%;
}

.home-list__meta {
    color: var(--h-muted, #5b6889);
    font-size: 11.5px;
    font-weight: 700;
    flex: 0 0 auto;
}

.home-list__rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: auto;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 280px;
}

.home-list .home-entry {
    padding: 6px 4px;
    border-radius: 12px;
}

.home-list .home-entry:hover {
    background: var(--h-chip, rgba(13, 24, 56, .04));
}

.home-list a.home-entry__text {
    text-decoration: none;
    color: inherit;
}

.home-roster {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    min-height: 0;
    height: 100%;
    max-height: none;
    padding: 12px;
    border: 1px solid var(--h-hair, rgba(13, 24, 56, .08));
    border-radius: 18px;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .38)),
        var(--h-chip, rgba(13, 24, 56, .03));
    box-shadow: 0 1px 0 rgba(255, 255, 255, .65) inset;
}

.home-roster__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: 0 0 auto;
}

.home-roster__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--h-text, #0d1838);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.home-roster__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--w-a, #5b6cff), var(--w-b, #8b5cf6));
    color: #fff;
    font-size: 10px;
    box-shadow: 0 8px 16px -10px rgba(47, 123, 255, .8);
}

.home-roster__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    padding: 3px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--w-a, #2f7bff) 14%, transparent);
    color: var(--w-a, #2f7bff);
    font-size: 11px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.home-roster__sub {
    color: var(--h-muted, #5b6889);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.home-roster__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--h-hair-strong) transparent;
}

.home-roster__rows {
    gap: 4px;
    flex: none;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding-inline-end: 2px;
}

.home-pair .home-list__rows.home-roster__rows {
    flex: none;
    max-height: none;
    overflow: visible;
}

.home-pair .home-more {
    position: static;
    display: flex;
    width: fit-content;
    margin: 12px auto 4px;
}

.home-pair .home-more[hidden] {
    display: none !important;
}

.home-roster__rows[hidden],
.home-roster__rows:empty {
    display: none !important;
    flex: 0 0 0;
    min-height: 0;
}

.home-roster__sub[hidden] {
    display: none !important;
}

.home-roster__empty,
.home-pair__hint.home-roster__empty {
    position: absolute;
    inset: 48px 10px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 12px;
    border-radius: 14px;
    background: transparent;
    color: var(--h-muted, #5b6889);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    pointer-events: none;
}

.home-roster__empty[hidden],
.home-pair__hint.home-roster__empty[hidden] {
    display: none !important;
}

.home-entry--roster {
    gap: 10px;
    padding: 8px 8px;
    border-radius: 14px;
    transition: background .15s var(--h-ease), transform .15s var(--h-ease);
}

.home-entry--roster:hover {
    background: rgba(255, 255, 255, .72);
    transform: translateY(-1px);
}

.home-entry--roster .home-avatar {
    width: 34px;
    height: 34px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 6px 14px -8px rgba(24, 40, 110, .45);
}

.home-entry--roster .home-entry__text {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.home-entry--roster .home-entry__name {
    flex: none;
    max-width: 100%;
    width: 100%;
    font-size: 12.5px;
}

.home-entry--roster .home-entry__meta {
    flex: none;
    width: 100%;
    font-size: 11px;
}

.home-entry--roster .home-badge {
    align-self: center;
}

[data-home-theme="dark"] .home-roster,
[data-home-theme="dark"] .home-pair__chart {
    border-color: rgba(255, 255, 255, .08);
    background:
        linear-gradient(165deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)),
        rgba(255, 255, 255, .03);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset;
}

[data-home-theme="dark"] .home-entry--roster:hover {
    background: rgba(255, 255, 255, .06);
}

.home-pair,
.home-pair--leaves {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(280px, 1fr);
    gap: 14px;
    min-height: 280px;
    height: 100%;
    align-items: stretch;
}

.home-pair__chart,
.home-pair__list {
    min-width: 0;
    min-height: 280px;
    height: 100%;
    align-self: stretch;
}

.home-pair__chart {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 12px;
    overflow: hidden;
    border: 1px solid var(--h-hair, rgba(13, 24, 56, .08));
    border-radius: 18px;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .38)),
        var(--h-chip, rgba(13, 24, 56, .03));
    box-shadow: 0 1px 0 rgba(255, 255, 255, .65) inset;
}

.home-pair__list.home-roster {
    min-height: 280px;
    height: 100%;
    max-height: 100%;
    align-self: stretch;
    overflow: hidden;
}

.home-pair__empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 16px;
    pointer-events: none;
}

.home-pair__empty[hidden] {
    display: none !important;
}

.home-more {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-top: 4px;
    padding: 7px 14px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .55));
    box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 8px 16px -12px rgba(24, 40, 110, .35);
    color: var(--w-a, #2f7bff);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.home-more:hover {
    background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .7));
}

.home-pair.is-loading {
    opacity: .72;
    pointer-events: none;
}

.home-chart-bar--clickable {
    cursor: pointer;
}

.home-chart-bar--static {
    cursor: default;
}

@media (max-width: 900px) {

    .home-pair,
    .home-pair--leaves {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
        min-height: 100%;
        height: 100%;
        gap: 10px;
    }

    .home-pair__chart,
    .home-pair__list,
    .home-pair__list.home-roster {
        min-height: 0;
        height: 100%;
    }

    .home-pair__chart .home-chart__canvas,
    .home-pair .home-chart__canvas {
        min-height: 0;
    }

    .home-card__filter {
        max-width: calc(100% - 120px);
    }

    .home-filter--date {
        width: 156px;
    }

    .home-pair__list.home-roster {
        width: 100%;
    }
}

.home-leave-cal {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
}

.home-leave-cal.is-loading {
    opacity: .72;
    pointer-events: none;
}

.home-leave-cal__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-inline-end: 28px;
}

.home-leave-cal__nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.home-leave-cal__month {
    min-width: 9.5rem;
    color: var(--h-text, #0d1838);
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: -.02em;
    text-align: center;
}

.home-leave-cal__end {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 12px;
    min-width: 0;
}

.home-leave-cal__more {
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
}

.home-leave-cal__legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
}

.home-leave-cal__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 10px 0 8px;
    border-radius: 999px;
    background: var(--h-chip, rgba(13, 24, 56, .045));
    color: var(--h-muted, #5b6889);
    font-size: 11px;
    font-weight: 700;
}

.home-leave-cal__chip::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}

.home-leave-cal__chip--paid {
    color: #2f7bff;
}

.home-leave-cal__chip--unpaid {
    color: #d97706;
}

.home-leave-cal__chip--sick {
    color: #e5484d;
}

.home-leave-cal__chip--other {
    color: #0fb5a6;
}

.home-leave-cal__chip--compensation {
    color: #8b5cf6;
}

.home-leave-cal__board {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    flex: 1 1 auto;
}

.home-leave-cal__days {
    display: grid;
    grid-template-columns: minmax(132px, 200px) 1fr;
    gap: 10px;
    align-items: end;
    position: sticky;
    top: 0;
    z-index: 1;
    padding-bottom: 2px;
}

.home-leave-cal__days-gutter {
    min-height: 1px;
}

.home-leave-cal__days-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 0;
    padding: 6px 0 4px;
    border: 1px solid var(--h-hair, rgba(13, 24, 56, .08));
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .42)),
        var(--h-chip, rgba(13, 24, 56, .03));
    box-shadow: 0 1px 0 rgba(255, 255, 255, .65) inset;
}

.home-leave-cal__day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 0;
    padding: 2px 0;
    color: var(--h-text, #0d1838);
    font-variant-numeric: tabular-nums;
}

.home-leave-cal__day.is-weekend {
    color: var(--h-muted, #5b6889);
    opacity: .72;
}

.home-leave-cal__day-num {
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
}

.home-leave-cal__day-dow {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    opacity: .72;
}

.home-leave-cal__strips {
    display: flex;
    flex-direction: column;
    gap: 7px;
    overflow: auto;
    max-height: 100%;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.home-leave-strip {
    display: grid;
    grid-template-columns: minmax(132px, 200px) 1fr;
    gap: 10px;
    align-items: center;
}

.home-leave-strip__person {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.home-leave-strip__name {
    overflow: hidden;
    color: var(--h-text, #0d1838);
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-leave-strip__track {
    position: relative;
    height: 30px;
    border-radius: 12px;
    background: var(--h-chip, rgba(13, 24, 56, .045));
    border: 1px solid var(--h-hair, rgba(13, 24, 56, .06));
    overflow: hidden;
    box-sizing: border-box;
}

.home-leave-strip__grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    pointer-events: none;
}

.home-leave-strip__cell {
    border-inline-end: 1px solid rgba(13, 24, 56, .05);
    box-sizing: border-box;
}

.home-leave-strip__cell:last-child {
    border-inline-end: 0;
}

.home-leave-strip__cell.is-weekend {
    background: rgba(13, 24, 56, .035);
}

.home-leave-strip__bar {
    position: absolute;
    top: 6px;
    bottom: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2f7bff, #22b8ff);
    box-shadow: 0 6px 14px -8px rgba(47, 123, 255, .85);
    box-sizing: border-box;
}

.home-leave-strip__bar--paid {
    background: linear-gradient(90deg, #2f7bff, #22b8ff);
    box-shadow: 0 6px 14px -8px rgba(47, 123, 255, .85);
}

.home-leave-strip__bar--unpaid {
    background: linear-gradient(90deg, #d97706, #f59e0b);
    box-shadow: 0 6px 14px -8px rgba(217, 119, 6, .8);
}

.home-leave-strip__bar--sick {
    background: linear-gradient(90deg, #e5484d, #f472b6);
    box-shadow: 0 6px 14px -8px rgba(229, 72, 77, .8);
}

.home-leave-strip__bar--other {
    background: linear-gradient(90deg, #0fb5a6, #22d3ee);
    box-shadow: 0 6px 14px -8px rgba(15, 181, 166, .8);
}

.home-leave-strip__bar--compensation {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    box-shadow: 0 6px 14px -8px rgba(139, 92, 246, .8);
}

.home-tip {
    position: fixed;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: min(280px, calc(100vw - 16px));
    padding: 7px 12px;
    border: 1px solid var(--mx-stroke, rgba(255, 255, 255, .85));
    border-radius: 14px;
    background: var(--mx-glass-strong, rgba(255, 255, 255, .94));
    box-shadow: 0 1px 0 rgba(255, 255, 255, .75) inset, 0 16px 34px -18px rgba(24, 40, 110, .48), 0 2px 8px rgba(24, 40, 110, .08);
    color: var(--mx-text, #0d1838);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    pointer-events: none;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.home-tip[hidden] {
    display: none !important;
}

.home-tip__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-tip__dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.home-tip__dot--paid {
    background: #2f7bff;
    box-shadow: 0 0 0 3px rgba(47, 123, 255, .18);
}

.home-tip__dot--unpaid {
    background: #d97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, .18);
}

.home-tip__dot--sick {
    background: #e5484d;
    box-shadow: 0 0 0 3px rgba(229, 72, 77, .18);
}

.home-tip__dot--other {
    background: #0fb5a6;
    box-shadow: 0 0 0 3px rgba(15, 181, 166, .18);
}

.home-tip__dot--compensation {
    background: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .18);
}

html[data-mx-theme="dark"] .home-tip {
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 18px 40px -18px rgba(0, 0, 0, .72);
}

[data-home-theme="dark"] .home-leave-cal__days-track {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)),
        rgba(255, 255, 255, .03);
    border-color: rgba(255, 255, 255, .08);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset;
}

[data-home-theme="dark"] .home-leave-strip__track {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .06);
}

[data-home-theme="dark"] .home-leave-strip__cell {
    border-inline-end-color: rgba(255, 255, 255, .05);
}

[data-home-theme="dark"] .home-leave-strip__cell.is-weekend {
    background: rgba(255, 255, 255, .03);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Motion */

@keyframes home-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes home-morph {
    from {
        opacity: .4;
        transform: scale(.96);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes home-out {
    to {
        opacity: 0;
        transform: scale(.85);
    }
}

@keyframes home-wobble {
    from {
        transform: rotate(-.6deg);
    }

    to {
        transform: rotate(.6deg);
    }
}

@keyframes home-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes home-sheet-up {
    from {
        opacity: 0;
        transform: translateY(48px) scale(.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes home-sheet-down {
    to {
        opacity: 0;
        transform: translateY(40px);
    }
}

@keyframes home-view-in {
    from {
        opacity: 0;
        transform: translateX(calc(16px * var(--h-flow, 1)));
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes home-shimmer {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

@keyframes home-drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(60px, -40px, 0) scale(1.15);
    }
}

.home-card[data-widget-key="yearly-attendance"] .home-card__title {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
}

.home-card[data-widget-key="yearly-attendance"].home-card--l .home-card__head,
.home-card[data-widget-key="yearly-attendance"].home-card--xl .home-card__head {
    padding-inline-end: calc(100% - 20rem);
}

.home-card--preview .home-card__filter--yearly {
    display: none;
}

.home-card--preview[data-widget-key="yearly-attendance"].home-card--l .home-card__head,
.home-card--preview[data-widget-key="yearly-attendance"].home-card--xl .home-card__head {
    padding-inline-end: 0;
}

.home-card__filter--yearly {
    inset-inline-start: 20rem;
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    width: auto;
    max-width: none;
}

.home-filter--month {
    position: relative;
    justify-content: center;
    width: 168px;
    flex: 1 1 148px;
    min-width: 148px;
    padding-inline: 12px;
}

.home-filter--month input.home-filter__control {
    flex: 0 1 auto;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    field-sizing: content;
    text-align: center;
    color: var(--h-text, #0d1838) !important;
    -webkit-text-fill-color: var(--h-text, #0d1838);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-card__filter--yearly .home-filter--month {
    flex: 0 0 auto;
    width: 148px;
    min-width: 148px;
}

.home-card__filter--yearly .select2-container {
    flex: 1 1 180px;
    width: auto !important;
    min-width: 150px;
    max-width: 380px;
}

.home-yearly__reset {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--h-hair-strong, rgba(13, 24, 56, .16));
    border-radius: 999px;
    background: var(--h-chip, rgba(13, 24, 56, .045));
    color: var(--h-muted, #5b6889);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.home-yearly__reset:hover,
.home-yearly__reset:focus {
    background: var(--h-glass-strong, rgba(255, 255, 255, .9));
    color: var(--h-text, #0d1838);
    outline: none;
}

.home-card__body>.home-yearly {
    flex: 1 1 auto;
    min-height: 0;
}

.home-yearly {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

.home-yearly__empty {
    margin: auto;
    max-width: 28rem;
    color: var(--h-muted, #5b6889);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
}

.home-yearly__ready {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    gap: 12px;
}

.home-yearly__ready[hidden] {
    display: none !important;
}

.home-yearly--summary .home-yearly__ready {
    align-items: center;
}

.home-yearly__plot {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    height: 100%;
}

.home-yearly__plot--donut {
    flex: 0 1 46%;
    min-height: 140px;
}

.home-yearly--full {
    container-type: inline-size;
}

.home-yearly__full {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
    height: 100%;
    min-height: 0;
    overflow: auto;
}

.home-yearly__full>[data-yearly-bars] {
    height: 100%;
    min-height: 0;
}

.home-yearly__side {
    display: none;
}

@container (min-width: 880px) {
    .home-yearly__full {
        grid-template-columns: minmax(0, 1.5fr) minmax(280px, .78fr);
        grid-template-rows: minmax(0, 1fr);
    }

    .home-yearly__full>[data-yearly-bars] {
        grid-column: 1;
        grid-row: 1;
        height: 100%;
        min-height: 0;
    }

    .home-yearly__full {
        overflow: hidden;
    }

    .home-yearly__side {
        display: flex;
        flex-direction: column;
        gap: 8px;
        grid-column: 2;
        grid-row: 1;
        height: 100%;
        min-width: 0;
        min-height: 0;
    }
}

.home-yearly__side .home-yearly__plot--donut {
    flex: 0 0 210px;
    width: 100%;
    height: 210px;
    min-height: 0;
    max-height: 210px;
}

.home-yearly__stats--side {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 8px;
    min-height: 0;
}

.home-yearly__stats--side .home-yearly__stat {
    aspect-ratio: auto;
    height: 100%;
    gap: 3px;
    padding: 8px 6px;
    border-radius: 12px;
}

.home-yearly__stats--side .home-yearly__stat span {
    font-size: 10px;
    line-height: 1.15;
}

.home-yearly__stats--side .home-yearly__stat b {
    font-size: 14px;
}

.home-yearly__stat {
    display: flex;
    aspect-ratio: 1;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    border: 1px solid var(--h-hair, rgba(13, 24, 56, .08));
    border-radius: 16px;
    background: var(--h-chip, rgba(13, 24, 56, .045));
    text-align: center;
}

.home-yearly__stat span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--h-muted, #5b6889);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home-yearly__stat b {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--h-text, #0d1838);
    font-size: 16px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-yearly__counts {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-yearly__counts li {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    color: var(--h-text, #0d1838);
    font-size: 13px;
    font-weight: 600;
}

.home-yearly__counts i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.home-yearly__counts span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-yearly__counts b {
    font-variant-numeric: tabular-nums;
}

.home-yearly.is-loading .home-yearly__ready {
    opacity: .55;
}

@media (prefers-reduced-motion: reduce) {

    .admin-home *,
    .admin-home *::before,
    .admin-home *::after,
    .admin-home::before,
    .admin-home::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ESS request ViewPopup on admin: full-height flex shell + ESS width (no ESS reveal / hug animation). */
body:not(.ess-page) .modal.ess-request-popup-modal,
body:not(.ess-page) .modal.ess-request-popup-modal .modal-dialog,
body:not(.ess-page):has(.modal.ess-request-popup-modal.show) .modal-backdrop {
    transition: none !important;
}