:root {
  --blue-900: #084a8f; --blue-800: #0a5cb0; --blue-700: #0a5cb0; --blue-600: #0b66c3; --blue-500: #0b66c3;
  --blue-400: #3d8fe0; --blue-300: #9cc7f2; --blue-100: #e1eefb; --blue-50: #f2f8fe;
  --accent: #19d3c5; --ok: #12b76a; --warn: #f79009; --danger: #f04438;
  --bg: #f5f8fc; --card: #ffffff; --text: #14233d; --muted: #6b7a99; --line: #e3eaf3;
  --shadow: 0 1px 2px rgba(7,59,120,.06), 0 8px 24px -8px rgba(7,59,120,.14);
  --shadow-lg: 0 24px 60px -12px rgba(6,54,95,.35);
  --grad: linear-gradient(135deg, #0a5cb0 0%, #0b66c3 55%, #0b66c3 100%);
  --radius: 16px;
  --sb: 248px;
  color-scheme: light;
}
@media not all {
  :root:not([data-theme="light"]) {
    --bg: #070f24; --card: #0f1b3d; --text: #e8eeff; --muted: #8fa0c4; --line: #1b2b57; --blue-50: #0c1a3d; --blue-100: #14285a;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -8px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body { font: 15px/1.45 "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
#app { height: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- login (premium, centralizado, sempre escuro) ---------- */
.auth2 { position: relative; min-height: 100%; display: grid; place-items: center; padding: 28px 18px; overflow: hidden; color: #eaf1ff;
  background: radial-gradient(1200px 700px at 15% -10%, #0b66c3 0%, transparent 60%), radial-gradient(900px 600px at 100% 110%, #0b6f86 0%, transparent 55%), linear-gradient(160deg, #084a8f 0%, #084a8f 55%, #0a5cb0 100%); }
.auth2::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%); pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; pointer-events: none; }
.aurora i:nth-child(1) { width: 420px; height: 420px; background: #0b66c3; left: -120px; top: -100px; }
.aurora i:nth-child(2) { width: 360px; height: 360px; background: #19d3c5; right: -100px; bottom: -80px; animation-delay: -6s; opacity: .38; }
.aurora i:nth-child(3) { width: 280px; height: 280px; background: #7a5cff; left: 55%; top: 8%; animation-delay: -11s; opacity: .3; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.15); } }
.login-wrap { position: relative; z-index: 1; width: 100%; max-width: 440px; display: grid; gap: 26px; justify-items: center; animation: rise .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.lg-brand { display: grid; justify-items: center; gap: 10px; text-align: center; }
.lg-logo { width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(145deg, #2f86dc, #0a5cb0); box-shadow: 0 18px 40px -10px rgba(11,102,195,.75), inset 0 1px 0 rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.22); }
.lg-logo svg.i { width: 32px; height: 32px; stroke-width: 1.7; color: #fff; }
.lg-brand b { font-size: 22px; letter-spacing: .3px; }
.lg-brand small { color: #9db6e8; letter-spacing: 3px; text-transform: uppercase; font-size: 11px; font-weight: 600; }
.lg-card { width: 100%; padding: 34px 32px 30px; border-radius: 28px; background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(26px) saturate(150%); backdrop-filter: blur(26px) saturate(150%); box-shadow: 0 40px 90px -20px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.22); }
.lg-card h2 { font-size: 26px; letter-spacing: -.4px; margin-bottom: 6px; }
.lg-card .sub { color: #a9bddf; margin-bottom: 24px; font-size: 14.5px; }
.lg-card .fld { display: grid; gap: 7px; margin-bottom: 16px; }
.lg-card .fld > label { font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #8fa8d8; }
.lg-card .inp { position: relative; }
.lg-card .inp > svg.i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: #7f9bd4; pointer-events: none; transition: color .15s; }
.lg-card .inp input { width: 100%; padding: 14px 16px 14px 46px; border-radius: 15px; border: 1.5px solid rgba(255,255,255,.14); background: rgba(5,43,85,.5); color: #fff; outline: none; font-size: 15.5px; transition: border-color .18s, box-shadow .18s, background .18s; }
.lg-card .inp input::placeholder { color: #6b84b8; }
.lg-card .inp input:focus { border-color: #3d8fe0; background: rgba(5,43,85,.7); box-shadow: 0 0 0 4px rgba(61,143,224,.22), 0 0 28px -4px rgba(61,143,224,.5); }
.lg-card .inp:focus-within > svg.i { color: #9cc7f2; }
.lg-card .inp input:disabled { opacity: .75; }
.lg-card .inp input:-webkit-autofill { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 1000px #0a5cb0 inset; caret-color: #fff; }
.lg-card .eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #8fa8d8; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }
.lg-card .eye:hover { background: rgba(255,255,255,.1); color: #fff; }
.lg-card .inp.has-eye input { padding-right: 52px; }
.lg-card .trocar { justify-self: start; color: #9cc7f2; font-size: 13px; text-decoration: none; }
.lg-card .trocar:hover { text-decoration: underline; }
.lg-card .err { color: #ff9b94; background: rgba(240,68,56,.12); border: 1px solid rgba(240,68,56,.3); padding: 9px 12px; border-radius: 12px; font-size: 13.5px; margin-bottom: 14px; }
.lg-card .err:empty { display: none; }
.lg-card .okmsg { color: #7ff0bd; background: rgba(18,183,106,.12); border: 1px solid rgba(18,183,106,.3); padding: 9px 12px; border-radius: 12px; font-size: 13.5px; margin-bottom: 14px; }
.lg-btn { position: relative; width: 100%; padding: 15px 18px; border: 0; border-radius: 16px; font-weight: 700; font-size: 16px; color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden;
  background: linear-gradient(135deg, #0b66c3 0%, #3d8fe0 50%, #19d3c5 140%); box-shadow: 0 16px 34px -12px rgba(11,102,195,.9), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .12s, filter .15s, box-shadow .15s; }
.lg-btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent); transform: skewX(-20deg); animation: shine 3.6s ease-in-out infinite; }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.lg-btn:hover { filter: brightness(1.08); transform: translateY(-1px); } .lg-btn:active { transform: translateY(1px); }
.lg-btn[disabled] { opacity: .7; pointer-events: none; }
.lg-btn.loading::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.lg-btn svg.i { width: 18px; height: 18px; }
.lg-foot { display: flex; align-items: center; gap: 8px; color: #7f9bd4; font-size: 12.5px; text-align: center; }
.lg-foot svg.i { width: 15px; height: 15px; color: #19d3c5; }
.lg-links { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.lg-links:empty { display: none; }
.lg-links a { color: #9cc7f2; font-size: 13.5px; font-weight: 600; text-decoration: none; padding: 4px 2px; }
.lg-links a:hover { color: #fff; text-decoration: underline; }
.lg-links a.off { color: #6b84b8; pointer-events: none; text-decoration: none; }
.lg-links a:only-child { margin: 0 auto; }@media (max-width: 480px) { .lg-card { padding: 28px 22px 24px; border-radius: 24px; } .lg-card h2 { font-size: 23px; } .lg-logo { width: 60px; height: 60px; } }
@media (prefers-reduced-motion: reduce) { .aurora i, .lg-btn::after, .login-wrap { animation: none; } }
.auth-tabs { display: flex; gap: 6px; background: var(--blue-50); padding: 5px; border-radius: 12px; margin-bottom: 18px; }
.auth-tabs button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 9px; font-weight: 600; color: var(--muted); }
.auth-tabs button.on { background: var(--card); color: var(--blue-600); box-shadow: var(--shadow); }
/* ---------- campos / botoes ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); outline: none; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(11,102,195,.14); }
.field .hint { font-size: 12px; color: var(--muted); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 12px; font-weight: 600; background: var(--blue-100); color: var(--blue-600); transition: transform .08s, filter .15s, background .15s; }
.btn:hover { filter: brightness(.97); } .btn:active { transform: translateY(1px); }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(11,102,195,.7); }
.btn.danger { background: #fde8e6; color: var(--danger); }
.btn.ok { background: #d9f6e8; color: #067647; }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--text); }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.err { color: var(--danger); font-size: 13px; min-height: 18px; margin-bottom: 8px; }
.okmsg { color: #067647; font-size: 13px; margin-bottom: 8px; }

/* ---------- shell ---------- */
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; letter-spacing: .2px; }
.brand .logo { width: 44px; height: 44px; flex: none; border-radius: 13px; background: rgba(255,255,255,.16); display: grid; place-items: center; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.25); }

.shell { display: grid; grid-template-columns: var(--sb) 1fr; height: 100%; }
.sidebar { background: var(--grad); color: #fff; padding: 22px 14px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.sidebar .brand { padding: 4px 8px 22px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: rgba(255,255,255,.78); text-decoration: none; font-weight: 600; position: relative; }
.nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav a.on { background: rgba(255,255,255,.18); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.nav .badge { margin-left: auto; background: var(--danger); color: #fff; border-radius: 999px; font-size: 11px; padding: 2px 7px; min-width: 20px; text-align: center; }
.nav-sep { height: 1px; background: rgba(255,255,255,.15); margin: 10px 8px; }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; background: rgba(255,255,255,.1); border-radius: 14px; }
.avatar { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.22); display: grid; place-items: center; font-weight: 700; flex: none; }
.me .nm { font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .pf { font-size: 12px; opacity: .75; text-transform: capitalize; }
.me button { margin-left: auto; background: transparent; border: 0; color: #fff; opacity: .8; padding: 4px; }
.main { display: flex; flex-direction: column; min-width: 0; height: 100%; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 16px 28px; background: var(--card); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 20px; letter-spacing: -.2px; }
.topbar .sp { flex: 1; }
.content { flex: 1; overflow: auto; padding: 24px 28px; min-height: 0; }
.mobile-nav { display: none; }

/* ---------- cards / tabelas ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.card-h { padding: 16px 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-h h2 { font-size: 16px; }
.card-b { padding: 20px; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .search { flex: 1; min-width: 180px; max-width: 360px; position: relative; }
.toolbar .search input { width: 100%; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); outline: none; }
.toolbar .search input:focus { border-color: var(--blue-500); }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--blue-50); }
.tbl-wrap { overflow-x: auto; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--blue-100); color: var(--blue-600); }
.pill.ok { background: #d9f6e8; color: #067647; } .pill.warn { background: #fef0c7; color: #b54708; } .pill.danger { background: #fde8e6; color: #b42318; } .pill.mute { background: var(--line); color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }

/* ---------- kanban ---------- */
.board-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.daychip { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); font-weight: 600; position: relative; }
.daychip b { color: var(--blue-600); font-size: 18px; }
.pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 16px; width: 260px; font-weight: 400; }
.pop .ln { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); } .pop .ln:last-child { border: 0; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(270px, 1fr)); gap: 16px; align-items: start; min-height: calc(100% - 70px); }
.col { background: var(--blue-50); border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; max-height: calc(100vh - 210px); min-height: 220px; transition: box-shadow .15s, background .15s; }
.col.over { box-shadow: 0 0 0 3px var(--blue-400); background: var(--blue-100); }
.col-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; font-weight: 700; }
.col-h .cnt { margin-left: auto; background: var(--card); border-radius: 999px; padding: 1px 10px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); }
.col-b { padding: 4px 12px 14px; overflow-y: auto; display: grid; gap: 10px; align-content: start; }
.tk { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; box-shadow: var(--shadow); cursor: pointer; position: relative; transition: transform .12s, box-shadow .12s; }
.tk:hover { transform: translateY(-2px); }
.tk.dragging { opacity: .45; }
.tk .t1 { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.tk .t1 .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk .t2 { color: var(--muted); font-size: 13px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk .t3 { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.tk .unread { margin-left: auto; background: var(--danger); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; font-weight: 700; padding: 0 6px; }
.tk .mv { position: absolute; top: 8px; right: 8px; border: 0; background: transparent; color: var(--muted); padding: 2px; border-radius: 8px; }
.tk .mv:hover { background: var(--blue-100); }
.tk.blink { animation: blink 1s ease-in-out infinite; border-color: var(--danger); }
@keyframes blink { 0%,100% { box-shadow: 0 0 0 0 rgba(240,68,56,.0), var(--shadow); background: var(--card); } 50% { box-shadow: 0 0 0 5px rgba(240,68,56,.35), var(--shadow); background: #fff1f0; } }
@media not all { @keyframes blink { 0%,100% { background: var(--card); } 50% { background: #3a1620; box-shadow: 0 0 0 5px rgba(240,68,56,.4); } } }
.bell-on { animation: ring 1s ease-in-out infinite; color: var(--danger); }
@keyframes ring { 0%,100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } }
.menu { position: fixed; z-index: 60; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 190px; }
.menu button { display: flex; width: 100%; gap: 10px; align-items: center; border: 0; background: transparent; padding: 9px 12px; border-radius: 10px; text-align: left; }
.menu button:hover { background: var(--blue-50); }

/* ---------- chat ---------- */
.chat-ov { position: fixed; inset: 0; background: rgba(6,54,95,.45); backdrop-filter: blur(3px); z-index: 40; display: flex; justify-content: flex-end; }
.chat { width: min(560px, 100%); background: var(--bg); height: 100%; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slidein .2s ease-out; }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.chat-h { background: var(--grad); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.chat-h .who { min-width: 0; flex: 1; }
.chat-h .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-h .who small { opacity: .8; }
.iconbtn { border: 0; background: rgba(255,255,255,.16); color: #fff; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; }
.iconbtn:hover { background: rgba(255,255,255,.28); }
.chat-acts { display: flex; gap: 8px; padding: 10px 14px; background: var(--card); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.msgs { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; background: radial-gradient(circle at 20% 0%, var(--blue-100), transparent 55%), var(--bg); }
.msg { max-width: 82%; padding: 9px 12px 7px; border-radius: 16px; box-shadow: var(--shadow); word-wrap: break-word; overflow-wrap: anywhere; white-space: pre-wrap; }
.msg.in { background: var(--card); align-self: flex-start; border-bottom-left-radius: 5px; }
.msg.out { background: var(--grad); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.msg .by { font-size: 12px; font-weight: 700; opacity: .85; margin-bottom: 2px; }
.msg .tm { font-size: 11px; opacity: .65; text-align: right; margin-top: 3px; display: flex; gap: 6px; justify-content: flex-end; }
.msg.sys { align-self: center; background: transparent; box-shadow: none; color: var(--muted); font-size: 12.5px; text-align: center; max-width: 90%; }
.msg.fail .tm { color: #ffd0cc; opacity: 1; }
.msg audio { max-width: 100%; height: 38px; }
.msg img { max-width: 100%; border-radius: 10px; display: block; }
.composer { background: var(--card); border-top: 1px solid var(--line); padding: 12px; display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; resize: none; max-height: 120px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); outline: none; }
.composer textarea:focus { border-color: var(--blue-500); }
.composer .btn { height: 44px; width: 44px; padding: 0; border-radius: 14px; }
.rec { background: #fde8e6 !important; color: var(--danger) !important; animation: blink 1s infinite; }
.reclabel { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--danger); font-weight: 600; padding: 0 8px; }
.locked { padding: 14px; text-align: center; color: var(--muted); background: var(--card); border-top: 1px solid var(--line); }

/* ---------- modal / toast ---------- */
.modal-ov { position: fixed; inset: 0; background: rgba(6,54,95,.5); backdrop-filter: blur(3px); z-index: 70; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--card); border-radius: 20px; box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; animation: pop .16s ease-out; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-h { padding: 18px 22px 0; display: flex; align-items: center; } .modal-h h3 { font-size: 18px; flex: 1; }
.modal-b { padding: 18px 22px; } .modal-f { padding: 0 22px 20px; display: flex; gap: 10px; justify-content: flex-end; }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 10px; }
.toast { background: var(--blue-900); color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); max-width: 340px; animation: pop .18s; }
.toast.err { background: #b42318; } .toast.ok { background: #067647; }
/* aviso no topo (cliente respondeu numa conversa em atendimento): centralizado, desce, some sozinho */
.toasts-topo { position: fixed; top: calc(14px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 95; display: grid; gap: 8px; justify-items: center; width: max-content; max-width: min(92vw, 480px); pointer-events: none; }
.toast.topo { pointer-events: auto; cursor: pointer; max-width: none; text-align: center; font-weight: 600; box-shadow: 0 14px 34px -10px rgba(8,74,143,.6); animation: descer .4s cubic-bezier(.2,.9,.3,1.15); transition: opacity .3s, transform .3s; }
.toast.topo.sai { opacity: 0; transform: translateY(-24px); }
@keyframes descer { from { transform: translateY(-140%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { padding: 20px; position: relative; overflow: hidden; }
.kpi .lb { color: var(--muted); font-weight: 600; font-size: 13px; }
.kpi .vl { font-size: 36px; font-weight: 800; letter-spacing: -1px; margin-top: 6px; }
.kpi .ic { position: absolute; right: 16px; top: 16px; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-600); }
.kpi.g .ic { background: #d9f6e8; color: #067647; } .kpi.r .ic { background: #fde8e6; color: #b42318; } .kpi.o .ic { background: #fef0c7; color: #b54708; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.seg { display: inline-flex; background: var(--blue-50); border: 1px solid var(--line); padding: 4px; border-radius: 12px; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--blue-600); box-shadow: var(--shadow); }
.bar { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; } .bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.hours { display: flex; align-items: flex-end; gap: 4px; height: 140px; }
.hours div { flex: 1; background: var(--grad); border-radius: 6px 6px 2px 2px; min-height: 3px; position: relative; }
.hours span { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--muted); }
.donut { --a: 0; width: 150px; height: 150px; border-radius: 50%; background: conic-gradient(var(--ok) calc(var(--a) * 1%), #fda29b 0); display: grid; place-items: center; margin: 0 auto; }
.donut div { width: 104px; height: 104px; border-radius: 50%; background: var(--card); display: grid; place-items: center; text-align: center; font-size: 22px; font-weight: 800; line-height: 1.1; }
.donut small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .sidebar { display: none; }
  .mobile-nav { display: flex; background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); overflow-x: auto; }
  .mobile-nav a { flex: 1; min-width: 64px; display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 6px 4px; border-radius: 12px; position: relative; }
  .mobile-nav a.on { color: var(--blue-600); background: var(--blue-100); }
  .mobile-nav .badge { position: absolute; top: 0; right: 12px; background: var(--danger); color: #fff; border-radius: 99px; font-size: 10px; padding: 1px 6px; }
  .topbar { padding: 12px 16px; } .content { padding: 16px; }
  .kanban { grid-template-columns: repeat(4, 86vw); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 -16px; padding-inline: 16px; }
  .col { scroll-snap-align: center; max-height: calc(100vh - 260px); }
  .grid2 { grid-template-columns: 1fr; } .row { grid-template-columns: 1fr; }
  .chat-ov { justify-content: stretch; }
  .toasts { left: 12px; right: 12px; bottom: 76px; }
}

/* ---------- radar de clientes (sala de controle) ---------- */
.radar { --ok: #35d6a1; --warn: #ffb020; --crit: #ff5d5d; --azul: #3d8fe0; position: relative; color: #eaf1ff; border-radius: 26px; padding: 22px; min-height: calc(100vh - 150px);
  background: radial-gradient(900px 500px at 0% 0%, rgba(11,102,195,.28), transparent 60%), radial-gradient(800px 500px at 100% 100%, rgba(25,211,197,.16), transparent 55%), linear-gradient(165deg, #084a8f 0%, #0b66c3 60%, #1c7ad6 100%);
  box-shadow: 0 30px 70px -28px rgba(5,42,82,.8), inset 0 1px 0 rgba(255,255,255,.08); overflow: hidden; }
.radar::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 75%); pointer-events: none; }
.radar > * { position: relative; }
.radar:fullscreen { border-radius: 0; padding: 30px 34px; overflow: auto; }
.rd-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.rd-title { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.rd-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(145deg, #2f86dc, #0a5cb0); box-shadow: 0 12px 28px -10px rgba(11,102,195,.9), inset 0 1px 0 rgba(255,255,255,.3); }
.rd-ico svg.i { width: 28px; height: 28px; color: #fff; }
.rd-title h2 { font-size: 22px; letter-spacing: -.3px; } .rd-title small { color: #8fa8d8; }
.rd-live { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px; background: rgba(53,214,161,.12); border: 1px solid rgba(53,214,161,.35); color: #7ff0cc; font-weight: 800; letter-spacing: 1.5px; font-size: 12px; }
.rd-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(53,214,161,.7); animation: rdping 1.6s infinite; }
.rd-live small { font-weight: 600; letter-spacing: .3px; color: #a9c4ee; font-variant-numeric: tabular-nums; }
.rd-live.off { background: rgba(255,93,93,.12); border-color: rgba(255,93,93,.4); color: #ff9b94; } .rd-live.off i { background: var(--crit); animation: none; }
@keyframes rdping { 70% { box-shadow: 0 0 0 9px rgba(53,214,161,0); } 100% { box-shadow: 0 0 0 0 rgba(53,214,161,0); } }
.rd-tools { display: flex; gap: 10px; }
.rd-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: #dbe7ff; font-weight: 600; transition: background .15s; }
.rd-btn:hover { background: rgba(255,255,255,.14); } .rd-btn.off { color: #ff9b94; border-color: rgba(255,93,93,.4); }
.rd-btn svg.i { width: 18px; height: 18px; }
.rd-aviso { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 14px; margin-bottom: 16px; background: rgba(255,176,32,.14); border: 1px solid rgba(255,176,32,.45); color: #ffd58a; font-weight: 600; animation: rdblink 1.4s ease-in-out infinite; }
@keyframes rdblink { 50% { background: rgba(255,176,32,.28); } }
.rd-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 18px; }
.rd-kpi { padding: 16px 18px; border-radius: 18px; background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); }
.rd-kpi span { display: block; color: #8fa8d8; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.rd-kpi b { display: block; margin-top: 6px; font-size: 34px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.rd-kpi.k1 b { color: var(--warn); } .rd-kpi.k2 b { color: var(--azul); } .rd-kpi.k3 b { color: var(--ok); }
.rd-kpi b.ok { color: var(--ok); } .rd-kpi b.warn { color: var(--warn); } .rd-kpi b.crit { color: var(--crit); }
.rd-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.rd-col { border-radius: 22px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); padding: 16px 14px 14px; display: flex; flex-direction: column; min-height: 320px; }
.rd-col h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; letter-spacing: .2px; padding: 0 4px 12px; }
.rd-col h3 b { margin-left: auto; min-width: 34px; text-align: center; padding: 3px 11px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 15px; font-variant-numeric: tabular-nums; }
.rd-col .dot { width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 12px currentColor; }
.rd-col.fila .dot { background: var(--warn); color: var(--warn); } .rd-col.atend .dot { background: var(--azul); color: var(--azul); } .rd-col.feito .dot { background: var(--ok); color: var(--ok); }
.rd-col.fila.has { border-color: rgba(255,176,32,.55); animation: rdglow 2s ease-in-out infinite; }
@keyframes rdglow { 50% { box-shadow: 0 0 0 4px rgba(255,176,32,.15), 0 0 40px -6px rgba(255,176,32,.45); } }
.rd-list { display: grid; gap: 10px; align-content: start; overflow-y: auto; max-height: calc(100vh - 400px); padding: 2px 2px 4px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.radar:fullscreen .rd-list { max-height: calc(100vh - 300px); }
.rd-card { position: relative; padding: 13px 14px 12px 16px; border-radius: 16px; background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.1); overflow: hidden; animation: rdin .35s ease-out both; }
.rd-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--lv, var(--azul)); }
.rd-card.ok { --lv: var(--ok); } .rd-card.warn { --lv: var(--warn); } .rd-card.crit { --lv: var(--crit); } .rd-card.azul { --lv: var(--azul); } .rd-card.verde { --lv: var(--ok); }
.rd-card.crit { animation: rdin .35s ease-out both, rdcrit 1.2s ease-in-out .35s infinite; }
@keyframes rdin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rdcrit { 50% { box-shadow: 0 0 0 2px rgba(255,93,93,.55), 0 0 28px -4px rgba(255,93,93,.6); background: linear-gradient(160deg, rgba(255,93,93,.22), rgba(255,255,255,.05)); } }
.rd-card.click { cursor: pointer; } .rd-card.click:hover { border-color: rgba(255,255,255,.35); transform: translateY(-1px); }
.rd-top { display: flex; align-items: center; gap: 11px; }
.rd-av { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(61,143,224,.25); color: #cfe0ff; font-weight: 800; font-size: 12px; }
.rd-nm { min-width: 0; flex: 1; } .rd-nm b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rd-nm small { color: #8fa8d8; }
.rd-timer { font-size: 28px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; font-family: "Cascadia Mono", Consolas, "Segoe UI", monospace; color: var(--lv); text-shadow: 0 0 18px color-mix(in srgb, var(--lv) 55%, transparent); }
.rd-timer.sm { font-size: 20px; }
.rd-done { display: flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 800; } .rd-done svg.i { width: 18px; height: 18px; }
.rd-prev { margin-top: 9px; padding: 8px 11px; border-radius: 11px; background: rgba(5,42,82,.45); color: #b8cdf3; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: #a9c4ee; }
.rd-who { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: #dbe7ff; } .rd-who .rd-av { width: 24px; height: 24px; border-radius: 8px; font-size: 10px; }
.rd-sec { padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 11.5px; background: color-mix(in srgb, var(--c) 22%, transparent); color: color-mix(in srgb, var(--c) 55%, #fff); }
.rd-un { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; background: var(--crit); color: #fff; font-weight: 800; font-size: 12px; }
.rd-ago { margin-left: auto; }
.rd-bar { height: 5px; margin-top: 11px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.rd-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--lv); transition: width 1s linear; }
.rd-empty { display: grid; justify-items: center; gap: 10px; padding: 38px 12px; color: #7f9bd4; text-align: center; } .rd-empty svg.i { width: 30px; height: 30px; opacity: .7; }
@media (max-width: 1100px) { .rd-kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .radar { padding: 16px; border-radius: 20px; min-height: auto; }
  .rd-kpis { grid-template-columns: repeat(2, 1fr); }
  .rd-kpi b { font-size: 28px; }
  .rd-cols { grid-template-columns: repeat(3, 86vw); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 8px; }
  .rd-col { scroll-snap-align: center; }
  .rd-list { max-height: calc(100vh - 430px); }
  .rd-btn span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rd-live i, .rd-card.crit, .rd-col.fila.has, .rd-aviso { animation: none; } }
/* ---------- kanban premium (tela Atendimentos) ---------- */
.board-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.daychip { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); cursor: pointer;
  box-shadow: 0 1px 2px rgba(7,59,120,.06), 0 8px 18px -8px rgba(7,59,120,.2), 0 22px 40px -22px rgba(7,59,120,.3); transition: transform .15s, box-shadow .15s; }
.daychip:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(7,59,120,.07), 0 14px 26px -10px rgba(7,59,120,.28), 0 30px 52px -24px rgba(7,59,120,.36); }
.dc-ic { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #2f86dc, #0a5cb0); box-shadow: 0 10px 20px -8px rgba(11,102,195,.8), inset 0 1px 0 rgba(255,255,255,.35); }
.dc-ic svg.i { width: 24px; height: 24px; }
.dc-t { display: grid; line-height: 1.1; } .dc-t small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.dc-t b { font-size: 26px; font-weight: 800; letter-spacing: -.8px; color: var(--blue-600); font-variant-numeric: tabular-nums; }
.live-pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--card); border: 1px solid var(--line); box-shadow: 0 6px 14px -8px rgba(7,59,120,.25); }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(18,183,106,.6); animation: lvping 1.8s infinite; }
@keyframes lvping { 70% { box-shadow: 0 0 0 8px rgba(18,183,106,0); } 100% { box-shadow: 0 0 0 0 rgba(18,183,106,0); } }
.btn-new { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border: 0; border-radius: 16px; font-weight: 700; font-size: 15px; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #0b66c3 0%, #3d8fe0 60%, #19d3c5 150%); box-shadow: 0 14px 28px -10px rgba(11,102,195,.85), 0 2px 4px rgba(11,102,195,.25), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .12s, filter .15s, box-shadow .15s; }
.btn-new:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 20px 34px -12px rgba(11,102,195,.95), 0 2px 4px rgba(11,102,195,.3), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-new:active { transform: translateY(0); } .btn-new svg.i { width: 20px; height: 20px; stroke-width: 2.2; }

.kanban { gap: 22px; padding: 4px 4px 18px; }
.col { position: relative; border-radius: 24px; border: 1px solid var(--line); overflow: hidden; min-height: 260px; max-height: calc(100vh - 235px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 8%, var(--card)) 0%, var(--card) 42%);
  box-shadow: 0 1px 2px rgba(7,59,120,.05), 0 12px 26px -12px rgba(7,59,120,.2), 0 36px 64px -34px rgba(7,59,120,.34); transition: box-shadow .2s, transform .2s; }
.col::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--acc), color-mix(in srgb, var(--acc) 40%, #fff)); }
.col.over { transform: translateY(-3px); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 55%, transparent), 0 24px 48px -16px color-mix(in srgb, var(--acc) 55%, transparent); background: color-mix(in srgb, var(--acc) 12%, var(--card)); }
.col-h { gap: 12px; padding: 22px 18px 14px; font-weight: 700; }
.col-ic { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: var(--acc); background: color-mix(in srgb, var(--acc) 15%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 28%, transparent); }
.col-ic svg.i { width: 21px; height: 21px; }
.col-t { display: grid; line-height: 1.2; font-weight: 800; font-size: 15.5px; letter-spacing: -.1px; } .col-t small { font-weight: 500; font-size: 12px; color: var(--muted); }
.col-h .cnt { margin-left: auto; min-width: 36px; text-align: center; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--acc); background: color-mix(in srgb, var(--acc) 14%, var(--card)); border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent); font-variant-numeric: tabular-nums; }
.col-b { gap: 14px; padding: 6px 14px 18px; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--acc) 35%, transparent) transparent; }
.col-b { grid-auto-rows: max-content; }
.col-b > .tk { min-height: min-content; flex-shrink: 0; }
.col-empty { display: grid; justify-items: center; gap: 10px; padding: 34px 12px; border-radius: 18px; border: 1.5px dashed color-mix(in srgb, var(--acc) 30%, var(--line)); color: var(--muted); text-align: center; font-weight: 600; }
.col-empty svg.i { width: 28px; height: 28px; color: var(--acc); opacity: .55; }

.tk { padding: 15px 16px 14px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); overflow: hidden;
  box-shadow: 0 1px 2px rgba(7,59,120,.06), 0 6px 14px -4px rgba(7,59,120,.14), 0 16px 30px -14px rgba(7,59,120,.24); transition: transform .16s ease, box-shadow .16s ease, border-color .16s; }
.tk::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--acc), color-mix(in srgb, var(--acc) 45%, #fff)); }
.tk:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--acc) 40%, var(--line)); box-shadow: 0 2px 4px rgba(7,59,120,.07), 0 14px 26px -8px rgba(7,59,120,.22), 0 30px 50px -18px rgba(7,59,120,.34); }
.tk.dragging { opacity: .9; transform: rotate(2.5deg) scale(1.03); box-shadow: 0 30px 60px -12px rgba(7,59,120,.5); }
.tk .t1 { gap: 12px; }
.tk-av { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .3px;
  background: linear-gradient(135deg, hsl(var(--h) 82% 58%), hsl(calc(var(--h) + 38) 80% 42%)); box-shadow: 0 8px 16px -6px hsl(var(--h) 80% 40% / .65), inset 0 1px 0 rgba(255,255,255,.4); }
.tk-id { min-width: 0; display: grid; line-height: 1.25; padding-right: 22px; } .tk-id b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; } .tk-id small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk .t2 { margin-top: 11px; padding: 9px 12px; border-radius: 12px; background: color-mix(in srgb, var(--acc) 7%, var(--card)); border: 1px solid color-mix(in srgb, var(--acc) 12%, var(--line)); color: var(--text); font-size: 13.5px; white-space: normal; }
.tk .t2 span { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; line-height: 1.4; }
.tk .t3 { margin-top: 12px; gap: 8px; font-size: 12.5px; }
.tk-who, .tk-time { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-weight: 600; } .tk-who svg.i, .tk-time svg.i { width: 14px; height: 14px; }
.tk-who { padding: 2px 9px 2px 7px; border-radius: 999px; background: var(--blue-50); border: 1px solid var(--line); color: var(--text); }
.tk .unread { box-shadow: 0 0 0 3px rgba(240,68,56,.18), 0 6px 12px -4px rgba(240,68,56,.6); }
.tk .mv { top: 10px; right: 10px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; opacity: .7; transition: opacity .15s, background .15s; } .tk:hover .mv { opacity: 1; }
.tk.blink::before { background: var(--danger); }
@media (max-width: 900px) { .col { max-height: calc(100vh - 290px); } .kanban { gap: 14px; } .btn-new span { display: none; } .btn-new { padding: 13px 15px; } }
@media (prefers-reduced-motion: reduce) { .live-pill i { animation: none; } .tk, .col, .daychip { transition: none; } }
/* ---------- novo atendimento (janela de busca de cliente) ---------- */
.nv-l { font-size: 12px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.nv-search { position: relative; }
.nv-search > svg.i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--blue-500); pointer-events: none; }
.nv-search input { width: 100%; padding: 15px 46px 15px 48px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card); font-size: 16px; outline: none; box-shadow: 0 6px 16px -10px rgba(7,59,120,.25); transition: border-color .15s, box-shadow .15s; }
.nv-search input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(11,102,195,.16), 0 10px 22px -10px rgba(11,102,195,.35); }
.nv-search button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); display: grid; place-items: center; }
.nv-search button:hover { background: var(--blue-50); color: var(--text); } .nv-search button svg.i { width: 18px; height: 18px; }
.nv-res { margin-top: 10px; display: grid; gap: 8px; max-height: 300px; overflow-y: auto; padding: 2px 3px 4px 2px; }
.nv-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 15px; border: 1.5px solid var(--line); background: var(--card); transition: transform .12s, border-color .12s, box-shadow .12s, background .12s; }
.nv-item.on, .nv-item:hover:not([disabled]) { border-color: var(--blue-500); background: var(--blue-50); transform: translateX(2px); box-shadow: 0 8px 18px -10px rgba(11,102,195,.5); }
.nv-item[disabled] { opacity: .55; cursor: not-allowed; }
.nv-item .tk-av, .nv-sel .tk-av { width: 40px; height: 40px; border-radius: 13px; font-size: 13px; }
.nv-id { min-width: 0; flex: 1; display: grid; line-height: 1.3; } .nv-id b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .nv-id small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-tag { flex: none; }
.nv-item mark { background: rgba(247,144,9,.28); color: inherit; border-radius: 4px; padding: 0 1px; }
.nv-vazio { padding: 22px 12px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: 15px; }
.nv-novo { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; border: 1.5px dashed var(--blue-400); background: transparent; color: var(--blue-600); font-weight: 700; }
.nv-novo:hover { background: var(--blue-50); } .nv-novo svg.i { width: 17px; height: 17px; }
.nv-form { margin-top: 12px; padding: 14px; border-radius: 16px; background: var(--blue-50); border: 1px solid var(--line); display: grid; gap: 4px; }
.nv-form .field { margin-bottom: 8px; }
.nv-sel { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid #8ee0b8; background: color-mix(in srgb, #12b76a 9%, var(--card)); box-shadow: 0 10px 22px -14px rgba(18,183,106,.7); }
.nv-ok { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #12b76a; color: #fff; } .nv-ok svg.i { width: 16px; height: 16px; stroke-width: 2.6; }
.nv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nv-chip { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-radius: 12px; background: var(--blue-50); border: 1.5px solid var(--line); font-weight: 600; } .nv-chip svg.i { width: 18px; height: 18px; color: var(--blue-500); }
.nv-aviso { grid-column: 1 / -1; padding: 12px 14px; border-radius: 12px; background: #fef0c7; color: #93370d; font-weight: 600; }
@media (max-width: 600px) { .nv-row { grid-template-columns: 1fr; } .nv-tag { display: none; } }
/* ---------- permissoes (cadastro de atendente) ---------- */
.perm-box { display: grid; gap: 12px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--blue-50); }
.perm-box.travado { opacity: .7; }
.perm-g { display: grid; gap: 4px; }
.perm-g > b { font-size: 11.5px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; color: var(--blue-600); margin-bottom: 2px; }
.perm { display: flex; align-items: center; gap: 10px; padding: 8px 11px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); cursor: pointer; font-size: 14px; transition: border-color .12s, box-shadow .12s; }
.perm:hover { border-color: var(--blue-400); box-shadow: 0 6px 14px -10px rgba(11,102,195,.6); }
.perm input { width: 17px; height: 17px; accent-color: var(--blue-500); flex: none; }
.perm:has(input:checked) { border-color: color-mix(in srgb, var(--blue-500) 45%, var(--line)); background: color-mix(in srgb, var(--blue-500) 7%, var(--card)); }
.perm-ft { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.perm-ft .hint { flex: 1; min-width: 220px; }
/* ---------- dashboard premium ---------- */
.dsh { --ok: #12b76a; display: grid; gap: 22px; }
.dsh-hero { position: relative; border-radius: 26px; padding: 22px 24px 24px; color: #eaf1ff; overflow: hidden;
  background: radial-gradient(800px 380px at 0% 0%, rgba(11,102,195,.4), transparent 60%), radial-gradient(700px 400px at 100% 100%, rgba(25,211,197,.2), transparent 58%), linear-gradient(165deg, #084a8f 0%, #0b66c3 60%, #1c7ad6 100%);
  box-shadow: 0 30px 60px -28px rgba(5,42,82,.75), inset 0 1px 0 rgba(255,255,255,.08); }
.dsh-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 46px 46px; -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 75%); pointer-events: none; }
.dsh-hero > * { position: relative; }
.dsh-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.dsh-title { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.dsh-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(145deg, #2f86dc, #0a5cb0); box-shadow: 0 12px 28px -10px rgba(11,102,195,.9), inset 0 1px 0 rgba(255,255,255,.3); }
.dsh-ico svg.i { width: 28px; height: 28px; color: #fff; }
.dsh-title h2 { font-size: 22px; letter-spacing: -.3px; } .dsh-title small { color: #9db6e8; }
.dsh-live { display: flex; align-items: center; gap: 10px; color: #a9c4ee; font-size: 13px; font-variant-numeric: tabular-nums; }
.dsh-rf { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: #dbe7ff; }
.dsh-rf:hover { background: rgba(255,255,255,.15); } .dsh.loading .dsh-rf svg { animation: spin .8s linear infinite; }
.dsh-ctls { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: flex-end; }
.dsh-c { display: grid; gap: 7px; } .dsh-c > label { font-size: 11.5px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; color: #8fa8d8; }
.seg-d { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.seg-d button { border: 0; background: transparent; color: #b9cdf2; padding: 8px 13px; border-radius: 10px; font-weight: 600; transition: background .15s, color .15s; }
.seg-d button:hover { color: #fff; background: rgba(255,255,255,.08); }
.seg-d button.on { color: #fff; background: linear-gradient(135deg, #0b66c3, #3d8fe0); box-shadow: 0 8px 18px -8px rgba(11,102,195,.9), inset 0 1px 0 rgba(255,255,255,.3); }
.dsh-sel, .dsh-dates input { padding: 11px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: #fff; outline: none; font-weight: 600; min-width: 200px; color-scheme: dark; }
.dsh-sel:focus, .dsh-dates input:focus { border-color: #3d8fe0; box-shadow: 0 0 0 4px rgba(61,143,224,.25); }
.dsh-sel option { color: #0f1b3d; background: #fff; }
.dsh-dates { display: flex; align-items: center; gap: 8px; color: #9db6e8; } .dsh-dates input { min-width: 0; padding: 9px 12px; }
.dsh-bar { position: absolute !important; left: 0; right: 0; bottom: 0; height: 3px; overflow: hidden; opacity: 0; transition: opacity .2s; }
.dsh.loading .dsh-bar { opacity: 1; } .dsh-bar i { display: block; width: 35%; height: 100%; background: linear-gradient(90deg, transparent, #3d8fe0, #19d3c5, transparent); animation: dshbar 1.1s ease-in-out infinite; }
@keyframes dshbar { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.dsh-body { display: grid; gap: 22px; transition: opacity .2s; } .dsh.loading .dsh-body { opacity: .6; }

.dsh-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dsh-k { position: relative; padding: 20px 20px 16px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 1px 2px rgba(7,59,120,.05), 0 12px 26px -12px rgba(7,59,120,.2), 0 30px 54px -30px rgba(7,59,120,.3); transition: transform .16s, box-shadow .16s; }
.dsh-k:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(7,59,120,.07), 0 18px 34px -12px rgba(7,59,120,.28), 0 38px 60px -30px rgba(7,59,120,.36); }
.ki { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: #fff; margin-bottom: 14px; box-shadow: 0 10px 20px -8px var(--c, rgba(11,102,195,.8)), inset 0 1px 0 rgba(255,255,255,.35); }
.ki svg.i { width: 23px; height: 23px; }
.ki.b { background: linear-gradient(145deg, #3d8fe0, #0b66c3); --c: rgba(11,102,195,.8); } .ki.g { background: linear-gradient(145deg, #34d399, #0f9f64); --c: rgba(18,183,106,.8); }
.ki.r { background: linear-gradient(145deg, #fb7185, #d92d3a); --c: rgba(240,68,56,.7); } .ki.o { background: linear-gradient(145deg, #fbbf24, #e08a00); --c: rgba(247,144,9,.7); } .ki.p { background: linear-gradient(145deg, #a78bfa, #6d4ae0); --c: rgba(124,92,255,.7); }
.kl { color: var(--muted); font-weight: 700; font-size: 13px; }
.kv { font-size: 38px; font-weight: 800; letter-spacing: -1.4px; line-height: 1.1; margin: 4px 0 8px; font-variant-numeric: tabular-nums; } .kv.t { font-size: 30px; }
.dl { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.dl.up { background: #d9f6e8; color: #067647; } .dl.down { background: #fde8e6; color: #b42318; } .dl.flat { background: var(--blue-50); color: var(--muted); font-weight: 600; }
.spk { position: absolute; right: 16px; top: 18px; width: 110px; height: 38px; }
.dsh-row { display: grid; gap: 18px; } .dsh-row.r1 { grid-template-columns: 2fr 1fr; } .dsh-row.r3 { grid-template-columns: repeat(3, 1fr); }
.dsh-card { padding: 20px 22px 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); min-width: 0;
  box-shadow: 0 1px 2px rgba(7,59,120,.05), 0 12px 26px -12px rgba(7,59,120,.2), 0 30px 54px -30px rgba(7,59,120,.3); }
.dsh-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.dsh-card h3 { font-size: 16px; letter-spacing: -.2px; } .dsh-card header small { color: var(--muted); }
.lg { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); font-weight: 600; } .lg i, .dlg i, .stt i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.chart { width: 100%; height: auto; display: block; } .chart .gl { stroke: var(--line); stroke-dasharray: 3 4; } .chart .ax { fill: var(--muted); font-size: 11px; font-weight: 600; } .chart .cb { transition: opacity .15s; } .chart .cb:hover { opacity: .75; }
.donut2 { --a: 0; width: 170px; height: 170px; border-radius: 50%; margin: 6px auto 16px; display: grid; place-items: center; background: conic-gradient(from 0deg, #12b76a calc(var(--a) * 1%), #fda29b 0); box-shadow: 0 16px 32px -14px rgba(18,183,106,.5); }
.donut2 > div { width: 124px; height: 124px; border-radius: 50%; background: var(--card); display: grid; place-content: center; text-align: center; } .donut2 b { font-size: 34px; letter-spacing: -1px; line-height: 1; } .donut2 small { color: var(--muted); font-weight: 600; }
.dlg { display: grid; gap: 8px; font-size: 13.5px; } .dlg span { display: flex; align-items: center; justify-content: space-between; } 
.stl { display: grid; gap: 15px; } .stt { display: flex; justify-content: space-between; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.bar2 { height: 10px; border-radius: 99px; background: var(--blue-50); border: 1px solid var(--line); overflow: hidden; } .bar2 i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #0b66c3, #3d8fe0); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.hrs { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-bottom: 18px; }
.hrs > div { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; } .hrs i { display: block; width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #3d8fe0, #0b66c3); opacity: .55; }
.hrs .pico i { opacity: 1; background: linear-gradient(180deg, #fbbf24, #f79009); box-shadow: 0 8px 16px -6px rgba(247,144,9,.7); }
.hrs span { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--muted); }
.dsh-note { margin-top: 6px; color: var(--muted); font-size: 13px; }
.rk { display: grid; gap: 12px; }
.rk-i { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--card), var(--blue-50)); flex-wrap: wrap; transition: transform .14s, box-shadow .14s; }
.rk-i:hover { transform: translateX(3px); box-shadow: 0 12px 24px -14px rgba(7,59,120,.35); }
.rk-pos { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-600); font-weight: 800; font-size: 13px; flex: none; }
.rk-i:first-child .rk-pos { background: linear-gradient(145deg, #fbbf24, #e08a00); color: #fff; box-shadow: 0 8px 16px -6px rgba(247,144,9,.8); }
.rk-av { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, #2f86dc, #0a5cb0); flex: none; }
.rk-main { flex: 1; min-width: 200px; } .rk-nm { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; flex-wrap: wrap; } .rk-nm span { color: var(--muted); font-size: 12.5px; }
.rk-ch { display: flex; gap: 7px; flex-wrap: wrap; } .ch { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--blue-50); border: 1px solid var(--line); color: var(--text); }
.ch.g { background: #d9f6e8; border-color: transparent; color: #067647; } .ch.b { background: var(--blue-100); border-color: transparent; color: var(--blue-600); } .ch.r { background: #fde8e6; border-color: transparent; color: #b42318; }
@media (max-width: 1100px) { .dsh-kpis { grid-template-columns: repeat(2, 1fr); } .dsh-row.r1, .dsh-row.r3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .dsh-kpis { grid-template-columns: 1fr 1fr; gap: 12px; } .kv { font-size: 30px; } .kv.t { font-size: 24px; } .spk { display: none; } .dsh-hero { padding: 18px; border-radius: 22px; } .dsh-sel { min-width: 0; width: 100%; } .dsh-c { width: 100%; } .seg-d { width: 100%; } .seg-d button { flex: 1; padding: 8px 6px; font-size: 13px; } .rk-ch { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .dsh-k, .rk-i, .bar2 i { transition: none; } .dsh.loading .dsh-rf svg, .dsh-bar i { animation: none; } }

/* ---------- caixa de atendimentos (substitui o kanban) ---------- */
.ib { display: grid; gap: 20px; max-width: 1280px; margin: 0 auto; }
.ib-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ib-sp { flex: 1; }
.ib-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ib-stat { position: relative; display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; border-radius: 22px; border: 1.5px solid var(--line); overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--acc) 9%, var(--card)) 0%, var(--card) 70%);
  box-shadow: 0 1px 2px rgba(7,59,120,.05), 0 12px 26px -14px rgba(7,59,120,.22); transition: transform .16s, box-shadow .16s, border-color .16s; }
.ib-stat:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(7,59,120,.07), 0 18px 32px -14px rgba(7,59,120,.3); }
.ib-stat.on { border-color: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 18%, transparent), 0 18px 34px -14px color-mix(in srgb, var(--acc) 55%, transparent); }
.ib-stat.on::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 4px; border-radius: 4px 4px 0 0; background: var(--acc); }
.ib-st { display: grid; line-height: 1.15; min-width: 0; }
.ib-st b { font-size: 30px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.ib-st small { color: var(--muted); font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-stat .col-ic { flex: none; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: var(--acc); background: color-mix(in srgb, var(--acc) 15%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 28%, transparent); }
.ib-panel { border-radius: 26px; background: var(--card); border: 1px solid var(--line); padding: 18px; min-height: 320px;
  box-shadow: 0 1px 2px rgba(7,59,120,.05), 0 14px 30px -14px rgba(7,59,120,.2), 0 38px 64px -36px rgba(7,59,120,.3); }
.ib-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ib-title { display: grid; line-height: 1.2; margin-left: auto; text-align: right; } .ib-title b { font-size: 16px; } .ib-title small { color: var(--muted); }
.ib-search { position: relative; flex: 1; min-width: 220px; max-width: 460px; }
.ib-search svg.i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--blue-500); pointer-events: none; }
.ib-search input { width: 100%; padding: 12px 14px 12px 44px; border-radius: 15px; border: 1.5px solid var(--line); background: var(--blue-50); outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.ib-search input:focus { border-color: var(--blue-500); background: var(--card); box-shadow: 0 0 0 4px rgba(11,102,195,.14); }
.inbox { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; align-content: start; }
.ib-card { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 15px 16px 14px 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); overflow: hidden; cursor: pointer; outline: none; min-width: 0;
  box-shadow: 0 1px 2px rgba(7,59,120,.06), 0 8px 18px -8px rgba(7,59,120,.16); transition: transform .16s ease, box-shadow .16s ease, border-color .16s; }
.ib-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--acc), color-mix(in srgb, var(--acc) 45%, #fff)); }
.ib-card:hover, .ib-card:focus-visible { transform: translateY(-3px); border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); box-shadow: 0 2px 4px rgba(7,59,120,.07), 0 18px 32px -12px rgba(7,59,120,.28); }
.ib-card:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 45%, transparent); }
@keyframes ibin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ib-card .tk-av { position: relative; width: 46px; height: 46px; }
.on-dot { position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%; background: var(--ok); border: 2.5px solid var(--card); }
.ib-main { flex: 1; min-width: 0; display: grid; gap: 6px; padding-right: 22px; }
.ib-l1 { display: flex; align-items: baseline; gap: 10px; } .ib-l1 .n { flex: 1; min-width: 0; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-l1 .tk-time { flex: none; font-size: 12px; }
.ib-l2 { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; }
.ib-prev { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ib-prev em { font-style: normal; opacity: .85; }
.ib-card .unread { flex: none; background: var(--danger); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; font-weight: 700; padding: 0 6px; box-shadow: 0 0 0 3px rgba(240,68,56,.18), 0 6px 12px -4px rgba(240,68,56,.6); }
.ib-l3 { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 2px; font-size: 12px; }
.ib-st-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 999px; font-weight: 700; color: var(--acc); background: color-mix(in srgb, var(--acc) 13%, var(--card)); } .ib-st-chip svg.i { width: 13px; height: 13px; }
.ib-fone { color: var(--muted); margin-left: auto; white-space: nowrap; }
.ib-card .mv { position: absolute; top: 9px; right: 9px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); opacity: .75; }
.ib-card .mv:hover { background: var(--blue-100); opacity: 1; }
.ib-card.blink { animation: blink 1s ease-in-out infinite; border-color: var(--danger); } .ib-card.blink::before { background: var(--danger); }
.ib-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 6px; padding: 54px 16px; text-align: center; border-radius: 20px; border: 1.5px dashed color-mix(in srgb, var(--acc) 30%, var(--line)); }
.ib-empty .col-ic { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; color: var(--acc); background: color-mix(in srgb, var(--acc) 14%, transparent); margin-bottom: 6px; }
.ib-empty small { color: var(--muted); }
.live-pill span { white-space: nowrap; }

/* ---------- responsivo: tablet ---------- */
@media (min-width: 901px) and (max-width: 1180px) {
  :root { --sb: 84px; }
  .sidebar { padding: 18px 10px; align-items: stretch; }
  .sidebar .brand { justify-content: center; padding: 4px 0 18px; } .sidebar .brand > span:last-child { display: none; }
  .nav a { justify-content: center; padding: 13px 0; } .nav a > span:not(.badge) { display: none; }
  .nav .badge { position: absolute; top: 4px; right: 10px; margin: 0; }
  .me { justify-content: center; padding: 10px 6px; flex-direction: column; } .me > div:not(.avatar) { display: none; } .me button { margin: 0; }
  .content { padding: 20px; }
  .ib-stats { gap: 12px; } .ib-stat { padding: 14px; gap: 10px; } .ib-stat .col-ic { width: 40px; height: 40px; }
  .inbox { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}
@media (max-width: 1180px) { .ib-fone { display: none; } }
/* ---------- responsivo: celular ---------- */
@media (max-width: 900px) {
  .ib-stats { grid-template-columns: repeat(4, minmax(132px, 1fr)); overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -16px; padding: 4px 16px 8px; scrollbar-width: none; }
  .ib-stats::-webkit-scrollbar { display: none; }
  .ib-stat { scroll-snap-align: start; padding: 12px 14px; gap: 10px; border-radius: 18px; } .ib-st b { font-size: 24px; } .ib-st small { font-size: 12px; }
  .ib-stat .col-ic { width: 38px; height: 38px; border-radius: 12px; }
  .ib-panel { padding: 12px; border-radius: 22px; margin: 0 -4px; }
  .ib-title { display: none; } .ib-search { max-width: none; }
  .inbox { grid-template-columns: 1fr; gap: 10px; }
  .daychip { padding-right: 14px; } .dc-ic { width: 40px; height: 40px; } .dc-t b { font-size: 22px; }
  .live-pill { padding: 6px 11px; }
  .topbar h1 { font-size: 18px; }
  .content { padding: 14px; -webkit-overflow-scrolling: touch; }
  .mobile-nav { justify-content: flex-start; gap: 2px; scrollbar-width: none; } .mobile-nav::-webkit-scrollbar { display: none; }
  .mobile-nav a { flex: 0 0 auto; min-width: 68px; }
  .modal-ov { align-items: end; padding: 0; }
  .modal { max-width: 100% !important; border-radius: 24px 24px 0 0; max-height: 92dvh; animation: sheet .22s ease-out; padding-bottom: env(safe-area-inset-bottom); }
  .modal-f { flex-wrap: wrap; } .modal-f .btn { flex: 1; min-width: 120px; }
  .chat { width: 100%; }
  .pop { width: min(300px, calc(100vw - 32px)); }
  /* tabelas viram lista de cartões; os rótulos vêm do data-label (app.js) */
  .tbl-wrap { overflow: visible; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .tbl tr:last-child { border-bottom: 0; }
  .tbl td { padding: 4px 0; border: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: right; }
  .tbl td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; text-align: left; flex: none; }
  .tbl td:first-child { font-size: 16px; font-weight: 700; justify-content: flex-start; text-align: left; }
  .tbl td:first-child::before { display: none; }
  .tbl td:last-child:empty { display: none; }
  .toolbar .search { max-width: none; min-width: 100%; }
  .kpis { grid-template-columns: 1fr 1fr; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (max-width: 900px) and (pointer: coarse) { input, select, textarea { font-size: 16px !important; } .btn.sm { min-height: 36px; } }
@media (max-width: 420px) { .btn-new span { display: none; } .live-pill span { display: none; } .ib-head { gap: 10px; } .kpis { grid-template-columns: 1fr; } }
@media (min-width: 1600px) { .content { padding: 28px 40px; } .inbox { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .ib-card, .ib-stat { animation: none; transition: none; } }

/* ---------- FILAS: versão fina e premium (sobrepõe os cartões anteriores) ---------- */
.ib { max-width: 1100px; gap: 16px; }
.ib-stats { display: inline-flex; grid-template-columns: none; gap: 4px; padding: 5px; margin: 0; width: max-content; max-width: 100%; overflow-x: auto; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 8px 20px -12px rgba(7,59,120,.25); scrollbar-width: none; }
.ib-stats::-webkit-scrollbar { display: none; }
.ib-stat { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 0; border-radius: 13px; background: transparent; box-shadow: none; color: var(--muted); font-weight: 700; font-size: 14px; white-space: nowrap; overflow: visible; transition: background .15s, color .15s; }
.ib-stat::after { display: none !important; }
.ib-stat:hover { transform: none; box-shadow: none; color: var(--text); background: var(--blue-50); }
.ib-stat.on { color: #fff; background: linear-gradient(135deg, var(--acc), color-mix(in srgb, var(--acc) 62%, #000)); box-shadow: 0 10px 20px -10px var(--acc); border: 0; }
.ib-stat svg.i { width: 17px; height: 17px; }
.ib-stat b { min-width: 24px; padding: 1px 8px; border-radius: 999px; text-align: center; font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--acc); background: color-mix(in srgb, var(--acc) 14%, var(--card)); }
.ib-stat.on b { color: #fff; background: rgba(255,255,255,.24); }
.ib-panel { padding: 8px 8px 6px; border-radius: 22px; min-height: 0; }
.ib-tools { padding: 8px 8px 12px; margin: 0; border-bottom: 1px solid var(--line); }
.ib-search input { padding: 10px 14px 10px 42px; border-radius: 13px; }
.inbox { display: flex; flex-direction: column; gap: 0; }
.ib-card { display: grid; grid-template-columns: 26px 40px minmax(0, 1fr) auto auto 24px 30px; align-items: center; gap: 12px; padding: 11px 12px 11px 14px; border: 0; border-bottom: 1px solid var(--line); border-radius: 14px; background: transparent; box-shadow: none; overflow: visible; }
.ib-card:last-child { border-bottom: 0; }
.ib-card::before { left: 3px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; opacity: 0; transition: opacity .15s; }
.ib-card:hover, .ib-card:focus-visible { transform: none; border-color: transparent; background: color-mix(in srgb, var(--acc) 6%, var(--card)); box-shadow: none; }
.ib-card:hover::before, .ib-card:focus-visible::before, .ib-card.blink::before { opacity: 1; }
.ib-card:focus-visible { outline: 2px solid color-mix(in srgb, var(--acc) 55%, transparent); outline-offset: -2px; }
.ib-pos { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; font-size: 12px; font-weight: 800; color: var(--acc); background: color-mix(in srgb, var(--acc) 13%, transparent); font-variant-numeric: tabular-nums; }
.ib-pos svg.i { width: 15px; height: 15px; }
.ib-card .tk-av { width: 40px; height: 40px; border-radius: 13px; font-size: 13px; }
.ib-main { display: grid; gap: 1px; padding: 0; min-width: 0; }
.ib-main .n { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-main .ib-prev { font-size: 13px; color: var(--muted); }
.ib-meta { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.ib-meta .pill { font-size: 11.5px; padding: 2px 9px; }
.ib-meta .tk-who { font-size: 12px; }
.ib-wait { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 74px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ib-wait svg.i { width: 13px; height: 13px; }
.ib-wait.ok { color: #067647; background: #d9f6e8; } .ib-wait.warn { color: #b54708; background: #fef0c7; } .ib-wait.crit { color: #b42318; background: #fde8e6; } .ib-wait.mute { color: var(--muted); background: var(--blue-50); }
.ib-card .unread { position: static; margin: 0; }
.ib-card .mv { position: static; }
.ib-card.blink { animation: blink 1s ease-in-out infinite; }
.ib-empty { margin: 10px; }
@media (max-width: 900px) {
  .ib-stats { margin: 0; padding: 4px; width: 100%; display: flex; }
  .ib-stat { flex: 1 0 auto; justify-content: center; padding: 9px 11px; font-size: 13px; } .ib-stat svg.i { display: none; }
  .ib-panel { margin: 0 -4px; padding: 4px 4px 2px; }
  .ib-card { grid-template-columns: 40px minmax(0, 1fr) auto 30px; grid-template-areas: "av main wait mv" "av meta meta meta"; gap: 3px 11px; padding: 12px 8px; }
  .ib-pos, .unread-ph, .mv-ph { display: none; }
  .ib-card .tk-av { grid-area: av; align-self: start; } .ib-main { grid-area: main; } .ib-wait { grid-area: wait; min-width: 0; padding: 3px 9px; }
  .ib-card .mv, .ib-card .mv-ph { grid-area: mv; }
  .ib-meta { grid-area: meta; justify-content: flex-start; flex-wrap: wrap; } .ib-meta:empty { display: none; }
  .ib-card .unread { position: absolute; right: 44px; bottom: 12px; }
}
@media (max-width: 420px) { .ib-stat { padding: 9px 8px; font-size: 12.5px; gap: 5px; } .ib-stat b { padding: 1px 6px; } }

/* ---------- PREMIUM: largura total, cabeçalho em destaque, linhas mais ricas ---------- */
.ib { max-width: none; width: 100%; gap: 18px; }
.ib-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; padding: 24px 28px; border-radius: 28px; color: #eaf1ff;
  background: radial-gradient(700px 320px at 0% 0%, rgba(11,102,195,.45), transparent 62%), radial-gradient(600px 340px at 100% 100%, rgba(25,211,197,.24), transparent 60%), linear-gradient(165deg, #084a8f 0%, #0b66c3 60%, #1c7ad6 100%);
  box-shadow: 0 30px 60px -28px rgba(5,42,82,.75), inset 0 1px 0 rgba(255,255,255,.08); }
.ib-head::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 46px 46px; -webkit-mask-image: radial-gradient(ellipse at 30% 0%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse at 30% 0%, #000 10%, transparent 75%); }
.ib-head > * { position: relative; }
.ib-hello small { display: block; color: #8fa8d8; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: 11.5px; margin-bottom: 4px; }
.ib-hello h2 { font-size: 30px; letter-spacing: -.8px; line-height: 1.1; }
.ib-hello p { color: #a9c4ee; margin-top: 6px; font-size: 15px; }
.ib-acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ib-head .daychip { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.16); backdrop-filter: blur(10px); box-shadow: none; color: #fff; }
.ib-head .daychip .dc-t small { color: #9db6e8; } .ib-head .daychip .dc-t b { color: #fff; }
.ib-head .pop { color: var(--text); }
.ib-head .live-pill { background: rgba(53,214,161,.12); border-color: rgba(53,214,161,.35); color: #7ff0cc; box-shadow: none; }
.ib-stats { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px; border-radius: 20px; }
.ib-stat { justify-content: center; padding: 13px 16px; font-size: 15px; border-radius: 15px; }
.ib-stat b { font-size: 13.5px; padding: 2px 10px; }
.ib-panel { padding: 10px 12px 8px; border-radius: 26px; box-shadow: 0 1px 2px rgba(7,59,120,.05), 0 18px 36px -16px rgba(7,59,120,.22), 0 44px 70px -40px rgba(7,59,120,.32); }
.ib-tools { padding: 10px 10px 14px; }
.ib-search { max-width: 520px; }
.ib-card { grid-template-columns: 30px 48px minmax(0, 1fr) minmax(0, 260px) auto 26px 34px; gap: 16px; padding: 14px 14px 14px 18px; border-radius: 18px; }
.ib-card .tk-av { width: 48px; height: 48px; border-radius: 16px; font-size: 14px; }
.ib-main .n { font-size: 15.5px; } .ib-main .ib-prev { font-size: 13.5px; }
.ib-pos { width: 30px; height: 30px; border-radius: 10px; font-size: 13px; }
.ib-wait { min-width: 88px; padding: 6px 12px; font-size: 12.5px; }
.ib-card .mv { width: 34px; height: 34px; }
.ib-card:hover { box-shadow: 0 10px 24px -14px rgba(7,59,120,.35); }
@media (min-width: 1500px) { .inbox { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; } .ib-card { grid-template-columns: 30px 48px minmax(0, 1fr) auto auto 26px 34px; } .ib-card:last-child { border-bottom: 1px solid var(--line); } }
@media (max-width: 900px) {
  .ib-head { padding: 18px; border-radius: 22px; } .ib-hello h2 { font-size: 24px; } .ib-hello p { font-size: 14px; }
  .ib-acts { width: 100%; } .ib-acts .btn-new { margin-left: auto; }
  .ib-stats { display: flex; }
  .ib-card { grid-template-columns: 40px minmax(0, 1fr) auto 30px; padding: 12px 8px; gap: 3px 11px; }
  .ib-card .tk-av { width: 40px; height: 40px; border-radius: 13px; } .ib-wait { min-width: 0; padding: 3px 9px; font-size: 12px; }
}
@media (max-width: 420px) { .ib-acts .btn-new span { display: none; } }

/* ---------- tema branco + menu fixo no celular ---------- */
:root { color-scheme: light; --blue-500: #0b66c3; --blue-600: #0b66c3; }
html, body { background: var(--bg); }
@media (max-width: 900px) {
  .shell { display: block; height: 100dvh; }
  .main { height: 100dvh; }
  .content { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -14px rgba(7,59,120,.25); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .topbar { position: sticky; top: 0; z-index: 45; }
  .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ---------- logomarca ---------- */
.lg-logo { width: 84px; height: 84px; padding: 0; border: 0; border-radius: 50%; background: #fff; overflow: hidden; box-shadow: 0 18px 44px -10px rgba(11,102,195,.85), 0 0 0 5px rgba(255,255,255,.18), 0 0 0 1px rgba(255,255,255,.4); }
.lg-logo img, .brand .logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand .logo { width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: #fff; overflow: hidden; box-shadow: 0 8px 18px -6px rgba(0,0,0,.35), 0 0 0 3px rgba(255,255,255,.25); }
.tb-logo { display: none; width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 4px 10px -3px rgba(11,102,195,.5); }
@media (max-width: 900px) { .tb-logo { display: block; } .lg-logo { width: 72px; height: 72px; } }

/* ---------- instalar como app (Meu perfil) ---------- */
.perfil-grid { display: grid; gap: 18px; max-width: 560px; }
.app-card { padding: 20px; display: grid; gap: 14px; background: linear-gradient(160deg, color-mix(in srgb, var(--blue-500) 9%, var(--card)), var(--card) 70%); }
.app-in { display: flex; gap: 14px; align-items: center; } .app-in img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 10px 22px -8px rgba(11,102,195,.6); flex: none; }
.app-in h2 { font-size: 17px; } .app-in p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.app-card .btn { width: 100%; padding: 13px 18px; font-size: 15px; } .app-card .btn svg.i { width: 19px; height: 19px; }
.app-card .btn[disabled] { opacity: .8; background: #d9f6e8; color: #067647; box-shadow: none; }
.app-card .hint:empty { display: none; }
.inst-pass { display: grid; gap: 10px; padding-left: 20px; } .inst-pass li { line-height: 1.45; }

/* ---------- horário de funcionamento ---------- */
.hr { display: grid; gap: 18px; max-width: 860px; }
.hr-hero { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 22px; border-radius: 24px; color: #eaf1ff;
  background: radial-gradient(600px 300px at 0% 0%, rgba(61,143,224,.45), transparent 62%), linear-gradient(165deg, #084a8f 0%, #0b66c3 60%, #1c7ad6 100%); box-shadow: 0 24px 50px -26px rgba(5,42,82,.7), inset 0 1px 0 rgba(255,255,255,.1); }
.hr-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(145deg, #2f86dc, #0a5cb0); box-shadow: 0 12px 26px -10px rgba(11,102,195,.9), inset 0 1px 0 rgba(255,255,255,.3); flex: none; } .hr-ic svg.i { width: 27px; height: 27px; color: #fff; }
.hr-ht { flex: 1; min-width: 220px; } .hr-ht h2 { font-size: 21px; letter-spacing: -.3px; } .hr-ht p { color: #a9c4ee; font-size: 14px; margin-top: 3px; }
.hr-now { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #dbe7ff; }
.hr-now i { width: 9px; height: 9px; border-radius: 50%; background: #9db6e8; }
.hr-now.on { background: rgba(53,214,161,.14); border-color: rgba(53,214,161,.4); color: #7ff0cc; } .hr-now.on i { background: #35d6a1; box-shadow: 0 0 0 0 rgba(53,214,161,.7); animation: rdping 1.6s infinite; }
.hr-now.off { background: rgba(255,93,93,.14); border-color: rgba(255,93,93,.4); color: #ffb0aa; } .hr-now.off i { background: #ff5d5d; }
.hr-card { padding: 20px 22px 22px; display: grid; gap: 16px; border-radius: 24px; }
.hr-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .hr-card h3 { font-size: 17px; }
.hr-g { padding: 16px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--blue-50); display: grid; gap: 14px; margin-bottom: 12px; }
.hr-g-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hr-dias { display: flex; flex-wrap: wrap; gap: 6px; }
.dia { min-width: 52px; padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-weight: 700; color: var(--muted); transition: all .15s; }
.dia:hover { border-color: var(--blue-500); color: var(--blue-500); }
.dia.on { color: #fff; border-color: transparent; background: linear-gradient(135deg, #0b66c3, #3d8fe0); box-shadow: 0 8px 16px -8px rgba(11,102,195,.9); }
.hr-faixas { display: grid; gap: 10px; }
.hr-f { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hr-l { color: var(--muted); font-weight: 600; min-width: 28px; font-size: 14px; }
.hr-f input[type=time] { padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-weight: 700; font-size: 16px; outline: none; font-variant-numeric: tabular-nums; }
.hr-f input[type=time]:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(11,102,195,.14); }
.hr-x { width: 36px; height: 36px; border-radius: 11px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; flex: none; } .hr-x:hover { background: #fde8e6; color: var(--danger); } .hr-x.sm { width: 32px; height: 32px; }
.hr-addf, .hr-add { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border-radius: 12px; border: 1.5px dashed var(--blue-400); background: transparent; color: var(--blue-600); font-weight: 700; justify-self: start; }
.hr-addf:hover, .hr-add:hover { background: var(--blue-100); } .hr-addf svg.i, .hr-add svg.i { width: 17px; height: 17px; }
.hr-add { width: 100%; padding: 13px; border-radius: 16px; }
.hr-vazio { display: grid; justify-items: center; gap: 6px; padding: 30px 14px; text-align: center; border: 1.5px dashed var(--line); border-radius: 18px; color: var(--muted); margin-bottom: 12px; } .hr-vazio svg.i { width: 30px; height: 30px; color: var(--blue-500); opacity: .6; }
.hr-vars { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.chip { border: 1px solid var(--line); background: var(--blue-50); color: var(--blue-600); font-weight: 700; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; } .chip:hover { background: var(--blue-100); }
.hr-card textarea { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); outline: none; resize: vertical; line-height: 1.5; }
.hr-card textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(11,102,195,.14); }
.hr-int select { max-width: 220px; }
.hr-prev { display: grid; gap: 8px; padding: 16px; border-radius: 18px; background: #e5ddd5; } .hr-prev small { color: #54656f; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; font-size: 11px; }
.hr-bolha { justify-self: start; max-width: 90%; padding: 10px 13px; border-radius: 4px 14px 14px 14px; background: #fff; color: #111b21; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 1px 1px rgba(0,0,0,.12); font-size: 14.5px; line-height: 1.45; }
.hr-sw { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; } .hr-sw input { position: absolute; opacity: 0; }
.hr-sw span { width: 46px; height: 26px; border-radius: 99px; background: #c5cfdd; position: relative; transition: background .18s; flex: none; }
.hr-sw span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.25); transition: transform .18s; }
.hr-sw input:checked + span { background: var(--ok); } .hr-sw input:checked + span::after { transform: translateX(20px); }
.hr-sw input:focus-visible + span { box-shadow: 0 0 0 4px rgba(11,102,195,.25); }
@media (max-width: 600px) { .hr-hero { padding: 16px; } .dia { min-width: 0; flex: 1; padding: 9px 4px; } .hr-dias { flex: 1; flex-wrap: nowrap; gap: 4px; } .hr-card { padding: 16px; } .hr-card > header .btn { width: 100%; } .hr-card .btn.primary { width: 100%; padding: 13px; } }

/* ---------- configurações (menu) ---------- */
.cfg { display: grid; gap: 18px; max-width: 860px; }
.cfg-head { display: flex; align-items: center; gap: 16px; } .cfg-head h2 { font-size: 22px; letter-spacing: -.3px; } .cfg-head p { color: var(--muted); }
.cfg-head .hr-ic { box-shadow: 0 12px 26px -10px rgba(11,102,195,.9); }
.cfg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.cfg-item { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit;
  box-shadow: 0 1px 2px rgba(7,59,120,.05), 0 12px 26px -14px rgba(7,59,120,.22); transition: transform .16s, box-shadow .16s, border-color .16s; }
.cfg-item:hover, .cfg-item:focus-visible { transform: translateY(-3px); border-color: color-mix(in srgb, var(--blue-500) 45%, var(--line)); box-shadow: 0 18px 32px -14px rgba(7,59,120,.3); outline: none; }
.cfg-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; flex: none; background: linear-gradient(145deg, #3d8fe0, #0b66c3); box-shadow: 0 10px 20px -8px rgba(11,102,195,.8), inset 0 1px 0 rgba(255,255,255,.35); }
.cfg-tx { flex: 1; min-width: 0; display: grid; gap: 2px; } .cfg-tx b { font-size: 16px; } .cfg-tx small { color: var(--muted); line-height: 1.35; }
.cfg-go { color: var(--blue-500); } .cfg-item:hover .cfg-go { transform: translateX(3px); } .cfg-go { transition: transform .15s; }
.hr-voltar { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 7px 12px 7px 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--blue-600); font-weight: 700; text-decoration: none; font-size: 14px; }
.hr-voltar:hover { background: var(--blue-100); } .hr-voltar svg.i { width: 18px; height: 18px; }

.tb-back { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); border: 1px solid var(--line); color: var(--blue-600); flex: none; text-decoration: none; }
.tb-back:hover { background: var(--blue-100); }

/* ---------- desempenho no celular ---------- */
.chat-load { align-items: center; justify-content: center; }
.spin-big { width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
/* alerta piscante só com opacidade (animar box-shadow/background repinta a tela a cada quadro) */
.ib-card.blink { animation: none; }
.ib-card.blink::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(240,68,56,.14); box-shadow: inset 0 0 0 2px rgba(240,68,56,.55); opacity: 0; pointer-events: none; animation: blinkop 1s ease-in-out infinite; }
@keyframes blinkop { 50% { opacity: 1; } }
.msgs { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; contain: layout paint; }
@media (max-width: 900px) {
  .chat-ov, .modal-ov { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(6,54,95,.6); }
  .mobile-nav, .ib-head .daychip { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .mobile-nav { background: #fff; }
  .chat { height: 100dvh; animation: none; box-shadow: none; }
  .msg { box-shadow: none; border: 1px solid var(--line); } .msg.out { border-color: transparent; } .msg.sys { border: 0; }
  .ib-card, .ib-stat, .cfg-item { transition: none; }
  .ib-card:hover { box-shadow: none; }
}

/* ---------- foto de perfil ---------- */
.avatar, .tb-av, .foto-big { overflow: hidden; } .avatar img, .tb-av img, .foto-big img { width: 100%; height: 100%; object-fit: cover; display: block; }
.me-av { display: contents; text-decoration: none; color: inherit; }
.me .avatar.has-foto { background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.55); border-radius: 50%; }
.me .avatar { border-radius: 50%; }
.tb-user { display: inline-flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 700; border: 1px solid var(--line); background: var(--card); transition: background .15s, box-shadow .15s; }
.tb-user:hover { background: var(--blue-50); box-shadow: 0 6px 16px -10px rgba(7,59,120,.35); }
.tb-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 13px; color: #fff; background: linear-gradient(145deg, #3d8fe0, #0b66c3); box-shadow: 0 6px 14px -6px rgba(11,102,195,.7); }
.tb-av.has-foto { background: #fff; }
.tb-nm { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.foto-card { padding: 20px; }
.foto-in { display: flex; gap: 18px; align-items: center; }
.foto-big { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 30px; font-weight: 800; color: #fff; background: linear-gradient(145deg, #3d8fe0, #0b66c3); box-shadow: 0 14px 28px -10px rgba(11,102,195,.7), 0 0 0 4px var(--card), 0 0 0 5px var(--line); }
.foto-big.has-foto { background: #fff; }
.foto-tx { min-width: 0; display: grid; gap: 6px; } .foto-tx h2 { font-size: 17px; } .foto-tx p { color: var(--muted); font-size: 13.5px; }
.foto-bt { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; } .foto-bt .btn svg.i { width: 16px; height: 16px; }
@media (max-width: 900px) { .tb-nm { display: none; } .tb-user { padding: 3px; } }
@media (max-width: 480px) { .foto-in { flex-direction: column; text-align: center; } .foto-bt { justify-content: center; } }

/* foto do topo: 2x maior */
.topbar { padding-top: 10px; padding-bottom: 10px; }
.tb-user { gap: 14px; padding: 5px 20px 5px 5px; }
.tb-av { width: 72px; height: 72px; font-size: 24px; box-shadow: 0 10px 22px -8px rgba(11,102,195,.7), 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.tb-nm { font-size: 16px; max-width: 180px; }
@media (max-width: 900px) { .tb-av { width: 54px; height: 54px; font-size: 19px; } .tb-user { padding: 3px; } .topbar { padding: 8px 14px; } }

/* ---------- conversa no celular / PWA: acima do menu e do topo, com áreas seguras ---------- */
.chat-ov { z-index: 65; }                 /* menu fixo = 50, topo = 45, janelas (modal) = 70, avisos = 90 */
.chat-load { z-index: 65; }
.chat-h { padding-top: calc(14px + env(safe-area-inset-top)); }
.composer { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.locked { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.chat { max-height: 100%; min-height: 0; }
.msgs { min-height: 0; }
.chat-h .iconbtn { width: 44px; height: 44px; flex: none; }
.chat-h .iconbtn svg.i { width: 24px; height: 24px; stroke-width: 2.2; }
.composer textarea { min-width: 0; font-size: 16px; }
@media (max-width: 900px) {
  .chat { width: 100%; height: 100%; }
  .composer .btn { flex: none; }
}
@media (display-mode: standalone) { .topbar { padding-top: calc(10px + env(safe-area-inset-top)); } }

/* ---------- Radar: cor progressiva até o limite de espera ---------- */
.rd-card[data-fila] { background: linear-gradient(160deg, color-mix(in srgb, var(--lv, #35d6a1) calc(var(--f, 0) * 30%), rgba(255,255,255,.10)), rgba(255,255,255,.05)); border-color: color-mix(in srgb, var(--lv, #35d6a1) calc(var(--f, 0) * 70%), rgba(255,255,255,.10)); transition: background 1s linear, border-color 1s linear; }
.rd-card[data-fila]::before { background: var(--lv, var(--ok)); }
.rd-bar i { background: var(--lv); }
.rd-late { padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; background: rgba(255,93,93,.22); color: #ffb3ad; border: 1px solid rgba(255,93,93,.5); }
.rd-lim { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; color: #cfe0ff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.rd-lim.off { color: #8fa8d8; border-style: dashed; }
.rd-kpi b { transition: color 1s linear; }

/* ---------- Padronização de Atendimentos ---------- */
.pd-min { display: grid; gap: 12px; transition: opacity .2s; } .pd-min.off, #pd-c2.off .field, #pd-c2.off .hr-prev { opacity: .5; }
.pd-min > label { font-weight: 700; }
.pd-num { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd-num input { width: 110px; padding: 12px; text-align: center; font-size: 26px; font-weight: 800; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); outline: none; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.pd-num input::-webkit-outer-spin-button, .pd-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-num input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(11,102,195,.14); }
.pd-num button { width: 46px; height: 46px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); font-size: 22px; font-weight: 700; color: var(--blue-600); } .pd-num button:hover:not(:disabled) { background: var(--blue-100); }
.pd-num span { color: var(--muted); font-weight: 600; }
.pd-q { display: flex; gap: 8px; flex-wrap: wrap; } .chip.on { background: var(--blue-500); color: #fff; border-color: transparent; }
#pi-f { transition: opacity .2s; } #pi-f.off { opacity: .5; }
.chip:disabled, .pd-num button:disabled { opacity: .5; pointer-events: none; }
.pd-leg { display: grid; gap: 6px; padding: 14px 16px; border-radius: 16px; background: #084a8f; color: #cfe0ff; } .pd-leg small { font-weight: 700; letter-spacing: .4px; text-transform: uppercase; font-size: 11px; color: #8fa8d8; }
.pd-grad { height: 12px; border-radius: 99px; background: linear-gradient(90deg, hsl(150 88% 54%), hsl(100 88% 54%), hsl(50 88% 54%), hsl(0 88% 54%)); box-shadow: 0 0 18px -4px hsl(0 88% 54% / .7); }
.pd-marks { display: flex; justify-content: space-between; font-size: 11.5px; color: #9db6e8; gap: 6px; }
.pd-quem { display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--blue-50); border: 1px solid var(--line); }
.pd-quem ul { list-style: none; padding: 0; display: grid; gap: 6px; } .pd-quem li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; } .pd-quem li small { color: var(--muted); } .pd-quem li svg.i { width: 17px; height: 17px; color: var(--blue-500); }
.pd-warn { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #fef0c7; color: #93370d; font-weight: 600; } .pd-warn svg.i { width: 18px; height: 18px; flex: none; margin-top: 1px; } .pd-warn a { color: inherit; text-decoration: underline; }
.pd-bts { display: flex; gap: 10px; flex-wrap: wrap; } .pd-bts .btn { padding: 12px 18px; } .pd-bts .btn svg.i { width: 17px; height: 17px; }
@media (max-width: 600px) { .pd-bts .btn { width: 100%; } .pd-marks { font-size: 10.5px; } }

/* ---------- figurinhas e anexos ---------- */
.msg.stk { background: transparent; box-shadow: none; border: 0; padding: 2px 4px 4px; }
.msg.stk.out { color: var(--text); } .msg.stk .tm { color: var(--muted); opacity: 1; }
.msg img.sticker { width: 150px; max-width: 60vw; height: auto; border-radius: 0; background: transparent; }
.arq-prev { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--blue-50); border: 1px solid var(--line); }
.arq-ic { font-size: 30px; } .arq-prev div { min-width: 0; display: grid; } .arq-prev b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .arq-prev small { color: var(--muted); }

/* ---------- editor de imagem (estilo WhatsApp) ---------- */
.ed-ov { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: #0b1220; color: #fff; }
.ed-top { display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; background: rgba(255,255,255,.06); }
.ed-tools { display: flex; gap: 6px; flex: 1; overflow-x: auto; scrollbar-width: none; justify-content: center; } .ed-tools::-webkit-scrollbar { display: none; }
.ed-b { border: 0; background: rgba(255,255,255,.12); color: #fff; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; flex: none; }
.ed-b:hover { background: rgba(255,255,255,.2); } .ed-b.ok { background: #12b76a; }
.ed-t { flex: none; display: grid; justify-items: center; gap: 2px; min-width: 58px; padding: 7px 8px; border: 0; border-radius: 13px; background: transparent; color: #cfe0ff; font-size: 11.5px; font-weight: 700; }
.ed-t svg.i { width: 22px; height: 22px; } .ed-t:hover:not(:disabled) { background: rgba(255,255,255,.1); }
.ed-t.on { background: #0b66c3; color: #fff; box-shadow: 0 8px 18px -8px rgba(11,102,195,.9); } .ed-t:disabled { opacity: .35; }
.ed-stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 12px; overflow: hidden; }
.ed-wrap { position: relative; max-width: 100%; max-height: 100%; display: grid; line-height: 0; touch-action: none; }
.ed-wrap canvas { grid-area: 1 / 1; max-width: 100%; max-height: calc(100dvh - 210px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 20px 50px -18px rgba(0,0,0,.8); touch-action: none; }
.ed-wrap #ed-ov2 { pointer-events: none; box-shadow: none; }
.ed-wrap[data-tool="texto"] #ed-cv { cursor: text; } .ed-wrap[data-tool="cortar"] #ed-cv, .ed-wrap[data-tool="pincel"] #ed-cv, .ed-wrap[data-tool="seta"] #ed-cv { cursor: crosshair; }
.ed-tx { position: absolute; z-index: 3; min-width: 160px; transform: translate(-4px, -50%); padding: 2px 6px; border: 2px dashed rgba(255,255,255,.85); border-radius: 8px; background: rgba(0,0,0,.35); font-weight: 800; line-height: 1.2; outline: none; font-family: "Segoe UI", Arial, sans-serif; }
.ed-crop { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 4; }
.ed-bot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.06); }
.ed-cores { display: flex; gap: 7px; } .ed-cor { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); background: var(--c); } .ed-cor.on { border-color: #fff; transform: scale(1.18); box-shadow: 0 0 0 2px #0b66c3; }
.ed-esp { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: rgba(255,255,255,.1); }
.ed-esp button { width: 36px; height: 32px; border: 0; border-radius: 9px; background: transparent; display: grid; place-items: center; } .ed-esp button.on { background: rgba(255,255,255,.22); }
.ed-esp i { display: block; width: var(--s); height: var(--s); border-radius: 50%; background: #fff; }
.ed-leg { flex: 1; min-width: 160px; padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #fff; outline: none; font-size: 16px; }
.ed-leg::placeholder { color: #9db6e8; } .ed-leg:focus { border-color: #3d8fe0; background: rgba(255,255,255,.16); }
.ed-send { width: 50px; height: 50px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #0b66c3, #3d8fe0); box-shadow: 0 12px 24px -10px rgba(11,102,195,.9); flex: none; }
.ed-send svg.i { width: 24px; height: 24px; } .ed-send:disabled { opacity: .7; } .ed-send.load svg { animation: spin .8s linear infinite; }
@media (max-width: 700px) { .ed-t span { display: none; } .ed-t { min-width: 46px; } .ed-wrap canvas { max-height: calc(100dvh - 250px); } .ed-leg { order: 5; flex-basis: 100%; } .ed-send { margin-left: auto; } }

/* ---------- manutenção ---------- */
.mt-per { display: grid; gap: 12px; }
.mt-datas { display: flex; gap: 12px; flex-wrap: wrap; } .mt-datas label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; color: var(--muted); }
.mt-datas input { padding: 11px 13px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); font-weight: 600; outline: none; font-size: 16px; }
.mt-datas input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(11,102,195,.14); }
.mt-per .pd-q { align-items: center; } .mt-per .pd-q small { color: var(--muted); font-weight: 600; }
.mt-tipos { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.mt-tipo { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; transition: border-color .12s, background .12s; }
.mt-tipo:has(input:checked) { border-color: var(--blue-500); background: color-mix(in srgb, var(--blue-500) 7%, var(--card)); }
.mt-tipo input { width: 18px; height: 18px; accent-color: var(--blue-500); flex: none; } .mt-e { font-size: 24px; }
.mt-t { display: grid; min-width: 0; } .mt-t small { color: var(--muted); }
.mt-res { min-height: 4px; display: grid; gap: 8px; }
.mt-box { padding: 12px 14px; border-radius: 14px; background: var(--blue-50); border: 1px solid var(--line); line-height: 1.45; }
.mt-box.warn { background: #fef0c7; border-color: #f5d27a; color: #7a2e0e; } .mt-box.ok { background: #d9f6e8; border-color: #9fe0c0; color: #05603a; display: flex; gap: 8px; align-items: center; } .mt-box.err { background: #fde8e6; border-color: #f5b5af; color: #b42318; }
.mt-box svg.i { width: 18px; height: 18px; flex: none; } .mt-load { color: var(--muted); }
.mt-aviso { display: flex; gap: 8px; align-items: center; color: var(--danger); font-weight: 700; margin-top: 8px; } .mt-aviso svg.i { width: 18px; height: 18px; }
.btn.danger[disabled] { opacity: .45; }
.mt-hist { display: grid; gap: 8px; }
.mt-h { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--blue-50); border: 1px solid var(--line); flex-wrap: wrap; }
.mt-hi { font-size: 22px; } .mt-h > div { display: grid; flex: 1; min-width: 200px; } .mt-h small { color: var(--muted); }
.mt-hw { display: grid; text-align: right; } @media (max-width: 600px) { .mt-hw { text-align: left; } }

/* ---------- editar mensagem / figurinhas ---------- */
.msg .tm { align-items: center; }
.msg-ed { border: 0; background: transparent; padding: 0 4px; font-size: 12px; line-height: 1; opacity: 0; cursor: pointer; border-radius: 6px; transition: opacity .12s; }
.msg:hover .msg-ed, .msg-ed:focus-visible { opacity: .9; } .msg-ed:hover { background: rgba(255,255,255,.22); }
@media (hover: none) { .msg-ed { opacity: .75; } }
.ed-tag { font-style: italic; opacity: .85; font-size: 11px; }
.ed-av { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; } .ed-av input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--blue-500); flex: none; }
.stk-save { display: block; margin: 4px 0 0; border: 1px solid var(--line); background: var(--card); color: var(--blue-600); font-weight: 700; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; box-shadow: 0 4px 10px -6px rgba(7,59,120,.3); }
.stk-save:hover:not(:disabled) { background: var(--blue-100); } .stk-save:disabled { color: var(--ok); opacity: .9; }
.stk-btn { font-size: 20px; line-height: 1; padding: 0; }
.stk-panel { background: var(--card); border-top: 1px solid var(--line); padding: 8px 10px 10px; max-height: 44vh; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 -12px 28px -18px rgba(7,59,120,.35); }
.stk-tabs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.stk-tabs button { border: 1px solid var(--line); background: var(--blue-50); color: var(--text); font-weight: 700; font-size: 13px; padding: 7px 13px; border-radius: 999px; }
.stk-tabs button.on { background: var(--blue-500); color: #fff; border-color: transparent; } .stk-add { margin-left: auto; color: var(--blue-600) !important; border-style: dashed !important; background: transparent !important; }
.stk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; overflow-y: auto; min-height: 90px; padding: 2px; overscroll-behavior: contain; }
.stk-i { aspect-ratio: 1; border: 1px solid transparent; background: var(--blue-50); border-radius: 14px; display: grid; place-items: center; padding: 6px; transition: transform .1s, border-color .1s, background .1s; }
.stk-i:hover { transform: scale(1.06); border-color: var(--blue-400); background: var(--blue-100); } .stk-i img { width: 100%; height: 100%; object-fit: contain; }
.stk-e { font-size: 38px; line-height: 1; }
.stk-vazio { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 22px 10px; line-height: 1.5; }

/* ================= identidade visual: azul da marca (11, 102, 195) ================= */
:root { --grad: linear-gradient(135deg, #0d70d6 0%, #0b66c3 55%, #0a5cb0 100%); --blue-400: #3b8fdc; --blue-700: #0a5cb0; --blue-800: #084a8f; --blue-900: #063a70; }

/* ---------- balões da conversa: altura justa ao texto ---------- */
.msgs { padding: 14px 12px; gap: 6px; }
.msg { white-space: normal; padding: 7px 11px 5px; line-height: 1.38; border-radius: 15px; max-width: 84%; }
.msg .mtx { white-space: pre-wrap; }
.msg .by { font-size: 11.5px; margin-bottom: 1px; }
.msg .tm { font-size: 10.5px; margin-top: 1px; line-height: 1.2; gap: 5px; }
.msg audio { height: 36px; display: block; } .msg video { display: block; }
.chat-h { padding: 10px 14px; gap: 10px; padding-top: calc(10px + env(safe-area-inset-top)); }
.chat-h .avatar { width: 40px; height: 40px; border-radius: 50%; }
.chat-h .iconbtn { width: 40px; height: 40px; }
.chat-acts { padding: 8px 12px; gap: 6px; }
.chat-acts .btn { padding: 6px 12px; }
.composer { padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 6px; }
.composer textarea { padding: 9px 13px; line-height: 1.35; border-radius: 20px; }
.composer .btn { height: 40px; width: 40px; border-radius: 50%; }

/* ---------- menu lateral (computador/tablet) ---------- */
.nav a { border-radius: 14px; transition: background .15s, color .15s, transform .15s; }
.nav a.on { background: rgba(255,255,255,.2); box-shadow: inset 3px 0 0 #fff, 0 10px 20px -12px rgba(0,0,0,.4); }
.nav a:hover:not(.on) { transform: translateX(2px); }

/* ---------- menu do celular / app instalado: dock flutuante premium ---------- */
@media (max-width: 900px) {
  .mobile-nav { left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); padding: 6px; gap: 4px; border-radius: 26px; justify-content: flex-start;
    background: rgba(255,255,255,.98); border: 1px solid rgba(11,102,195,.14); box-shadow: 0 20px 44px -14px rgba(8,74,143,.5), 0 4px 12px -4px rgba(8,74,143,.2); }
  .mobile-nav a { flex: 1 0 auto; min-width: 64px; gap: 3px; padding: 8px 6px 7px; border-radius: 20px; font-size: 10.5px; font-weight: 700; color: #6b7a99; letter-spacing: .1px; transition: background .18s, color .18s, transform .18s; -webkit-tap-highlight-color: transparent; }
  .mobile-nav a svg.i { width: 22px; height: 22px; transition: transform .18s; }
  .mobile-nav a:active { transform: scale(.94); }
  .mobile-nav a.on { color: #fff; background: var(--grad); box-shadow: 0 10px 20px -8px rgba(11,102,195,.85), inset 0 1px 0 rgba(255,255,255,.25); }
  .mobile-nav a.on svg.i { transform: translateY(-1px) scale(1.08); }
  .mobile-nav .badge { top: 1px; right: 12px; border: 2px solid #fff; padding: 0 5px; min-width: 18px; text-align: center; font-size: 10px; box-shadow: 0 4px 8px -2px rgba(240,68,56,.6); }
  .mobile-nav a.on .badge { border-color: transparent; }
  .content { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
  .toasts { bottom: calc(98px + env(safe-area-inset-bottom)); }
  .topbar { border-bottom: 0; box-shadow: 0 10px 26px -18px rgba(8,74,143,.45); background: rgba(255,255,255,.98); }
  .topbar h1 { font-size: 17px; letter-spacing: -.2px; }
}
@media (display-mode: standalone) {
  body { overscroll-behavior-y: none; -webkit-user-select: none; user-select: none; }
  input, textarea, .msg, .mtx { -webkit-user-select: text; user-select: text; }   /* no app instalado não seleciona texto sem querer, mas conversa e campos continuam selecionáveis */
}

/* ================= RADAR: visual "sala de controle" (azul radar, vidro e neon) ================= */
.radar { --ok: #34e0a1; --warn: #ffc23d; --crit: #ff5d6c; --azul: #38bdf8; --ciano: #22d3ee; border-radius: 28px; padding: 24px;
  background:
    repeating-radial-gradient(circle at 94% -8%, rgba(34,211,238,.10) 0 1px, transparent 1px 84px),
    radial-gradient(1000px 560px at 0% 0%, rgba(14,140,255,.34), transparent 60%),
    radial-gradient(900px 560px at 100% 100%, rgba(0,224,200,.20), transparent 55%),
    linear-gradient(165deg, #010a1c 0%, #03204a 52%, #04316b 100%);
  box-shadow: 0 40px 80px -30px rgba(1,10,28,.9), 0 0 0 1px rgba(56,189,248,.18), inset 0 1px 0 rgba(255,255,255,.1); }
.radar::before { background-image: linear-gradient(rgba(56,189,248,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(56,189,248,.06) 1px, transparent 1px); background-size: 46px 46px; }
.radar::after { content: ""; position: absolute; right: -380px; top: -520px; width: 980px; height: 980px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: conic-gradient(from 0deg, rgba(34,211,238,0) 0deg, rgba(34,211,238,.20) 55deg, rgba(34,211,238,0) 56deg); animation: rdsweep 9s linear infinite; will-change: transform; }
@keyframes rdsweep { to { transform: rotate(360deg); } }
.radar > * { position: relative; z-index: 1; }

/* cabeçalho */
.rd-ico { width: 58px; height: 58px; border-radius: 18px; background: linear-gradient(145deg, #1d9bff, #0b66c3); box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 14px 32px -8px rgba(34,160,255,.95), 0 0 28px -2px rgba(34,211,238,.55), inset 0 1px 0 rgba(255,255,255,.4); }
.rd-ico svg.i { width: 30px; height: 30px; }
.rd-title h2 { font-size: 25px; letter-spacing: -.5px; text-shadow: 0 0 22px rgba(56,189,248,.45); } .rd-title small { color: #7fd2ff; font-weight: 600; letter-spacing: .3px; }
.rd-live { background: rgba(52,224,161,.14); border-color: rgba(52,224,161,.5); color: #7ff5c6; box-shadow: 0 0 22px -6px rgba(52,224,161,.6); }
.rd-lim { background: rgba(255,194,61,.1); border-color: rgba(255,194,61,.4); color: #ffd98a; font-weight: 800; }
.rd-lim.off { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #8fb3d9; }
.rd-btn { background: rgba(56,189,248,.1); border-color: rgba(56,189,248,.3); color: #cfeaff; font-weight: 700; }
.rd-btn:hover { background: rgba(56,189,248,.22); box-shadow: 0 0 18px -4px rgba(56,189,248,.6); }

/* indicadores */
.rd-kpis { gap: 16px; margin-bottom: 20px; }
.rd-kpi { position: relative; padding: 18px 20px 16px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, rgba(56,189,248,.16), rgba(56,189,248,.04)); border: 1px solid rgba(56,189,248,.28); backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 18px 34px -22px rgba(0,0,0,.8); transition: transform .18s, box-shadow .18s, border-color .18s; }
.rd-kpi::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--kc, #22d3ee), transparent); }
.rd-kpi::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--kc, #22d3ee) 35%, transparent), transparent 70%); pointer-events: none; }
.rd-kpi:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--kc, #22d3ee) 60%, transparent); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 22px 40px -20px color-mix(in srgb, var(--kc, #22d3ee) 55%, #000); }
.rd-kpi.k1 { --kc: #ffc23d; } .rd-kpi.k2 { --kc: #38bdf8; } .rd-kpi.k3 { --kc: #34e0a1; } .rd-kpi.k4 { --kc: #ff7a59; } .rd-kpi.k5 { --kc: #a78bfa; }
.rd-ki { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; z-index: 1; font-style: normal; color: var(--kc); background: color-mix(in srgb, var(--kc) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--kc) 35%, transparent); }
.rd-ki svg.i { width: 18px; height: 18px; }
.rd-kpi span { color: #8cc9f5; letter-spacing: .9px; font-size: 11.5px; }
.rd-kpi b { font-size: 38px; text-shadow: 0 0 24px color-mix(in srgb, var(--kc, #22d3ee) 55%, transparent); }
.rd-kpi.k1 b { color: #ffc23d; } .rd-kpi.k2 b { color: #7dd3fc; } .rd-kpi.k3 b { color: #34e0a1; } .rd-kpi.k4 b { color: #ffd1c4; } .rd-kpi.k5 b { color: #d4c5ff; }
.rd-kpi b.ok { color: #34e0a1; } .rd-kpi b.warn { color: #ffc23d; } .rd-kpi b.crit { color: #ff6b78; }

/* colunas */
.rd-col { border-radius: 24px; padding: 18px 14px 14px; background: linear-gradient(180deg, rgba(56,189,248,.09), rgba(56,189,248,.025)); border: 1px solid rgba(56,189,248,.22); box-shadow: 0 24px 44px -28px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.07); position: relative; }
.rd-col::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; border-radius: 0 0 6px 6px; background: var(--cc, #38bdf8); box-shadow: 0 0 18px var(--cc, #38bdf8); }
.rd-col.fila { --cc: #ffc23d; } .rd-col.atend { --cc: #38bdf8; } .rd-col.feito { --cc: #34e0a1; }
.rd-col h3 { font-size: 16px; padding: 4px 4px 14px; letter-spacing: .2px; }
.rd-col h3 b { background: color-mix(in srgb, var(--cc) 18%, transparent); color: var(--cc); border: 1px solid color-mix(in srgb, var(--cc) 40%, transparent); font-weight: 800; }
.rd-col .dot { width: 12px; height: 12px; box-shadow: 0 0 14px currentColor, 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent); }
.rd-col.fila.has { border-color: rgba(255,194,61,.6); }

/* cartões dos clientes */
.rd-card { border-radius: 18px; padding: 14px 15px 13px 18px; background: linear-gradient(160deg, rgba(56,189,248,.14), rgba(255,255,255,.04)); border: 1px solid rgba(56,189,248,.24); box-shadow: 0 14px 26px -18px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.1); transition: transform .16s, border-color .16s, box-shadow .16s; }
.rd-card::before { width: 5px; box-shadow: 0 0 14px var(--lv, #38bdf8); }
.rd-card.click:hover { transform: translateY(-3px); border-color: rgba(125,211,252,.6); box-shadow: 0 20px 34px -18px rgba(0,0,0,.95), 0 0 24px -8px rgba(56,189,248,.5); }
.rd-av { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(145deg, rgba(56,189,248,.4), rgba(11,102,195,.5)); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.rd-nm b { font-size: 15px; } .rd-nm small { color: #8cc9f5; }
.rd-timer { font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.rd-timer.sm { font-size: 21px; }
.rd-prev { background: rgba(1,10,28,.5); border: 1px solid rgba(56,189,248,.14); color: #bfe1fb; }
.rd-sec { background: color-mix(in srgb, var(--c) 24%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.rd-bar { height: 6px; background: rgba(255,255,255,.1); } .rd-bar i { box-shadow: 0 0 12px var(--lv); }
.rd-card.azul { --lv: #38bdf8; } .rd-card.verde { --lv: #34e0a1; }
.rd-empty { color: #7fb8e3; border: 1.5px dashed rgba(56,189,248,.22); border-radius: 18px; margin: 4px; }
.rd-empty svg.i { color: #38bdf8; opacity: .8; }
@media (max-width: 900px) {
  .radar { padding: 16px; border-radius: 22px; }
  .radar::after { display: none; }                  /* sem o giro do radar no celular (mais leve) */
  .rd-kpi b { font-size: 30px; } .rd-ki { width: 30px; height: 30px; right: 10px; top: 10px; }
  .rd-ico { width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) { .radar::after { animation: none; } }
.rd-card[data-fila] { background: linear-gradient(160deg, color-mix(in srgb, var(--lv, #34e0a1) calc(var(--f, 0) * 34%), rgba(56,189,248,.14)), rgba(255,255,255,.04)); border-color: color-mix(in srgb, var(--lv, #34e0a1) calc(var(--f, 0) * 75%), rgba(56,189,248,.24)); }
.rd-card[data-fila].crit { box-shadow: 0 0 0 1px rgba(255,93,108,.6), 0 0 30px -6px rgba(255,93,108,.7); }

/* ---------- Radar: pesquisa dos atendidos + relatório do cliente ---------- */
.rd-search { position: relative; margin: 0 2px 12px; }
.rd-search svg.i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #7dd3fc; pointer-events: none; }
.rd-search input { width: 100%; padding: 11px 38px 11px 40px; border-radius: 14px; border: 1px solid rgba(56,189,248,.3); background: rgba(1,10,28,.55); color: #eaf6ff; outline: none; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.rd-search input::placeholder { color: #6fa8d0; } .rd-search input::-webkit-search-cancel-button { display: none; }
.rd-search input:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,.22), 0 0 22px -6px rgba(56,189,248,.6); }
.rd-search button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 9px; background: rgba(255,255,255,.1); color: #cfeaff; display: grid; place-items: center; }
.rd-search button svg.i { position: static; transform: none; width: 15px; height: 15px; color: inherit; }
.rd-card[data-feito].click { cursor: pointer; }
.rd-card[data-feito] .rd-nm b::after { content: "  ›"; color: #7dd3fc; font-weight: 800; opacity: 0; transition: opacity .15s, transform .15s; display: inline-block; }
.rd-card[data-feito]:hover .rd-nm b::after { opacity: 1; transform: translateX(3px); }

.rl-modal .modal { max-width: 680px; }
.rl { display: grid; gap: 18px; }
.rl-h { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, #084a8f, #0b66c3); color: #fff; }
.rl-h .rd-av { width: 44px; height: 44px; background: rgba(255,255,255,.2); } .rl-h > div { min-width: 0; flex: 1; display: grid; } .rl-h b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rl-h small { color: #cfe6ff; }
.rl-st { padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); }
.rl-st.ok { background: rgba(52,224,161,.25); border-color: rgba(52,224,161,.6); } .rl-st.crit { background: rgba(255,93,108,.28); border-color: rgba(255,93,108,.6); } .rl-st.warn { background: rgba(255,194,61,.28); border-color: rgba(255,194,61,.6); }
.rl section { display: grid; gap: 10px; }
.rl h4 { font-size: 12px; letter-spacing: .9px; text-transform: uppercase; color: var(--blue-600); }
.rl-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rl-i { display: grid; gap: 1px; padding: 10px 12px; border-radius: 13px; background: var(--blue-50); border: 1px solid var(--line); min-width: 0; align-content: start; }
.rl-i small { color: var(--muted); font-size: 11.5px; font-weight: 700; } .rl-i b { font-size: 15.5px; overflow-wrap: anywhere; } .rl-i em { font-style: normal; font-size: 11px; color: var(--muted); line-height: 1.25; } .rl-sm { font-size: 13px; font-weight: 700; }
.rl-freq { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rl-freq div { display: grid; justify-items: center; padding: 10px 6px; border-radius: 14px; background: linear-gradient(160deg, #0b66c3, #0a5cb0); color: #fff; box-shadow: 0 10px 20px -12px rgba(11,102,195,.8); }
.rl-freq b { font-size: 26px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; } .rl-freq small { font-size: 11px; opacity: .85; font-weight: 700; }
.rl-mot { color: var(--muted); font-size: 13px; }
@media (max-width: 600px) { .rl-g { grid-template-columns: 1fr 1fr; } .rl-freq b { font-size: 22px; } }

/* ---------- janelas, conversa, menu e avisos dentro do Radar em tela cheia ---------- */
/* (a regra ".radar > *" do Radar deixava esses elementos "relative" e eles perdiam o position: fixed) */
.radar > .modal-ov, .radar > .chat-ov, .radar > .ed-ov, .radar > .menu, .radar > .toasts { position: fixed; }
.radar > .modal-ov { z-index: 70; } .radar > .chat-ov { z-index: 65; } .radar > .ed-ov { z-index: 80; } .radar > .menu { z-index: 75; } .radar > .toasts { z-index: 90; }
.radar > .modal-ov, .radar > .chat-ov, .radar > .ed-ov { inset: 0; }

/* ---------- janelas dentro do Radar: o Radar tem texto claro e as janelas (fundo branco) herdavam essa cor ficando "vazias" ---------- */
.modal-ov, .modal, .chat, .menu { color: var(--text); }
.modal-ov { font: inherit; }
.radar .modal, .radar .chat, .radar .menu { color: var(--text); text-shadow: none; }
.radar .modal .hint, .radar .chat .hint { color: var(--muted); }
.radar .modal b, .radar .modal h3, .radar .modal h4 { text-shadow: none; }
.rl, .rl-i b { color: var(--text); } .rl-h, .rl-h b, .rl-freq div { color: #fff; } .rl-h small { color: #cfe6ff; } .rl-i small, .rl-i em, .rl-mot { color: var(--muted); } .rl h4 { color: var(--blue-600); }

/* ---------- mensagens automáticas (⚡) ---------- */
.rap-btn { color: #f59e0b; } .rap-btn svg.i { width: 20px; height: 20px; fill: #fbbf24; stroke: #f59e0b; }
.rap-top { display: flex; gap: 8px; align-items: center; } .rap-top .ib-search { flex: 1; min-width: 0; max-width: none; } .rap-top .ib-search input { padding: 9px 12px 9px 40px; }
.rap-lista { display: grid; gap: 6px; overflow-y: auto; max-height: 34vh; overscroll-behavior: contain; padding: 2px; }
.rap-i { display: grid; gap: 2px; text-align: left; padding: 10px 13px; border-radius: 14px; border: 1px solid var(--line); background: var(--blue-50); transition: border-color .12s, background .12s, transform .1s; }
.rap-i:hover { border-color: var(--blue-500); background: var(--blue-100); transform: translateX(2px); }
.rap-i b { font-size: 14px; } .rap-i span { color: var(--muted); font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.rap-prev { margin-top: 8px; padding: 12px 14px; border-radius: 14px; background: var(--blue-50); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; max-height: 40vh; overflow-y: auto; }
.rap-prev small { display: block; color: var(--blue-600); font-weight: 800; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 4px; }
@media (max-width: 420px) { .composer .btn { width: 38px; height: 38px; } .composer { gap: 4px; } }

/* ---------- Meu perfil > Mensagens Automáticas ---------- */
.perfil-cfg { padding: 18px 20px; display: grid; gap: 12px; } .perfil-cfg h2 { font-size: 17px; }
.perfil-cfg .cfg-item { box-shadow: none; background: var(--blue-50); }
.ma-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .ma-tools .ib-search { flex: 1; min-width: 200px; } .ma-cnt { color: var(--muted); font-weight: 600; }
.ma-lista { display: grid; gap: 10px; }
.ma-i { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 8px 18px -14px rgba(8,74,143,.35); transition: border-color .12s, transform .12s; }
.ma-i:hover { border-color: color-mix(in srgb, var(--blue-500) 40%, var(--line)); transform: translateY(-1px); }
.ma-tx { flex: 1; min-width: 0; display: grid; gap: 4px; } .ma-tx b { font-size: 15.5px; } .ma-tx p { color: var(--muted); font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ma-ac { display: flex; gap: 6px; flex: none; } .ma-ac .btn svg.i { width: 15px; height: 15px; }
.ma .hr-hero .btn-new { margin-left: auto; }
@media (max-width: 600px) { .ma-i { flex-direction: column; } .ma-ac { width: 100%; } .ma-ac .btn { flex: 1; } .ma .hr-hero .btn-new { width: 100%; justify-content: center; } }

/* ---------- foto do atendente no cadastro ---------- */
.cad-nm { display: flex; align-items: center; gap: 12px; min-width: 0; } .cad-nm b { overflow: hidden; text-overflow: ellipsis; }
.cad-av { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; font-weight: 800; font-size: 14px; color: #fff; background: linear-gradient(145deg, #3d8fe0, #0b66c3); box-shadow: 0 6px 14px -6px rgba(11,102,195,.7); }
.cad-av.has-foto { background: #fff; box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--line), 0 6px 14px -6px rgba(11,102,195,.5); }
.cad-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cad-av.big { width: 76px; height: 76px; font-size: 26px; }
.cad-top:empty { display: none; }
.cad-foto { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 14px; border-radius: 16px; background: var(--blue-50); border: 1px solid var(--line); }
.cad-foto > div:last-child { display: grid; min-width: 0; } .cad-foto b { font-size: 16px; } .cad-foto small { color: var(--muted); }

/* ---------- identificação do atendente para o cliente ---------- */
.cad-id { display: grid; min-width: 0; line-height: 1.25; } .cad-id small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.id-prev { display: grid; gap: 6px; padding: 12px 14px; margin: 0 0 14px; border-radius: 16px; background: #e5ddd5; } .id-prev small { color: #54656f; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; font-size: 10.5px; }
.id-bolha { justify-self: start; display: grid; max-width: 92%; padding: 8px 12px; border-radius: 4px 14px 14px 14px; background: #fff; color: #111b21; font-size: 14.5px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.12); }
.id-bolha b { font-weight: 800; } .id-cg { color: #111b21; }
.id-cab { display: block; }
.id-linha { display: block; color: #8696a0; letter-spacing: 0; overflow: hidden; white-space: nowrap; line-height: 1.2; margin: 1px 0 2px; }

/* ---------- modelos de horário e datas especiais ---------- */
.mo-nome { flex: 1; min-width: 0; padding: 10px 13px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-weight: 800; font-size: 15px; outline: none; }
.mo-nome:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(11,102,195,.14); }
.mo-fechado { display: inline-block; justify-self: start; padding: 6px 14px; border-radius: 999px; background: #fde8e6; color: #b42318; font-weight: 800; font-size: 13px; }
.mo-acoes { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .mo-uso { color: var(--muted); font-weight: 600; margin-left: auto; }
.ex-bts { display: flex; gap: 8px; flex-wrap: wrap; }
.ex { display: grid; grid-template-columns: 150px 150px minmax(160px, 1.2fr) minmax(170px, 1fr) auto 40px; gap: 10px 12px; align-items: end; padding: 14px; margin-bottom: 10px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--blue-50); }
.ex label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); min-width: 0; } .ex label small { font-weight: 600; }
.ex input:not([type=checkbox]), .ex select { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); font-size: 14.5px; outline: none; }
.ex input:focus, .ex select:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(11,102,195,.14); }
.ex .ex-rep { display: flex; align-items: center; gap: 8px; padding: 11px 4px; white-space: nowrap; color: var(--text); font-size: 13.5px; } .ex .ex-rep input { width: 17px; height: 17px; accent-color: var(--blue-500); }
.ex-res { grid-column: 1 / -1; color: var(--blue-600); font-weight: 700; font-size: 13px; padding-left: 2px; }
@media (max-width: 900px) { .ex { grid-template-columns: 1fr 1fr; } .ex .ex-desc, .ex-res { grid-column: 1 / -1; } .ex .ex-rep { grid-column: 1 / 2; } .ex .hr-x { justify-self: end; } }
.ib-lock { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: #fef0c7; color: #93370d; border: 1px solid #f5d27a; }
.rd-pausa { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; margin-bottom: 16px; background: rgba(255,194,61,.12); border: 1px solid rgba(255,194,61,.5); color: #ffe0a0; line-height: 1.4; }
.rd-pausa svg.i { width: 22px; height: 22px; flex: none; color: #ffc23d; } .rd-pausa b { color: #fff; }

/* ---------- Base de Conhecimento (página própria) ---------- */
.kb-body { min-height: 100%; height: auto; background: var(--bg); }
.kb { max-width: 980px; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top)) 16px calc(40px + env(safe-area-inset-bottom)); display: grid; gap: 16px; }
.kb-hero { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 24px; border-radius: 26px; color: #eaf6ff; background: radial-gradient(700px 320px at 0% 0%, rgba(61,143,224,.5), transparent 62%), linear-gradient(165deg, #084a8f 0%, #0b66c3 60%, #1c7ad6 100%); box-shadow: 0 26px 50px -26px rgba(8,74,143,.8), inset 0 1px 0 rgba(255,255,255,.14); }
.kb-logo { width: 58px; height: 58px; border-radius: 50%; background: #fff; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45), 0 0 0 3px rgba(255,255,255,.3); flex: none; }
.kb-ht { flex: 1; min-width: 220px; } .kb-ht h1 { font-size: 26px; letter-spacing: -.6px; } .kb-ht p { color: #cfe6ff; margin-top: 3px; }
.kb-voltar { color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 9px 15px; border-radius: 12px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); }
.kb-voltar:hover { background: rgba(255,255,255,.24); }
.kb-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.kb-busca { flex: 1; min-width: 240px; max-width: none; }
.kb-busca input { padding: 15px 44px 15px 46px; border-radius: 18px; font-size: 16px; background: var(--card); box-shadow: 0 10px 24px -16px rgba(8,74,143,.45); }
.kb-busca button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); display: grid; place-items: center; }
.kb-busca button:hover { background: var(--blue-50); } .kb-busca button svg.i { position: static; transform: none; width: 18px; height: 18px; color: inherit; }
.kb-info { color: var(--muted); font-weight: 600; min-height: 4px; padding: 0 4px; }
.kb-lista { display: grid; gap: 14px; }
.kb-i { padding: 20px 22px 16px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(8,74,143,.05), 0 16px 32px -20px rgba(8,74,143,.3); display: grid; gap: 12px; position: relative; overflow: hidden; }
.kb-i::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, #0b66c3, #3d8fe0); }
.kb-i header { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; } .kb-i header > div:first-child { min-width: 0; }
.kb-i h2 { font-size: 19px; letter-spacing: -.3px; line-height: 1.25; overflow-wrap: anywhere; } .kb-i h3 { font-size: 14.5px; font-weight: 600; color: var(--blue-600); margin-top: 3px; overflow-wrap: anywhere; }
.kb-adm { display: flex; gap: 6px; flex: none; } .kb-adm .btn svg.i { width: 15px; height: 15px; }
.kb-txt { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; color: var(--text); }
.kb-txt.curto { display: -webkit-box; -webkit-line-clamp: 7; line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.kb-mais { justify-self: start; border: 0; background: transparent; color: var(--blue-600); font-weight: 800; padding: 2px 0; }
.kb-i footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .kb-i footer small { color: var(--muted); }
.kb-video { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; text-decoration: none; font-weight: 800; color: #fff; background: linear-gradient(135deg, #0b66c3, #3d8fe0); box-shadow: 0 10px 20px -10px rgba(11,102,195,.8); }
.kb-video svg.i { width: 16px; height: 16px; fill: #fff; } .kb-video:hover { filter: brightness(1.06); }
.kb mark { background: rgba(247,144,9,.3); color: inherit; border-radius: 4px; padding: 0 2px; }
.kb-aviso { display: grid; gap: 10px; justify-items: start; padding: 26px; } .kb-aviso b { font-size: 18px; } .kb-aviso span { color: var(--muted); }
@media (max-width: 700px) { .kb-hero { padding: 18px; border-radius: 22px; } .kb-ht h1 { font-size: 22px; } .kb-i { padding: 16px 16px 14px 20px; } .kb-i header { flex-direction: column; } .kb-adm { width: 100%; } .kb-adm .btn { flex: 1; } .kb-tools .btn-new { width: 100%; justify-content: center; } }

/* ================= SPLASH: tela de abertura (aparece antes do JavaScript carregar) ================= */
.splash { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; color: #eaf6ff; overflow: hidden;
  background: radial-gradient(900px 600px at 18% -10%, #1c7ad6 0%, transparent 60%), radial-gradient(800px 560px at 100% 110%, #19b6d3 0%, transparent 55%), linear-gradient(160deg, #063a70 0%, #0b66c3 62%, #0a5cb0 100%);
  transition: opacity .55s ease, transform .55s ease, visibility .55s; }
.splash::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 52px 52px; -webkit-mask-image: radial-gradient(ellipse at center, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse at center, #000 15%, transparent 72%); }
.splash.saindo { opacity: 0; transform: scale(1.04); visibility: hidden; pointer-events: none; }
.sp-bg i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: spdrift 12s ease-in-out infinite alternate; }
.sp-bg i:nth-child(1) { width: 380px; height: 380px; background: #3d8fe0; left: -110px; top: -90px; }
.sp-bg i:nth-child(2) { width: 320px; height: 320px; background: #19d3c5; right: -90px; bottom: -70px; opacity: .32; animation-delay: -4s; }
.sp-bg i:nth-child(3) { width: 240px; height: 240px; background: #7a9cff; left: 58%; top: 6%; opacity: .25; animation-delay: -8s; }
@keyframes spdrift { to { transform: translate(50px, 36px) scale(1.15); } }
.sp-center { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; padding: 24px; text-align: center; width: min(420px, 100%); }
.sp-logo { position: relative; width: 112px; height: 112px; margin-bottom: 14px; display: grid; place-items: center; animation: spfloat 3.2s ease-in-out infinite; }
.sp-logo img { position: relative; width: 100%; height: 100%; border-radius: 50%; background: #fff; box-shadow: 0 24px 50px -12px rgba(0,0,0,.5), 0 0 0 5px rgba(255,255,255,.22), 0 0 46px -4px rgba(61,143,224,.9); }
.sp-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); animation: spring 2.4s ease-out infinite; }
.sp-ring.r2 { animation-delay: 1.2s; }
@keyframes spring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
@keyframes spfloat { 50% { transform: translateY(-7px); } }
.splash h1 { font-size: 30px; letter-spacing: -.7px; font-weight: 800; animation: spup .7s .1s both cubic-bezier(.2,.8,.2,1); }
.sp-sub { color: #b9d9f7; letter-spacing: 3.2px; text-transform: uppercase; font-size: 12px; font-weight: 700; animation: spup .7s .22s both cubic-bezier(.2,.8,.2,1); }
@keyframes spup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sp-prog { width: min(280px, 78%); height: 6px; margin-top: 26px; border-radius: 99px; background: rgba(255,255,255,.16); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.25); }
.sp-prog i { display: block; width: 8%; height: 100%; border-radius: 99px; position: relative; overflow: hidden; background: linear-gradient(90deg, #7fd0ff, #ffffff); box-shadow: 0 0 14px rgba(127,208,255,.9); transition: width .55s cubic-bezier(.2,.8,.2,1); }
.sp-prog i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent); transform: translateX(-100%); animation: spshine 1.3s ease-in-out infinite; }
@keyframes spshine { to { transform: translateX(100%); } }
#sp-msg { margin-top: 10px; min-height: 18px; color: #cfe6ff; font-size: 13.5px; font-weight: 600; }
.sp-foot { position: absolute; z-index: 1; left: 0; right: 0; bottom: calc(20px + env(safe-area-inset-bottom)); text-align: center; color: rgba(207,230,255,.7); font-size: 12px; letter-spacing: .4px; }
@media (max-width: 480px) { .sp-logo { width: 96px; height: 96px; } .splash h1 { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .sp-bg i, .sp-logo, .sp-ring, .sp-prog i::after, .splash h1, .sp-sub { animation: none; } }

/* ---------- Base de Conhecimento no app instalado (PWA): barra com botão Voltar ---------- */
.kb-bar { display: none; }
.pwa .kb-bar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 30; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); box-shadow: 0 10px 26px -18px rgba(8,74,143,.5); }
.pwa .kb-bar b { font-size: 16px; letter-spacing: -.2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-back { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px 0 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--blue-50); color: var(--blue-600); font-weight: 800; font-size: 15px; flex: none; -webkit-tap-highlight-color: transparent; }
.kb-back svg.i { width: 22px; height: 22px; stroke-width: 2.4; } .kb-back:active { transform: scale(.96); background: var(--blue-100); }
.pwa .kb { padding-top: 14px; }
.pwa .kb-voltar { display: none; }   /* o botão Voltar da barra substitui o link do cabeçalho */
/* ---------- visualizador de imagem/PDF do chat (zoom + girar) ---------- */
.vz-ov { position: fixed; inset: 0; z-index: 85; display: flex; flex-direction: column; background: rgba(8,14,26,.94); color: #fff; }
.vz-top { display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; background: rgba(255,255,255,.07); }
.vz-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; font-size: 14px; }
.vz-top button, .vz-b { min-width: 40px; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.vz-top button:hover, .vz-b:hover { background: rgba(255,255,255,.22); }
.vz-top button[data-reset] { font-size: 13px; font-weight: 700; }
.vz-pc { min-width: 48px; text-align: center; font-size: 13px; font-weight: 700; }
.vz-stage { flex: 1; min-height: 0; position: relative; overflow: hidden; display: grid; place-items: center; touch-action: none; cursor: grab; }
.vz-img { max-width: 96%; max-height: 96%; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: transform .12s ease-out; will-change: transform; }
.vz-pdf { border: 0; background: #fff; transition: transform .2s ease; }
.vz-load { color: #cbd5e1; padding: 24px; text-align: center; } .vz-load a { color: #7cc4ff; }
@media (max-width: 640px) { .vz-nm { max-width: 22vw; } .vz-top { gap: 6px; } .vz-top button, .vz-b { min-width: 36px; padding: 0 8px; } }

/* ---------- Auditoria Interna ---------- */
.au-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.au-tabs button { padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-weight: 700; cursor: pointer; }
.au-tabs button.on { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.au-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.au-form .field input, .au-form .field select, .au-novo .field input, .au-novo .field select { width: 100%; }
@media (max-width: 720px) { .au-form, .au-novo { grid-template-columns: 1fr 1fr; } .au-form .btn, .au-novo .btn { grid-column: 1 / -1; } }
.au-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.au-sum > div { padding: 12px 14px; border-radius: 14px; background: var(--blue-50); display: grid; } .au-sum b { font-size: 24px; } .au-sum small { color: var(--muted); }
.au-sum .bad { background: #fde8e6; color: #b42318; } .au-sum .good { background: #d9f6e8; color: #067647; }
.au-ok { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: #d9f6e8; color: #067647; font-weight: 600; } .au-ok svg.i { width: 20px; height: 20px; }
.au-h { margin: 6px 0 0; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.au-por { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .au-por li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 12px; border-radius: 12px; background: var(--blue-50); } .au-por li span:not(.pill) { color: var(--muted); font-size: 13px; }
.au-lista { display: grid; gap: 12px; }
.au-card { border: 1px solid var(--line); border-left: 5px solid var(--muted); border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; background: var(--card); }
.au-card.grave { border-left-color: var(--danger); } .au-card.atencao { border-left-color: var(--warn); }
.au-card > header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .au-who { display: grid; min-width: 0; } .au-who small { color: var(--muted); }
.au-hit { display: grid; gap: 4px; padding: 10px; border-radius: 12px; background: var(--blue-50); }
.au-hit.sinal { background: #fff7e6; }
.au-hit-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .au-hit-h small { color: var(--muted); }
.au-msg { max-width: 88%; padding: 6px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.au-msg.atendente { justify-self: end; background: #e1eefb; } .au-msg small { color: var(--muted); font-size: 11px; } .au-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.au-msg mark { background: #ffd8d4; color: #b42318; font-weight: 800; border-radius: 4px; padding: 0 2px; }
.au-novo { display: grid; grid-template-columns: 2fr 1.5fr 1.2fr auto; gap: 12px; align-items: end; }
.au-gr { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; } .au-gr summary { display: flex; align-items: center; gap: 10px; cursor: pointer; flex-wrap: wrap; } .au-gr summary small { color: var(--muted); }
.au-fr { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.au-fr li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 0; border-top: 1px dashed var(--line); } .au-fr li span { flex: 1; min-width: 120px; } .au-fr li small { color: var(--muted); }
.au-fr li.off span { text-decoration: line-through; opacity: .55; } .au-fr li.vazio { color: var(--muted); }
/* ajuste de alinhamento da Auditoria: campos sem margem inferior e controles com a mesma altura */
.au-form, .au-novo { align-items: end; }
.au-form .field, .au-novo .field { margin-bottom: 0; min-width: 0; }
.au-form .field input, .au-form .field select, .au-novo .field input, .au-novo .field select { height: 44px; box-sizing: border-box; }
.au-form > .btn, .au-novo > .btn { height: 44px; box-sizing: border-box; padding: 0 22px; white-space: nowrap; }
.au-form { grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(180px, 1.4fr) auto; }
.au-novo { grid-template-columns: minmax(180px, 2fr) minmax(160px, 1.4fr) minmax(140px, 1fr) auto; }
.au-tabs { margin-bottom: 2px; }
.au-tabs button { min-height: 44px; }
.au-sum, .au-por, .au-lista { margin-top: 2px; }
.au-card > header .btn { height: 36px; }
@media (max-width: 900px) { .au-form, .au-novo { grid-template-columns: 1fr 1fr; } .au-form > .btn, .au-novo > .btn { grid-column: 1 / -1; width: 100%; } .au-sum { grid-template-columns: 1fr; } }
/* ---------- cartão de arquivo recebido (certificado digital etc.) ---------- */
.arq-card { display: flex; align-items: center; gap: 10px; min-width: 230px; max-width: 100%; padding: 8px 10px; border-radius: 12px; background: rgba(11,102,195,.08); border: 1px solid rgba(11,102,195,.18); }
.arq-card.cert { background: #fff7e6; border-color: #f5d79a; }
.arq-card .arq-ic { font-size: 26px; flex: none; }
.arq-card .arq-tx { display: grid; min-width: 0; flex: 1; } .arq-card .arq-tx b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; } .arq-card .arq-tx small { color: var(--muted); }
.arq-card .btn { flex: none; white-space: nowrap; }
/* ---------- recados (post-it) do administrador ---------- */
.pi-pilha { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 95; display: grid; gap: 10px; width: min(340px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); overflow-y: auto; }
.pi-nota { background: #fff3a3; color: #4a3b00; border-radius: 6px 6px 14px 6px; padding: 12px 14px 12px; box-shadow: 0 14px 30px -10px rgba(60,45,0,.5), 0 2px 0 rgba(255,255,255,.5) inset; transform: rotate(-1deg); animation: pi-entra .35s cubic-bezier(.2,.9,.3,1.3) both; border-top: 6px solid #f2d230; }
.pi-nota.saindo { opacity: 0; transform: translateY(-8px) scale(.96); transition: all .2s; }
.pi-topo { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; } .pi-topo small { color: #7a6500; }
.pi-cli { font-size: 12px; color: #7a6500; margin-top: 2px; }
.pi-nota p { margin: 8px 0 10px; font-size: 15px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 600; }
.pi-bts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
@keyframes pi-entra { from { opacity: 0; transform: translateY(-16px) rotate(2deg) scale(.9); } to { opacity: 1; transform: rotate(-1deg); } }
.rec-faixa { display: grid; gap: 8px; padding: 8px 12px; background: var(--card); border-bottom: 1px solid var(--line); max-height: 34%; overflow-y: auto; flex: none; }
.rec-nota { background: #fff3a3; color: #4a3b00; border-left: 5px solid #f2d230; border-radius: 6px 12px 12px 6px; padding: 8px 12px; display: grid; gap: 4px; }
.rec-nota > div { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; } .rec-nota small { color: #7a6500; }
.rec-nota p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 600; }
.rec-nota .btn { justify-self: end; }
.rec-nota.lida { opacity: .62; }
.ib-rec { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #fff3a3; color: #7a5a00; font-size: 12px; font-weight: 700; }
/* ---------- responder / citar mensagem ---------- */
.msg-rp { border: 0; background: transparent; padding: 0 4px; font-size: 13px; line-height: 1; opacity: 0; cursor: pointer; border-radius: 6px; color: inherit; transition: opacity .12s; display: none; }
.msgs.resp-on .msg-rp { display: inline; }
.msg:hover .msg-rp, .msg-rp:focus-visible { opacity: .9; } .msg-rp:hover { background: rgba(127,127,127,.25); }
@media (hover: none) { .msg-rp { opacity: .7; } }
.msg-q { display: grid; gap: 1px; margin: 0 0 5px; padding: 5px 8px; border-left: 4px solid #19d3c5; border-radius: 6px; background: rgba(0,0,0,.12); cursor: pointer; max-width: 100%; }
.msg.in .msg-q { background: rgba(11,102,195,.09); border-left-color: var(--blue-600); }
.msg-q b { font-size: 11.5px; opacity: .85; } .msg-q span { font-size: 12.5px; opacity: .85; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.msg-q:hover { filter: brightness(.95); }
.msg.flash { animation: msg-flash 2.2s ease-out; }
@keyframes msg-flash { 0%, 35% { box-shadow: 0 0 0 4px rgba(247,144,9,.75), 0 0 22px rgba(247,144,9,.55); } 100% { box-shadow: 0 0 0 0 rgba(247,144,9,0); } }
.resp-bar { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--card); border-top: 1px solid var(--line); border-left: 4px solid #19d3c5; }
.resp-bar > div { display: grid; flex: 1; min-width: 0; } .resp-bar b { font-size: 12px; color: var(--blue-600); } .resp-bar span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resp-bar button { border: 0; background: transparent; font-size: 16px; cursor: pointer; padding: 4px 8px; color: var(--muted); }
/* ---------- responder: botão mais visível, citação de trecho e "aqui" clicável ---------- */
.msg-rp { opacity: 1 !important; padding: 2px 9px; font-size: 11.5px; font-weight: 800; border-radius: 999px; background: rgba(255,255,255,.28); color: inherit; border: 1px solid rgba(255,255,255,.4); }
.msg.in .msg-rp { background: var(--blue-100); color: var(--blue-700); border-color: rgba(11,102,195,.25); }
.msgs.resp-on .msg-rp { display: inline-flex; align-items: center; gap: 3px; }
.msg-rp:hover { filter: brightness(1.08); transform: translateY(-1px); }
.msg-q .q-trecho { font-size: 13.5px; opacity: 1; font-weight: 600; } .msg-q .q-trecho u { text-decoration-thickness: 2px; text-underline-offset: 2px; background: rgba(247,200,9,.35); padding: 0 2px; border-radius: 3px; }
.resp-bar u { text-decoration-thickness: 2px; background: rgba(247,200,9,.35); }
.msg-aqui { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; font-weight: 800; cursor: pointer; background: rgba(247,200,9,.35); border-radius: 3px; padding: 0 2px; color: inherit; }
.msg-aqui:hover { background: rgba(247,200,9,.6); }
mark.trecho-marca { background: #ffd54a; color: #3b2d00; border-radius: 4px; padding: 0 2px; box-shadow: 0 0 0 3px rgba(255,213,74,.55); animation: trecho-pulsa 1s ease-in-out 3; }
@keyframes trecho-pulsa { 50% { box-shadow: 0 0 0 6px rgba(255,213,74,.2); } }
.sel-citar { position: fixed; z-index: 90; padding: 7px 14px; border: 0; border-radius: 999px; background: var(--blue-600); color: #fff; font-weight: 800; font-size: 13px; box-shadow: 0 10px 24px -8px rgba(7,59,120,.6); cursor: pointer; }
.sel-citar.hidden { display: none; }
/* botão de responder: só o ícone, mas sempre visível e com área de toque boa */
.msg-rp { padding: 1px 8px; font-size: 15px; line-height: 1.2; font-weight: 700; min-width: 26px; justify-content: center; }
/* botão de responder: bem discreto (pequeno e fino), mas ainda visível */
.msg-rp { padding: 0 5px; font-size: 11px; line-height: 1.3; font-weight: 400; min-width: 0; border-width: 1px; }
.msgs.resp-on .msg-rp { gap: 0; }
/* ---------- atendimentos agrupados por atendente ---------- */
.ib-filtro { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--blue-700); font-weight: 700; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.ib-filtro:hover { background: var(--blue-50); border-color: var(--blue-300); } .ib-filtro svg.i { width: 18px; height: 18px; }
.ib-filtro.hidden { display: none; }
.ag { display: grid; gap: 14px; max-height: 68vh; overflow-y: auto; padding-right: 4px; }
.ag-res { margin: 0; color: var(--muted); } .ag-res b { color: var(--text); }
.ag-vazio { padding: 28px 12px; text-align: center; color: var(--muted); }
.ag-grupo { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.ag-grupo > header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--blue-50); border-bottom: 1px solid var(--line); } .ag-grupo > header b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-linhas { display: grid; }
.ag-linha { display: grid; grid-template-columns: minmax(150px, 1.6fr) repeat(3, minmax(90px, 1fr)) auto; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); } .ag-linha:first-child { border-top: 0; }
.ag-cli { display: grid; min-width: 0; } .ag-cli b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ag-cli small, .ag-col small { color: var(--muted); font-size: 11.5px; }
.ag-col { display: grid; } .ag-col span { font-weight: 600; font-size: 13.5px; }
@media (max-width: 720px) { .ag-linha { grid-template-columns: 1fr 1fr; } .ag-cli { grid-column: 1 / -1; } .ib-filtro { width: 100%; justify-content: center; } }
/* ---------- Auditoria de Clientes: histórico de conversas ---------- */
.au-clibusca { position: relative; margin-bottom: 0; }
.au-sug { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 300px; overflow-y: auto; }
.au-sug button { display: grid; width: 100%; text-align: left; padding: 9px 14px; border: 0; background: transparent; cursor: pointer; border-bottom: 1px solid var(--line); } .au-sug button:last-child { border-bottom: 0; }
.au-sug button:hover { background: var(--blue-50); } .au-sug small, .au-nada { color: var(--muted); } .au-nada { padding: 12px 14px; }
.au-chip { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1.5px solid var(--blue-300); border-radius: 12px; background: var(--blue-50); }
.au-chip.hidden, .au-sug.hidden { display: none; }
.au-chip > div { display: grid; flex: 1; min-width: 0; } .au-chip small { color: var(--muted); } .au-chip button { border: 0; background: transparent; color: var(--blue-600); font-weight: 700; cursor: pointer; }
.au-form2 { grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(220px, 2fr); }
.au-form3 { grid-template-columns: minmax(220px, 2fr) minmax(220px, 1.4fr) auto; }
.au-rapido > div { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; min-height: 44px; }
.au-seg { display: flex; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; height: 44px; box-sizing: border-box; }
.au-seg button { flex: 1; border: 0; background: var(--card); color: var(--muted); font-weight: 700; cursor: pointer; padding: 0 12px; white-space: nowrap; }
.au-seg button.on { background: var(--blue-600); color: #fff; }
@media (max-width: 900px) { .au-form2, .au-form3 { grid-template-columns: 1fr 1fr; } .au-form3 > .btn { grid-column: 1 / -1; } .au-rapido { grid-column: 1 / -1; } }
.au-aviso { margin: 0; padding: 10px 14px; border-radius: 12px; background: #fef0c7; color: #b54708; font-weight: 600; }
.au-ok.neutro { background: var(--blue-50); color: var(--blue-700); }
.cl-tempo { display: grid; gap: 16px; }
.cl-conv { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.cl-conv-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; background: var(--blue-50); border-bottom: 1px solid var(--line); }
.cl-conv-h > span:not(.pill):not(.cl-at) { color: var(--muted); font-size: 13px; } .cl-at { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; } .cl-at svg.i { width: 14px; height: 14px; }
.cl-resumo .cl-conv-h { background: transparent; border: 0; padding: 0; }
.cl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } .cl-grid small { color: var(--muted); display: block; } .cl-grid em { color: var(--muted); font-size: 12px; font-style: normal; display: block; }
@media (max-width: 720px) { .cl-grid { grid-template-columns: 1fr 1fr; } }
.cl-msgs { display: grid; gap: 6px; padding: 12px 14px; max-height: 560px; overflow-y: auto; }
.cl-dia { justify-self: center; font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--blue-50); padding: 2px 12px; border-radius: 999px; margin: 6px 0 2px; }
.cl-msg { max-width: 86%; padding: 6px 11px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.cl-msg.out { justify-self: end; background: #e1eefb; border-color: #c9defa; } .cl-msg.sis { justify-self: center; background: transparent; border: 0; color: var(--muted); font-style: italic; max-width: 100%; }
.cl-msg small { color: var(--muted); font-size: 11px; } .cl-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cl-msg.ctx { opacity: .55; } .cl-msg.achou { border-color: #f5b73b; box-shadow: 0 0 0 3px rgba(245,183,59,.25); }
.cl-msg mark { background: #ffd54a; color: #3b2d00; border-radius: 3px; padding: 0 2px; font-weight: 700; }
/* pesquisar em todos os clientes */
.au-todos { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; cursor: pointer; font-size: 14px; } .au-todos input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--blue-600); } .au-todos small { color: var(--muted); }
.cl-conv-h .cl-nome { color: var(--blue-700); font-size: 15px; }
/* ---------- Chat Interno ---------- */
.ci { display: grid; grid-template-columns: 330px minmax(0, 1fr); height: calc(100dvh - 130px); min-height: 460px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.ci-lista { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--blue-50); }
.ci-lt { padding: 16px 16px 6px; } .ci-lt h2 { margin: 0; font-size: 18px; } .ci-lt small { color: var(--muted); }
.ci-busca { margin: 8px 12px 10px; max-width: none; min-width: 0; flex: none; }
.ci-itens { flex: 1; overflow-y: auto; padding: 0 8px 10px; display: grid; gap: 2px; align-content: start; }
.ci-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.ci-item:hover { background: rgba(11,102,195,.08); } .ci-item.on { background: var(--blue-100); }
.ci-item .avatar { width: 42px; height: 42px; flex: none; }
.ci-grupo { display: grid; place-items: center; background: linear-gradient(145deg, #19d3c5, #0b66c3); color: #fff; border-radius: 50%; } .ci-grupo svg.i { width: 22px; height: 22px; }
.ci-it { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ci-it > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.ci-it b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ci-it small { color: var(--muted); font-size: 11.5px; flex: none; }
.ci-it span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-bdg { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11.5px; font-style: normal; font-weight: 800; display: grid; place-items: center; }
.ci-nada { padding: 20px 14px; color: var(--muted); text-align: center; }
.ci-conv { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.ci-vazio { margin: auto; display: grid; justify-items: center; gap: 6px; color: var(--muted); text-align: center; padding: 24px; } .ci-vazio svg.i { width: 44px; height: 44px; opacity: .5; } .ci-vazio b { color: var(--text); }
.ci-ch { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--card); border-bottom: 1px solid var(--line); flex: none; }
.ci-ch .avatar { width: 40px; height: 40px; } .ci-ch > div { display: grid; min-width: 0; } .ci-ch small { color: var(--muted); }
.ci-volta { display: none; border: 0; background: transparent; padding: 6px; cursor: pointer; color: var(--blue-600); } .ci-volta svg.i { width: 22px; height: 22px; }
.ci-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.ci-dia { align-self: center; font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--blue-100); padding: 2px 12px; border-radius: 999px; margin: 8px 0 2px; }
.ci-m { max-width: min(78%, 560px); align-self: flex-start; padding: 7px 12px 5px; border-radius: 14px 14px 14px 4px; background: var(--card); border: 1px solid var(--line); }
.ci-m.meu { align-self: flex-end; background: var(--blue-600); border-color: var(--blue-600); color: #fff; border-radius: 14px 14px 4px 14px; }
.ci-m p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; } .ci-m small { display: block; text-align: right; font-size: 10.5px; opacity: .65; margin-top: 2px; }
.ci-de { display: block; font-size: 12px; color: var(--blue-700); margin-bottom: 1px; }
.ci-comp { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); flex: none; }
.ci-comp textarea { flex: 1; resize: none; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 14px; outline: none; max-height: 120px; line-height: 1.4; font: inherit; background: var(--card); }
.ci-comp textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(11,102,195,.14); }
.ci-comp .btn { height: 42px; flex: none; }
@media (max-width: 900px) {
  .ci { grid-template-columns: 1fr; height: calc(100dvh - 200px); }
  .ci-conv { display: none; } .ci.aberto .ci-lista { display: none; } .ci.aberto .ci-conv { display: flex; }
  .ci-volta { display: inline-flex; } .ci-m { max-width: 88%; }
}
/* Chat Interno: item do menu pulsa quando há mensagem não lida */
.nav a.ci-pisca, .mobile-nav a.ci-pisca { animation: ci-pisca 1.2s ease-in-out infinite; }
@keyframes ci-pisca { 0%, 100% { background-color: transparent; } 50% { background-color: rgba(25,211,197,.35); } }
.nav a.ci-pisca .badge, .mobile-nav a.ci-pisca .badge { animation: ci-bdg 1.2s ease-in-out infinite; }
@keyframes ci-bdg { 50% { transform: scale(1.25); } }
/* Chat Interno: anexos */
.ci-img { display: block; max-width: min(260px, 100%); max-height: 260px; border-radius: 10px; cursor: zoom-in; margin-bottom: 3px; }
.ci-m .arq-card { color: var(--text); min-width: 220px; }
.ci-m .arq-card small { color: var(--muted); }
.ci-pdf { display: inline-block; color: inherit; font-weight: 600; text-decoration: underline; margin-bottom: 3px; overflow-wrap: anywhere; }
.ci-comp .btn.ghost { height: 42px; flex: none; }
/* ================= Bater Ponto ================= */
.pt { display: grid; gap: 16px; max-width: 1120px; }
.pt .pos { color: #067647; } .pt .neg { color: #b42318; } .pt .warn { color: #b54708; }
.pt-load { padding: 40px; text-align: center; color: var(--muted); }
.pt-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 5px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); scrollbar-width: none; } .pt-tabs::-webkit-scrollbar { display: none; }
.pt-tabs button { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 10px 15px; border: 0; border-radius: 13px; background: transparent; color: var(--muted); font-weight: 700; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.pt-tabs button:hover { background: var(--blue-50); color: var(--blue-700); }
.pt-tabs button.on { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(11,102,195,.8); }
.pt-bdg { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-style: normal; display: inline-grid; place-items: center; } .pt-bdg.hidden { display: none; }

.pt-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 30px 34px; border-radius: 30px; color: #fff;
  background: radial-gradient(900px 340px at 85% -20%, rgba(25,211,197,.35), transparent 60%), radial-gradient(600px 300px at -10% 120%, rgba(61,143,224,.45), transparent 60%), linear-gradient(135deg, #051c38 0%, #0a4f99 60%, #0b66c3 100%);
  box-shadow: 0 26px 60px -24px rgba(5,28,56,.8); }
.pt-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.07), transparent 40%); pointer-events: none; }
.pt-hl { display: grid; gap: 8px; position: relative; z-index: 1; } .pt-hl small { text-transform: capitalize; opacity: .8; font-size: 15px; letter-spacing: .02em; }
.pt-relogio { font-size: clamp(46px, 9vw, 88px); font-weight: 800; line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums; text-shadow: 0 6px 30px rgba(25,211,197,.35); }
.pt-sit { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 13.5px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(6px); }
.pt-sit i { width: 9px; height: 9px; border-radius: 50%; background: #9aa9c4; }
.pt-sit.trabalhando i { background: #3ddc97; box-shadow: 0 0 0 0 rgba(61,220,151,.7); animation: pt-pulso 1.6s infinite; } .pt-sit.almoco i { background: #ffc24b; } .pt-sit.encerrado i { background: #7cc4ff; }
@keyframes pt-pulso { 70% { box-shadow: 0 0 0 10px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }
.pt-abono { font-size: 13px; background: rgba(255,213,74,.2); padding: 4px 12px; border-radius: 999px; width: fit-content; }
.pt-ring { position: relative; width: 150px; height: 150px; z-index: 1; } .pt-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pt-ring circle { fill: none; stroke-width: 8; } .pt-ring .bg { stroke: rgba(255,255,255,.15); } .pt-ring .fg { stroke: #19d3c5; stroke-linecap: round; transition: stroke-dashoffset .8s ease; filter: drop-shadow(0 0 6px rgba(25,211,197,.7)); }
.pt-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; } .pt-ring b { font-size: 28px; } .pt-ring small { opacity: .75; }

.pt-acao { display: grid; gap: 10px; }
.pt-big { display: flex; align-items: center; gap: 18px; width: 100%; padding: 20px 26px; border: 0; border-radius: 24px; cursor: pointer; text-align: left; color: #fff; background: linear-gradient(135deg, #0aa86a, #12b76a 55%, #19d3c5); box-shadow: 0 20px 40px -18px rgba(18,183,106,.8); transition: transform .12s, box-shadow .12s, filter .12s; }
.pt-big:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 26px 46px -18px rgba(18,183,106,.9); } .pt-big:active { transform: translateY(0) scale(.99); }
.pt-big-ic { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 20px; background: rgba(255,255,255,.22); font-size: 32px; flex: none; }
.pt-big > span:nth-child(2) { display: grid; flex: 1; } .pt-big small { opacity: .85; font-size: 13px; } .pt-big b { font-size: clamp(20px, 3.4vw, 28px); }
.pt-big-go { font-weight: 800; background: rgba(255,255,255,.2); padding: 10px 18px; border-radius: 14px; white-space: nowrap; }
.pt-alt { padding: 13px 18px; border: 1.5px dashed var(--blue-300); border-radius: 16px; background: var(--card); color: var(--blue-700); font-weight: 700; cursor: pointer; } .pt-alt:hover { background: var(--blue-50); }
.pt-fim { padding: 20px 24px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 16px; }

.pt-linha { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 22px 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.pt-linha::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 49px; height: 3px; background: var(--line); border-radius: 3px; }
.pt-passo { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; }
.pt-bolha { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--blue-50); border: 2px solid var(--line); font-size: 22px; z-index: 1; transition: all .2s; }
.pt-passo b { font-size: 13px; } .pt-passo small { font-size: 15px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.pt-passo.feito .pt-bolha { background: linear-gradient(135deg, #12b76a, #19d3c5); border-color: transparent; color: #fff; font-weight: 800; box-shadow: 0 8px 18px -8px rgba(18,183,106,.8); } .pt-passo.feito small { color: #067647; }
.pt-passo.proximo .pt-bolha { border-color: var(--blue-500); background: #fff; animation: pt-anel 1.8s infinite; } .pt-passo.proximo small { color: var(--blue-600); }
@keyframes pt-anel { 0% { box-shadow: 0 0 0 0 rgba(11,102,195,.45); } 70% { box-shadow: 0 0 0 12px rgba(11,102,195,0); } 100% { box-shadow: 0 0 0 0 rgba(11,102,195,0); } }

.pt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.pt-card { display: grid; gap: 3px; align-content: start; padding: 16px 18px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.pt-card small { color: var(--muted); font-weight: 600; font-size: 12.5px; } .pt-card b { font-size: 27px; font-variant-numeric: tabular-nums; line-height: 1.15; } .pt-card em { font-style: normal; color: var(--muted); font-size: 12.5px; }
.pt-card.sal.pos { background: linear-gradient(135deg, #e6f8ee, #fff); border-color: #b9ebd1; } .pt-card.sal.neg { background: linear-gradient(135deg, #fdecea, #fff); border-color: #f7c6c1; }
.pt-sep { color: var(--muted); font-weight: 400; }
.pt-dig { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px; border-radius: 20px; background: var(--blue-50); border: 1px dashed var(--blue-300); } .pt-dig p { margin: 4px 0 0; }
#pt-dig-lista { flex-basis: 100%; display: grid; gap: 6px; } .pt-dig-i { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; background: var(--card); border-radius: 12px; } .pt-dig-i small { color: var(--muted); }
.pt-vazio { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 48px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); } .pt-vazio.mini { padding: 24px; box-shadow: none; }
.pt-vz-ic { font-size: 46px; } .pt-vazio h2 { margin: 0; } .pt-vazio p { margin: 0; color: var(--muted); max-width: 520px; }

/* confirmação e sucesso */
.pt-ov { position: fixed; inset: 0; z-index: 75; display: grid; place-items: center; padding: 16px; background: rgba(5,24,48,.62); backdrop-filter: blur(5px); animation: pt-fade .18s ease-out; }
@keyframes pt-fade { from { opacity: 0; } }
.pt-pn { width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; display: grid; gap: 12px; padding: 20px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow-lg); animation: pt-sobe .22s cubic-bezier(.2,.9,.3,1.2); }
@keyframes pt-sobe { from { transform: translateY(18px) scale(.97); opacity: 0; } }
.pt-pn header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; } .pt-pn header small { color: var(--muted); display: block; } .pt-pn header b { font-size: 20px; }
.pt-pn header button { border: 0; background: var(--blue-50); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 15px; }
.pt-hora { text-align: center; font-size: 38px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--blue-700); }
.pt-cam { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: #0b1220; } .pt-cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.pt-cam-n { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 16px; color: #cbd5e1; font-size: 14px; } .pt-cam-n.hidden { display: none; }
.pt-bts { display: grid; gap: 8px; } .pt-bts .btn.lg { height: 52px; font-size: 16px; border-radius: 16px; }
.pt-pn .field { margin: 0; }
.pt-sucesso { background: rgba(5,24,48,.5); transition: opacity .4s; } .pt-sucesso.sai { opacity: 0; }
.pt-ok { display: grid; justify-items: center; gap: 6px; padding: 32px 44px; border-radius: 30px; background: var(--card); box-shadow: var(--shadow-lg); animation: pt-sobe .3s cubic-bezier(.2,.9,.3,1.3); } .pt-ok b { font-size: 20px; } .pt-ok span { font-size: 36px; font-weight: 800; color: var(--blue-700); font-variant-numeric: tabular-nums; }
.pt-ok-c { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(135deg, #12b76a, #19d3c5); color: #fff; font-size: 44px; box-shadow: 0 0 0 0 rgba(18,183,106,.5); animation: pt-anel-v 1.2s ease-out 1; }
@keyframes pt-anel-v { 0% { box-shadow: 0 0 0 0 rgba(18,183,106,.6); } 100% { box-shadow: 0 0 0 36px rgba(18,183,106,0); } }

/* espelho, tabelas e formulários */
.pt-esp { display: grid; gap: 14px; } .pt-esp-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pt-pessoa { display: inline-flex; align-items: center; gap: 10px; } .pt-pessoa .avatar { width: 38px; height: 38px; flex: none; } .pt-pessoa > span { display: grid; } .pt-pessoa small { color: var(--muted); }
.pt-mes { display: inline-flex; align-items: center; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 3px; } .pt-mes b { min-width: 130px; text-align: center; text-transform: capitalize; }
.pt-mes button { border: 0; background: var(--blue-50); width: 34px; height: 34px; border-radius: 11px; font-size: 20px; cursor: pointer; color: var(--blue-700); }
.pt-tabela { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.pt-tb { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pt-tb th { text-align: left; padding: 11px 12px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--blue-50); white-space: nowrap; }
.pt-tb td { padding: 9px 12px; border-top: 1px solid var(--line); white-space: nowrap; } .pt-tb tbody tr[data-dia], .pt-tb tbody tr[data-u] { cursor: pointer; } .pt-tb tbody tr:hover td { background: rgba(11,102,195,.05); }
.pt-tb td small { color: var(--muted); } .pt-tb tfoot td { font-weight: 700; background: var(--blue-50); border-top: 2px solid var(--line); }
.pt-tb td.pos, .pt-tb td.neg { font-weight: 700; } .pt-tb td.zero { color: var(--muted); }
.pt-tb tr.falta td { background: #fff5f4; } .pt-tb tr.incompleto td { background: #fffaeb; } .pt-tb tr.folga td, .pt-tb tr.abonado td, .pt-tb tr.futuro td { color: var(--muted); } .pt-tb tr.anulada td { text-decoration: line-through; opacity: .55; }
.pill.info { background: var(--blue-100); color: var(--blue-700); }
.pt-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; } .pt-mini span { display: grid; padding: 8px 12px; background: var(--blue-50); border-radius: 12px; } .pt-mini small { color: var(--muted); } .pt-mini b { font-size: 18px; }
.pt-foto-g { margin-top: 10px; max-width: 100%; border-radius: 14px; }
.pt-form { display: grid; gap: 12px; } .pt-form .field { margin: 0; } .pt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pt-seg { display: flex; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; } .pt-seg button { flex: 1; border: 0; background: var(--card); color: var(--muted); font-weight: 700; padding: 10px 12px; cursor: pointer; } .pt-seg button.on { background: var(--blue-600); color: #fff; }
.pt-chk { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; } .pt-chk input { width: 18px; height: 18px; accent-color: var(--blue-600); }
.pt-sw { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 6px 0; } .pt-sw input { position: absolute; opacity: 0; }
.pt-sw span { position: relative; width: 46px; height: 26px; border-radius: 999px; background: #c9d4e5; transition: background .2s; flex: none; } .pt-sw span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .2s; }
.pt-sw input:checked + span { background: var(--ok); } .pt-sw input:checked + span::after { transform: translateX(20px); } .pt-sw input:focus-visible + span { outline: 3px solid rgba(11,102,195,.35); }

/* aprovações, escalas, equipe */
.pt-aj { display: grid; gap: 14px; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.pt-aj-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; } .pt-aj-h h3 { margin: 0 0 2px; } .pt-aj-h .hint { margin: 0; }
.pt-aj-l { display: grid; gap: 10px; } .pt-aj-i { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--blue-50); } .pt-aj-i p { margin: 6px 0 0; overflow-wrap: anywhere; } .pt-aj-i > div:first-child { flex: 1; min-width: 220px; }
.pt-aj-s { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; justify-content: center; } .pt-resp { color: var(--blue-700); }
.pt-rel { display: grid; gap: 14px; } .pt-rel-f { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); } .pt-rel-f .field { margin: 0; } .pt-rapido { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 6px; }
.pt-esc { display: grid; gap: 10px; } .pt-esc-i { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--line); border-radius: 18px; } .pt-esc-i.on { border-color: #b9ebd1; background: linear-gradient(90deg, #f3fcf7, #fff); }
.pt-esc-i .avatar { width: 42px; height: 42px; flex: none; } .pt-esc-n { display: grid; flex: 1; min-width: 200px; } .pt-esc-n small, .pt-esc-n span { color: var(--muted); font-size: 13px; } .pt-esc-m { display: grid; justify-items: end; gap: 3px; } .pt-esc-m small { color: var(--muted); }
.pt-presets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .pt-jor input[type=time] { width: 112px; padding: 7px 8px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
.pt-eq { display: grid; gap: 14px; } .pt-eq-res { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pt-eq-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pt-eq-c { display: grid; gap: 12px; padding: 16px 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); border-left: 6px solid #9aa9c4; box-shadow: var(--shadow); cursor: pointer; transition: transform .12s, box-shadow .12s; } .pt-eq-c:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.pt-eq-c.trabalhando { border-left-color: #12b76a; } .pt-eq-c.almoco { border-left-color: #f79009; } .pt-eq-c.encerrado { border-left-color: #0b66c3; } .pt-eq-c.fora { border-left-color: #f04438; }
.pt-eq-c header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .pt-eq-c header .avatar { width: 42px; height: 42px; flex: none; } .pt-eq-c header > div { display: grid; flex: 1; min-width: 0; } .pt-eq-c small { color: var(--muted); }
.pt-eq-c .pt-sit { background: var(--blue-50); border-color: var(--line); color: var(--text); font-size: 12px; padding: 4px 10px; } .pt-eq-c .pt-sit.trabalhando { background: #e6f8ee; } .pt-eq-c .pt-sit.fora i { background: #f04438; }
.pt-eq-t { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; } .pt-eq-t span { display: grid; justify-items: center; padding: 6px 2px; border-radius: 12px; background: var(--blue-50); font-size: 15px; } .pt-eq-t span b { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; } .pt-eq-t span.ok { background: #e6f8ee; } .pt-eq-t span.ok b { color: #067647; }
.pt-eq-c footer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .pt-eq-c footer span { display: grid; } .pt-eq-c footer b { font-size: 16px; font-variant-numeric: tabular-nums; }
.pt-eq-ab { font-style: normal; font-size: 12.5px; color: #7a5a00; background: #fff3a3; padding: 3px 10px; border-radius: 999px; width: fit-content; }

@media (max-width: 760px) {
  .pt-hero { padding: 22px 20px; border-radius: 24px; } .pt-ring { width: 110px; height: 110px; } .pt-ring b { font-size: 21px; }
  .pt-big { padding: 16px 18px; } .pt-big-go { display: none; } .pt-linha { grid-template-columns: repeat(2, 1fr); row-gap: 18px; } .pt-linha::before { display: none; }
  .pt-row { grid-template-columns: 1fr; } .pt-cards { grid-template-columns: 1fr 1fr; } .pt-aj { padding: 16px; } .pt-tb td, .pt-tb th { padding: 8px 9px; }
}
@media print { .pt-tabs { display: none; } }
/* ajustes de acabamento do ponto */
.pt > * { min-width: 0; }
.pt-hl small { display: block; text-transform: none; } .pt-hl small::first-letter { text-transform: uppercase; }
.pt-mes b { text-transform: none; } .pt-mes b::first-letter { text-transform: uppercase; }
@media (min-width: 900px) { .pt-tabs { flex-wrap: wrap; overflow: visible; } }.pt-jor input[type=time] { width: 96px; padding: 7px 6px; font-size: 14px; } .pt-jor td, .pt-jor th { padding-left: 8px; padding-right: 8px; }
/* ---------- Meu Ponto: configurações, bloqueio e lembretes ---------- */
.pt-ini { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .pt-ini input[type=date] { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; }
.pt-bloco { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--blue-50); }
.pt-bloco .field { margin: 0; }
.pt-warn { padding: 10px 14px; border-radius: 12px; background: #fef0c7; color: #7a4a00; font-size: 13.5px; }
.ib-ponto { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 12px; border-radius: 16px; background: #fff3cd; border: 1px solid #f5d27a; color: #6b4600; font-weight: 600; }
.ib-ponto.hidden { display: none; }
.pl-pilha { position: fixed; right: 14px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 96; display: grid; gap: 10px; width: min(380px, calc(100vw - 28px)); }
.pl-nota { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 20px; background: #fff; border: 2px solid #f5b73b; box-shadow: 0 22px 50px -16px rgba(60,40,0,.55); animation: pl-entra .35s cubic-bezier(.2,.9,.3,1.25) both; }
.pl-nota.n2 { border-color: #f04438; } .pl-nota.n3 { border-color: #b42318; background: #fff5f4; }
.pl-ic { font-size: 30px; } .pl-tx { display: grid; flex: 1; min-width: 160px; } .pl-tx span { color: var(--muted); font-size: 13.5px; } .pl-bt { display: flex; gap: 8px; margin-left: auto; }
@keyframes pl-entra { from { opacity: 0; transform: translateY(22px) scale(.96); } }
@media (max-width: 900px) { .pl-pilha { bottom: calc(92px + env(safe-area-inset-bottom)); } }
/* Atendentes: abas Cadastro / Jornada de Trabalho */
.at-abas { display: grid; gap: 14px; } .at-tabs { width: fit-content; max-width: 100%; }
.at-tabs button { padding: 11px 18px; }
/* ---------- desempenho do chat no computador (digitação sem travar) ---------- */
/* o desfoque do fundo (backdrop-filter) obrigava a refazer a tela inteira a cada tecla; no celular já estava desligado */
.chat-ov, .modal-ov, .pt-ov { -webkit-backdrop-filter: none; backdrop-filter: none; }
.chat-ov { background: rgba(6,54,95,.55); }
.modal-ov { background: rgba(6,54,95,.55); }
/* com a conversa aberta, as animações decorativas do quadro que ficam por trás param (menos repintura) */
body:has(.chat-ov) .ib-card.blink::after, body:has(.chat-ov) .tk.blink, body:has(.chat-ov) .live-pill i,
body:has(.chat-ov) .rd-live i, body:has(.chat-ov) .bell-on, body:has(.chat-ov) .nav a.ci-pisca, body:has(.chat-ov) .nav a.ci-pisca .badge { animation: none; }
body:has(.chat-ov) .nav a.ci-pisca { background-color: rgba(25,211,197,.25); }
.ci-comp textarea, .composer textarea { will-change: auto; }
/* ---------- Dashboard: média de atendimentos por hora ---------- */
.hh { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); display: grid; gap: 14px; }
.hh-h { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; } .hh-h h4 { margin: 0 0 4px; font-size: 16px; } .hh-h p { margin: 0; color: var(--muted); font-size: 13px; max-width: 640px; }
.hh-eq { display: grid; justify-items: end; padding: 8px 16px; border-radius: 16px; background: var(--blue-50); } .hh-eq b { font-size: 28px; color: var(--blue-700); line-height: 1.1; } .hh-eq small { color: var(--muted); font-size: 11.5px; }
.hh-bars { display: grid; gap: 10px; }
.hh-b { display: flex; align-items: center; gap: 12px; } .hh-b .rk-av { flex: none; }
.hh-bm { flex: 1; min-width: 0; display: grid; gap: 5px; } .hh-bn { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .hh-bn span { color: var(--muted); font-size: 12.5px; }
.hh-v { display: grid; justify-items: end; min-width: 62px; } .hh-v b { font-size: 22px; font-variant-numeric: tabular-nums; } .hh-v small { color: var(--muted); font-size: 11px; }
.hh-map { display: grid; grid-template-columns: 96px repeat(var(--n), minmax(28px, 1fr)); gap: 3px; overflow-x: auto; padding-bottom: 4px; align-items: stretch; }
.hh-corner { font-size: 11px; color: var(--muted); align-self: end; }
.hh-hr { text-align: center; font-size: 11px; color: var(--muted); font-weight: 700; }
.hh-nm { font-size: 12.5px; font-weight: 700; display: flex; align-items: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hh-c { display: grid; place-items: center; min-height: 30px; border-radius: 7px; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; background: #eef3fa; color: var(--muted); }
.hh-c.on { background: color-mix(in srgb, #0b66c3 calc(var(--i) * 100% + 12%), #dbe9f9); color: #0b3d75; } .hh-c.forte { color: #fff; }
.hh-leg { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11.5px; } .hh-leg i { width: 120px; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #dbe9f9, #0b66c3); }
@media (max-width: 640px) { .hh-map { grid-template-columns: 64px repeat(var(--n), minmax(30px, 1fr)); } .hh-eq { justify-items: start; } }
/* ---------- Auditoria do Radar ---------- */
.rr-pre { display: flex; gap: 6px; flex-wrap: wrap; }
.rr-form { grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(220px, 1.6fr) auto; }
.rr-seg button { padding: 0 14px; font-size: 13.5px; }
.rr { display: grid; gap: 16px; margin-top: 6px; }
.rr-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-radius: 16px; background: var(--blue-50); } .rr-bar > div { display: grid; } .rr-bar small { color: var(--muted); }
.rr-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.rr-k { display: grid; gap: 3px; align-content: start; padding: 16px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.rr-k small { color: var(--muted); font-weight: 600; font-size: 12.5px; } .rr-k b { font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; } .rr-k b span { font-size: 16px; color: var(--muted); } .rr-k em { font-style: normal; color: var(--muted); font-size: 12.5px; }
.rr-k.bad { background: linear-gradient(135deg, #fdecea, #fff); border-color: #f7c6c1; } .rr-k.bad b { color: #b42318; }
.rr-k.warn { background: linear-gradient(135deg, #fff6e0, #fff); border-color: #f5d79a; } .rr-k.warn b { color: #b54708; }
.rr-k.good { background: linear-gradient(135deg, #e6f8ee, #fff); border-color: #b9ebd1; } .rr-k.good b { color: #067647; }
.rr-dest { display: flex; flex-wrap: wrap; gap: 8px; } .rr-dest span { padding: 8px 14px; border-radius: 999px; background: var(--blue-50); font-size: 13.5px; }
.rr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.rr-card { display: grid; gap: 10px; align-content: start; padding: 18px 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; } .rr-card h4 { margin: 0; font-size: 15px; } .rr-card h4 small { color: var(--muted); font-weight: 500; }
.rr-faixas { display: grid; gap: 8px; } .rr-f { display: grid; grid-template-columns: 96px 1fr 40px; gap: 10px; align-items: center; font-size: 13px; } .rr-f b { text-align: right; font-variant-numeric: tabular-nums; } .rr-f .bar2 i.red { background: linear-gradient(90deg, #f97066, #f04438); }
.rr-cols { display: flex; align-items: flex-end; gap: 6px; height: 190px; overflow-x: auto; padding-top: 4px; }
.rr-cols.h .rr-col { min-width: 30px; } .rr-cols.d .rr-col { min-width: 34px; }
.rr-col { flex: 1; min-width: 36px; display: grid; grid-template-rows: 1fr auto auto; justify-items: center; height: 100%; gap: 2px; }
.rr-colb { width: 100%; max-width: 44px; display: flex; align-items: flex-end; border-radius: 8px 8px 0 0; }
.rr-colb i { position: relative; display: block; width: 100%; min-height: 2px; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #3d8fe0, #0b66c3); overflow: hidden; }
.rr-colb u { position: absolute; left: 0; right: 0; bottom: 0; background: #f04438; text-decoration: none; }
.rr-col b { font-size: 12px; font-variant-numeric: tabular-nums; } .rr-col small { color: var(--muted); font-size: 11px; }
.rr-tb { width: 100%; border-collapse: collapse; font-size: 13.5px; } .rr-tb th { text-align: left; padding: 8px 10px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--blue-50); white-space: nowrap; }
.rr-tb td { padding: 8px 10px; border-top: 1px solid var(--line); white-space: nowrap; } .rr-tb td.neg { color: #b42318; font-weight: 700; }
@media (max-width: 900px) { .rr-form { grid-template-columns: 1fr 1fr; } .rr-form .btn { grid-column: 1 / -1; } .rr-grid { grid-template-columns: 1fr; } }
@media print { .au-tabs, .hr-hero { display: none; } .rr-card, .rr-k { box-shadow: none; break-inside: avoid; } }
/* tabelas da Auditoria do Radar rolam dentro do cartão em telas estreitas */
.rr-card { overflow-x: auto; overflow-y: hidden; }

/* ================= Administrativo > Clientes > Comprovantes de Pagamento ================= */
.adm { display: grid; gap: 14px; max-width: 1120px; }
.adm-op { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-opb { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--muted); font-weight: 700; cursor: pointer; }
.adm-opb.on { border-color: var(--blue-500); color: var(--blue-700); background: var(--blue-50); box-shadow: 0 6px 16px -10px rgba(11,102,195,.7); }
.cm { display: grid; gap: 14px; }
.cm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.cm-f { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; } .cm-f .field { margin: 0; } .cm-f .field:nth-of-type(1) { flex: 1; min-width: 220px; }
.cm-l { display: grid; gap: 12px; }
.cm-c { display: flex; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); border-left: 6px solid #f79009; box-shadow: var(--shadow); }
.cm-c.confirmado { border-left-color: #12b76a; } .cm-c.recusado { border-left-color: #f04438; opacity: .92; }
.cm-th { width: 96px; height: 120px; flex: none; border: 1px solid var(--line); border-radius: 14px; background: var(--blue-50); cursor: zoom-in; overflow: hidden; display: grid; place-items: center; padding: 0; }
.cm-th img { width: 100%; height: 100%; object-fit: cover; } .cm-th span { display: grid; justify-items: center; font-size: 34px; } .cm-th small { font-size: 12px; color: var(--muted); font-weight: 700; }
.cm-m { flex: 1; min-width: 260px; display: grid; gap: 8px; align-content: start; }
.cm-m header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .cm-m header b { font-size: 16px; }
.cm-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; } .cm-g span { display: grid; } .cm-g small { color: var(--muted); font-size: 11.5px; } .cm-g b { font-variant-numeric: tabular-nums; } .cm-g em { font-style: normal; color: var(--muted); font-size: 11px; }
.cm-o { margin: 0; padding: 6px 10px; border-radius: 10px; background: var(--blue-50); overflow-wrap: anywhere; } .cm-r { color: var(--muted); }
.cm-a { display: flex; flex-direction: column; gap: 6px; align-items: stretch; justify-content: center; min-width: 170px; } .cm-a .btn { justify-content: center; }
@media (max-width: 760px) { .cm-th { width: 72px; height: 90px; } .cm-a { flex-direction: row; flex-wrap: wrap; min-width: 0; width: 100%; } }

/* registrar comprovante (dentro da conversa) */
.msg-comp { margin-top: 6px; display: none; align-items: center; gap: 4px; border: 1px dashed #19a974; background: rgba(25,169,116,.1); color: #067647; font-weight: 700; font-size: 12.5px; padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.msgs.resp-on button.msg-comp { display: inline-flex; } .msg-comp:hover { background: rgba(25,169,116,.2); }
span.msg-comp.ok { display: inline-flex; cursor: default; border-style: solid; }
.cp { display: grid; gap: 12px; } .cp .field { margin: 0; }
.cp-prev { max-height: 230px; overflow: hidden; border-radius: 16px; background: var(--blue-50); display: grid; place-items: center; } .cp-prev img { max-width: 100%; max-height: 230px; object-fit: contain; }
.cp-pdf { display: grid; justify-items: center; padding: 22px; font-size: 40px; text-align: center; } .cp-pdf b { font-size: 14px; overflow-wrap: anywhere; } .cp-pdf small { color: var(--muted); font-size: 12px; }
.cp-cli { display: grid; padding: 8px 12px; border-radius: 12px; background: var(--blue-50); } .cp-l { color: var(--muted); font-size: 11.5px; } .cp-cli small { color: var(--muted); }
.cp-sug { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .cp-sug .chip small { color: var(--muted); font-weight: 500; margin-left: 4px; }
/* leitura automática do comprovante */
.cp-ler { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: var(--blue-50); font-size: 13.5px; }
.cp-ler:empty { display: none; }
.cp-ler.ok { background: #e6f8ee; color: #05603a; } .cp-ler.aviso { background: #fef0c7; color: #7a4a00; }
.cp-spin { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2.5px solid rgba(11,102,195,.25); border-top-color: var(--blue-600); animation: spin .8s linear infinite; }
.cp-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex-basis: 100%; color: var(--muted); }
/* empresa/pagador no comprovante */
.cm-emp { color: var(--muted); font-size: 13px; } .cm-emp b { color: var(--text); } .cm-emp em { font-style: normal; font-size: 11.5px; }
/* mídia recebida: botão ⚡ Opções (Ler documento / Visualizar) */
.msg-raio { margin-top: 6px; display: none; align-items: center; gap: 4px; border: 1px solid rgba(11,102,195,.3); background: rgba(11,102,195,.08); color: var(--blue-700); font-weight: 700; font-size: 12px; padding: 4px 11px; border-radius: 999px; cursor: pointer; }
.msgs.resp-on .msg-raio { display: inline-flex; } .msg-raio:hover { background: rgba(11,102,195,.18); }
.msg.out .msg-raio { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.16); }
span.msg-comp.ok { margin: 6px 6px 0 0; }
/* menus de opções (⚡, ⋯) ficam acima da conversa aberta (chat = 65), das janelas (70) e dos avisos */
.menu { z-index: 99; }

/* computador: o menu lateral fica FIXO; só o conteúdo rola (a linha da grade ficava do tamanho do conteúdo e a página inteira rolava junto com o menu) */
@media (min-width: 901px) { .shell { grid-template-rows: minmax(0, 1fr); height: 100dvh; } .sidebar, .main { min-height: 0; } }

/* encerramento com tempo de espera ("Encerrando em 4:59") e reações do cliente nas mensagens */
.ib-enc { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: #fef0c7; color: #93370d; border: 1px solid #f5d27a; font-size: 12px; font-weight: 800; animation: encpulse 2.4s ease-in-out infinite; }
.pill.enc-pill b { font-variant-numeric: tabular-nums; min-width: 2.6em; display: inline-block; text-align: left; }
@keyframes encpulse { 50% { box-shadow: 0 0 0 4px rgba(247,144,9,.18); } }
.msg.has-react { position: relative; margin-bottom: 14px; }
.msg-react { position: absolute; right: 10px; bottom: -13px; padding: 0 7px; font-size: 16px; line-height: 24px; border-radius: 999px; background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); user-select: none; }
.msg-react.novo { animation: reacpop .6s cubic-bezier(.2,.9,.3,1.4); }
@keyframes reacpop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.35); opacity: 1; } 100% { transform: scale(1); } }
@media (prefers-color-scheme: dark) { .ib-enc { background: #4a2f0a; color: #fedf89; border-color: #7a4d10; } }
/* filtro por atendente na aba "Sendo atendidos" (quem vê os atendimentos de todos) */
.ib-atd { height: 42px; max-width: 260px; padding: 0 36px 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background-color: var(--card); color: var(--blue-700); font-weight: 700; font-size: 13.5px; cursor: pointer; outline: none; }
.ib-atd:hover { background-color: var(--blue-50); border-color: var(--blue-300); } .ib-atd:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(11,102,195,.14); }
.ib-atd.hidden { display: none; }
@media (max-width: 720px) { .ib-atd { width: 100%; max-width: none; } }
/* Histórico da conversa (janela aberta pelo botão "Histórico" no topo do chat) */
.hs { display: grid; gap: 12px; }
.hs-per { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.hs-per label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.hs-per input[type=date], .hs-per input[type=search] { padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); outline: none; font: inherit; }
.hs-per input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(11,102,195,.14); }
.hs-per input[type=search] { flex: 1; min-width: 160px; }
.hs-sum { font-size: 12.5px; color: var(--muted); font-weight: 600; min-height: 0; } .hs-sum:empty { display: none; }
.hs-res { display: flex; flex-direction: column; gap: 6px; max-height: 52vh; overflow-y: auto; padding: 12px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); overscroll-behavior: contain; }
.hs-vazio { padding: 28px 12px; text-align: center; color: var(--muted); font-weight: 600; } .hs-vazio.err { color: #b42318; }
.hs-grp { align-self: center; margin: 8px 0 2px; padding: 3px 12px; border-radius: 999px; background: var(--blue-100); color: var(--blue-700); font-size: 12px; font-weight: 800; }
.hs-res .msg { white-space: normal; }
@media (max-width: 720px) { .hs-res { max-height: 46dvh; } }
/* ---- Consultar Cliente ---- */
.cc { display: grid; gap: 16px; max-width: 980px; }
.cc-hero { background: var(--grad, linear-gradient(135deg, #0d70d6, #0a5cb0)); border-radius: 20px; padding: 22px 22px 18px; color: #fff; box-shadow: 0 14px 34px rgba(11,102,195,.22); }
.cc-hero h2 { margin: 0 0 2px; font-size: 1.15rem; }
.cc-hero p { margin: 0 0 14px; opacity: .85; font-size: .9rem; }
.cc-box { position: relative; display: flex; align-items: center; background: var(--card); border-radius: 16px; box-shadow: 0 6px 18px rgba(6,58,112,.18); transition: box-shadow .15s; }
.cc-box:focus-within { box-shadow: 0 0 0 4px rgba(255,255,255,.35), 0 8px 22px rgba(6,58,112,.25); }
.cc-box > svg.i { position: absolute; left: 16px; width: 21px; height: 21px; color: var(--blue-500); pointer-events: none; }
.cc-box input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); font: inherit; font-size: 1.05rem; padding: 16px 118px 16px 48px; border-radius: 16px; }
.cc-box input::placeholder { color: var(--muted); }
.cc-acoes { position: absolute; right: 10px; display: flex; align-items: center; gap: 8px; }
.cc-modo { font-size: .72rem; font-weight: 700; letter-spacing: .03em; padding: 4px 9px; border-radius: 99px; background: var(--blue-50); color: var(--blue-600, #0b66c3); text-transform: uppercase; }
.cc-modo:empty { display: none; }
.cc-limpa { border: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--line); color: var(--muted); cursor: pointer; display: none; place-items: center; font-size: 13px; line-height: 1; }
.cc-limpa.on { display: grid; }
.cc-limpa:hover { background: var(--blue-100, #dbe7f5); color: var(--text); }
.cc-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--blue-500); animation: cc-gira .7s linear infinite; display: none; }
.cc-spin.on { display: block; }
@keyframes cc-gira { to { transform: rotate(360deg); } }
.cc-dica { margin: 10px 2px 0; font-size: .82rem; opacity: .85; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cc-dica kbd { background: rgba(255,255,255,.22); border-radius: 6px; padding: 1px 7px; font: inherit; font-size: .78rem; }
.cc-lista { display: grid; gap: 8px; }
.cc-cont { color: var(--muted); font-size: .85rem; margin: 2px 4px; }
.cc-recentes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cc-recentes > span { color: var(--muted); font-size: .85rem; }
.cc-chip { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 99px; padding: 6px 13px; font: inherit; font-size: .85rem; cursor: pointer; transition: border-color .15s, transform .15s; }
.cc-chip:hover { border-color: var(--blue-500); transform: translateY(-1px); }
.cc-chip.x { border-style: dashed; color: var(--muted); }
.cc-item { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--card); color: var(--text); cursor: pointer; font: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; animation: cc-entra .22s ease both; }
.cc-item:hover, .cc-item.foco { border-color: var(--blue-500); box-shadow: 0 8px 22px rgba(11,102,195,.14); transform: translateY(-1px); outline: none; }
.cc-item.sel { border-color: var(--blue-500); background: var(--blue-50); }
@keyframes cc-entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cc-av { width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad, #0b66c3); }
.cc-av.bloq { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.cc-info { flex: 1; min-width: 0; display: grid; gap: 3px; }
.cc-info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-info mark { background: rgba(250, 204, 21, .45); color: inherit; border-radius: 4px; padding: 0 2px; }
.cc-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-meta span { font-size: .78rem; color: var(--muted); background: var(--blue-50); border-radius: 99px; padding: 2px 9px; }
.cc-skel { height: 72px; border-radius: 16px; background: linear-gradient(90deg, var(--blue-50) 25%, var(--line) 50%, var(--blue-50) 75%); background-size: 200% 100%; animation: cc-brilho 1.1s linear infinite; }
@keyframes cc-brilho { to { background-position: -200% 0; } }
.cc-vazio { text-align: center; padding: 26px 10px; color: var(--muted); }
.cc-vazio b { display: block; font-size: 1.6rem; margin-bottom: 4px; }
.cc-ficha { animation: cc-entra .25s ease both; overflow: hidden; }
.cc-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cc-topo > div { display: flex; align-items: center; gap: 12px; }
.cc-topo h3 { margin: 0; }
.cc-topo small, .cc-obs small { color: var(--muted); }
.cc-abas { display: flex; gap: 4px; padding: 0 14px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.cc-abas button { border: 0; background: none; padding: 12px 16px; font: inherit; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.cc-abas button.on { color: var(--blue-600, #0b66c3); border-bottom-color: var(--blue-500); font-weight: 700; }
.cc-obs { padding: 12px 14px; border-left: 4px solid var(--blue-500); background: var(--blue-50); border-radius: 8px; margin-bottom: 8px; }
.cc-obs p { margin: 2px 0 0; white-space: pre-wrap; word-break: break-word; }
.cc-res-box { display: grid; gap: 4px; padding: 20px; border-radius: 14px; font-size: 1.1rem; }
.cc-res-box.ruim { background: rgba(220, 38, 38, .1); color: #b91c1c; border: 1px solid rgba(220, 38, 38, .35); }
.cc-res-box.bom { background: rgba(22, 163, 74, .1); color: #15803d; border: 1px solid rgba(22, 163, 74, .35); }
.cc-res-box span { font-size: .9rem; opacity: .85; }
.cc-resumo { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.cc-fb { margin-left: auto; display: flex; gap: 4px; }
@media (max-width: 600px) { .cc-hero { padding: 16px; border-radius: 16px; } .cc-modo { display: none; } .cc-box input { padding-right: 70px; } .cc-dica kbd { display: none; } }
/* Consultar Cliente: busca em janela */
.cc-hero-min { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 18px 22px; }
.cc-hero-min p { margin: 0; }
.cc-abrir { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 14px; padding: 13px 20px; background: var(--card); color: var(--blue-600, #0b66c3); font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(6,58,112,.22); transition: transform .15s, box-shadow .15s; }
.cc-abrir:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(6,58,112,.28); }
.cc-abrir svg.i { width: 19px; height: 19px; }
.cc-abrir kbd { background: var(--blue-50); border-radius: 6px; padding: 1px 8px; font: inherit; font-size: .8rem; color: var(--muted); }
.cc-vazio-tela { text-align: center; padding: 38px 16px; display: grid; justify-items: center; gap: 6px; }
.cc-vazio-tela b { font-size: 2.2rem; } .cc-vazio-tela h3 { margin: 0; } .cc-vazio-tela p { margin: 0 0 8px; color: var(--muted); max-width: 420px; }
.cc-topo-d { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cc-modal .modal-b { padding-top: 6px; }
.cc-modal .cc-box { background: var(--blue-50); box-shadow: none; border: 1.5px solid var(--line); }
.cc-modal .cc-box:focus-within { background: var(--card); border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(11,102,195,.14); }
.cc-dica-m { color: var(--muted); opacity: 1; }
.cc-dica-m kbd { background: var(--blue-50); border: 1px solid var(--line); }
.cc-modal-res { margin-top: 12px; max-height: 52vh; overflow-y: auto; padding: 2px; }
@media (max-width: 600px) { .cc-abrir { width: 100%; justify-content: center; } .cc-abrir kbd { display: none; } }

/* Consultar Cliente aberto por cima do chat */
.cc-embutido .cc-hero-min { padding: 12px 16px; } .cc-embutido .cc-hero-min h2 { font-size: 1rem; } .cc-embutido .cc-hero-min p { display: none; }
.cc-embutido .modal-b { max-height: 78vh; overflow-y: auto; }

.pt-grade { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; } .pt-grade .field input { width: 100%; text-align: center; font-weight: 700; } .pt-grade .field label { font-size: 12px; }
@media (max-width: 560px) { .pt-grade { grid-template-columns: 1fr 1fr; } }

/* Auditoria Interna: tela mais larga e responsiva (só afeta .hr.au) */
.hr.au { max-width: min(1500px, 100%); width: 100%; }
.hr.au .rr-grid { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.hr.au .rr-kpis { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.hr.au .au-sum { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.hr.au .au-lista { grid-template-columns: repeat(auto-fill, minmax(min(460px, 100%), 1fr)); align-items: start; }
.hr.au .pt-tabela, .hr.au .hr-card { min-width: 0; max-width: 100%; }
.hr.au .au-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } .hr.au .au-tabs button { flex: none; white-space: nowrap; }
@media (min-width: 1200px) { .hr.au .rr-form { grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(110px, .7fr) minmax(220px, 1.6fr) auto; } }
@media (max-width: 900px) { .hr.au .au-lista { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .hr.au .au-form, .hr.au .au-novo, .hr.au .rr-form, .hr.au .au-form2, .hr.au .au-form3 { grid-template-columns: 1fr; } .hr.au .hr-card { padding: 14px; } .hr.au .rr-k b { font-size: 26px; } }
/* Consultar Cliente: tela mais larga e responsiva */
.cc { max-width: min(1500px, 100%); width: 100%; }
.cc-ficha, .cc-corpo { min-width: 0; max-width: 100%; }
.cc-corpo { overflow-x: auto; }
.cc .tbl-wrap { overflow-x: auto; max-width: 100%; }
@media (min-width: 1000px) { .cc-lista:not(.cc-modal-res) { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); } .cc-obs { max-width: 100%; } }
@media (max-width: 600px) { .cc-topo { align-items: flex-start; } .cc-topo-d { width: 100%; } .cc-abas { padding: 0 6px; } .cc-abas button { padding: 11px 12px; } .cc-fb { margin-left: 0; } }

/* ============================================================ Conexões WhatsApp dos clientes (gateway) */
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .92em; }
.gw { display: grid; gap: 4px; }
.gw-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.gw-head h2 { font-size: 22px; letter-spacing: -.3px; } .gw-head p { color: var(--muted); }
.gw-alerta { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; margin-bottom: 16px; background: #fde8e6; color: #7a271a; border: 1px solid #f9c6c0; }
.gw-alerta svg.i { flex: none; width: 22px; height: 22px; color: var(--danger); }
.gw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.gw-card { padding: 18px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
.gw-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--line); }
.gw-card.on::before { background: linear-gradient(90deg, var(--ok), var(--accent)); }
.gw-card:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -18px rgba(7,59,120,.35); border-color: color-mix(in srgb, var(--blue-500) 35%, var(--line)); }
.gw-top { display: flex; align-items: center; gap: 12px; }
.gw-av { position: relative; flex: none; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad); box-shadow: 0 10px 22px -12px rgba(11,102,195,.9); }
.gw-av .gw-dot { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border: 3px solid var(--card); }
.gw-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.gw-dot.ok { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); }
.gw-dot.warn { background: var(--warn); animation: gw-pisca 1.4s ease-in-out infinite; }
.gw-dot.danger { background: var(--danger); }
@keyframes gw-pisca { 50% { opacity: .35; } }
.gw-id { min-width: 0; flex: 1; } .gw-id h3 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .gw-id small { color: var(--muted); }
.gw-tags { display: flex; gap: 6px; flex-wrap: wrap; } .gw-tags .pill svg.i { width: 13px; height: 13px; }
.gw-num { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gw-num div { background: var(--blue-50); border-radius: 12px; padding: 9px 10px; text-align: center; }
.gw-num b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; } .gw-num small { color: var(--muted); font-size: 11.5px; }
.gw-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.gw-meta .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.gw-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.gw-vazio { grid-column: 1 / -1; display: grid; justify-items: center; gap: 6px; } .gw-vazio svg.i { width: 34px; height: 34px; color: var(--blue-300); }
.gw-outras { margin-top: 18px; } .gw-outras .card-h small { color: var(--muted); width: 100%; }
.gw-outra { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; } .gw-outra small { color: var(--muted); }
.gw-cred { color: var(--muted); font-size: 12px; text-align: center; margin-top: 18px; }
.gw-copy-in { display: flex; gap: 6px; } .gw-copy-in input { flex: 1; min-width: 0; }
.gw-code { background: #0d1b36; color: #d6e4ff; border-radius: 12px; padding: 14px 16px; font: 12.5px/1.55 ui-monospace, "Cascadia Code", Consolas, monospace; white-space: pre-wrap; word-break: break-all; margin: 0; }
.gw-code.sm { padding: 8px 10px; margin-top: 6px; font-size: 11.5px; }
.gw-teste { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gw-cred-tabs, .cx-tabs { display: flex; gap: 6px; background: var(--blue-50); padding: 5px; border-radius: 12px; margin-bottom: 16px; }
.gw-cred-tabs button, .cx-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; padding: 9px; border-radius: 9px; font-weight: 600; color: var(--muted); cursor: pointer; }
.gw-cred-tabs button.on, .cx-tabs button.on { background: var(--card); color: var(--blue-600); box-shadow: var(--shadow); }
.gw-dica { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--blue-50); flex-wrap: wrap; }
.gw-dica > svg.i { color: var(--blue-600); flex: none; } .gw-dica span { flex: 1; min-width: 200px; }

/* QR Code: usado no painel (modal) e na página do link para o cliente (conectar.html) */
.cx-grid { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 24px; align-items: center; }
.cx-qr { aspect-ratio: 1; width: 100%; max-width: 300px; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; padding: 14px; box-shadow: 0 16px 34px -20px rgba(7,59,120,.45); color: #14233d; }
.cx-qr img { width: 100%; height: auto; image-rendering: pixelated; }
.cx-qr p { color: var(--muted); text-align: center; }
.cx-passos { margin: 0; padding-left: 0; list-style: none; counter-reset: p; display: grid; gap: 12px; }
.cx-passos li { counter-increment: p; display: flex; gap: 12px; align-items: flex-start; line-height: 1.4; }
.cx-passos li::before { content: counter(p); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: var(--grad); }
.cx-num { display: grid; gap: 10px; width: 100%; align-self: stretch; align-content: center; }
.cx-num label { font-weight: 600; font-size: 13px; color: #44516b; }
.cx-num input { width: 100%; padding: 11px 13px; border: 1.5px solid #e3eaf3; border-radius: 12px; font-size: 16px; color: #14233d; background: #fff; }
.cx-cod { text-align: center; margin-top: 12px; color: #14233d; } .cx-cod small { display: block; color: #6b7a99; }
.cx-cod b { display: block; font: 800 30px/1.2 ui-monospace, Consolas, monospace; letter-spacing: 4px; color: #0b66c3; margin-top: 4px; }
.cx-spin { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--blue-100); border-top-color: var(--blue-600); animation: cx-gira .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes cx-gira { to { transform: rotate(360deg); } }
.cx-st { text-align: center; display: grid; justify-items: center; gap: 8px; padding: 10px; }
.cx-st h1 { font-size: 22px; } .cx-st p { color: var(--muted); }
.cx-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; font-weight: 800; color: #fff; background: var(--ok); box-shadow: 0 14px 30px -12px var(--ok); }
.cx-st.err .cx-ic { background: var(--danger); box-shadow: 0 14px 30px -12px var(--danger); }
@media (max-width: 640px) { .cx-grid { grid-template-columns: 1fr; justify-items: center; } }

/* Página pública do link de conexão */
.cx-body { min-height: 100vh; background: radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--blue-500) 22%, transparent), transparent), var(--bg); padding: 24px 16px; }
.cx { max-width: 820px; margin: 0 auto; display: grid; gap: 18px; }
.cx-top { display: flex; align-items: center; gap: 12px; } .cx-top img { width: 46px; height: 46px; border-radius: 14px; }
.cx-top b { display: block; font-size: 17px; } .cx-top small { color: var(--muted); }
.cx-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: 0 30px 60px -36px rgba(7,59,120,.45); }
.cx-card > h1 { font-size: 24px; letter-spacing: -.3px; } .cx-sub { color: var(--muted); margin-bottom: 18px; }
.cx-load { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.cx-foot { text-align: center; color: var(--muted); font-size: 12.5px; }
@media (max-width: 640px) { .cx-card { padding: 20px; } }
/* ============================================================ Proteção do SQL Server (SQL Guarda) */
.sqg-modo { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 16px 18px; border-radius: 16px; margin-bottom: 16px; border: 1px solid; }
.sqg-modo > div { flex: 1; min-width: 240px; display: grid; gap: 3px; } .sqg-modo span { color: inherit; opacity: .9; }
.sqg-modo > svg.i { flex: none; width: 26px; height: 26px; }
.sqg-modo.warn { background: #fffaeb; color: #7a2e0e; border-color: #fedf89; } .sqg-modo.warn > svg.i { color: var(--warn); }
.sqg-modo.ok { background: #ecfdf3; color: #054f31; border-color: #abefc6; } .sqg-modo.ok > svg.i { color: var(--ok); }
.sqg-abas { margin: 4px 0 12px; }
.sqg .tbl td.sqg-ac { text-align: right; white-space: nowrap; }
.sqg .tbl tr.sqg-off td { opacity: .55; }
.sqg-rodape { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.sqg-num { width: 80px; margin: 0 6px; }
.sqg-code { max-height: 340px; overflow: auto; font-size: 12.5px; }
.sqg-nota { padding: 12px 16px; }
.sqg code { word-break: break-all; }

/* ============================================================ Config. ARI. IA (Administrativo): frases de intenção do cliente */
.ari .ari-teste { padding: 16px 18px; display: grid; gap: 10px; margin-bottom: 16px; }
.ari .ari-teste > label { display: flex; align-items: center; gap: 8px; font-weight: 700; } .ari .ari-teste > label svg.i { width: 18px; height: 18px; color: var(--blue-500); }
.ari-teste-in { display: flex; gap: 8px; } .ari-teste-in input { flex: 1; min-width: 0; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); outline: none; }
.ari-teste-in input:focus { border-color: var(--blue-500); }
.ari-res { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; border: 1px solid; }
.ari-res.ok { background: #ecfdf3; color: #054f31; border-color: #abefc6; } .ari-res.warn { background: #fffaeb; color: #7a2e0e; border-color: #fedf89; }
.ari-res code { display: inline-block; margin: 2px 6px 2px 0; padding: 3px 9px; border-radius: 8px; background: #fff; border: 1px solid currentColor; word-break: break-all; }
.ari-res ul { margin: 0; padding-left: 18px; } .ari-res .btn { justify-self: start; }
.ari .lnk { background: none; border: 0; padding: 2px 0; color: var(--blue-600); cursor: pointer; text-align: left; font: inherit; } .ari .lnk:hover { text-decoration: underline; }
.ari-f select { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); max-width: 260px; }
.ari-bulk { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px; border-radius: 14px; background: var(--blue-50); border: 1.5px solid var(--blue-300); }
.ari-bulk b { margin-right: auto; color: var(--blue-700); }
.ari-tbl th.ari-ck, .ari-tbl td.ari-ck { width: 38px; padding-right: 0; } .ari-tbl input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--blue-600); cursor: pointer; }
.ari-tbl tbody tr { cursor: pointer; } .ari-tbl tr.ari-on td { background: var(--blue-100); } .ari-tbl tr.ari-off td:not(.ari-ck) { opacity: .55; }
.ari-tbl td.sqg-ac { text-align: right; white-space: nowrap; }
.ari-cmd { white-space: nowrap; } .ari-cmd i { color: var(--muted); font-style: normal; }
.ari-nota { padding: 12px 4px; line-height: 1.6; }
.ari-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 560px) { .ari-form .row { grid-template-columns: 1fr; } }
.ari-form textarea { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.ari-prev { padding: 10px 12px; border-radius: 12px; background: var(--blue-50); font-size: 13px; } .ari-prev code { word-break: break-all; }
.ari-sw { align-self: end; } .ari-sw label { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 10px 0; } .ari-sw input { width: 17px; height: 17px; accent-color: var(--blue-600); }
.ari-agente { border: 1.5px solid var(--blue-300); border-radius: 14px; padding: 6px 14px 14px; display: grid; gap: 10px; background: color-mix(in srgb, var(--blue-50) 55%, transparent); }
.ari-agente legend { padding: 0 6px; font-weight: 700; color: var(--blue-700); }
.ari-agente .ari-prev { background: var(--card); line-height: 1.9; }
.ari-grp { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #fffaeb; border: 1px solid #fedf89; color: #7a2e0e; cursor: pointer; font-size: 13px; }
.ari-grp input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--blue-600); flex: none; }
/* Administrativo: abas e opções presas no topo; o conteúdo da aba rola por baixo (o fundo cobre as laterais e o respiro de cima) */
.adm-topo { position: sticky; top: 0; z-index: 8; display: grid; gap: 10px; padding-block: 2px 12px; background: var(--bg);
  box-shadow: 0 0 0 40px var(--bg); clip-path: inset(-40px -40px 0 -40px); border-bottom: 1px solid var(--line); }
/* Config. ARI. IA: a lista de frases rola sozinha, com o título das colunas fixo */
.ari .tbl-wrap { max-height: max(320px, calc(100dvh - 300px)); overflow: auto; overscroll-behavior: contain; }
.ari-tbl thead th { position: sticky; top: 0; z-index: 2; background: var(--card); box-shadow: inset 0 -1px 0 var(--line); }
.ari-teste-in select { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); max-width: 220px; } @media (max-width: 640px) { .ari-teste-in { flex-wrap: wrap; } .ari-teste-in input { flex-basis: 100%; } }
.ari-campos { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 2px 0; padding: 10px 12px; border-radius: 12px; background: var(--card); color: var(--text); border: 1px solid var(--line); } .ari-campos dt { font: 600 12px ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--muted); align-self: center; } .ari-campos dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .ari-campos code { margin: 0; } @media (max-width: 520px) { .ari-campos { grid-template-columns: 1fr; } .ari-campos dd { margin-bottom: 4px; } }

/* ---------- página Cliente: usa toda a largura (estreita e alarga junto com a janela) ---------- */
.adm.adm-larga { max-width: none; }
/* Monitorar Agentes/Bots: colunas de status compactas e centralizadas; a tabela rola de lado só se faltar espaço */
.dv-tbl th.dv-st, .dv-tbl td.dv-st { text-align: center; white-space: nowrap; padding-inline: 10px; }
.dv-tbl th.dv-st { font-size: 11px; letter-spacing: .3px; }
.dv-tbl td:first-child { min-width: 200px; }
.dv-tbl .pill { min-width: 70px; justify-content: center; }
@media (max-width: 900px) {
  .dv-tbl td.dv-st { text-align: right; padding-inline: 0; }
  .dv-tbl td:first-child { min-width: 0; }
}

/* ---------- menu lateral recolhível (computador): botão no topo do menu, fica só os ícones ---------- */
.sb-tog { align-self: flex-end; width: 30px; height: 30px; margin: -10px -4px 2px 0; display: grid; place-items: center; flex: none; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; transition: background .15s, transform .25s; }
.sb-tog:hover { background: rgba(255,255,255,.24); }
.sb-tog .i { width: 16px; height: 16px; }
.shell { transition: grid-template-columns .25s ease; }
@media (min-width: 1181px) {
  .shell.recolhido { --sb: 84px; }
  .shell.recolhido .sb-tog { align-self: center; margin: -8px 0 8px; transform: rotate(180deg); }
  .shell.recolhido .sidebar { padding: 18px 10px; align-items: stretch; }
  .shell.recolhido .sidebar .brand { justify-content: center; padding: 4px 0 18px; } .shell.recolhido .sidebar .brand > span:last-child { display: none; }
  .shell.recolhido .nav a { justify-content: center; padding: 13px 0; } .shell.recolhido .nav a > span:not(.badge) { display: none; }
  .shell.recolhido .nav a:hover:not(.on) { transform: none; }
  .shell.recolhido .nav .badge { position: absolute; top: 4px; right: 10px; margin: 0; }
  .shell.recolhido .me { justify-content: center; padding: 10px 6px; flex-direction: column; } .shell.recolhido .me > div:not(.avatar) { display: none; } .shell.recolhido .me button { margin: 0; }
}
@media (max-width: 1180px) { .sb-tog { display: none; } }

/* Proteção do SQL: Ativo/Inativo clicável na lista de clientes */
.sqg-at { border: 0; cursor: pointer; font: inherit; font-size: 12px; }
.sqg-at:hover { filter: brightness(.95); box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 25%, transparent); }

/* ---- Acesso remoto (chat): identificar cliente e escolher o computador (views/remoto.js) ---- */
.rm-intro { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.rm-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 12px; }
.rm-base { margin: -6px 0 14px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rm-chip { border: 1px solid var(--line); background: var(--blue-50); color: var(--blue-600); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; cursor: pointer; }
.rm-chip:hover { border-color: var(--blue-500); }
.rm-lista { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; margin-top: 8px; padding: 2px; }
.rm-pc { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; font-size: 14px; }
.rm-pc:hover { border-color: var(--blue-500); }
.rm-pc:has(input:checked) { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(11,102,195,.14); }
.rm-pc input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue-500); }
.rm-pc__ponto { width: 8px; height: 8px; border-radius: 50%; background: #12b76a; flex: 0 0 8px; }
.rm-pc__nome { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-pc__st { font-size: 12px; color: var(--muted); }
.rm-pc.off { opacity: .55; cursor: not-allowed; } .rm-pc.off .rm-pc__ponto { background: #98a2b3; }
.rm-pc--nenhum .rm-pc__nome { font-weight: 500; color: var(--muted); }
.rm-vazio { margin: 6px 2px; color: var(--muted); font-size: 13px; }
.rm-pc__txt { flex: 1; min-width: 0; display: grid; }
.rm-pc__txt small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Suporte Remoto: computador novo pedindo identificação (remoto-novos.js) ---- */
.rn-pilha { position: fixed; right: 14px; top: calc(86px + env(safe-area-inset-top)); z-index: 95; width: min(400px, calc(100vw - 28px)); }
.rn-nota { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 20px; background: var(--card); border: 2px solid var(--blue-500); box-shadow: 0 22px 50px -16px rgba(6,39,77,.55); animation: pl-entra .35s cubic-bezier(.2,.9,.3,1.25) both; }
.rn-ic { font-size: 28px; }
.rn-tx { display: grid; flex: 1; min-width: 170px; gap: 2px; }
.rn-tx span { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn-tx em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 12px; }
.rn-tx small { color: var(--muted); font-size: 12.5px; }
.rn-ponto { width: 8px; height: 8px; border-radius: 50%; background: #12b76a; flex: 0 0 8px; } .rn-ponto.off { background: #98a2b3; }
.rn-bt { display: flex; gap: 8px; margin-left: auto; }
.ri-pc { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 12px; border-radius: 12px; background: var(--blue-50); border: 1px solid var(--line); }
.ri-pc small { margin-left: auto; color: var(--muted); font-size: 12px; }
.rm-pc__ponto.off { background: #98a2b3; }
.ri-ignorar { border: 0; background: none; padding: 0; color: var(--muted); font-size: 12.5px; text-decoration: underline; cursor: pointer; margin: -4px 0 8px; }
.ri-ignorar:hover { color: var(--text); }
@media (max-width: 900px) { .rn-pilha { top: calc(70px + env(safe-area-inset-top)); } }
.rm-busca { position: relative; }
.rm-res { display: grid; gap: 4px; max-height: 220px; overflow-y: auto; margin-top: 6px; padding: 6px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); }
.rm-res__item { display: grid; gap: 2px; text-align: left; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; color: var(--text); }
.rm-res__item:hover { background: var(--blue-50); }
.rm-res__item b { font-size: 14px; } .rm-res__item span { font-size: 12px; color: var(--muted); }
body:has(.modal-ov) .rn-pilha { display: none; }   /* telinha aberta: o cartão some e volta ao fechar */
.rn-nota.rn-pedido { border-color: #f79009; box-shadow: 0 22px 50px -16px rgba(120,60,0,.55); }
.rn-analista { font-weight: 600; color: var(--blue-700, #0b66c3) !important; }
.rn-analista.eu { color: #067647 !important; }   /* o cliente escolheu quem está vendo o cartão */
.rn-prob { font-style: italic; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ri-pedido { margin-bottom: 12px; padding: 12px 14px; border-radius: 12px; background: #fff6e5; border: 1px solid #fedf89; color: #16202a; font-size: 14px; }
.ri-pedido p { margin: 6px 0 4px; font-style: italic; color: #344054; }
.ri-pedido small { display: block; color: #93370d; font-size: 12px; margin-top: 4px; }
