.multi-file-manager .medicare-card-actions {
  flex-wrap: wrap;
}

.multi-file-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.multi-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border: 1px solid rgba(138,129,120,.38);
  border-radius: 10px;
  background: #fff;
}

.multi-file-row > div:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.multi-file-row strong {
  overflow: hidden;
  color: #102a43;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-file-row span,
.multi-file-empty {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.multi-file-row > div:last-child {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.multi-file-row .btn {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}

.multi-file-empty {
  padding: 8px 2px;
}

.mh-file-preview-dialog {
  width: min(1100px, calc(100vw - 24px));
  height: min(860px, calc(100vh - 24px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: 0 24px 70px rgba(15,23,42,.28);
}

.mh-file-preview-dialog::backdrop {
  background: rgba(15,23,42,.58);
}

.mh-file-preview-frame {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 16px;
  background: #f8fafc;
}

.mh-file-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid #dbe3ea;
  background: #fff;
}

.mh-file-preview-head > div:first-child {
  min-width: 0;
}

.mh-file-preview-head h2 {
  margin: 0;
  overflow: hidden;
  color: #102a43;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mh-file-preview-head p {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.mh-file-preview-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.mh-file-preview-body {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  background: #e9eef3;
}

.mh-file-preview-body img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.mh-file-preview-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.mh-file-preview-unavailable {
  max-width: 460px;
  display: grid;
  gap: 8px;
  padding: 26px;
  text-align: center;
  color: #334155;
}

.mh-file-preview-unavailable strong {
  color: #102a43;
  font-size: 18px;
}

@media (max-width: 700px) {
  .multi-file-row {
    align-items: stretch;
    flex-direction: column;
  }

  .multi-file-row > div:last-child {
    width: 100%;
  }

  .multi-file-row > div:last-child .btn {
    flex: 1;
  }

  .mh-file-preview-dialog {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }

  .mh-file-preview-frame {
    border-radius: 0;
  }

  .mh-file-preview-head {
    align-items: flex-start;
  }

  .mh-file-preview-actions .btn {
    display: none;
  }
}
