/* ==========================================
   BLOOD TABLE
   Complex tables for book content
========================================== */

.blood-table-wrapper{
    width:100%;
    margin:30px auto;
}


.blood-table-title{

    text-align:center;
    font-size:20px;
    font-weight:bold;
    margin-bottom:20px;

}


.blood-table{

    width:100%;
    border-collapse:collapse;
    background:#fff;

}


.blood-table th,
.blood-table td{

    border:1px solid #d5d5d5;
    padding:10px;
    text-align:center;
    vertical-align:middle;

}


.blood-table th{

    background:#f3f3f3;

}


.blood-table td:first-child,
.blood-table th:first-child{

    text-align:left;

}


/* ===============================
   Mobile layout
================================ */


@media(max-width:768px){


.blood-table thead{

    display:none;

}


.blood-table,
.blood-table tbody,
.blood-table tr,
.blood-table td{

    display:block;
    width:100%;

}



.blood-table tr{

    margin-bottom:20px;

    border:1px solid #ddd;

    border-radius:10px;

    overflow:hidden;

}


.blood-table td{

    display:flex;

    justify-content:space-between;

    gap:15px;

    padding:10px;

    text-align:right;

    border:none;

    border-bottom:1px solid #eee;

}



.blood-table td:last-child{

    border-bottom:none;

}



.blood-table td::before{

    content:attr(data-label);

    font-weight:bold;

    color:#666;

    text-align:left;

}



}

/* ================================
   BLOOD CHARACTER TABLE
   ================================ */

.blood-character-table{
    width:100%;
    max-width:100%;
    margin:30px 0;
    box-sizing:border-box;
}

.blood-character-table table{
    width:100%;
    max-width:100%;
    border-collapse:collapse;
    border:1px solid #cfcfcf;
    background:#fff;
    table-layout:fixed;
}

.blood-character-table th,
.blood-character-table td{
    border:1px solid #d7d7d7;
    padding:12px 6px;
    text-align:center;
    vertical-align:middle;
    line-height:1.3;
    box-sizing:border-box;
}

.blood-character-table th{
    background:#f3f3f3;
    font-size:15px;
    font-weight:700;
    white-space:normal;
    overflow-wrap:normal;
    word-break:normal;
}

.blood-character-table td{
    font-size:18px;
}


/* ================================
   COLUMN WIDTHS
   ================================ */

.blood-character-table th:nth-child(1){
    width:7%;
}

.blood-character-table th:nth-child(2){
    width:8%;
}

.blood-character-table th:nth-child(3){
    width:7%;
}

.blood-character-table th:nth-child(4){
    width:8%;
}

.blood-character-table th:nth-child(5){
    width:8%;
}

.blood-character-table th:nth-child(6){
    width:7%;
}

.blood-character-table th:nth-child(7){
    width:6%;
}

.blood-character-table th:nth-child(8){
    width:5%;
}

.blood-character-table th:nth-child(9){
    width:5%;
}

.blood-character-table th:nth-child(10){
    width:5%;
}

.blood-character-table th:nth-child(11){
    width:6%;
}

.blood-character-table th:nth-child(12){
    width:6%;
}

.blood-character-table th:nth-child(13){
    width:7%;
}

.blood-character-table th:nth-child(14){
    width:7%;
}

.blood-character-table th:nth-child(15){
    width:9%;
}

.blood-character-table th:nth-child(16){
    width:5%;
}


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

@media(max-width:768px){

    .blood-character-table{
        width:100%;
        max-width:100%;
        margin:30px 0;
    }

    .blood-character-table table,
    .blood-character-table tbody,
    .blood-character-table tr,
    .blood-character-table td{
        display:block;
        width:100%;
        max-width:100%;
    }

    .blood-character-table thead{
        display:none;
    }

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

    .blood-character-table td{
        display:flex;
        justify-content:space-between;
        align-items:center;

        gap:15px;
        padding:11px 14px;

        text-align:right;
        font-size:16px;

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

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

    .blood-character-table td::before{
        content:attr(data-label);

        font-weight:700;
        color:#666;

        text-align:left;
        flex:1;
    }

}