.male {
    color: red !important;
}

.female {
    color: blue !important;
}

.wife-husband {
    color: rgb(102, 102, 102);
}

.giapha {
    z-index: 0;
    display: grid;
    grid-auto-flow: row;
    gap: 4rem;
    position: absolute;
    padding: 1rem;
    transform-origin: 0 0; /* Điểm gốc để scale */
    transition: transform 0.1s ease; /* Hiệu ứng mượt mà khi zoom */
}

.grid-row {
    align-self: center;
    /*justify-self: center;*/
    display: grid;
    grid-auto-flow: column;
    gap: 2.5rem;
}

.grid-group {
    display: grid;
    grid-auto-flow: column;
    gap: 0.5rem;
}

.giapha-horizontal {
    display: grid;
    grid-auto-flow: column;
    gap: 4rem;
    position: absolute;
    padding: 1rem;
}

.grid-column-horizontal {
    align-self: center;
    /*justify-self: center;*/
    display: grid;
    grid-auto-flow: row;
    gap: 2.5rem;
}

.grid-group-horizontal {
    display: grid;
    grid-auto-flow: row;
    gap: 0.5rem;
}

.connect-line {
    position: absolute;
    width: 1px;
    background-color: red;
}

.grid-item {
    border: 1px solid;
    border-radius: 7px;
    align-self: center;
    justify-self: center;
    display: flex;
    height: 100%;
}

.grid-item:hover {
    background-color: #f0f0f0;
}

.grid-item-horizontal {
    border: 1px solid;
    border-radius: 7px;
    align-self: center;
    justify-self: center;
    display: flex;
    width: 100%;
}

.show {
    display: block;
    position: relative;
    z-index: 10;
}

.hide {
    display: none;

}

.dropdown-content.show {
    position: absolute;
}

.person-item {
    margin: 0.3rem;
    flex: 1;
    width: min-content;
    text-align: center;
    align-self: center;
    user-select: none;
}

.person-item-horizontal {
    margin: 0.3rem;
    flex: 1;
    width: max-content;
    text-align: center;
    align-self: center;
}

.male {
    color: red !important;
}

.female {
    color: blue !important;
}

.wife-husband {
    color: rgb(102, 102, 102);
}
@media only screen and (max-width: 480px){
    .ant-form-item {
        margin-bottom: 0px;
    }
}
