/* /result — the old result.blade.php styles, copied value for value (owner instruction 9 Nov 2026: every size as
   on the old site). Additions only for elements the old page did not have: the day selector inside the old 200px
   right block, the screen-reader 4D text, the VOID badge/reason (U-V), the recording link (U-3) and the empty state. */
.div-result {
  display: inline-block;
  margin-top: 50px;
  margin-bottom: 50px;
}

.div-header-result {
  width: 100%;
}

.div-header-result .div-header-result-icon {
  display: inline-block;
  float: left;
}

.div-header-result-icon img {
  width: 50px;
  height: auto;
}

.div-header-result-icon span {
  font-size: 1.1em;
  padding-left: 10px;
  color: rgb(250, 96, 5);
  white-space: nowrap; /* old quirks mode kept "logo + VIETNAM 4D POOLS" on one line */
}

.div-header-result-header {
  display: inline-block;
  text-align: center;
  font-size: 1.2em;
  color: rgb(250, 96, 5);
  padding-top: 10px;
}

/* old: <div class="div-header-result-day" style="width: 200px;"> (inline style not allowed by the CSP) */
.div-header-result-day {
  display: inline-block;
  float: right;
  padding-top: 10px;
  width: 200px;
  position: relative;
}

/* The old 200px block was empty (its select was commented out). The day selector (P5) sits in it without taking
   space, so the block keeps its old 10px height and nothing else moves. */
.div-header-result-day select {
  position: absolute;
  top: 10px;
  right: 0;
}

.div-header-result-day select {
  border: none;
  border-radius: 5px;
  background-color: rgb(250, 96, 5);
  color: white;
  width: 200px;
  padding-top: 7px;
  padding-bottom: 7px;
  font-size: 0.8em;
  text-align: center;
}

.div-table-result {
  background-color: rgba(255, 255, 255, 0.5);
  margin-top: 20px;
}

.div-table-result .activeRow {
  background-color: rgba(252, 115, 5, 0.25);
}

.div-table-result table {
  border: none;
  line-height: normal; /* old quirks mode: tables do not inherit the page line height */
}

thead .thead-no {
  width: 100px;
}

/* The old head text of this column was "KHÔNG" (3.55em wide in crosswind); the corrected text "STT" is shorter.
   The old width is kept so every column stays where it was (the column is never narrower than its text). */
thead .thead-no span {
  display: inline-block;
  min-width: 3.55em;
}

thead .thead-result-day {
  width: 200px;
}

thead .thead-result-4d {
  width: 300px;
}

thead .thead-result {
  width: 350px;
}

.div-table-result thead tr {
  background-color: rgb(250, 96, 5);
  color: white;
  font-size: 0.9em;
  text-align: center;
}

.div-table-result thead tr td {
  padding-top: 7px;
  padding-bottom: 7px;
}

.div-table-result tbody {
  color: rgb(250, 96, 5);
  text-align: center;
  font-size: 1.1em;
}

.div-table-result .tbody-result-4d {
  padding-top: 15px;
  padding-bottom: 15px;
  line-height: 0; /* old quirks mode: no text descender gap under the round digits */
}

.div-table-result .tbody-result-4d .res-4d-digits {
  display: inline;
}

.div-table-result .tbody-result-4d .res-4d-digits div {
  line-height: normal;
}

.div-table-result .tbody-result-4d .res-4d-digits div {
  display: inline-block;
  background-color: rgb(252, 115, 5);
  color: white;
  font-size: 1.5em;
  font-family: "Square";
  border-radius: 50%;
  outline: solid;
  outline-width: 2px;
  outline-color: rgb(179, 68, 4);
  width: 35px;
  height: 35px;
  margin-left: 5px;
  margin-right: 5px;
  padding-top: 2px;
}

.div-table-result .tbody-result-4d div span {
  text-shadow: 2px 2px rgba(0, 0, 0, 0.3);
}

/* The 4D as text stays in the page for screen readers and copying; the round digits are the old look. */
.res-4d {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.void-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  background-color: #6c757d;
  color: white;
  font-size: 0.8rem;
}

.void-reason {
  font-family: 'VERDANA';
  font-size: 0.85rem;
  color: #495057;
  overflow-wrap: anywhere;
}

/* U-3 link: at least 40 x 40 px (§9.6); text ▶ (P5-j). */
.video-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  text-decoration: none;
}

.video-link .play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgb(250, 96, 5);
  color: white;
  font-size: 0.9rem;
}

.div-result .neutral {
  margin: 0;
  padding: 25px 10px;
  text-align: center;
  color: rgb(179, 68, 4);
  font-family: 'VERDANA';
  background-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 450px) {
  .div-table-result tbody {
    font-size: 0.9em;
  }

  .div-result {
    padding-left: 2%;
    padding-right: 2%;
  }

  .div-header-result {
    font-size: 0.7em;
  }

  .div-header-result .div-header-result-icon {
    width: 100%;
    margin-bottom: 25px;
  }

  .div-header-result .div-header-result-icon img {
    width: 50px;
    height: auto;
  }

  .div-header-result .div-header-result-header {
    width: 50%;
  }

  /* old: 50% here, but the inline style="width: 200px" of the old markup always won */
  .div-header-result .div-header-result-day {
    width: 200px;
  }

  .div-table-result table {
    font-size: 0.8em !important;
  }

  .div-table-result .thead-no {
    width: 20px;
  }

  .div-table-result .thead-result-day {
    width: 150px;
  }

  .div-table-result .thead-result-4d {
    width: 370px;
  }

  .div-table-result .thead-result {
    width: 230px;
  }

  .div-table-result .tbody-result-4d .res-4d-digits div {
    font-size: 1.6em;
    outline: solid;
    outline-width: 2px;
    outline-color: rgb(179, 68, 4);
    width: 25px;
    height: 25px;
    margin-left: 2px;
    margin-right: 2px;
    padding-top: 0px;
  }

  .div-result {
    min-height: 450px !important;
  }

  .div-header-result-day select {
    font-size: 1.1em;
  }
}
