/**
 * Admin shell: page heading, toasts, changelog dialog, mobile drawer.
 * Loaded after compact.css so these rules win on equal specificity.
 */

.page-container .shell-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    min-height: 48px;
}

.page-container .shell-heading {
    min-width: 0;
    flex: 1 1 auto;
}

.page-container.sbar_collapsed .shell-heading {
    padding-left: 44px;
}

.page-container .shell-page-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-container .shell-breadcrumbs {
    margin-top: 2px;
}

.page-container .shell-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.3;
    color: #64748b;
}

.page-container .shell-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.page-container .shell-breadcrumb-item:not(:last-child)::after {
    content: "/";
    margin: 0 6px;
    color: #94a3b8;
}

.page-container .shell-breadcrumb-item a {
    color: #475569;
    text-decoration: none;
}

.page-container .shell-breadcrumb-item a:hover {
    text-decoration: underline;
}

.page-container .shell-breadcrumb-item.is-current span {
    color: #334155;
}

.page-container .shell-header-tools {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    float: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-container h2.shell-nav-heading {
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.page-container .shell-toast.alert-dismissible {
    padding-right: 2.75rem;
}

.page-container .shell-toast .btn-close {
    position: absolute;
    top: 12px;
    right: 12px;
}

.shell-drawer-backdrop {
    display: none;
}

@media (max-width: 991.98px) {
    .page-container,
    .page-container.sbar_collapsed {
        padding-left: 0;
    }

    .page-container .sidebar.sidebar-menu {
        z-index: 1045;
        width: min(280px, 88vw);
        max-width: 88vw;
    }

    .page-container:not(.sbar_collapsed) .sidebar.sidebar-menu {
        box-shadow: 8px 0 28px rgba(0, 0, 0, 0.28);
    }

    .page-container:not(.sbar_collapsed) .shell-drawer-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: 1040;
    }
}

@media (min-width: 992px) {
    .shell-drawer-backdrop {
        display: none !important;
    }
}

.changelog-dialog {
    text-align: start;
    color: #1e293b;
}

.changelog-dialog .modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
}

.changelog-dialog .changelog-version {
    margin-top: 2px;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #475569;
}

.changelog-dialog .modal-dialog {
    max-width: 36rem;
}

.changelog-dialog .modal-body {
    padding: 1.15rem 1.35rem 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.changelog-dialog .changelog-release + .changelog-release {
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid #e2e8f0;
}

.changelog-dialog .changelog-date {
    margin-bottom: 0.7rem;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
}

.changelog-dialog .changelog-items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.changelog-dialog .changelog-items li {
    position: relative;
    padding-left: 1.05rem;
    color: #1e293b;
}

.changelog-dialog .changelog-items li::before {
    content: "";
    position: absolute;
    top: 0.6em;
    left: 0;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: #334155;
}

.changelog-dialog .changelog-items li + li {
    margin-top: 0.8rem;
}
