.fate-mp {
    font-size: 1.2rem;
}

#Year-chars table {
    margin-bottom: 0!important;
}

.fate-mp .pillar table td,
.fate-mp .pillar table th {
    padding: .25rem!important;
}

.fate-mp .pillar table td.shen-sha {
    line-height: 1;
    min-height: 8rem;
}

#fate .fate-mp {
    /*max-width: 930px!important;*/
}

.mp-main>div {
    line-height: 1.6;
}

.fate-mp .list-group-item {
    background-color: transparent;
}

.pillar .Tips {
    max-width: 2rem;
}

.pillar .list-group-item {
    padding: .125rem;
}

.pillar .col.order-first>div {
    border-right: 1px solid rgba(0, 0, 0, .25)!important;
}

.pillar .list-group-item .small {
    line-height: 2.2;
}

.pillar .list-group-item .lead {
    font-size: 1.4rem;
}

.pillar .list-group-item.shen-sha {
    height: 9.9rem;
    padding: .25rem;
}

.pillar .list-group-item.shen-sha>.row>.col.row>.col {
    font-size: 90%;
    line-height: 1.05;
    margin-bottom: .25rem;
    text-align: center;
    max-width: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.pillar .list-group-item.shen-sha>.row>.col.row>.col::after {
    content: ',';
    display: block;
    line-height: .75;
    margin-top: -.25rem;
}

.pillar .list-group-item.shen-sha>.row>.col.row>.col:nth-child(odd) {
    color: purple;
}

.pillar .list-group-item.shen-sha>.row>.col.row>.col:last-child {
    margin-bottom: 0;
}

.pillar .list-group-item.shen-sha>.row>.col.row>.col:last-child::after {
    content: ''!important;
    line-height: 0;
    margin-top: 0;
}

.pillar .mainstar.list-group-item,
.pillar .secstar.list-group-item {
    height: 3.7rem;
    line-height: 1.4;
}

.pillar .secstar.list-group-item span {
    max-width:1.2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.pillar .fourpillars.list-group-item {
    height: 5rem;
}
.pillar .Tips .fourpillars.list-group-item {
    line-height: 1.9;
}
.pillar .Tips .list-group-item.shen-sha {
    line-height: 1.8;
}

.pillar .canggan.list-group-item,
.pillar .yun.list-group-item,
.pillar .nayin.list-group-item {
    height: 2rem;
}

.pillar table td {
    width: 23%;
}

.pillar table th {
    width: 8%;
}

.hostexam .col {
    line-height: 1.3;
}

.dayun div[data-dykey] .list-group {
    min-width: 4.2rem;
}

.house>div {
    line-height: 1.44;
}


/*
.DaYunList .dayun div[data-dykey] .list-group {
    max-width: 4rem;
    min-width: 4rem;
}
*/

.DaYunList .dayun .list-group-item {
    background-color: transparent;
}

.dayun .list-group-item {
    padding: .125rem;
}

.dayun div[data-dykey] .list-group {
    border-right: 1px solid rgba(0, 0, 0, .25)!important;
}

.dayun .list-group-item.small span {
    font-size: 80%!important;
}

.dayun .list-group-item .small {
    font-size: 80%!important;
}

.dayun .list-group-item:nth-child(n+1) {
    line-height: 1.4rem;
}

.dayun .list-group-item:nth-child(1) {
    height: 1.75rem;
}

#Year-chars .dayun .list-group-item:nth-child(n+1) {
    line-height: 1.5rem;
}

.dayun .list-group-item:nth-child(n+5) {
    border-bottom: 0!important;
}

.twelve-gon .gondg div.d-flex ul[class] {
    min-width: 3rem;
}

.twelve-gon .gondg .list-group-item {
    padding: .125rem;
    border-right: 1px solid rgba(0, 0, 0, .25)!important;
    /*width: 3.4rem;*/
}

.twelve-gon .gondg .list-group-item.shen-sha>.row>.col.row>.col {
    font-size: 90%;
    line-height: 1.05;
    margin-bottom: .25rem;
    text-align: center;
}

.twelve-gon .gondg .list-group-item.shen-sha>.row>.col.row>.col::after {
    content: ',';
    display: block;
    line-height: .75;
    margin-top: -.25rem;
}

.twelve-gon .gondg .list-group-item.shen-sha>.row>.col.row>.col:nth-child(odd) {
    color: purple;
}

.twelve-gon .gondg .list-group-item.shen-sha>.row>.col.row>.col:last-child {
    margin-bottom: 0;
}

.twelve-gon .gondg .list-group-item.shen-sha>.row>.col.row>.col:last-child::after {
    content: ''!important;
    line-height: 0;
    margin-top: 0;
}

.twelve-gon .Tips .list-group-item {
    padding: .125rem .1rem;
    max-width: 2rem;
}

.twelve-gon .gondg .list-group-item:last-child {
    border-bottom: 0!important;
}

.twelve-gon .gondg .list-group-item span.gname {
    margin: 0 auto;
    display: block;
    line-height: 1.1;
    word-break: keep-all;
}

.twelve-gon .Tips .list-group-item:nth-child(1),
.twelve-gon .Tips .list-group-item:nth-child(3) {
    line-height: 1.1;
}

.fate-mp .feature table td {
    padding: .25rem .5rem;
    line-height: 1.32;
}

.twelve-gon .shen-sha {
    height: 21rem;
}

.fate-mp .dayun>div {
    cursor: pointer;
}

.twelve-gon .shen-sha span {
    padding: .075rem;
    line-height: 1;
    margin-bottom: .125rem;
    background-color: #f7efee;
    border-radius: .25rem;
    font-size: 80%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.twelve-gon .gondg .list-group-item.shen-sha span {
    display: block;
    width: 1.5rem;
}

.sixty-chart .border>div {
    line-height: 1.1;
    font-size: 1.0rem;
    width: 1.2rem;
    margin-left: auto;
    margin-right: auto;
}

.sixty-chart .text-navyblue {
    padding: 0;
    margin-left: auto;
    margin-right: auto;
}

.sixty-chart .border .small span {
    font-size: 90%!important;
}

.list-group-item {
    border: 1px solid rgba(0, 0, 0, .25);
}

.sixty-chart .border {
    border: 1px solid rgba(160, 160, 187, .35)!important;
}

#DaYun .modal-body .table {
    margin-bottom: 0;
}

#DaYun .modal-body .table td.shishen {
    font-size: 1.25rem;
}

#DaYun .modal-body .Pillars .table td {
    width: 20%;
}

#DaYun .modal-body .Liunian .col-12 .table td.shishen span {
    display: block;
}

#tab-DaYun .chart-Liunian.table,
#tab-DaYun .chart-Liuyue.table {
    margin-bottom: 0;
}

#tab-DaYun .chart-Liunian.table * {
    line-height: 1.25;
    font-size: 1.2rem;
}

#tab-DaYun .chart-Liuyue.table * {
    line-height: 1.45;
    font-size: 1.1rem;
}

#tab-DaYun .chart-Liunian.table td {
    padding: .075rem;
    max-width: 3.8rem;
    min-width: 3.8rem;
}

#tab-DaYun .chart-Liunian.table td span {
    width: 1.1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#tab-DaYun .chart-Liuyue.table td {
    padding-left: .125rem;
    padding-right: .125rem;
    max-width: 3.7rem;
    min-width: 3.7rem;
}

#tab-DaYun .chart-Liuyue.table td span{
    width: 1.1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#tab-DaYun .chart-Liunian.table .col {
    max-width: 1.2rem;
    margin: 0 auto;
}

#tab-DaYun .chart-Liuyue.table span {
    font-size: 1.0rem;
}

#tab-DaYun .chart-Liunian.table .small,
#tab-DaYun .chart-Liuyue.table .small {
    font-size: 85%!important;
}

#tab-DaYun .chart-Liuyue.table td.month.small {
    font-size: 70%!important;
}

#tab-DaYun .chart-Liunian.table td {
    cursor: pointer;
}

.chart-Liuyue.table-responsive {
    overflow-y: hidden;
}

#Year-chars td {
    line-height: 1.2;
}

#Year-chars .Master-info>div {
    font-size: 1.35rem;
}

#Year-chars .Master table td {
    min-width: 3.5rem;
}

#Year-chars .Master table th {
    min-width: 1rem;
    width: 1rem;
}

#Year-chars .DaYunList table td {
    min-width: 3.35rem;
    width: 3.35rem;
}

#Year-chars .DaYunList table td:nth-child(odd) {
    background-color: #fffff9!important;
}

#Year-chars .DaYun table td {
    min-width: 4rem;
    width: 4rem;
}

#Year-chars .d-flex:nth-child(even) .DaYun table {
    background-color: #fffff9!important;
}

#Year-chars .Liunian table {
    direction: rtl;
}

#Year-chars .Liunian table td {
    direction: ltr;
}

#Year-chars .Liunian table td {
    min-width: 81px;
    width: 81px!important;
}

#Year-chars .DaYunList table td,
#Year-chars .Master table td,
#Year-chars .Liunian table td,
#Year-chars .DaYun table td {
    padding: .125rem 0;
}

#Year-chars .DaYun table tr:first-child td {
    height: 1.5rem;
    vertical-align: middle;
}

#Year-chars .Liunian table td:nth-child(even) {
    background-color: #f6f9fc;
}

#pills-PediatricCalamity table tr:nth-child(even),
#pills-BaziShenSha table tr:nth-child(even) {
    background-color: #f1f7fa!important;
}
@media (min-width: 577px) and (max-width: 767px) {
    .fate-mp .pillar li.mainstar.list-group-item .row>div.col{
        max-width: 1.2rem!important;
    }
    .fate-mp .pillar li.canggan.list-group-item .row>div.col{
        max-width: 1.2rem!important;
    }
    .fate-mp .pillar li.secstar.list-group-item .row>div.col{
        max-width: 1.2rem!important;
    }
    .like>.col {
        line-height: 1.38!important;
    }
    .dayun table th span,
    .dayun table td span{
        max-width: 1.2rem!important;
        display: block!important;
        margin-left: auto!important;
        margin-right: auto!important;
    }
    .hostexam .col.d-flex>div{
        max-width: 1.2rem!important;
        display: block!important;
        margin-left: auto!important;
        margin-right: auto!important;
    }
    .hostexam .col.order-first{
        max-width: 1.8rem!important;
        min-width: 1.8rem!important;
        display: block!important;
        margin-left: auto!important;
        margin-right: auto!important;
    }
    .pillar .list-group-item.shen-sha {
        height: 11rem!important;
    }
    .pillar .list-group-item .lead {
        font-size: 1.25rem;
    }
    .pillar .list-group-item.shen-sha>.row>.col.row>.col {
        font-size: 100%!important;
    }
    .fate-mp .feature table td {
        line-height: 1.2!important;
    }
    .fate-mp .feature table td span{
        max-width: 1.2rem!important;
        display: block!important;
        margin-left: auto!important;
        margin-right: auto!important;
    }
}
@media (min-width: 576px) and (max-width: 740px) {
    .fate-mp {
        font-size: 1.1rem!important;
    }
    .pillar .list-group-item .lead {
        font-size: 1.5rem;
    }
}
@media (min-width: 575px) and (max-width: 991px) {
    .fate-mp {
        font-size: 1rem;
    }
    .pillar .list-group-item .lead {
        font-size: 1.2rem;
    }
    .pillar .fourpillars.list-group-item {
        height: 4.2rem;
    }
    .pillar .mainstar.list-group-item,
    .pillar .secstar.list-group-item {
        height: 3rem;
        line-height: 1.3;
    }
    #tab-DaYun .chart-Liunian.table .col {
        max-width: 1.2rem;
    }
    .chart-Liunian {
        margin-top: .25rem;
        margin-bottom: .9rem;
    }
    .pillar .list-group-item.shen-sha span {
        font-size: 80%;
    }
    .pillar .list-group-item.shen-sha {
        height: 8rem;
    }
    .fate-mp .dayun {
        font-size: 1rem;
    }
    .fate-mp .dayun .lead{
        font-size: 110%;
    }
    .like {
        line-height: 1.655;
    }
    .fate-mp .feature table td {
        line-height: 1.37;
    }
    .twelve-gon .shen-sha {
        height: 22.3rem;
    }
    .pillar .list-group-item.shen-sha>.row>.col.row>.col {
        font-size: 80%;
    }
    .dayun div[data-dykey] .list-group {
        min-width: 3.5rem;
        max-width: 3.5rem;
    }
    .dayun .list-group-item:nth-child(n+1) {
        line-height: 1.2rem;
    }
    #tab-DaYun .chart-Liunian.table * {
        font-size: 1.1rem!important;
    }

    #tab-DaYun .chart-Liuyue.table * {
        font-size: 1rem!important;
    }
    #tab-DaYun .chart-Liunian.table td {
        padding: .125rem!important;
    }
    #tab-DaYun .chart-Liuyue.table td {
        padding: .125rem 0;
        font-size: .9rem;
        max-width: 3.3rem;
        min-width: 3.3rem;
    }
}

@media (min-width: 160px) and (max-width: 740px){
    .fate-mp {
        font-size: 1.1rem;
    }
    .fate-mp .feature table th span,
    .fate-mp .feature table td span{
        max-width: 1rem;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    .pillar .mainstar.list-group-item span{
        max-width: 1.2rem;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    .pillar .secstar.list-group-item span{
        max-width: 1.2rem;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    .pillar .mainstar.list-group-item,
    .pillar .secstar.list-group-item {
        height: 3.3rem;
    }
    .pillar .fourpillars.list-group-item {
        height: 5.5rem;
    }
    .pillar .list-group-item .lead {
        font-size: 1.6rem;
    }
    .pillar .list-group-item .small {
        font-size: 90%;
        max-width: 1.2rem;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    .Wxsqx .nav-item {
        line-height: 1.1;
    }
    .XiWx .nav-item {
        line-height: 1.1;
    }
    .house>div {
        line-height: 1.47;
    }
    .hostexam .col.d-flex>div{
        max-width: .9rem;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    .hostexam .col.order-first{
        max-width: 1.4rem;
        min-width: 1.4rem;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
    .dayun div[data-dykey] .list-group {
        min-width: 3.5rem;
    }
    .dayun .text-primary.lead{
        font-size: 1.1rem;
    }
    #tab-DaYun .chart-Liunian.table .col.text-brown {
        max-width: 1rem;
    }
    #tab-DaYun .chart-Liunian.table .col {
        max-width: .8rem;
    }
    .twelve-gon .shen-sha {
        height: 17.2rem;
    }
    #tab-DaYun .chart-Liunian.table * {
        font-size: 1rem!important;
    }
    #tab-DaYun .chart-Liuyue.table * {
        font-size: 1rem!important;
    }
    #tab-DaYun .chart-Liunian.table td {
        padding: .05rem;
        max-width: 3.5rem;
        min-width: 3.5rem;
    }
    #tab-DaYun .chart-Liuyue.table td {
        padding: .125rem 0;
        font-size: .9rem;
        max-width: 3.1rem;
        min-width: 3.1rem;
    }
    .dayun div[data-dykey] .list-group {
        min-width: 3.9rem!important;
    }
    #tab-DaYun .chart-Liunian.table .col {
        max-width: 1rem!important;
    }
    .twelve-gon .shen-sha {
        height: 21.35rem!important;
    }
    #tab-DaYun .chart-Liuyue.table * {
        font-size: .9rem!important;
    }
    #tab-DaYun {
        height: 34.25rem!important;
    }
    #tab-DaYun .chart-Liuyue.table td.month.small {
        font-size: 80%!important;
    }
    .fate-mp .feature table td {
        padding: .25rem 0;
    }
    div.chart-Liunian{
        margin-bottom: 1rem;
    }
}

@media print {
    .table-responsive .chart-Liuyue.table {
        font-size: 65%;
    }
    #tab-TwelveGon {
        display: block!important;
    }
    #tab-DaYun {
        display: none!important;
    }
    #Year-chars .d-flex:nth-child(5) {
        page-break-inside: avoid;
        page-break-after: always!important;
    }
    #Year-chars .Master table td {
        min-width: 3rem;
        width: 3rem;
    }
    #Year-chars .Liunian table td {
        width: 2.75rem!important;
    }
    #Year-chars .table-bordered td,
    #Year-chars .table-bordered th {
        border-color: #444!important;
    }
    .feature table td {
        padding-left: .75rem!important;
        padding-right: .75rem!important;
    }
    #Year-chars .Liunian table span.badge {
        border: 0;
        border-left: 1px dashed #888;
        border-radius: 0;
        padding: 0;
        padding-left: .5rem;
        font-size: 110%!important;
    }
    .user-info.col-md-3.order-md-first {
        flex: 0 0 25%!important;
        max-width: 25%!important;
        order: 1!important;
    }
    .dayun.d-block.d-md-none,
    .change.d-block.d-md-none,
    .hostexam.d-block.d-md-none {
        display: block!important;
    }
    .user-info .feature.d-block.d-md-none,
    .user-info .hostexam.d-block.d-md-none {
        display: none!important;
    }
    .mp-main .col-md-5.order-2 {
        flex: 0 0 41.666667%!important;
        max-width: 41.666667%!important;
        order: 2!important;
    }
    .mp-main .col-md-5 .change.d-block.d-md-none {
        display: none!important;
    }
    .mp-main .col-md-4.order-md-3 {
        flex: 0 0 33.333333%!important;
        max-width: 33.333333%!important;
        order: 3!important;
    }
    .col-md-4.order-md-3 .user-bir li.list-group-item.d-none.d-md-block {
        display: block!important;
    }
    .col-md-4.order-md-3>div.d-none.d-md-block {
        display: block!important;
    }
    .fate-mp .feature table td {
        padding-left: .75rem!important;
        padding-right: .75rem!important;
    }
    .fate-mp .feature table td span {
        max-width: 1.25rem;
    }
    .col-md-3.order-last.order-md-4 {
        flex: 0 0 25%!important;
        max-width: 25%!important;
        order: 4!important;
    }
    .col-md-9.order-4.order-md-5 {
        flex: 0 0 75%!important;
        max-width: 75%!important;
        order: 5!important;
    }
    .twelve-gon .shen-sha {
        height: 22.3rem;
    }
    .dayun .Tips li #Rzwd_modal div[class^="col-md"] {
        flex: 0 0 50%!important;
        max-width: 50%!important;
    }
    .fate-mp .like{
        font-size: 110%;
    }
    .fate-mp .user-bir .list-group-item{
        font-size: 115%;
    }
    .fate-mp .col-md-4.order-first.order-md-3{
        order: 3!important;
    }
    .fate-mp .order-2.order-md-last{
        order: 4!important;
    }
    .fate-mp .like.flex-row{
        flex-direction:column!important;
    }
    .fate-mp .XiWx .nav-item, .fate-mp .Wxsqx .nav-item{
        font-size:130%;
        height:1.5;
    }
}
