/* Shared control normalization for the mobile application shell. */
body.pezani-mobile-app .mobile-header-search,
body.pezani-mobile-app .header-left {
    flex: 1 1 auto;
    min-width: 0;
}

body.pezani-mobile-app .mobile-header-search,
body.pezani-mobile-app .header-left {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body.pezani-mobile-app .mobile-header-search .search-area,
body.pezani-mobile-app .header-left .search-area {
    align-items: stretch;
    background: #fff !important;
    border: 1px solid #d6dde6 !important;
    border-radius: 1rem !important;
    box-shadow: 0 1px 2px rgba(24, 37, 59, .04) !important;
    box-sizing: border-box;
    display: flex !important;
    gap: 0 !important;
    height: 3.35rem !important;
    min-width: 0;
    overflow: visible !important;
    padding: 0 !important;
    position: relative;
    width: 100% !important;
}

body.pezani-mobile-app .mobile-header-search .search-area > .input-group-prepend,
body.pezani-mobile-app .mobile-header-search .search-area > .input-group-append,
body.pezani-mobile-app .header-left .search-area > .input-group-prepend,
body.pezani-mobile-app .header-left .search-area > .input-group-append {
    align-items: stretch;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    display: flex !important;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
}

body.pezani-mobile-app .mobile-header-search .search-area .input-group-text,
body.pezani-mobile-app .header-left .search-area .input-group-text {
    align-items: center;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    display: flex;
    flex: 0 0 3.25rem;
    height: auto !important;
    justify-content: center;
    margin: 0 !important;
    min-width: 3.25rem;
    padding: 0 !important;
}

body.pezani-mobile-app .mobile-header-search .search-area .input-group-text a,
body.pezani-mobile-app .header-left .search-area .input-group-text a {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    width: 100%;
}

body.pezani-mobile-app .mobile-header-search .search-area .form-control,
body.pezani-mobile-app .header-left .search-area .form-control {
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex: 1 1 auto;
    height: auto !important;
    margin: 0 !important;
    min-width: 0;
    padding-left: .15rem;
    padding-right: .85rem;
    width: 1%;
    font-size: 16px !important;
}

body.pezani-mobile-app .header .header-content,
body.pezani-mobile-app .header .navbar,
body.pezani-mobile-app .header .navbar-collapse,
body.pezani-mobile-app .header-left,
body.pezani-mobile-app .header-right {
    align-items: center;
    min-width: 0;
}

body.pezani-mobile-app .header .header-content,
body.pezani-mobile-app .header .navbar-collapse {
    flex-wrap: nowrap;
}

body.pezani-mobile-app .header-right {
    display: flex;
    flex: 0 0 auto;
}

/* Prepend, amount input, and append form one connected control. */
body.pezani-mobile-app .pezani-money-group {
    align-items: stretch;
    background: #f7f9fb !important;
    border: 1px solid #d6dde6 !important;
    border-radius: 1rem !important;
    box-sizing: border-box;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    height: auto !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 100% !important;
}

body.pezani-mobile-app .pezani-money-group .input-group-prepend,
body.pezani-mobile-app .pezani-money-group .input-group-append {
    align-items: stretch;
    display: flex !important;
    flex: 0 0 auto;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.pezani-mobile-app .pezani-money-group .input-group-text {
    align-items: center;
    background: #f7f9fb !important;
    border: 0 !important;
    border-radius: 0 !important;
    display: flex;
    height: auto !important;
    margin: 0 !important;
    min-height: 3.25rem;
    padding: .75rem 1rem !important;
    white-space: nowrap;
}

body.pezani-mobile-app .pezani-money-group .input-group-prepend .input-group-text {
    border-right: 1px solid #d6dde6 !important;
}

body.pezani-mobile-app .pezani-money-group .input-group-append .input-group-text {
    border-left: 1px solid #d6dde6 !important;
}

body.pezani-mobile-app .pezani-money-group > .form-control {
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex: 1 1 auto;
    height: auto !important;
    margin: 0 !important;
    min-width: 0;
    width: 1%;
}

@media only screen and (max-width: 47.9375rem) {
    body.pezani-mobile-app .header .header-content {
        gap: .5rem;
    }

    body.pezani-mobile-app .mobile-header-search {
        flex: 1 1 auto;
        min-width: 0;
        width: auto !important;
    }

    body.pezani-mobile-app .header .header-content > .dashboard-nav-toggle {
        flex: 0 0 3rem;
        height: 3rem;
        width: 3rem;
    }

    body.pezani-mobile-app .mobile-header-search .search-area,
    body.pezani-mobile-app .header-left .search-area,
    body.pezani-mobile-app .mobile-header-action .nav-link {
        height: 3.15rem !important;
    }

    body.pezani-mobile-app .mobile-header-search .search-area .input-group-text,
    body.pezani-mobile-app .header-left .search-area .input-group-text {
        flex-basis: 2.75rem;
        min-width: 2.75rem;
    }

    body.pezani-mobile-app .mobile-header-search .input-group-text svg,
    body.pezani-mobile-app .header-left .search-area .input-group-text svg,
    body.pezani-mobile-app .mobile-header-search .material-icons {
        font-size: 1.55rem !important;
        height: 1.55rem;
        width: 1.55rem;
    }

    body.pezani-mobile-app .mobile-header-search .form-control,
    body.pezani-mobile-app .header-left .search-area .form-control {
        font-size: 16px !important;
        padding-left: .15rem;
        padding-right: .65rem;
    }

    body.pezani-mobile-app .mobile-header-action .nav-link {
        width: 3rem;
    }
}

/* Keep form geometry stable when the mobile shell scales the root font size.
   Explicit pixels are intentional here: rem-based touch targets shrink with
   the shell's 14px phone root and become inconsistent across WebViews. */
body.pezani-mobile-app .quick-finder-form .form-control,
body.pezani-mobile-app .quick-finder-form select,
body.pezani-mobile-app .directory-search-card form .form-control,
body.pezani-mobile-app .directory-search-card form select,
body.pezani-mobile-app .directory-filter-card form .form-control,
body.pezani-mobile-app .directory-filter-card form select,
body.pezani-mobile-app .directory-category-filter-card form .form-control,
body.pezani-mobile-app .directory-category-filter-card form select,
body.pezani-mobile-app .deal-search-card form .form-control,
body.pezani-mobile-app .deal-search-card form select,
body.pezani-mobile-app .deal-filter-card form .form-control,
body.pezani-mobile-app .deal-filter-card form select,
body.pezani-mobile-app .explore-search-card form .form-control,
body.pezani-mobile-app .explore-search-card form select,
body.pezani-mobile-app #exploreBookingForm .form-control,
body.pezani-mobile-app #exploreBookingForm select,
body.pezani-mobile-app #directoryReportForm .form-control,
body.pezani-mobile-app #directoryReportForm select,
body.pezani-mobile-app #dealClaimForm .form-control,
body.pezani-mobile-app #dealClaimForm select,
body.pezani-mobile-app #quickFinderChats .chat-settings-card form .form-control,
body.pezani-mobile-app #quickFinderChats .chat-settings-card form select,
body.pezani-mobile-app #mobileSavedSearchForm .form-control,
body.pezani-mobile-app #mobileSavedSearchForm select,
body.pezani-mobile-app #mobileQuickReplyForm .form-control,
body.pezani-mobile-app #mobileQuickReplyForm select {
    min-height: 52px !important;
}

body.pezani-mobile-app .quick-finder-form textarea.form-control,
body.pezani-mobile-app #exploreBookingForm textarea.form-control,
body.pezani-mobile-app #directoryReportForm textarea.form-control,
body.pezani-mobile-app #dealClaimForm textarea.form-control,
body.pezani-mobile-app #mobileQuickReplyForm textarea.form-control {
    min-height: 112px !important;
}

body.pezani-mobile-app .quick-finder-form .bootstrap-select .dropdown-toggle,
body.pezani-mobile-app .directory-search-card form .bootstrap-select .dropdown-toggle,
body.pezani-mobile-app .directory-filter-card form .bootstrap-select .dropdown-toggle,
body.pezani-mobile-app .directory-category-filter-card form .bootstrap-select .dropdown-toggle,
body.pezani-mobile-app .deal-search-card form .bootstrap-select .dropdown-toggle,
body.pezani-mobile-app .deal-filter-card form .bootstrap-select .dropdown-toggle,
body.pezani-mobile-app .explore-search-card form .bootstrap-select .dropdown-toggle,
body.pezani-mobile-app #exploreBookingForm .bootstrap-select .dropdown-toggle,
body.pezani-mobile-app #directoryReportForm .bootstrap-select .dropdown-toggle,
body.pezani-mobile-app #dealClaimForm .bootstrap-select .dropdown-toggle,
body.pezani-mobile-app #quickFinderChats .chat-settings-card form .bootstrap-select .dropdown-toggle {
    min-height: 52px !important;
}

body.pezani-mobile-app .quick-finder-form .pezani-money-group,
body.pezani-mobile-app .deal-search-card form .pezani-money-group,
body.pezani-mobile-app .deal-filter-card form .pezani-money-group,
body.pezani-mobile-app .quick-finder-form .pezani-money-group .input-group-text,
body.pezani-mobile-app .deal-search-card form .pezani-money-group .input-group-text,
body.pezani-mobile-app .deal-filter-card form .pezani-money-group .input-group-text {
    min-height: 52px !important;
}

body.pezani-mobile-app .quick-finder-form .card-footer .btn,
body.pezani-mobile-app .directory-search-card form .card-footer .btn,
body.pezani-mobile-app .directory-filter-card form .card-footer .btn,
body.pezani-mobile-app .directory-category-filter-card form .card-footer .btn,
body.pezani-mobile-app .deal-search-card form .deal-search-actions .btn,
body.pezani-mobile-app .deal-filter-card form .deal-search-actions .btn,
body.pezani-mobile-app .explore-search-card form .explore-search-actions .btn,
body.pezani-mobile-app #quickFinderChats .chat-settings-card form .card-footer .btn,
body.pezani-mobile-app #mobileSavedSearchForm > button,
body.pezani-mobile-app #mobileQuickReplyForm > button {
    min-height: 52px !important;
}

/* Route title replaces the removed shell search field. Keep all three
 * controls aligned and comfortably tappable across phone and desktop widths. */
body.pezani-mobile-app .header .header-content > .header-page-title {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    margin: 0 .15rem 0 .1rem;
    min-width: 0;
}

body.pezani-mobile-app .header-page-title h1 {
    color: #fff;
    font-family: inherit;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.pezani-mobile-app .header .header-content > nav {
    flex: 0 0 auto !important;
    min-width: 0;
    width: auto !important;
}

body.pezani-mobile-app .header .header-content > nav .navbar-collapse {
    display: flex !important;
    flex: 0 0 auto;
    min-width: 0;
}

body.pezani-mobile-app .header .header-content > .dashboard-nav-toggle,
body.pezani-mobile-app .mobile-header-action .nav-link {
    height: 3.55rem;
    width: 3.55rem;
}

body.pezani-mobile-app .header .header-content > .dashboard-nav-toggle {
    flex-basis: 3.55rem;
}

body.pezani-mobile-app .dashboard-nav-toggle .material-icons,
body.pezani-mobile-app .mobile-header-action .material-icons {
    font-size: 2.05rem !important;
}

@media only screen and (max-width: 47.9375rem) {
body.pezani-mobile-app .header .header-content {
        gap: .5rem;
        padding-left: .75rem !important;
        padding-right: .65rem !important;
    }

    /* Keep the mobile header sequence as title, notifications, then menu. */
    body.pezani-mobile-app .header .header-content > .header-page-title {
        margin-left: 0;
        order: 1;
    }

    body.pezani-mobile-app .header .header-content > nav {
        order: 2;
    }

    body.pezani-mobile-app .header .header-content > .dashboard-nav-toggle {
        order: 3;
    }

    body.pezani-mobile-app .header .header-content > .dashboard-nav-toggle,
    body.pezani-mobile-app .mobile-header-action .nav-link {
        height: 3.4rem;
        width: 3.4rem;
    }

    body.pezani-mobile-app .header .header-content > .dashboard-nav-toggle {
        flex-basis: 3.4rem;
    }

    body.pezani-mobile-app .dashboard-nav-toggle .material-icons,
    body.pezani-mobile-app .mobile-header-action .material-icons {
        font-size: 1.95rem !important;
    }

    body.pezani-mobile-app .header-page-title h1 {
        font-size: 1.15rem;
    }
}
