/* [TFH-404:TFH_RECEIPT_INDEX:CSS-START] */
.tfh-receipt-index-screen {
  width: 100vw;
  height: 100dvh;
  position: fixed;
  inset: 0;
  z-index: 48;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 0%,rgba(47,127,196,.13),transparent 29%),
    linear-gradient(135deg,#eaf1f7,#f8fafc 48%,#e7eef5);
}

.tfh-receipt-index-body {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  gap: 13px;
  padding: 14px 16px;
  overflow: hidden;
}

.tfh-receipt-index-filter-card,
.tfh-receipt-index-grid-card {
  border: 1px solid rgba(17,49,84,.13);
  border-radius: 15px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 10px 30px rgba(18,52,92,.08);
}

.tfh-receipt-index-filter-card {
  padding: 12px;
}

.tfh-receipt-index-filters {
  display: grid;
  grid-template-columns:
    minmax(132px,.62fr)
    minmax(132px,.62fr)
    minmax(150px,.72fr)
    minmax(180px,.82fr)
    minmax(220px,1.08fr)
    minmax(220px,1.08fr)
    minmax(145px,.66fr)
    minmax(128px,auto);
  gap: 10px;
  align-items: end;
}

.tfh-receipt-index-filters .tfh-form-field {
  min-width: 0;
  width: 100%;
}

.tfh-receipt-index-filters input,
.tfh-receipt-index-filters select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
}

#tfhReceiptIndexWing {
  display: block;
  height: 42px;
  padding: 0 38px 0 12px;
  border: 1px solid var(--tfh-line);
  border-radius: 10px;
  color: var(--tfh-ink-900);
  background-color: #fff;
  background-image:
    linear-gradient(45deg,transparent 50%,#66788a 50%),
    linear-gradient(135deg,#66788a 50%,transparent 50%);
  background-position:
    calc(100% - 17px) 17px,
    calc(100% - 12px) 17px;
  background-size: 5px 5px,5px 5px;
  background-repeat: no-repeat;
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#tfhReceiptIndexWing:focus {
  border-color: rgba(47,127,196,.72);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(47,127,196,.12);
}

.tfh-receipt-index-find {
  min-height: 42px;
  white-space: nowrap;
}

.tfh-receipt-index-grid-card {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0,1fr) auto;
  overflow: hidden;
  border-top: 4px solid var(--tfh-blue-500);
}

.tfh-receipt-index-grid-scroll {
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
}

.tfh-receipt-index-table {
  width: 100%;
  min-width: 1240px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-family: "Segoe UI",Arial,sans-serif;
  font-size: 12px;
}

.tfh-receipt-index-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 43px;
  padding: 8px;
  color: #fff;
  background: linear-gradient(#6f879b,#334d63);
  text-align: center;
}

.tfh-receipt-index-table th:nth-child(1) { width: 145px; }
.tfh-receipt-index-table th:nth-child(2) { width: 105px; }
.tfh-receipt-index-table th:nth-child(3) { width: 230px; }
.tfh-receipt-index-table th:nth-child(4) { width: 205px; }
.tfh-receipt-index-table th:nth-child(5) { width: 135px; }
.tfh-receipt-index-table th:nth-child(6) { width: 130px; }
.tfh-receipt-index-table th:nth-child(7) { width: 260px; }
.tfh-receipt-index-table th:nth-child(8) { width: 120px; }

.tfh-receipt-index-table td {
  height: 41px;
  padding: 7px 8px;
  border-right: 1px solid #dde5ec;
  border-bottom: 1px solid #dde5ec;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tfh-receipt-index-table tbody tr {
  cursor: pointer;
}

.tfh-receipt-index-table tbody tr:nth-child(even) {
  background: #f5f8fa;
}

.tfh-receipt-index-table tbody tr:hover {
  background: #eaf3fb;
}

.tfh-receipt-index-table tbody tr.is-selected td {
  background: #dbeffc;
  box-shadow: inset 0 1px 0 #8fc3e8,inset 0 -1px 0 #8fc3e8;
}

.tfh-receipt-index-table .is-financial {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tfh-receipt-index-table .is-difference,
.tfh-receipt-index-table .is-equal {
  color: #fff;
  font-weight: 850;
  text-align: center;
}

.tfh-receipt-index-table .is-difference {
  background: #b7791f;
}

.tfh-receipt-index-table .is-equal {
  background: #18794e;
}

.tfh-receipt-index-summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 9px 14px;
  border-top: 1px solid var(--tfh-line);
  background: #f8fafc;
}

.tfh-receipt-index-summary strong {
  font-size: 1.08rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1480px) {
  .tfh-receipt-index-filters {
    grid-template-columns: repeat(4,minmax(170px,1fr));
  }
}

@media (max-width: 900px) {
  .tfh-receipt-index-filters {
    grid-template-columns: repeat(2,minmax(170px,1fr));
  }
}

@media (max-width: 720px) {
  .tfh-receipt-index-body {
    overflow: auto;
  }

  .tfh-receipt-index-filters {
    grid-template-columns: 1fr;
  }

  .tfh-receipt-index-grid-card {
    min-height: 480px;
  }
}
/* [TFH-404:TFH_RECEIPT_INDEX:CSS-END] */
