/* =========================================================
   DATHIUM — vitrina del inicio: réplicas de cada sistema
   ========================================================= */
.showwin__body--rx { padding: 0; min-height: 0; }
.hv__app { position: relative; }
.hv__foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.hv__foot > b { margin-right: 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.hv__foot a:not(.btn) { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 600; transition: border-color .15s, color .15s; }
.hv__foot a:not(.btn) .i { color: var(--acc); width: 14px; height: 14px; }
.hv__foot a:not(.btn):hover { border-color: var(--acc); color: var(--acc); }
.hv__foot .btn { margin-left: auto; }

.rx { position: relative; display: grid; height: 470px; overflow: hidden; font-size: 12.5px; line-height: 1.4; color: #1e293b; text-align: left; }
.rx button { font: inherit; color: inherit; cursor: pointer; }
.rx .i { width: 15px; height: 15px; flex: none; }
.rx h6 { margin: 0 0 8px; font-family: var(--font); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #64748b; }
.rx__toast { position: absolute; left: 50%; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 12px; background: #0f172a; color: #fff; font-size: 13px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: all .25s; }
.rx__toast .i { color: #4ade80; }
.rx__toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.rx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border: 0; border-radius: 12px; background: var(--rxa, #2458a6); color: #fff !important; font-weight: 700; white-space: nowrap; }
.rx-btn:disabled { opacity: .45; cursor: not-allowed; }
.rx-btn--ok { background: #16a34a; }
.rx-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; font-size: 12px; white-space: nowrap; }
.rx-ok { display: inline-flex; align-items: center; gap: 5px; color: #16a34a; font-weight: 600; font-size: 12px; white-space: nowrap; }
.rx-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.rx-pill .i { width: 11px; height: 11px; }
.rx-pill.ok { background: #e7f7ee; color: #15803d; }
.rx-pill.warn { background: #fef3c7; color: #b45309; }
.rx-pill.bad { background: #fee2e2; color: #b91c1c; }
.rx-card { padding: 14px; border-radius: 12px; background: #fff; border: 1px solid #e5eaf2; min-width: 0; }
.rx-card--flush { padding: 0; overflow: auto; }
.rx-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 10px; }
.rx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rx-kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 10px; }
.rx-kpis > div { padding: 12px; border-radius: 12px; background: #fff; border: 1px solid #e5eaf2; min-width: 0; }
.rx-kpis small { display: block; color: #64748b; font-size: 11.5px; }
.rx-kpis b { display: block; font-family: var(--font-head); font-size: 18px; white-space: nowrap; }
.rx-kpis em { font-style: normal; font-size: 11px; font-weight: 700; color: #16a34a; }
.rx-tbl { width: 100%; border-collapse: collapse; }
.rx-tbl th { padding: 9px 12px; background: #f8fafc; text-align: left; font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.rx-tbl td { padding: 9px 12px; border-top: 1px solid #eef2f7; white-space: nowrap; }
.rx-tbl th .i { width: 12px; height: 12px; vertical-align: -2px; }
.rx-sbar { display: inline-block; width: 70px; height: 6px; margin-right: 6px; border-radius: 99px; background: #edf1f7; overflow: hidden; vertical-align: middle; }
.rx-sbar i { display: block; height: 100%; border-radius: inherit; }
.rx-mb { display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 10px; padding: 7px 0; }
.rx-mb .rx-sbar { width: 100%; }
.rx-empty { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 24px; color: #94a3b8; }
.rx-empty--big { height: 100%; font-size: 14px; }
.rx-av { position: relative; display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #dbeafe; color: #1d4a8e; font-style: normal; font-weight: 700; font-size: 12px; }
.rx-av span { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #e2e8f0; }
.rx-av span .i { width: 10px; height: 10px; }
.rx-av--lg { width: 56px; height: 56px; font-size: 18px; }
.rx-ring { --p: 0; position: relative; display: grid; place-items: center; width: 92px; height: 92px; margin: 4px auto 8px; border-radius: 50%; background: conic-gradient(var(--rxa, #2458a6) calc(var(--p) * 1%), #e8edf4 0); transition: background .4s; }
.rx-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.rx-ring b { position: relative; font-family: var(--font-head); font-size: 20px; }

/* ---------- ERP ---------- */
.rx-erp { grid-template-columns: 186px minmax(0, 1fr); --rxa: #2458a6; }
.rx-erp__sb { display: flex; flex-direction: column; gap: 3px; padding: 14px 10px; background: #101d35; color: #b8c6e0; }
.rx-erp__brand { display: flex; align-items: center; gap: 8px; padding: 2px 8px 16px; color: #fff; font-family: var(--font-head); font-size: 14px; }
.rx-erp__brand span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #2458a6; }
.rx-erp__brand em { font-style: normal; color: #9db6dc; }
.rx-erp__sb > button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 12px; background: none; text-align: left; font-weight: 600; color: #b8c6e0 !important; }
.rx-erp__sb > button:hover { background: rgba(255,255,255,.06); }
.rx-erp__sb > button.is-on { background: #2458a6; color: #fff !important; }
.rx-erp__user { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 10px 8px 0; border-top: 1px solid rgba(255,255,255,.08); }
.rx-erp__user i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #1e3a6e; color: #fff; font-style: normal; font-weight: 700; font-size: 11px; }
.rx-erp__user b { display: block; color: #fff; }
.rx-erp__user small { font-size: 11px; }
.rx-erp__main { display: flex; flex-direction: column; min-width: 0; background: #f4f6fb; }
.rx-erp__top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #fff; border-bottom: 1px solid #e5eaf2; }
.rx-erp__top > b { margin-right: auto; font-family: var(--font-head); font-size: 15px; }
.rx-erp__view { flex: 1; min-height: 0; overflow: auto; padding: 12px; animation: phIn .25s ease; }
.rx-search { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff; color: #94a3b8; }
.rx-search span { flex: 1; }
.rx-tabs { display: flex; gap: 6px; margin: 8px 0; overflow: hidden; }
.rx-tabs b { padding: 5px 11px; border-radius: 99px; background: #fff; border: 1px solid #e2e8f0; font-weight: 600; font-size: 11.5px; white-space: nowrap; }
.rx-tabs b.is-on { background: #101d35; border-color: #101d35; color: #fff; }
.rx-pos { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 12px; height: 100%; }
.rx-pos__cat { min-width: 0; }
.rx-pos__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rx-pos__grid button { display: grid; gap: 2px; padding: 8px; border: 1px solid #e5eaf2; border-radius: 12px; background: #fff; text-align: left; transition: border-color .15s, transform .15s; }
.rx-pos__grid button:hover { border-color: var(--c); transform: translateY(-1px); }
.rx-pos__grid i { display: grid; place-items: center; height: 44px; margin-bottom: 4px; border-radius: 8px; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); font-style: normal; font-weight: 800; }
.rx-pos__grid b { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-pos__grid span { font-weight: 700; color: #2458a6; }
.rx-pos__grid small { font-size: 10.5px; color: #64748b; }
.rx-pos__grid small.low { color: #dc2626; font-weight: 700; }
.rx-pos__cart { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid #e5eaf2; min-height: 0; }
.rx-seg { display: flex; padding: 3px; border-radius: 12px; background: #f1f5f9; }
.rx-seg button { flex: 1; padding: 6px 2px; border: 0; border-radius: 8px; background: none; font-size: 10.5px; font-weight: 700; color: #64748b; }
.rx-seg button.is-on { background: #fff; color: #2458a6; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.rx-pos__client { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 8px; background: #f8fafc; font-size: 11.5px; white-space: nowrap; overflow: hidden; }
.rx-pos__cart ul { flex: 1; min-height: 0; overflow: auto; margin: 0; padding: 0; list-style: none; }
.rx-pos__cart li { display: flex; align-items: center; gap: 6px; padding: 7px 0; border-bottom: 1px dashed #e5eaf2; }
.rx-pos__cart li > span { flex: 1; min-width: 0; }
.rx-pos__cart li b { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-pos__cart li small { color: #64748b; font-size: 10.5px; }
.rx-pos__cart li em { font-style: normal; font-weight: 700; white-space: nowrap; }
.rx-pos__cart li button { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 8px; background: #fee2e2; color: #dc2626 !important; }
.rx-pos__cart li button .i { width: 12px; height: 12px; }
.rx-pos__cart li.empty { justify-content: center; color: #94a3b8; border: 0; padding: 20px 0; }
.rx-pos__tot { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 11.5px; color: #64748b; }
.rx-pos__tot b { text-align: right; color: #1e293b; }
.rx-pos__tot .big { font-size: 15px; color: #101d35; font-weight: 800; }
.rx-bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 10px; }
.rx-bars i { flex: 1; height: var(--h); border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #2458a6, #9db6dc); animation: rxGrow .6s ease both; }
@keyframes rxGrow { from { height: 0; } }
.rx-sunat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; text-align: center; }
.rx-sunat span { padding: 8px 2px; border-radius: 12px; font-size: 10.5px; }
.rx-sunat b { display: block; font-size: 15px; }
.rx-sunat .ok { background: #e7f7ee; color: #15803d; }
.rx-sunat .warn { background: #fef3c7; color: #b45309; }
.rx-sunat .bad { background: #fee2e2; color: #b91c1c; }
.rx-paybar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; }

/* ---------- CRM (bandeja) ---------- */
.rx-cw { grid-template-columns: 52px 170px 250px minmax(0, 1fr) 200px; --rxa: #2458a6; background: #fff; }
.rx-cw__rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; border-right: 1px solid #eef1f5; }
.rx-cw__logo { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 8px; border-radius: 12px; background: #2458a6; color: #fff; }
.rx-cw__rail b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; color: #64748b; }
.rx-cw__rail b.is-on { background: #eef3fa; color: #2458a6; }
.rx-cw__me { display: grid; place-items: center; width: 30px; height: 30px; margin-top: auto; border-radius: 50%; background: #fde68a; font-style: normal; font-weight: 700; font-size: 11px; }
.rx-cw__side { display: flex; flex-direction: column; gap: 1px; padding: 14px 10px; border-right: 1px solid #eef1f5; background: #fbfcfd; overflow: hidden; }
.rx-cw__side h6 { margin: 10px 6px 4px; }
.rx-cw__side h6:first-child { margin-top: 0; font-size: 13px; text-transform: none; letter-spacing: 0; color: #1e293b; }
.rx-cw__side a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; color: #475569; white-space: nowrap; }
.rx-cw__side a.is-on { background: #eef3fa; color: #2458a6; font-weight: 600; }
.rx-cw__side a > i { width: 8px; height: 8px; border-radius: 50%; }
.rx-cw__list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid #eef1f5; }
.rx-cw__lhead { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 6px; }
.rx-cw__lhead b { font-size: 15px; font-family: var(--font-head); }
.rx-cw__lhead span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 8px; background: #f1f5f9; font-size: 11.5px; }
.rx-cw__lhead .i { width: 11px; height: 11px; transform: rotate(90deg); }
.rx-cw__tabs { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid #eef1f5; }
.rx-cw__tabs button { padding: 8px 6px; border: 0; border-bottom: 2px solid transparent; background: none; font-weight: 600; color: #64748b; white-space: nowrap; }
.rx-cw__tabs button.is-on { border-color: #2458a6; color: #2458a6; }
.rx-cw__tabs em { padding: 0 6px; border-radius: 99px; background: #f1f5f9; font-style: normal; font-size: 10.5px; }
[data-cwlist] { flex: 1; min-height: 0; overflow-y: auto; }
.rx-cw__item { display: flex; gap: 10px; width: 100%; padding: 11px 12px; border: 0; border-bottom: 1px solid #f1f4f8; border-left: 3px solid transparent; background: none; text-align: left; }
.rx-cw__item:hover { background: #f8fafc; }
.rx-cw__item.is-on { background: #f3f6fb; border-left-color: #2458a6; }
.rx-cw__item > span:nth-child(2) { flex: 1; min-width: 0; }
.rx-cw__item small { display: flex; align-items: center; gap: 4px; color: #94a3b8; font-size: 10.5px; }
.rx-cw__item small .i { width: 11px; height: 11px; }
.rx-cw__item b { display: block; font-size: 12.5px; }
.rx-cw__item p { margin: 1px 0 0; color: #64748b; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-cw__meta { display: grid; justify-items: end; gap: 4px; }
.rx-cw__meta em { display: grid; place-items: center; min-width: 18px; height: 18px; border-radius: 99px; background: #2458a6; color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; }
.rx-cw__chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #f7f9fb; }
.rx-cw__chead { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-bottom: 1px solid #eef1f5; }
.rx-cw__chead > span:nth-child(2) { flex: 1; min-width: 0; }
.rx-cw__chead b { display: block; }
.rx-cw__chead small { display: flex; align-items: center; gap: 4px; color: #64748b; font-size: 11px; }
.rx-cw__chead small .i { width: 11px; height: 11px; }
.rx-cw__assign { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; font-size: 11.5px; white-space: nowrap; }
.rx-cw__chead .rx-btn { padding: 7px 11px; font-size: 12px; }
.rx-cw__msgs { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.rx-msg { max-width: 78%; padding: 9px 12px; border-radius: 12px; animation: phIn .2s ease; }
.rx-msg--in { align-self: flex-start; background: #fff; border: 1px solid #e8edf3; border-bottom-left-radius: 4px; }
.rx-msg--out { align-self: flex-end; background: #2458a6; color: #fff; border-bottom-right-radius: 4px; }
.rx-msg--note { align-self: flex-end; background: #fff8e1; border: 1px solid #fde68a; color: #78350f; }
.rx-msg--note small { display: flex; align-items: center; gap: 4px; margin-bottom: 2px; font-size: 10.5px; font-weight: 700; }
.rx-msg--note small .i { width: 11px; height: 11px; }
.rx-cw__ai { align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px dashed #a78bfa; border-radius: 99px; background: #f5f3ff; color: #6d28d9 !important; font-size: 11.5px; font-weight: 600; }
.rx-cw__comp { padding: 8px 12px 12px; background: #fff; border-top: 1px solid #eef1f5; }
.rx-cw__comp.is-note { background: #fffbeb; }
.rx-cw__mode { display: flex; gap: 4px; margin-bottom: 6px; }
.rx-cw__mode button { padding: 4px 10px; border: 0; border-radius: 8px; background: none; font-weight: 600; font-size: 11.5px; color: #64748b; }
.rx-cw__mode button.is-on { background: #eef3fa; color: #2458a6; }
.rx-cw__comp.is-note .rx-cw__mode button.is-on { background: #fde68a; color: #78350f; }
.rx-cw__input { display: flex; gap: 8px; }
.rx-cw__input input { flex: 1; min-width: 0; padding: 9px 11px; border: 1px solid #e2e8f0; border-radius: 12px; font: inherit; outline: none; background: #fff; }
.rx-cw__input input:focus { border-color: #2458a6; }
.rx-cw__info { padding: 16px 14px; border-left: 1px solid #eef1f5; overflow-y: auto; }
.rx-cw__contact { display: grid; justify-items: center; gap: 2px; margin-bottom: 12px; text-align: center; }
.rx-cw__contact .rx-av { margin-bottom: 6px; }
.rx-cw__contact small { color: #64748b; }
.rx-cw__info dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 8px; margin: 0 0 14px; }
.rx-cw__info dt { color: #94a3b8; }
.rx-cw__info dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.rx-cw__attr dt { font-size: 11.5px; }
.rx-label { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 14px; padding: 3px 9px; border-radius: 99px; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); font-weight: 700; font-size: 11px; }

/* ---------- E-learning (aula) ---------- */
.rx-md { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); --rxa: #2458a6; background: #f5f6f8; }
.rx-md__nav { display: flex; align-items: center; gap: 16px; padding: 10px 16px; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.06); z-index: 1; }
.rx-md__logo { display: inline-flex; align-items: center; gap: 7px; margin-right: 10px; font-family: var(--font-head); font-weight: 800; color: #2458a6; }
.rx-md__nav a { color: #475569; padding: 4px 0; border-bottom: 2px solid transparent; }
.rx-md__nav a.is-on { color: #2458a6; border-color: #2458a6; font-weight: 600; }
.rx-md__right { display: flex; align-items: center; gap: 14px; margin-left: auto; color: #64748b; }
.rx-md__right i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #2458a6; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; }
.rx-md__wrap { display: grid; grid-template-columns: 200px minmax(0, 1fr) 190px; min-height: 0; }
.rx-md__index { padding: 14px 12px; border-right: 1px solid #e3e6ea; background: #fff; overflow-y: auto; }
.rx-md__sec { margin-bottom: 10px; }
.rx-md__sec > b { display: block; margin-bottom: 4px; font-size: 11.5px; }
.rx-md__sec span { display: flex; align-items: center; gap: 6px; padding: 3px 0 3px 4px; color: #475569; font-size: 11.5px; }
.rx-md__sec span i { display: grid; place-items: center; flex: none; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid #cbd5e1; }
.rx-md__sec span i.ok { background: #2458a6; border-color: #2458a6; color: #fff; }
.rx-md__sec span i .i { width: 9px; height: 9px; }
.rx-md__main { padding: 14px 18px; overflow-y: auto; }
.rx-md__crumb { margin: 0; color: #2458a6; font-size: 11.5px; }
.rx-md__main h3 { margin: 4px 0 10px; font-family: var(--font-head); font-size: 19px; }
.rx-md__tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; border-bottom: 1px solid #dee2e6; }
.rx-md__tabs button { flex: none; padding: 7px 12px; border: 0; border-bottom: 2px solid transparent; background: none; color: #475569; }
.rx-md__tabs button.is-on { border-color: #2458a6; color: #2458a6; font-weight: 600; }
.rx-md__section { margin-bottom: 12px; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid #e3e6ea; animation: phIn .25s ease; }
.rx-md__section h4 { margin: 0 0 8px; font-family: var(--font-head); font-size: 14px; }
.rx-md__lock { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 6px 9px; border-radius: 8px; background: #f1f5f9; color: #64748b; font-size: 11.5px; }
.rx-md__act { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid #f1f3f5; }
.rx-md__act:first-of-type { border-top: 0; }
.rx-md__act.is-locked { opacity: .5; }
.rx-md__act > span:nth-child(2) { flex: 1; min-width: 0; }
.rx-md__act small { display: block; color: #64748b; font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; }
.rx-md__act b { display: block; color: #2458a6; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-md__ico { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--c); color: #fff; }
.rx-md__done, .rx-md__cond { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; font-size: 11px; font-weight: 600; color: #334155 !important; white-space: nowrap; }
.rx-md__done.ok, .rx-md__cond.ok { border-color: #bbf7d0; background: #e7f7ee; color: #15803d !important; }
.rx-md__done .i, .rx-md__cond .i { width: 11px; height: 11px; }
.rx-md__blocks { padding: 14px 12px; border-left: 1px solid #e3e6ea; background: #fff; overflow-y: auto; }
.rx-md__block { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #f1f3f5; text-align: center; }
.rx-md__block small { color: #64748b; font-size: 11px; }
.rx-md__block p { display: flex; gap: 6px; margin: 0 0 8px; text-align: left; }
.rx-md__block p .i { color: #f7634d; margin-top: 2px; }
.rx-md__block p b { display: block; font-size: 11.5px; }
.rx-md__cert { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 12px; background: #fef3c7; color: #92400e; animation: phPop .35s ease; }
.rx-tbl--md { background: #fff; border: 1px solid #e3e6ea; }
.rx-tbl--md b.ok { color: #15803d; }
.rx-tbl--md b.bad { color: #b91c1c; }

/* ---------- Desarrollo web ---------- */
.rx-dev { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); background: #0b1120; color: #cbd5e1; --rxa: #2458a6; }
.rx-dev__top { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid #1e293b; }
.rx-dev__proj { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; white-space: nowrap; }
.rx-dev__steps { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.rx-dev__steps button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid #1e293b; border-radius: 99px; background: none; color: #94a3b8 !important; font-weight: 600; white-space: nowrap; }
.rx-dev__steps em { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #1e293b; font-style: normal; font-size: 10px; }
.rx-dev__steps button.is-on { border-color: #2458a6; background: rgba(36,88,166,.15); color: #9db6dc !important; }
.rx-dev__steps button.is-on em { background: #2458a6; color: #fff; }
.rx-dev__view { min-height: 0; overflow: hidden; animation: phIn .25s ease; }
.rx-dev h6 { color: #64748b; }
.rx-site { --sc: #2458a6; overflow: hidden; border-radius: 8px; background: #fff; color: #0f172a; font-size: 10px; }
.rx-site__nav { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-bottom: 1px solid #eef2f7; }
.rx-site__nav b { margin-right: auto; color: var(--sc); font-family: var(--font-head); font-size: 12px; transition: color .3s; }
.rx-site__nav span { color: #64748b; }
.rx-site__hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; align-items: center; padding: 14px 10px; background: color-mix(in srgb, var(--sc) 10%, #fff); transition: background .3s; }
.rx-site__hero b { display: block; font-family: var(--font-head); font-size: 15px; line-height: 1.15; }
.rx-site__hero small { display: block; margin: 4px 0 8px; color: #475569; }
.rx-site__hero em { display: inline-block; padding: 5px 10px; border-radius: 8px; background: var(--sc); color: #fff; font-style: normal; font-weight: 700; transition: background .3s; }
.rx-site__hero > i { height: 70px; border-radius: 8px; background: linear-gradient(135deg, var(--sc), color-mix(in srgb, var(--sc) 40%, #fff)); transition: background .3s; }
.rx-site__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px; }
.rx-site__cards i { height: 34px; border-radius: 8px; background: #f1f5f9; border-top: 3px solid var(--sc); }
.rx-dz { display: grid; grid-template-columns: 160px minmax(0, 1fr) 180px; height: 100%; }
.rx-dz__layers, .rx-dz__insp { padding: 12px; background: #111827; overflow: hidden; }
.rx-dz__layers span { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; white-space: nowrap; }
.rx-dz__layers span.is-on { background: rgba(36,88,166,.2); color: #9db6dc; }
.rx-dz__canvas { display: flex; align-items: flex-start; justify-content: center; gap: 16px; padding: 18px; background: #1f2937 radial-gradient(#374151 1px, transparent 1px) 0 0 / 16px 16px; overflow: hidden; }
.rx-dz__frame { flex: 1; max-width: 330px; }
.rx-dz__frame small { display: block; margin-bottom: 4px; color: #94a3b8; font-size: 10.5px; }
.rx-dz__frame .rx-site { box-shadow: 0 0 0 2px #2458a6, 0 20px 40px -20px #000; }
.rx-dz__frame--m { flex: none; width: 130px; }
.rx-dz__frame--m .rx-site__hero { grid-template-columns: 1fr; }
.rx-dz__frame--m .rx-site__nav span { display: none; }
.rx-dz__frame--m .rx-site__cards { grid-template-columns: 1fr; }
.rx-dz__insp p { margin: 0 0 14px; color: #e2e8f0; }
.rx-dz__insp small { color: #64748b; }
.rx-dz__sw { display: flex; gap: 8px; margin-bottom: 16px; }
.rx-dz__sw button { width: 26px; height: 26px; border: 2px solid #111827; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 1px #334155; }
.rx-dz__sw button.is-on { box-shadow: 0 0 0 2px #fff; }
.rx-dz__sw--sm { align-items: center; margin: 10px 0 0; }
.rx-dz__sw--sm small { color: #94a3b8; font-size: 11px; }
.rx-dz__sw--sm button { width: 20px; height: 20px; border-color: #0b1120; }
.rx-ide { display: grid; grid-template-columns: 150px minmax(0, 1.2fr) minmax(0, 1fr); height: 100%; }
.rx-ide__tree { padding: 12px 8px; background: #111827; overflow: hidden; }
.rx-ide__tree span { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 5px; white-space: nowrap; }
.rx-ide__tree span.sub { padding-left: 18px; }
.rx-ide__tree span.is-on { background: #1e293b; color: #fff; }
.rx-ide__tree .i { width: 13px; height: 13px; }
.rx-ide__ed { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid #1e293b; }
.rx-ide__tab { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 7px 14px; background: #0f172a; border-top: 2px solid #2458a6; color: #e2e8f0; }
.rx-ide__ed pre { flex: 1; margin: 0; padding: 12px 0; overflow: auto; background: #0f172a; font: 12px/1.75 ui-monospace, SFMono-Regular, Consolas, monospace; }
.rx-ide__ed pre span { display: block; white-space: pre; padding-right: 12px; }
.rx-ide__ed pre em { display: inline-block; width: 34px; margin-right: 12px; color: #475569; font-style: normal; text-align: right; }
.rx-ide__ed pre i { color: #f472b6; font-style: normal; }
.rx-ide__ed pre u { color: #9db6dc; text-decoration: none; }
.rx-ide__ed pre s { color: #a5f3a0; text-decoration: none; }
.rx-dev__c::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 4px; border-radius: 2px; background: var(--sc); vertical-align: -1px; }
.rx-ide__term { display: grid; gap: 2px; padding: 8px 12px; border-top: 1px solid #1e293b; background: #0b1120; font: 11.5px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.rx-ide__term b { color: #94a3b8; font-family: var(--font); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; }
.rx-ide__term .ok { color: #4ade80; }
.rx-ide__prev { padding: 12px; background: #111827; min-width: 0; overflow: hidden; }
.rx-ide__url { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; padding: 6px 10px; border-radius: 8px; background: #1e293b; color: #94a3b8; font-size: 11.5px; }
.rx-ide__url .i { width: 12px; height: 12px; color: #4ade80; }
.rx-test { display: grid; align-content: start; justify-items: center; gap: 18px; height: 100%; padding: 22px; overflow: auto; }
.rx-test__g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; width: 100%; max-width: 620px; text-align: center; }
.rx-test__g small { color: #94a3b8; }
.rx-ring--g { --rxa: #22c55e; background: conic-gradient(#22c55e calc(var(--p) * 1%), #1e293b 0); width: 80px; height: 80px; }
.rx-ring--g::before { background: #0b1120; }
.rx-ring--g b { color: #4ade80; }
.rx-test__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 620px; }
.rx-test__list span { display: flex; align-items: center; gap: 7px; padding: 9px 11px; border-radius: 12px; background: #111827; border: 1px solid #1e293b; }
.rx-test__list b { margin-left: auto; color: #64748b; font-size: 11px; font-weight: 600; }
.rx-test__list span.ok b { color: #4ade80; }
.rx-pub { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px; height: 100%; padding: 20px; overflow: auto; }
.rx-pub ul { display: grid; align-content: start; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rx-pub li { display: flex; align-items: center; gap: 10px; padding: 11px; border-radius: 12px; background: #111827; border: 1px solid #1e293b; }
.rx-pub li i { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #1e293b; font-style: normal; font-size: 11px; }
.rx-pub li.run { border-color: #2458a6; }
.rx-pub li.run i { background: #2458a6; color: #fff; animation: sfPulse .8s infinite; }
.rx-pub li.ok i { background: #16a34a; color: #fff; }
.rx-pub li i .i { width: 12px; height: 12px; }
.rx-pub__card { display: grid; justify-items: center; align-content: center; gap: 6px; padding: 20px; border-radius: 16px; background: #111827; border: 1px solid #1e293b; text-align: center; }
.rx-pub__card > b { color: #fff; font-size: 16px; }
.rx-pub__card > small { color: #94a3b8; margin-bottom: 8px; }
.rx-pub__card .rx-site { width: 100%; max-width: 360px; animation: phPop .4s ease; }
.rx-pub__live { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(34,197,94,.15); color: #4ade80; }
.rx-pub__live.is-off { background: rgba(36,88,166,.15); color: #9db6dc; }
.rx-pub__live .i { width: 24px; height: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .rx-cw { grid-template-columns: 52px 230px minmax(0, 1fr); }
  .rx-cw__side, .rx-cw__info { display: none; }
  .rx-md__wrap { grid-template-columns: 180px minmax(0, 1fr); }
  .rx-md__blocks { display: none; }
  .rx-dz { grid-template-columns: minmax(0, 1fr) 150px; }
  .rx-dz__layers { display: none; }
}
@media (max-width: 860px) {
  .rx { height: 520px; }
  .rx-erp { grid-template-columns: 56px minmax(0, 1fr); }
  .rx-erp__sb span, .rx-erp__brand b, .rx-erp__user span { display: none; }
  .rx-erp__sb > button { justify-content: center; padding: 10px 0; }
  .rx-erp__brand { justify-content: center; padding: 2px 0 14px; }
  .rx-erp__user { justify-content: center; padding: 10px 0 0; }
  .rx-pos { grid-template-columns: 1fr; height: auto; }
  .rx-pos__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rx-pos__cart ul { max-height: 140px; }
  .rx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rx-2 { grid-template-columns: 1fr; }
  .rx-erp__top .rx-chip { display: none; }
  .rx-md__wrap { grid-template-columns: 1fr; }
  .rx-md__index { display: none; }
  .rx-md__nav a:not(.is-on) { display: none; }
  .rx-ide { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .rx-ide__tree { display: none; }
  .rx-ide__ed { border-right: 0; }
  .rx-ide__prev .rx-site { display: none; }
  .rx-ide__prev { padding: 8px 12px; }
  .rx-ide__url { display: none; }
  .rx-dz { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .rx-dz__frame--m { display: none; }
  .rx-dz__insp h6:not(:first-child), .rx-dz__insp p { display: none; }
  .rx-dz__insp .rx-dz__sw { margin: 0; }
  .rx-pub { grid-template-columns: 1fr; }
  .rx-test__g { grid-template-columns: repeat(2, 1fr); }
  .rx-test__list { grid-template-columns: 1fr 1fr; }
  .hv__foot .btn { margin-left: 0; width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
  .rx { height: 540px; font-size: 12px; }
  .rx-cw { grid-template-columns: minmax(0, 1fr); grid-template-rows: 190px minmax(0, 1fr); }
  .rx-cw__rail { display: none; }
  .rx-cw__list { border-right: 0; border-bottom: 1px solid #eef1f5; }
  .rx-cw__assign { display: none; }
  .rx-pos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rx-erp__top .rx-ok { display: none; }
  .rx-dev__proj { display: none; }
  .rx-dev__steps { margin-left: 0; }
  .rx-test__list { grid-template-columns: 1fr; }
  .rx-md__right { display: none; }
  .hv__foot > b { width: 100%; }
}

/* ---------- CRM: detalles de la bandeja ---------- */
.rx-cw__day { align-self: center; padding: 3px 10px; border-radius: 99px; background: #e9eef5; color: #64748b; font-size: 10.5px; font-weight: 700; }
.rx-cw__msgs .rx-msg { box-shadow: 0 1px 2px rgba(16, 29, 53, .05); }
.rx-msg time { display: block; margin-top: 3px; font-size: 10px; text-align: right; color: #94a3b8; }
.rx-msg--out time { color: rgba(255, 255, 255, .7); }
.rx-msg--note time { color: #b45309; }
.rx-msg--out { background: linear-gradient(135deg, #2458a6, #1d4a8e); }
.rx-cw__ai { box-shadow: 0 4px 14px -6px rgba(109, 40, 217, .45); }
.rx-cw__sum { margin: 0 0 14px; padding: 10px 11px; border-radius: 12px; background: linear-gradient(135deg, #f5f3ff, #eef3fa); border: 1px solid #e4defc; font-size: 11.5px; line-height: 1.45; color: #334155; }
.rx-cw__sum small { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; font-size: 10.5px; font-weight: 700; color: #6d28d9; }
.rx-cw__sum small .i { width: 12px; height: 12px; }
.rx-cw__stage { display: grid; gap: 6px; margin: 0 0 14px; }
.rx-cw__stage span { position: relative; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #94a3b8; }
.rx-cw__stage i { flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #cbd5e1; background: #fff; }
.rx-cw__stage .is-done { color: #475569; }
.rx-cw__stage .is-done i { border-color: #16a34a; background: #16a34a; }
.rx-cw__stage .is-on { color: #1e293b; font-weight: 700; }
.rx-cw__stage .is-on i { border-color: #2458a6; box-shadow: 0 0 0 3px rgba(36, 88, 166, .15); }
.rx-cw__msgs, .rx-cw__info { scrollbar-width: thin; scrollbar-color: #d5dde8 transparent; }
