/* =========================================
   BASE / RESET NHẸ
========================================= */

.container th {
  text-transform:none !important;
}

.table-intro {
  display:block;
  max-width:100%;
  box-sizing:border-box;
  overflow:hidden;
  word-wrap:break-word;
  white-space:normal;
}

.table-intro img,
.table-intro table {
  max-width:100%;
  height:auto;
}

.page-wrapper {
  padding:10px 0 20px !important;
}

div[id*="loadmore"],
div[class*="loadmore"] {
  display:flex;
  align-items:center;
  justify-content:center;
  margin-top:10px;
}

/* =========================================
   LAYOUT / WRAPPERS
========================================= */

#results-container .row.form-margin {
  margin-left:0 !important;
  margin-right:0 !important;
  padding-left:12px;
  padding-right:12px;
}

#results-container .row.form-margin > [class*="col-"],
#results-container .row.form-margin > .form-padding {
  padding-left:8px;
  padding-right:8px;
}

.result-board table {
  margin-bottom:0 !important;
}

.lm-box {
  position:relative;
  background:#fff;
  margin-bottom:30px;
  border-radius:6px;
  overflow:hidden;
}

.lm-box-title {
  background:#f60;
  color:#fff;
  padding:10px 5px;
}

div.padding-10 {
  padding:10px 5px;
}

/* =========================================
   BUTTONS
========================================= */

button.button {
  display:inline-block;
  width:100% !important;
  padding:.375rem .75rem;
  font-size:1rem;
  font-weight:400;
  line-height:1.5;
  color:#fff;
  text-align:center;
  text-decoration:none;
  vertical-align:middle;
  cursor:pointer;
  user-select:none;
  background-color:#2c63ac;
  /* xanh lá */

  border:1px solid transparent;
  border-radius:.25rem;
  transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
  margin-left:5px !important;
  margin-right:5px !important;
}

button.button:hover {
  background-color:#0fe3d9;
}

button.button:focus {
  outline:none;
  box-shadow:0 0 0 3px rgba(124,181,24,0.5);
}

/* =========================================
   FILTER / FORM CONTROLS
========================================= */

.filter-container {
  padding:10px;
  background-color:#fff7eb;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-radius:10px;
  border:1px solid #0b65d5;
  flex-wrap:wrap;
  overflow:hidden;
  max-width:100%;
  box-sizing:border-box;
}

.form-check {
  /* gộp 2 khai báo trùng */

  display:flex !important;
  gap:10px;
  font-size:14px;
  font-weight:bold;
  color:#333;
  flex-wrap:wrap;
}

.form-check-inline {
  margin:0 10px;
}

.form-check-input {
  margin:0 10px !important;
  /* khoảng cách ngoài */

  padding:5px;
  /* radio nhỏ nên tác dụng ít */;
}

.form-check input[type="radio"] {
  accent-color:red;
  margin:0 6px 0 0;
  vertical-align:middle;
}

.form-check label {
  display:flex;
  align-items:center;
  cursor:pointer;
  margin:0;
}

.number-filter {
  display:flex;
  gap:1px;
  flex-wrap:wrap;
}

.number-option {
  display: inline-flex;              
  align-items: center;               
  justify-content: center;           
  width:25px;
  height:25px;
  line-height:25px;
  background-color:#2c63ac;
  color:#fff;
  font-weight:bold;
  border-radius:50%;
  border:1px solid #fff;
  cursor:pointer;
  transition:background-color .2s,transform .1s;
}

.number-option:hover,
.number-option.active {
  background-color:#506683;
  color:#fff;
}

.number-option:hover {
  transform:scale(1.1);
}

.dropdown-list {
  display:none;
}

.dropdown-list.show-dropdown {
  display:block;
}

span.highlighted {
  align-items: center;
  justify-content: center;
  width: 24px;                                 
  height: 24px;
  color: #fff;
  padding: 1px;
  border-radius: 50%;                           
  font-weight: 400;
  background: radial-gradient(circle at 5px 5px, #56FDF8, #000);
box-shadow: 3px 3px 10px -2px rgba(0, 0, 0, .4);
line-height: 22px;
}
/* =========================================
   TABLES (KQXS & BÀI VIẾT)
========================================= */

table.table-lotto {
  width:100%;
  border-spacing:0;
  border-color:#ececec;
  margin-bottom:0;
}

.table-lotto {
  /* canh giữa nội dung bảng */

  font-weight:500 !important;
  align-items:center !important;
  justify-content:center !important;
}

.table-lotto td,
.table-lotto th {
  border:1px solid var(--border-color);
  padding:6px;
  vertical-align:middle !important;
  text-align:center;
  border-collapse:collapse;
  height:37px;
  font-weight:700;
}

.table-lotto td[colspan="9"] {
  text-align:left !important;
  padding-left:8px;
}
.table-lotto a {
  color: #1c3a6b;              /* Màu chữ mặc định */
  text-decoration: underline;       /* Bỏ gạch chân */
  font-weight: 500;            /* Đậm nhẹ */
}

.table-lotto a:hover {
  color: #d32f2f;              /* Màu khi hover */
  text-decoration: underline;  /* Gạch chân khi hover */
}
/* viền dưới cho bảng đuôi */

.result-board-loto {
  border-collapse:collapse;
  width:100%;
  margin-bottom:10px;
  border-bottom:1px solid #ccc;
  /* thêm viền dưới */;
}

/* text-center helper cho bảng */

table.text-center,
table.text-center tr,
table.text-center td,
table.text-center th {
  text-align:center !important;
}

/* Icon tròn (không phụ thuộc FA) */

.table-lotto td i.far.fa-circle {
  display:inline-block !important;
  width:11px !important;
  height:11px !important;
  margin:0 2px !important;
  border:1px solid #333 !important;
  border-radius:50% !important;
  background:transparent !important;
  font-style:normal !important;
  font-family:inherit !important;
  font-weight:normal !important;
}

.table-lotto td i.far.fa-circle::before {
  content:"" !important;
}

i.fas.fa-circle.color-highlight {
  display:inline-block;
  width:11px;
  height:11px;
  margin:0 3px;
  border-radius:50%;
  background:#ee1c25;
  font-style:normal;
  font-family:inherit;
}

i.fas.fa-circle.color-highlight::before {
  content:"" !important;
}
/* --- Check Circle rỗng (chỉ viền) --- */
i.far.fa-check-circle {
  display: inline-block !important;
  width: 12px !important;
  height: 12px !important;
  margin: 0 2px !important;
  border: 1.5px solid #16a34a !important; 
  border-radius: 50% !important;
  background: transparent !important;
  position: relative !important;
  vertical-align: middle !important;
  font-style: normal !important;
  font-family: inherit !important;
  font-weight: normal !important;
  font-size: 0 !important; /* Thêm dòng này */
  color: transparent !important; /* Thêm dòng này */
}

i.far.fa-check-circle::before {
  content:"" !important;
  display: none !important; /* Thêm dòng này */
}

/* --- Check Circle đầy màu (đã check) --- */
i.fas.fa-check-circle {
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 3px !important;
  border-radius: 50% !important;
  background: #16a34a !important;
  position: relative !important;
  vertical-align: middle !important;
  font-style: normal !important;
  font-family: inherit !important;
  font-weight: normal !important;
  font-size: 0 !important; /* Thêm dòng này */
  color: transparent !important; /* Thêm dòng này */
}

i.fas.fa-check-circle::before {
  content:"" !important;
  display: none !important; /* Thêm dòng này */
}

i.fas.fa-check-circle::after {
  content: "" !important;
  position: absolute !important;
  top: 4px;
  left: 5.5px;
  width: 5px;
  height: 8px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(45deg);
}
.fa-check-circle:before,.fa-circle-check:before{content:"\f058"}
/* =========================================
   TEXT / MÀU CHỈ SỐ
========================================= */

.lm-prov {
  font-size:1.1em;
}

.lm-g7 {
  text-align:center;
  vertical-align:middle !important;
  color:#0555aa;
  font-size:1.1em;
}

.lm-gdb {
  text-align:center;
  vertical-align:middle !important;
  color:#0a0a0a;
  font-size:1.1em;
}

.lm-tail {
  color:#ee1c25;
  font-size:1.1em;
}

.lm-meta strong {
  color:#0555aa;
  font-size:1.1em;
}

.temp-number {
  color:#f60;
}

.entry-title {
  font-size:28px;
}

/* số KQ:căn giữa khi dùng flex ở ô */

.lottery-number {
  align-items:center !important;
  justify-content:center !important;
}


/* =========================================
   ANALYTICS CARET (không lệ thuộc FontAwesome)
========================================= */

.lm-analytics-wrap .fas.fa-caret-right {
  font-family:initial !important;
  font-style:normal !important;
  display:inline-block !important;
  width:0;
  height:0;
  margin-left:.5rem;
  vertical-align:middle;
  border-top:5px solid transparent;
  border-bottom:5px solid transparent;
  border-left:7px solid currentColor;
  color:#666;
  transition:transform .2s ease,color .2s ease;
}

.lm-analytics-wrap .fa-caret-right::before {
  content:none !important;
}

.lm-analytics-wrap a:hover .fa-caret-right {
  color:#111;
  transform:translateX(2px);
}

.lm-analytics-wrap [aria-expanded="true"] .fa-caret-right,
.lm-analytics-wrap .is-open .fa-caret-right,
.lm-analytics-wrap .open .fa-caret-right {
  transform:rotate(90deg);
}

/* =========================================
   SPINNER
========================================= */

.spinner {
  --size:22px;
  /* đường kính spinner */

  --r:10px;
  /* bán kính vòng chấm */

  --dot:4px;
  /* đường kính mỗi chấm */

  --color:currentColor;
  --duration:1s;
  position:relative;
  display:inline-block;
  width:var(--size);
  height:var(--size);
  line-height:1;
  font-style:normal;
  font-size:0;
}

.spinner::before {
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  width:var(--dot);
  height:var(--dot);
  margin:calc(var(--dot) / -2);
  border-radius:50%;
  background:transparent;
  /* bỏ chấm giữa */

  
/* 12 điểm trên đường tròn,mờ dần */

  box-shadow:0 calc(var(--r) * -1) currentColor,calc(0.5 * var(--r)) calc(-0.866 * var(--r)) color-mix(in srgb,currentColor 92%,transparent),calc(0.866 * var(--r)) calc(-0.5 * var(--r)) color-mix(in srgb,currentColor 84%,transparent),var(--r) 0 color-mix(in srgb,currentColor 76%,transparent),calc(0.866 * var(--r)) calc(0.5 * var(--r)) color-mix(in srgb,currentColor 68%,transparent),calc(0.5 * var(--r)) calc(0.866 * var(--r)) color-mix(in srgb,currentColor 60%,transparent),0 var(--r) color-mix(in srgb,currentColor 52%,transparent),calc(-0.5 * var(--r)) calc(0.866 * var(--r)) color-mix(in srgb,currentColor 44%,transparent),calc(-0.866 * var(--r)) calc(0.5 * var(--r)) color-mix(in srgb,currentColor 36%,transparent),calc(-1 * var(--r)) 0 color-mix(in srgb,currentColor 28%,transparent),calc(-0.866 * var(--r)) calc(-0.5 * var(--r)) color-mix(in srgb,currentColor 20%,transparent),calc(-0.5 * var(--r)) calc(-0.866 * var(--r)) color-mix(in srgb,currentColor 12%,transparent);
}

.spinner.spin {
  animation:spinner-rotate var(--duration) linear infinite !important;
}

@keyframes spinner-rotate {
  0% {
    transform:rotate(0);
  }
  100% {
    transform:rotate(360deg);
  }
}

/* =========================================
   ARTICLE CONTENT
========================================= */

tr.bg-light a {
  display: inline-block;
  font-weight: 500;
  color: #000;              
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

tr.bg-light a:hover {
  color: #0a38e1;                 
  text-decoration: none;
}
 

/* =========================================
   RESPONSIVE
========================================= */
/* =========================================
   WEEKS NAV (TAB MIỀN / NGÀY)
========================================= */

.weekdays {
  flex:1 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center;
  padding:10px 0;
  text-decoration:none;
  white-space:nowrap;
  font-weight:400;
  color:#1c3a6b;
  position:relative;
  transition:all .2s ease-in-out;
}

.weekdays:hover {
  background:#f5f5f5;
  color:#d32f2f;
}

.color-content-week {
  color:#fff !important;
}

.txt-change-content-week {
  display:flex;
  align-items:center;
  background:linear-gradient(#F13432,#F13432);
  border-radius:6px;
  overflow:hidden;
  /* bo mép con */

  padding:0;
}

.txt-change-content-week a.weekdays {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  line-height:1;
  color:#1c3a6b;
}

.txt-change-content-week a.weekdays:not(:first-child)::before {
  content:"";
  position:absolute;
  left:0;
  top:20%;
  bottom:20%;
  width:1px;
  background:rgba(0,0,0,.12);
}

.txt-change-content-week a.weekdays.bg-color-brand {
  color:#fff !important;
  
  background: #2C63AC !important; 
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
  border-radius:6px;
}

.txt-change-content-week a.weekdays:first-child {
  border-top-left-radius:6px;
  border-bottom-left-radius:6px;
}

.txt-change-content-week a.weekdays:last-child {
  border-top-right-radius:6px;
  border-bottom-right-radius:6px;
}

.txt-change-content-week a.weekdays:hover {
  background:rgba(255,255,255,.35);
}

.txt-change-content-week a.weekdays.bg-color-brand:hover {
  filter:brightness(1.05);
}

.label-full {
  display:inline;
}

.label-short {
  display:none;
}

.txt-change-content {
  /* vỏ pill ở nơi khác dùng */

  border-radius:10px;
  text-align:center;
  vertical-align:middle !important;
}

@media (max-width:768px) {
  #results-container .row.form-margin {
    padding-left:8px;
    padding-right:8px;
  }
  .txt-change-content-week {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(72px,1fr));
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
  .txt-change-content-week a.weekdays {
    justify-content:center;
    padding:10px 8px;
    font-size:14px;
  }
  .label-full {
    display:none;
  }
  .label-short {
    display:inline;
  }
  /* Ẩn các tab có class hide-mobile */  .txt-change-content-week a.weekdays.hide-mobile {
    display:none !important;
  }
}

@media screen and (max-width:600px) {
  .filter-container {
    flex-direction:column;
    align-items:flex-start;
  }
  .number-filter {
    justify-content:center;
    width:100%;
  }
}