.mtp-nfc-ref { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.mtp-nfc-ref label { font-size: 14px; }
.mtp-nfc-grid { display: grid; gap: 12px 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); align-items: end; }
.mtp-nfc-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mtp-nfc-field input { width: 100%; }
.mtp-nfc-actions button { width: 100%; background: var(--mtp-raised-2); border-color: var(--mtp-brass); color: var(--mtp-brass-bright); }
.mtp-nfc-result { margin: 18px 0 4px; font-size: 18px; font-variant-numeric: tabular-nums; color: var(--mtp-brass-bright); overflow-wrap: anywhere; }
.mtp-nfc-hint { margin: 0; color: var(--mtp-muted); font-size: 14px; }
.mtp-nfc-field input.is-bad { border-color: #d9534f; }

.mtp-nfc-tablewrap { margin: 0 0 34px; }
.mtp-nfc-tablehead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.mtp-nfc-tablehead h2 { margin: 0; }
.mtp-nfc-print { min-height: 40px; padding: 6px 16px; background: transparent; color: var(--mtp-paper); border: 1px solid var(--mtp-line); border-radius: 2px; font: inherit; font-size: 14px; cursor: pointer; }
.mtp-nfc-print:hover { border-color: var(--mtp-brass); color: var(--mtp-brass-bright); }
.mtp-nfc-caption { color: var(--mtp-muted); font-size: 14px; margin: 8px 0 10px; }
.mtp-nfc-scroll { max-width: 100%; overflow-x: auto; }
.mtp-nfc-table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: 15px; }
.mtp-nfc-table th, .mtp-nfc-table td { padding: 5px 12px; text-align: right; border-bottom: 1px solid var(--mtp-line); }
.mtp-nfc-table thead th { position: sticky; top: 0; background: var(--mtp-raised); text-align: right; font-size: 13px; }
.mtp-nfc-table tbody th { text-align: left; font-weight: 600; }
.mtp-nfc-table tr.is-black th, .mtp-nfc-table tr.is-black td { background: color-mix(in srgb, var(--mtp-night) 55%, transparent); }
.mtp-nfc-table tbody tr:hover > * { background: var(--mtp-raised-2); color: var(--mtp-brass-bright); }
.mtp-nfc-table tr.is-selected > * { background: var(--mtp-raised-2); box-shadow: inset 0 1px var(--mtp-brass), inset 0 -1px var(--mtp-brass); }
.mtp-nfc-alt { font-weight: 400; color: var(--mtp-muted); }
.mtp-nfc-table tbody tr[data-midi] { cursor: pointer; }

@media print {
  body.mtp-print-table .mtp-nfc-tablewrap { position: static; }
  body.mtp-print-table .mtp-tool > :not(.mtp-nfc-tablewrap) { display: none !important; }
  body.mtp-print-table .mtp-nfc-print { display: none; }
  .mtp-nfc-scroll { overflow: visible; }
  .mtp-nfc-table { font-size: 9pt !important; color: #000; }
  .mtp-nfc-tablehead h2, .mtp-nfc-caption { color: #000 !important; }
  .mtp-nfc-table th, .mtp-nfc-table td { padding: 1px 8px !important; line-height: 1.15 !important; margin: 0 !important; border-bottom: 0.5px solid #999; background: none !important; color: #000 !important; }
  .mtp-nfc-table tr.is-black th, .mtp-nfc-table tr.is-black td { background: #eee !important; }
  .mtp-nfc-table thead { display: table-header-group; }
  .mtp-nfc-table tr { break-inside: avoid; }
  .mtp-nfc-table thead th { position: static; }
}
