/* TU VI CSS */
.tuvi-grid-sample { position: relative;
  display: grid;
  grid-template-columns: repeat(4, 175px);
  grid-template-rows: repeat(4, 250px);
  border: 2px solid #212121;
  background-image: url('/paper-bg.jpg');
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-color: transparent;
  box-shadow: 2px 4px 15px rgba(0,0,0,0.2);
  width: max-content;
  min-width: 704px;
  height: max-content;
  min-height: 1004px;
  box-sizing: border-box;
  color: #212121;
  font-family: Arial, Tahoma, sans-serif;
  position: relative;
}

.palace-cell-sample {
  border: 1px solid #212121;
  height: 250px;
  width: 175px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background-color: transparent;
  box-sizing: border-box;
}

.tuan-triet-box {
  position: absolute;
  background-color: #000000;
  color: #ffffff;
  font-weight: 900;
  font-size: 11px;
  padding: 0px 8px;
  line-height: 1.2;
  border-radius: 4px;
  z-index: 10;
  white-space: nowrap;
  text-transform: uppercase;
  box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

.palace-header-sample {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 8px;
  border-bottom: 1px dotted #777777;
  font-size: 13.5px;
  font-weight: bold;
}
.palace-header-sample .can-chi { color: #212121; font-size: 11px; font-weight: bold; white-space: nowrap; }
.palace-header-sample .palace-name { color: #0000FF; font-size: 12.5px; font-weight: 800; white-space: nowrap; line-height: 14px; padding-top: 2px; }
.palace-header-sample .dai-han { color: #212121; font-size: 11px; font-weight: bold; white-space: nowrap; }

.palace-body-sample {
  padding: 6px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* NGU HANH STAR COLOR SYSTEM MATCHING SAMPLE CHART */
.element-kim  { color: #666666 !important; }
.element-moc  { color: #008000 !important; }
.element-thuy { color: #000000 !important; }
.element-hoa  { color: #FF0000 !important; }
.element-tho  { color: #8B6508 !important; }

.main-stars-sample {
  text-align: center;
  margin-bottom: 8px;
}
.main-star-item-sample {
  font-weight: 900;
  font-size: 14px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-shadow: 0px 0px 1px rgba(0,0,0,0.1);
}

.sub-stars-grid-sample {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}
.good-stars-sample { text-align: left; }
.good-stars-sample .mutagen-star { font-weight: bold; }
.bad-stars-sample { text-align: right; }
.bad-stars-sample .mutagen-ky { font-weight: bold; }

/* PHU TINH GROUPS */
.phu-tinh-section {
  border-top: 1px dotted #bbbbbb;
  margin-top: 3px;
  padding-top: 3px;
  font-size: 11.5px;
  line-height: 1.4;
}
.phu-tinh-label {
  font-size: 9.5px;
  font-weight: bold;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1px;
}
.phu-tinh-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 6px;
}
.luc-cat-star { color: #008000; }
.luc-sat-star { color: #CC0000; }
.bac-sy-good { color: #1a56db; }
.bac-sy-bad  { color: #8B0000; }
.thai-tue-good { color: #5a6e00; }
.thai-tue-bad  { color: #b45309; }
.tu-hoa-loc  { color: #7c3aed; font-weight: bold; }
.tu-hoa-ky   { color: #9f1239; font-weight: bold; }
.tu-hoa-section { border-top: 1px solid #c4b5fd; }

.boxed-star-container-sample {
  margin-top: 4px;
  display: flex;
  justify-content: center;
  gap: 4px;
}
.boxed-star-item-sample {
  border: 1px solid #212121;
  width: 78px;
  height: 20px;
  font-size: 12px;
  font-weight: bold;
  color: #cc0000;
  background-color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 14px;
  padding: 0;
}

.palace-footer-sample {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 8px;
  border-top: 1px dotted #777777;
  font-size: 11.5px;
  color: #333333;
}
.palace-footer-sample span { white-space: nowrap; }
.palace-footer-sample .trang-sinh { font-weight: bold; color: #212121; }

/* CENTER THIEN BAN BOX (Spans 2 columns x 2 rows) */
.thien-ban-center-sample {
  grid-column: span 2;
  grid-row: span 2;
  border: 1px solid #212121;
  background-color: transparent;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  box-sizing: border-box;
}
.thien-ban-header-title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #bbbbbb;
}
.thien-ban-header-title img {
  width: 48px;
  height: 48px;
  margin-right: 14px;
  border-radius: 50%;
  object-fit: cover;
}
.thien-ban-header-title h2 {
  font-size: 11px;
  color: #cc0000;
  margin: 0;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  line-height: 1.4;
  white-space: nowrap;
}

.thien-ban-left-sample {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.thien-ban-left-sample table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  line-height: 1.45;
}
.thien-ban-left-sample td { padding: 2px 0; vertical-align: top; text-align: left; }
.thien-ban-left-sample td.lbl { color: #000000; font-weight: 700; width: 105px; }
.thien-ban-left-sample td.val { color: #0000FF; font-weight: 700; }
.thien-ban-left-sample td.col-sol { width: 75px; color: #0000FF; font-weight: 700; }
.thien-ban-left-sample td.col-lun { width: 65px; color: #0000FF; font-weight: 700; }
.thien-ban-left-sample td.col-cc  { color: #0000FF; font-weight: 700; }

.thien-ban-contact-sample {
  color: #cc0000;
  font-size: 11px;
  line-height: 1.4;
  margin-top: 8px;
  font-weight: 500;
}

.thien-ban-right-sample {
  width: 145px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border-left: 1px solid #dcdcdc;
  padding-left: 12px;
}

.chinese-calligraphy-sample {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: "SimSun", "PMingLiU", "KaiTi", "DFKai-SB", serif;
  font-size: 30px;
  font-weight: 900;
  color: #212121;
  letter-spacing: 5px;
  margin-top: 4px;
}

.seal-stamp-container-sample {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 8px 0;
}
.seal-text-side-sample {
  writing-mode: vertical-rl;
  font-size: 9.5px;
  color: #555555;
}
.red-seal-box-sample {
  border: 2px solid #cc0000;
  color: #cc0000;
  padding: 2px 4px;
  font-family: "KaiTi", "SimSun", serif;
  font-weight: bold;
  font-size: 13px;
  line-height: 1.1;
  text-align: center;
  width: 30px;
  height: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.qr-code-box-sample img {
  width: 90px;
  height: 90px;
  border: 1px solid #333333;
}




