﻿/* ==========================================================================
   Sales Administration System
   Page Header Component
   File        : page-header.css
   Component   : _PageHeader.cshtml
   Dependency  : theme.css, typography.css, button.css
   ========================================================================== */


/* ==========================================================================
   Page Header
   ========================================================================== */

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    width: 100%;
    margin-bottom: var(--space-6);
}


/* ==========================================================================
   Left Section
   ========================================================================== */

.page-header-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 0;
}


/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    line-height: 1.25;
}

    .page-breadcrumb i {
        flex-shrink: 0;
        color: var(--text-muted);
        font-size: .875rem;
    }

    .page-breadcrumb span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


/* ==========================================================================
   Title Group
   ========================================================================== */

.page-title-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
}


/* ==========================================================================
   Page Title
   ========================================================================== */

.page-header .page-title {
    margin: 0;
    color: var(--text-primary);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
}


/* ==========================================================================
   Page Subtitle
   ========================================================================== */

.page-header .page-subtitle {
    margin: 0;
    max-width: 760px;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    line-height: 1.5;
}


/* ==========================================================================
   Right Section / Actions
   ========================================================================== */

.page-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: var(--space-2);
    flex-shrink: 0;
    padding-top: var(--space-1);
}

    .page-header-right .btn {
        white-space: nowrap;
    }

        .page-header-right .btn i {
            margin-right: var(--space-1);
        }


    /* ==========================================================================
   Empty Right Section
   ========================================================================== */

    .page-header-right:empty {
        display: none;
    }


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 767.98px) {

    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-4);
        margin-bottom: var(--space-5);
    }

    .page-header-right {
        justify-content: flex-start;
        width: 100%;
        padding-top: 0;
    }

        .page-header-right .btn {
            width: 100%;
        }

    .page-header .page-title {
        font-size: var(--font-size-xl);
    }

    .page-header .page-subtitle {
        max-width: 100%;
    }
}


/* ==========================================================================
   Small Mobile
   ========================================================================== */

@media (max-width: 575.98px) {

    .page-breadcrumb {
        font-size: var(--font-size-xs);
    }
}
