.app-sidebar {
    padding: 14px;
    background: #0b1220;
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.app-brand {
    padding: 10px 10px 12px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.app-brand__logo-img {
    width: 120px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: brightness(1.2);
    opacity: 0.95;
}

.app-brand__meta {
    margin: 18px 0 0;
    padding-left: 6px;
    text-align: left;
    font-size: 16px;
    font-weight: 800;
    color: rgba(255, 255, 255, .65);
    opacity: 0.8;
}

.app-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.app-nav__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 900;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.9);
}

.app-nav__item:hover {
    background: rgba(255, 255, 255, .08);
    transform: translateY(-1px);
}

.app-nav__item.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 8px;
}

.app-nav__dot {
    width: 18px;
    height: 18px;
    border-radius: 0;
    background: rgba(255, 255, 255, .75);
    -webkit-mask: var(--icon) center/18px 18px no-repeat;
    mask: var(--icon) center/18px 18px no-repeat;
}

.app-nav__icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    opacity: 0.85;
}

.app-nav__icon svg {
    width: 100%;
    height: 100%;
}

.app-nav__item.is-active .app-nav__icon {
    opacity: 1;
}

.app-nav__sep {
    height: 1px;
    margin: 8px 6px;
    background: rgba(255, 255, 255, .10);
}

.app-nav__cta {
    appearance: none;
    border: 0;
    border-radius: 12px;
    padding: 11px 12px;
    font-weight: 900;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(180deg, #1f5fe88f, #1743c6ad);
    box-shadow: 0 10px 24px rgba(37, 99, 235, .18);
}

.app-nav__cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.app-nav__cta:focus {
    outline: none;
}

.app-nav__cta:focus-visible {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .18), 0 10px 24px rgba(37, 99, 235, .18);
}

.app-sidebar__footer {
    margin-top: auto;
    padding-top: 14px;
}

.app-user {
    font-size: 13px;
    opacity: 0.7;
    color: #fff;
    padding: 10px 0;
}

.app-search {
    margin-top: 10px;
    padding: 12px 6px 0;
}

.app-search__label {
    display: block;
    font-size: 14px;
    font-weight: 900;
    color: rgba(255, 255, 255, .85);
    margin: 0 0 8px;
}

.app-search__row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.app-search__input {
    width: 100%;
    height: 42px;
    border-radius: 12px;
    padding: 0 12px;
    outline: none;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, 0.964);
    color: #0f172a;
    font-weight: 800;
}

.app-search__input::placeholder {
    color: rgba(6, 6, 6, 0.687);
}

.app-search__input:focus {
    border-color: rgba(59, 130, 246, .55);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .18);
}

.app-search__btn {
    height: 42px;
    border-radius: 12px;
    padding: 0 12px;
    font-weight: 900;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .10);
    color: #fff;
}

.app-search__btn:hover {
    transform: translateY(-1px);
}

.app-search__results {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-search__item {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .08);
    background: rgba(255, 255, 255, .92);
    cursor: pointer;
}

.app-search__name {
    font-weight: 900;
    color: #0f172a;
    font-size: 13px;
}

.app-search__meta {
    font-size: 12px;
    font-weight: 800;
    color: rgba(15, 23, 42, .65);
}

.sidebar-push-btn {
    width: 100%;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #111;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.sidebar-push-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.app-nav__item[href*="p=planning"] .app-nav__dot {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 2v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7zm12 8H5v10h14V10z'/%3E%3C/svg%3E");
}

.app-sidebar__footer .app-nav__item .app-nav__dot {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M10 17v-2h4v2h-4Zm-7-5 5-5v3h8v4H8v3l-5-5Zm16 10H7a2 2 0 0 1-2-2v-3h2v3h12V4H7v3H5V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2Z'/%3E%3C/svg%3E");
}

@media (max-width: 900px) {
    .app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        z-index: 3000;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        overflow-y: auto;
        height: auto !important;
        min-height: 0 !important;
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .app-brand {
        display: none !important;
        min-height: 0 !important;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 2990;
        background: rgba(0, 0, 0, 0.35);
    }

    body.sidebar-open .sidebar-backdrop {
        display: block !important;
    }
}

.sidebar-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    margin: 0 0 10px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .06));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    transition:
        transform .15s ease,
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        opacity .2s ease;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

.sidebar-action:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, .18);
    background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .08));
    box-shadow: 0 10px 26px rgba(0, 0, 0, .24);
}

.sidebar-action:active {
    transform: translateY(0);
}

.sidebar-action:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.sidebar-action--vacation {
    background: linear-gradient(180deg, rgba(255, 196, 87, .22), rgba(255, 160, 60, .14));
    border-color: rgba(255, 196, 87, .28);
    color: #fff7e8;
}

.sidebar-action--vacation:hover {
    background: linear-gradient(180deg, rgba(255, 196, 87, .28), rgba(255, 160, 60, .18));
    border-color: rgba(255, 196, 87, .40);
}

.sidebar-action--closure {
    background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(160, 174, 192, .10));
    border-color: rgba(255, 255, 255, .12);
}

.sidebar-action--closure:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(160, 174, 192, .14));
}

.sidebar-action+.sidebar-action {
    margin-top: 2px;
}