/*Custom */
.__star svg polygon {
    fill: #d9c51d;
    stroke: transparent !important;
}

/* .switcher_div { */

/* font-size: 14px; */
/* overflow: auto; */
/* max-height: 90vh; */
/* overflow-y: scroll; */
/* } */

.__name {

    font-weight: bold;
    white-space: nowrap;
}

[data-target="__subimg"] {
    /* Your CSS styles here */
    height: 65px;
    width: auto;
}

.star_undefined {
    display: none;
}

/* .switcher_div::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #F5F5F5;
}

.switcher_div::-webkit-scrollbar {
    width: 6px;
    background-color: #F5F5F5;
}

.switcher_div::-webkit-scrollbar-thumb {
    background-color: #000000;
}

.switcher_div .uk-table td {
    padding: 5px;
    font-weight: bold;
} */

.uk-modal-container .uk-modal-dialog {
    width: 1118px;
    border-radius: 20px;
    background: #E9EAF0;
    font-family: Arial, Helvetica, sans-serif;
    padding: 0;
    overflow: hidden;
}


/* 1) Container có vị trí để pseudo-element bám vào */
#jp_googlesheet_api-modal .jp_ggs_modal_content{
  position: relative;
}

/* 2) Khi PROFILES (content_nav1) đang hiển thị => đặt nền cho toàn khối content */
#jp_googlesheet_api-modal .jp_ggs_modal_content:has(.content_nav1:not(.uk-hidden))::before{
  content:"";
  position:absolute;
  inset:0;                  /* phủ cả padding */
  border-radius:12px;       /* bo góc nếu muốn */
  background:url("https://bestmarathon.vn/wp-content/plugins/jp-google-sheet-api-5/images/nentt1.png")
             center/cover no-repeat;
  z-index:0;
}

/* 3) Đảm bảo nội dung nằm trên nền */
#jp_googlesheet_api-modal .jp_ggs_modal_content > *{
  position:relative;
  z-index:1;
}

/* 4) Nếu trước đó bạn đã dùng nền ở .profile-scope::before thì tắt đi để khỏi trùng nền */
#jp_googlesheet_api-modal .profile-scope::before{ display:none !important; }


.jp_ggs_modal_nav_item .__img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.jp_ggs_modal_nav .uk-grid>*:first-child>.__img {
    border-radius: 50%;
    width: 67px;
    height: 67px;
}

.jp_ggs_modal_nav>* {
    padding: 25px;
    height: 100%;
    background: #FFF;
    box-shadow: 2px 2px 4px 0px rgba(206, 216, 236, 0.70), -2px -2px 4px 0px rgba(255, 255, 255, 0.70);
}

.uk-width-small\@s {
    width: 145px;
}

.jp_ggs_modal_nav_item>* {
    box-shadow: 2px 2px 4px 0px rgba(206, 216, 236, 0.70), -2px -2px 4px 0px rgba(255, 255, 255, 0.70);
    border-radius: 20px;
    border: 1px solid #DEF5FD;
    background: #FFF;
    padding: 10px 0;
}

.jp_ggs_modal_nav_item>* p {

    margin: 0;
    padding-top: 10px;
    line-height: 18px;
}

.jp_ggs_modal_nav_item.active>div {
    border: 1px solid #38A3FF;
    box-shadow: 2px 2px 4px 0px rgba(206, 216, 236, 0.70), -2px -2px 4px 0px rgba(255, 255, 255, 0.70);
}

.jp_ggs_modal_content {
    padding: 25px 30px;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
}

.jp_ggs_modal_content h3 {
    font-style: normal;
    font-weight: 600;
    font-size: 32px;
    color: #000;

}

.uk-card-default {
    /* box-shadow: 2px 2px 4px 0px rgba(206, 216, 236, 0.70), -2px -2px 4px 0px rgba(255, 255, 255, 0.70); */
    border-radius: 20px;
    background: #ECEDF4;
    padding: 40px 20px;
    background: transparent !important;
    border: 1px solid #2d2d2d;
}	
	
/* Chỉ bỏ viền/đổ bóng ở khối CHI TIẾT THÀNH TÍCH */
#jp_googlesheet_api-modal .profile-scope .jp_ggs_modal_content_thongtin.uk-card-default {
  border: 0 !important;                /* nếu trước đó có border */
  box-shadow: none !important;          /* bỏ shadow - muốn giữ shadow thì xóa dòng này */
  background: transparent !important;   /* nền trong suốt để thấy background phía sau */
  border-radius: 20px;                  /* vẫn bo góc như cũ (tuỳ chọn) */
  padding: 10px 10px;                   /* đúng như bạn set cho block này */
}


.uk-card-default .uk-icon svg polygon {
    fill: #2d2d2d;
    stroke: transparent !important;
}

.info_small {
    color: #2d2d2d;
}

[data-target="__name"] {
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
}

.uk-modal-close-default {
    background-color: #c4c4c4;
    color: #FFF;
    /* border-radius: 50%; */
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 10px;
    padding: 0;
    line-height: 1;
    min-height: 30px;
    border-radius: 5px;
}

.info_small .__img {
    width: 210px;
    height: 210px;
    border-radius: 100px;
}

/* Màu cho các ô giá trị trong bảng CHI TIẾT THÀNH TÍCH */
#jp_googlesheet_api-modal .jp_ggs_modal_content_thongtin .uk-table td[data-target]{
  color: #2d2d2d !important;
}

/* Bảo đảm text con bên trong (__thanh_tich có nhiều <div>) cũng lên màu */
#jp_googlesheet_api-modal .jp_ggs_modal_content_thongtin .uk-table td[data-target] *{
  color: inherit !important;
}

/* Link trong ô giá trị (NGUỒN KẾT QUẢ) cũng lên #2d2d2d */
#jp_googlesheet_api-modal .jp_ggs_modal_content_thongtin .uk-table td[data-target] a,
#jp_googlesheet_api-modal .jp_ggs_modal_content_thongtin .uk-table td[data-target] a:visited,
#jp_googlesheet_api-modal .jp_ggs_modal_content_thongtin .uk-table td[data-target] a:hover{
  color: #2d2d2d !important;
  text-decoration: underline; /* tuỳ chọn */
}


.info_items>* {
    /* border-radius: 100px; */
    /* border: 1px solid #DEF5FD; */
    background: #ECEDF4;
    /* box-shadow: 2px 2px 4px 0px rgba(206, 216, 236, 0.70), -2px -2px 4px 0px rgba(255, 255, 255, 0.70); */
    padding: 2px 20px;
    color: #000;
    font-size: 15px;
    background: transparent;
}

.info_items>* small {
    color: #2d2d2d;
    font-size: 12px;
}

/* Danh hiệu Marathon - AA */
.jpga-danh-hieu {
    font-weight: 600;
    color: #2d2d2d !important;
    font-size: 15px;
}

.jpga-danh-hieu:empty::before {
    content: '—';
    color: #999;
}
/* 1) Bỏ gạch ngang trong bảng của CHI TIẾT THÀNH TÍCH */
#jp_googlesheet_api-modal .jp_ggs_modal_content_thongtin .uk-table td,
#jp_googlesheet_api-modal .jp_ggs_modal_content_thongtin .uk-table th {
  border-bottom: 0 !important;
}

/* (tuỳ chọn) chắc chắn bảng không có đường viền ẩn nào */
#jp_googlesheet_api-modal .jp_ggs_modal_content_thongtin .uk-table,
#jp_googlesheet_api-modal .jp_ggs_modal_content_thongtin .uk-table tr {
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

/* 2) GIỮ vạch <hr> và chỉnh màu/độ mờ nếu muốn */
#jp_googlesheet_api-modal .jp_ggs_modal_content_thongtin hr{
  display: block !important;
  margin: 12px 0;
  height: 0;
  border: 0;
  border-top: 1.5px solid #2d2d2d !important; /* màu đen */
  opacity: 1 !important;
}


.jp_ggs_modal_content_rank .uk-grid>*>* {
    /* border-radius: 16px; */
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); */
    text-align: center;
    transition: 0.3s;
    /* background-position: center; */
    background: transparent !important;
    /* box-shadow: 2px 2px 4px 0px rgba(206, 216, 236, 0.70), -2px -2px 4px 0px rgba(255, 255, 255, 0.70); */
}

.uk-h6 {
color: #332d2d;
}


.jp_ggs_modal_content_rank p {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.jp_ggs_modal_content_rank small {
    font-size: 10px;
    transform: translateY(10px);
}

thead {
    background-color: #898989;
    color: #FFF;

}
[data-target="__rank_tri"],
[data-target="__rank_ultra_trail"],
[data-target="__rank_ultra_road"],
[data-target="__rank_42"],
[data-target="__rank_21"],
[data-target="__rank_10"] {
    font-size: 14px;
    color: #ff1313;
    width: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    align-items: center;
    line-height: 20px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 10px;
	font-size: 21px;
	 font-weight: 600;
}

[data-target="__rank_42"] .uk-text-bold,
[data-target="__rank_21"] .uk-text-bold,
[data-target="__rank_10"] .uk-text-bold,
[data-target="__rank_tri"] .uk-text-bold,
[data-target="__rank_ultra_trail"] .uk-text-bold,
[data-target="__rank_ultra_road"] .uk-text-bold
{
    font-size: 14px;
    margin-top: 10px;
	color: #332d2d;
}
.uk-text-bold {
    font-weight: 400;
}

[data-target="__rank_21"] {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 10px;
	
}

[data-target="__rank_10"] {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 10px;
}

.uk-table td {

    vertical-align: middle;
}

/* [data-target="__rank_21"] {
    color: #C524E0;
    font-size: 32px;
} */

/* [data-target="__rank_10"] {
    color: #38A3FF;
} */

.jp_ggs_modal_content_thongtin {
    padding: 10px 10px;
    color: #2d2d2d;
    font-size: 16px;
	background: transparent !important;
}


.uk-table-small td,
.uk-table-small th {
    padding: 5px;
}

.rank_value {
    border-radius: 100px;
    background: linear-gradient(358deg, #fbad18 0%, #ee2a29 100%);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #FFF;
    font-size: 20px;
    font-weight: 700;
    width: 130px;
    height: 130px;
    margin: 0 auto;
    display: flex;

}

.rank_title {
    text-align: center;
    font-size: 28px;
    font-style: normal;
    font-weight: 400;
}

.ju_chungnhan {
    background-image: url('../images/background.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 815px;
    height: 490px;
    margin-right: auto;
    transform-origin: top left;

}

.ju_first {
    padding-top: 85px;
    width: 295px;
    padding-left: 88px;

}

.uk-text-right {
    font-weight: bold;
    white-space: nowrap;
}

.jp_googlesheet_api_modal .ju_chungnhan .__img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
}

[data-target="__star"] {
    text-align: center;
}

[data-target="__star"] .uk-icon polygon {
    fill: #ffe500;
    stroke: transparent !important;

}

.ju_time {
    font-weight: bold;
    color: #614b00 !important;
    font-size: 25px !important;
    padding-top: 45px !important;
}

.__divright {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.__divright>* {
    width: 100%;
}

[data-target="__tengiai"] {
    font-size: 20px;
    font-weight: 500;
}

.ju_time+.uk-flex {
    gap: 4px;
    padding-top: 30px;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
	color: #614b00;
}

.ju_time [data-target="__mark"] {}

.ju_chungnhan [data-target="__star"] svg {
    width: 25px;
    height: 25px;
}

.ju_chungnhan {
    border-radius: 10px;
    border: 2px solid #FFF;
}

.ju_chungnhan [data-target="__name"] {
    padding-top: 40px;
    font-size: 30px;
    color: #FFF;
}

.ju_second {
    padding-top: 120px;
    text-align: center;
    padding-left: 90px;
    padding-right: 35px;
}

@media only screen and (max-width:1200px) {
    .uk-h6 {
        font-size: 12px;
    }
}

@media only screen and (max-width:640px) {

    .uk-modal-close-default {
        top: 0;
        right: 0;
    }

    .uk-modal-container .uk-modal-dialog {
        height: 100%;
        overflow: auto;
    }

    .jp_ggs_modal_content h3 {
        font-size: 20px;
    }

    .jp_ggs_modal_nav {
        width: 100%;
    }

    .__name {
        font-size: 10px;
        /* white-space: wrap; */
    }

    .uk-modal {
        padding: 0;
        border-radius: 0;
    }

    .uk-modal-container .uk-modal-dialog {
        border-radius: 0;
    }

    .jp_ggs_modal_nav>* {
        padding: 5px;
        box-sizing: border-box;
        padding-top: 20px;
    }

    .jp_ggs_modal_content {
        padding: 10px;
    }

    .switcher_div {
        font-size: 10px;
    }

    .switcher_div tr>td:nth-child(n+5) {
        display: none !important;
    }
/*
    .jp_ggs_modal_content_rank {
        display: none !important;
    }*/
}

.ju_chungnhan_wrap {
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
}

/* add new */
.nav-tabs+.tab-panels {
    padding: 0.1px !important;
}

.__table_wrap thead td {
    color: white;
    background: #989898;
    font-weight: bold;
}

td:first-child,
th:first-child {
    text-align: center;
}

.switcher_div.uk-switcher li {
    margin-left: 0 !important;
}

.jp_googlesheet_api .uk-pagination .uk-button {
    width: 35px;
    justify-content: center;
    background: #989898;
    color: #FFF !important;
    border-radius: 5px;
    height: 35px;
}

.uk-button {
    line-height: 33px !important;
}

.jp_googlesheet_api_modal .ju_chungnhan .__img {
    background: none;
}

[data-target="__star"] {
    height: 28.42px;
}

[data-target="__name"]+div {
    color: #9E9E9E;
    font-size: 12px;
}

.ju_chungnhan [data-target="__star"] {
    display: flex;
    justify-content: center;
    align-items: top;
    transform: translatey(-30px);
}

@media (max-width: 549px) {
    .jp_googlesheet_search>.uk-margin>div {
        width: 50%;
    }

    .jp_googlesheet_search>.uk-margin {
        display: flex;
        justify-content: space-between;
    }

    .jp_googlesheet_api .uk-pagination {
        justify-content: center;
        align-items: center;
        display: flex;
        flex-wrap: wrap !important;
        width: 100%;
    }
}

.jp_googlesheet_api li {
    margin-left: 0 !important;
}

.uk-table td {
    padding: 5px;
}

.jp_googlesheet_api * {
    font-size: 14px !important;
}

.jp_googlesheet_api_modal .ju_chungnhan .__img {
    background-size: contain;
}

.jp_googlesheet_api .uk-pagination>li {
    padding: 0 !important;
    margin-right: 3px;
}


.ju_time {
    text-align: left !important;
    padding-left: 75px !important;
}

td[data-target] {
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

.lenid-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.lenid-box {
    /* border-radius: 100px; */
    /* border: 1px solid #DEF5FD; */
    background: #ECEDF4;
    /* box-shadow: 2px 2px 4px 0px rgba(206, 216, 236, 0.70), -2px -2px 4px 0px rgba(255, 255, 255, 0.70); */
    padding: 2px 20px;
    color: #000;
    font-size: 14px;
background: transparent;}

.lenid-copy-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 1px 5px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
}

.lenid-copy-btn:hover {
    background-color: #0056b3;
}

.lenid-toast {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #28a745;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    display: none;
}

/* Style riêng cho tiêu đề "GIẤY CHỨNG NHẬN" trong tab Certificate */
#jp_googlesheet_api-modal .content_nav2 > .uk-h3.uk-margin-remove{
  font-family: 'Segoe UI', 'Roboto', sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #2d2d2d !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 20px !important;
}


.header-top {
	    background-image: linear-gradient(to right top, #72550c, #967515, #b79514, #c2a110, #d7cb94)
}
.lencontainer {
    width: 80%; /* Đặt chiều rộng của container tùy ý */
    margin: 0 auto; /* Căn giữa theo chiều ngang */
	font-family: "Times New Roman", Times, serif;
}
.container95 {
	width: 99%; /* Đặt chiều rộng của container tùy ý */
    margin: 0 auto; /* Căn giữa theo chiều ngang */
}
	
.nav-dropdown {
	min-width: 1080px !important;
}

/*-- chia cột Form --*/
#info-left {
    width: 49%;
    float: left;
    margin-right:2%;
}
#info-right {
    width: 49%;
    float: right;
}
.form-contact-twocol:after {
    content:"\0020";
    display:block;
    height:0;
    clear:both;
    visibility:hidden;
    overflow:hidden;
    margin-bottom:10px;
}
.form-contact-twocol {
    display:block;
}
/*-- Chèn icons lên Form --*/
.wpcf7 p{ position: relative; }
#icon-form{
  position: absolute;
  color: #666666;
  z-index: 100;
  font-size: 18px;
  top: 8px;
  right: 10px;
}
.chung-nhan-ban-cung {
	background-image: linear-gradient(to right top, #8c8f94, #c3c4c7, #ddd, #dcdcde, #d7cb94);
	padding: 25px;
	border: 1px solid #bfbfa0;
    border-radius: 10px;
}



/* ========== BESTMARATHON ACHIEVEMENTS - CLEAN REFACTORED VERSION ========== */
/* Complete CSS reset and isolation */
.bm-achievements,
.bm-achievements * {
    all: unset;
    box-sizing: border-box;
}

/* Container */
.bm-achievements {
    display: block;
    width: 100%;
    max-width: 630px;
    padding: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
}

/* Grid Wrapper */
.bm-ach-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

/* Card */
.bm-ach-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(90deg, #f9eadc 0%, #f7dfdb 50%, #f9eadc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
}

.bm-ach-card.bm-pending {
    opacity: 0.6;
}

/* Card without valid data - reduce opacity */
.bm-ach-card.bm-no-data {
    opacity: 0.3;
}

/* Card Header */
.bm-ach-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

/* Icon Circle */
.bm-ach-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    font-style: normal;
    font-size: 11px;
    font-weight: 400;
    color: #334155;
    flex-shrink: 0;
}

.bm-ach-ico.bm-sm {
    font-size: 10px;
}

/* Info Wrapper */
.bm-ach-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.bm-ach-info strong {
    display: block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    color: #1e293b;
    text-transform: uppercase;
    text-align: left;
}

.bm-ach-info small {
    display: block;
    font-size: 9px;
    font-weight: 400;
    line-height: 1.2;
    color: #64748b;
    text-align: left;
}

.bm-ach-info small.bm-amber {
    color: #d97706;
}

/* Card Footer */
.bm-ach-bot {
    display: flex;
    flex-direction: column;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.bm-ach-bot em {
    display: block;
    font-size: 8px;
    font-style: normal;
    font-weight: 400;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 4px;
    text-align: left;
}

/* Data Row */
.bm-ach-data {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Badges */
.bm-badge-amber,
.bm-badge-gray {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 400;
}

.bm-badge-amber {
    background: #fef3c7;
}

.bm-badge-amber span {
    color: #b45309;
}

.bm-badge-gray {
    background: #f1f5f9;
}

.bm-badge-gray span {
    color: #64748b;
}

/* Rank Badge */
.bm-rank {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    color: #f59e0b;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 4px;
    padding: 2px 6px;
}

/* Time Display */
.bm-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 700;
    color: #ea580c;
}

.bm-clock-icon {
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
}

/* Status Text */
.bm-status {
    display: block;
    font-size: 9px;
    font-style: italic;
    font-weight: 400;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 640px) {
    .bm-ach-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .bm-ach-info strong {
        font-size: 10px;
    }

    .bm-ach-info small {
        font-size: 8px;
    }

    .bm-time {
        font-size: 12px;
    }

    /* Hide cards without valid data on mobile */
    .bm-ach-card.bm-no-data {
        display: none;
    }
}
