/*==============================
Responsive table
===============================*/

.responsive-table{
    width:100%;
    margin:30px 0;
}

.belarus-table{
    width:100%;
    border-collapse:collapse;
    border:1px solid #cfcfcf;
    background:#fff;
}

.belarus-table th,
.belarus-table td{

    border:1px solid #d7d7d7;
    padding:14px 16px;
    text-align:left;
    vertical-align:top;
    line-height:1.55;

}

.belarus-table thead tr:first-child th{

    background:#b89b5e;
    color:#fff;
    font-size:20px;
    text-align:center;

}

.belarus-table thead tr:nth-child(2) th{

    background:#f3f3f3;
    font-weight:600;

}
.table-title{

margin:25px 0;
padding:20px;

background:#f5f5f5;
border-left:4px solid #b89b5e;

line-height:1.5;

}

.table-title strong{

display:block;
font-size:20px;
margin-bottom:15px;

}

.table-title p{

margin:10px 0;

}

@media(max-width:768px){

.belarus-table,
.belarus-table thead,
.belarus-table tbody,
.belarus-table th,
.belarus-table td,
.belarus-table tr{
    display:block;
}

.belarus-table thead{
    display:none;
}

.belarus-table tr{
    margin-bottom:20px;
    border:1px solid #ddd;
    border-radius:10px;
    overflow:hidden;
}

.belarus-table td{

    border:none;
    border-bottom:1px solid #eee;

    padding:10px 15px 15px;

    text-align:left;

}

.belarus-table td:last-child{
    border-bottom:none;
}


/* ??????? ??? ?????????? */

.belarus-table td::before{

    content:attr(data-label);

    display:block;

    font-weight:700;

    font-size:13px;

    color:#777;

    margin-bottom:6px;

}


}

/* ================================
   PEDIGREE WRAPPER
   ================================ */

.vdg-pedigree-wrapper {
    width: 100%;
    box-sizing: border-box;
    padding: 25px 5px 35px;
    overflow-x: auto;
}


/* ================================
   MALE AND FEMALE PEDIGREE PAIR
   ================================ */

.vdg-pedigree-pair {
    display: flex;
    justify-content: center;
    align-items: flex-start;

    width: max-content;

    margin: 0 auto;

    gap: 45px;
}


/* ================================
   ONE PEDIGREE TREE
   ================================ */

.vdg-pedigree-tree {
    flex: 0 0 auto;
    width: auto;

    box-sizing: border-box;
}


/* ================================
   TREE NODE
   ================================ */

.vdg-node {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: auto;

    box-sizing: border-box;
}


/* ================================
   DOG CARD
   ================================ */

.vdg-dog {
    position: relative;

    width: 68px;
    min-height: 29px;

    padding: 4px 3px;

    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    border: 1px solid #c9a227;
    border-radius: 4px;

    color: #493a28;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 9px;
    line-height: 1.1;

    text-align: center;

    overflow-wrap: anywhere;

    z-index: 3;

    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.07);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* ================================
   MAIN DOG
   ================================ */

.vdg-main-dog {
    width: 90px;
    min-height: 34px;

    font-size: 11px;

    border: 1.5px solid #b8860b;

    z-index: 5;
}


/* ================================
   BOLD DOG NAMES
   ================================ */

.vdg-bold-dog {
    width: 76px;

    white-space: nowrap;
}


/* ================================
   MALE
   ================================ */

.vdg-male {
    background: #e8f4f8;
}


/* ================================
   FEMALE
   ================================ */

.vdg-female {
    background: #f9e8ed;
}


/* ================================
   CHILDREN CONTAINER
   ================================ */

.vdg-children {
    position: relative;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    width: auto;

    gap: 14px;

    margin-top: 30px;
}


/* ================================
   PARENT TO CHILDREN LINE
   ================================ */

.vdg-children::before {
    content: "";

    position: absolute;

    top: -30px;
    left: 50%;

    width: 1px;
    height: 15px;

    background: #b8860b;
}


/* ================================
   HORIZONTAL CHILDREN LINE
   ================================ */

.vdg-children::after {
    content: "";

    position: absolute;

    top: -15px;
    left: 50%;

    width: calc(100% - 68px);
    height: 1px;

    background: #b8860b;

    transform: translateX(-50%);
}


/* ================================
   VERTICAL LINES TO CHILDREN
   ================================ */

.vdg-children > .vdg-node::before {
    content: "";

    position: absolute;

    top: -15px;
    left: 50%;

    width: 1px;
    height: 15px;

    background: #b8860b;
}


/* ================================
   DEEPER GENERATIONS
   ================================ */

.vdg-children .vdg-children {
    margin-top: 28px;
    gap: 10px;
}


/* ================================
   FOURTH GENERATION CARDS
   ================================ */

.vdg-children .vdg-children .vdg-dog {
    width: 64px;
    min-height: 28px;

    font-size: 8.5px;
}


/* ================================
   HOVER
   ================================ */

.vdg-dog:hover {
    transform: translateY(-1px);

    box-shadow:
        0 3px 7px rgba(0, 0, 0, 0.12);
}


/* ================================
   MOBILE
   ================================ */

@media (max-width: 700px) {

    .vdg-pedigree-wrapper {
        padding: 20px 2px 30px;
        overflow-x: auto;
    }

    .vdg-pedigree-pair {
        justify-content: flex-start;
        gap: 18px;
    }

    .vdg-pedigree-tree {
        flex: 0 0 auto;
        width: auto;
    }

    .vdg-dog {
        width: 54px;
        min-height: 27px;

        padding: 3px 2px;

        font-size: 8px;
    }

    .vdg-main-dog {
        width: 70px;
        min-height: 29px;

        font-size: 9px;
    }

    .vdg-bold-dog {
        width: 58px;

        white-space: nowrap;
    }

    .vdg-children {
        width: auto;

        gap: 8px;
        margin-top: 25px;
    }

    .vdg-children::before {
        top: -25px;
        height: 13px;
    }

    .vdg-children::after {
        top: -12px;

        width: calc(100% - 54px);
    }

    .vdg-children > .vdg-node::before {
        top: -12px;
        height: 12px;
    }

    .vdg-children .vdg-children {
        margin-top: 24px;
        gap: 5px;
    }

    .vdg-children .vdg-children .vdg-dog {
        width: 50px;
        min-height: 26px;

        font-size: 7.5px;
    }

    .vdg-dog:hover {
        transform: none;

        box-shadow:
            0 1px 3px rgba(0, 0, 0, 0.07);
    }
}


/* ================================
   VERY SMALL PHONES
   ================================ */

@media (max-width: 380px) {

    .vdg-pedigree-pair {
        gap: 12px;
    }

    .vdg-dog {
        width: 50px;
        min-height: 25px;

        padding: 2px 1px;

        font-size: 7.5px;
    }

    .vdg-main-dog {
        width: 64px;
        min-height: 27px;

        font-size: 8.5px;
    }

    .vdg-bold-dog {
        width: 55px;

        white-space: nowrap;
    }

    .vdg-children {
        gap: 5px;
    }

    .vdg-children .vdg-children {
        gap: 3px;
    }

    .vdg-children .vdg-children .vdg-dog {
        width: 47px;
        min-height: 25px;

        font-size: 7px;
    }
}

/* ================================
   MOBILE SCROLL HINT
   ================================ */

.vdg-scroll-hint {
    display: none;
}

@media (max-width: 700px) {

    .vdg-scroll-hint {
        display: block;

        width: 100%;
        margin: 8px 0 0;

        text-align: center;

        color: #8a6a20;

        font-family: Georgia, "Times New Roman", serif;
        font-size: 9px;
        line-height: 1.3;

        letter-spacing: 0.5px;

        opacity: 0.75;
    }

}