@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto-latin.woff2') format('woff2');
    font-display: swap;
    font-stretch: 100%;
    font-style: normal;
    font-weight: 400 900;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto-vietnamese.woff2') format('woff2');
    font-display: swap;
    font-stretch: 100%;
    font-style: normal;
    font-weight: 400 900;
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

.az-loban,
.az-loban * {
    box-sizing: border-box;
    font-family: 'Roboto', Arial, Helvetica, sans-serif !important;
}

.az-loban-shell {
    --az-loban-brown: #6b3f1f;
    --az-loban-gold: #c9893a;
    --az-loban-gold-soft: #fff4e2;
    --az-loban-red: #e91b23;
    --az-loban-green: #208a42;
    --az-loban-ink: #241a13;
    --az-loban-muted: #6d6259;
    --az-loban-line: #c9b9a8;
    --az-loban-surface: rgba(255, 255, 255, 0.92);
    --az-loban-shadow: 0 16px 35px rgba(76, 51, 30, 0.12);
    background:
        radial-gradient(circle at 50% 90px, rgba(232, 201, 160, 0.22), rgba(255, 255, 255, 0) 360px),
        linear-gradient(180deg, #fffdfa 0%, #fff 50%, #fffaf3 100%);
    color: var(--az-loban-ink);
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 auto 42px;
    max-width: 1580px;
    padding: 24px 18px;
    width: 100%;
}

.az-loban p,
.az-loban h2,
.az-loban h3 {
    margin: 0;
}

body div#loban-wrapper #loban-thelist,
body div#loban-wrapper #loban-thelist li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.az-loban-hero {
    align-items: center;
    display: flex;
    flex-direction: column;
    padding: 0 0 18px;
    text-align: center;
}

.az-loban-hero h2 {
    color: var(--az-loban-brown);
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.08;
}

.az-loban-divider {
    align-items: center;
    display: flex;
    gap: 7px;
    justify-content: center;
    margin: 10px 0 16px;
    width: 300px;
}

.az-loban-divider::before,
.az-loban-divider::after {
    background: var(--az-loban-brown);
    content: "";
    height: 1px;
    width: 130px;
}

.az-loban-divider::after {
    box-shadow: -137px 0 0 var(--az-loban-brown);
}

.az-loban-divider {
    color: var(--az-loban-brown);
}

.az-loban-measure {
    align-items: center;
    display: grid;
    gap: 4px 8px;
    grid-template-columns: auto auto;
    justify-content: center;
}

.az-loban-measure__box {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid #e4c694;
    border-radius: 16px;
    display: inline-flex;
    min-width: 140px;
    padding: 3px 16px;
}

#sodo {
    background: transparent;
    border: 0;
    color: var(--az-loban-red);
    font: inherit;
    font-size: 30px;
    font-weight: 900;
    height: 36px;
    line-height: 36px;
    min-width: 0;
    text-align: center;
    width: 100%;
}

#sodo:focus {
    outline: 0;
}

.az-loban-measure__box:focus-within {
    border-color: var(--az-loban-gold);
    box-shadow: 0 0 0 3px rgba(201, 137, 58, 0.18);
}

.az-loban-measure__unit {
    color: var(--az-loban-ink);
    font-size: 16px;
    font-weight: 700;
}

.az-loban-measure small {
    color: var(--az-loban-muted);
    font-size: 13px;
    grid-column: 1 / -1;
}

#lobanOuter {
    height: 610px;
    position: relative;
    width: 100%;
}

.az-loban-row-card {
    background: var(--az-loban-surface);
    border: 1px solid rgba(122, 82, 43, 0.12);
    border-radius: 8px;
    box-shadow: var(--az-loban-shadow);
    height: 184px;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    z-index: 0;
}

.az-loban-row-card--522 {
    top: 0;
}

.az-loban-row-card--429 {
    top: 196px;
}

.az-loban-row-card--388 {
    top: 392px;
}

#loban-wrapper {
    background: transparent;
    cursor: grab;
    height: 588px;
    left: 0;
    overflow-x: auto;
    overflow-y: hidden;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 2;
}

#loban-wrapper.is-dragging {
    cursor: grabbing;
    user-select: none;
}

#loban-wrapper::-webkit-scrollbar,
#thuocloban::-webkit-scrollbar {
    height: 10px;
}

#loban-wrapper::-webkit-scrollbar-track,
#thuocloban::-webkit-scrollbar-track {
    background: #eee5d9;
    border-radius: 999px;
}

#loban-wrapper::-webkit-scrollbar-thumb,
#thuocloban::-webkit-scrollbar-thumb {
    background: #b7aaa0;
    border-radius: 999px;
}

#loban-scroller {
    float: left;
    height: 100%;
    padding: 0;
}

#loban-scroller li {
    display: block;
    float: left;
    height: 100%;
}

#pullRight,
#pullLeft {
    display: block;
    float: left;
    height: 100%;
    width: 50px;
}

#sodoLoban {
    background: #e91b23;
    border-radius: 6px;
    color: #fff;
    display: block;
    font-size: 13px;
    font-weight: 900;
    left: 50%;
    line-height: 1;
    padding: 5px 7px;
    position: absolute;
    text-align: center;
    top: 56px;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 6;
}

#sodoLoban::after {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #e91b23;
    content: "";
    left: 50%;
    position: absolute;
    top: 100%;
    transform: translateX(-50%);
}

#thanhdo {
    background: #e91b23;
    height: 496px;
    left: 50%;
    position: absolute;
    top: 80px;
    transform: translateX(-50%);
    width: 3px;
    z-index: 5;
}

#abc {
    display: none;
    position: absolute;
    top: -20px;
}

.loban-note {
    align-items: center;
    color: var(--az-loban-muted);
    display: inline-flex;
    font-size: 13px;
    gap: 6px;
    position: absolute;
    right: 18px;
    top: 24px;
    z-index: 6;
}

.loban-note::before {
    align-items: center;
    background: #ffc928;
    border-radius: 3px;
    color: #fff;
    content: "?";
    display: inline-flex;
    font-size: 10px;
    font-weight: 900;
    height: 14px;
    justify-content: center;
    width: 14px;
}

.loban-t {
    align-items: center;
    color: var(--az-loban-ink);
    display: inline-flex;
    font-size: 16px;
    gap: 8px;
    left: 22px;
    line-height: 1.2;
    position: absolute;
    z-index: 6;
}

.loban-t::before {
    align-items: center;
    background: #f8ecd9;
    border: 1px solid #e4c694;
    border-radius: 999px;
    color: var(--az-loban-gold);
    content: "⌂";
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 14px;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.loban-t strong {
    color: var(--az-loban-brown);
    font-weight: 900;
}

.loban-522 {
    top: 24px;
}

.loban-429 {
    top: 220px;
}

.loban-388 {
    top: 416px;
}

.loban-touch-left,
.loban-touch-right {
    height: 588px;
    position: absolute;
    top: 0;
    width: 50px;
    z-index: 4;
}

.loban-touch-left {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0));
    left: 0;
}

.loban-touch-right {
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0));
    right: 0;
}

.az-loban-ruler {
    height: 196px;
    padding-top: 84px;
}

.az-loban-scale {
    background:
        repeating-linear-gradient(to right, #777 0, #777 1px, transparent 1px, transparent 25px),
        repeating-linear-gradient(to right, transparent 0, transparent 124px, #333 124px, #333 126px);
    border-bottom: 2px solid #333;
    height: 36px;
    position: relative;
}

.az-loban-scale__unit,
.az-loban-scale__label {
    color: #21160f;
    font-size: 12px;
    font-weight: 800;
    position: absolute;
    top: -23px;
    white-space: nowrap;
}

.az-loban-scale__label {
    transform: translateX(-50%);
}

.az-loban-scale__unit {
    left: 0 !important;
    transform: translateX(0);
}

.az-loban-major-row,
.az-loban-sub-row {
    display: flex;
    height: 32px;
}

.az-loban-major,
.az-loban-sub {
    align-items: center;
    border-bottom: 1px solid var(--az-loban-line);
    border-left: 1px solid var(--az-loban-line);
    display: flex;
    font-size: 13px;
    font-weight: 800;
    justify-content: center;
    min-width: 42px;
    overflow: hidden;
    padding: 0 6px;
    text-align: center;
    white-space: nowrap;
}

.az-loban-major {
    font-size: 14px;
}

.az-loban .tot {
    background: #fff;
    color: var(--az-loban-red);
}

.az-loban .xau {
    background: #fafafa;
    color: #111;
}

.az-loban-result {
    margin-top: -6px;
}

.az-loban-result__grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.az-loban-result__item {
    border: 1px solid #edd8bd;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(76, 51, 30, 0.06);
    color: #44352a;
    min-width: 0;
    padding: 14px 16px;
}

.az-loban-result__item.is-good {
    background: linear-gradient(180deg, #f4fff5, #ffffff);
    border-color: #cfe8d2;
}

.az-loban-result__item.is-bad {
    background: linear-gradient(180deg, #fff5f5, #ffffff);
    border-color: #f0caca;
}

.az-loban-result__title {
    align-items: flex-start;
    color: var(--az-loban-brown);
    display: flex;
    gap: 8px;
    line-height: 1.35;
    margin-bottom: 10px;
}

.az-loban-result__icon {
    align-items: center;
    background: #f8ecd9;
    border-radius: 999px;
    color: var(--az-loban-gold);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px;
    height: 24px;
    justify-content: center;
    margin-top: -2px;
    width: 24px;
}

.az-loban-result__item.is-good .az-loban-result__title {
    color: #087a2e;
}

.az-loban-result__item.is-bad .az-loban-result__title {
    color: var(--az-loban-red);
}

.az-loban-result__item p {
    color: #4c443c;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 5px;
}

.az-loban-result__item p:last-child {
    margin-bottom: 0;
}

.az-loban-result__badge {
    color: var(--az-loban-red);
    font-weight: 900;
}

.az-loban-result__item.is-good .az-loban-result__badge {
    color: #087a2e;
}

.az-loban-guide {
    background: linear-gradient(180deg, #fffaf0, #fff6e8);
    border: 1px solid #edce9a;
    border-radius: 8px;
    margin-top: 16px;
    padding: 14px 18px 18px;
}

.az-loban-guide h3 {
    color: var(--az-loban-brown);
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 13px;
}

.az-loban-guide__steps {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.az-loban-guide__step {
    display: grid;
    gap: 2px;
    grid-template-columns: 26px minmax(0, 1fr);
}

.az-loban-guide__steps span {
    align-items: center;
    border: 1px solid var(--az-loban-gold);
    border-radius: 999px;
    color: var(--az-loban-gold);
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    height: 22px;
    justify-content: center;
    margin-top: 1px;
    width: 22px;
}

.az-loban-guide__steps strong {
    color: var(--az-loban-brown);
    font-size: 14px;
}

.az-loban-guide__steps p {
    color: var(--az-loban-muted);
    font-size: 13px;
    grid-column: 2;
    line-height: 1.45;
}

#thuocloban {
    margin-top: 22px;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
}

div#thuocloban > p {
    color: var(--az-loban-brown);
    font-size: 17px;
    margin-bottom: 10px;
}

#loban {
    width: 100%;
}

.az-loban-lookup {
    background: #fff;
    border-collapse: collapse;
    font-family: 'Roboto', Arial, Helvetica, sans-serif !important;
    font-variant-numeric: tabular-nums;
    min-width: 920px;
    width: 100%;
}

.az-loban-lookup th,
.az-loban-lookup td {
    border: 1px solid #cfc3b8;
    font-size: 13px;
    font-weight: 500;
    height: 25px;
    line-height: 20px;
    padding: 2px 8px;
    text-align: center;
}

.az-loban-lookup .tenkhoan {
    font-size: 13px;
    font-weight: 700;
    min-width: 145px;
}

.az-loban-lookup .tencung {
    font-weight: 700;
    min-width: 135px;
    text-align: left;
}

@media (max-width: 900px) {
    .az-loban-shell {
        padding-left: 10px;
        padding-right: 10px;
    }

    .az-loban-result__grid,
    .az-loban-guide__steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .az-loban-shell {
        padding-left: 0;
        padding-right: 0;
    }

    .az-loban-hero h2 {
        font-size: 34px;
    }

    .az-loban-divider {
        width: 230px;
    }

    #lobanOuter {
        height: 650px;
    }

    .loban-note {
        font-size: 12px;
        right: 12px;
        top: 14px;
    }

    .loban-t {
        align-items: flex-start;
        flex-direction: column;
        font-size: 12px;
        gap: 2px;
        left: 14px;
        max-width: 245px;
    }

    .loban-t::before {
        display: none;
    }

    .loban-522 {
        top: 16px;
    }

    .loban-429 {
        top: 226px;
    }

    .loban-388 {
        top: 438px;
    }

    #sodoLoban {
        left: 50%;
        top: 74px;
    }

    #thanhdo {
        height: 526px;
        top: 96px;
    }

    #loban-wrapper {
        height: 636px;
    }

    .az-loban-row-card {
        height: 198px;
    }

    .az-loban-row-card--429 {
        top: 212px;
    }

    .az-loban-row-card--388 {
        top: 424px;
    }

    .loban-touch-left,
    .loban-touch-right {
        height: 636px;
    }

    .az-loban-ruler {
        height: 212px;
        padding-top: 104px;
    }

    .az-loban-major,
    .az-loban-sub {
        font-size: 11px;
        min-width: 36px;
        padding: 0 4px;
    }

    .az-loban-result {
        padding: 0 10px;
    }

    .az-loban-guide {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
    }

    #thuocloban {
        padding: 0 10px;
    }

    .az-loban-lookup th,
    .az-loban-lookup td {
        font-size: 12px;
        padding: 2px 6px;
    }
}
