/* =========================================================
   سربرگ ثابت صفحات ثبت مشتری و ثبت کالا
   این فایل Global است و به CSS Isolation وابسته نیست.
   ========================================================= */

.customer-page-header,
.page-header {
    position: relative !important;
    min-height: 78px !important;
    margin-bottom: 10px !important;
    padding: 0 30px 10px 0 !important;
    border-bottom: 4px solid #aaaaaa !important;
    box-sizing: border-box !important;
}

/* مربع همیشه کنار سطر عنوان قرار می‌گیرد. */
.customer-page-header::before,
.page-header::before {
    content: "" !important;
    position: absolute !important;
    right: 0 !important;
    top: 8px !important;
    bottom: auto !important;
    width: 19px !important;
    height: 19px !important;
    z-index: 2 !important;
}

.customer-page-header::before {
    background: #18ae9f !important;
}

.page-header::before {
    background: #17b43d !important;
}

.customer-page-header > div:first-child,
.page-header > div:first-child {
    min-width: 0 !important;
}

.customer-page-header .mud-typography-h4,
.page-header .mud-typography-h4 {
    margin: 0 !important;
    font-size: 25px !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
    color: #423b3b !important;
}

.customer-page-header .mud-typography-body1,
.page-header .mud-typography-body1 {
    margin-top: 5px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
    color: #766f6f !important;
}

/* دکمه بازگشت آبی، متن و آیکون سفید */
.customer-page-header .mud-button-root,
.page-header .mud-button-root {
    min-height: 40px !important;
    padding: 0 15px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background-color: #2d78c4 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    box-shadow: none !important;
}

.customer-page-header .mud-button-root:hover,
.page-header .mud-button-root:hover {
    background-color: #2568ab !important;
    color: #ffffff !important;
}

.customer-page-header .mud-button-root .mud-button-label,
.customer-page-header .mud-button-root .mud-icon-root,
.page-header .mud-button-root .mud-button-label,
.page-header .mud-button-root .mud-icon-root {
    color: #ffffff !important;
}

@media (max-width: 700px) {
    .customer-page-header,
    .page-header {
        align-items: stretch !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding-top: 0 !important;
    }

    .customer-page-header .mud-button-root,
    .page-header .mud-button-root {
        width: 100% !important;
    }
}
