/* <bm-asesores-cuadro> + extras del modal de metas de asesores */

.as-wrap { margin-top: 0.5rem; }

.as-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
}
.as-mes { display: flex; align-items: center; gap: 0.5rem; }
.as-mes label { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); }
.as-mes input { border: 1px solid var(--border-soft); border-radius: 6px; padding: 0.35rem 0.5rem; }
.as-mes-lbl { font-size: 0.82rem; color: var(--text-muted); }
.as-uploads { display: flex; flex-wrap: wrap; gap: 0.6rem; flex: 1; }
.as-up { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.66rem; font-weight: 700; color: var(--text-muted); }
.as-up input { font-size: 0.72rem; max-width: 190px; }
.as-bar .btn-metas { margin-left: auto; }

.as-status { font-size: 0.8rem; color: var(--text-muted); padding: 0.6rem 0.25rem; }

.as-marca { margin-top: 1.25rem; }
.as-marca-head {
  font-weight: 700;
  color: #fff;
  padding: 0.45rem 0.9rem;
  border-radius: 8px 8px 0 0;
  font-size: 0.95rem;
}
.as-honda { background: #033932; }
.as-geely { background: #1e3a8a; }

.as-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1rem; align-items: start; }
@media (max-width: 1100px) { .as-grid { grid-template-columns: 1fr; } }

.as-tbl-box { border: 1px solid var(--border-soft); border-radius: 8px; overflow: hidden; background: var(--surface-card); }
.as-tbl-title { font-size: 0.8rem; font-weight: 700; padding: 0.45rem 0.75rem; background: var(--surface-muted, #f3f4f6); color: var(--text-strong); }
.as-tbl-scroll { overflow-x: auto; }
.as-side { display: flex; flex-direction: column; gap: 1rem; }

.as-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.as-table th, .as-table td { padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--border-soft); text-align: left; white-space: nowrap; }
.as-table th { background: var(--surface-muted, #f9fafb); font-weight: 600; color: var(--text-strong); }
.as-table th.num, .as-table td.num { text-align: right; }
.as-table tfoot td { font-weight: 700; border-top: 2px solid var(--border-soft); background: var(--surface-muted, #f9fafb); }
.as-table td.ok  { color: #166534; }
.as-table td.neg { color: #b91c1c; }
.as-empty { padding: 1rem; text-align: center; color: var(--text-muted); }

.as-foot { border: 1px solid var(--border-soft); border-radius: 8px; padding: 0.5rem 0.75rem; background: var(--surface-card); }
.as-foot > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.28rem 0; font-size: 0.8rem; border-bottom: 1px dashed var(--border-soft); }
.as-foot > div:last-child { border-bottom: none; }
.as-foot span { color: var(--text-muted); }
.as-foot b { color: var(--text-strong); }
.as-foot b.ok { color: #166534; }
.as-foot b.neg { color: #b91c1c; }

/* Modal de metas de asesores */
.asm-marcatabs { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.asm-tab { border: 1px solid var(--border-soft); background: var(--surface-card); border-radius: 7px; padding: 0.4rem 1rem; font-weight: 600; font-size: 0.82rem; cursor: pointer; color: var(--text-muted); }
.asm-tab.is-active { background: #033932; color: #ecfdf5; border-color: #033932; }
.asm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 720px) { .asm-cols { grid-template-columns: 1fr; } }
.asm-col-title { font-weight: 700; font-size: 0.85rem; margin-bottom: 0.4rem; color: var(--text-strong); }
.asm-name { padding: 0.3rem 0.4rem; font-size: 0.82rem; }
.asm-meta input { width: 110px; padding: 0.3rem 0.4rem; border: 1px solid var(--border-soft); border-radius: 6px; text-align: right; }
.asm-empty { padding: 0.6rem; color: var(--text-muted); font-size: 0.8rem; }
.asm-add { display: flex; gap: 0.4rem; margin-top: 0.5rem; }
.asm-add input[type="text"] { flex: 1; padding: 0.3rem 0.5rem; border: 1px solid var(--border-soft); border-radius: 6px; }
.asm-add input[type="number"] { width: 90px; padding: 0.3rem 0.5rem; border: 1px solid var(--border-soft); border-radius: 6px; text-align: right; }

/* Acciones de la barra + estado por slot de carga */
.as-actions { display: flex; gap: 0.5rem; margin-left: auto; align-items: center; }
.as-up-st { font-size: 0.62rem; color: #166534; font-weight: 700; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Fusión Honda+Geely (v6.20.49) */
.as-fusion { background: linear-gradient(90deg, #033932 0%, #1e3a8a 100%); }
.as-marca-cell { font-size: 0.82rem; color: var(--text-muted); white-space: nowrap; }
.as-pagar { font-weight: 700; color: #047857; }
