:root {
  --navy: #0B3B8F; --navy-deep: #082a69; --blue: #2563EB; --sky: #3B82F6; --ice: #93C5FD;
  --bg: #F3F7FD; --card: #fff; --ink: #0F1F3D; --muted: #5B6B88; --line: #E3EAF6; --tint: #EAF2FF;
  --ok: #16A34A; --ok-bg: #E7F8EE; --warn: #B45309; --warn-bg: #FEF3C7; --bad: #DC2626; --bad-bg: #FEE9E9;
  --radius: 16px; --shadow: 0 1px 2px rgba(11,59,143,.06), 0 8px 24px rgba(11,59,143,.07);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
h1 { font-size: 24px; letter-spacing: -.01em; } h2 { font-size: 18px; } h3 { font-size: 15px; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
.boot { display: grid; place-items: center; gap: 10px; height: 100vh; color: var(--muted); }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.right { margin-left: auto; } .row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 10px; } .grow { flex: 1; min-width: 0; }
.hide { display: none !important; } .center { text-align: center; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; text-decoration: none; color: #fff; }
.brand img { width: 40px; height: 42px; }
.brand b { display: block; font-size: 21px; letter-spacing: -.02em; line-height: 1; }
.brand b i { font-style: normal; color: var(--ice); }
.brand small { font-size: 10.5px; opacity: .7; letter-spacing: .04em; }
.nav-sec { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; opacity: .55; padding: 14px 10px 4px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; color: rgba(255,255,255,.86); text-decoration: none; font-weight: 500; font-size: 14.5px; position: relative; }
.nav a:hover { background: rgba(255,255,255,.09); }
.nav a.active { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.45); }
.nav a svg { width: 19px; height: 19px; flex: none; }
.badge-dot { margin-left: auto; background: #F59E0B; color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px; }
.side-foot { margin-top: auto; padding: 12px 8px 0; font-size: 12px; opacity: .75; border-top: 1px solid rgba(255,255,255,.12); }
.side-foot b { font-weight: 600; letter-spacing: .02em; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 28px; background: rgba(255,255,255,.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar .menu-btn { display: none; }
.content { padding: 26px 28px 60px; max-width: 1280px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-head > .grow { flex: 1 1 280px; }
.topbar .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg { flex-wrap: wrap; } .seg.full { display: flex; } .seg.full button { flex: 1; padding: 7px 6px; font-size: 13px; }

.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--sky), var(--navy)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.avatar.lg { width: 44px; height: 44px; font-size: 16px; }
.avatar.bot { background: #fff; border: 2px solid var(--ice); padding: 3px; } .avatar.bot img { width: 100%; height: 100%; }

/* ---------- componentes ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 20px; }
.card.flat { box-shadow: none; } .card.pad0 { padding: 0; overflow: hidden; }
.card h2 + .muted { margin-top: 2px; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.stat { display: flex; gap: 14px; align-items: center; }
.stat .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--tint); color: var(--blue); display: grid; place-items: center; flex: none; }
.stat .ico svg { width: 24px; height: 24px; }
.stat small { color: var(--muted); font-size: 13px; display: block; } .stat strong { font-size: 28px; letter-spacing: -.02em; line-height: 1.1; }
.delta { font-size: 12px; color: var(--ok); font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; font-size: 14px; text-decoration: none; color: var(--ink); transition: .15s; white-space: nowrap; }
.btn:hover { border-color: var(--ice); background: var(--tint); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.28); }
.btn.primary:hover { background: #1d4fd1; }
.btn.danger { color: var(--bad); } .btn.danger:hover { background: var(--bad-bg); border-color: #f4b4b4; }
.btn.ghost { border-color: transparent; background: transparent; } .btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; } .icon-btn:hover { background: var(--tint); } .icon-btn svg { width: 18px; height: 18px; }
label.f { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=tel], input[type=search], select, textarea { width: 100%; padding: 10px 12px; border: 1px solid #cfdaee; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 400; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(59,130,246,.18); }
textarea { min-height: 84px; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; } .check input { width: 17px; height: 17px; accent-color: var(--blue); }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .full { grid-column: 1 / -1; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--tint); color: var(--blue); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.gray { background: #eef1f6; color: #5B6B88; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button.active { color: var(--blue); border-color: var(--blue); }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: 13.5px; cursor: pointer; color: var(--muted); } .seg button.active { background: var(--blue); color: #fff; }
table.t { width: 100%; border-collapse: collapse; } table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 14px; background: #f7faff; border-bottom: 1px solid var(--line); }
table.t td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; } table.t tr:last-child td { border-bottom: 0; } table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: #f7faff; }
.table-wrap { overflow-x: auto; }
.empty { text-align: center; padding: 38px 16px; color: var(--muted); } .empty img { width: 54px; opacity: .85; margin-bottom: 8px; }
.alert { padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); color: #7a4a05; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.alert.info { background: var(--tint); color: var(--navy); } .alert.bad { background: var(--bad-bg); color: #8f1b1b; } .alert.ok { background: var(--ok-bg); color: #116632; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 14px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; }
.meter { height: 8px; border-radius: 6px; background: var(--tint); overflow: hidden; } .meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--sky), var(--blue)); border-radius: 6px; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); } .list-item:last-child { border-bottom: 0; }

/* ---------- modal / toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(8,26,70,.5); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 14px; z-index: 100; overflow-y: auto; animation: fade .15s; }
.modal { background: #fff; border-radius: 20px; width: 100%; max-width: 640px; box-shadow: 0 30px 80px rgba(8,26,70,.35); animation: pop .18s; }
.modal.wide { max-width: 860px; } .modal.sm { max-width: 440px; }
.modal-head { display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); gap: 10px; } .modal-body { padding: 22px; } .modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; background: #fafcff; border-radius: 0 0 20px 20px; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); font-size: 14px; max-width: 360px; animation: pop .2s; } .toast.bad { background: var(--bad); } .toast.ok { background: #0f7a3a; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.login-hero { background: radial-gradient(900px 560px at 72% 42%, rgba(59,130,246,.5) 0%, transparent 62%), linear-gradient(160deg, #0B3B8F 0%, #072a6b 55%, #05173f 100%); color: #fff; padding: clamp(32px, 6vh, 64px) clamp(20px, 2.4vw, 44px) 0 clamp(32px, 4vw, 72px); position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(290px, 420px) minmax(0, 1fr); column-gap: clamp(12px, 2vw, 40px); align-items: stretch; }
.login-hero::before { content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%; right: -120px; bottom: -190px; border: 2px solid rgba(147,197,253,.2); box-shadow: 0 0 0 56px rgba(147,197,253,.05), 0 0 0 112px rgba(147,197,253,.03); pointer-events: none; }
.hero-text { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding-bottom: clamp(32px, 6vh, 64px); }
.login-hero .logo { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; } .login-hero .logo img { width: 56px; height: auto; } .login-hero .logo b { font-size: 42px; letter-spacing: -.03em; line-height: 1; } .login-hero .logo b i { font-style: normal; color: var(--ice); }
.login-hero h2 { font-size: clamp(30px, 2.6vw, 40px); line-height: 1.12; letter-spacing: -.02em; } .login-hero h2 em { font-style: normal; color: var(--ice); }
.login-hero .lead { margin: 0; font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.82); }
.login-hero ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 14px; } .login-hero li { display: flex; gap: 12px; align-items: center; font-size: 15px; line-height: 1.35; color: rgba(255,255,255,.92); }
.li-ico { width: 34px; height: 34px; border-radius: 10px; background: rgba(147,197,253,.16); display: grid; place-items: center; color: var(--ice); flex: none; } .li-ico svg { width: 19px; height: 19px; }
.hero-art { position: relative; z-index: 1; align-self: end; justify-self: center; width: 100%; max-width: 640px; display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; }
.hero-art img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; object-position: bottom right; filter: drop-shadow(0 24px 40px rgba(2,12,40,.4)); -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 100%), linear-gradient(to right, #000 86%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, #000 84%, transparent 100%), linear-gradient(to right, #000 86%, transparent 100%); mask-composite: intersect; }
.bubble { position: relative; align-self: flex-end; margin: 0 14% 30px 0; background: #fff; color: var(--ink); border-radius: 18px 18px 4px 18px; padding: 13px 16px; width: min(250px, 80%); box-shadow: 0 14px 40px rgba(0,0,0,.28); font-size: 14px; line-height: 1.4; }
.bubble::after { content: ""; position: absolute; right: 44px; bottom: -9px; width: 18px; height: 18px; background: #fff; transform: rotate(45deg); border-radius: 0 0 4px 0; }
.login-hero .by { color: rgba(255,255,255,.7); }
.login-form { display: grid; place-items: center; padding: 30px; background: #fff; } .login-form form { width: 100%; max-width: 380px; display: grid; gap: 16px; }
.by { font-size: 12px; color: var(--muted); letter-spacing: .04em; } .by b { color: var(--navy); }

/* ---------- gráfico ---------- */
.chart { width: 100%; height: auto; display: block; } .chart text { font-size: 12px; fill: var(--muted); } .legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 70px; gap: 10px; align-items: center; font-size: 14px; padding: 6px 0; } .bar-row .meter { height: 10px; }

/* ---------- central de atendimento ---------- */
.inbox { display: grid; grid-template-columns: 330px minmax(0, 1fr) 300px; gap: 0; height: calc(100vh - 150px); min-height: 520px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.inbox > section { min-height: 0; display: flex; flex-direction: column; } .inbox .list { border-right: 1px solid var(--line); } .inbox .side { border-left: 1px solid var(--line); overflow-y: auto; padding: 18px; background: #fafcff; }
.conv-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: flex-start; } .conv-item:hover { background: #f7faff; } .conv-item.active { background: var(--tint); }
.conv-item .nm { font-weight: 600; display: flex; gap: 6px; align-items: center; } .conv-item .lm { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.scroll { overflow-y: auto; flex: 1; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: #f4f8fe; min-height: 0; }
.msg { max-width: 78%; padding: 9px 13px; border-radius: 16px; white-space: pre-wrap; word-wrap: break-word; font-size: 14.5px; box-shadow: 0 1px 1px rgba(11,59,143,.06); }
.msg time { display: block; font-size: 10.5px; opacity: .6; margin-top: 3px; text-align: right; }
.msg.customer { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.ai { background: #DCEBFF; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.human { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg .who { font-size: 11px; font-weight: 700; margin-bottom: 2px; opacity: .75; }
.msg.system { align-self: center; background: #e8eefb; color: var(--navy); font-size: 12.5px; border-radius: 999px; padding: 4px 14px; box-shadow: none; max-width: 90%; }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; } .composer input { flex: 1; }
.notice { padding: 10px 16px; background: var(--warn-bg); color: #7a4a05; font-size: 13.5px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.notice.ai { background: var(--tint); color: var(--navy); }

/* ---------- Testar RecepIA ---------- */
.test-grid { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 20px; align-items: start; }
.phone { background: #0b1b3f; border-radius: 34px; padding: 12px; box-shadow: 0 30px 60px rgba(11,59,143,.28); max-width: 480px; }
.phone-in { background: #fff; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; height: min(680px, calc(100vh - 170px)); min-height: 520px; }
.wa-head { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; padding: 12px 14px; display: flex; gap: 10px; align-items: center; } .wa-head small { opacity: .8; display: block; font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--line); background: #fff; } .chip { border: 1px solid var(--ice); background: var(--tint); color: var(--navy); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; cursor: pointer; font-weight: 500; } .chip:hover { background: #dbe9ff; }
.typing { align-self: flex-end; background: #DCEBFF; border-radius: 16px; padding: 10px 14px; display: flex; gap: 4px; } .typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--sky); animation: bl 1s infinite; } .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; } @keyframes bl { 0%,60%,100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* ---------- agenda ---------- */
.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-month .dow { padding: 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; text-align: center; background: #f7faff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-cell { min-height: 108px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; background: #fff; } .cal-cell:hover { background: #f7faff; } .cal-cell.out { background: #fafbfd; opacity: .6; } .cal-cell.today .dn { background: var(--blue); color: #fff; }
.dn { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.ev { font-size: 11.5px; line-height: 1.3; padding: 3px 6px; border-radius: 6px; margin-bottom: 3px; background: var(--tint); color: var(--navy); border-left: 3px solid var(--blue); white-space: normal; overflow: hidden; word-break: break-word; cursor: pointer; display: block; width: 100%; text-align: left; border-top: 0; border-right: 0; border-bottom: 0; }
.ev.confirmed { background: var(--ok-bg); border-color: var(--ok); color: #0b5a2b; } .ev.cancelled { background: #f1f3f7; border-color: #9aa5b8; color: #6b778c; text-decoration: line-through; } .ev.completed { background: #eef0ff; border-color: #6366f1; color: #3730a3; } .ev.no_show { background: var(--bad-bg); border-color: var(--bad); color: #8f1b1b; }
.week { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 8px; overflow-x: auto; } .week .day { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; min-height: 220px; } .week .day h4 { font-size: 13px; margin-bottom: 8px; display: flex; justify-content: space-between; } .week .day.today { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(37,99,235,.12); }
.dayview { display: grid; gap: 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.dv-head { display: grid; border-bottom: 1px solid var(--line); background: #f7faff; font-weight: 700; font-size: 13px; } .dv-head div { padding: 10px; border-left: 1px solid var(--line); } .dv-head div:first-child { border-left: 0; }
.dv-body { display: grid; position: relative; } .dv-col { position: relative; border-left: 1px solid var(--line); } .dv-col:first-child { border-left: 0; background: #fafcff; }
.dv-hour { height: 56px; border-bottom: 1px dashed #e6edf8; font-size: 11px; color: var(--muted); padding: 2px 6px; } .dv-col .slot-line { height: 56px; border-bottom: 1px dashed #e6edf8; }
.dv-ev { position: absolute; left: 4px; right: 4px; border-radius: 10px; padding: 5px 8px; font-size: 12px; background: var(--tint); border-left: 4px solid var(--blue); overflow: hidden; cursor: pointer; color: var(--navy); } .dv-ev b { display: block; }
.dv-ev.confirmed { background: var(--ok-bg); border-color: var(--ok); } .dv-ev.completed { background: #eef0ff; border-color: #6366f1; } .dv-ev.cancelled { background: #f1f3f7; border-color: #9aa5b8; opacity: .6; } .dv-ev.no_show { background: var(--bad-bg); border-color: var(--bad); }
.slots { display: flex; flex-wrap: wrap; gap: 8px; } .slot { padding: 7px 12px; border-radius: 10px; border: 1px solid var(--ice); background: var(--tint); cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--navy); } .slot.sel { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- editores ---------- */
.q-item { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fbfdff; display: grid; gap: 10px; } .q-item .top { display: flex; gap: 8px; align-items: center; }
.sched-row { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: start; } .sched-row:last-child { border-bottom: 0; } .rng { display: inline-flex; gap: 4px; align-items: center; margin: 0 8px 6px 0; background: var(--tint); border-radius: 10px; padding: 4px 6px; } .rng input { width: 92px; padding: 5px 7px; border-radius: 8px; }
.perm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; background: #f0f4fb; padding: 2px 7px; border-radius: 6px; font-size: 13px; word-break: break-all; }

/* ---------- responsivo ---------- */
@media (max-width: 1150px) { .hero-art { display: none; } .login-hero { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .inbox { grid-template-columns: 300px minmax(0, 1fr); } .inbox .side { display: none; } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .test-grid, .g-side { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 60; transform: translateX(-102%); transition: transform .2s; box-shadow: 0 0 60px rgba(0,0,0,.4); } .sidebar.open { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgba(8,26,70,.45); z-index: 50; }
  .topbar { padding: 10px 14px; } .topbar .menu-btn { display: grid; } .content { padding: 18px 14px 50px; }
  .login { grid-template-columns: 1fr; } .login-hero { padding: 26px 22px 24px; } .hero-text { max-width: none; gap: 12px; padding-bottom: 0; } .login-hero h2 { font-size: 24px; } .login-hero .logo b { font-size: 32px; } .login-hero .logo img { width: 44px; } .login-hero ul, .hero-art, .login-hero::before { display: none; } .login-hero .lead { font-size: 14.5px; } .login-form { padding: 26px 22px 40px; align-items: start; }
  .g2, .g3, .form-grid, .perm-grid { grid-template-columns: 1fr; }
  .inbox { grid-template-columns: 1fr; height: auto; } .inbox .list { max-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); } .inbox .chat { height: 70vh; }
  .bar-row { grid-template-columns: 100px 1fr 54px; } .cal-cell { min-height: 78px; } .week { grid-template-columns: repeat(7, 150px); }
  h1 { font-size: 21px; }
}
@media (max-width: 520px) { .card > .row { flex-wrap: wrap; } .legend { width: 100%; } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .g4 .stat { flex-direction: column; align-items: flex-start; gap: 8px; } .g4 .card { padding: 14px; } .stat .ico { width: 40px; height: 40px; } .stat strong { font-size: 24px; } .topbar .small { display: none; } .topbar .right { gap: 6px; } .page-head .row.wrap { width: 100%; } .page-head .btn { flex: 1; } .modal-head, .modal-body { padding: 16px; } .overlay { padding: 2vh 8px; } .kv { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .week { grid-template-columns: 1fr !important; overflow: visible; } .week .day { min-height: 0; }
  .cal-cell { min-height: 64px; padding: 3px; } .cal-cell .ev { font-size: 0; height: 7px; padding: 0; margin-bottom: 3px; border-radius: 4px; border-left-width: 0; background: var(--blue); } .cal-cell .ev.confirmed { background: var(--ok); } .cal-cell .tiny { font-size: 10px; }
  .tabs-hide-m, table.t .hm { display: none; } table.t th, table.t td { padding: 10px 10px; } table.t td { white-space: nowrap; }
  .modal .row { flex-wrap: wrap; } .modal .row > .grow, .modal .q-item .top input { flex: 1 1 100%; } .modal .row select, .modal .row input[type=number] { flex: 1 1 100px; width: auto; }
  .page-head .row.wrap { width: 100%; } .toolbar-right { margin-left: 0 !important; width: 100%; }
  .dv-head > div, .dv-col { min-width: 0; }
}
@media print { .sidebar, .topbar { display: none; } .shell { display: block; } }
a.pill { text-decoration: none; }
