/* AXYS V140 · Custo por aquisição (CPA pago e CPA por After Pay) e ajustes de janelas. */
.axys-v140-cpa { padding: clamp(16px, 2.2vw, 22px); display: grid; gap: 14px; margin-top: 14px; }
.axys-v140-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.axys-v140-head h3 { margin: 0; font-size: 14px; font-weight: 700; color: #fff; letter-spacing: .01em; }
.axys-v140-switch { display: inline-flex; padding: 3px; gap: 3px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); }
.axys-v140-switch button { height: 30px; padding: 0 12px; border-radius: 9px; border: 0; background: transparent; color: #9aa7bd; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.axys-v140-switch button.is-on { background: rgba(110, 160, 255, .16); color: #fff; }
.axys-v140-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.axys-v140-tile { min-width: 0; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .06); display: grid; gap: 4px; align-content: start; }
.axys-v140-k { font-size: 11.5px; color: #9aa7bd; font-weight: 600; }
.axys-v140-v { font-size: clamp(18px, 1.6vw, 22px); color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.axys-v140-d { font-style: normal; font-size: 11.5px; font-weight: 700; }
.axys-v140-d.is-good { color: #6fe3b0; } .axys-v140-d.is-bad { color: #ff9aa6; }
.axys-v140-s { font-size: 11.5px; color: #7f8ba3; line-height: 1.45; }
.axys-v140-foot { margin: 0; font-size: 11.5px; color: #7f8ba3; line-height: 1.5; }
@media (max-width: 1100px) { .axys-v140-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .axys-v140-grid { grid-template-columns: 1fr; } .axys-v140-switch { width: 100%; } .axys-v140-switch button { flex: 1; } }
html.light .axys-v140-head h3, html.light .axys-v140-v { color: #0f172a; }

/* V140 · janelas de configuração (V79) com respiro em cima e embaixo; botão fechar dentro da janela. */
dialog.v79-dialog > div { padding: 24px clamp(18px, 3vw, 28px) 22px !important; box-sizing: border-box; }
dialog.v79-dialog > div > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin: 0 0 14px; }
dialog.v79-dialog > div > header > div { min-width: 0; }
dialog.v79-dialog .v79-close { position: static !important; flex: none; width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 12px; margin: 0; }
dialog.v79-dialog .v79-close i { font-size: 15px; color: #c3cde0; }
dialog.v79-dialog .v79-note { margin-bottom: 0; }
dialog.v79-dialog { max-height: min(88vh, 900px); }
@media (max-width: 560px) { dialog.v79-dialog > div { padding: 18px 16px 16px !important; } }
dialog.v81-chip-editor-dialog { padding: 24px clamp(18px, 3vw, 28px) 22px !important; box-sizing: border-box; }
dialog.v81-chip-editor-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin: 0 0 16px; }
/* Corpo das janelas V130+ rola por dentro (o cabeçalho e o rodapé ficam fixos); nada é cortado em telas baixas. */
.ax30-box > .ax30-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
#v79-finance-dialog .v81-finance-nav { flex-wrap: wrap; overflow-x: visible; }
/* V140 · configurações pessoais e restrição do colaborador */
.ax140-hidden { display: none !important; }
.axys-v140-options { display: grid; gap: 8px; margin: 2px 0 14px; }
.axys-v140-option { text-align: left; display: grid; gap: 3px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); color: #e6ecf7; font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.axys-v140-option strong { font-size: 14px; } .axys-v140-option small { font-size: 12px; color: #95a3bb; }
.axys-v140-option:hover { background: rgba(255, 255, 255, .06); }
.axys-v140-option.is-on { border-color: rgba(110, 160, 255, .55); background: rgba(110, 160, 255, .1); box-shadow: 0 0 0 3px rgba(110, 160, 255, .12); }
html.axys-motion-reduced *, html.axys-motion-reduced *::before, html.axys-motion-reduced *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: 120ms !important; }
html.axys-motion-off *, html.axys-motion-off *::before, html.axys-motion-off *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* V140 · chamadas: anel azul suave proporcional à fala real, estados e menus */
.axc-tile { --axc-lvl: 0; transition: box-shadow .12s ease-out, outline-color .2s; }
.axc-tile.is-talk { animation: none !important; box-shadow: 0 0 0 calc(2px + var(--axc-lvl) * 3px) rgba(96, 156, 255, .75), 0 0 calc(10px + var(--axc-lvl) * 24px) rgba(96, 156, 255, .35) !important; }
.axc-tile.is-problem { outline: 2px solid rgba(255, 168, 76, .7); outline-offset: -2px; }
.axc-badges { position: absolute; right: 8px; top: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; background: rgba(5, 8, 14, .66); backdrop-filter: blur(6px); font-size: 11px; color: #dfe7f5; }
.axc-badges .is-off { color: #ff8f9c; } .axc-badges .is-local { color: #ffd27a; }
.axc-q { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.axc-q b { display: block; width: 3px; border-radius: 1px; background: rgba(255, 255, 255, .25); }
.axc-q b:nth-child(1) { height: 4px; } .axc-q b:nth-child(2) { height: 7px; } .axc-q b:nth-child(3) { height: 11px; }
.axc-q.is-good b { background: #5fe0a6; } .axc-q.is-fair b:nth-child(-n+2) { background: #ffd27a; } .axc-q.is-bad b:nth-child(1) { background: #ff8f9c; }
.axc-q.is-connecting b { animation: axcPulse 1s infinite alternate; } @keyframes axcPulse { to { background: rgba(255, 255, 255, .6); } }
.axc-tile-menu { position: absolute; left: 8px; top: 8px; width: 30px; height: 30px; border-radius: 10px; border: 0; background: rgba(5, 8, 14, .6); color: #dfe7f5; cursor: pointer; opacity: 0; transition: opacity .15s; display: grid; place-items: center; }
.axc-tile:hover .axc-tile-menu, .axc-tile-menu:focus-visible { opacity: 1; }
@media (hover: none) { .axc-tile-menu { opacity: 1; } }
.axc-count { margin-left: 8px; font-size: 11.5px; color: #95a3bb; font-weight: 500; }
.axc-menu { position: fixed; z-index: 2147482500; width: 250px; display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: rgba(12, 16, 26, .97); border: 1px solid rgba(110, 160, 255, .18); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); color: #e6ecf7; font-size: 13px; }
.axc-menu.is-wide { width: 310px; }
.axc-menu small { color: #95a3bb; font-size: 11.5px; line-height: 1.45; }
.axc-range, .axc-select { display: grid; gap: 6px; font-size: 12px; color: #95a3bb; }
.axc-range { grid-template-columns: 1fr auto; } .axc-range span { grid-column: 1 / -1; } .axc-range output { color: #fff; font-variant-numeric: tabular-nums; }
.axc-range input { accent-color: #6ea0ff; }
.axc-select select { height: 36px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: #e6ecf7; padding: 0 10px; font: inherit; }
.axc-menu-btn { height: 36px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

/* ── V140 · Escritório 3D ── */
.axo-stage.is-3d { background: #0b0f19; touch-action: none; }
.axo-stage.is-3d .axo-canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.axo-stage.is-3d .axo-canvas:active { cursor: grabbing; }
.axo-tag { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; pointer-events: none; will-change: transform; z-index: 2; }
.axo-tag-n { font: 700 12px/1 Inter, system-ui, sans-serif; color: #fff; background: rgba(10,14,24,.84); padding: 5px 9px; border-radius: 999px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.axo-tag.is-me .axo-tag-n { background: rgba(59,111,209,.94); }
.axo-tag-st { font: 600 10.5px/1 Inter, system-ui, sans-serif; color: #1c1408; background: rgba(245,158,11,.96); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.axo-tag-st.is-call { background: rgba(22,163,74,.94); color: #fff; }
.axo-tag-b { order: -1; max-width: 240px; font: 500 12px/1.3 Inter, system-ui, sans-serif; color: #0b1220; background: #fff; padding: 6px 11px; border-radius: 12px; position: relative; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 4px; }
.axo-tag-b::after { content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; }
.axo-tag [hidden] { display: none !important; }
.axo-cam { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; z-index: 3; background: rgba(10,14,24,.6); padding: 6px; border-radius: 12px; backdrop-filter: blur(6px); }
.axo-cam-b { width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: #e5ecf7; cursor: pointer; display: grid; place-items: center; }
.axo-cam-b:hover { background: rgba(79,140,255,.3); }
.axo-3dwarn { position: absolute; left: 12px; top: 12px; right: 12px; z-index: 3; margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(245,158,11,.95); color: #1c1408; font: 600 12.5px/1.4 Inter, system-ui, sans-serif; }
.axo-station-list, .axo-calls { display: flex; flex-direction: column; gap: 8px; }
.axo-station-row, .axo-call-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.axo-station-row strong { min-width: 120px; }
.axo-call-row strong { flex: 1; }
.axo-mini { display: flex; flex-direction: column; gap: 2px; font-size: 11px; opacity: .85; }
.axo-mini input { width: 130px; }
@media (max-width: 640px) { .axo-cam { right: 6px; bottom: 6px; } .axo-cam-b { width: 30px; height: 30px; } }
