/*//////////////////client accounts styles
*/
.client_container{
    display: flex;
    min-height: 80vh;
    flex-direction: row;
    justify-content: start;
    justify-self: center;
    width: clamp(45rem, 11.0737rem + 70.7719vw, 96rem);
    column-gap: 20px;
}
.client_sidebar{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    row-gap: 8px;
    min-width: 20%;
    border: 1px solid var(--ID-color-primary) ;
    border-radius: 6px;
    flex: 0 1 auto;
    margin:0;
    padding:0;
}


.user-panel{
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    align-self: center;
    background-color: var(--ID-color-background);
    width: 100%;
    row-gap: 16px;
    padding: 8px 8px 16px 8px;
    border-bottom: 1px solid var(--ID-color-primary) ;
    flex: 1 1 auto;
    max-height: 19rem;
}

.client-section-title{
    color: var(--ID-color-primary);
    cursor: pointer;
    user-select: none;
    margin-top: 24px;
}
.avatar-container{
    display:flex;
    justify-content: center;
    align-items: center;
    width: 8rem;
    overflow: hidden;
    height:8rem;
    border-radius: 50%;
}
.client-avatar{
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

#edit-info{
    margin-top: 20px;
}

.job-buttons{
    margin-left: 16px;
    min-width: 85%;
    max-width: 95%;
    flex: 1 1 auto;
}

.job-container{
    display: flex;
    flex-direction: column;
}
.instructions-text{
    color: var(--ID-color-cyan);
}
.job-dropdown{
    height: 0;
    overflow:hidden;
    opacity: 0;
    transition: 0.75s;
    margin-top:-1rem;
    row-gap: -1rem;
}
.data-container{
    display: flex;
    flex-direction: column;

}
.category-expand{
    display: flex;
    height: auto;
    opacity: 1;
    margin-top: 0;
    flex-direction: column;
    justify-content: flex-end;
    width:fit-content;
    align-self: center;
    row-gap: 16px;
}
.category-item{
    padding: 4px 12px 4px 12px;
    margin: 0;
}
.category-item-btn{
    width: 85%;

}

.client_data{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    row-gap: 8px;
    min-width: 75%;
    border: 1px solid var(--ID-color-primary) ;
    border-radius: 6px;
    padding: 16px 16px 32px 16px;
}
.category-data{
    height: 0;
    overflow:hidden;
    opacity: 0;
    transition: 0.75s;
    margin-top:0;
    row-gap: 0;
}
.expand-no-border{
    border: none;
}
.expand-border{
    border: 1px solid var(--ID-color-primary);
    border-radius: 6px;
}
.category-data-expand{
    display: flex;
    opacity: 1;
    flex-direction: column;
    flex: 1 1 auto;
    row-gap: 16px;
    min-width: 75%;
    max-width:97%;
    height: auto;
    margin-top: 24px;
    padding: 8px 8px 16px 8px; 
    transition: 0.75s;
}
.sub-category-data-expand{
    display: flex;
    opacity: 1;
    flex-direction: column;
    flex: 1 1 auto;
    row-gap: 16px;
    min-width: 75%;
    height: auto;
    padding: 4px 4px 8px 4px; 
    transition: 0.75s;
}
.upload-item-collapse{
    transition: .75s;
    opacity: 0;
    display: none;
}
.upload-icon{
    width: 1.2rem;
    height: 1.2rem;
    fill: var(--ID-color-primary);
    
}
.upload-icon-expand{
 	transform:rotate(-90deg);
    margin-bottom: -4px;

}
.upload-icon-collapse{
    margin-bottom: -8px;
    transform:rotate(90deg);

}

.category-data-collapsed{
    opacity: 0;
    row-gap: 0;
    height: 0;
    margin-top: 0;
    transition: 0.75s;
}
.data-row{
    display: flex;
    flex-direction: row;
    margin-left: 5%;
    margin-bottom: 8px;
}

.data-item-name{
    width: auto;
    overflow-wrap: normal;
    hyphens: none; 
    flex: 0 2 auto;
}

.data-item-sep{
    flex: 1 1 auto;
    border-bottom: 1px dashed var(--ID-color-white);
    height: 1.5rem;
}
.data-item-status{
    width: fit-content;
    justify-self: center;
    flex: 1 0.5 auto;
}
.data-item-functions{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    padding-left: 8px;
    padding-right: 8px;
    column-gap: 6px;
    width: 10rem;
}
.data-item-icon{
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 4px;
    padding: 2px;
    background-color: var(--ID-color-background);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    cursor: pointer;
}
.data-item-icon a{
    height: 100%;
    width: 100%;
    align-self: center;
    vertical-align: center;
}
.data-item-icon img{
    width: 100%;
    object-fit: cover;
}

.input-item-container{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    column-gap: 8px;
    margin-bottom: 12px;
}

.input-item{
    transition: .75s;
    opacity: 1;
    display: flex;
    flex-direction: column;
    row-gap: 4px;
    column-gap: 4px;
}
.input-item-quad{
    min-width: 22%;
    flex: 1 1 auto;
    column-gap: 16px;
}
.input-item-triple{
    min-width: 30%;
    flex: 1 1 auto;
}
.input-item-double{
    min-width: 42%;
    flex: 1 1 auto;
}
.input-item-single{
    transition: .75s;
    opacity: 1;
    width: 95%;
    display: flex;
    flex-direction: column;
    row-gap: 4px;
    flex: 1 1 auto;
}


.input-upload-field{
    width: 80% !important;
}
.avatar-form{
    width: 100%;
    display: flex;
    flex-direction: row;
    column-gap: 4px;
    flex: 1 1 auto;
}
#avatar-btn, form .ion-form-btn{
    letter-spacing: 0.05rem;
    line-height: .5rem;
    font-weight: 600;
    color:#efefef !important;
    background-color:var(--ID-color-siteBackground) !important;
    outline: none;
    height: 35px;
    max-width: 20%;
    flex: 1 1 auto;
    align-items: center;
    align-self: center;
    padding: 8px 20px 8px 20px;
    transition: 300ms;
    border-radius: 4px !important;
}
#avatar-btn:hover, form .ion-form-btn:hover{
    background-color: var(--ID-color-links) !important;
    transform: scale(1.025);
    box-shadow: 0 0 12px var(--ID-color-primary);
}
.admin-container{
    display: flex;;
    flex-direction: row;
    justify-content: space-between;
    justify-self: center;
    width: clamp(45rem, 11.0737rem + 70.7719vw, 96rem);
    column-gap: 20px;
}
.admin-search-form{
    width: 100%;
    display: flex;
    flex-direction: row;
    column-gap: 6px;
}
.admin-search-bar{
    display: flex;
    flex-direction: row;
    column-gap: 16px;
    flex: 1 1 auto;
    max-width: 75%;
    justify-content: center;
    align-items: center;
    align-content: center;
    align-self: flex-end;
    flex-wrap: nowrap;
    margin-bottom: 30px;
}
.admin-search-title{
    max-width: 20%;
    flex: 1 1 auto;
}
.admin-errorBox{
    width: 80%;
    justify-self: center;
    display: flex;
    flex-direction: column;
    margin-top: 30px;
    padding: 12px;
    border: 0.05rem solid var(--ID-color-error);
    background-color: rgba(53, 16, 16, 0.300);
}
/* uploading modal */

.client-modal{
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
}

#client_uploadModal .client-modal-overlay {
    background: rgba(0, 0, 0, 0.5);
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100vh;
}

#client_uploadModal .client-modal-content {
    background: var(--ID-color-grey-lt);
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
    min-width: 330px;
    height: fit-content;
    margin: auto;
    position: relative;
    z-index: 10000;
}
#client_uploadModal .client-modal-title{
    color: var(--ID-color-white);
    font-weight: 500;
}
#client_uploadModal .client-modal-span{
    color: var(--ID-color-primary);
    font-weight: 700;
}
#client_uploadModal .client-modal-text{
    color: var(--ID-color-cyan);
    font-weight: 400;
    margin-top: -8px;
}


/* Simple spinner */
.client-spinner {
    margin: 15px auto;
    width: 40px;
    height: 40px;
    border: 4px solid var(--ID-color-white);
    border-top: 4px solid var(--ID-color-primary); /* WP blue */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/*MEDIA QUERIES*/
@media only screen and (min-width: 801px) and (max-width: 1024px)
{
    .data-row{
        flex-wrap: wrap;
    }
    .data-item-name{
            flex: 0 2 auto;
            hyphens: auto; /* Enable hyphenation on smaller screens */
            word-break: break-word; 
        }
    .data-item-status{
        flex: 1 0.5 auto;
    }
}

 @media only screen and (max-width: 800px) {
    #id_page_parent{
        overflow-x: scroll; 
    }
    #client_data_container_parent{
        align-self: start;
    }
    .category-data-expand{
        padding: 0 0 0 0;
        max-width: none;
        width: 100%;
    }
    .client_container{
        width: 95%;
        flex-direction: column;
        min-height: none;

    }
    .client_sidebar{
        min-height: none;
        width: 100%;
        margin-bottom: 24px;

    }
    .job-container{
        margin-bottom: 16px;
    }
    .input-item-container{
        width: 100%;
        flex-wrap: wrap;
    }
    .input-item-single{
    width: 100%;
    }
    .ion-input{
        width: 100%;
        height: 1.5rem !important;
        margin-bottom: 8px;
        border-radius: 3px;
    }
    .ion-input[type='file']{
        max-width: 100% !important;
        width: 100%;
        height: 1.5rem;
        margin-bottom: 8px;
        border-radius: 3px;

    }
    .ion-btn{
        max-width: none;
    }
    .ion-form-btn{

        max-width: 100% !important;
    }
   .data-item-name{
        flex: 0 2 auto;
        hyphens: auto; /* Enable hyphenation on smaller screens */
        word-break: break-word; 
    }
    .data-item-status{
        flex: 1 0.5 auto;
    }
} 
