﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

.wrap {
    max-width: 750px;
    margin: 0 auto
}

h1 {
    font-size: 20px;
    font-weight: 900;
/*    color: #7ab8e8;*/
    letter-spacing: 2px
}

input, select {
    background: rgba(253, 248, 238, 0.9);
    border: 1px solid #2a4a6a;
    border-radius: 6px;
    padding: 9px 10px;
    color: var(--ink);
    font-size: 1.15rem;
    /*    font-weight: 700;*/
    width: 100%;
    outline: none;
    font-family: inherit
}

    select option {
/*        background: #0d1520*/
    }

.hkpt-label {
    /* font-family: 'Cinzel', serif; */
    /* font-size: 12px; */
    letter-spacing: 1.5px;
    color: var(--red-deep);
    text-transform: uppercase;
    opacity: 0.8;
    font-weight: bold;
}

#inpSon {
/*    font-size: 12px;*/
    padding: 11px 10px;
    line-height: 1.5;
    letter-spacing: -0.1px;
    color:var(--ink);
}

    #inpSon option {
        font-size: 13px;
        padding: 6px
    }

button {
    cursor: pointer;
    border: none;
    font-family: inherit
}

.card {
    background: #0d1520;
    border: 1px solid #1a3a5a;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px
}

.stackFields {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 2px
}

.lbl {
/*    font-size: 11px;*/
    color: #5a8aaa;
    display: block;
    margin-bottom: 5px
}

.hint {
/*    font-size: 9.5px;*/
    color: #2a5a4a;
    margin-top: 4px;
    line-height: 1.45
}

.btnMain {
    width: 100%;
    padding: 11px;
/*    background: var(--red-lt, #a83030);
    border: 1px solid #3a6aaa;*/
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-top: 11px;
    background: linear-gradient(135deg, #1a4a8a, #0a2a5a);
    border: 1px solid #3a6aaa;
}

.btnPdf {
    width: 100%;
    padding: 10px;
    background: var(--red-lt, #a83030);
    border: 1px solid #a85a3a;
    border-radius: 8px;
    color: #f0c890;
/*    font-size: 12px;*/
    font-weight: 700;
    letter-spacing: .3px;
    margin-bottom: 12px
}

    .btnPdf:active {
        background: linear-gradient(135deg,#8a2a2a,#4a1414)
    }

.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 10px
}

.tab {
    flex: 1;
    padding: 7px;
    border-radius: 7px;
/*    font-size: 11px;*/
    font-weight: 700
}

    .tab.on {
        /*        background: #1a3a6a;border: 1px solid #3a6aaa;
        color: white;
        background: var(--red);
        border-color: var(--red);*/
        background: #1a3a6a;
        border: 1px solid #3a6aaa;
        color: #7ab8e8;
    }

    .tab.off {
        /*        border: 1px solid var(--border);
        background: var(--bg-card);
        color: #9a7050;*/
        border: 1px solid var(--border);
        background: var(--bg-card);
        color: #9a7050;
    }

.ibar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 7px 11px;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center
}

.gnote {
    text-align: center;
    color: #2a4a6a;
    margin-bottom: 5px
}

.rotbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 9px
}

.rotbtn {
    padding: 7px 12px;
    border: 1px solid #2a4a6a;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    background: var(--pt-primary);
    color: #fff;
}

    .rotbtn:active {
        background: #1a3a6a
    }

.rotind {
    min-width: 64px;
    text-align: center;
    cursor: pointer
}

.degbox {
    margin-top: 11px;
    padding: 8px 10px;
    background: var(--pt-bg);
    border: 1px solid #1a3a5a;
    border-radius: 7px
}

.degrow {
    display: flex;
    align-items: center;
    gap: 8px;
/*    font-size: 11px;*/
    padding: 2px 0
}

    .degrow + .degrow {
        border-top: 1px dashed #1a2a3a;
        margin-top: 2px;
        padding-top: 5px
    }

.deglbl {
    flex-shrink: 0;
    font-weight: 700;
/*    font-size: 10px;*/
    padding: 2px 7px;
    border-radius: 4px
}

.degval {
    color: var(--ink);
/*    font-size: 11px*/
}

.degrange {
    font-weight: 800;
    font-family: Georgia,serif
}

.degmid {
    color: #4a6a7a;
/*    font-size: 9px;*/
    margin-left: 4px
}

.tgrid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 5px;
    padding: 5px;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: 9px
}


/*.cell {
    border-radius: 6px;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-height: 118px;
    position: relative
}*/

.cell {
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-card);
    padding: 7px 5px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-height: 126px;
    position: relative;
    transition: border-color .15s;
}
    
.cbadge {
    position: absolute;
    top: 2px;
    right: 3px;
    font-size: 9px;
    font-weight: 900
}

/*.cdir {
    font-size: 8px;
    font-weight: 600;
    color: #4a6a7a;
    margin-bottom: 1px
}*/
.dir {
    color: var(--tm);
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    font-family: sans-serif;
}

.srow {
    display: flex;
    align-items: center;
    gap: 5px
}


.scol {
    text-align: center
}
.slbl {
/*    font-size: 7px;*/
    display: block;
    margin-bottom: 1px
}
.star-lbl {
    font-family: sans-serif;
    margin-bottom: 1px;
}
.star-h {
    font-size: 23px;
}

.star-num {
    font-weight: 700;
    line-height: 1;
}
.snum {
    font-weight: 900;
    font-family: Georgia,serif;
    line-height: 1
}
.star-v {
    font-size: 35px;
}
.cname {
    font-weight: 700;
    text-align: center;
    white-space: pre-line;
    line-height: 1.2;
    color: #2a4a5a;
    margin-top: 1px
}
.cung-name {
    color: var(--ts);
    font-weight: 600;
    text-align: center;
    white-space: pre-line;
    line-height: 1.3;
}
.ctags {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1px
}

.ctag {
    padding: 1px 3px;
    border-radius: 2px
}

.sbar {
    margin-top: 10px;
    padding: 7px 12px;    
    border-radius: 7px;
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.quick-sum {
    margin-top: 10px;
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 7px;
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
    font-family: sans-serif;
}
.brow {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap
}

.bdg {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px
}

.cccard {
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden
}

.cch {
    padding: 9px 12px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 8px
}

.ccb {
    padding: 0 12px 12px
}

.ccst {
    font-size: 10px;
    color: #8aaabb;
    font-weight: 700;
    margin-bottom: 3px;
    margin-top: 8px
}

.ccnb {
    margin-top: 6px;
    padding: 5px 10px;
    background: #0a1a20;
    border-radius: 5px;
    border-left: 3px solid #2a5a6a
}

.hide {
    display: none
}

.footer {
    text-align: center;
    font-size: 9px;
    color: #1a2a3a;
    margin-top: 18px;
    padding-bottom: 10px
}
/* Bảng tham chiếu */
.ref-tbl {
    width: 100%;
    border-collapse: collapse;
    margin-top: 6px
}

    .ref-tbl td, .ref-tbl th {
        border: 1px solid #1a3a5a;
        padding: 3px 4px;
        text-align: center;
        white-space: nowrap
    }

    .ref-tbl th {
        background: var(--cream-dark);
        color: #5a8aaa;
        font-weight: 700
    }

.ref-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch
}

#printReport {
    display: none
}

.pr-page {
    background: #ffffff;
    color: #2a2a2a;
    font-family: "Times New Roman",Times,"SimSun","STSong",serif;
    padding: 6mm
}

.pr-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2.5px solid #8a2020;
    padding-bottom: 10px;
    margin-bottom: 16px
}

.pr-logo {
    font-family: 'HLThuPhap',"HL Thu Phap","HL Thư Pháp","UTM Kolaboy","VNI-Thufap",cursive;
    font-size: 40px;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: rgb(255,0,0);
    line-height: 1.2
}

.pr-logo-sub {
    font-size: 12px;
    letter-spacing: 4px;
    color: #b8860b;
    margin-top: 2px;
    font-family: "Times New Roman",Times,serif;
    text-transform: uppercase
}

.pr-doctitle {
    text-align: right;
    font-size: 14px;
    color: #5e5e5e;
    font-style: italic
}

.pr-yinyang {
    font-size: 28px;
    vertical-align: middle;
    margin-right: 6px;
    color: #8a2020
}

.pr-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #8a2020;
    border-left: 4px solid #b8860b;
    padding: 3px 0 3px 10px;
    margin: 20px 0 10px
}

.pr-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 6px
}

.pr-info-box {
    border: 1px solid #d8c8a0;
    background: #FBF6EA;
    border-radius: 6px;
    padding: 10px 12px
}

    .pr-info-box .k {
        font-size: 11.5px;
        color: #98751d;
        text-transform: uppercase;
        letter-spacing: .5px;
        margin-bottom: 2px
    }

    .pr-info-box .v {
        font-size: 16px;
        color: #2a2a2a;
        font-weight: 700
    }

    .pr-info-box .v2 {
        font-size: 12.5px;
        color: #707070;
        margin-top: 2px
    }

.pr-grid-wrap {
    display: flex;
    justify-content: center;
    margin: 14px 0
}

.pr-grid {
    border-collapse: collapse;
    width: 100%;
    max-width: 480px
}

    .pr-grid td {
        border: 1px solid #c9a227;
        width: 33.3%;
        text-align: center;
        vertical-align: middle;
        padding: 10px 4px;
        page-break-inside: avoid
    }

.pr-cell-dir {
    font-size: 11.5px;
    color: #98751d;
    font-weight: 700;
    letter-spacing: .5px
}

.pr-cell-nums {
    font-size: 21px;
    font-weight: 700;
    margin: 3px 0;
    color: #2a2a2a
}

    .pr-cell-nums .son {
        color: #98632e
    }

    .pr-cell-nums .van {
        color: #3a6a2a;
        font-size: 26px
    }

    .pr-cell-nums .huong {
        color: #1a4a7a
    }

.pr-cell-name {
    font-size: 11px;
    color: #a8a8a8
}

.pr-cell-badge {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .5px;
    margin-top: 2px
}

.pr-badge-huong {
    color: #1a6a3a
}

.pr-badge-toa {
    color: #b17f1d
}

.pr-cell-center {
    background: #FBF6EA
}

.pr-cell-h {
    background: #EAF5EC
}

.pr-cell-t {
    background: #FDF3DE
}

.pr-note {
    font-size: 11px;
    color: #969696;
    text-align: center;
    font-style: italic;
    margin-top: 2px
}

.pr-cc-card {
    border: 1px solid #ddd;
    border-left: 5px solid #999;
    border-radius: 5px;
    padding: 9px 12px;
    margin-bottom: 9px;
    page-break-inside: avoid
}

    .pr-cc-card.cat {
        border-left-color: #1a6a3a
    }

    .pr-cc-card.hung {
        border-left-color: #a31a1a
    }

    .pr-cc-card.neu {
        border-left-color: #98751d
    }

.pr-cc-title {
    font-size: 15px;
    font-weight: 700;
    color: #2a2a2a
}

    .pr-cc-title .hv {
        font-size: 12px;
        color: #a8a8a8;
        font-weight: 400;
        margin-left: 6px
    }

.pr-cc-md {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 9px;
    margin-left: 8px;
    vertical-align: middle
}

    .pr-cc-md.cat {
        background: #E4F3E8;
        color: #1a6a3a
    }

    .pr-cc-md.hung {
        background: #FBE4E4;
        color: #a31a1a
    }

    .pr-cc-md.neu {
        background: #F3ECD8;
        color: #98751d
    }

.pr-cc-dk {
    font-size: 12px;
    color: #838383;
    margin: 3px 0
}

.pr-cc-yn {
    font-size: 12.5px;
    color: #383838;
    margin: 4px 0;
    line-height: 1.5
}

.pr-cc-ud {
    font-size: 12px;
    color: #4b4b4b;
    margin: 2px 0 0 14px;
    line-height: 1.6
}

.pr-cc-note {
    font-size: 11.5px;
    color: #a8a8a8;
    font-style: italic;
    margin-top: 4px
}

.pr-star-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
    margin-bottom: 14px
}

    .pr-star-table th {
        background: #8a2020;
        color: #fff;
        padding: 4px 5px;
        font-weight: 700
    }

    .pr-star-table td {
        border: 1px solid #e0d5b8;
        padding: 4px 5px;
        text-align: center
    }

    .pr-star-table tr:nth-child(even) td {
        background: #FBF6EA
    }

#printReport .ref-tbl {
    font-size: 10.5px
}

    #printReport .ref-tbl th, #printReport .ref-tbl td {
        border: 1px solid #d8c8a0
    }

.pr-seal-wrap {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
    margin-right: 6px;
    page-break-inside: avoid
}

.pr-seal-img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    display: block
}

.pr-tier-legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 10.5px;
    color: #707070;
    margin-bottom: 8px;
    align-items: center
}

    .pr-tier-legend b {
        font-style: normal;
        margin-right: 3px
    }

#prWatermark {
    display: none
}

@media print {
    #prWatermark {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top left;
        z-index: 99999;
        pointer-events: none;
    }
}

.pr-footer {
    margin-top: 22px;
    padding-top: 8px;
    border-top: 1px solid #d8c8a0;
    text-align: center;
    font-size: 10.5px;
    color: #bbbbbb
}

@media print {
    body {
        background: #ffffff
    }

        body * {
            visibility: hidden
        }

    #printReport, #printReport * {
        visibility: visible
    }

    #printReport {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%
    }

    @page {
        size: A4;
        margin: 12mm
    }

    .pr-cc-card, .pr-grid td, .pr-star-table tr {
        page-break-inside: avoid
    }

    .pr-section-title {
        page-break-after: avoid
    }
}