/* Tela "MED e contestações" do painel do lojista. */
.nx-med { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 980px; }
.nx-med > * { min-width: 0; }

.nx-med-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.nx-med-status > div {
  display: grid; gap: 6px; padding: 16px 18px; border-radius: 14px;
  background: var(--rf-surface, #140e22); border: 1px solid var(--rf-line, #2a2140);
}
.nx-med-status span { color: var(--rf-muted, #9890b0); font-size: 13px; }
.nx-med-status strong { color: var(--rf-text, #f2eefb); font: 800 24px/1.1 'Archivo', system-ui, sans-serif; font-variant-numeric: tabular-nums; }

.nx-med-card {
  padding: 20px 22px; border-radius: 16px; background: var(--rf-surface, #140e22); border: 1px solid var(--rf-line, #2a2140);
}
.nx-med-card h2 { margin: 0 0 10px; color: var(--rf-text, #f2eefb); font: 800 18px/1.25 'Archivo', system-ui, sans-serif; }
.nx-med-card p { margin: 0 0 10px; color: var(--rf-text-2, #c8c0dc); line-height: 1.6; }
.nx-med-card p:last-child { margin-bottom: 0; }
.nx-med-intro { background: linear-gradient(135deg, rgba(124, 58, 237, .16), rgba(124, 58, 237, .04)), var(--rf-surface, #140e22); border-color: rgba(167, 139, 250, .3); }
.nx-med-note { color: var(--rf-muted, #9890b0) !important; font-size: 13.5px; }
.nx-med-note a { color: #c4b5fd; text-decoration: underline; }

.nx-med-steps { display: grid; gap: 0; margin: 4px 0 0; padding: 0; list-style: none; counter-reset: med; }
.nx-med-steps li {
  position: relative; display: grid; gap: 3px; padding: 0 0 18px 46px; counter-increment: med;
}
.nx-med-steps li::before {
  content: counter(med); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(124, 58, 237, .18); border: 1px solid rgba(167, 139, 250, .45); color: #e9d5ff; font: 800 13px/1 'Archivo', system-ui, sans-serif;
}
.nx-med-steps li:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 30px; bottom: 2px; width: 1px; background: rgba(167, 139, 250, .3); }
.nx-med-steps li:last-child { padding-bottom: 0; }
.nx-med-steps b { color: var(--rf-text, #f2eefb); }
.nx-med-steps span { color: var(--rf-text-2, #c8c0dc); line-height: 1.55; font-size: 14px; }

.nx-med-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nx-med-list { display: grid; gap: 9px; margin: 0; padding-left: 18px; color: var(--rf-text-2, #c8c0dc); line-height: 1.5; font-size: 14px; }
.nx-med-balance { display: grid; gap: 0; margin: 0 0 12px; }
.nx-med-balance > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rf-line, #2a2140); font-size: 14px; }
.nx-med-balance dt { color: var(--rf-muted, #9890b0); }
.nx-med-balance dd { margin: 0; color: var(--rf-text, #f2eefb); font-weight: 600; text-align: right; }

.nx-med-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.nx-med-head h2 { margin: 0; }
.nx-med-none { display: grid; gap: 4px; padding: 18px; border-radius: 12px; border: 1px dashed var(--rf-line-strong, #3c3058); color: var(--rf-muted, #9890b0); margin-bottom: 12px; }
.nx-med-none b { color: var(--rf-text, #f2eefb); }

@media (max-width: 760px) {
  .nx-med-grid { grid-template-columns: minmax(0, 1fr); }
  .nx-med-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-med-status > div:last-child { grid-column: 1 / -1; }
  .nx-med-card { padding: 16px; }
}
.nx-med-status strong * { font: inherit; color: inherit; }
