/* 门店管理默认主题：紧凑顶部菜单布局。 */

.project-store-toolbar {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
}

body.project-stores-active .top-header {
    position: relative;
    top: auto;
    min-height: 0;
    height: auto;
    padding: 0.9rem var(--spacing-xl) 0.75rem;
    align-items: flex-start;
}

body.project-stores-active .header-left {
    position: relative;
    align-content: flex-start;
    align-items: center;
    height: auto;
    min-height: 0;
    flex-wrap: nowrap;
    gap: 0;
    padding-right: 0.8rem;
}

body.project-stores-active .header-left h1 {
    flex: 0 0 auto;
}

body.project-stores-active #projectStoreHeaderActions {
    display: flex;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    margin-top: 0;
    margin-left: 1rem;
    flex-wrap: nowrap;
    overflow: visible;
}

body.project-stores-active #projectStoreHeaderActions .project-store-quick-views {
    flex: 0 0 auto !important;
    width: auto;
    max-width: calc(100% - 560px);
}

body.project-stores-active #projectStoreHeaderActions .project-store-toolbar {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: calc(100% - 180px);
}

body.project-stores-active .header-right {
    padding-top: 0.05rem;
}

@media (max-width: 1250px) {
    body.project-stores-active .header-left {
        flex-wrap: wrap;
    }

    body.project-stores-active #projectStoreHeaderActions {
        flex: 0 0 100%;
        width: 100%;
        margin-top: 0.55rem;
        margin-left: 0;
        flex-wrap: wrap;
    }

    body.project-stores-active #projectStoreHeaderActions .project-store-quick-views {
        max-width: 100%;
    }

    body.project-stores-active #projectStoreHeaderActions .project-store-toolbar {
        position: static;
        max-width: none;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    body.project-stores-active .top-header {
        padding: 0.75rem 1rem;
    }

    body.project-stores-active #projectStoreHeaderActions .project-store-quick-views {
        flex-basis: 100% !important;
        width: 100%;
        max-width: 100%;
    }
}
