// Table with fixed layout
.address-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    margin-left: 32px;
    table-layout: fixed; // This ensures columns maintain their width
}

// Fixed column widths
.avatar-column {
    width: 30px;
    vertical-align: top;
    padding-right: 12px;
}

.info-column {
    width: 400px; // Fixed width for address info
    vertical-align: top;
    padding-left: 12px;
    word-break: break-word;
}

.contact-column {
    width: 300px; // Fixed width for contact info
    vertical-align: top;
    padding-left: 20px;
    word-break: break-word;

}

.separator-row {
    padding-top: 6px;
    padding-bottom: 12px;
}

// Row styles
.name-row {
    margin-bottom: 4px;
}

.address-line {
    margin-bottom: 2px;
    min-height: 21px; // Maintain height even when empty
}

.pagination {
    position: relative;
    margin-top: 6px;
    margin-right: -14px;
    display: inline-flex;
    align-items: center;
}

.icon-style {
    width: 16px;
    height: 16px;
    justify-content: center;
    display: flex;
    align-content: center;
    flex-wrap: wrap;
    color: var(--action-primary-default);
}

.pagenumber {
    color: var(--action-primary-default);
    font-family: 'Helvetica';
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 18px;
    margin-right: 16px;
}

.pagebutton {
    color: var(--action-primary-default);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    margin-right: 10px;
    width: 48px;
    height: 32px;
    box-shadow: 0 1px 0px -2px rgba(0, 0, 0, 0.2), 0 0px 0px 0 rgba(0, 0, 0, 0.14), 0 0px 0px 0 rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

#prevprevbutton,
#nextnextbutton,
#prevbutton,
#nextbutton,
#addbutton,
#backbutton {
    color: var(--action-primary-default);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    width: 48px;
    height: 32px;
    box-shadow: 0 1px 0px -2px rgba(0, 0, 0, 0.2), 0 0px 0px 0 rgba(0, 0, 0, 0.14), 0 0px 0px 0 rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

::ng-deep.mat-raised-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 0px;
}

.add-button-container {
    margin-left: 25px;
    margin-top: 4px;
    position: relative;
}

button {
    background-color: var(--action-primary-default);
    color: white;
    padding: 4px 10px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.btn {
    font-family: Helvetica Neue;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0em;
    text-align: left;
    margin-left: -52px;
    width: 120px;
    height: 28px;
    color: white;
}

.imgeround {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background-color: var(--action-primary-default);
    flex-shrink: 0;
    text-align: center;
    padding-left: 0px;
    font-size: 20px;
    color: white;
    display: inline-block;
    padding-top: 4px;
}

.phone {
    font-family: Helvetica !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    letter-spacing: 0em;
    text-align: left;
    color: #6E3AB6;
}

.line4,
.line5 {
    font-family: Helvetica !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    letter-spacing: 0em;
    text-align: left;
    color: rgba(26, 26, 26, 0.87);
}

.mail,
.object {
    font-family: Helvetica !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    letter-spacing: 0em;
    text-align: left;
    color: rgba(26, 26, 26, 0.87);
}

.searchtext {
    outline: none;
    width: 100%;
    max-width: 450px;
    color: rgba(26, 26, 26, 0.87);
    background-color: #FBE8F8;
    font-family: Helvetica !important;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

::placeholder {
    color: rgba(26, 26, 26, 0.87);
    font-family: Helvetica !important;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.one {
    cursor: pointer;
}

.searchicon {
    font-size: 20px;
    cursor: pointer;
    color: #1A1A1A80;
}

.onee {
    width: 250px;
    display: none;
}

.two {
    width: 250px;
    display: inline-block;
    font-family: Helvetica !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    color: rgba(26, 26, 26, 0.87);
}

.three {
    width: 250px;
    display: inline-block;
    font-family: Helvetica !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    color: rgba(26, 26, 26, 0.87);
}

.onees {
    width: 250px;
    display: inline-block;
    font-family: Helvetica !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    color: rgba(26, 26, 26, 0.87);
}

.twos {
    width: 250px;
    display: none;
}

.mailmobs {
    display: none;
}

.objectobjects {
    display: none;
}

.threes {
    width: 250px;
    display: inline-block;
}

.phonemob {
    display: none;
}

.mailmails {
    display: none;
}
.separator-tbody {
    pointer-events: none; // Prevents clicking on the separator
}

.separator-tbody .separator-row hr {
    margin: 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}
.HorziontalLineone {
    width: 300px;
    margin-left: 32px;
    margin-bottom: 8px;
}

.phonephone {
    display: none;
}

.mailmail {
    display: none;
}

.objectobject {
    display: none;
}

.name {
    color: rgba(26, 26, 26, 0.87);
    font-family: Helvetica !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0em;
    text-align: left;
    display: none;
}

.Name {
    color: rgba(26, 26, 26, 0.87);
    display: block;
    font-family: Helvetica !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0em;
    text-align: left;
    width: 600px;
}

.Container {
    max-height: var(--Tableheight);
    overflow-y: auto;
    margin-right: 40px;
    scrollbar-width: thin;
    scrollbar-color: #6E3AB6 #f4f4f4;
    overflow-x: hidden;
    margin-top: 20px;
}

.search-container {
    display: flex;
    margin-bottom: 5px;
    margin-top: 10px;
    border-bottom: 1px solid #1A1A1A52;
    width: 100%;
    max-width: 450px;
    margin-left: 32px;
}

.three-column-container {
    display: flex;
    margin-top: 5px;
    margin-left: 20px;
}

.containerbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    border: 1px solid #f4f4f4;
    background-color: #f4f4f4;
    width: 100%;
    margin-left: 8px;
    margin-right: 8px;
    margin-bottom: 5px;
}

// Responsive styles (keep your existing media query classes)
@media (max-width: 768px) {
    .Name {
        display: none;
    }
    
    .name {
        display: block;
        padding-left: 15px;
    }
    
    .phonephone {
        display: inline;
    }
    
    .onee {
        display: inline-block;
    }
    
    .onees {
        display: none;
    }
    
    .phonemob {
        display: inline;
    }
    
    .mailmail {
        display: inline;
    }
    
    .mailmails {
        display: none;
    }
    
    .objectobject {
        display: inline;
    }
    
    .objectmob {
        display: inline;
    }
}

/* ==========================
   RESPONSIVE DESIGN
========================== */

/* Tablet */
@media screen and (max-width: 992px) {

    .address-table {
        width: 100%;
        margin-left: 0;
        table-layout: auto;
    }

    .avatar-column {
        width: 60px;
    }

    .info-column,
    .contact-column {
        width: auto;
    }

    .search-container {
        width: 100%;
        margin-left: 0;
    }

    .searchtext {
        width: 100%;
    }

    .Container {
        margin-right: 0;
    }

    .Name {
        width: 100%;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {

    .address-table,
    .address-table tbody,
    .address-table tr,
    .address-table td {
        display: block;
        width: 100%;
    }

    .address-table {
        margin-left: 0;
    }

    .containerbox {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
        margin-left: 0;
    }

    .avatar-column {
        width: 100%;
        padding-right: 0;
        text-align: center;
        margin-bottom: 10px;
    }

    .info-column,
    .contact-column {
        width: 100%;
        padding-left: 0;
        margin-bottom: 10px;
    }

    .imgeround {
        margin: auto;
    }

    .Name {
        display: none;
    }

    .name {
        display: block;
        padding-left: 0;
        margin-bottom: 8px;
    }

    .phonephone,
    .phonemob,
    .mailmail,
    .objectobject,
    .onee {
        display: inline;
    }

    .onees,
    .mailmails {
        display: none;
    }

    .search-container {
        width: 100%;
        margin-left: 0;
    }

    .searchtext {
        width: 100%;
    }

    .three-column-container {
        flex-direction: column;
        margin-left: 0;
    }

    .two,
    .three,
    .onee,
    .onees,
    .twos,
    .threes {
        width: 100%;
        display: block;
        margin-bottom: 5px;
    }

    .pagination {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
    }

    .pagebutton,
    #prevprevbutton,
    #nextnextbutton,
    #prevbutton,
    #nextbutton,
    #addbutton,
    #backbutton {
        width: 40px;
        height: 32px;
    }

    .add-button-container {
        margin-left: 0;
        margin-top: 10px;
    }

    .HorziontalLineone {
        width: 100%;
        margin-left: 0;
    }

    .Container {
        margin-right: 0;
        overflow-x: hidden;
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {

    .containerbox {
        padding: 10px;
    }

    .imgeround {
        width: 36px;
        height: 36px;
        font-size: 16px;
        padding-top: 6px;
    }

    .name,
    .Name {
        font-size: 14px;
        line-height: 20px;
    }

    .phone,
    .mail,
    .object,
    .line4,
    .line5 {
        font-size: 13px;
        line-height: 18px;
        word-break: break-word;
    }

    .searchtext {
        font-size: 13px;
    }

    .pagination {
        gap: 4px;
    }

    .pagebutton,
    #prevprevbutton,
    #nextnextbutton,
    #prevbutton,
    #nextbutton,
    #addbutton,
    #backbutton {
        width: 36px;
        height: 30px;
    }
}