/* [TFH-406:TFH_VOUCHER_DMS:CSS-START] */
.tfh-dms-layer,
.tfh-dms-viewer-layer {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4,16,31,.72);
  backdrop-filter: blur(8px);
}

.tfh-dms-viewer-layer {
  z-index: 120;
}

.tfh-dms-card,
.tfh-dms-viewer-card {
  width: min(1120px,100%);
  max-height: min(850px,calc(100dvh - 44px));
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0,0,0,.34);
}

.tfh-dms-card {
  grid-template-rows: auto auto minmax(0,1fr) auto;
}

.tfh-dms-viewer-card {
  height: min(850px,calc(100dvh - 44px));
  grid-template-rows: auto minmax(0,1fr);
}

.tfh-dms-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
  color: #fff;
  background: linear-gradient(135deg,#0b1f38,#19558f);
}

.tfh-dms-header span {
  color: var(--tfh-gold-300);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .13em;
}

.tfh-dms-header h2 {
  margin: 4px 0;
}

.tfh-dms-header p {
  margin: 0;
  color: rgba(255,255,255,.7);
}

.tfh-dms-toolbar,
.tfh-dms-footer {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--tfh-line);
  background: #f8fafc;
}

.tfh-dms-footer {
  border-top: 1px solid var(--tfh-line);
  border-bottom: 0;
}

.tfh-dms-file-button {
  position: relative;
  overflow: hidden;
}

.tfh-dms-file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.tfh-dms-list-scroll {
  min-height: 0;
  overflow: auto;
}

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

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

.tfh-dms-table td {
  height: 45px;
  padding: 7px;
  border-right: 1px solid #dde5ec;
  border-bottom: 1px solid #dde5ec;
}

.tfh-dms-table input {
  width: 100%;
  min-height: 32px;
  padding: 5px 7px;
  border: 1px solid #ccd8e3;
  border-radius: 6px;
}

.tfh-dms-table tr.is-marked-delete {
  opacity: .56;
  text-decoration: line-through;
}

.tfh-dms-row-button {
  min-height: 32px;
  padding: 6px 10px;
}

.tfh-dms-viewer-body {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  background: #202833;
}

.tfh-dms-viewer-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.tfh-dms-viewer-body img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 1180px) {
  .tfh-receipt-header-grid {
    grid-template-columns: repeat(4,minmax(160px,1fr));
  }

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

  .tfh-receipt-panel {
    min-height: 430px;
  }
}

@media (max-width: 720px) {
  .tfh-receipt-header-grid {
    grid-template-columns: 1fr;
  }

  .tfh-receipt-workspace {
    min-width: 680px;
  }

  .tfh-receipt-body {
    overflow: auto;
  }
}
/* [TFH-406:TFH_VOUCHER_DMS:CSS-END] */
