/* ==========================================================================
   index.css - lab-report INDEX page layouts (moved here from style.css, same order)
     - index-tabular
     - index-ruled
     - index-bordered
     - index-watermark
     - index-elegant
     - index-modern
   Loaded right after template.css (see covermaker.html), before the light / lookup
   files, so the cascade is unchanged. New index layouts go at the END of this file.
   ========================================================================== */

/* ---------- TEMPLATE: index-tabular ---------- */


.tpl-index-tabular .ix-topbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 16px;
  background: var(--ixp, #1e5993);
}

.tpl-index-tabular .ix-botbar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 16px;
  background: var(--ixp, #1e5993);
}

.tpl-index-tabular table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 14px;
}

.tpl-index-tabular thead th {
  background: var(--ixp, #1e5993);
  color: #fff;
  padding: 11px 10px;
  font-weight: 700;
  text-align: left;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tpl-index-tabular thead th:first-child {
  border-top-left-radius: 6px;
}

.tpl-index-tabular thead th:last-child {
  border-top-right-radius: 6px;
}

.tpl-index-tabular tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid #e2e6ec;
  color: #222;
  vertical-align: top;
}

.tpl-index-tabular tbody tr.alt td {
  background: var(--ixtintrowa, rgba(164, 196, 223, 0.35));
}

.tpl-index-tabular tbody tr.empty td {
  color: #c7cad1;
}

.tpl-index-tabular td.no {
  width: 44px;
  text-align: center;
  font-weight: 800;
  color: var(--ixs, #6b1d52);
}

.tpl-index-tabular td.date {
  width: 148px;
  white-space: nowrap;
}

.tpl-index-tabular td.page {
  width: 56px;
  text-align: center;
  white-space: nowrap;
}

.tpl-index-tabular td.sign {
  width: 110px;
}

.tpl-index-tabular .ix-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: #666;
  padding-top: 16px;
  border-top: 1px dashed #cfd3da;
}

/* ---------- TEMPLATE: index-ruled ---------- */


.tpl-index-ruled {
  text-align: center;
}

.tpl-index-ruled .ix-uni {
  font-size: 23px;
  font-weight: 700;
  color: var(--ixp, #273797);
}

.tpl-index-ruled .ix-dept {
  font-size: 14.5px;
  color: #666;
  margin-top: 5px;
}

.tpl-index-ruled .ix-rule {
  width: 110px;
  height: 2px;
  background: var(--ixp, #273797);
  margin: 22px auto;
  border-radius: 2px;
}

.tpl-index-ruled .ix-eyebrow {
  font-size: 13px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ixs, #479dce);
  font-weight: 700;
}

.tpl-index-ruled .ix-title {
  font-size: 25px;
  font-weight: 700;
  margin-top: 10px;
  color: #1a1a1a;
}

.tpl-index-ruled .ix-subtitle {
  font-size: 13px;
  color: #777;
  margin-top: 8px;
}

.tpl-index-ruled .ix-list {
  margin-top: 42px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tpl-index-ruled .ix-row {
  display: flex;
  align-items: baseline;
  font-size: 15.5px;
  color: #222;
}

.tpl-index-ruled .ix-no {
  width: 32px;
  flex: none;
  font-weight: 700;
  color: var(--ixp, #273797);
}

.tpl-index-ruled .ix-name {
  flex: none;
  max-width: 58%;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tpl-index-ruled .ix-dots {
  flex: 1;
  border-bottom: 1.5px dotted #a8adb6;
  margin: 0 10px 4px;
}

.tpl-index-ruled .ix-date {
  flex: none;
  font-size: 13px;
  color: #666;
}

.tpl-index-ruled .ix-empty {
  margin-top: 48px;
  text-align: center;
  color: #999;
  font-size: 14px;
  font-style: italic;
}

.tpl-index-ruled .ix-signrow {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  padding-top: 34px;
}

.tpl-index-ruled .sign-block {
  width: 190px;
  text-align: center;
  font-size: 11.5px;
  color: #666;
  border-top: 1px solid #aaa;
  padding-top: 6px;
}

.tpl-index-ruled .ix-signee-name {
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 700;
  color: #222;
}

.tpl-index-ruled .ix-signee-desig {
  font-size: 11px;
  color: #666;
}

/* ---------- TEMPLATE: index-bordered ---------- */


.tpl-index-bordered .ix-topbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 14px;
  background: var(--ixp, #1e5993);
}

.tpl-index-bordered .ix-head {
  margin-top: 8px;
}

.tpl-index-bordered .ix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
  margin-top: 14px;
  align-content: start;
}

.tpl-index-bordered .ix-box {
  border: 2px solid var(--ixp, #1e5993);
  border-radius: 14px;
  padding: 18px 18px 14px;
  background: var(--ixtint, #ebf3f9);
  position: relative;
}

.tpl-index-bordered .ix-box-no {
  position: absolute;
  top: -13px;
  left: 14px;
  background: var(--ixp, #1e5993);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 11px;
  border-radius: 20px;
  letter-spacing: .03em;
}

.tpl-index-bordered .ix-box-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 8px;
  line-height: 1.35;
  min-height: 38px;
}

.tpl-index-bordered .ix-box-date {
  margin-top: 10px;
  font-size: 12px;
  color: #555;
}

.tpl-index-bordered .ix-box-sign {
  margin-top: 22px;
  height: 22px;
  font-size: 10.5px;
  color: #8a8f99;
  border-top: 1px dashed #c3c8d1;
  padding-top: 7px;
}

.tpl-index-bordered .ix-empty {
  grid-column: 1/-1;
  margin-top: 36px;
  text-align: center;
  color: #999;
  font-size: 14px;
  font-style: italic;
}

/* ---------- TEMPLATE: index-watermark ---------- */


.tpl-index-watermark {
  width: 90%;
  height: 93%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
  position: relative;
  box-sizing: border-box;
  background: #fff;
  color: #1b1b1b;
  font-family: var(--paper-font, "Times New Roman", Times, serif);
  padding: 42px 40px 34px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  border: 3px solid var(--ixp, #1e5993);
  border-radius: 12px;
}

.tpl-index-watermark * {
  box-sizing: border-box;
}

.tpl-index-watermark .ix-vs-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
  pointer-events: none;
}

.tpl-index-watermark .ix-vs-watermark img {
  width: 58%;
  max-width: 320px;
  opacity: .14;
  filter: grayscale(1);
}

.tpl-index-watermark .ix-vs-head {
  text-align: center;
  margin-bottom: 20px;
}

.tpl-index-watermark .ix-vs-logo-slot {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.tpl-index-watermark .ix-vs-logo {
  display: block;
  max-height: 100%;
  max-width: 80%;
}

.tpl-index-watermark .ix-uni {
  font-size: 20px;
  font-weight: 900;
  color: var(--ixp, #1e5993);
  margin-bottom: 12px;
}

.tpl-index-watermark .ix-vs-title {
  display: inline-block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #1b1b1b;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--ixp, #1e5993);
  margin-top: 18px;
}

.tpl-index-watermark table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  border: 1px solid var(--ixp, #1e5993);
}

.tpl-index-watermark thead th {
  border: 1px solid var(--ixp, #1e5993);
  padding: 9px 10px;
  font-weight: 700;
  text-align: center;
  color: var(--ixp, #1e5993);
  white-space: nowrap;
}

.tpl-index-watermark tbody td {
  border: 1px solid var(--ixp, #1e5993);
  padding: 10px;
  height: 30px;
  text-align: center;
  color: #222;
  vertical-align: middle;
}

.tpl-index-watermark td.name {
  text-align: left;
}

.tpl-index-watermark td.no {
  width: 60px;
  font-weight: 700;
  color: var(--ixs, #6b1d52);
}

.tpl-index-watermark td.date {
  width: 110px;
  white-space: nowrap;
}

.tpl-index-watermark td.page {
  width: 90px;
}

.tpl-index-watermark td.remarks {
  width: 110px;
}

.tpl-index-watermark .ix-vs-signrow {
  margin-top: auto;
  align-self: flex-end;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding-top: 26px;
}

.tpl-index-watermark .ix-vs-sign-line {
  display: inline-block;
  width: 150px;
  border-bottom: 1px solid #1b1b1b;
  height: 1px;
}

.tpl-index-watermark .ix-vs-signline {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.tpl-index-watermark .ix-vs-signrow.has-signee {
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.tpl-index-watermark .ix-vs-signee {
  align-self: flex-end;
  text-align: right;
  line-height: 1.3;
}

.tpl-index-watermark .ix-signee-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #1b1b1b;
}

.tpl-index-watermark .ix-signee-desig {
  font-size: 11px;
  color: #555;
}

.tpl-index-watermark .ix-vs-sign-label {
  font-size: 12px;
  color: #555;
  font-weight: 600;
  white-space: nowrap;
}


/* ---------- TEMPLATE: index-elegant (double frame, serif luxe) ---------- */

.tpl-index-elegant,
.tpl-index-modern {
  width: 100%;
  height: 100%;
  position: relative;
  box-sizing: border-box;
  background: #fff;
  color: #1b1b1b;
  font-family: var(--paper-font, "Times New Roman", Times, serif);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.tpl-index-elegant *,
.tpl-index-modern * {
  box-sizing: border-box;
}

.tpl-index-elegant .ix-el-frame {
  position: absolute;
  inset: 26px;
  border: 1.6px solid var(--ixp, #1e5993);
  pointer-events: none;
}

.tpl-index-elegant .ix-el-frame-in {
  position: absolute;
  inset: 6px;
  border: 0.6px solid var(--ixp, #1e5993);
  opacity: .55;
}

.tpl-index-elegant .ix-el-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 74px 80px 62px;
}

.tpl-index-elegant.ix-continuation .ix-el-body {
  padding-top: 70px;
}

.tpl-index-elegant .ix-el-head {
  text-align: center;
}

.tpl-index-elegant .ix-uni {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ixp, #1e5993);
}

.tpl-index-elegant .ix-dept {
  font-size: 13.5px;
  font-style: italic;
  color: #666;
  margin-top: 4px;
}

.tpl-index-elegant .ix-el-orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 18px;
}

.tpl-index-elegant .ix-el-orn span {
  width: 74px;
  height: 1px;
  background: var(--ixp, #1e5993);
  opacity: .6;
}

.tpl-index-elegant .ix-el-orn i {
  width: 8px;
  height: 8px;
  background: var(--ixs, #6b1d52);
  transform: rotate(45deg);
  display: block;
}

.tpl-index-elegant .ix-el-eyebrow {
  font-size: 11.5px;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--ixs, #6b1d52);
  font-weight: 600;
  padding-left: .5em;
}

.tpl-index-elegant .ix-title {
  font-size: 28px;
  font-weight: 700;
  margin-top: 8px;
  color: #161616;
  letter-spacing: .01em;
}

.tpl-index-elegant .ix-subtitle {
  font-size: 12.5px;
  font-style: italic;
  color: #777;
  margin-top: 8px;
}

.tpl-index-elegant .ix-el-cols,
.tpl-index-elegant .ix-el-row {
  display: grid;
  grid-template-columns: 46px 1fr 112px 52px;
  align-items: baseline;
  column-gap: 12px;
}

.tpl-index-elegant .ix-el-cols {
  margin-top: 34px;
  padding-bottom: 8px;
  border-bottom: 1.4px solid var(--ixp, #1e5993);
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ixp, #1e5993);
}

.tpl-index-elegant .ix-el-cols .c-date,
.tpl-index-elegant .ix-el-cols .c-page {
  text-align: right;
}

.tpl-index-elegant .ix-list {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}

.tpl-index-elegant.ix-continuation .ix-list {
  margin-top: 0;
}

.tpl-index-elegant .ix-el-row {
  padding: 13px 0;
  border-bottom: 0.7px solid rgba(0, 0, 0, .16);
  font-size: 15px;
}

.tpl-index-elegant .ix-el-no {
  font-size: 19px;
  font-style: italic;
  font-weight: 600;
  color: var(--ixs, #6b1d52);
  line-height: 1;
}

.tpl-index-elegant .ix-el-name {
  font-weight: 600;
  color: #1c1c1c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tpl-index-elegant .ix-el-date {
  text-align: right;
  font-size: 12.5px;
  color: #666;
  white-space: nowrap;
}

.tpl-index-elegant .ix-el-page {
  text-align: right;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ixp, #1e5993);
}

.tpl-index-elegant .ix-empty {
  margin-top: 48px;
  text-align: center;
  color: #999;
  font-size: 14px;
  font-style: italic;
}

.tpl-index-elegant .ix-signrow {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  padding-top: 36px;
}

.tpl-index-elegant .sign-block {
  width: 180px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: .08em;
  color: #666;
  border-top: 1px solid var(--ixp, #1e5993);
  padding-top: 6px;
}

.tpl-index-elegant .ix-signee-name {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0;
  color: #222;
}

.tpl-index-elegant .ix-signee-desig {
  display: block;
  font-size: 11px;
  letter-spacing: 0;
  color: #666;
}

/* ---------- TEMPLATE: index-modern (clean badges, soft cards) ---------- */

.tpl-index-modern {
  overflow: hidden;
}

.tpl-index-modern .ix-md-side {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 28px;
  background: linear-gradient(180deg, var(--ixp, #1e5993) 0%, var(--ixs, #6b1d52) 140%);
  z-index: 1;
}

.tpl-index-modern .ix-md-circles {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 260px;
  height: 260px;
  /* No negative z-index: html2canvas ignores the isolated stacking context and
     paints it behind the page background, so the circles vanished in PNG/PDF. */
  z-index: 0;
  pointer-events: none;
}

.tpl-index-modern .ix-md-circles i {
  position: absolute;
  border-radius: 50%;
  display: block;
}

.tpl-index-modern .ix-md-circles i:nth-child(1) {
  inset: 0;
  background: var(--ixtint, #ebf3f9);
}

.tpl-index-modern .ix-md-circles i:nth-child(2) {
  inset: 38px;
  border: 1.5px solid var(--ixp, #1e5993);
  opacity: .25;
}

.tpl-index-modern .ix-md-circles i:nth-child(3) {
  inset: 84px;
  background: var(--ixp, #1e5993);
  opacity: .1;
}

.tpl-index-modern .ix-md-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 62px 56px 50px 86px;
}

.tpl-index-modern.ix-continuation .ix-md-body {
  padding-top: 56px;
}

.tpl-index-modern .ix-md-head {
  margin-bottom: 26px;
}

.tpl-index-modern .ix-md-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ixp, #1e5993);
  padding: 5px 12px 5px 14px;
  background: var(--ixtint, #ebf3f9);
  border-radius: 999px;
}

.tpl-index-modern .ix-title {
  font-size: 38px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #151515;
  margin-top: 16px;
  max-width: 80%;
}

.tpl-index-modern .ix-md-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  margin-top: 14px;
}

.tpl-index-modern .ix-uni {
  font-size: 15px;
  font-weight: 700;
  color: var(--ixp, #1e5993);
}

.tpl-index-modern .ix-dept {
  font-size: 13px;
  color: #666;
}

.tpl-index-modern .ix-subtitle {
  font-size: 12.5px;
  color: #888;
  margin-top: 6px;
}

.tpl-index-modern .ix-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 4px;
}

.tpl-index-modern.ix-continuation .ix-list {
  margin-top: 0;
}

.tpl-index-modern .ix-md-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 16px 11px 12px;
  background: var(--ixtint, #ebf3f9);
  border-radius: 14px;
  border-left: 4px solid var(--ixp, #1e5993);
}

.tpl-index-modern .ix-md-badge {
  flex: none;
  min-width: 38px;
  height: 38px;
  padding: 0 6px;
  border-radius: 50%;
  background: var(--ixp, #1e5993);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tpl-index-modern .ix-md-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tpl-index-modern .ix-md-name {
  font-size: 15.5px;
  font-weight: 700;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tpl-index-modern .ix-md-date {
  font-size: 12px;
  color: #6a6f78;
}

.tpl-index-modern .ix-md-page {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--ixp, #1e5993);
  line-height: 1.1;
  padding-left: 14px;
  border-left: 1px solid rgba(0, 0, 0, .14);
}

.tpl-index-modern .ix-md-page small {
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: #888;
}

.tpl-index-modern .ix-empty {
  margin-top: 48px;
  text-align: center;
  color: #999;
  font-size: 14px;
  font-style: italic;
}

.tpl-index-modern .ix-signrow {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  padding-top: 34px;
}

.tpl-index-modern .sign-block {
  width: 180px;
  text-align: center;
  font-size: 11.5px;
  color: #666;
  border-top: 2px solid var(--ixp, #1e5993);
  padding-top: 6px;
}

.tpl-index-modern .ix-signee-name {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 700;
  color: #222;
}

.tpl-index-modern .ix-signee-desig {
  display: block;
  font-size: 11px;
  color: #666;
}