
:root {
    --thb-gold-1: #e7d39d;
    --thb-gold-2: #b19560;
    --thb-gold-text: #ba995d;
    --thb-bar: #745929;
    --thb-panel: #1c1c1c;
    --thb-panel-2: #262626;
    --thb-line: #3a3020;
}

body.thb-desktop {
    margin: 0;
    background: #E5E5E5;
    color: #333;
    font-family: Verdana, Arial, "Noto Sans Thai", sans-serif;
    font-size: 12px;
}

.thb-shell { margin: 0; padding: 0; }

.thb-header { background: #000; border-bottom: 0; }

.thb-header__top { width: 975px; max-width: 975px; margin: 0; height: 64px; }
.thb-header__top > tbody > tr { height: 64px; }
.thb-header__top > tbody > tr > td { height: 64px; padding-top: 0; padding-bottom: 0; }
.thb-header__logo img { height: 46px; margin: 0 14px; }
.CssHdrTime { color: var(--thb-gold-text); font-size: 11px; white-space: nowrap; }

.thb-header__meta { padding: 0 10px 0 0 !important; white-space: nowrap; }
.thb-header__meta .CssHdrTime,
.thb-header__meta .thb-header__lang {
    display: inline-block;
    vertical-align: bottom;
    margin-bottom: 9px;
}
.thb-header__meta .CssHdrTime { margin-right: 10px; }

.thb-header__lang { position: relative; width: auto; }
.SelMenuDiv {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    cursor: pointer;
    color: #333;
}
.SelMenu {
    position: absolute;
    z-index: 60;
    top: 100%;
    left: 0;
    width: 190px;
    max-height: 320px;
    overflow-y: auto;
    background: var(--thb-panel);
    border: 1px solid var(--thb-line);
}
.SelMenuItem {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    color: #fff;
    font-size: 11px;
}
.SelMenuItem:hover { background: var(--thb-panel-2); color: var(--thb-gold-1); text-decoration: none; }
.SelMenuItem img { width: 18px; height: 18px; }

.boxTopRight { text-align: right; padding-right: 14px; }
.thb-header__login input {
    height: 24px;
    width: 116px;
    margin-right: 4px;
    padding: 0 6px;
    border: 1px solid #7a6a45;
    background: #fff;
    font-size: 11px;
}
.thb-header__login button,
.thb-header__acct-links button {
    height: 24px;
    padding: 0 14px;
    border: 0;
    border-radius: 2px;
    background: linear-gradient(to bottom, var(--thb-gold-1), var(--thb-gold-2));
    color: #000;
    font-weight: 700;
    font-size: 11px;
    cursor: pointer;
}
.thb-header__name { color: #333; font-weight: 700; }
.thb-header__rank { color: #6b7b8c; font-size: 10px; }
.thb-header__credit { padding-left: 18px; color: #333; font-weight: 700; }
.thb-header__acct-links { padding-top: 4px; }
.thb-header__acct-links a { color: var(--thb-gold-text); font-size: 11px; margin-right: 10px; }
.thb-header__acct-links form { display: inline-block; }
.thb-header__error {
    max-width: 1440px;
    margin: 0 auto;
    padding: 6px 14px;
    color: #ff6b6b;
    font-size: 11px;
}

.thb-header__tabs { margin: 0; height: 28px; }

.thb-header__bar { background: var(--thb-bar); height: 26px; }
.thb-header__bar .class2 { width: 975px; max-width: 975px; margin: 0; height: 26px; }
.thb-header__bar .class2 td { height: 26px; padding-top: 0; padding-bottom: 0; }
.ellipsis_bar {
    display: inline-block;
    padding: 5px 16px;
    color: #fff;
    font-size: 11px;
    text-decoration: none;
}
.ellipsis_bar:hover, .ellipsis_bar.active { color: var(--thb-gold-1); text-decoration: none; }
.ellipsis_bar.deposit { background: #1f7a3d; border-radius: 12px; margin: 0 4px; }
.ellipsis_bar.withdrawal { background: #9b2727; border-radius: 12px; margin: 0 4px; }

#divContainer { background: #E5E5E5; display: flex; flex-direction: column; min-height: 0; }

.thb-console { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.thb-console__main { min-width: 0; }

.thb-sportsbook {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
    background: #E5E5E5;
}

.thb-sportsbook__frame {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    width: 100%;
    border: 0;
    display: block;
}

.thb-sportsbook__bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 10px;
    background: var(--thb-bar);
    color: #fff;
    font-size: 11px;
}
.thb-sportsbook__bar a { color: var(--thb-gold-1); text-decoration: none; }
.thb-sportsbook__bar a:hover { text-decoration: underline; }

.thb-sportsbook--empty {
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #3C4E5A;
    font-size: 13px;
    text-align: center;
}

.thb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; padding: 12px; }
.thb-grid__item { position: relative; background: var(--thb-panel); border: 1px solid var(--thb-line); }
.thb-grid__img { width: 100%; height: auto; display: block; }
.thb-grid__img.maintenance { filter: grayscale(1) brightness(.55); }
.thb-grid__name { padding: 6px 8px; font-size: 11px; color: var(--thb-gold-1); text-align: center; }

.thb-header .boxTopRight {
    width: 235px;
    height: 64px;
    vertical-align: middle;
}

.thb-header__logo img { max-height: 46px; width: auto; display: block; }

.thb-header__lang { padding: 0 10px; width: auto; }
.thb-header__lang .SelMenuDiv {
    width: 110px;
    height: 20px;
    background: url(/thb/vendor/images/a10.jpg) repeat-x;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #333;
}
.thb-header__lang .SelMenuDiv img { width: 12px; height: 9px; margin: 0; }

.thb-header #tblCredit {
    margin-left: auto;
    border-collapse: collapse;
    text-align: right;
    width: auto;
}
.thb-header #tblCredit td { padding: 1px 0 1px 8px; vertical-align: middle; white-space: nowrap; }
.thb-header__avatar { padding-left: 0 !important; }
.thb-header__avatar img { display: block; width: 31px; height: 31px; }
.thb-header__user { text-align: left; line-height: 1.3; }
.thb-header__credit { font-size: 13px; text-align: right; }
.thb-header__coin { vertical-align: middle; margin-left: 4px; }

.thb-header__acct-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: 24px;
    padding: 0;
    font-size: 11px;
    white-space: nowrap;
}
.thb-header__acct-links form { margin: 0; display: flex; align-items: center; }
.thb-header__acct-links a { margin: 0; color: #fff; }
.thb-header__acct-links a:hover { color: var(--thb-gold-1); }
.thb-header__sep { color: rgba(255, 255, 255, .55); }
.thb-header__acct-links button {
    height: 18px;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
}
.thb-header__acct-links button:hover { color: var(--thb-gold-1); }

.thb-header__msg { width: 329px; }
.thb-header__msg .CssHdrMsg { width: 300px; height: 19px; }
.thb-header__msg #spnMsg { color: #f00; font-size: 12px; }

.thb-header__lang .SelMenuDiv { justify-content: center; font-size: 11px; }

.thb-login-page { max-width: 420px; margin: 40px auto; }
.thb-login-page .thb-card { background: var(--thb-panel); border: 1px solid var(--thb-line); border-radius: 8px; padding: 18px; }
.thb-login-page .thb-form input { color: #2b2b2b; }

body.thb-desktop .thb-page { color: #333; }
body.thb-desktop .thb-page__title { color: #4B3925; }

body.thb-desktop .thb-card,
body.thb-desktop .thb-promo,
body.thb-desktop .thb-popup__body,
body.thb-desktop .game_card,
body.thb-desktop .thb-grid__item {
    background: #F8F8F8;
    border: 1px solid #c8c8c8;
    color: #333;
}

body.thb-desktop .thb-table { color: #333; }
body.thb-desktop .thb-table th {
    background: #4B3925;
    color: #fff;
    border-color: #3a2c1c;
}
body.thb-desktop .thb-table td { border-color: #d5d5d5; }
body.thb-desktop .thb-table tbody tr { background: #F8F8F8; }
body.thb-desktop .thb-table tbody tr:nth-child(even) { background: #E8E8E8; }
body.thb-desktop .thb-table--kv td { background: #F8F8F8; }

body.thb-desktop .thb-league { color: #8B754C; }
body.thb-desktop .thb-empty,
body.thb-desktop .thb-hint { color: #6a6a6a; }
body.thb-desktop .thb-prose { color: #333; }
body.thb-desktop .thb-kv { color: #333; }

body.thb-desktop .thb-tabs { border-color: #c8c8c8; }
body.thb-desktop .thb-tab { color: #4a4a4a; }
body.thb-desktop .thb-tab.active { background: var(--thb-bar); color: #fff; }

body.thb-desktop .thb-date-chip {
    background: #F8F8F8;
    border: 1px solid #c8c8c8;
    color: #333;
}
body.thb-desktop .thb-date-chip.active { background: var(--thb-bar); color: #fff; border-color: var(--thb-bar); }

body.thb-desktop .thb-alert { background: #FDF6E3; border: 1px solid #e0d4b0; color: #6a5a33; }
body.thb-desktop .thb-alert--error { background: #FDDDD2; border-color: #f0b5a5; color: #8a1f1f; }

body.thb-desktop .thb-form input,
body.thb-desktop .thb-form select,
body.thb-desktop .thb-form textarea,
body.thb-desktop .thb-search input {
    background: #fff;
    border: 1px solid #b5b5b5;
    color: #333;
}
body.thb-desktop .thb-btn { background: var(--thb-bar); color: #fff; border: 0; }
body.thb-desktop .thb-btn--ghost { background: #E8E8E8; color: #333; border: 1px solid #b5b5b5; }

body.thb-desktop .thb-login-page .thb-card { background: #F8F8F8; border: 1px solid #c8c8c8; }
