/* ==========================================================
   Francherry Manager Portal
   Customers Module
   Version: 1.1.0

   Primary Gold: #C89B3C
   Black:        #000000
   White:        #FFFFFF
   WhatsApp:     #25D366
========================================================== */


/* ==========================================================
   CUSTOMERS WRAPPER
========================================================== */

.fb-customers-wrapper {

    width: 100%;
    box-sizing: border-box;

}


/* ==========================================================
   PAGE HEADER
========================================================== */

.fb-customers-header {

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
    margin-bottom: 22px;

}

.fb-customers-header-left {

    min-width: 0;

}

.fb-customers-title {

    margin: 0;

    color: #000000;

    font-size: 26px;
    font-weight: 700;

    line-height: 1.2;

}

.fb-customers-subtitle {

    margin: 7px 0 0;

    color: #666666;

    font-size: 14px;
    line-height: 1.5;

}

.fb-customers-header-count {

    min-width: 145px;

    padding: 13px 17px;

    background: #FFFFFF;

    border: 1px solid #E5E5E5;
    border-radius: 9px;

    text-align: right;

    box-sizing: border-box;

}

.fb-customers-count-label {

    display: block;

    margin-bottom: 4px;

    color: #777777;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .05em;

}

.fb-customers-count {

    color: #000000;

    font-size: 22px;
    font-weight: 700;

    line-height: 1;

}


/* ==========================================================
   TOOLBAR
========================================================== */

.fb-customers-toolbar {

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 13px;

}

.fb-customers-search {

    position: relative;

    flex: 1 1 auto;

    min-width: 0;

}

.fb-customers-search > i {

    position: absolute;

    top: 50%;
    left: 14px;

    transform: translateY(-50%);

    color: #777777;

    font-size: 13px;

    pointer-events: none;

}

.fb-customers-search input {

    width: 100%;
    min-height: 46px;

    padding: 10px 14px 10px 39px;

    box-sizing: border-box;

    background: #FFFFFF;

    color: #000000;

    border: 1px solid #D8D8D8;
    border-radius: 8px;

    outline: none;

    font-size: 13px;
    line-height: 1.3;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;

}

.fb-customers-search input::placeholder {

    color: #999999;

}

.fb-customers-search input:focus {

    border-color: #000000;

    box-shadow:
        0 0 0 3px rgba(200, 155, 60, .14);

}


/* ==========================================================
   NEW CUSTOMER PRIMARY ACTION
========================================================== */

.fb-customer-primary-action {

    min-height: 46px;

    padding: 10px 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    flex: 0 0 auto;

    background: #C89B3C;
    color: #000000;

    border: 1px solid #000000;
    border-radius: 8px;

    font-size: 13px;
    font-weight: 700;

    line-height: 1.2;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .15s ease;

}

.fb-customer-primary-action:hover {

    background: #000000;
    color: #C89B3C;
    border-color: #000000;

}

.fb-customer-primary-action:active {

    transform: translateY(1px);

}


/* ==========================================================
   RESULTS META
========================================================== */

.fb-customers-results-meta {

    display: flex;
    align-items: center;

    gap: 5px;

    margin-bottom: 12px;

    color: #777777;

    font-size: 11px;

}

.fb-customers-results-meta strong {

    color: #000000;

    font-weight: 700;

}


/* ==========================================================
   CUSTOMER LIST
========================================================== */

.fb-customers-list {

    display: grid;
    gap: 8px;

}


/* ==========================================================
   CUSTOMER CARD
========================================================== */

.fb-customer-card {

    display: grid;

    grid-template-columns:
        minmax(250px, 1.7fr)
        minmax(230px, 1.3fr)
        auto;

    align-items: center;

    gap: 18px;

    padding: 16px 17px;

    background: #FFFFFF;

    border: 1px solid #E5E5E5;
    border-radius: 9px;

    box-sizing: border-box;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;

}

.fb-customer-card:hover {

    border-color: #C89B3C;

    box-shadow:
        0 7px 22px rgba(0, 0, 0, .055);

    transform: translateY(-1px);

}


/* ==========================================================
   CUSTOMER IDENTITY
========================================================== */

.fb-customer-card-identity {

    display: flex;
    align-items: center;

    gap: 12px;

    min-width: 0;

}

.fb-customer-avatar {

    width: 45px;
    height: 45px;

    min-width: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #000000;
    color: #C89B3C;

    font-size: 13px;
    font-weight: 700;

    line-height: 1;

}

.fb-customer-card-info {

    min-width: 0;

}

.fb-customer-name {

    margin: 0;

    overflow: hidden;

    color: #000000;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.3;

    text-overflow: ellipsis;
    white-space: nowrap;

}

.fb-customer-contact {

    display: flex;
    flex-wrap: wrap;

    gap: 6px 13px;

    margin-top: 5px;

}

.fb-customer-contact span {

    display: inline-flex;
    align-items: center;

    gap: 5px;

    min-width: 0;

    color: #666666;

    font-size: 11px;

    line-height: 1.3;

}

.fb-customer-contact i {

    color: #000000;

    font-size: 11px;

}

.fb-customer-contact .fa-whatsapp {

    color: #25D366;

}


/* ==========================================================
   CUSTOMER STATS
========================================================== */

.fb-customer-card-stats {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(72px, 1fr));

    gap: 8px;

}

.fb-customer-stat {

    min-width: 0;

    padding-left: 11px;

    border-left: 1px solid #EEEEEE;

}

.fb-customer-stat span {

    display: block;

    margin-bottom: 4px;

    color: #888888;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .03em;

    line-height: 1.3;

}

.fb-customer-stat strong {

    display: block;

    overflow: hidden;

    color: #000000;

    font-size: 12px;
    font-weight: 700;

    line-height: 1.3;

    text-overflow: ellipsis;
    white-space: nowrap;

}


/* ==========================================================
   CUSTOMER STATUS
========================================================== */

.fb-customer-status {

    display: inline-flex !important;

    align-items: center;

    gap: 5px;

    width: fit-content;

}

.fb-customer-status::before {

    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: currentColor;

    flex: 0 0 6px;

}

.fb-customer-status.visible {

    color: #198754 !important;

}

.fb-customer-status.hidden,
.fb-customer-status.inactive {

    color: #888888 !important;

}


/* ==========================================================
   VIEW CUSTOMER ACTION
========================================================== */

.fb-customer-card-action {

    display: flex;

    justify-content: flex-end;

}

.fb-customer-view {

    min-height: 40px;

    padding: 8px 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    background: #000000;
    color: #C89B3C;

    border: 1px solid #000000;
    border-radius: 7px;

    font-size: 11px;
    font-weight: 700;

    line-height: 1.2;

    cursor: pointer;

    white-space: nowrap;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;

}

.fb-customer-view:hover,
.fb-customer-view.active {

    background: #C89B3C;
    color: #000000;

    border-color: #C89B3C;

}


/* ==========================================================
   EMPTY STATE
========================================================== */

.fb-customers-empty {

    padding: 50px 24px;

    background: #FFFFFF;

    border: 1px solid #E5E5E5;
    border-radius: 9px;

    text-align: center;

}

.fb-customers-empty-icon {

    width: 54px;
    height: 54px;

    margin: 0 auto 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #F7F1E5;
    color: #C89B3C;

    font-size: 19px;

}

.fb-customers-empty h3 {

    margin: 0 0 6px;

    color: #000000;

    font-size: 17px;
    font-weight: 700;

}

.fb-customers-empty p {

    margin: 0;

    color: #777777;

    font-size: 12px;
    line-height: 1.5;

}


/* ==========================================================
   LOADING STATE
========================================================== */

.fb-customers-loading {

    min-height: 170px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    background: #FFFFFF;

    border: 1px solid #E5E5E5;
    border-radius: 9px;

    color: #666666;

    font-size: 12px;

}

.fb-customers-loading i {

    color: #C89B3C;

}


/* ==========================================================
   INLINE CUSTOMER DETAILS
========================================================== */

.fb-customer-details-inline {

    position: relative;

    margin-top: -8px;
    margin-bottom: 7px;

    padding: 19px;

    background: #FAFAFA;

    border: 1px solid #E5E5E5;

    border-top: none;

    border-radius: 0 0 9px 9px;

    box-shadow:
        inset 0 2px 5px rgba(0, 0, 0, .02);

}


/* ==========================================================
   INLINE CLOSE BUTTON
========================================================== */

.fb-customer-inline-close {

    position: absolute;

    top: 12px;
    right: 12px;

    width: 30px;
    height: 30px;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #000000;
    color: #C89B3C;

    border: 1px solid #000000;
    border-radius: 6px;

    cursor: pointer;

    font-size: 12px;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;

}

.fb-customer-inline-close:hover {

    background: #C89B3C;
    color: #000000;

    border-color: #C89B3C;

}


/* ==========================================================
   INLINE LOADING / ERROR
========================================================== */

.fb-customer-inline-loading,
.fb-customer-inline-error {

    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    color: #666666;

    font-size: 12px;

}

.fb-customer-inline-loading i {

    color: #C89B3C;

}

.fb-customer-inline-error {

    color: #B42318;

}

.fb-customer-inline-error i {

    color: #B42318;

}


/* ==========================================================
   INLINE CONTACT INFO
========================================================== */

.fb-customer-inline-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

    margin-bottom: 17px;

    padding-right: 39px;

}

.fb-customer-inline-info {

    padding: 11px 13px;

    background: #FFFFFF;

    border: 1px solid #E5E5E5;
    border-radius: 8px;

}

.fb-customer-inline-info label {

    display: flex;
    align-items: center;

    gap: 6px;

    margin-bottom: 4px;

    color: #888888;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .03em;

}

.fb-customer-inline-info label i {

    color: #000000;

    font-size: 10px;

}

.fb-customer-inline-info label .fa-whatsapp {

    color: #25D366;

}

.fb-customer-inline-info strong {

    display: block;

    overflow: hidden;

    color: #000000;

    font-size: 12px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;

}


/* ==========================================================
   INLINE SECTIONS
========================================================== */

.fb-customer-inline-section {

    margin-bottom: 15px;

}

.fb-customer-inline-section:last-of-type {

    margin-bottom: 17px;

}

.fb-customer-inline-section-title {

    margin-bottom: 7px;

    color: #000000;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .04em;

}


/* ==========================================================
   CUSTOMER BOOKING ITEMS
========================================================== */

.fb-customer-booking-list {

    display: grid;

    gap: 6px;

}

.fb-customer-booking-item {

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 10px 12px;

    background: #FFFFFF;

    border: 1px solid #E5E5E5;
    border-radius: 7px;

}

.fb-customer-booking-item.upcoming {

    border-left: 3px solid #C89B3C;

}

.fb-customer-booking-main {

    min-width: 0;

}

.fb-customer-booking-main strong {

    display: block;

    margin-bottom: 3px;

    color: #000000;

    font-size: 12px;
    font-weight: 700;

}

.fb-customer-booking-main span {

    color: #777777;

    font-size: 10px;

}

.fb-customer-booking-item .fb-customer-status {

    flex: 0 0 auto;

    font-size: 9px;

}

.fb-customer-booking-empty {

    padding: 11px;

    background: #FFFFFF;

    border: 1px dashed #DCDCDC;
    border-radius: 7px;

    color: #888888;

    font-size: 11px;

    text-align: center;

}


/* ==========================================================
   INLINE ACTIONS
========================================================== */

.fb-customer-inline-actions {

    display: flex;
    align-items: center;

    gap: 9px;

    padding-top: 13px;

    border-top: 1px solid #E5E5E5;

}

.fb-customer-inline-action {

    min-height: 39px;

    padding: 8px 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    background: #000000;
    color: #C89B3C;

    border: 1px solid #000000;
    border-radius: 7px;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;

}

.fb-customer-inline-action:hover {

    background: #C89B3C;
    color: #000000;

    border-color: #C89B3C;

}

.fb-customer-inline-action:disabled {

    opacity: .65;

    cursor: not-allowed;

}

.fb-customer-inline-action.fb-customer-whatsapp {

    background: #25D366;
    color: #FFFFFF;

    border-color: #25D366;

}

.fb-customer-inline-action.fb-customer-whatsapp:hover {

    background: #1DA851;
    color: #FFFFFF;

    border-color: #1DA851;

}


/* ==========================================================
   EDIT CUSTOMER
========================================================== */

.fb-customer-edit-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 13px;

    margin-top: 18px;

}

.fb-customer-edit-field {

    min-width: 0;

}

.fb-customer-edit-field-full {

    grid-column: 1 / -1;

}

.fb-customer-edit-field label {

    display: block;

    margin-bottom: 6px;

    color: #000000;

    font-size: 10px;
    font-weight: 700;

}

.fb-customer-edit-field input,
.fb-customer-edit-field textarea {

    width: 100%;

    box-sizing: border-box;

    padding: 10px 12px;

    background: #FFFFFF;
    color: #000000;

    border: 1px solid #D8D8D8;
    border-radius: 8px;

    outline: none;

    font-size: 12px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;

}

.fb-customer-edit-field input {

    min-height: 43px;

}

.fb-customer-edit-field textarea {

    min-height: 96px;

    resize: vertical;

}

.fb-customer-edit-field input:focus,
.fb-customer-edit-field textarea:focus {

    border-color: #000000;

    box-shadow:
        0 0 0 3px rgba(200, 155, 60, .14);

}

.fb-customer-edit-message {

    display: none;

    margin-top: 13px;

    padding: 9px 11px;

    border-radius: 7px;

    font-size: 10px;

    line-height: 1.4;

}

.fb-customer-edit-message.error {

    display: block;

    background: #FBECEC;

    color: #B42318;

    border: 1px solid #F2C6C6;

}

.fb-customer-edit-message.success {

    display: block;

    background: #EAF7EF;

    color: #198754;

    border: 1px solid #C8E8D3;

}

.fb-customer-edit-save {

    background: #C89B3C;

    color: #000000;

    border-color: #000000;

}

.fb-customer-edit-save:hover {

    background: #000000;

    color: #C89B3C;

    border-color: #000000;

}

.fb-customer-edit-save:disabled {

    opacity: .65;

    cursor: not-allowed;

}


/* ==========================================================
   NEW CUSTOMER MODAL
========================================================== */

.fb-new-customer-overlay {

    position: fixed;

    inset: 0;

    z-index: 100001;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    box-sizing: border-box;

    background: rgba(0, 0, 0, .02);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .25s ease,
        visibility .25s ease;

}

.fb-new-customer-overlay.active {

    opacity: 1;

    visibility: visible;

}

.fb-new-customer-backdrop {

    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, .55);

    backdrop-filter: blur(3px);

}

.fb-new-customer-panel {

    position: relative;

    z-index: 2;

    width: min(650px, 100%);

    max-height: 90vh;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: #FFFFFF;

    border: 1px solid #E5E5E5;
    border-radius: 14px;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, .20);

    transform:
        translateY(15px)
        scale(.985);

    transition:
        transform .25s ease;

}

.fb-new-customer-overlay.active
.fb-new-customer-panel {

    transform:
        translateY(0)
        scale(1);

}


/* ==========================================================
   NEW CUSTOMER HEADER
========================================================== */

.fb-new-customer-header {

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 18px;

    padding: 21px 23px;

    background: #FFFFFF;

    border-bottom: 1px solid #E9E9E9;

}

.fb-new-customer-eyebrow {

    display: block;

    margin-bottom: 4px;

    color: #C89B3C;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .06em;

}

.fb-new-customer-header h2 {

    margin: 0;

    color: #000000;

    font-size: 21px;
    font-weight: 700;

    line-height: 1.2;

}

.fb-new-customer-header p {

    margin: 6px 0 0;

    color: #777777;

    font-size: 11px;

    line-height: 1.45;

}

.fb-new-customer-close {

    width: 35px;
    height: 35px;

    min-width: 35px;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #000000;
    color: #C89B3C;

    border: 1px solid #000000;
    border-radius: 7px;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;

}

.fb-new-customer-close:hover {

    background: #C89B3C;
    color: #000000;

    border-color: #C89B3C;

}


/* ==========================================================
   NEW CUSTOMER BODY
========================================================== */

.fb-new-customer-body {

    flex: 1 1 auto;

    overflow-y: auto;

    padding: 23px;

}

.fb-new-customer-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 13px;

}

.fb-new-customer-field {

    min-width: 0;

}

.fb-new-customer-field-full {

    grid-column: 1 / -1;

}

.fb-new-customer-field label {

    display: block;

    margin-bottom: 6px;

    color: #000000;

    font-size: 10px;
    font-weight: 700;

}

.fb-new-customer-field input,
.fb-new-customer-field textarea {

    width: 100%;

    box-sizing: border-box;

    padding: 10px 12px;

    background: #FFFFFF;

    color: #000000;

    border: 1px solid #D8D8D8;
    border-radius: 8px;

    outline: none;

    font-size: 12px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;

}

.fb-new-customer-field input {

    min-height: 43px;

}

.fb-new-customer-field textarea {

    min-height: 100px;

    resize: vertical;

}

.fb-new-customer-field input::placeholder,
.fb-new-customer-field textarea::placeholder {

    color: #999999;

}

.fb-new-customer-field input:focus,
.fb-new-customer-field textarea:focus {

    border-color: #000000;

    box-shadow:
        0 0 0 3px rgba(200, 155, 60, .14);

}


/* ==========================================================
   NEW CUSTOMER MESSAGES
========================================================== */

.fb-new-customer-message {

    display: none;

    align-items: center;

    gap: 7px;

    margin-top: 14px;

    padding: 9px 11px;

    border-radius: 7px;

    font-size: 10px;

    line-height: 1.4;

}

.fb-new-customer-message.error {

    display: flex;

    background: #FBECEC;

    color: #B42318;

    border: 1px solid #F2C6C6;

}

.fb-new-customer-message.success {

    display: flex;

    background: #EAF7EF;

    color: #198754;

    border: 1px solid #C8E8D3;

}


/* ==========================================================
   NEW CUSTOMER ACTIONS
========================================================== */

.fb-new-customer-actions {

    display: flex;
    justify-content: flex-end;

    gap: 8px;

    margin-top: 19px;

    padding-top: 14px;

    border-top: 1px solid #EEEEEE;

}

.fb-new-customer-button {

    min-height: 41px;

    padding: 8px 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border: 1px solid #000000;
    border-radius: 7px;

    cursor: pointer;

    font-size: 11px;
    font-weight: 700;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;

}

.fb-new-customer-cancel {

    background: #000000;
    color: #C89B3C;

}

.fb-new-customer-cancel:hover {

    background: #C89B3C;
    color: #000000;

    border-color: #C89B3C;

}

.fb-new-customer-save {

    background: #C89B3C;
    color: #000000;

}

.fb-new-customer-save:hover {

    background: #000000;
    color: #C89B3C;

}

.fb-new-customer-save:disabled {

    opacity: .65;

    cursor: not-allowed;

}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 900px) {

    .fb-customer-card {

        grid-template-columns: 1fr;

        gap: 15px;

    }

    .fb-customer-card-action {

        justify-content: stretch;

    }

    .fb-customer-view {

        width: 100%;

    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

    .fb-customers-header {

        align-items: flex-start;

        flex-direction: column;

        gap: 13px;

    }

    .fb-customers-header-count {

        width: 100%;

        text-align: left;

    }

    .fb-customers-toolbar {

        align-items: stretch;

        flex-direction: column;

    }

    .fb-customer-primary-action {

        width: 100%;

    }

    .fb-customer-card {

        padding: 14px;

        border-radius: 9px;

    }

    .fb-customer-card-stats {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 7px;

    }

    .fb-customer-stat {

        padding-left: 8px;

    }

    .fb-customer-details-inline {

        padding: 17px;

    }

    .fb-customer-inline-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

    .fb-customer-edit-grid {

        grid-template-columns: 1fr;

        gap: 12px;

    }

    .fb-customer-edit-field-full {

        grid-column: auto;

    }

    .fb-customer-inline-actions {

        display: grid;

        grid-template-columns: 1fr 1fr;

    }

    .fb-customer-inline-action {

        width: 100%;

    }

    .fb-new-customer-overlay {

        align-items: flex-end;

        padding: 0;

    }

    .fb-new-customer-panel {

        width: 100%;

        max-height: 94vh;

        border-radius:
            14px
            14px
            0
            0;

    }

    .fb-new-customer-header {

        padding: 18px;

    }

    .fb-new-customer-body {

        padding: 18px;

    }

    .fb-new-customer-grid {

        grid-template-columns: 1fr;

    }

    .fb-new-customer-field-full {

        grid-column: auto;

    }

    .fb-new-customer-actions {

        display: grid;

        grid-template-columns: 1fr 1fr;

    }

    .fb-new-customer-button {

        width: 100%;

    }

}


/* ==========================================================
   SMALL PHONES
========================================================== */

@media (max-width: 480px) {

    .fb-customers-title {

        font-size: 22px;

    }

    .fb-customers-subtitle {

        font-size: 13px;

    }

    .fb-customer-card-identity {

        align-items: flex-start;

    }

    .fb-customer-avatar {

        width: 42px;
        height: 42px;

        min-width: 42px;

    }

    .fb-customer-contact {

        flex-direction: column;

        gap: 4px;

    }

    .fb-customer-card-stats {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

    .fb-customer-stat:last-child {

        grid-column: 1 / -1;

        padding-top: 8px;
        padding-left: 0;

        border-top: 1px solid #EEEEEE;
        border-left: none;

    }

    .fb-customer-view {

        min-height: 44px;

    }

    .fb-customer-details-inline {

        padding: 15px;

    }

    .fb-customer-inline-grid {

        grid-template-columns: 1fr;

        padding-right: 0;

    }

    .fb-customer-inline-actions {

        grid-template-columns: 1fr;

    }

    .fb-customer-booking-item {

        align-items: flex-start;

        flex-direction: column;

    }

    .fb-customer-booking-item .fb-customer-status {

        align-self: flex-start;

    }

    .fb-new-customer-header h2 {

        font-size: 19px;

    }

    .fb-new-customer-body {

        padding: 15px;

    }

    .fb-new-customer-actions {

        grid-template-columns: 1fr;

    }

}

/* ==========================================================
   FINAL CUSTOMER UI OVERRIDES
   Force Francherry Gold / Black / WhatsApp styling
========================================================== */


/* New Customer button */

.fb-customer-primary-action {
    background: #C89B3C !important;
    color: #000000 !important;
    border-color: #000000 !important;
}

.fb-customer-primary-action:hover {
    background: #000000 !important;
    color: #C89B3C !important;
    border-color: #000000 !important;
}


/* View Customer */

.fb-customer-view {
    background: #000000 !important;
    color: #C89B3C !important;
    border-color: #000000 !important;
}

.fb-customer-view:hover,
.fb-customer-view.active {
    background: #C89B3C !important;
    color: #000000 !important;
    border-color: #C89B3C !important;
}


/* Inline Close */

.fb-customer-details-inline
.fb-customer-inline-close {
    background: #000000 !important;
    color: #C89B3C !important;
    border-color: #000000 !important;
}

.fb-customer-details-inline
.fb-customer-inline-close:hover {
    background: #C89B3C !important;
    color: #000000 !important;
    border-color: #C89B3C !important;
}


/* Edit Customer / Inline Actions */

.fb-customer-inline-action {
    background: #000000 !important;
    color: #C89B3C !important;
    border-color: #000000 !important;
}

.fb-customer-inline-action:hover {
    background: #C89B3C !important;
    color: #000000 !important;
    border-color: #C89B3C !important;
}


/* WhatsApp */

.fb-customer-inline-action.fb-customer-whatsapp {
    background: #25D366 !important;
    color: #FFFFFF !important;
    border-color: #25D366 !important;
}

.fb-customer-inline-action.fb-customer-whatsapp:hover {
    background: #1DA851 !important;
    color: #FFFFFF !important;
    border-color: #1DA851 !important;
}


/* Edit Customer Save */

.fb-customer-edit-save {
    background: #C89B3C !important;
    color: #000000 !important;
    border-color: #000000 !important;
}

.fb-customer-edit-save:hover {
    background: #000000 !important;
    color: #C89B3C !important;
    border-color: #000000 !important;
}


/* New Customer Modal Close */

.fb-new-customer-close {
    background: #000000 !important;
    color: #C89B3C !important;
    border-color: #000000 !important;
}

.fb-new-customer-close:hover {
    background: #C89B3C !important;
    color: #000000 !important;
    border-color: #C89B3C !important;
}


/* New Customer Cancel */

.fb-new-customer-cancel {
    background: #000000 !important;
    color: #C89B3C !important;
    border-color: #000000 !important;
}

.fb-new-customer-cancel:hover {
    background: #C89B3C !important;
    color: #000000 !important;
    border-color: #C89B3C !important;
}


/* New Customer Create */

.fb-new-customer-save {
    background: #C89B3C !important;
    color: #000000 !important;
    border-color: #000000 !important;
}

.fb-new-customer-save:hover {
    background: #000000 !important;
    color: #C89B3C !important;
    border-color: #000000 !important;
}


/* Customer Avatar */

.fb-customer-avatar {
    background: #000000 !important;
    color: #C89B3C !important;
}


/* Search focus */

.fb-customers-search input:focus {
    border-color: #000000 !important;

    box-shadow:
        0 0 0 3px rgba(
            200,
            155,
            60,
            .15
        ) !important;
}

/* ==========================================================
   CUSTOMER DETAILS CLOSE ICON FIX
   Force visible X without relying on Font Awesome
========================================================== */

.fb-customer-details-inline .fb-customer-inline-close {
    position: absolute !important;

    top: 12px !important;
    right: 12px !important;

    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;

    padding: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #000000 !important;
    color: #C89B3C !important;

    border: 1px solid #000000 !important;
    border-radius: 6px !important;

    font-size: 0 !important;
    line-height: 1 !important;
}

/*
|--------------------------------------------------------------------------
| Hide Font Awesome icon
|--------------------------------------------------------------------------
*/

.fb-customer-details-inline .fb-customer-inline-close i {
    display: none !important;
}

/*
|--------------------------------------------------------------------------
| Draw X using CSS
|--------------------------------------------------------------------------
*/

.fb-customer-details-inline .fb-customer-inline-close::before {
    content: "×" !important;

    display: block !important;

    color: #C89B3C !important;

    font-family:
        Arial,
        Helvetica,
        sans-serif !important;

    font-size: 20px !important;
    font-weight: 400 !important;

    line-height: 1 !important;

    transform: translateY(-1px) !important;
}

/*
|--------------------------------------------------------------------------
| Hover
|--------------------------------------------------------------------------
*/

.fb-customer-details-inline
.fb-customer-inline-close:hover {
    background: #C89B3C !important;
    color: #000000 !important;
    border-color: #C89B3C !important;
}

.fb-customer-details-inline
.fb-customer-inline-close:hover::before {
    color: #000000 !important;
}