.s-header-search-wrap {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    max-width: 340px;
    min-width: 180px;
    margin-left: 1.4rem;
}

#s-navigation-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

#s-navigation-left .s-navigation-links {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.s-global-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 280px;
    transition: max-width 0.24s ease;
}

.s-global-search.is-focused {
    max-width: 350px;
}

.s-global-search__shell {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 0 0.9rem 0 0.75rem;
    background: var(--search-bg-colour, rgba(255, 255, 255, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, max-width 0.2s ease;
}

.s-global-search__shell:focus-within {
    border-color: rgba(255, 255, 255, 0.58);
    box-shadow: 0 0 0 2px rgba(207, 215, 228, 0.2);
}

.s-global-search__icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 0.55rem;
    color: var(--search-icon-colour, #cfd7e4);
}

.s-global-search__icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.s-global-search__input {
    width: 100%;
    min-width: 0;
    border: none;
    background: transparent;
    color: #f6f5f9;
    font-size: 0.98rem;
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.6rem 0;
    outline: none;
    appearance: none;
}

.s-global-search__input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.s-global-search__input::-webkit-search-cancel-button {
    display: none;
}

.s-global-search--bg {
    background-color: transparent;
}

.s-global-search--bg .s-global-search__shell {
    background-color: var(--search-bg-colour, rgba(255, 255, 255, 0.12));
}

.s-global-search--border {
    border-color: var(--search-border-colour, rgba(255, 255, 255, 0.36));
}

.s-global-search--icon {
    color: var(--search-icon-colour, #cfd7e4);
}

.s-custom-style .s-global-search--bg {
    background-color: transparent;
}

.s-custom-style .s-global-search--bg .s-global-search__shell {
    background-color: var(--search-bg-colour, rgba(255, 255, 255, 0.12));
}

.s-custom-style .s-global-search--border {
    border-color: var(--search-border-colour, rgba(255, 255, 255, 0.36));
}

.s-custom-style .s-global-search--icon {
    color: var(--search-icon-colour, #cfd7e4);
}

.crm-search-results-wrap {
    padding-top: 0.35rem;
    padding-bottom: 5rem;
}

.crm-search-results-note {
    margin-top: 0.25rem;
    margin-bottom: 1rem;
}

.crm-search-results-filter fieldset {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0;
    border: 0;
}

.crm-search-results-filter .crm-reports-select-wrap {
    margin: 0;
}

.crm-search-control {
    flex: 0 0 auto;
}

.crm-search-control .fr-select {
    width: 100%;
    min-width: 0;
}

.crm-search-control--type,
.crm-search-control--order {
    width: 170px;
}

.crm-search-control--date {
    width: 150px;
}

.crm-search-control--date .fr-select {
    text-align: left;
}

.crm-search-control--action .a-solid {
    height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

.crm-search-control--action button.a-solid {
    border: 1px solid #d2d7e1;
    box-shadow: none;
    -webkit-box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.crm-search-results-group {
    margin-top: 0.9rem;
}

.crm-search-results-group-title {
    margin-bottom: 0.45rem;
}

.crm-search-results-scroll {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid rgba(34, 34, 34, 0.08);
    border-radius: 8px;
}

.crm-search-results-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.crm-search-col-ref {
    width: 18%;
}

.crm-search-col-name {
    width: 40%;
}

.crm-search-col-extra {
    width: 24%;
}

.crm-search-col-created {
    width: 18%;
}

.crm-search-results-table--landlord .crm-search-col-ref {
    width: 18%;
}

.crm-search-results-table--landlord .crm-search-col-name {
    width: 46%;
}

.crm-search-results-table--landlord .crm-search-col-extra {
    width: 16%;
}

.crm-search-results-table--landlord .crm-search-col-created {
    width: 20%;
}

.crm-search-results-table--tenant .crm-search-col-ref {
    width: 11%;
}

.crm-search-results-table--tenant .crm-search-col-name {
    width: 22%;
}

.crm-search-results-table--tenant .crm-search-col-extra {
    width: 47%;
}

.crm-search-results-table--tenant .crm-search-col-created {
    width: 20%;
}

.crm-search-results-table--sales .crm-search-col-ref {
    width: 16%;
}

.crm-search-results-table--sales .crm-search-col-name {
    width: 28%;
}

.crm-search-results-table--sales .crm-search-col-extra {
    width: 36%;
}

.crm-search-results-table--sales .crm-search-col-created {
    width: 20%;
}

.crm-search-results-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8f7fb;
    color: #4f4675;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 0.55rem 0.65rem;
    text-align: left;
}

.crm-search-results-table tbody td {
    padding: 0.52rem 0.65rem;
    border-top: 1px solid rgba(34, 34, 34, 0.07);
    font-size: 0.88rem;
    line-height: 1.2;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.crm-search-col-ref,
.crm-search-col-created {
    white-space: nowrap;
}

.crm-search-results-empty {
    margin-top: 0.75rem;
}

.crm-search-results-table tbody tr:hover td {
    background: rgba(79, 70, 117, 0.03);
}

.crm-search-results-footer {
    margin: 0.45rem 0 0;
    font-size: 0.78rem;
    line-height: 1.35;
    color: rgba(79, 70, 117, 0.78);
    font-weight: 400;
}

@media screen and (max-width: 980px) {
    .crm-search-results-filter fieldset {
        justify-content: flex-start;
    }

    .crm-search-control--type,
    .crm-search-control--order,
    .crm-search-control--date {
        width: calc(50% - 0.3rem);
    }
}

@media screen and (max-width: 980px) {
    .s-header-search-wrap {
        display: none;
    }
}
