/* PANEL POR PESTAÑAS (2026-10-18), con el aspecto del panel de consola-mc: casi a pantalla completa, cabecera blanca con
   el logo, pestañas en el centro (en el móvil, en su propia fila debajo), la activa en oscuro; cada pestaña del ancho de
   su nombre y, si no caben, dos filas. */
.mcp-overlay.preset-modal-overlay { padding: 0; place-items: stretch; background: rgba(2, 6, 23, 0.55); backdrop-filter: blur(4px); }
@media (min-width: 640px) { .mcp-overlay.preset-modal-overlay { padding: 12px; } }
html.mcp-abierto { overflow: hidden; }
.mcp-panel {
  display: flex; flex-direction: column; width: 100%; max-width: 1280px; height: 100%; margin: 0 auto; overflow: hidden;
  background: #f8fafc; color: #0f172a; font-family: 'Space Grotesk', system-ui, sans-serif; box-shadow: 0 25px 60px rgba(0, 0, 0, .35);
}
@media (min-width: 640px) { .mcp-panel { border-radius: 10px; } }
.mcp-cabecera { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-bottom: 1px solid #e2e8f0; }
@media (min-width: 640px) { .mcp-cabecera { padding: 14px 20px; } }
.mcp-marca { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 0 1 auto; }
.mcp-marca img { width: 40px; height: 40px; flex: none; object-fit: contain; border-radius: 6px; }
.mcp-marca h2 { margin: 0; font-size: 1rem; font-weight: 900; color: #020617; }
.mcp-marca p { margin: 0; font-size: .75rem; font-weight: 700; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcp-pestanas { display: flex; gap: 4px; }
.mcp-pestanas-escritorio { display: none; margin: 0 auto; flex: none; align-items: center; }
.mcp-pestanas-movil { flex-wrap: wrap; padding: 8px; background: #fff; border-bottom: 1px solid #e2e8f0; }
@media (min-width: 1024px) { .mcp-pestanas-escritorio { display: flex; } .mcp-pestanas-movil { display: none; } }
.mcp-pestana {
  flex: 0 0 auto; height: 36px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: #475569;
  font: 900 .75rem 'Space Grotesk', system-ui, sans-serif; white-space: nowrap; cursor: pointer;
}
.mcp-pestana:hover { background: #f1f5f9; }
.mcp-pestana.is-activa { background: #0f172a; color: #fff; }
.mcp-cerrar {
  flex: none; margin-left: auto; width: 40px; height: 40px; border: 0; border-radius: 6px; background: #0f172a; color: #fff;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
@media (min-width: 1024px) { .mcp-cerrar { margin-left: 0; } }
.mcp-contenido { flex: 1; overflow-y: auto; padding: 10px; }
@media (min-width: 640px) { .mcp-contenido { padding: 18px; } }
.mcp-hoja[hidden] { display: none !important; }
.mcp-hoja > h3:first-child, .mcp-hoja > .admin-owner-tools > h3:first-child { margin-top: 0; }
/* Utilidades comunes de las hojas nuevas (tarjetas, barras de herramientas, formularios). */
.mcp-tarjeta { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px; margin-bottom: 12px; }
.mcp-barra { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.mcp-barra input[type="search"], .mcp-barra select { height: 38px; border: 1px solid #cbd5e1; border-radius: 6px; padding: 0 10px; font: inherit; background: #fff; }
.mcp-barra input[type="search"] { flex: 1 1 220px; min-width: 0; }
.mcp-boton {
  flex: 0 0 auto; height: 38px; padding: 0 14px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #0f172a;
  font: 800 .78rem 'Space Grotesk', system-ui, sans-serif; white-space: nowrap; cursor: pointer;
}
.mcp-boton:hover { background: #f1f5f9; }
.mcp-boton.is-principal { background: #0f172a; border-color: #0f172a; color: #fff; }
.mcp-boton.is-peligro { color: #b91c1c; border-color: #fecaca; }
.mcp-boton:disabled { opacity: .55; cursor: wait; }
.mcp-nota { margin: 6px 0; font-size: .8rem; color: #64748b; }
.mcp-estado { margin: 8px 0; padding: 8px 10px; border-radius: 6px; background: #eff6ff; color: #1e3a8a; font-size: .8rem; font-weight: 700; }
.mcp-estado.is-error { background: #fef2f2; color: #991b1b; }
.mcp-estado:empty { display: none; }
.mcp-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 14px; }
.mcp-form label { display: grid; gap: 4px; font-size: .74rem; font-weight: 800; color: #334155; }
.mcp-form label.is-ancho { grid-column: 1 / -1; }
.mcp-form input, .mcp-form select, .mcp-form textarea {
  width: 100%; box-sizing: border-box; min-height: 36px; border: 1px solid #cbd5e1; border-radius: 6px; padding: 6px 9px;
  font: 500 .85rem system-ui, sans-serif; color: #0f172a; background: #fff;
}
.mcp-form textarea { min-height: 120px; font-family: ui-monospace, Consolas, monospace; font-size: .78rem; }
.mcp-form .mcp-casilla { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.mcp-form .mcp-casilla input { width: auto; min-height: 0; }
.mcp-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mcp-tabla { width: 100%; border-collapse: collapse; font-size: .8rem; background: #fff; }
.mcp-tabla th, .mcp-tabla td { padding: 8px; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
.mcp-tabla th { font-size: .7rem; text-transform: uppercase; letter-spacing: .03em; color: #64748b; background: #f8fafc; position: sticky; top: 0; }
.mcp-tabla-caja { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 8px; max-height: 60vh; }
.mcp-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .68rem; font-weight: 800; background: #f1f5f9; color: #334155; white-space: nowrap; }
.mcp-chip.is-verde { background: #dcfce7; color: #166534; }
.mcp-chip.is-ambar { background: #fef3c7; color: #92400e; }
.mcp-chip.is-gris { background: #e2e8f0; color: #475569; }
.mcp-chip.is-oro { background: #fde68a; color: #78350f; }
.mcp-chip.is-azul { background: #dbeafe; color: #1e40af; }
/* Pestaña «Afiliados» (F4, 2026-10-19): documentos y fotos para verificar, en una rejilla que se adapta. */
.mcr-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 10px 0; }
.mcr-doc { margin: 0; display: grid; gap: 4px; }
.mcr-doc figcaption { font-size: .74rem; font-weight: 800; color: #334155; }
.mcr-doc img { width: 100%; height: 170px; object-fit: contain; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 8px; }
.mcr-falta { display: grid; place-items: center; height: 170px; border: 1px dashed #cbd5e1; border-radius: 8px; color: #94a3b8; font-size: .8rem; }
