/* ═══ Panel Acatech rediseñado (2026-11-13) ═══
   Inicio (/admin, Pages/Admin/AdminHomePage.razor), bandeja de WhatsApp (/admin/mensajes),
   cabecera común y contador del menú. Reutiliza las tarjetas del dashboard (dsh-*). */

/* ── Cabecera común del admin (también mejora las pantallas viejas) ── */
.adm-head,
.admin-page__header {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-bottom: 20px; padding: 20px 22px; border-radius: var(--lt-radius-md);
    background: linear-gradient(135deg, #0f172a 0%, #155e75 100%); color: #fff; box-shadow: var(--lt-shadow-md);
}
.admin-page__header .admin-page__title, .adm-head__title { color: #fff; }
.admin-page__header .admin-page__title i, .adm-head__title .ph-duotone { color: #67e8f9; }
.admin-page__header .admin-page__subtitle, .adm-head__sub { color: rgba(255,255,255,.8); }
.admin-page__header .lt-btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.admin-page__header .lt-btn--ghost:hover { background: rgba(255,255,255,.16); }
.adm-head__eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a5f3fc; }
.adm-head__title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.6rem; font-weight: 800; }
.adm-head__sub { margin: 6px 0 0; font-size: 14px; }
.adm-head__acciones { display: flex; gap: 8px; flex-wrap: wrap; }

.adm-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.adm-pill--rojo  { background: #fee2e2; color: #991b1b; }
.adm-pill--verde { background: #d1fae5; color: #065f46; }

/* ── Inicio ── */
.adm-home .dsh-accesos.adm-accesos { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.adm-barras { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.adm-barra { display: grid; grid-template-columns: 70px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 14px; }
.adm-barra__nombre { font-weight: 700; }
.adm-barra__num { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.adm-barra__pista { height: 10px; border-radius: 999px; background: var(--lt-bg); overflow: hidden; }
.adm-barra__pista > span { display: block; height: 100%; border-radius: inherit; min-width: 4px; background: #94a3b8; }
.adm-barra--plus    .adm-barra__pista > span { background: #7c3aed; }
.adm-barra--basic   .adm-barra__pista > span { background: #2563eb; }
.adm-barra--starter .adm-barra__pista > span { background: var(--lt-primary); }
.adm-nota { margin: 12px 0 0; font-size: 13px; color: var(--lt-text-muted); }
.dsh-card > .adm-nota:first-of-type { margin-top: 0; }
.adm-link { font-size: 13px; font-weight: 800; color: var(--lt-primary-dark); text-decoration: none; }
.adm-link:hover { text-decoration: underline; }

.adm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.adm-kpi { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto auto; column-gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--lt-border); }
.adm-kpi__ico { grid-row: 1 / 4; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 22px; }
.adm-kpi > strong { font-size: 22px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.adm-kpi > span { font-size: 13px; font-weight: 700; }
.adm-kpi > small { font-size: 12px; color: var(--lt-text-muted); }
.adm-kpi--violeta .adm-kpi__ico { background: #ede9fe; color: #5b21b6; }
.adm-kpi--cian .adm-kpi__ico    { background: #cffafe; color: #155e75; }
.adm-kpi--azul .adm-kpi__ico    { background: #dbeafe; color: #1e40af; }
.adm-kpi--verde .adm-kpi__ico   { background: #d1fae5; color: #047857; }

.adm-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.adm-fila {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; min-height: 44px;
    text-decoration: none; color: var(--lt-text); border: 1px solid var(--lt-border); border-left: 4px solid var(--lt-border);
    border-radius: 10px; background: var(--lt-surface); transition: background .15s;
}
.adm-fila:hover { background: var(--lt-bg); }
.adm-fila--ambar { border-left-color: #f59e0b; }
.adm-fila--rojo  { border-left-color: #dc2626; }
.adm-fila--nueva { border-left-color: #10b981; background: #f0fdf4; }
.adm-fila__principal { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adm-fila__principal strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-fila__principal span { font-size: 13px; color: var(--lt-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-fila__lado { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--lt-text-muted); text-align: right; }
.adm-fila__lado small { font-size: 12px; font-weight: 700; }
.adm-fila__monto { flex-shrink: 0; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--lt-success); }

.adm-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff; background: #059669; }

/* ── Contador del menú lateral ── */
.lt-nav-contador {
    margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; text-align: center;
    font-size: 12px; font-weight: 800; color: #fff; background: #dc2626;
}

/* ── Conectar Twilio ── */
.adm-setup { margin-bottom: 18px; padding: 16px 18px; border-radius: var(--lt-radius-md); background: var(--lt-warning-light); color: #78350f; border: 1px solid #fcd34d; }
.adm-setup h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 16px; font-weight: 800; }
.adm-setup ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.adm-setup code { padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.7); font-size: 13px; overflow-wrap: anywhere; }
.adm-setup__url { display: inline-block; margin-top: 4px; user-select: all; }

/* ── Bandeja ── */
.adm-inbox {
    display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    height: calc(100vh - 250px); min-height: 520px;
    background: var(--lt-surface); border: 1px solid var(--lt-border); border-radius: var(--lt-radius-md);
    box-shadow: var(--lt-shadow-sm); overflow: hidden;
}
.adm-inbox__lista { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--lt-border); }
.adm-inbox__filtros { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-bottom: 1px solid var(--lt-border); }
.adm-inbox__filtros .admin-filters__search { width: 100%; }
.adm-chips { display: inline-flex; gap: 6px; }
.adm-chip { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--lt-border); background: var(--lt-surface); font: inherit; font-size: 13px; font-weight: 700; color: var(--lt-text-muted); cursor: pointer; }
.adm-chip--on { background: var(--lt-primary); border-color: var(--lt-primary); color: #fff; }

.adm-convs { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.adm-conv {
    display: flex; gap: 10px; width: 100%; padding: 12px; text-align: left; font: inherit; color: var(--lt-text);
    background: none; border: none; border-bottom: 1px solid var(--lt-border); cursor: pointer;
}
.adm-conv:hover { background: var(--lt-bg); }
.adm-conv--on { background: var(--lt-primary-subtle, #ecfeff); box-shadow: inset 4px 0 0 var(--lt-primary); }
.adm-conv__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.adm-conv__fila { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.adm-conv__nombre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-conv__hora { flex-shrink: 0; font-size: 12px; color: var(--lt-text-muted); }
.adm-conv--nueva .adm-conv__hora { color: #047857; font-weight: 800; }
.adm-conv__negocio { font-size: 12px; font-weight: 700; color: var(--lt-primary-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-conv__ultimo { font-size: 13px; color: var(--lt-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-conv--nueva .adm-conv__ultimo { color: var(--lt-text); font-weight: 600; }

.adm-avatar {
    display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
    font-size: 15px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--lt-primary-dark), var(--lt-primary));
}

.adm-vacio { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 16px; text-align: center; color: var(--lt-text-muted); }
.adm-vacio i { font-size: 40px; color: #94a3b8; }
.adm-vacio p { margin: 0; }
.adm-vacio--grande { height: 100%; justify-content: center; }

.adm-inbox__chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #f8fafc; }
.adm-chat__cab { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--lt-surface); border-bottom: 1px solid var(--lt-border); }
.adm-chat__volver { display: none; }
.adm-chat__quien { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.adm-chat__quien strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-chat__quien span { font-size: 13px; color: var(--lt-text-muted); }
.adm-chat__acciones { display: flex; gap: 6px; flex-shrink: 0; }
.adm-chat__acciones .lt-btn { white-space: nowrap; }

.adm-chat__msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.adm-dia { align-self: center; margin: 8px 0; }
.adm-dia span { padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #e2e8f0; color: #475569; text-transform: capitalize; }
.adm-msg { max-width: min(75%, 560px); padding: 8px 12px 6px; border-radius: 14px; box-shadow: 0 1px 1px rgba(15,23,42,.08); }
.adm-msg--in  { align-self: flex-start; background: var(--lt-surface); border-top-left-radius: 4px; }
.adm-msg--out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 4px; color: #0f172a; }
.adm-msg__texto { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.4; }
.adm-msg__meta { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 2px; font-size: 11px; color: #64748b; }
.adm-msg__estado { font-size: 14px; }
.adm-msg__estado--read { color: #0284c7; }
.adm-msg__estado--failed, .adm-msg__estado--undelivered { color: var(--lt-danger); }
.adm-msg__error { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--lt-danger); }
.adm-msg__img { display: block; max-width: 100%; max-height: 320px; border-radius: 10px; margin-bottom: 4px; }
.adm-msg__audio { width: 260px; max-width: 100%; }
.adm-msg__adjunto { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--lt-primary-dark); }
.adm-msg__extra { display: block; font-size: 12px; color: var(--lt-text-muted); }

.adm-chat__responder { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: var(--lt-surface); border-top: 1px solid var(--lt-border); }
.adm-ventana { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--lt-text-muted); }
.adm-ventana--cerrada { padding: 10px 12px; border-radius: 10px; background: var(--lt-warning-light); color: #78350f; align-items: flex-start; }
.adm-respuesta { display: flex; gap: 8px; align-items: flex-end; }
.adm-respuesta textarea {
    flex: 1; min-width: 0; resize: none; min-height: 48px; max-height: 40vh; overflow-y: hidden;
    line-height: 1.4; padding-top: 12px; padding-bottom: 12px; border-radius: 22px;
}
.adm-respuesta .lt-btn { min-height: 48px; flex-shrink: 0; border-radius: 24px; }
.adm-respuesta__cuenta { align-self: flex-end; font-size: 12px; color: var(--lt-text-muted); }

/* ── Tablet / celular ── */
@media (max-width: 1100px) {
    .adm-home .dsh-accesos.adm-accesos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .adm-inbox { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); }
    .adm-chat__acciones .lt-btn { font-size: 0; gap: 0; min-width: 44px; justify-content: center; }
    .adm-chat__acciones .lt-btn i { font-size: 18px; }
}
@media (max-width: 860px) {
    .adm-inbox { grid-template-columns: 1fr; height: calc(100vh - 200px); height: calc(100dvh - 180px); min-height: 420px; }
    /* Celular: el botón Enviar queda redondo (solo ícono) y el texto usa todo el ancho. */
    .adm-respuesta { gap: 6px; }
    .adm-respuesta .lt-btn { width: 48px; padding: 0; justify-content: center; }
    .adm-respuesta .lt-btn i { font-size: 20px; }
    .adm-respuesta__txt, .adm-respuesta .lt-btn span:not(.lt-spinner) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .adm-chat__responder { padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
    /* Con un chat abierto, la cabecera grande se oculta: el chat (y lo que escribes) usa toda la pantalla. */
    .adm-inbox-page:has(.adm-inbox--chat) .adm-head { display: none; }
    .adm-inbox-page:has(.adm-inbox--chat) .adm-inbox { height: calc(100dvh - 96px); min-height: 360px; }
    .adm-ventana { font-size: 12px; }
    .adm-inbox__chat { display: none; }
    .adm-inbox--chat .adm-inbox__lista { display: none; }
    .adm-inbox--chat .adm-inbox__chat { display: flex; }
    .adm-chat__volver { display: inline-flex; }
    .adm-msg { max-width: 88%; }
}
@media (max-width: 640px) {
    .adm-home .dsh-accesos.adm-accesos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .adm-head, .admin-page__header { padding: 16px; }
    .adm-head__title { font-size: 1.3rem; }
    .adm-kpis { grid-template-columns: 1fr; }
}

/* ── Comisiones del vendedor (2026-11-14) ─────────────────────────────── */
.adm-com { display: flex; flex-direction: column; gap: 16px; margin: 20px 0; padding: 20px; background: var(--lt-surface); border: 1px solid var(--lt-border); border-radius: 16px; box-shadow: var(--lt-shadow-sm); }
.adm-com__cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.adm-com__mes { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--lt-border); border-radius: 999px; background: var(--lt-bg); }
.adm-com__mes strong { min-width: 140px; text-align: center; font-size: 15px; }
.adm-com__mes .lt-btn { min-width: 40px; border-radius: 999px; justify-content: center; }

.adm-com__resumen { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 14px; }
.adm-com__total { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #0f172a, #155e75); }
.adm-com__total-label { font-size: 13px; font-weight: 700; color: #a5f3fc; }
.adm-com__total-valor { font-size: 2.2rem; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.adm-com__total-sub { font-size: 13px; color: #cbd5e1; }
.adm-com__partes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.adm-com__parte { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 12px; border: 1px solid var(--lt-border); background: var(--lt-bg); }
.adm-com__ico { flex-shrink: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; font-size: 20px; }
.adm-com__parte > span:not(.adm-com__ico) { display: flex; flex-direction: column; gap: 2px; font-size: 13px; font-weight: 700; color: var(--lt-text); }
.adm-com__parte strong { font-size: 1.25rem; }
.adm-com__parte small { font-weight: 500; color: var(--lt-text-muted); }
.adm-com__parte--nuevo .adm-com__ico   { background: #dbeafe; color: #1e40af; }
.adm-com__parte--mensual .adm-com__ico { background: #dcfce7; color: #166534; }
.adm-com__parte--bono .adm-com__ico    { background: #fef3c7; color: #b45309; }

.adm-com__meta { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; background: #f0fdfa; border: 1px solid #99f6e4; }
.adm-com__meta-txt { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: #134e4a; }
.adm-com__barra { height: 10px; border-radius: 999px; background: #ccfbf1; overflow: hidden; }
.adm-com__barra-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0d9488, #0e7490); }

.adm-com__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.adm-com__bloque, .adm-com__hist { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.adm-com h3 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 15px; font-weight: 800; }
.adm-com h3 small { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--lt-text-muted); }
.adm-com__chip { padding: 2px 8px; border-radius: 999px; font-size: 12px; background: #dcfce7; color: #166534; }
.adm-com__vacio { margin: 0; padding: 14px; border-radius: 12px; background: var(--lt-bg); font-size: 14px; color: var(--lt-text-muted); }
.adm-com__filas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--lt-border); border-radius: 12px; overflow: hidden; }
.adm-com__filas li + li { border-top: 1px solid var(--lt-border); }
.adm-com__fila { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--lt-text); text-decoration: none; }
.adm-com__fila:hover { background: var(--lt-bg); }
.adm-com__num { flex-shrink: 0; display: grid; place-items: center; min-width: 36px; height: 28px; padding: 0 6px; border-radius: 8px; font-size: 13px; font-weight: 800; background: #e0f2fe; color: #075985; }
.adm-com__quien { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.adm-com__quien strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-com__quien small, .adm-com__monto small { font-size: 12px; color: var(--lt-text-muted); }
.adm-com__monto { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.adm-com__monto strong { color: #047857; }

.adm-com__hist-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.adm-com__hist-mes { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 8px 4px; border: 1px solid transparent; border-radius: 12px; background: none; font: inherit; cursor: pointer; }
.adm-com__hist-mes:hover { background: var(--lt-bg); }
.adm-com__hist-mes--on { border-color: var(--lt-primary); background: #ecfeff; }
.adm-com__hist-valor { font-size: 12px; font-weight: 800; color: var(--lt-text); }
.adm-com__hist-col { display: flex; align-items: flex-end; width: 28px; height: 80px; border-radius: 8px; background: #f1f5f9; overflow: hidden; }
.adm-com__hist-bar { display: block; width: 100%; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #0e7490, #155e75); }
.adm-com__hist-txt { font-size: 12px; font-weight: 700; color: var(--lt-text-muted); text-transform: capitalize; }
.adm-com__h-0 { height: 3%; } .adm-com__h-10 { height: 10%; } .adm-com__h-20 { height: 20%; } .adm-com__h-30 { height: 30%; }
.adm-com__h-40 { height: 40%; } .adm-com__h-50 { height: 50%; } .adm-com__h-60 { height: 60%; } .adm-com__h-70 { height: 70%; }
.adm-com__h-80 { height: 80%; } .adm-com__h-90 { height: 90%; } .adm-com__h-100 { height: 100%; }
.adm-com__nota { display: flex; gap: 8px; margin: 0; font-size: 13px; color: var(--lt-text-muted); line-height: 1.5; }
.adm-com__nota i { flex-shrink: 0; margin-top: 3px; }

/* Lista de vendedores: comisión del mes */
.seller-com { display: inline-flex; flex-direction: column; align-items: flex-end; }
.seller-com strong { color: #047857; font-size: 15px; }
.seller-com small { font-size: 12px; color: var(--lt-text-muted); }

@media (max-width: 1100px) {
    .adm-com__resumen { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .adm-com__partes, .adm-com__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .adm-com { padding: 14px; margin: 14px 0; }
    .adm-com__mes { width: 100%; justify-content: space-between; }
    .adm-com__hist-lista { gap: 2px; }
    .adm-com__hist-valor { font-size: 10px; }
}

/* ── Clientes del admin en tarjetas (2026-11-14) ──────────────────────── */
.adm-clis__barra { display: flex; gap: 10px; margin-top: 16px; }
.adm-clis__buscar { flex: 1; min-width: 0; }
.adm-clis__buscar .lt-input { min-height: 46px; border-radius: 12px; }
.adm-clis__estado { width: auto; min-width: 200px; min-height: 46px; border-radius: 12px; }
.adm-clis__planes { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.adm-clis__plan {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 8px 0 14px;
    border: 1px solid var(--lt-border); border-radius: 999px; background: var(--lt-surface);
    font: inherit; font-size: 14px; font-weight: 700; color: var(--lt-text); cursor: pointer;
}
.adm-clis__plan span { min-width: 26px; padding: 2px 8px; border-radius: 999px; font-size: 12px; text-align: center; background: var(--lt-bg); color: var(--lt-text-muted); }
.adm-clis__plan:hover { border-color: var(--lt-primary); }
.adm-clis__plan--on { background: var(--lt-primary); border-color: var(--lt-primary); color: #fff; }
.adm-clis__plan--on span { background: rgba(255,255,255,.22); color: #fff; }

.adm-clis__grid { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.adm-cli {
    position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; min-width: 0;
    background: var(--lt-surface); border: 1px solid var(--lt-border); border-radius: 16px;
    box-shadow: var(--lt-shadow-sm); transition: box-shadow .15s, transform .15s, border-color .15s;
}
.adm-cli:hover { box-shadow: 0 8px 24px rgba(15,23,42,.08); border-color: #cbd5e1; transform: translateY(-1px); }
.adm-cli::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0; background: #10b981; }
.adm-cli--porvencer::before { background: #f59e0b; }
.adm-cli--vencido::before   { background: #dc2626; }
.adm-cli--pendiente::before { background: #3b82f6; }
.adm-cli--off::before       { background: #94a3b8; }

.adm-cli__cab { display: flex; align-items: center; gap: 12px; }
.adm-cli__avatar { flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 16px; font-weight: 800; color: #fff; }
.adm-cli__avatar--free    { background: linear-gradient(135deg, #059669, #10b981); }
.adm-cli__avatar--starter { background: linear-gradient(135deg, #0369a1, #0ea5e9); }
.adm-cli__avatar--basic   { background: linear-gradient(135deg, #5b21b6, #8b5cf6); }
.adm-cli__avatar--plus    { background: linear-gradient(135deg, #b45309, #f59e0b); }
.adm-cli__nombre { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.adm-cli__nombre a { color: var(--lt-text); text-decoration: none; }
.adm-cli__nombre a:hover { color: var(--lt-primary-dark); text-decoration: underline; }
.adm-cli__nombre strong { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-cli__nombre span { font-size: 13px; color: var(--lt-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.adm-cli__estado { display: flex; align-items: center; gap: 6px; margin: 0; padding: 6px 10px; border-radius: 10px; font-size: 13px; font-weight: 700; background: #ecfdf5; color: #065f46; }
.adm-cli__estado i { font-size: 9px; }
.adm-cli--porvencer .adm-cli__estado { background: #fffbeb; color: #92400e; }
.adm-cli--vencido .adm-cli__estado   { background: #fef2f2; color: #991b1b; }
.adm-cli--pendiente .adm-cli__estado { background: #eff6ff; color: #1e40af; }
.adm-cli--off .adm-cli__estado       { background: #f1f5f9; color: #475569; }

.adm-cli__datos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--lt-text-muted); }
.adm-cli__datos li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.adm-cli__datos i { flex-shrink: 0; font-size: 15px; color: #94a3b8; }
.adm-cli__email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.adm-cli__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-cli__tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.adm-cli__tag--inv  { background: #f3e8ff; color: #6b21a8; }
.adm-cli__tag--auto { background: #e0f2fe; color: #075985; }
.adm-cli__tag--vend { background: #fef3c7; color: #92400e; }

.adm-cli__acciones { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--lt-border); }
.adm-cli__acciones .lt-btn--primary { flex: 1; justify-content: center; }
.adm-cli__acciones .lt-btn--ghost { min-width: 44px; justify-content: center; }
.adm-cli__acciones .lt-btn--ghost i { font-size: 18px; }
.adm-cli__wa i { color: #16a34a; }

@media (max-width: 640px) {
    .adm-clis__barra { flex-direction: column; }
    .adm-clis__estado { width: 100%; }
    .adm-clis__planes { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
    .adm-clis__plan { flex-shrink: 0; }
    .adm-clis__grid { grid-template-columns: 1fr; }
}

/* ══ Detalle del cliente (/admin/tenants/{id}) ═══════════════════════════ */
.adm-td-hero {
    --td-a: #0e7490; --td-b: #2563eb;
    position: relative; overflow: hidden;
    display: grid; gap: 18px;
    margin-bottom: 18px; padding: 26px 28px;
    border-radius: 22px; color: #fff;
    background: linear-gradient(135deg, var(--td-a), var(--td-b));
    box-shadow: 0 14px 34px -18px var(--td-a);
}
.adm-td-hero::after {
    content: ""; position: absolute; right: -60px; top: -80px;
    width: 260px; height: 260px; border-radius: 50%;
    background: rgba(255,255,255,.08); pointer-events: none;
}
.adm-td-hero--free    { --td-a: #047857; --td-b: #0d9488; }
.adm-td-hero--starter { --td-a: #075985; --td-b: #0369a1; }
.adm-td-hero--basic   { --td-a: #4c1d95; --td-b: #6d28d9; }
.adm-td-hero--plus    { --td-a: #92400e; --td-b: #b45309; }
.adm-td-hero__top { display: flex; gap: 18px; align-items: center; position: relative; z-index: 1; }
.adm-td-hero__avatar {
    flex-shrink: 0; display: grid; place-items: center;
    width: 76px; height: 76px; border-radius: 22px;
    font-size: 28px; font-weight: 800; letter-spacing: -1px;
    background: rgba(255,255,255,.18); border: 2px solid rgba(255,255,255,.35);
}
.adm-td-hero__id { min-width: 0; }
.adm-td-hero__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.adm-td-hero__plan, .adm-td-hero__pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
}
.adm-td-hero__plan { background: #fff; color: var(--td-a); }
.adm-td-hero__pill { background: rgba(255,255,255,.16); color: #fff; }
.adm-td-hero__nombre { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; line-height: 1.15; color: #fff; overflow-wrap: anywhere; }
.adm-td-hero__dueno { display: flex; gap: 6px; align-items: center; margin: 6px 0 0; font-size: 14px; opacity: .92; }
.adm-td-hero__fila { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; position: relative; z-index: 1; }
.adm-td-hero__estado {
    display: inline-flex; align-items: center; gap: 7px; margin: 0;
    padding: 7px 13px; border-radius: 12px; font-size: 14px; font-weight: 700;
    background: #ecfdf5; color: #065f46;
}
.adm-td-hero__estado i { font-size: 9px; }
.adm-td-hero__estado--porvencer { background: #fffbeb; color: #92400e; }
.adm-td-hero__estado--vencido   { background: #fef2f2; color: #991b1b; }
.adm-td-hero__estado--pendiente { background: #eff6ff; color: #1e40af; }
.adm-td-hero__estado--off       { background: #f1f5f9; color: #475569; }
.adm-td-hero__contacto { display: flex; flex-wrap: wrap; gap: 8px 16px; min-width: 0; }
.adm-td-hero__dato { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 14px; text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
a.adm-td-hero__dato:hover { text-decoration: underline; }
.adm-td-hero__acciones { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.adm-td-hero__acciones .lt-btn { min-height: 44px; gap: 7px; }
.adm-td-hero__acciones .lt-btn--primary { background: #fff; color: var(--td-a); border-color: #fff; box-shadow: none; }
.adm-td-hero__acciones .lt-btn--primary:hover { background: #f1f5f9; color: var(--td-a); }
.adm-td-hero__acciones .lt-btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.adm-td-hero__acciones .lt-btn--ghost:hover { background: rgba(255,255,255,.22); color: #fff; }
.adm-td-btn--wa { background: #15803d; color: #fff; border-color: #15803d; }
.adm-td-btn--wa:hover { background: #166534; color: #fff; }

/* Números clave */
.adm-td-kpis { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.adm-td-kpi {
    --k: #0e7490; --kbg: #ecfeff;
    display: flex; gap: 12px; align-items: center; min-width: 0;
    padding: 16px; border-radius: 16px; background: var(--lt-surface, #fff);
    border: 1px solid var(--lt-border, #e2e8f0); box-shadow: var(--lt-shadow-sm);
}
.adm-td-kpi--verde  { --k: #047857; --kbg: #d1fae5; }
.adm-td-kpi--azul   { --k: #1d4ed8; --kbg: #dbeafe; }
.adm-td-kpi--ambar  { --k: #b45309; --kbg: #fef3c7; }
.adm-td-kpi--rojo   { --k: #b91c1c; --kbg: #fee2e2; }
.adm-td-kpi--morado { --k: #6d28d9; --kbg: #ede9fe; }
.adm-td-kpi__ico { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--kbg); color: var(--k); font-size: 22px; }
.adm-td-kpi__txt { display: flex; flex-direction: column; min-width: 0; }
.adm-td-kpi__txt small { font-size: 12.5px; color: var(--lt-text-muted, #566377); }
.adm-td-kpi__txt strong { font-size: 1.25rem; font-weight: 800; color: var(--lt-text, #0f172a); line-height: 1.25; }
.adm-td-kpi__txt strong em { font-style: normal; font-size: .85rem; font-weight: 600; color: var(--lt-text-muted, #566377); }

/* Pestañas */
.adm-td-tabs {
    position: sticky; top: 0; z-index: 5;
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
    margin: 0 0 18px; padding: 6px; border-radius: 16px;
    background: var(--lt-surface, #fff); border: 1px solid var(--lt-border, #e2e8f0); box-shadow: var(--lt-shadow-sm);
}
.adm-td-tabs::-webkit-scrollbar { display: none; }
.adm-td-tab {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px;
    min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px;
    background: transparent; color: var(--lt-text-muted, #566377);
    font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.adm-td-tab i { font-size: 18px; }
.adm-td-tab:hover { background: var(--lt-bg, #f1f5f9); color: var(--lt-text, #0f172a); }
.adm-td-tab--on, .adm-td-tab--on:hover { background: var(--lt-primary, #0e7490); color: #fff; }
.adm-td-tab__n { padding: 1px 8px; border-radius: 999px; font-size: 12px; background: var(--lt-bg, #f1f5f9); color: var(--lt-text, #0f172a); }
.adm-td-tab--on .adm-td-tab__n { background: rgba(255,255,255,.22); color: #fff; }

.adm-td-panel { animation: adm-td-in .18s ease-out; }
@keyframes adm-td-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.adm-td-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.adm-td-grid > .admin-card { margin: 0; }
.adm-td-grid > .admin-card:first-child { grid-row: span 2; }
.adm-td-panel .admin-card { border-radius: 18px; }

@media (max-width: 1100px) {
    .adm-td-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .adm-td-grid { grid-template-columns: minmax(0, 1fr); }
    .adm-td-grid > .admin-card:first-child { grid-row: auto; }
}
@media (max-width: 560px) {
    .adm-td-hero { padding: 20px 18px; border-radius: 18px; }
    .adm-td-hero__avatar { width: 58px; height: 58px; font-size: 22px; border-radius: 17px; }
    .adm-td-hero__acciones .lt-btn { flex: 1 1 calc(50% - 4px); justify-content: center; }
    .adm-td-hero__acciones .lt-btn--primary { flex-basis: 100%; }
    .adm-td-kpi { padding: 12px; gap: 10px; }
    .adm-td-kpi__ico { width: 38px; height: 38px; font-size: 19px; }
    .adm-td-kpi__txt strong { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) { .adm-td-panel { animation: none; } }

/* ══ Ventas (/admin/sales) ═══════════════════════════════════════════════ */
.adm-ven__hero {
    position: relative; overflow: hidden;
    display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: flex-end;
    padding: 26px 28px; border-radius: 22px; color: #fff;
    background: linear-gradient(135deg, #0f172a 0%, #134e4a 60%, #0e7490 100%);
    box-shadow: 0 14px 34px -20px #0f172a;
}
.adm-ven__hero::after { content: ""; position: absolute; right: -70px; bottom: -110px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.06); pointer-events: none; }
.adm-ven__titulo { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 1.6rem; font-weight: 800; color: #fff; }
.adm-ven__titulo-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.14); font-size: 24px; }
.adm-ven__periodo { margin: 8px 0 0; font-size: 14.5px; color: #ccfbf1; }
.adm-ven__periodo::first-letter { text-transform: uppercase; }
.adm-ven__neto { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.adm-ven__neto span { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #99f6e4; }
.adm-ven__neto strong { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; line-height: 1.1; }
.adm-ven__neto small { font-size: 13.5px; color: #ccfbf1; }

.adm-ven__filtros {
    display: grid; gap: 14px; padding: 16px; border-radius: 18px;
    background: var(--lt-surface, #fff); border: 1px solid var(--lt-border, #e2e8f0); box-shadow: var(--lt-shadow-sm);
}
.adm-ven__chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.adm-ven__chips::-webkit-scrollbar { display: none; }
.adm-ven__chip {
    flex-shrink: 0; min-height: 40px; padding: 0 16px; border-radius: 999px;
    border: 1px solid var(--lt-border, #e2e8f0); background: var(--lt-bg, #f1f5f9);
    color: var(--lt-text, #0f172a); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.adm-ven__chip:hover { border-color: var(--lt-primary, #0e7490); }
.adm-ven__chip--on, .adm-ven__chip--on:hover { background: var(--lt-primary, #0e7490); border-color: var(--lt-primary, #0e7490); color: #fff; }
.adm-ven__rango, .adm-ven__selects { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.adm-ven__rango > div, .adm-ven__selects > div { flex: 1 1 180px; min-width: 0; }
.adm-ven__rango .lt-btn, .adm-ven__limpiar { min-height: 44px; gap: 6px; }
.adm-ven__kpis { margin: 0; }

.adm-ven__grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; }
.adm-ven__card {
    display: grid; gap: 14px; padding: 20px; border-radius: 18px; min-width: 0;
    background: var(--lt-surface, #fff); border: 1px solid var(--lt-border, #e2e8f0); box-shadow: var(--lt-shadow-sm);
}
.adm-ven__card-t { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--lt-text, #0f172a); }
.adm-ven__card-t i { color: var(--lt-primary, #0e7490); font-size: 20px; }
.adm-ven__n { padding: 2px 9px; border-radius: 999px; font-size: 12px; background: var(--lt-bg, #f1f5f9); color: var(--lt-text-muted, #566377); }
.adm-ven__vacio { margin: 0; color: var(--lt-text-muted, #566377); font-size: 14px; }
.adm-ven__vacio--grande { display: grid; place-items: center; gap: 6px; padding: 30px 10px; text-align: center; }
.adm-ven__vacio--grande i { font-size: 40px; opacity: .5; }
.adm-ven__vacio--grande p { margin: 0; }

.adm-ven__barras { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.adm-ven__barra { --b: #0e7490; display: grid; gap: 6px; }
.adm-ven__barra--starter { --b: #0369a1; }
.adm-ven__barra--basic   { --b: #6d28d9; }
.adm-ven__barra--plus    { --b: #b45309; }
.adm-ven__barra--free    { --b: #047857; }
.adm-ven__barra-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.adm-ven__barra-plan { font-weight: 800; color: var(--b); }
.adm-ven__barra-cab strong { font-size: 1.05rem; }
.adm-ven__barra-track { height: 12px; border-radius: 999px; background: var(--lt-bg, #f1f5f9); overflow: hidden; }
.adm-ven__barra-fill { display: block; height: 100%; border-radius: 999px; background: var(--b); }
.adm-ven__barra small { font-size: 12.5px; color: var(--lt-text-muted, #566377); }
.adm-ven__w-0 { width: 0%; }
.adm-ven__w-5 { width: 5%; }
.adm-ven__w-10 { width: 10%; }
.adm-ven__w-15 { width: 15%; }
.adm-ven__w-20 { width: 20%; }
.adm-ven__w-25 { width: 25%; }
.adm-ven__w-30 { width: 30%; }
.adm-ven__w-35 { width: 35%; }
.adm-ven__w-40 { width: 40%; }
.adm-ven__w-45 { width: 45%; }
.adm-ven__w-50 { width: 50%; }
.adm-ven__w-55 { width: 55%; }
.adm-ven__w-60 { width: 60%; }
.adm-ven__w-65 { width: 65%; }
.adm-ven__w-70 { width: 70%; }
.adm-ven__w-75 { width: 75%; }
.adm-ven__w-80 { width: 80%; }
.adm-ven__w-85 { width: 85%; }
.adm-ven__w-90 { width: 90%; }
.adm-ven__w-95 { width: 95%; }
.adm-ven__w-100 { width: 100%; }

.adm-ven__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.adm-ven__pago {
    position: relative; display: grid; gap: 12px; align-items: center;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    padding: 12px 14px 12px 16px; border-radius: 14px;
    border: 1px solid var(--lt-border, #e2e8f0); background: var(--lt-surface, #fff);
    transition: border-color .15s, box-shadow .15s;
}
.adm-ven__pago::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: #10b981; }
.adm-ven__pago--declined::before, .adm-ven__pago--cancelled::before { background: #94a3b8; }
.adm-ven__pago--reversed::before { background: #dc2626; }
.adm-ven__pago:hover { border-color: #cbd5e1; box-shadow: var(--lt-shadow-sm); }
.adm-ven__fecha { display: grid; place-items: center; width: 48px; height: 52px; border-radius: 12px; background: var(--lt-bg, #f1f5f9); line-height: 1.05; }
.adm-ven__fecha strong { font-size: 1.15rem; font-weight: 800; }
.adm-ven__fecha small { font-size: 11.5px; font-weight: 700; text-transform: uppercase; color: var(--lt-text-muted, #566377); }
.adm-ven__quien { min-width: 0; display: grid; gap: 4px; }
.adm-ven__negocio { font-weight: 800; color: var(--lt-text, #0f172a); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-ven__negocio:hover { color: var(--lt-primary, #0e7490); text-decoration: underline; }
.adm-ven__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--lt-text-muted, #566377); }
.adm-ven__meta > span { display: inline-flex; align-items: center; gap: 4px; }
.adm-ven__monto { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.adm-ven__monto strong { font-size: 1.1rem; font-weight: 800; }
.adm-ven__monto s { font-size: 1.05rem; color: #b91c1c; }
.adm-ven__estado { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #d1fae5; color: #065f46; }
.adm-ven__estado--declined, .adm-ven__estado--cancelled { background: #f1f5f9; color: #475569; }
.adm-ven__estado--reversed { background: #fee2e2; color: #991b1b; }
.adm-ven__accion:empty { display: none; }
.adm-ven__revertir { color: #b91c1c; gap: 5px; min-height: 40px; }
.adm-ven__revertir:hover { background: #fef2f2; color: #991b1b; }

@media (max-width: 1000px) {
    .adm-ven__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .adm-ven__hero { padding: 20px 18px; border-radius: 18px; }
    .adm-ven__neto { align-items: flex-start; text-align: left; }
    .adm-ven__card { padding: 14px; }
    .adm-ven__pago { grid-template-columns: auto minmax(0, 1fr) auto; padding: 10px 12px 10px 14px; gap: 10px; }
    .adm-ven__fecha { width: 42px; height: 46px; }
    .adm-ven__accion { grid-column: 2 / -1; }
    .adm-ven__hora { display: none !important; }
}
@media (max-width: 860px) { .adm-td-tabs { position: static; } }
@media (max-width: 420px) {
    .adm-td-kpis { gap: 8px; }
    .adm-td-kpi { padding: 12px 12px 12px 14px; }
    .adm-td-kpi__ico { display: none; }
    .adm-td-kpi { border-left: 4px solid var(--k); }
}

/* ══ Control de sucursales del cliente (AdminSucursalesControl) ══════════ */
.adm-suc__totales { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.adm-suc__totales li { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 14px; background: var(--lt-bg, #f1f5f9); min-width: 0; }
.adm-suc__totales strong { font-size: 1.25rem; font-weight: 800; color: var(--lt-text, #0f172a); }
.adm-suc__totales span { font-size: 12.5px; color: var(--lt-text-muted, #566377); }
.adm-suc__totales .adm-suc__tot--alerta { background: #fef2f2; }
.adm-suc__totales .adm-suc__tot--alerta strong { color: #b91c1c; }

.adm-suc__comparar { margin: 0 0 16px; padding: 16px; border-radius: 16px; border: 1px solid var(--lt-border, #e2e8f0); }
.adm-suc__comparar h3, .adm-suc__cab h3 { margin: 0; font-size: 1rem; font-weight: 800; color: var(--lt-text, #0f172a); }
.adm-suc__comparar h3 { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.adm-suc__comparar h3 i { color: var(--lt-primary, #0e7490); }
.adm-suc__comparar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.adm-suc__comparar li { display: grid; grid-template-columns: minmax(90px, 180px) minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 14px; }
.adm-suc__cmp-nombre { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-suc__cmp-track { height: 12px; border-radius: 999px; background: var(--lt-bg, #f1f5f9); overflow: hidden; }
.adm-suc__cmp-fill { display: block; height: 100%; border-radius: 999px; background: var(--lt-primary, #0e7490); }
.adm-suc__comparar li strong { text-align: right; }

.adm-suc__lista { display: grid; gap: 16px; }
.adm-suc {
    --s: #10b981;
    position: relative; display: grid; gap: 16px; padding: 18px 18px 16px 22px;
    border-radius: 18px; border: 1px solid var(--lt-border, #e2e8f0); background: var(--lt-surface, #fff);
    box-shadow: var(--lt-shadow-sm); overflow: hidden;
}
.adm-suc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--s); }
.adm-suc--atencion { --s: #f59e0b; }
.adm-suc--mal      { --s: #dc2626; }
.adm-suc--off      { --s: #94a3b8; }
.adm-suc__cab { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.adm-suc__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #ecfeff; color: var(--lt-primary, #0e7490); font-size: 22px; flex-shrink: 0; }
.adm-suc__id { flex: 1; min-width: 160px; }
.adm-suc__id small { color: var(--lt-text-muted, #566377); font-size: 13px; }
.adm-suc__salud { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #ecfdf5; color: #065f46; }
.adm-suc__salud i { font-size: 8px; }
.adm-suc__salud--atencion { background: #fffbeb; color: #92400e; }
.adm-suc__salud--mal      { background: #fef2f2; color: #991b1b; }
.adm-suc__salud--off      { background: #f1f5f9; color: #475569; }

.adm-suc__nums { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.adm-suc__nums > div { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; background: var(--lt-bg, #f1f5f9); min-width: 0; }
.adm-suc__nums small { font-size: 12.5px; color: var(--lt-text-muted, #566377); }
.adm-suc__nums strong { font-size: 1.3rem; font-weight: 800; color: var(--lt-text, #0f172a); }
.adm-suc__num--warn { color: #b45309 !important; }
.adm-suc__delta { font-size: 12.5px; color: var(--lt-text-muted, #566377); }
.adm-suc__delta--sube { color: #047857; font-weight: 700; }
.adm-suc__delta--baja { color: #b91c1c; font-weight: 700; }

.adm-suc__actividad { display: grid; gap: 8px; }
.adm-suc__act-cab { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--lt-text-muted, #566377); }
.adm-suc__act-cab span:first-child { font-weight: 700; color: var(--lt-text, #0f172a); }
.adm-suc__barras { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; height: 56px; align-items: end; }
.adm-suc__barras li { height: 100%; display: flex; align-items: flex-end; }
.adm-suc__barra { display: block; width: 100%; border-radius: 6px 6px 3px 3px; background: var(--lt-primary, #0e7490); }
.adm-suc__barra--cero { height: 4px !important; background: #e2e8f0; }
.adm-suc__barras li:last-child .adm-suc__barra:not(.adm-suc__barra--cero) { background: #2563eb; }

.adm-suc__modulos { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.adm-suc__mod { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; border: 1px solid var(--lt-border, #e2e8f0); min-width: 0; }
.adm-suc__mod > i { font-size: 22px; color: var(--lt-primary, #0e7490); flex-shrink: 0; }
.adm-suc__mod div { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; color: var(--lt-text-muted, #566377); }
.adm-suc__mod strong { font-size: 14px; color: var(--lt-text, #0f172a); }
.adm-suc__mod--off { background: var(--lt-bg, #f1f5f9); border-style: dashed; }
.adm-suc__mod--off > i { color: #94a3b8; }
.adm-suc__mal { color: #b91c1c; font-style: normal; font-weight: 700; }

.adm-suc__equipo { border-top: 1px solid var(--lt-border, #e2e8f0); padding-top: 12px; }
.adm-suc__equipo summary { display: flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 700; cursor: pointer; color: var(--lt-text, #0f172a); }
.adm-suc__equipo summary i { color: var(--lt-primary, #0e7490); font-size: 20px; }
.adm-suc__equipo ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.adm-suc__equipo li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px; border-radius: 12px; background: var(--lt-bg, #f1f5f9); }
.adm-suc__avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #0e7490; color: #fff; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.adm-suc__persona { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.adm-suc__persona strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-suc__persona small { font-size: 12.5px; color: var(--lt-text-muted, #566377); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-suc__rol { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #fff; color: #0f172a; border: 1px solid var(--lt-border, #e2e8f0); }
.adm-suc__rol--pend { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.adm-suc__vacio { margin: 8px 0 0; font-size: 14px; color: var(--lt-text-muted, #566377); }

@media (max-width: 1100px) {
    .adm-suc__nums, .adm-suc__modulos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .adm-suc__totales { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .adm-suc { padding: 14px 12px 12px 16px; }
    .adm-suc__totales { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .adm-suc__modulos { grid-template-columns: minmax(0, 1fr); }
    .adm-suc__nums strong { font-size: 1.1rem; }
    .adm-suc__comparar li { grid-template-columns: minmax(70px, 110px) minmax(0, 1fr) 32px; }
}

/* Uso del sistema en la tarjeta del cliente */
.adm-cli__uso { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.adm-cli__uso-item { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border-radius: 12px; background: #ecfeff; min-width: 0; }
.adm-cli__uso-item > i { font-size: 20px; color: var(--lt-primary, #0e7490); flex-shrink: 0; }
.adm-cli__uso-item span { display: flex; flex-direction: column; min-width: 0; font-size: 13px; color: var(--lt-text, #0f172a); }
.adm-cli__uso-item strong { font-size: 14px; }
.adm-cli__uso-item small { font-size: 12px; color: var(--lt-text-muted, #566377); }
.adm-cli__uso-item--off { background: var(--lt-bg, #f1f5f9); }
.adm-cli__uso-item--off > i { color: #94a3b8; }
.adm-cli__delta { align-self: flex-start; padding: 0 7px; border-radius: 999px; font-style: normal; font-size: 11.5px; font-weight: 700; background: #f1f5f9; color: #475569; }
.adm-cli__delta--sube { background: #d1fae5; color: #065f46; }
.adm-cli__delta--baja { background: #fee2e2; color: #991b1b; }
@media (max-width: 400px) { .adm-cli__uso { grid-template-columns: minmax(0, 1fr); } }

/* Uso del sistema en el detalle del cliente */
.adm-td-uso { margin-bottom: 18px; padding: 18px; border-radius: 18px; background: var(--lt-surface, #fff); border: 1px solid var(--lt-border, #e2e8f0); box-shadow: var(--lt-shadow-sm); }
.adm-td-uso h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 1rem; font-weight: 800; color: var(--lt-text, #0f172a); }
.adm-td-uso h2 i { color: var(--lt-primary, #0e7490); font-size: 20px; }
.adm-td-uso__grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.adm-td-uso__item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: #ecfeff; min-width: 0; }
.adm-td-uso__item--off { background: var(--lt-bg, #f1f5f9); }
.adm-td-uso__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--lt-primary, #0e7490); font-size: 21px; flex-shrink: 0; }
.adm-td-uso__item--off .adm-td-uso__ico { color: #94a3b8; }
.adm-td-uso__item div { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13.5px; color: var(--lt-text, #0f172a); }
.adm-td-uso__item strong { font-size: 15px; }
.adm-td-uso__item small { font-size: 12.5px; color: var(--lt-text-muted, #566377); }
.adm-td-uso__delta { font-size: 12.5px; font-weight: 700; color: var(--lt-text-muted, #566377); }
.adm-td-uso__delta--sube { color: #047857; }
.adm-td-uso__delta--baja { color: #b91c1c; }
@media (max-width: 1000px) { .adm-td-uso__grid { grid-template-columns: minmax(0, 1fr); } }

/* ══ Pago de comisión al vendedor ════════════════════════════════════════ */
.adm-pago { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1px solid; }
.adm-pago--ok   { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.adm-pago--pend { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.adm-pago--cero { background: var(--lt-bg, #f1f5f9); border-color: var(--lt-border, #e2e8f0); color: #475569; }
.adm-pago__ico { font-size: 30px; line-height: 1; flex-shrink: 0; }
.adm-pago__txt { flex: 1 1 240px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adm-pago__txt strong { font-size: 1.02rem; color: inherit; }
.adm-pago__txt span, .adm-pago__txt small { font-size: 13px; color: var(--lt-text, #0f172a); opacity: .85; }
.adm-pago__dif { font-style: normal; font-weight: 700; color: #b45309; }
.adm-pago__btn { min-height: 44px; gap: 6px; }
.adm-pago__deshacer { gap: 6px; }
.adm-pago__acc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adm-pago__preg { font-size: 13.5px; font-weight: 700; color: var(--lt-text, #0f172a); }
.adm-pago__deuda { display: flex; gap: 8px; align-items: flex-start; margin: 0; padding: 10px 14px; border-radius: 12px; background: #fef2f2; color: #991b1b; font-size: 13.5px; }
.adm-pago__deuda i { font-size: 18px; flex-shrink: 0; }
.adm-pago-form { display: grid; gap: 14px; padding: 16px; border-radius: 16px; border: 1px solid var(--lt-border, #e2e8f0); background: var(--lt-surface, #fff); box-shadow: var(--lt-shadow-md); }
.adm-pago-form h3 { margin: 0; font-size: 1rem; font-weight: 800; }
.adm-pago-form__grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.adm-pago-form__grid .lt-form-group { margin: 0; min-width: 0; }
.adm-pago-form__nota { grid-column: 1 / -1; }
.adm-pago-form__acc { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.adm-pago-form__acc .lt-btn { min-height: 44px; gap: 6px; }
.adm-com__hist-pago { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: #b45309; white-space: nowrap; }
.adm-com__hist-pago--ok { color: #047857; }
@media (max-width: 560px) { .adm-pago-form__grid { grid-template-columns: minmax(0, 1fr); } }
.seller-summary__chip-icon--warn { background: #fffbeb; color: #b45309; }
.seller-com__pago { display: inline-block; margin-top: 3px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #ecfdf5; color: #065f46; }
.seller-com__pago--pend { background: #fffbeb; color: #92400e; }

/* Los selectores/calendarios flotantes (LtSelect, LtFecha) no deben quedar recortados por la tarjeta. */
.admin-card { overflow: visible; }
.admin-card > .admin-card__head:first-child { border-radius: 16px 16px 0 0; }
.adm-td-panel .admin-card > .admin-card__head:first-child { border-radius: 18px 18px 0 0; }

/* ══ Bandeja de WhatsApp — rediseño (2026-11-14) ══════════════════════════
   Escritorio: lista + chat lado a lado. Celular (≤860px): la lista ocupa toda la
   pantalla y el chat se abre a pantalla completa, como WhatsApp. */
.adm-inbox { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); }
.adm-inbox__lista { min-width: 0; }
.adm-convs { min-width: 0; }
.adm-conv { align-items: center; min-height: 72px; padding: 10px 14px; border-bottom: 0; position: relative; }
.adm-conv::after { content: ""; position: absolute; left: 70px; right: 0; bottom: 0; height: 1px; background: var(--lt-border); }
.adm-conv .adm-avatar { width: 48px; height: 48px; font-size: 16px; }
.adm-conv__nombre { font-size: 15px; }
.adm-conv__ultimo { flex: 1; min-width: 0; }
.adm-badge { background: #16a34a; }
.adm-conv--nueva .adm-conv__hora { color: #15803d; }

/* Chat */
.adm-inbox__chat { background: #efeae2; }
.adm-chat__msgs {
    gap: 4px; padding: 14px 16px 18px;
    background-color: #efeae2;
    background-image: radial-gradient(rgba(15, 23, 42, .045) 1px, transparent 1px);
    background-size: 18px 18px;
    overscroll-behavior: contain;
}
.adm-chat__cab { gap: 10px; min-height: 64px; padding: 8px 12px; }
.adm-chat__volver {
    display: none; place-items: center; width: 40px; height: 40px; flex-shrink: 0;
    border: 0; border-radius: 50%; background: transparent; color: var(--lt-text); font-size: 20px; cursor: pointer;
}
.adm-chat__volver:hover { background: var(--lt-bg); }
.adm-chat__quien strong { font-size: 15.5px; }
.adm-chat__quien span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-chat__accion {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
    border-radius: 999px; border: 1px solid var(--lt-border); background: var(--lt-surface);
    color: var(--lt-text); font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.adm-chat__accion:hover { background: var(--lt-bg); color: var(--lt-primary-dark); }
.adm-chat__accion i { font-size: 18px; color: var(--lt-primary); }

.adm-dia { position: sticky; top: 0; z-index: 1; margin: 10px 0 6px; }
.adm-dia span { background: #ffffff; color: #475569; box-shadow: 0 1px 1px rgba(15,23,42,.08); }
.adm-msg { position: relative; max-width: min(78%, 560px); padding: 7px 10px 5px 11px; border-radius: 10px; margin-top: 2px; }
.adm-msg--in  { background: #ffffff; border-top-left-radius: 0; }
.adm-msg--out { background: #d9fdd3; border-top-right-radius: 0; }
.adm-msg--in::before, .adm-msg--out::before {
    content: ""; position: absolute; top: 0; width: 10px; height: 12px;
}
.adm-msg--in::before  { left: -8px;  background: linear-gradient(to bottom left, #ffffff 50%, transparent 50%); }
.adm-msg--out::before { right: -8px; background: linear-gradient(to bottom right, #d9fdd3 50%, transparent 50%); }
.adm-msg--in + .adm-msg--in::before, .adm-msg--out + .adm-msg--out::before { display: none; }
.adm-msg--in + .adm-msg--in { border-top-left-radius: 10px; }
.adm-msg--out + .adm-msg--out { border-top-right-radius: 10px; }
.adm-msg--in + .adm-msg--out, .adm-msg--out + .adm-msg--in { margin-top: 10px; }
.adm-msg__texto { font-size: 15px; line-height: 1.38; color: #111b21; }
.adm-msg__meta { color: #667781; }
.adm-msg__img { border-radius: 8px; }

/* Responder */
.adm-chat__responder { gap: 6px; padding: 8px 12px 10px; background: #f0f2f5; border-top: 0; }
.adm-ventana { justify-content: center; font-size: 12.5px; text-align: center; }
.adm-ventana--cerrada { justify-content: flex-start; text-align: left; }
.adm-respuesta { gap: 8px; align-items: flex-end; }
.adm-respuesta__caja {
    flex: 1; min-width: 0; min-height: 46px; max-height: 40vh; resize: none; overflow-y: hidden;
    padding: 12px 16px; border: 0; border-radius: 24px; background: #ffffff;
    font: inherit; font-size: 16px; line-height: 1.4; color: var(--lt-text);
    box-shadow: 0 1px 1px rgba(15,23,42,.08);
}
.adm-respuesta__caja:focus { outline: 2px solid var(--lt-primary); outline-offset: 0; }
.adm-respuesta__caja::placeholder { color: #8696a0; }
.adm-respuesta__enviar {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0;
    min-width: 46px; height: 46px; padding: 0 18px; border: 0; border-radius: 23px;
    background: #15803d; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.adm-respuesta__enviar i { font-size: 20px; }
.adm-respuesta__enviar:hover:not(:disabled) { background: #166534; }
.adm-respuesta__enviar:disabled { background: #94a3b8; cursor: default; }

@media (max-width: 1100px) {
    .adm-inbox { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); }
    .adm-chat__accion { width: 40px; padding: 0; justify-content: center; }
    .adm-chat__accion span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (max-width: 860px) {
    /* Lista a pantalla completa, sin tarjeta ni márgenes. */
    .adm-inbox-page { gap: 0; }
    .adm-inbox-page .adm-head { margin: -16px -16px 0; padding: 14px 16px; border-radius: 0; }
    .adm-inbox-page .adm-head__eyebrow, .adm-inbox-page .adm-head__sub { display: none; }
    .adm-inbox-page .adm-head > div:first-child { min-width: 0; }
    .adm-inbox-page .adm-head__title { font-size: 1.2rem; }
    .adm-inbox-page .adm-head { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
    .adm-inbox {
        grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0;
        margin: 0 -16px; border: 0; border-radius: 0; box-shadow: none; overflow: visible; background: var(--lt-surface);
    }
    .adm-inbox__lista { border-right: 0; }
    .adm-inbox__filtros {
        position: sticky; top: 0; z-index: 3; flex-direction: row; flex-wrap: wrap; align-items: center;
        padding: 10px 12px; background: var(--lt-surface);
    }
    .adm-inbox__filtros .admin-filters__search {
        flex: 1 1 100%; min-width: 0; min-height: 44px; padding: 0 14px;
        border: 0; border-radius: 22px; background: var(--lt-bg);
    }
    .adm-inbox__filtros .admin-filters__search .lt-input { width: 100%; min-width: 0; background: transparent !important; font-size: 16px; }
    .adm-convs { overflow: visible; }
    .adm-conv { padding: 10px 16px; }
    .adm-conv::after { left: 76px; }
    .adm-vacio { padding: 48px 16px; }

    /* Chat abierto: pantalla completa por encima de todo. */
    .lt-main:has(.adm-inbox--chat) { z-index: 1200; }
    .adm-inbox__chat { display: none; }
    .adm-inbox--chat .adm-inbox__lista { display: none; }
    .adm-inbox--chat .adm-inbox__chat {
        display: flex; position: fixed; inset: 0; z-index: 1200;
        height: 100vh; height: 100dvh;
    }
    .adm-inbox-page:has(.adm-inbox--chat) .adm-head { display: none; }
    .adm-inbox-page:has(.adm-inbox--chat) .adm-inbox { height: auto; }
    body:has(.adm-inbox--chat) { overflow: hidden; }

    .adm-chat__cab { min-height: 60px; padding: 6px 8px; padding-top: calc(6px + env(safe-area-inset-top)); gap: 6px; box-shadow: 0 1px 2px rgba(15,23,42,.08); border-bottom: 0; }
    .adm-chat__volver { display: inline-grid; }
    .adm-chat__cab .adm-avatar { width: 40px; height: 40px; font-size: 14px; }
    .adm-chat__quien { margin-left: 2px; }
    .adm-chat__quien span { font-size: 12.5px; }
    .adm-chat__acciones { gap: 2px; }
    .adm-chat__accion { width: 40px; padding: 0; justify-content: center; border: 0; background: transparent; }
    .adm-chat__accion i { font-size: 21px; }
    .adm-chat__accion span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

    .adm-chat__msgs { padding: 10px 12px 14px; }
    .adm-msg { max-width: 85%; }
    .adm-chat__responder { padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); }
    .adm-respuesta { gap: 6px; }
    .adm-respuesta__enviar { width: 46px; padding: 0; }
    .adm-respuesta__enviar span:not(.lt-spinner) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .adm-ventana { font-size: 12px; }
}
.adm-td-hero__pill--premio { background: #fef3c7; color: #78350f; }

/* Ticket de la orden: sello CANCELADO (muestra en el detalle del cliente) */
.adm-ticket-flag { margin-bottom: 12px; align-items: flex-start; }
.adm-ticket-muestra {
    display: grid; gap: 6px; max-width: 240px; margin: 0 auto; padding: 12px 14px;
    background: #fff; border: 1px dashed #94a3b8; border-radius: 6px;
    font-family: Arial, sans-serif; font-size: 12px; color: #0f172a;
}
.adm-ticket-muestra__total, .adm-ticket-muestra__linea { display: flex; justify-content: space-between; gap: 8px; }
.adm-ticket-muestra__total { padding-top: 6px; border-top: 1px solid #0f172a; font-weight: 800; font-size: 13px; }
.adm-ticket-muestra__sello {
    display: grid; justify-items: center; padding: 4px; border: 2px solid #0f172a;
    font-weight: 900; font-size: 17px; letter-spacing: .15em;
}
.adm-ticket-muestra__sello small { font-size: 10px; font-weight: 500; letter-spacing: 0; }
.adm-ticket-muestra--off { opacity: .8; }
.adm-ven__comision { display: block; max-width: 140px; font-size: 11.5px; line-height: 1.3; color: #92400e; text-align: right; }
