/* Mockups fiéis de Aurora, Neuroconecta, Eletroneuro e Milhas 2 Go (usados por index.html). */

.window-body.has-app { position: relative; display: block; min-height: 0; padding: 0; overflow: hidden; background: transparent; }
.bar-steps { display: flex; gap: 5px; margin-left: auto; padding-left: 10px; }
.bar-steps i { width: 16px; height: 4px; border-radius: 2px; background: rgba(20, 21, 26, .14); transition: background .3s; }

.app { position: absolute; left: 0; top: 0; height: 440px; display: grid; grid-template-columns: 162px minmax(0, 1fr); overflow: hidden; transform: scale(var(--s, 1)); transform-origin: 0 0; background: var(--bg); color: var(--tx); font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 11px; line-height: 1.35; text-align: left; letter-spacing: normal; }
.app[data-shell="nc-mini"] { grid-template-columns: 48px minmax(0, 1fr); }
.app[data-shell="nc-paciente"] { grid-template-columns: 1fr; grid-template-rows: 44px 1fr; }
.app p, .app h4, .app h5 { margin: 0; }
.app b { font-weight: 750; }
.app .mx-mono { font-family: ui-monospace, "IBM Plex Mono", SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }
.mx-ic { width: 14px; height: 14px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Tokens por produto ---- */
.app-au { --bg: #f4f7fb; --card: #fff; --raised: #f8fafc; --line: #e2e8f0; --line2: #cbd5e1; --inset: #f1f5f9; --tx: #1a2535; --tx2: #4a5e78; --hi: #1a2535; --acc: #3FA9A7; --money: #2F9266; --warn: #c27c0e; --danger: #e04848; --done: #7c4dcc; --side: #fff; --side-tx: #4a5e78; --nav-on-bg: rgba(63, 169, 167, .12); --nav-on-tx: #1a2535; --nav-bar: #3FA9A7; --btn-bg: #3FA9A7; --btn-r: 8px; --card-r: 12px; --kick: #4a5e78; --field: #fff; }
.app-nc { --bg: linear-gradient(160deg, #f7f6fb, #f1ecfa); --card: #fff; --raised: #faf9fd; --line: rgba(0, 0, 0, .08); --line2: rgba(0, 0, 0, .14); --inset: #f4f2f9; --tx: #14152b; --tx2: rgba(20, 21, 43, .55); --hi: #14152b; --acc: #7b43d4; --money: #05893e; --warn: #c9690c; --danger: #c53829; --done: #7b43d4; --side: radial-gradient(130% 40% at 0 0, rgba(123, 67, 212, .3), transparent 60%), linear-gradient(#14152b, #0d0e1f); --side-tx: #a9b7c9; --nav-on-bg: rgba(123, 67, 212, .22); --nav-on-tx: #fff; --nav-bar: #7b43d4; --btn-bg: #7b43d4; --btn-r: 8px; --card-r: 10px; --kick: #7b43d4; --field: #fff; }
.app-en { --bg: radial-gradient(70% 50% at 0 0, rgba(13, 148, 136, .07), transparent 70%), #f5f8fb; --card: #fff; --raised: #f8fbfd; --line: #dce6ef; --line2: #cfdbe7; --inset: #f1f5f9; --tx: #0f172a; --tx2: #64748b; --hi: #0f172a; --acc: #0d9488; --money: #059669; --warn: #d97706; --danger: #e11d48; --done: #059669; --side: radial-gradient(130% 35% at 0 0, rgba(45, 212, 191, .18), transparent 60%), linear-gradient(#1b1f3d, #10132a); --side-tx: #aab9cd; --nav-on-bg: rgba(45, 212, 191, .13); --nav-on-tx: #fff; --nav-bar: #2dd4bf; --btn-bg: #0d9488; --btn-r: 8px; --card-r: 14px; --kick: #0d9488; --field: #fff; }
.app-en .mx-title { font-weight: 900; letter-spacing: -.04em; }
.app-m2 { --bg: linear-gradient(180deg, #eef6ff, #f8fafc 45%); --card: #fff; --raised: #f8fafc; --line: #e2e8f0; --line2: #cbd5e1; --inset: #f1f5f9; --tx: #0f172a; --tx2: #64748b; --hi: #0f172a; --acc: #1f7ae0; --money: #059669; --warn: #ec4f20; --danger: #e11d48; --done: #1f7ae0; --btn-bg: #1f7ae0; --btn-r: 10px; --card-r: 14px; --kick: #1663bd; --field: #fff; font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.app-m2 .mx-title { font-weight: 850; letter-spacing: -.03em; }
.app-m2 .mx-kicker { font-size: 8.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--kick); }

/* ---- Barra lateral ---- */
.mx-side { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px 9px; background: var(--side); color: var(--side-tx); border-right: 1px solid var(--line); }
.app-nc .mx-side, .app-en .mx-side { border-right: 0; }
.mx-brand { display: flex; align-items: center; gap: 8px; padding: 0 4px 12px; color: #fff; }
.mx-brand b { display: block; font-size: 12.5px; font-weight: 800; color: var(--hi); }
.app-nc .mx-brand b, .app-en .mx-brand b { color: #fff; }
.mx-brand small { display: block; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: var(--side-tx); opacity: .8; }
.mx-nav { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.mx-nav small { display: block; font-size: 8px; font-weight: 500; opacity: .65; }
.mx-nav.on { background: var(--nav-on-bg); color: var(--nav-on-tx); box-shadow: inset 3px 0 0 var(--nav-bar); }
.app-au .mx-nav.on { color: var(--hi); }
.app-au .mx-nav.on .mx-ic { color: var(--acc); }
.app-au .mx-brand { color: var(--hi); }
.app-au .mx-side { border-right: 1px solid var(--line); }
.mx-side-sec { margin: 10px 8px 4px; font-family: ui-monospace, monospace; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: var(--tx2); }
.mx-user { display: flex; align-items: center; gap: 7px; margin-top: auto; padding: 8px 4px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.mx-user b { display: block; font-size: 9.5px; color: #fff; }
.mx-user small { font-size: 8px; opacity: .7; }
.mx-side.mini { align-items: center; padding: 12px 6px; }
.mx-side.mini .mx-nav { padding: 7px; }

.au-logo { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; border-radius: 7px; background: linear-gradient(135deg, #3FA9A7, #97cafc); }
.au-logo svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.nc-logo { display: inline-flex; flex-wrap: wrap; align-items: center; font-size: 15px; font-weight: 800; letter-spacing: -.04em; color: #fff; line-height: 1; }
.nc-logo small { flex-basis: 100%; margin-top: 4px; padding-top: 3px; border-top: 1px solid rgba(255, 255, 255, .5); font-size: 4.6px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.nc-petal { width: 13px; height: 13px; margin: 0 .5px; }
.nc-petal ellipse { fill: none; stroke: currentColor; stroke-width: 1.6; }
.nc-petal circle { fill: currentColor; }
.mx-side.mini .nc-petal { width: 22px; height: 22px; color: #fff; }
.en-logo { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 9px; background: #10132a; box-shadow: inset 0 0 0 1px rgba(45, 212, 191, .35); }
.en-logo svg { width: 18px; height: 18px; fill: none; stroke: #2dd4bf; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nc-topbar { display: flex; align-items: center; justify-content: space-between; padding: 0 18px; background: #38182f; color: #eee1b3; }
.nc-topbar .nc-logo { color: #eee1b3; font-size: 14px; }
.nc-topbar .nc-logo small { display: none; }
.nc-topbar nav { display: flex; gap: 14px; font-size: 10.5px; font-weight: 600; }
.nc-topbar nav .on { border-bottom: 2px solid #eee1b3; padding-bottom: 2px; }

/* ---- Milhas 2 Go: cabeçalho no topo (o app real não tem barra lateral) ---- */
.app[data-shell="m2"] { grid-template-columns: 1fr; grid-template-rows: 44px 1fr; }
.m2-top { display: flex; align-items: center; gap: 18px; padding: 0 16px; background: rgba(255, 255, 255, .9); border-bottom: 1px solid var(--line); }
.m2-brand { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 850; letter-spacing: -.03em; color: #0f172a; }
.m2-brand em { font-style: normal; color: #ff6b3d; }
.m2-mark { width: 24px; height: 24px; }
.m2-top nav { display: flex; gap: 4px; margin: 0 auto; font-size: 10px; font-weight: 650; color: #475569; }
.m2-top nav span { padding: 5px 9px; border-radius: 8px; }
.m2-top nav .on { background: #eef6ff; color: #1663bd; }
.m2-big { height: 34px; font-size: 14px; }
.m2-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0 2px; border-top: 1px solid var(--line); }
.m2-switch-row b { display: block; font-size: 10.5px; }
.m2-switch-row small { font-size: 8.5px; color: var(--tx2); }
.m2-switch { width: 26px; height: 15px; border-radius: 99px; background: var(--acc); position: relative; flex: 0 0 auto; }
.m2-switch::after { content: ''; position: absolute; right: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.m2-result { overflow: hidden; border-radius: var(--card-r); background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 24px -14px rgba(15, 23, 42, .3); }
.m2-result-top { padding: 12px 14px; color: #fff; background: linear-gradient(135deg, #1f7ae0, #1663bd); }
.m2-result-top small, .m2-verdict > small { display: block; font-size: 9px; font-weight: 700; opacity: .85; }
.m2-result-top > b { display: block; font-size: 24px; font-weight: 850; letter-spacing: -.03em; }
.m2-result-top span { font-size: 9.5px; opacity: .9; }
.m2-rows { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 10px 14px; font-size: 10px; color: var(--tx2); }
.m2-rows b { color: var(--hi); text-align: right; }
.m2-rows.light { margin: 10px -14px -12px; padding: 10px 14px; background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .85); }
.m2-rows.light b { color: #fff; }
.m2-verdict { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--card-r); color: #fff; background: linear-gradient(135deg, #1f7ae0, #17529a); overflow: hidden; }
.m2-verdict > b { font-size: 18px; font-weight: 850; letter-spacing: -.02em; }
.m2-verdict > span { font-size: 9.5px; opacity: .9; }
.m2-list { padding: 2px 12px; }
.m2-prog { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.m2-prog:last-child { border-bottom: 0; }
.m2-pav { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 8px; background: var(--c); color: #fff; font-size: 9px; font-weight: 800; }
.m2-pn b { display: block; font-size: 10.5px; }
.m2-pn small { font-size: 8.5px; color: var(--tx2); }
.m2-pts { font-size: 9.5px; color: var(--tx2); }
.m2-val { font-size: 11px; font-weight: 800; text-align: right; min-width: 52px; }

/* ---- Área principal e componentes ---- */
.mx-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px 16px; overflow: hidden; }
.mx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.mx-actions { display: flex; align-items: center; gap: 6px; }
.mx-kicker { margin-bottom: 2px !important; font-size: 8.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--kick); }
.mx-title { font-size: 19px; font-weight: 820; letter-spacing: -.03em; color: var(--hi); line-height: 1.15; }
.mx-title em { font-style: normal; color: var(--acc); }
.mx-sub { margin-top: 2px !important; font-size: 10px; color: var(--tx2); }
.mx-muted { color: var(--tx2); font-weight: 500; }
.mx-label { display: flex; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 700; color: var(--tx2); }
.mx-label.caps { font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--tx); }
.mx-link { margin-left: auto; color: var(--acc); font-weight: 700; }
.acc { color: var(--acc); font-weight: 600; }
.money { color: var(--money) !important; }
.warn { color: var(--warn) !important; }
.mx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 27px; padding: 0 11px; border-radius: var(--btn-r); font-size: 10.5px; font-weight: 750; white-space: nowrap; color: var(--tx); border: 1px solid var(--line2); background: var(--card); transition: transform .12s, filter .12s; }
.mx-btn.primary { color: #fff; border-color: transparent; background: var(--btn-bg); box-shadow: 0 6px 14px color-mix(in srgb, var(--acc) 22%, transparent); }
.mx-btn.ghost { background: transparent; }
.mx-btn.sm { height: 22px; padding: 0 9px; font-size: 9.5px; }
.mx-btn.block { width: 100%; }
.mx-btn[style*="--bb"] { color: #fff; border: 0; background: var(--bb); }
.mx-btn .mx-ic { width: 11px; height: 11px; }
.mx-card { padding: 10px 12px; border-radius: var(--card-r); background: var(--card); border: 1px solid var(--line); min-width: 0; }
.mx-cols { display: grid; grid-template-columns: var(--cols); gap: 10px; min-width: 0; }
.mx-stack { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mx-form { display: flex; flex-direction: column; gap: 6px; }
.mx-field { display: flex; align-items: center; gap: 6px; height: 25px; padding: 0 9px; border-radius: 7px; background: var(--field); border: 1px solid var(--line2); font-size: 10.5px; color: var(--tx); white-space: nowrap; overflow: hidden; }
.mx-field.search { color: var(--tx2); min-width: 160px; }
.mx-field.sel::after { content: '▾'; margin-left: auto; color: var(--tx2); }
.mx-row-end { display: flex; justify-content: flex-end; gap: 6px; margin-top: auto; }
.mx-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 9.5px; font-weight: 750; white-space: nowrap; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
.mx-pill .mx-ic { width: 10px; height: 10px; }
.mx-badge { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 6px; font-size: 9.5px; font-weight: 650; white-space: nowrap; color: color-mix(in srgb, var(--c) 80%, #000); background: color-mix(in srgb, var(--c) 10%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent); }
.app-au .mx-badge { color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: none; }
.mx-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.mx-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line2); font-size: 10px; font-weight: 650; white-space: nowrap; }
.mx-chip i { width: 7px; height: 7px; border-radius: 50%; }
.mx-chip.on { border-color: var(--acc); color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); }
.mx-chip .mx-ic { width: 10px; height: 10px; }
.mx-seg { display: inline-flex; width: fit-content; padding: 2px; border-radius: 8px; background: var(--inset); border: 1px solid var(--line); }
.mx-seg span { padding: 3px 10px; border-radius: 6px; font-size: 10px; font-weight: 650; color: var(--tx2); }
.mx-seg .on { background: var(--card); color: var(--acc); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.mx-av { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%; font-size: 7.5px; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 22%, var(--card)); box-shadow: 0 0 0 1.5px var(--card); }
.mx-av.more { --c: var(--tx2); }
.mx-avs { display: flex; }
.mx-avs .mx-av + .mx-av { margin-left: -5px; }
.mx-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mx-kpis.three { grid-template-columns: repeat(3, 1fr); }
.mx-kpi { padding: 8px 10px; border-radius: var(--card-r); background: var(--card); border: 1px solid var(--line); }
.mx-kpi p { font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tx2); }
.mx-kpi b { display: block; font-size: 18px; font-weight: 820; color: var(--hi); letter-spacing: -.02em; }
.mx-kpi small { font-size: 9px; color: var(--tx2); }
.mx-bar { height: 6px; border-radius: 3px; background: var(--inset); overflow: hidden; }
.mx-bar i { display: block; height: 100%; border-radius: 3px; background: var(--acc); }
.mx-tbl { display: grid; grid-template-columns: var(--cols); gap: 5px 8px; font-size: 10px; margin-top: 6px; }
.mx-tbl .th { font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tx2); }
.mx-tbl .tf { padding-top: 5px; border-top: 1px solid var(--line); font-weight: 800; }
.mx-tbl .r { text-align: right; }
.mx-tbl .dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; }
.mx-check { display: inline-grid; place-items: center; width: 13px; height: 13px; border-radius: 4px; border: 1.5px solid var(--line2); color: transparent; }
.mx-check .mx-ic { width: 9px; height: 9px; stroke-width: 3; }
.mx-toast { position: absolute; right: 16px; bottom: 14px; z-index: 20; display: flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 10px; background: #14152b; color: #fff; font-size: 10.5px; font-weight: 650; box-shadow: 0 14px 28px rgba(0, 0, 0, .25); }
.mx-toast .mx-ic { color: #4ade80; }

/* ---- Cursor ---- */
.mx-cursor { position: absolute; left: 0; top: 0; z-index: 40; width: 15px; height: 21px; pointer-events: none; transition: transform .95s cubic-bezier(.45, 0, .2, 1); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.mx-cursor svg { width: 100%; height: 100%; fill: #111; stroke: #fff; stroke-width: 1.3; }
.mx-cursor.click::after { content: ''; position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--acc); animation: mxRipple .5s ease-out forwards; }
@keyframes mxSpin { to { transform: rotate(360deg); } }
@keyframes mxRipple { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.is-pressed { transform: scale(.93); filter: brightness(.9); }

/* ---- Efeitos com atraso (--d) ---- */
.fx-in { animation: fxIn .45s cubic-bezier(.16, 1, .3, 1) var(--d, 0s) both; }
.fx-pop { animation: fxPop .5s cubic-bezier(.34, 1.56, .64, 1) var(--d, 0s) both; }
.fx-grow { animation: fxGrow 1.5s cubic-bezier(.65, 0, .35, 1) var(--d, 0s) both; }
.fx-sel { animation: fxSel .3s ease var(--d, 0s) both; }
.fx-check { animation: fxCheck .25s ease var(--d, 0s) both; }
.fx-on { animation: fxOn .3s ease var(--d, 0s) both; }
.fx-cur > i { animation: fxCur .3s ease var(--d, 0s) both; }
.fx-flash { animation: fxFlash 1.25s ease var(--d, 0s) both; }
.swap { display: inline-grid; }
.swap.block { display: grid; }
.swap > * { grid-area: 1 / 1; }
.swap > :first-child { animation: fxOut .25s ease var(--d, 0s) both; }
.swap > :last-child { animation: fxPop .45s cubic-bezier(.34, 1.56, .64, 1) calc(var(--d, 0s) + .12s) both; }
.typein { clip-path: inset(0 100% 0 0); animation: fxType calc(var(--n) * 55ms) steps(var(--n)) var(--d, 0s) forwards; }
@keyframes fxIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes fxPop { from { opacity: 0; transform: scale(.6); } }
@keyframes fxOut { from { opacity: 1; } to { opacity: 0; transform: scale(.85); visibility: hidden; } }
@keyframes fxGrow { from { width: 0; } }
@keyframes fxType { to { clip-path: inset(0 0 0 0); } }
@keyframes fxSel { from { border-color: var(--line2); background: transparent; color: var(--tx); } to { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 14%, transparent); color: var(--acc); } }
@keyframes fxCheck { from { background: transparent; border-color: var(--line2); color: transparent; } to { background: var(--acc); border-color: var(--acc); color: #fff; } }
@keyframes fxOn { from { background: var(--inset); color: var(--tx2); } to { background: var(--acc); color: #fff; } }
@keyframes fxCur { from { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line2); } to { background: #0284c7; box-shadow: 0 0 0 3px rgba(2, 132, 199, .2); } }
@keyframes fxFlash { 0% { opacity: 0; transform: translateY(-4px); } 15%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; visibility: hidden; } }

/* ---- Aurora ---- */
.au-group { --g: #6cb6ff; box-shadow: inset 3px 0 0 var(--g); padding: 10px 12px 8px 14px; }
.au-group-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.au-group-head b { color: var(--hi); font-size: 12px; }
.au-group-head small { color: var(--tx2); }
.au-group-head .swap { margin-left: auto; }
.au-grid { display: grid; grid-template-columns: 82px repeat(7, minmax(0, 1fr)); gap: 3px; }
.au-th { display: flex; flex-direction: column; align-items: center; padding: 3px 0; border-radius: 6px; font-weight: 800; color: var(--hi); font-size: 11px; }
.au-th small { font-size: 8px; color: var(--tx2); font-weight: 600; }
.au-th.mx-mono { align-items: flex-start; justify-content: flex-end; font-size: 8px; color: var(--tx2); }
.au-th.today, .au-td.today { background: rgba(63, 169, 167, .1); }
.au-th.wk, .au-td.wk { background: #eef2f7; }
.au-rowh { display: flex; align-items: center; gap: 5px; }
.au-turn { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 3px; border-radius: 5px; font-size: 8.5px; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 20%, transparent); }
.au-turn-l { font-size: 10px; color: var(--tx); }
.au-td { display: flex; align-items: center; justify-content: center; min-height: 34px; padding: 3px; border-radius: 6px; background: var(--inset); }
.au-person { display: inline-flex; align-items: center; gap: 4px; }
.au-person i { font-style: normal; font-size: 9px; color: var(--tx); }
.au-open .mx-av { background: transparent; box-shadow: none; border: 1.5px dashed var(--tx2); color: var(--tx2); }
.au-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.au-opts.two { grid-template-columns: 1fr 1fr; }
.au-opt { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line2); }
.au-opt b { color: var(--hi); font-size: 10.5px; }
.au-opt small { flex-basis: 100%; font-size: 9px; color: var(--tx2); }
.au-opt.on { border-color: var(--acc); background: rgba(63, 169, 167, .1); }
.au-push { display: flex; gap: 9px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .92); color: #1a2535; border: 1px solid var(--line); box-shadow: 0 12px 26px rgba(26, 37, 53, .12); }
.au-push p { font-size: 9px; color: #4a5e78; }
.au-push b { display: block; font-size: 11px; }
.au-push span { font-size: 10px; color: #4a5e78; }
.au-vaga { display: flex; flex-direction: column; gap: 6px; }
.au-vaga-head { display: flex; align-items: center; gap: 6px; }
.au-vaga-head b { color: var(--hi); }
.au-vaga-meta { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.au-vaga.closed { opacity: .75; }
.au-int { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: var(--inset); }
.au-int span b { display: block; color: var(--hi); font-size: 10.5px; }
.au-int span small { color: var(--tx2); font-size: 9px; }
.au-int > :last-child { margin-left: auto; }
.au-stats { display: flex; align-items: center; gap: 6px; margin-top: 4px !important; font-size: 10.5px; color: var(--tx2); }
.au-stats b { color: var(--hi); }
.au-stats i { width: 1px; height: 11px; background: var(--line2); }
.au-shift { display: grid; grid-template-columns: 34px 1fr auto auto; align-items: center; gap: 8px; padding: 7px 10px 7px 8px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--g); }
.au-day { display: flex; flex-direction: column; align-items: center; font-size: 8px; font-weight: 700; color: var(--tx2); }
.au-day b { font-size: 16px; color: var(--hi); line-height: 1; }
.au-shift-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 9.5px; }
.au-shift-main > span { display: flex; align-items: center; gap: 5px; color: var(--tx2); }
.au-shift-main b { color: var(--hi); font-size: 10.5px; }
.au-shift-main small { display: flex; align-items: center; gap: 4px; color: var(--tx2); }
.au-shift-main small i { width: 6px; height: 6px; border-radius: 50%; }
.mx-avs.sm .mx-av { width: 17px; height: 17px; font-size: 6.5px; }
.au-aura { display: flex; gap: 9px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(135deg, rgba(124, 77, 204, .1), rgba(63, 169, 167, .08)); border: 1px solid rgba(124, 77, 204, .25); }
.au-aura > .mx-ic { width: 18px; height: 18px; color: #7c4dcc; }
.au-aura p { display: flex; align-items: center; gap: 6px; margin-bottom: 3px !important; }
.au-aura p b { color: var(--hi); }
.au-aura span { font-size: 10.5px; }
.au-aura mark { background: none; color: #7c4dcc; font-weight: 750; }
.au-intro { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 12px; background: rgba(124, 77, 204, .07); border: 1px solid rgba(124, 77, 204, .2); font-size: 10.5px; }
.au-intro .mx-ic { width: 16px; height: 16px; color: #7c4dcc; }
.au-intro b { color: var(--hi); }
.au-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-top: 8px; }
.au-cal .h { text-align: center; font-size: 8px; font-weight: 700; color: var(--tx2); }
.au-cday { position: relative; display: grid; place-items: center; height: 27px; border-radius: 6px; font-size: 9.5px; font-weight: 700; color: var(--hi); background: color-mix(in srgb, var(--c) 13%, transparent); }
.au-cday i { position: absolute; left: 4px; right: 4px; bottom: 2px; height: 2.5px; border-radius: 2px; background: var(--c); }
.au-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; font-size: 8.5px; color: var(--tx2); }
.au-legend span::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 2px; background: var(--c); vertical-align: -1px; }
.au-verdict { display: flex; gap: 8px; margin-top: 7px; padding: 8px 10px; border-radius: 9px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); }
.au-verdict > .mx-ic { color: var(--c); margin-top: 1px; }
.au-verdict b { display: block; color: var(--c); font-size: 9.5px; letter-spacing: .04em; }
.au-verdict span { font-size: 10px; }
.au-goal { display: flex; align-items: center; gap: 6px; margin: 4px 0 7px !important; font-size: 11px; color: var(--tx2); }
.au-goal b { font-size: 16px; color: var(--hi); }

/* ---- Neuroconecta ---- */
.nc-filter { display: flex; align-items: center; gap: 6px; }
.nc-filter .search { flex: 1; }
.nc-kpis { display: flex; align-items: center; gap: 18px; padding: 6px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.nc-kpis > b { margin-right: auto; color: var(--tx2); font-size: 10px; }
.nc-kpis span { display: flex; flex-direction: column; font-size: 8.5px; font-weight: 700; color: var(--tx2); }
.nc-kpis em { font-style: normal; font-size: 16px; font-weight: 820; color: var(--hi); }
.nc-kpis em.acc { color: var(--acc); }
.nc-kpis em.late { color: var(--warn); }
.nc-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.nc-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nc-col > p { padding-left: 6px; border-left: 3px solid var(--h); font-size: 10.5px; font-weight: 800; }
.nc-col > p small { color: var(--tx2); font-weight: 600; }
.nc-col.done .nc-kcard { opacity: .78; }
.nc-kcard { display: flex; flex-direction: column; gap: 3px; padding: 7px 8px; border-radius: 9px; background: var(--card); border: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--b); }
.nc-kcard p { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; }
.nc-kcard p > b { font-size: 9.5px; line-height: 1.2; }
.nc-kcard p > span { flex: 0 0 auto; font-size: 8px; font-weight: 700; color: var(--money); }
.nc-kcard p > span.soon { color: var(--warn); }
.nc-kcard p > span.late { color: var(--danger); }
.nc-kcard small { font-size: 8px; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-kcard small b { color: var(--acc); }
.nc-kcard p:last-child { align-items: center; }
.nc-kcard .mx-av { width: 16px; height: 16px; font-size: 6.5px; }
.nc-clinic { padding: 1px 6px; border-radius: 999px; font-size: 8px; font-weight: 700; color: hsl(var(--hue) 55% 28%); background: hsl(var(--hue) 70% 92%); box-shadow: inset 0 0 0 1px hsl(var(--hue) 50% 80%); }
.nc-leave { max-height: 90px; animation: ncLeave .45s ease var(--d, 0s) both; }
@keyframes ncLeave { to { max-height: 0; opacity: 0; margin-bottom: -6px; transform: translateX(30px); } }
.nc-new { box-shadow: inset 3px 0 0 var(--acc), 0 0 0 2px color-mix(in srgb, var(--acc) 35%, transparent); }
.nc-assume { position: absolute; left: calc(162px + 16px); bottom: 14px; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 13px; border-radius: 10px; background: #fff; border: 1px solid var(--line2); font-size: 10.5px; font-weight: 700; box-shadow: 0 14px 30px rgba(20, 21, 43, .18); }
.nc-ed-top { display: flex; align-items: flex-end; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.nc-ed-top small { font-size: 9px; }
.nc-ed-top .mx-title { font-size: 15px; }
.nc-editor { display: grid; grid-template-columns: 148px minmax(0, 1fr) 168px; gap: 8px; min-height: 0; }
.nc-editor .mx-card { padding: 9px 10px; }
.nc-editor .mx-btn.block { justify-content: center; }
.nc-exam { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; padding: 6px 7px; border-radius: 8px; border: 1.5px solid color-mix(in srgb, var(--acc) 50%, transparent); font-size: 9px; }
.nc-exam > span { display: flex; align-items: center; justify-content: space-between; gap: 4px; color: var(--tx2); }
.nc-att { display: flex; flex-direction: column; gap: 7px; }
.nc-att .nc-file { padding: 6px 7px; font-size: 9px; }
.nc-facts { display: flex; flex-direction: column; gap: 1px; }
.nc-facts small { margin-top: 5px; font-size: 7.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tx2); }
.nc-facts b { font-size: 9.5px; font-weight: 600; }
.nc-paper { position: relative; display: flex; flex-direction: column; gap: 7px; min-height: 318px; padding: 10px 14px; }
.nc-paper-head { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 6px; border-bottom: 1.5px solid var(--line2); }
.nc-paper-head small { display: block; font-size: 8.5px; color: var(--tx2); }
.nc-paper-head b { font-size: 10.5px; color: var(--tx2); }
.nc-toolbar { display: flex; flex-wrap: wrap; gap: 4px; }
.nc-toolbar > span { display: inline-flex; align-items: center; height: 20px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--line2); font-size: 9px; font-weight: 700; }
.nc-toolbar .mx-ic { width: 10px; height: 10px; }
.nc-tp { margin-left: 4px; }
.nc-snips { position: absolute; left: 120px; top: 80px; z-index: 5; display: flex; flex-direction: column; gap: 5px; width: 210px; padding: 9px; border-radius: 10px; background: #fff; border: 1px solid var(--line2); box-shadow: 0 16px 32px rgba(20, 21, 43, .2); font-size: 9.5px; }
.nc-snips .search { min-width: 0; height: 22px; font-size: 9px; }
.nc-snip { display: flex; flex-direction: column; padding: 5px 7px; border-radius: 6px; }
.nc-snip.on { background: color-mix(in srgb, var(--acc) 12%, transparent); }
.nc-snip small { font-size: 8px; color: var(--tx2); }
.nc-body { font-size: 10px; line-height: 1.55; }
.nc-body h5 { margin: 4px 0 6px; font-size: 14px; font-weight: 850; letter-spacing: -.01em; }
.nc-body p { margin-bottom: 4px; }
.nc-caret { display: inline-block; width: 1.5px; height: 11px; margin-left: 1px; background: var(--acc); vertical-align: -2px; animation: pulse 1s ease-in-out infinite; }
.nc-overlay { position: absolute; inset: 0; z-index: 15; display: grid; place-content: center; justify-items: center; gap: 10px; background: rgba(247, 246, 251, .82); backdrop-filter: blur(2px); font-size: 12px; font-weight: 750; }
.nc-spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--acc) 25%, transparent); border-top-color: var(--acc); animation: mxSpin .8s linear infinite; }
.nc-drop { display: flex; align-items: center; gap: 8px; padding: 9px; border-radius: 8px; border: 1.5px dashed var(--line2); color: var(--tx2); font-size: 10px; }
.nc-drop b { color: var(--acc); }
.nc-prev-name { font-size: 12.5px; }
.nc-file { display: grid; grid-template-columns: 1fr auto; gap: 4px 6px; padding: 7px 8px; border-radius: 8px; background: var(--raised); border: 1px solid var(--line); font-size: 9.5px; font-weight: 650; }
.nc-file > span { display: flex; align-items: center; gap: 5px; }
.nc-file .mx-bar { grid-column: 1 / -1; height: 4px; }
.nc-pac { display: flex; flex-direction: column; gap: 9px; padding: 14px 20px; background: #faf8ff; height: 100%; overflow: hidden; }
.app[data-shell="nc-paciente"] .mx-main { padding: 0; }
.nc-pac .mx-kicker { color: #7e22ce; }
.nc-banner { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: #e8f6ee; color: #05693a; font-weight: 700; font-size: 10.5px; }
.nc-banner .mx-btn { margin-left: auto; }
.nc-exrow { display: flex; align-items: center; gap: 10px; }
.nc-exrow > span:nth-child(2) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.nc-exrow small { flex-basis: 100%; font-size: 9px; }
.nc-date { display: flex; flex-direction: column; align-items: center; padding: 5px 8px; border-radius: 8px; background: #f3e8ff; color: #7e22ce; font-size: 8px; font-weight: 800; }
.nc-date b { font-size: 15px; line-height: 1; }
.nc-exr { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-left: auto; }
.nc-exr small { font-size: 8px; font-weight: 700; }
.app-nc .nc-pac .mx-btn.primary { background: #7e22ce; }
.nc-track { display: flex; flex-direction: column; gap: 9px; margin-top: 8px; font-size: 10px; font-weight: 650; }
.nc-track span { display: flex; align-items: center; gap: 7px; }
.nc-track .mx-ic { width: 16px; height: 16px; padding: 3px; border-radius: 50%; background: #05893e; color: #fff; stroke-width: 3; }
.nc-profit { font-size: 22px !important; font-weight: 850; color: #05893e; letter-spacing: -.02em; }
.nc-profit.dark { color: var(--hi); }
.nc-stack { display: flex; height: 10px; margin: 8px 0 6px; border-radius: 5px; overflow: hidden; background: var(--inset); }
.nc-stack i { display: block; height: 100%; }
.nc-leg { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 8.5px; color: var(--tx2); }
.nc-leg span::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 2px; background: var(--c); vertical-align: -1px; }

/* ---- Eletroneuro ---- */
.en-kpi { padding: 8px 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.en-kpi b { display: block; font-size: 20px; font-weight: 900; color: var(--c); letter-spacing: -.03em; line-height: 1.1; }
.en-kpi p { font-size: 8px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.en-kpi small { font-size: 8.5px; color: var(--tx2); }
.en-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 10px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.en-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.en-col > p { display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 850; }
.en-col > p .mx-ic { width: 12px; height: 12px; color: var(--acc); }
.en-col > p span { margin-left: auto; padding: 0 6px; border-radius: 999px; background: var(--inset); font-size: 9px; color: var(--tx2); }
.en-kcard { display: flex; flex-direction: column; gap: 3px; padding: 7px 8px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--b); }
.en-kcard p { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.en-kcard p > b { font-size: 9.5px; }
.en-kcard small { font-size: 8.5px; color: var(--tx2); line-height: 1.3; }
.en-kcard .mx-muted { margin-left: auto; font-size: 8px; }
.en-date { padding: 0 5px; border-radius: 999px; background: var(--inset); font-size: 8px; font-weight: 700; color: var(--tx2); }
.en-payer { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 6px; font-size: 8.5px; font-weight: 700; white-space: nowrap; color: color-mix(in srgb, var(--c) 75%, #000); background: color-mix(in srgb, var(--c) 14%, #fff); }
.en-payer.sel { box-shadow: 0 0 0 2px var(--c); }
.en-kcard .mx-pill { font-size: 8px; padding: 1px 6px; margin-left: 4px; }
.en-stepper { display: flex; align-items: center; gap: 6px; }
.en-stepper span { padding: 4px 10px; border-radius: 999px; background: var(--inset); color: var(--tx2); font-size: 9.5px; font-weight: 800; }
.en-stepper span.on { background: var(--acc); color: #fff; }
.en-stepper i { width: 14px; height: 1.5px; background: var(--line2); }
.en-q { font-size: 12.5px; font-weight: 850; letter-spacing: -.02em; }
.en-pick { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 10px; border: 1px solid var(--line); background: var(--raised); font-size: 10px; }
.en-pick small { display: block; font-size: 8.5px; color: var(--tx2); }
.en-total { display: flex; justify-content: space-between; padding: 7px 9px; border-radius: 10px; background: #ecfefa; color: var(--acc); font-weight: 800; font-size: 10.5px; }
.en-table { padding: 6px 10px; }
.en-tr { display: grid; grid-template-columns: 16px .45fr 1.4fr .8fr 1fr 1.45fr .8fr 1fr; align-items: center; gap: 8px; padding: 6px 4px 6px 12px; border-bottom: 1px solid var(--line); font-size: 9.5px; box-shadow: inset 3px 0 0 var(--b, transparent); }
.en-tr:last-child { border-bottom: 0; }
.en-tr.th { font-size: 7.5px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; color: var(--tx2); }
.en-tr small { display: block; font-size: 8.5px; color: var(--tx2); }
.en-tr .mx-badge, .en-tr .en-payer { font-size: 8px; padding: 2px 5px; justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.en-act { justify-self: start; padding: 2px 7px; border-radius: 999px; background: #ecfefa; color: var(--acc); font-size: 8.5px; font-weight: 800; }
.en-table.rep .en-tr { grid-template-columns: 1.2fr .8fr .6fr 1fr .9fr 1.4fr; }
.en-chip { padding: 4px 10px; border-radius: 999px; background: #ecfefa; color: var(--acc); font-size: 9.5px; font-weight: 750; box-shadow: inset 0 0 0 1px rgba(13, 148, 136, .3); }
.en-bulk { position: absolute; left: 50%; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 9px; padding: 8px 10px 8px 14px; margin-left: 40px; transform: translateX(-50%); border-radius: 12px; background: #0f172a; color: #fff; font-size: 10px; box-shadow: 0 16px 34px rgba(15, 23, 42, .35); white-space: nowrap; }
.en-bulk > span:not(.mx-btn) { color: #94a3b8; }
.en-bulk.fx-in { animation-name: enBulk; }
@keyframes enBulk { from { opacity: 0; transform: translate(-50%, 14px); } to { transform: translate(-50%, 0); } }
.en-data { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-content: start; font-size: 9.5px; }
.en-data small { color: var(--tx2); }
.en-flow { display: flex; flex-direction: column; gap: 10px; border: 1.5px solid #fcd34d; }
.en-flow > span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 10px; }
.en-flow > span > .mx-ic, .en-flow > span > i { width: 16px; height: 16px; flex: 0 0 auto; border-radius: 50%; }
.en-flow .done > .mx-ic { padding: 3px; background: #059669; color: #fff; stroke-width: 3; }
.en-flow .cur > i { background: #0284c7; box-shadow: 0 0 0 3px rgba(2, 132, 199, .2); }
.en-flow .next > i { box-shadow: inset 0 0 0 1.5px var(--line2); border: 1px dashed transparent; }
.en-flow > span > b { flex: 1 0 70%; }
.en-flow > span > .swap:not(.en-ico), .en-flow > span > .mx-btn { margin-left: 24px; }
.en-ico { width: 16px; height: 16px; flex: 0 0 auto; }
.en-ico > i { width: 16px; height: 16px; border-radius: 50%; background: #0284c7; box-shadow: 0 0 0 3px rgba(2, 132, 199, .2); }
.en-ico > .mx-ic { width: 16px; height: 16px; padding: 3px; border-radius: 50%; background: #059669; color: #fff; stroke-width: 3; }
.en-next { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 14px; background: #fff7ed; border: 1px solid #fed7aa; font-size: 10.5px; }
.en-tl { display: flex; flex-direction: column; gap: 8px; }
.en-tl > span { position: relative; display: flex; flex-direction: column; padding-left: 20px; font-size: 9.5px; }
.en-tl > span i { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--inset); font-style: normal; font-size: 7.5px; font-weight: 800; color: var(--tx2); }
.en-tl small { font-size: 8px; color: var(--tx2); }
.en-tl b { font-size: 9px; color: var(--acc); }
.en-pay { cursor: default; }

/* ---- Ajustes de encaixe na largura mínima (860px) ---- */
.mx-tbl > span { white-space: nowrap; }
.mx-field { text-overflow: ellipsis; }
.nc-kcard p:first-child { flex-wrap: wrap; }
.nc-kcard p:first-child > span { margin-left: auto; white-space: nowrap; }
.nc-exam > span { flex-wrap: wrap; }
.nc-att .mx-label.caps { letter-spacing: .06em; }
.en-kcard p > b { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.en-date { flex: 0 0 auto; white-space: nowrap; }
.en-tr > span { min-width: 0; }
.en-act { white-space: nowrap; }

/* ---- Responsivo: a janela inteira escala como uma captura de tela ---- */
@media (prefers-reduced-motion: reduce) {
  .mx-cursor { display: none; }
}
