/* Sistema Santos & Portela – estilos base. Cores da marca em tema.css */
:root {
  --surface: #ffffff;
  --ok: #0f7a55;  --ok-bg: #e6f4ee;
  --warn: #a8570b; --warn-bg: #fdf1e3;
  --err: #b42318; --err-bg: #fdecea;
  --info: #1f5fa8; --info-bg: #e8f0fb;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3 { margin: 0; line-height: 1.2; color: var(--text); font-family: var(--font-head); font-weight: 600; letter-spacing: .01em; }
h1 { font-size: 27px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p { margin: 0; }
.ico { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.hidden { display: none !important; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; background: linear-gradient(to right, var(--brand) 248px, var(--bg) 248px); }
.sidebar { background: var(--brand); color: #dbe5f1; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; line-height: 1; }
.brand:hover { color: #fff; text-decoration: none; }
.brand__arc { width: 30px; height: 30px; fill: var(--accent); flex: none; }
.brand__name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: .02em; line-height: .92; text-transform: uppercase; }
.brand__tag { display: block; font-weight: 600; font-size: 8px; color: var(--accent-light); letter-spacing: .6em; text-transform: uppercase; margin-top: 6px; padding-left: 1px; }
.brand--lg .brand__arc { width: 40px; height: 40px; } .brand--lg .brand__name { font-size: 26px; } .brand--lg .brand__tag { font-size: 9.5px; }
.brand--dark { color: var(--brand); } .brand--dark:hover { color: var(--brand); } .brand--dark .brand__tag { color: var(--accent); }
.nav { padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav-title { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: #8fa5bf; padding: 14px 10px 6px; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 8px; color: #dbe5f1; font-weight: 500; }
.nav-link:hover { background: rgba(255,255,255,.07); text-decoration: none; color: #fff; }
.nav-link.active { background: rgba(201,151,94,.16); color: #fff; box-shadow: inset 3px 0 0 var(--accent-light); }
.nav-link.soon { opacity: .45; pointer-events: none; }
.nav-link span:first-of-type { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-link .tag { margin-left: auto; white-space: nowrap; flex: none; font-size: 10px; background: rgba(255,255,255,.12); padding: 1px 6px; border-radius: 99px; }
.sidebar .me { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.sidebar .me strong { color: #fff; display: block; font-weight: 600; }
.sidebar .me form { margin-top: 8px; }
.sidebar .me button { background: none; border: 0; color: #b9c8da; padding: 0; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; font: inherit; }
.sidebar .me button:hover { color: #fff; }
.main { min-width: 0; }
.topbar { display: none; }
.content { padding: 28px 32px 48px; max-width: 1320px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.breadcrumb { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.breadcrumb a { color: var(--muted); }

/* ---------- componentes ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { padding: 16px 18px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-head .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.card-body { padding: 18px; }
.card-body.flush { padding: 0; }
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }

.kpi { padding: 16px 18px; }
.kpi .lbl { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.kpi .val { font-family: var(--font-head); font-size: 27px; font-weight: 600; margin-top: 6px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .foot { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.kpi.kpi-alert { border-color: #f4c7c1; } .kpi.kpi-alert .val { color: var(--err); }
.progress { height: 6px; background: var(--brand-50); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-light)); border-radius: 99px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: #9a6a33; color: #fff; }
.btn-danger { color: var(--err); border-color: #f1c4bf; }
.btn-danger:hover { background: var(--err-bg); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--brand-50); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn-xs { height: 26px; padding: 0 8px; font-size: 12px; border-radius: 6px; }
.btn-wa { color: #128c4b; border-color: #bfe5cf; }
.btn-wa:hover { background: #ecf8f1; }
.btn .ico { width: 16px; height: 16px; }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-err { background: var(--err-bg); color: var(--err); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-neutral { background: #eef0f3; color: #556070; }
.badge-gold { background: var(--accent-50); color: #87661d; }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { background: #faf7f1 !important; text-align: left; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; background: #fafbfc; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fdfbf7; }
.table .t-title { font-weight: 600; color: var(--text); }
.table .t-sub { color: var(--muted); font-size: 12.5px; }
.table td.actions { text-align: right; white-space: nowrap; }
.empty { padding: 36px 18px; text-align: center; color: var(--muted); }

.alert { padding: 11px 14px; border-radius: 8px; border: 1px solid; font-weight: 500; }
.alert-ok { background: var(--ok-bg); border-color: #b9e1cf; color: #0b5c40; }
.alert-erro { background: var(--err-bg); border-color: #f4c7c1; color: #8f1d14; }
.alert-aviso { background: var(--warn-bg); border-color: #f3d3ae; color: #7a3f06; }
.flash-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }

/* formulários */
.form-section { padding: 20px 18px; border-bottom: 1px solid var(--border); }
.form-section:last-child { border-bottom: 0; }
.form-section > h2 { margin-bottom: 4px; }
.form-section > .sub { color: var(--muted); margin-bottom: 16px; font-size: 13px; }
.fields { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px 16px; }
.fields > .field { grid-column: span 4; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 5px; }
.field .req { color: var(--err); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=month], input[type=search], input[type=file], select, textarea {
  width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--border-strong); border-radius: 8px; background: #fff; color: var(--text); font: inherit;
}
textarea { height: auto; padding: 9px 11px; resize: vertical; }
input[type=file] { padding: 6px; height: auto; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(176,122,60,.15); }
input[readonly] { background: #f6f7f9; }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.field-error { font-size: 12px; color: var(--err); margin-top: 4px; font-weight: 500; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--err); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 18px; background: #faf7f1; border-top: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); position: sticky; bottom: 0; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters input[type=search] { width: 280px; }
.filters select { width: auto; min-width: 150px; }
.check { display: inline-flex; gap: 7px; align-items: center; font-weight: 500; font-size: 13px; }

.repeater-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: #fdfbf7; position: relative; }
.repeater-item + .repeater-item { margin-top: 12px; }
.repeater-item .remove { position: absolute; top: 10px; right: 10px; }
.repeater-item h3 { margin-bottom: 12px; }
.subhead { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin: 16px 0 10px; grid-column: 1 / -1; }

/* lista de definição (ficha) */
.dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 22px; }
.dl > div { min-width: 0; }
.dl dt { font-size: 12px; color: var(--muted); font-weight: 500; }
.dl dd { margin: 2px 0 0; font-weight: 500; word-wrap: break-word; }
.dl .wide { grid-column: 1 / -1; }
.secret { display: inline-flex; align-items: center; gap: 6px; }
.secret .val { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.secret button { border: 0; background: none; color: var(--brand-600); cursor: pointer; padding: 2px; display: inline-flex; }
.secret button .ico { width: 15px; height: 15px; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--border); }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.date-chip { width: 44px; flex: none; text-align: center; border-radius: 8px; background: var(--brand-50); color: var(--brand); padding: 4px 0; line-height: 1.1; }
.date-chip b { display: block; font-size: 17px; }
.date-chip span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; }
.date-chip.today { background: var(--accent); color: #fff; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 9px 12px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--brand); border-color: var(--accent); }

.pagination { display: flex; gap: 6px; justify-content: flex-end; padding: 12px 14px; border-top: 1px solid var(--border); }

dialog { border: 0; border-radius: 12px; padding: 0; width: min(460px, 94vw); box-shadow: 0 20px 50px rgba(16,24,40,.25); }
dialog::backdrop { background: rgba(15, 23, 42, .45); }
dialog .card-head { border-radius: 12px 12px 0 0; }

.callout { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--accent-50); border: 1px solid #ecdcb4; }
.callout .ico { color: #87661d; margin-top: 2px; }
.callout-key { background: #fff8e5; border-color: #f0d990; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #fff; border: 1px dashed var(--border-strong); padding: 3px 8px; border-radius: 6px; font-size: 14px; }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-side { background: var(--brand); color: #dbe5f1; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-arcs { position: absolute; right: 0; top: 0; height: 100%; width: 46%; opacity: .9; pointer-events: none; }
.auth-arcs use { fill: rgba(255,255,255,.04); }
.auth-arcs .gold use { fill: var(--accent); opacity: .85; }
.auth-side > *:not(.auth-arcs) { position: relative; z-index: 1; }

.auth-side h2 { color: #fff; font-size: 34px; line-height: 1.15; max-width: 460px; font-family: var(--font-head); font-weight: 600; }
.auth-side p { max-width: 420px; margin-top: 12px; color: #b9c8da; }
.auth-side ul { padding: 0; list-style: none; margin: 22px 0 0; display: grid; gap: 8px; }
.auth-side li { display: flex; gap: 9px; align-items: center; }
.auth-side li::before { content: ""; width: 7px; height: 7px; background: var(--accent); border-radius: 2px; transform: rotate(45deg); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 380px; }
.auth-box h1 { margin-bottom: 4px; }
.auth-box .field { margin-top: 14px; }
.auth-box .btn { width: 100%; height: 42px; margin-top: 20px; }
.guest-wrap { max-width: 560px; margin: 60px auto; padding: 0 18px; }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; background: var(--bg); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .topbar { display: flex; align-items: center; gap: 12px; background: var(--brand); padding: 10px 14px; position: sticky; top: 0; z-index: 40; }
  .topbar button { background: none; border: 0; color: #fff; padding: 4px; cursor: pointer; display: inline-flex; }
  .topbar .brand__name { font-size: 15px; } .topbar .brand__arc { width: 24px; height: 24px; }
  .content { padding: 20px 16px 40px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .fields > .field { grid-column: 1 / -1 !important; }
  .dl { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .filters input[type=search] { width: 100%; }
}
@media print {
  .sidebar, .topbar, .form-actions, .btn, .filters { display: none !important; }
  .app { display: block; }
  .card { box-shadow: none; }
}
.only-mobile { display: none; }
@media (max-width: 860px) { .only-mobile { display: block; } }

/* =====================================================================
   ESTRUTURA DO CRM SANTOS & PORTELA (cabeçalho superior, creme, 1480px)
   ===================================================================== */
body { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
.wrap { flex: 1; width: 100%; max-width: 1480px; margin: 0 auto; padding: 24px 20px 40px; }
.site-foot { text-align: center; color: #8D9AAE; font-size: 11px; padding: 16px; }
.page-head { margin-bottom: 18px; }
.page-head h1 { font-size: 28px; }

/* marca no padrão do CRM */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); position: relative; line-height: 1; }
.brand__arc { width: 34px; height: 34px; fill: var(--accent); flex: none; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: .92; text-transform: uppercase; letter-spacing: .5px; }
.brand__tag { font-size: 10px; letter-spacing: 3.2px; text-transform: uppercase; color: var(--accent); margin-top: 4px; font-weight: 600; padding: 0; }
.brand--sm .brand__name { font-size: 16px; } .brand--sm .brand__tag { font-size: 8px; letter-spacing: 2.6px; } .brand--sm .brand__arc { width: 26px; height: 26px; }
.top .brand, .top .brand:hover { color: #fff; }

/* cabeçalho */
.top { background: var(--brand); color: #fff; display: flex; align-items: center; gap: 24px; padding: 12px 20px; position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.top__nav { display: flex; gap: 4px; flex: 1; }
.top__nav a { color: #c9d2df; padding: 8px 12px; border-radius: 6px; font-weight: 500; font-size: 13px; white-space: nowrap; }
.top__nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.top__nav a.is-on { color: #fff; background: rgba(201,151,94,.18); box-shadow: inset 0 -2px 0 var(--accent-light); }
.top__user { display: flex; align-items: center; gap: 12px; }
.top__burger { display: none; background: none; border: 0; padding: 6px; cursor: pointer; margin-left: auto; }
.top__burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; color: #fff; }
.usermenu summary::-webkit-details-marker { display: none; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.usermenu__box { position: absolute; right: 0; top: 44px; background: #fff; color: var(--text); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(7,26,51,.06), 0 4px 16px rgba(7,26,51,.08); border: 1px solid var(--border); padding: 14px; min-width: 240px; display: flex; flex-direction: column; gap: 6px; z-index: 60; }
.usermenu__box small { color: var(--muted); margin-bottom: 6px; }
.usermenu__box a, .usermenu__box button { color: var(--text); padding: 6px 0; border: 0; border-top: 1px solid var(--border); background: none; text-align: left; font: inherit; cursor: pointer; width: 100%; }
.usermenu__box a:hover, .usermenu__box button:hover { color: var(--accent); }
.pill { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 9px; font-size: 11px; font-weight: 700; text-align: center; line-height: 18px; }
.pill--gold { background: var(--accent); color: #fff; } .pill--red { background: var(--err); color: #fff; }

/* componentes no tom do CRM */
.card { box-shadow: 0 1px 2px rgba(7,26,51,.06), 0 4px 16px rgba(7,26,51,.05); }
.btn { border-radius: 7px; font-size: 13px; }
.btn-accent, .btn-accent:hover { color: #fff; }
.btn-wa { background: #1f9d55; border-color: #1f9d55; color: #fff; } .btn-wa:hover { background: #178245; border-color: #178245; color: #fff; }
.kpi .val { font-size: 26px; }
.alert-ok { background: #edf7f0; color: #2f7d4f; border-color: #cfe8d8; }
.alert-erro { background: #fdeceb; color: #B42318; border-color: #f6cfcb; }
.alert-aviso { background: #fff5e5; color: #b26b00; border-color: #f3dcb4; }

/* login (cartão central do CRM) */
.login { min-height: calc(100vh - 120px); display: grid; place-items: center; position: relative; }
.login::before { content: ""; position: fixed; inset: 0; background: radial-gradient(circle at 85% 10%, rgba(201,151,94,.18), transparent 40%), radial-gradient(circle at 5% 95%, rgba(7,26,51,.08), transparent 45%); pointer-events: none; }
.login__card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 36px 34px; width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(7,26,51,.1); position: relative; }
.login__card .brand { margin-bottom: 24px; }
.login__card h1 { font-size: 24px; margin-bottom: 4px; }

@media (max-width: 960px) {
  .top { flex-wrap: wrap; gap: 10px; } .top__burger { display: block; }
  .top__nav, .top__user { display: none; width: 100%; }
  body.nav-open .top__nav { display: flex; flex-direction: column; }
  body.nav-open .top__user { display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.1); }
  .usermenu__box { right: auto; left: 0; }
  .wrap { padding: 18px 14px 32px; }
}
.table td.mono { white-space: nowrap; }

/* ---------- financeiro ---------- */
.fin-tabs { margin-bottom: 18px; }
.val-ent { color: var(--ok); } .val-sai { color: var(--err); }
.chart { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; align-items: end; height: 210px; padding: 8px 4px 0; }
.chart .col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart .bars { display: flex; gap: 5px; align-items: flex-end; height: 170px; }
.chart .bar { width: 22px; border-radius: 5px 5px 0 0; min-height: 2px; }
.chart .bar.ent { background: #2f7d4f; } .chart .bar.sai { background: var(--err); opacity: .85; }
.chart .mes { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.catbar { display: grid; grid-template-columns: 1fr 110px; gap: 4px 12px; align-items: center; font-size: 13px; }
.catbar .track { grid-column: 1 / -1; height: 6px; background: var(--brand-50); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.catbar .track span { display: block; height: 100%; border-radius: 99px; }
.tipo-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 1px 6px; border-radius: 4px; }
.tipo-receber { background: #e6f4ea; color: #2f7d4f; } .tipo-pagar { background: #fdeceb; color: var(--err); }
.origem-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 4px; background: var(--accent-50); color: #87661d; }
.repeat-box { display: none; } .repeat-box.on { display: contents; }
.com-box { display: contents; }

.card-late { border-color: #f4c7c3; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.rel-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; cursor: pointer; background: #fff; }
.rel-opt:hover { border-color: var(--accent); }
.rel-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-50); box-shadow: 0 0 0 2px rgba(176,122,60,.15); }
.rel-opt input { margin-top: 3px; accent-color: var(--accent); }
.rel-opt b { display: block; font-size: 14px; }
.rel-opt small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ---------- licitações ---------- */
.op-list { display: flex; flex-direction: column; gap: 12px; }
.op-card { padding: 16px 18px; }
.op-off { opacity: .55; }
.op-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.op-id { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--brand-50); color: var(--brand); padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.op-obj { font-weight: 600; font-size: 14.5px; line-height: 1.45; color: var(--text); }
.op-meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.op-dados { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; padding: 10px 12px; background: #fdfbf7; border: 1px solid var(--border); border-radius: 8px; }
.op-dados small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.op-dados b { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.op-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; font-weight: 600; }
.op-acao { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.op-acao select { width: auto; min-width: 280px; height: 32px; }
.op-acao p { width: 100%; }
.op-cli { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--border); }
.ufchk { display: flex; flex-wrap: wrap; gap: 5px; }
.ufchk label { margin: 0; cursor: pointer; }
.ufchk input { position: absolute; opacity: 0; pointer-events: none; }
.ufchk span { display: inline-block; border: 1px solid var(--border-strong); background: #fff; border-radius: 5px; padding: 6px 0; width: 44px; text-align: center; font: 600 11.5px var(--font); color: var(--text-2); }
.ufchk input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 860px) { .op-dados { grid-template-columns: 1fr 1fr; } .op-acao select { min-width: 0; width: 100%; } }

/* ---------- radar v2 ---------- */
.radar { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.radar-side { position: sticky; top: 76px; }
.radar-bar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 4px; }
.radar-bar select { width: auto; min-width: 0; height: 34px; }
.radar-bar input[type=search] { height: 34px; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--border); border-radius: 9px; padding: 3px; gap: 2px; }
.seg a { padding: 6px 12px; border-radius: 7px; color: var(--text-2); font-weight: 600; font-size: 13px; }
.seg a span { font-size: 11px; background: var(--brand-50); color: var(--brand); border-radius: 99px; padding: 1px 7px; margin-left: 3px; }
.seg a.on { background: var(--brand); color: #fff; } .seg a.on span { background: rgba(255,255,255,.18); color: #fff; }
.seg a:hover { text-decoration: none; }
.op-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.op-codigo { font-weight: 700; font-size: 12px; background: var(--brand); color: #fff; padding: 3px 9px; border-radius: 6px; letter-spacing: .02em; }
.op-score { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 13px; color: #2f7d4f; background: #e6f4ea; border-radius: 99px; padding: 3px 10px; }
.op-score .ico { width: 14px; height: 14px; }
.op-ext { font-size: 12.5px; font-weight: 600; padding: 3px 8px; border: 1px solid var(--border); border-radius: 6px; color: var(--text-2); }
.op-ext:hover { border-color: var(--accent); text-decoration: none; }
.op-titulo { font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--brand); letter-spacing: .01em; }
.op-uasg { font-size: 12.5px; color: var(--muted); margin-top: 2px; text-transform: uppercase; }
.op-abas { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin: 14px 0 12px; overflow-x: auto; }
.op-abas button { border: 0; background: none; padding: 9px 14px; font: 600 13.5px var(--font); color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.op-abas button.on { color: var(--brand); border-color: var(--accent); }
.op-painel[hidden] { display: none; }
.op-obj { font-size: 14px; line-height: 1.55; color: var(--text); text-transform: none; }
.op-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 18px; margin-top: 12px; font-size: 13.5px; }
.op-grid b { color: var(--brand); font-weight: 700; margin-right: 4px; }
.op-palavras { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.op-palavras span { background: #eef1f5; color: var(--text-2); border-radius: 99px; padding: 3px 11px; font-size: 12.5px; }
.op-acoes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.op-acoes form, .op-acoes button { width: 100%; }
.op-acoes .btn { height: 40px; }
.op-ocultar { color: #0f8b8d; }
.op-itens td { font-size: 12.5px; vertical-align: top; }
.filtros li { padding: 10px 16px; gap: 8px; }
.filtros li.on { background: var(--accent-50); box-shadow: inset 3px 0 0 var(--accent); }
.filtros li a.grow { color: var(--text); font-weight: 500; }
.filtros .filtros-cli { padding: 12px 16px 4px; border-bottom: 0; }
.filtros .filtros-cli a { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.filtro-edit { color: var(--muted); font-weight: 700; padding: 0 4px; }
.grupo { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: #fdfbf7; }
.grupo + .grupo { margin-top: 12px; }
.ta-ok { background: #f3faf5 !important; } .ta-no { background: #fdf4f3 !important; }
.toggle { white-space: nowrap; }
@media (max-width: 1100px) { .radar { grid-template-columns: 1fr; } .radar-side { position: static; order: -1; } .op-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .op-acoes { grid-template-columns: 1fr; } .op-grid { grid-template-columns: 1fr; } }

/* ---------- formulário do filtro ---------- */
.fsec-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.fsec-head > div { flex: 1; }
.fsec-head h2 { margin: 0; }
.fsec-head .sub { margin: 3px 0 0; }
.fsec-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font: 700 13px var(--font); margin-top: 1px; }
.sel-todos { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); cursor: pointer; white-space: nowrap; border: 1px solid var(--border); border-radius: 99px; padding: 5px 12px; background: #fff; margin: 0; }
.sel-todos input { accent-color: var(--accent); margin: 0; }
.fsub { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13.5px; color: var(--brand); }
.fsub .sel-todos { padding: 3px 10px; font-size: 12px; }
.fgrid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.chips { display: grid; gap: 8px; }
.chips.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chips.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chips.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chips.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.chip { margin: 0; cursor: pointer; position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: flex; align-items: center; gap: 8px; min-height: 40px; height: 100%; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: #fff; font-size: 13px; font-weight: 500; color: var(--text-2); line-height: 1.25; transition: .12s; }
.chip span::before { content: ''; flex: none; width: 16px; height: 16px; border: 1.5px solid var(--border-strong); border-radius: 4px; background: #fff; }
.chip input[type=radio] + span::before { border-radius: 50%; }
.chip:hover span { border-color: var(--accent); }
.chip input:checked + span { border-color: var(--brand); background: var(--brand-50, #eef2f7); color: var(--brand); font-weight: 600; }
.chip input:checked + span::before { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--brand); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 1000px) { .chips.cols-5, .chips.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fgrid-2 { grid-template-columns: 1fr; } .chips.cols-3 { grid-template-columns: 1fr; } }

/* ---------- etapa 3: analista de editais ---------- */
.op-ia { font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: var(--accent); color: #fff !important; }
.op-ia:hover { text-decoration: none; filter: brightness(1.06); }
.op-ia--ok { background: #e6f4ea; color: #2f7d4f !important; }
.op-resumo { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: #fdfbf7; }
.op-resumo .op-codigo { margin-right: 8px; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 2px dashed var(--border-strong); border-radius: 12px; padding: 26px; cursor: pointer; background: #fdfbf7; text-align: center; margin: 0; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: #fbf5ec; }
.dropzone input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dropzone .ico { width: 28px; height: 28px; color: var(--accent); }
.dropzone-lista { color: var(--brand); font-weight: 600; }
.id-pergunta__q { font-weight: 700; color: var(--brand); margin: 0 0 10px; }
.id-pergunta .chip span span { display: block; }
.analise { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.analise-side { position: sticky; top: 76px; display: grid; gap: 16px; }
.analise-rodando { display: flex; gap: 16px; align-items: center; padding: 18px 20px; margin-bottom: 16px; border-left: 4px solid var(--accent); }
.spinner { width: 30px; height: 30px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: gira 0.9s linear infinite; flex: none; }
@keyframes gira { to { transform: rotate(360deg); } }
/* Formulário de Análise: layout fixo da instrução do analista */
.af { background: #fff; width: 100%; max-width: 1315px; font-family: Arial, Helvetica, sans-serif; color: #1d293f; border: 1px solid #435169; border-radius: 4px; overflow: hidden; }
.af-logo { text-align: center; padding: 18px 16px 14px; border-bottom: 1px solid #435169; }
.af-logo img { max-width: 100%; max-height: 120px; height: auto; display: inline-block; }
.af-semlogo { color: #8a93a3; font-size: 13px; padding: 14px; border: 1px dashed #c8ced8; }
.af-campo { padding: 9px 16px 10px; border-bottom: 1px solid #435169; }
.af-campo:last-child { border-bottom: 0; }
.af-campo label { display: block; font: 700 11px Arial, Helvetica, sans-serif; text-transform: uppercase; letter-spacing: .04em; color: #1d293f; margin: 0 0 4px; }
.af-campo textarea { width: 100%; border: 0; padding: 2px 0; background: transparent; font: 14px/1.45 Arial, Helvetica, sans-serif; color: #1d293f; resize: vertical; min-height: 22px; overflow: hidden; box-shadow: none; }
.af-campo textarea:focus { outline: 1px dashed #c9975e; outline-offset: 2px; }
.af-bege { background: #f4f3ee; }
.af-alerta label, .af-alerta textarea { color: #b42318; font-weight: 700; }
.af-faltam label { color: #c0564b; }
.af-final { padding-top: 12px; padding-bottom: 14px; }
.af-acoes { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.chat .card-head { border-bottom: 1px solid var(--border); }
.chat-msgs { max-height: 460px; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 92%; }
.msg-txt { padding: 9px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; }
.msg--eu { align-self: flex-end; } .msg--eu .msg-txt { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg--ia { align-self: flex-start; } .msg--ia .msg-txt { background: #f3efe7; color: var(--text); border-bottom-left-radius: 4px; }
.msg-meta { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.msg--eu .msg-meta { text-align: right; }
.msg--pensando .msg-txt { color: var(--muted); font-style: italic; }
.chat-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); align-items: flex-end; }
.chat-form textarea { flex: 1; resize: none; }
.arq-lista li { padding: 10px 16px; font-size: 13px; }
.arq-lista a { word-break: break-word; font-weight: 600; }
.dlg { width: min(640px, 94vw); padding: 20px 22px; }
.dlg h2 { margin-top: 0; }
.dlg-html { width: min(1360px, 96vw); max-height: 92vh; padding: 24px 24px 0; position: relative; }
.dlg-html-foot { position: sticky; bottom: 0; background: #fff; padding: 14px 0 18px; text-align: center; border-top: 1px solid #e5e7eb; margin-top: 16px; }
.dlg-x { position: absolute; top: 6px; right: 10px; border: 0; background: none; font-size: 26px; line-height: 1; color: #64748b; cursor: pointer; }
.logo-prev { border: 1px solid var(--border); border-radius: 8px; padding: 12px; text-align: center; margin: 10px 0; background: #fff; }
.logo-prev img { max-height: 90px; max-width: 100%; }
@media (max-width: 1150px) { .analise { grid-template-columns: 1fr; } .analise-side { position: static; } }
.chip span span { display: block; border: 0; padding: 0; min-height: 0; background: none !important; }
.chip span span::before { display: none; }
.dlg-html[open] { display: flex; flex-direction: column; height: 92vh; overflow: hidden; margin: auto; }
.dlg-html [data-html-view] { flex: 1; overflow: auto; padding-bottom: 8px; }
.dlg-html-foot { position: static; flex: none; }
.af-campo textarea { resize: none; }
.passos > summary { padding: 14px 18px; cursor: pointer; color: var(--brand); }
.passos[open] > summary { border-bottom: 1px solid var(--border); }
.passos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.passo { padding: 18px 20px; border-right: 1px solid var(--border); }
.passo:last-child { border-right: 0; }
.passo h3 { margin: 10px 0 4px; font-size: 16px; color: var(--brand); }
.passo .fsec-num { margin: 0; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.arq-mini { list-style: none; padding: 0; margin: 10px 0 0; font-size: 12.5px; max-height: 180px; overflow: auto; }
.arq-mini li { padding: 4px 0; border-bottom: 1px dashed var(--border); word-break: break-word; }
.copiavel { display: flex; gap: 8px; align-items: center; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; background: #fdfbf7; }
.copiavel code { flex: 1; font-size: 13px; color: var(--brand); font-weight: 700; }
@media (max-width: 1000px) { .passos-grid { grid-template-columns: 1fr; } .passo { border-right: 0; border-bottom: 1px solid var(--border); } }

/* ---------- etapa 4: painel de oportunidades ---------- */
.pkpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.pkpi { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.pkpi span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pkpi b { font-family: var(--font-head); font-size: 22px; color: var(--brand); font-variant-numeric: tabular-nums; }
.pkpi small { font-size: 11.5px; color: var(--muted); }
.pkpi--gold b { color: var(--accent); } .pkpi--ok b { color: #15803d; } .pkpi--err b { color: #b42318; } .pkpi--mut b { color: #64748b; }
.pkpi--destaque { background: var(--brand); border-color: var(--brand); } .pkpi--destaque span { color: #c9d3e3; } .pkpi--destaque b { color: #fff; font-size: 19px; }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.kcol { background: #f3f0ea; border-radius: 12px; border-top: 4px solid var(--cor); min-height: 160px; display: flex; flex-direction: column; }
.kcol.over { outline: 2px dashed var(--cor); outline-offset: -4px; background: #ece6dc; }
.kcol-head { padding: 10px 12px 8px; }
.kcol-head b { font-size: 13.5px; color: var(--brand); }
.kcol-head small { color: var(--muted); font-size: 12px; }
.kcount { background: var(--cor); color: #fff; border-radius: 99px; font-size: 11.5px; font-weight: 700; padding: 1px 8px; }
.kcol-body { padding: 0 8px 10px; display: flex; flex-direction: column; gap: 8px; max-height: 70vh; overflow-y: auto; }
.kcard { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 11px; color: var(--text); box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.kcard:hover { text-decoration: none; border-color: var(--accent); box-shadow: 0 4px 12px rgba(16,24,40,.1); }
.kcard[draggable=true] { cursor: grab; }
.kcard.arrastando { opacity: .5; }
.kcard .op-codigo { font-size: 11px; padding: 2px 7px; }
.kcli { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--accent); }
.korg { font-size: 12.5px; color: var(--brand); line-height: 1.3; }
.kobj { font-size: 12.5px; color: var(--text-2); line-height: 1.35; }
.kmeta { font-size: 11.5px; color: var(--muted); }
.kfoot { display: flex; justify-content: space-between; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--brand); border-top: 1px dashed var(--border); padding-top: 6px; margin-top: 2px; }
.kia { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.kdias { font-size: 11px; font-weight: 700; color: var(--muted); }
.kdias--urg { color: #b42318; }
.kcta { font-size: 12px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 6px; text-align: center; padding: 4px; margin-top: 4px; }
.kvazio { color: var(--muted); font-size: 12px; text-align: center; padding: 14px 0; margin: 0; }
.fase-badge { display: inline-block; vertical-align: middle; font-size: 13px; font-weight: 700; color: #fff; background: var(--cor); padding: 4px 11px; border-radius: 99px; font-family: var(--font); }
.stepper { list-style: none; display: flex; gap: 0; padding: 0; margin: 0 0 18px; overflow-x: auto; }
.stepper li { flex: 1; min-width: 110px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 10px 12px; background: #fff; border: 1px solid var(--border); border-right: 0; }
.stepper li:first-child { border-radius: 10px 0 0 10px; } .stepper li:last-child { border-radius: 0 10px 10px 0; border-right: 1px solid var(--border); }
.stepper li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #eef1f5; font-size: 11px; flex: none; }
.stepper li.feito { color: #15803d; } .stepper li.feito span { background: #15803d; color: #fff; }
.stepper li.atual { color: var(--brand); background: #fbf5ec; } .stepper li.atual span { background: var(--accent); color: #fff; }
.opv { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.opv-side { display: grid; gap: 16px; position: sticky; top: 76px; }
.opv-main > .card + .card { margin-top: 16px; }
.decisao { padding: 18px 20px; border-left: 4px solid var(--accent); }
.decisao h2 { margin: 0 0 4px; }
.decisao textarea { margin: 8px 0 12px; }
.decisao-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.decisao-btns .btn { flex: 1; min-width: 150px; height: 44px; justify-content: center; }
.resumo-an { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.resumo-an > div { padding: 10px 18px; border-top: 1px solid var(--border); }
.resumo-an > div:nth-child(odd):not(.ra-largo) { border-right: 1px solid var(--border); }
.resumo-an .ra-largo { grid-column: 1 / -1; }
.resumo-an dt { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 3px; }
.resumo-an dd { margin: 0; font-size: 13.5px; color: var(--text); }
.resumo-an .ra-alerta { background: #fdf3f2; } .resumo-an .ra-alerta dt, .resumo-an .ra-alerta dd { color: #b42318; font-weight: 700; }
.field-destaque input { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(176,122,60,.2); }
.hist li { padding: 10px 16px; }
@media (max-width: 1100px) { .opv { grid-template-columns: 1fr; } .opv-side { position: static; } .resumo-an { grid-template-columns: 1fr; } .resumo-an > div { border-right: 0 !important; } }
.kcol--trava { background: #eeece8; }
.kcol--cli { background: #fbf6ea; box-shadow: inset 0 0 0 1px rgba(184, 140, 50, .28); }
.kcol--cli .kcol-head b { color: #7a5a14; }
.kcol--trava .kcol-head b { color: #64748b; }
.ktrava { font-size: 11px; }
.kmin { font-size: 11.5px; font-weight: 700; color: #1d4ed8; background: #eef3ff; border-radius: 6px; padding: 3px 6px; }
.decisao-part { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin: 10px 0 12px; background: #fbfdff; }
.decisao-part h3 { margin: 0 0 10px; color: var(--brand); font-size: 15px; }
.decisao-part textarea { margin: 8px 0 10px; }
.decisao-btns form { flex: 1; min-width: 150px; } .decisao-btns form .btn { width: 100%; }
.part-box { border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px 4px; margin: 0 0 12px; }
.part-box legend { font-size: 12px; font-weight: 700; color: var(--brand); padding: 0 4px; }
.part-campos { gap: 0 10px; }
.item-desc { min-width: 360px; line-height: 1.5; }
.item-desc details summary { cursor: pointer; list-style: none; }
.item-desc details summary::-webkit-details-marker { display: none; }
.item-desc details[open] summary { display: none; }
.item-desc .link { color: var(--accent); font-weight: 700; white-space: nowrap; }
.item-full { white-space: normal; }
.item-extra { margin-top: 6px; color: var(--text-2); }
.item-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; }
.item-meta span { font-size: 11px; background: #eef1f5; color: var(--text-2); border-radius: 99px; padding: 1px 8px; }
.item-meta .item-me { background: #e6f4ea; color: #2f7d4f; font-weight: 700; }
.cli-faixa { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.cli-faixa > div { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 3px; }
.cli-faixa span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cli-faixa b { color: var(--brand); font-size: 16px; }
.cli-faixa small { color: var(--muted); }
.cli-faixa .badge { align-self: flex-start; }
.cli-faixa--atraso { border-color: #f4c7c1 !important; background: #fdf4f3 !important; } .cli-faixa--atraso b { color: #b42318; }
@media (max-width: 800px) { .cli-faixa { grid-template-columns: 1fr; } }
.avisos { background: #fff8eb; border: 1px solid #f3d3ae; border-left: 5px solid var(--accent); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.avisos-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #7a3f06; }
.avisos ul { margin: 8px 0 0; padding-left: 18px; }
.avisos li { margin: 3px 0; }
.kcard--nova { border: 2px solid var(--accent); background: #fffaf1; box-shadow: 0 0 0 3px rgba(176,122,60,.18); }
.knova { font-size: 11px; font-weight: 800; color: #fff; background: var(--accent); border-radius: 6px; padding: 2px 6px; align-self: flex-start; }
.kprazo { font-size: 11.5px; font-weight: 700; color: #7a3f06; background: #fff5e5; border-radius: 6px; padding: 2px 6px; align-self: flex-start; }
.kprazo--urg { color: #b42318; background: #fdecea; }
.dlg-part { width: min(860px, 96vw); max-height: 92vh; overflow-y: auto; }
.dlg-part-acoes { padding: 14px 0 0; background: none; border: 0; position: sticky; bottom: -20px; background: #fff; }
.pitens { display: grid; gap: 10px; max-height: 56vh; overflow-y: auto; padding-right: 4px; }
.pitem { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: #fff; }
.pitem--on { border-color: #1d4ed8; background: #f6f9ff; box-shadow: inset 3px 0 0 #1d4ed8; }
.pitem-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.pitem-n { font-weight: 800; color: var(--brand); }
.pitem-q { color: var(--muted); }
.pitem-desc { font-size: 13px; margin: 4px 0 8px; }
.pitem-desc summary { cursor: pointer; color: var(--text); }
.pitem-desc div { margin-top: 6px; color: var(--text-2); }
.pitem-campos { display: grid; grid-template-columns: 1.2fr auto 1fr 1fr; gap: 8px; align-items: end; }
.pitem-f { display: flex; flex-direction: column; gap: 3px; margin: 0; }
.pitem-f span { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.pitem-f[hidden] { display: none; }
.pitem-serv { padding-bottom: 8px; white-space: nowrap; }
@media (max-width: 700px) { .pitem-campos { grid-template-columns: 1fr 1fr; } }
.fgrupo[hidden] { display: none; }
.fgrupo { border-left: 3px solid var(--border); padding-left: 10px; margin-bottom: 4px; }
.kfase { font-size: 11.5px; font-weight: 700; color: #0f766e; background: #e7f6f3; border-radius: 6px; padding: 3px 6px; }
[data-recorrente-datas][hidden] { display: none; }
.resultados-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 4px 0 8px; }
.resultados-head h2 { margin: 0; font-size: 17px; }
.resultados-head select { width: auto; min-width: 180px; height: 34px; }

/* ---------- etapa 5: robô de lances ---------- */
.robo { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.chip-alto span { align-items: flex-start; }
.chip-alto span span { display: block; border: 0; padding: 0; min-height: 0; background: none !important; }
.chip-alto span span::before { display: none; }
.sim-res { border-radius: 8px; padding: 10px 12px; margin: 0 0 10px; }
.sim-res--ok { background: #e6f4ea; color: #166534; } .sim-res--no { background: #fdecea; color: #b42318; }
.sim-lances { max-height: 320px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.sim-lances div { display: flex; justify-content: space-between; padding: 5px 10px; font-size: 12.5px; border-bottom: 1px solid var(--border); }
.sim-lances .sim-nos { background: #f6f9ff; color: #1d4ed8; font-weight: 600; }
.robo-log li { padding: 8px 16px; font-size: 12.5px; }
.robo-tipo { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; border-radius: 4px; padding: 1px 6px; background: #eef1f5; color: var(--text-2); }
.robo-tipo--lance { background: #e6f4ea; color: #166534; } .robo-tipo--erro { background: #fdecea; color: #b42318; } .robo-tipo--config { background: #fff5e5; color: #7a3f06; }
@media (max-width: 1100px) { .robo { grid-template-columns: 1fr; } }
.robo-status { display: grid; grid-template-columns: 1fr 1fr 1.4fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--border); border-left: 5px solid #15803d; border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; }
.robo-status--pausa { border-left-color: #b42318; background: #fffaf9; }
.robo-status span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.robo-status b { color: var(--brand); }
.robo-padrao { margin-bottom: 14px; } .robo-padrao > summary { padding: 13px 18px; cursor: pointer; }
.robo-padrao[open] > summary { border-bottom: 1px solid var(--border); }
.robo-tab td { vertical-align: top; }
.robo-vivo div { white-space: nowrap; font-size: 12px; } .robo-vivo .vivo-1 { color: #15803d; font-weight: 700; }
.iv-origem { font-size: 12.5px; background: #e6f4ea; color: #166534; border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; }
.iv-origem--no { background: #fff5e5; color: #7a3f06; }
@media (max-width: 1000px) { .robo-status { grid-template-columns: 1fr 1fr; } }
.robo-tab + * {} [data-robo-central] .card-head select { width: auto; min-width: 0; height: 34px; } [data-robo-central] .card-head .row { flex-wrap: nowrap; }
.robo-acoes { gap: 6px; flex-wrap: wrap; }
.btn-play { background: #e6f4ea; color: #166534; border-color: #b9e1cf; } .btn-pause { background: #fdecea; color: #b42318; border-color: #f6cfcb; }
.robo-pp { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; font-size: 14px; background: #e6f4ea; color: #166534; }
.robo-pp--on { background: #fdecea; color: #b42318; }
.robo-on { background: #f6fbf7; }
.robo-in { height: 32px; padding: 4px 8px; font-size: 13px; width: auto; }
.robo-in--s { width: 56px; }
.robo-itens { min-width: 220px; }
.robo-item { display: flex; align-items: center; gap: 6px; font-size: 12.5px; margin: 0 0 4px; white-space: nowrap; }
.robo-rodape { border-top: 1px solid var(--border); text-align: right; }
.perm-papel { display: block; margin: 4px 0 8px; cursor: pointer; }
.perm-tab .perm-col { text-align: center; width: 17%; }
.perm-tab .perm-col input { width: 18px; height: 18px; }
.perm-clientes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; max-height: 420px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; padding: 8px; }
.perm-cli { display: flex; gap: 8px; align-items: flex-start; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.perm-cli:hover { background: #f6f4ee; }
.perm-cli .t-sub { display: block; }
.fs-limpo { border: 0; padding: 0; margin: 0; min-width: 0; } .fs-limpo:disabled button[type=submit] { display: none; }
.fs-limpo:disabled .robo-pp, .fs-limpo:disabled .robo-acoes { display: none; }
.robo-logins { margin-bottom: 16px; }
.robo-logins-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; padding: 0 16px 14px; }
.robo-login { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: #fff; }
.robo-login.is-on { border-color: #b9e1cf; background: #f3faf5; }
.robo-login.is-falta { border-color: #f6cfcb; background: #fff7f6; }
.robo-login-st { font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.robo-login-aviso { margin-top: 6px; font-size: 12px; color: #b42318; font-weight: 600; }
.robo-como { border-top: 1px solid var(--border); }
.robo-conflito { margin-top: 4px; font-size: 12px; color: #b26b00; font-weight: 600; }
.robo-passos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 16px; }
.robo-passo { display: flex; gap: 10px; padding: 14px 16px; border-right: 1px solid var(--border); }
.robo-passo:last-child { border-right: 0; }
.robo-passo-n { flex: 0 0 28px; height: 28px; border-radius: 50%; background: #071A33; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.robo-passo.is-on .robo-passo-n { background: #1a7f4b; } .robo-passo.is-off .robo-passo-n { background: #b42318; }
.robo-passo.is-off { background: #fff7f6; } .robo-passo.is-on { background: #f3faf5; }
@media (max-width: 900px) { .robo-passos { grid-template-columns: 1fr 1fr; } }
@media print {
  header.top, .site-foot, .avisos, .radar-saude, .breadcrumb, .aviso-leitura { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .part-card { break-inside: avoid; border: 1px solid #999; }
  .part-tab th, .part-tab td { font-size: 11px; padding: 4px 6px; }
  body { background: #fff; }
}
.chat-lista { list-style: none; margin: 0; padding: 0 16px 14px; max-height: 560px; overflow: auto; }
.chat-msg { border-left: 3px solid var(--border); padding: 8px 12px; margin: 8px 0; background: #fff; border-radius: 0 8px 8px 0; }
.chat-msg--1 { border-left-color: #B07A3C; background: #fff8ec; }
.chat-msg--2 { border-left-color: #b42318; background: #fdecea; }
.chat-fornecedor { opacity: .75; }
.chat-meta { font-size: 12px; color: #5b6475; margin-bottom: 3px; }
.chat-motivo { display: inline-block; margin-left: 6px; background: #071A33; color: #fff; border-radius: 10px; padding: 1px 8px; font-size: 11px; }
.chat-texto { font-size: 13.5px; line-height: 1.5; }
.avisos li.aviso-chat b { color: #b42318; }
.chatapp { display: grid; grid-template-columns: 360px 1fr; border: 1px solid var(--border); border-radius: 12px; background: #fff; overflow: hidden; height: calc(100vh - 330px); min-height: 480px; }
.chatapp-lista { border-right: 1px solid var(--border); overflow-y: auto; background: #fbfaf7; }
.chatapp-lista-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fbfaf7; z-index: 1; }
.chatapp-lista-head .btn { margin-left: auto; }
.chatapp-item { display: block; padding: 10px 14px; border-bottom: 1px solid #eee8dc; color: inherit; text-decoration: none; }
.chatapp-item:hover { background: #f3efe6; }
.chatapp-item.is-on { background: #071A33; color: #fff; }
.chatapp-item.is-on .chatapp-sub, .chatapp-item.is-on .chatapp-prev, .chatapp-item.is-on .chatapp-hora { color: #c9d3e3; }
.chatapp-item.tem-novas b { color: #b42318; }
.chatapp-item.is-on.tem-novas b { color: #fff; }
.chatapp-item-top { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.chatapp-hora { margin-left: auto; font-size: 11px; color: #8a93a3; white-space: nowrap; }
.chatapp-sub { font-size: 12px; color: #5b6475; margin-top: 2px; }
.chatapp-prev { font-size: 12px; color: #8a93a3; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chatapp-conversa { display: flex; flex-direction: column; min-width: 0; }
.chatapp-conversa-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.chatapp-conversa-head h2 { font-size: 17px; }
.chatapp-msgs { flex: 1; overflow-y: auto; padding: 16px 18px; background: #f6f3ec; display: flex; flex-direction: column; gap: 8px; }
.bolha { max-width: 78%; padding: 8px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.5; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.bolha-meta { font-size: 11px; color: #6b7487; margin-bottom: 3px; }
.bolha--pregoeiro { align-self: flex-start; border-top-left-radius: 2px; }
.bolha--licitante { align-self: flex-end; background: #e7eefc; border-top-right-radius: 2px; }
.bolha--sistema { align-self: center; background: #efece4; font-size: 12.5px; max-width: 90%; }
.bolha-imp--1 { border-left: 3px solid #B07A3C; }
.bolha-imp--2 { border-left: 3px solid #b42318; background: #fdecea; }
@media (max-width: 900px) { .chatapp { grid-template-columns: 1fr; height: auto; } .chatapp-lista { max-height: 300px; } }
.alternar-lic { display: flex; gap: 8px; flex-wrap: wrap; }
.alternar-lic form { margin: 0; }
.chave { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: #f1efe9; color: #5b6475; border-radius: 20px; padding: 5px 12px 5px 6px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.chave-bola { width: 26px; height: 16px; border-radius: 10px; background: #c9ccd3; position: relative; transition: background .15s; }
.chave-bola::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: left .15s; }
.chave--on { background: #e6f4ea; color: #166534; border-color: #b9e1cf; }
.chave--on .chave-bola { background: #1a7f4b; }
.chave--on .chave-bola::after { left: 12px; }

/* ---------- aviso flutuante de convocações (estilo WhatsApp) ---------- */
.flut { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.flut-botao { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; background: #25d366; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); cursor: pointer; display: grid; place-items: center; transition: transform .15s; }
.flut-botao:hover { transform: scale(1.06); }
.flut-badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #e53935; color: #fff; font: 700 12px/22px var(--font, sans-serif); border: 2px solid #fff; }
.flut-painel { width: 370px; max-width: calc(100vw - 30px); max-height: min(520px, calc(100vh - 120px)); display: flex; flex-direction: column; background: #efeae2; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 36px rgba(0,0,0,.28); }
.flut-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #075e54; color: #fff; }
.flut-head b { display: block; font-size: 15px; } .flut-head small { opacity: .8; font-size: 12px; }
.flut-logo { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 18px; }
.flut-x { margin-left: auto; background: none; border: 0; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; opacity: .85; }
.flut-corpo { overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.flut-item { display: flex; gap: 10px; padding: 10px 12px; background: #fff; border-radius: 10px; color: inherit; text-decoration: none; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.flut-item:hover { background: #f7fbf8; }
.flut-av { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #dcf8c6; display: grid; place-items: center; }
.flut-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; }
.flut-top { display: flex; justify-content: space-between; gap: 8px; } .flut-top time { color: #667781; font-size: 11px; white-space: nowrap; }
.flut-emp { font-weight: 600; color: #075e54; } .flut-lic { color: #54656f; font-size: 12px; } .flut-msg { color: #111b21; white-space: normal; overflow-wrap: anywhere; display: block; }
.flut-vazio { padding: 26px 14px; text-align: center; color: #54656f; font-size: 14px; } .flut-vazio span { font-size: 12px; }
@media print { .flut { display: none; } }

/* ---------- Financeiro: seletor de mês, KPIs e cartões de crédito ---------- */
.fin-tabs { margin-bottom: 14px; }
.mesnav { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 16px; padding: 5px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 1px 2px rgba(7,26,51,.04); }
.mesnav__seta { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; font-size: 22px; line-height: 1; color: var(--brand); text-decoration: none; background: var(--brand-50); }
.mesnav__seta:hover { background: var(--brand); color: #fff; }
.mesnav__mes { display: flex; align-items: center; gap: 6px; padding: 0 6px; }
.mesnav__mes select { border: 0; background: transparent; font: 600 16px var(--font-head); color: var(--brand); padding: 4px 2px; cursor: pointer; min-width: 170px; }
.mesnav__hoje { font-size: 12.5px; font-weight: 600; color: var(--accent); padding: 0 8px; text-decoration: none; }
.kpi { position: relative; overflow: hidden; }
.kpi--navy, .kpi--ent, .kpi--sai, .kpi--gold { border-top: 3px solid var(--brand); }
.kpi--ent { border-top-color: #2f7d4f; } .kpi--sai { border-top-color: var(--err); } .kpi--gold { border-top-color: var(--accent); }
.kpi-link { color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.kpi-link:hover { box-shadow: 0 6px 18px rgba(7,26,51,.08); transform: translateY(-1px); }
.kpi-bar { height: 6px; background: var(--brand-50); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.kpi-bar span { display: block; height: 100%; background: #2f7d4f; border-radius: 99px; }
.kpi-bar--sai span { background: var(--err); }
.chart a.col { text-decoration: none; color: inherit; border-radius: 8px; }
.chart .col-on { background: var(--accent-50); }
.chart .col-on .mes { font-weight: 700; color: var(--accent); }
.tr-on td { background: var(--accent-50); }

.cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; margin-top: 16px; }
.cc-card { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.cc-card > a { text-decoration: none; }
.cc { position: relative; aspect-ratio: 1.586; max-width: 360px; border-radius: 16px; padding: 18px 20px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 10px 24px rgba(7,26,51,.22); background: linear-gradient(135deg, #0E2747, #071A33 60%, #050F20); overflow: hidden; }
.cc::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.07); }
.cc.c-azul { background: linear-gradient(135deg, #1b4f9c, #0d2f63); }
.cc.c-grafite { background: linear-gradient(135deg, #3a3f47, #16191d); }
.cc.c-vinho { background: linear-gradient(135deg, #7a1f3d, #3d0b1d); }
.cc.c-verde { background: linear-gradient(135deg, #1f6b5c, #0b3a31); }
.cc.c-vermelho { background: linear-gradient(135deg, #b23a2e, #6a1a12); }
.cc-off { filter: grayscale(1); opacity: .6; }
.cc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cc-nome { font: 600 15px var(--font-head); letter-spacing: .02em; }
.cc-band { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.cc-chip { width: 40px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #e9cf98, #b08a46); }
.cc-num { font: 500 19px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.cc-pe { display: flex; justify-content: space-between; font-size: 11.5px; opacity: .85; text-transform: uppercase; letter-spacing: .05em; }
.cc-uso { height: 5px; background: rgba(255,255,255,.22); border-radius: 99px; overflow: hidden; }
.cc-uso span { display: block; height: 100%; background: var(--accent-soft); }
.cc-info { display: flex; flex-direction: column; gap: 7px; }
.cc-linha { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; }
.cc-linha > span:first-child { color: var(--text-2); }
.cc-sep { height: 1px; background: var(--border); margin: 3px 0; }
.cc-acoes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.cc-topo { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 18px; align-items: center; margin-bottom: 16px; }
.cc-kpis { margin: 0; }
.fatura { overflow: hidden; }
.fatura-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 18px; background: var(--brand-50); border-bottom: 1px solid var(--border); }
.fatura-tit { display: flex; flex-direction: column; }
.fatura-tit select { border: 0; background: transparent; font: 600 19px var(--font-head); color: var(--brand); padding: 0; cursor: pointer; }
.fatura .lbl { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; display: block; }
.fatura-dados { display: flex; gap: 26px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.fatura-total b { font: 600 24px var(--font-head); }
.fatura-pagar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--border); background: #fff; }
.fatura .table tfoot td { border-top: 2px solid var(--border); font-weight: 600; }
@media (max-width: 900px) { .cc-topo { grid-template-columns: 1fr; } .fatura-dados { margin-left: 0; } }
.flut-painel[hidden], .flut-badge[hidden] { display: none; }

/* ---------- Radar: envio automático ---------- */
.envio-auto { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr) auto; gap: 0; margin-bottom: 16px; border-left: 4px solid var(--border-strong); }
.envio-auto.envio-on { border-left-color: #2f7d4f; }
.envio-cel { padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; border-right: 1px solid var(--border); min-width: 0; }
.envio-cel:last-child { border-right: 0; }
.envio-cel .lbl { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.envio-cel b { font: 600 17px var(--font-head); }
.envio-cel small { color: var(--muted); font-size: 12px; }
.envio-num { color: var(--accent); font-size: 22px !important; }
.envio-acoes { justify-content: center; align-items: flex-end; gap: 6px; position: relative; }
.envio-hist summary { cursor: pointer; font-size: 12.5px; color: var(--accent); font-weight: 600; }
.envio-hist[open] .table { position: absolute; right: 0; top: 100%; z-index: 20; width: 640px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 28px rgba(7,26,51,.15); }
@media (max-width: 1100px) { .envio-auto { grid-template-columns: 1fr 1fr; } .envio-cel { border-bottom: 1px solid var(--border); } }

/* ---------- Analista: perguntas configuráveis ---------- */
.perg-card { margin-bottom: 16px; }
.perg-card > summary { padding: 14px 18px; cursor: pointer; list-style: none; }
.perg-card > summary::-webkit-details-marker { display: none; }
.perg-card > summary::before { content: '▸ '; color: var(--accent); }
.perg-card[open] > summary::before { content: '▾ '; }
.perg-corpo { padding: 0 18px 18px; }
.perg-acoes { display: flex; gap: 6px; margin-bottom: 10px; }
.perg-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px 18px; }
.perg-item { font-size: 13px; align-items: flex-start; }
.copiavel--msg code { white-space: pre-wrap; max-height: 240px; overflow: auto; display: block; font-size: 12px; }
.perg-cfg li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.pedir-analise { margin-top: 12px; }
.pedir-analise > summary { list-style: none; display: inline-flex; }
.pedir-analise > summary::-webkit-details-marker { display: none; }
.pedir-analise textarea { width: 100%; margin-top: 4px; }
.ct-resumo { margin: 0; padding: 10px 14px; background: var(--accent-50); border-radius: 8px; font-size: 13px; color: var(--text-2); }
.espelho-faixa { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 9px 16px; background: #fff4d6; border-bottom: 1px solid #e9cf98; color: #6b4c12; font-size: 13.5px; }
body:has(.espelho-faixa) main form[method=post] button[type=submit], body:has(.espelho-faixa) main [data-abrir-participar], body:has(.espelho-faixa) main .pedir-analise { pointer-events: none; opacity: .45; }
.cli-envio { border-top: 3px solid var(--accent) !important; position: relative; }
.cli-envios summary { cursor: pointer; font-size: 12px; color: var(--accent); font-weight: 600; margin-top: 4px; }
.cli-envios ul { margin: 6px 0 0; padding-left: 16px; font-size: 12.5px; }
@media (max-width: 900px) { .cli-faixa { grid-template-columns: 1fr 1fr; } }
.kenvio { font-size: 11.5px; color: var(--muted); }

/* ---------- Layout geral no padrão do Financeiro ---------- */
.kpi { border-top: 3px solid var(--brand); }
.kpi.kpi-alert, .kpi:has(.val-sai):not(.kpi--navy):not(.kpi--gold):not(.kpi--ent) { border-top-color: var(--err); }
.kpi:has(.val-ent):not(.kpi--navy):not(.kpi--gold):not(.kpi--sai) { border-top-color: #2f7d4f; }
.page-tabs { margin-bottom: 14px; }
.card-head h2 { display: flex; align-items: center; gap: 8px; }
.res-kpis .kpi, .resultados .kpi { border-top-width: 3px; }
/* faixas de status (Robô, Chat) no mesmo estilo dos indicadores do Financeiro */
.robo-status { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; margin-bottom: 16px; }
.robo-status > div { background: #fff; border: 1px solid var(--border); border-top: 3px solid #2f7d4f; border-radius: var(--radius); padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; justify-content: center; box-shadow: 0 1px 2px rgba(7,26,51,.04); }
.robo-status > div > span { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.robo-status > div > b { font: 600 20px var(--font-head); }
.robo-status--pausa > div:first-child { border-top-color: var(--err); }
.robo-status > div:nth-child(2) { border-top-color: var(--brand); } .robo-status > div:nth-child(3) { border-top-color: var(--accent); } .robo-status > div:nth-child(4) { border-top-color: var(--brand); }
.robo-status > div:has(form), .robo-status > form { background: transparent; border: 0; box-shadow: none; padding: 0; align-items: flex-end; }
.robo-status > div > b { font-size: 17px; }
.robo-x { border: 0; background: none; cursor: pointer; font-size: 15px; opacity: .55; margin-left: 4px; } .robo-x:hover { opacity: 1; }
.contato-item { display: grid; grid-template-columns: 140px 1fr 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
@media (max-width: 700px) { .contato-item { grid-template-columns: 1fr 1fr; } }

/* ---------- IA: Converse com o edital ---------- */
.op-ia-linha { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.op-ia--chat { cursor: pointer; border: 0; font: inherit; }
.ia-gaveta { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); z-index: 70; background: #fff; box-shadow: -10px 0 30px rgba(7,26,51,.18); }
.ia-gaveta[hidden] { display: none; }
.ia-painel { display: flex; flex-direction: column; height: 100%; }
.ia-head { display: flex; align-items: flex-start; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.ia-head b { display: block; font: 600 17px var(--font-head); color: var(--brand); } .ia-head small { color: var(--muted); font-size: 12px; }
.ia-x { margin-left: auto; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.ia-corpo { flex: 1; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; background: #fbfaf7; }
.ia-msg { font-size: 13.5px; line-height: 1.55; padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--accent); }
.ia-msg > b { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.ia-msg--eu { border-left-color: var(--brand); background: var(--brand-50); }
.ia-msg--eu > b { color: var(--brand); }
.ia-aviso { font-size: 13px; padding: 10px 14px; border-radius: 10px; background: #fff4d6; border: 1px solid #e9cf98; }
.ia-carregando { color: var(--muted); font-style: italic; } .ia-carregando::before { content: '⏳ '; }
.ia-erro { color: var(--err); }
.ia-form { margin: 6px 0 0; display: grid; gap: 6px; }
.ia-form > div { padding: 6px 0; border-bottom: 1px solid var(--border); }
.ia-form dt { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; color: var(--muted); }
.ia-form dd { margin: 2px 0 0; }
.ia-form .ia-alerta dt, .ia-form .ia-alerta dd { color: var(--err); font-weight: 600; }
.ia-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 18px 0; }
.ia-chips button { border: 1px solid var(--border-strong); background: #fff; border-radius: 99px; padding: 5px 12px; font-size: 12px; font-weight: 600; color: var(--brand); cursor: pointer; }
.ia-chips button:disabled { opacity: .45; cursor: default; }
.ia-entrada { display: flex; gap: 8px; padding: 10px 18px 16px; align-items: flex-end; }
.ia-entrada textarea { flex: 1; resize: none; }
.ia-modo { font-size: 12px; color: var(--muted); padding: 6px 10px; background: #fff; border: 1px dashed var(--border-strong); border-radius: 8px; }
.ia-planilha { float: right; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.ia-msg { white-space: normal; }
.af-auto { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; max-width: 1315px; }
.kjunta { display: inline-block; font-size: 11px; font-weight: 600; color: #5b4bb5; background: #efedfb; border-radius: 6px; padding: 2px 7px; margin: 2px 0; }
.op-resumo { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 8px; border: 1px solid var(--brand); color: var(--brand); background: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.op-resumo:hover { background: var(--brand); color: #fff; }
.op-ia--chat { background: #25d366 !important; color: #fff !important; }
.dlg-resumo { width: min(1100px, 96vw); max-height: 92vh; padding: 0; }
.dlg-resumo [data-resumo-corpo] { padding: 18px 22px; }
.resumo-pop-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 30px 12px 0; }
.resumo-pop-head h2 { margin: 0; }
.af-bloco .af-acoes { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 12px; }
.af-bloco .af-salvo { margin-right: auto; }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pc-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; color: inherit; text-decoration: none; border-top: 3px solid var(--accent); transition: box-shadow .15s, transform .15s; }
.pc-card:hover { box-shadow: 0 8px 22px rgba(7,26,51,.1); transform: translateY(-1px); }
.pc-nome { font: 600 15px var(--font-head); }
.pc-nums { display: flex; gap: 14px; font-size: 13px; }
.pc-btn { align-self: flex-start; margin-top: 4px; }

/* alertas e histórico de envios do painel do cliente */
.cli-alertas { display: grid; gap: 6px; margin: -4px 0 14px; }
.cli-alerta { display: block; padding: 9px 12px; border-radius: 8px; background: #fff7e8; border: 1px solid #f1dcb2; color: #6b4a14; font-size: 13px; text-decoration: none; }
.cli-alerta:hover { filter: brightness(.98); }
.cli-alerta--urg { background: #fdecec; border-color: #f3c3c3; color: #8f1d1d; }
.cli-alerta--nova { background: #eaf2ff; border-color: #c8dafb; color: #1d3f8f; }
.cli-alerta--mural { background: #fbf4ea; border-color: #ecd6b5; color: #7a5320; text-decoration: none; }
.cli-hist { margin-bottom: 14px; }
.cli-hist > summary { cursor: pointer; list-style: none; }
.cli-hist > summary::-webkit-details-marker { display: none; }
.knova--cli { background: #2563eb; }
.kvisto { font-size: 11px; color: #166534; }
.kjunta--rej { color: #8f1d1d; background: #fdecec; }
.pitem-err { display: block; color: #b42318; font-size: 11px; margin-top: 3px; }
input.is-invalid { border-color: #b42318 !important; background: #fff5f5; }
.part-catalogo { margin-top: 10px; display: grid; gap: 4px; }
.rejeitar { display: inline-block; }
.rejeitar > summary { list-style: none; cursor: pointer; }
.rejeitar > summary::-webkit-details-marker { display: none; }
.btn-rej { color: #8f1d1d; }
.rejeitar-form { display: flex; gap: 6px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.rejeitar-form select { max-width: 280px; }
.fin-com-nums { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 0 16px 14px; }
.fin-com-nums > div { background: var(--bg, #f7f5f1); border-radius: 8px; padding: 10px 12px; display: grid; gap: 2px; }
.fin-com-nums span { font-size: 12px; color: var(--muted, #6b7280); }
.fin-com-nums b { font-size: 17px; }
.fin-com-dest { outline: 2px solid #d9c3a0; }
.fin-com-atraso b { color: #b42318; }
.fin-al-urg td { background: #fff5f5; }
@media (max-width: 900px) { .fin-com-nums { grid-template-columns: 1fr 1fr; } }
.pill--blue { background: #2563eb; color: #fff; }

/* Etapa 6 · documentos de habilitação */
.fields > .col-3 { grid-column: span 3; } .fields > .col-4 { grid-column: span 4; } .fields > .col-5 { grid-column: span 5; }
.fields > .col-6 { grid-column: span 6; } .fields > .col-12 { grid-column: 1 / -1; }
.doc-form { max-width: 1100px; }
.doc-avisar { background: #f7f5f1; padding: 10px 12px; border-radius: 8px; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; margin-top: 16px; }
.doc-tipo { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.doc-tipo--falta { border-color: #f1dcb2; background: #fffcf5; }
.doc-tipo-head { display: flex; align-items: center; gap: 8px; }
.doc-tipo-head b { flex: 1; color: var(--brand, #071A33); font-size: 14px; }
.doc-ico { font-size: 18px; }
.doc-vazio { margin: 0; font-size: 13px; color: var(--muted, #6b7280); }
.doc-item { border-top: 1px solid var(--line, #ece6db); padding-top: 10px; display: grid; gap: 6px; }
.doc-item .badge { margin-right: 6px; }
.doc-obs { margin: 0; }
.doc-acoes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.doc-acoes form { display: inline; margin: 0; }
.btn-danger-text { color: #b42318 !important; }
.ck-hab .table td { vertical-align: middle; }
.ck-ok { color: #166534; } .ck-falta { color: #b42318; } .ck-alerta { color: #9a6700; }
@media (max-width: 760px) { .fields > [class*="col-"] { grid-column: 1 / -1; } }
/* menu do escritório com mais itens: compacta em telas médias */
@media (max-width: 1720px) and (min-width: 961px) {
  .top__nav { gap: 0; }
  .top__nav a { padding: 8px 8px; font-size: 12.5px; }
  .usermenu__name { display: none; }
}
@media (max-width: 1380px) and (min-width: 961px) {
  .top__nav a { padding: 7px 6px; font-size: 12px; }
  .top__user .btn-accent { display: none; }
}

/* Etapa 7 · proposta */
.prop-origens { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 18px 18px; }
.prop-origem { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border, #e5ddd0); border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.prop-origem:has(input:checked) { border-color: #B07A3C; background: #fffaf2; }
.prop-origem.is-off { opacity: .6; cursor: not-allowed; }
.prop-dados { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 18px; padding: 0 18px 14px; margin: 0; }
.prop-dados dt { font-size: 11px; color: var(--muted, #6b7280); text-transform: uppercase; letter-spacing: .04em; }
.prop-dados dd { margin: 2px 0 0; font-size: 13px; }
.prop-itens td { vertical-align: top; }
.prop-itens textarea, .prop-itens input[type=text] { width: 100%; font-size: 12.5px; }
.prop-itens tr.is-off td { opacity: .45; }
.prop-total { font-size: 15px; }
.prop-texto textarea { width: calc(100% - 36px); margin: 0 18px 18px; font-size: 12.5px; line-height: 1.5; }
@media (max-width: 900px) { .prop-origens, .prop-dados { grid-template-columns: 1fr; } }

/* painel principal: resumo do sistema */
.rs-titulo { font-size: 15px; color: var(--brand, #071A33); margin: 6px 0 10px; text-transform: uppercase; letter-spacing: .05em; }
.rs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.rs-card { padding: 14px 16px; color: inherit; text-decoration: none; display: block; transition: box-shadow .15s, transform .15s; }
a.rs-card:hover { box-shadow: 0 4px 14px rgba(7,26,51,.10); transform: translateY(-1px); }
.rs-head { font-weight: 700; color: var(--brand, #071A33); font-size: 15px; display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.rs-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 13px; }
.rs-lista a { color: inherit; }
.rs-n { display: inline-block; min-width: 26px; font-size: 16px; }
.rs-gold { color: #9a6700; } .rs-blue { color: #1d4ed8; }
.radar-regra { margin-top: 12px; padding: 12px 14px; background: #f7f5f1; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.radar-regra .check { align-items: flex-start; }

/* alerta sonoro */
.som-toast { position: fixed; top: 76px; right: 22px; z-index: 80; display: flex; align-items: flex-start; gap: 10px; max-width: min(620px, calc(100vw - 30px)); background: #7f1d1d; color: #fff; padding: 12px 14px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: somPulso 1s ease-in-out infinite; }
.som-toast[hidden] { display: none; }
.som-toast a, .som-toast span { color: #fff; font-weight: 600; text-decoration: none; flex: 1; }
.som-toast a:hover { text-decoration: underline; }
.som-toast .som-mudo { background: #fff; color: #7f1d1d; border: 0; border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.som-toast .som-x { background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer; line-height: 1; }
@keyframes somPulso { 50% { transform: scale(1.03); box-shadow: 0 0 0 6px rgba(220,38,38,.35); } }
/* resultados do painel: todos numa linha só */
.pkpis--linha { display: grid; grid-template-columns: repeat(var(--n, 10), minmax(0, 1fr)); gap: 8px; }
.pkpis--linha .pkpi { padding: 9px 10px; min-width: 0; }
.pkpis--linha .pkpi span { font-size: 10px; letter-spacing: .02em; line-height: 1.25; display: block; min-height: 2.5em; }
.pkpis--linha .pkpi b { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pkpis--linha .pkpi--destaque b { font-size: 15px; }
.pkpis--linha .pkpi small { font-size: 10px; line-height: 1.2; display: block; }
@media (max-width: 1100px) { .pkpis--linha { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pkpis--linha { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.op-score { display: inline-block; font-size: 11px; font-weight: 600; color: #1d4ed8; background: #eff6ff; border-radius: 6px; padding: 1px 6px; }

/* Meu filtro (cliente, somente leitura) */
.fgrp { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.fgrp-n { margin: 0 0 6px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.fgrp-t { margin: 10px 0 6px; font-weight: 600; font-size: 14px; }
.fgrp-t:first-of-type { margin-top: 0; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; border: 1px solid; }
.fchip--chave { background: #fbf6ea; border-color: #e3cf9f; color: #7a5a14; font-weight: 600; }
.fchip--des { background: #ecfdf3; border-color: #a6e3bd; color: #166534; }
.fchip--ind { background: #fef2f2; border-color: #f5b5b5; color: #991b1b; }

.radar-excluir { display: flex; align-items: center; gap: 12px; padding: 8px 14px; margin-bottom: 10px; flex-wrap: wrap; }
.op-marca { width: 17px; height: 17px; margin-right: 4px; accent-color: #b42318; cursor: pointer; }

.kjunta--robo { background: #eef2ff; color: #3730a3; }

/* ---------- Central de licitações ---------- */
.ce-head { align-items: flex-end; }
.ce-acoes { flex-wrap: wrap; gap: 8px; }
.ce-resumo { margin-bottom: 14px; }
.ce-resumo > summary { list-style: none; cursor: pointer; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ce-resumo > summary::-webkit-details-marker { display: none; }
.ce-resumo-abrir { margin-left: auto; color: var(--muted); font-size: 13px; }
.ce-resumo[open] .ce-resumo-abrir { font-size: 0; } .ce-resumo[open] .ce-resumo-abrir::after { content: 'Fechar resumo ▴'; font-size: 13px; }
.ce-resumo-corpo { padding: 0 16px 16px; border-top: 1px solid var(--border); }
.ce-resumo-corpo .rs-titulo { display: none; }
.ce-chip { padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.ce-chip--err { background: #fdecea; color: #8f1d14; } .ce-chip--warn { background: #fdf1e3; color: #7a3f06; } .ce-chip--info { background: #e8f0fb; color: #174a85; }
.ce-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ce-kpi { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.ce-kpi:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.ce-kpi-l { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.ce-kpi-v { font-family: var(--font-head); font-weight: 600; font-size: 28px; line-height: 1; }
.ce-kpi-s { font-size: 12px; color: var(--muted); }
.ce-filtro { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 10px 14px; margin-bottom: 14px; }
.ce-filtro label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.ce-filtro select, .ce-filtro input[type=search] { font: inherit; font-weight: 400; }
.ce-busca { flex: 1 1 240px; } .ce-busca input { flex: 1; min-width: 0; }
.ce-pills { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ce-pill { font-size: 13px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--border-strong); background: #fff; color: var(--text); text-decoration: none; }
.ce-pill.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.ce-limpar { font-size: 12.5px; margin-left: 4px; }
.ce-area { margin-bottom: 18px; }
.ce-quadro.kanban { display: grid; grid-template-columns: repeat(var(--ce-cols, 4), minmax(260px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.ce-quadro .kcol { min-width: 0; max-height: none; }
.ce-quadro .kcol-body { max-height: 760px; overflow-y: auto; }
.ce-col-sub { margin: 0 12px 8px; font-size: 12px; color: var(--muted); }
.ce-mais { text-align: center; margin: 6px 0 0; }
.ce-vertodas { display: block; font-size: 12.5px; font-weight: 600; text-align: center; padding: 8px; }
.ce-modal { width: min(860px, 94vw); max-height: 90vh; padding: 26px 28px; position: relative; }
.ce-modal::backdrop { background: rgba(7, 26, 51, .55); backdrop-filter: blur(2px); }
.ce-fechar { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 15px; }
.ce-det { display: flex; flex-direction: column; gap: 12px; }
.ce-det-top { display: flex; gap: 6px; align-items: center; padding-right: 44px; }
.ce-det-cli { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #8a5a22; }
.ce-det-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ce-det-nums div { background: var(--bg); border-radius: 10px; padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; }
.ce-det-nums span { font-size: 11px; font-weight: 700; color: var(--muted); }
.ce-det-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.ce-det-op { padding: 14px; box-shadow: none; }
.ce-det-h { font-size: 15px; margin: 4px 0 0; }
.ce-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.ce-hist li { border-left: 0; padding: 6px 10px; background: var(--bg); border-radius: 8px; }
@media (max-width: 640px) { .ce-det-nums { grid-template-columns: 1fr; } }

/* ---------- Ficha do cliente: abas e pasta de documentos ---------- */
.ficha-tabs { margin: -4px 0 16px; }
.doc-resumo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.6fr); gap: 10px; margin-bottom: 16px; }
.doc-res { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.doc-res b { font-family: var(--font-head); font-size: 26px; line-height: 1; }
.doc-res span { font-size: 12px; color: var(--muted); }
.doc-res--warn b { color: #a8570b; } .doc-res--err b { color: #b42318; } .doc-res--ok b { color: var(--brand); }
.doc-res--barra { justify-content: center; gap: 8px; }
.doc-barra { display: block; height: 10px; border-radius: 99px; background: var(--brand-50); overflow: hidden; }
.doc-barra i { display: block; height: 100%; background: linear-gradient(90deg, #0f7a55, #2f9e73); border-radius: 99px; }
.dl-sec { margin-bottom: 16px; padding-bottom: 6px; }
.dl-sec > .card-head { align-items: center; }
.dl-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--border); }
.dl-row:hover { background: #fdfbf7; }
.dl-row--vencido, .dl-row--hoje { background: #fff8f7; } .dl-row--falta { background: #fffcf5; }
.dl-ico { font-size: 20px; text-align: center; }
.dl-nome b { color: var(--brand); } .dl-nome span { color: var(--text-2); }
.dl-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.dl-st { white-space: nowrap; }
.dl-acoes { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.dl-mais { position: relative; } .dl-mais > summary { list-style: none; } .dl-mais > summary::-webkit-details-marker { display: none; }
.dl-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(7,26,51,.12); min-width: 220px; padding: 6px; display: flex; flex-direction: column; }
.dl-menu a, .dl-menu button { font: inherit; font-size: 13px; text-align: left; padding: 8px 10px; border-radius: 8px; border: 0; background: none; color: var(--text); text-decoration: none; cursor: pointer; width: 100%; }
.dl-menu a:hover, .dl-menu button:hover { background: var(--brand-50); }
@media (max-width: 900px) {
  .doc-resumo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-row { grid-template-columns: 30px minmax(0, 1fr); }
  .dl-st, .dl-acoes { grid-column: 2; justify-content: flex-start; }
}

/* Acontecendo agora */
.ce-feed { margin-bottom: 18px; }
.ce-tl { list-style: none; margin: 0; padding: 4px 0; max-height: 460px; overflow-y: auto; }
.ce-tl-i { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 18px; border-top: 1px solid var(--border); }
.ce-tl-i:first-child { border-top: 0; }
.ce-tl-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-50); display: grid; place-items: center; font-size: 14px; }
.ce-tl-txt { font-size: 13.5px; line-height: 1.45; } .ce-tl-cli { color: #8a5a22; font-weight: 600; }
.ce-tl-det { font-size: 12.5px; color: var(--muted); }
.ce-tl-meta { text-align: right; display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.ce-tl-quem { font-weight: 600; color: var(--text-2); }
.ce-tl-novo { animation: ceNovo 3s ease-out; }
@keyframes ceNovo { from { background: #fff4dc; } to { background: transparent; } }
.ce-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.tag-gold { background: #f6efe5; color: #7a4f1d; } .tag-azul { background: #e8f0fb; color: #174a85; } .tag-verde { background: #e6f4ee; color: #0b5c40; }
.tag-vermelho { background: #fdecea; color: #8f1d14; } .tag-laranja { background: #fdf1e3; color: #7a3f06; } .tag-cinza { background: #f1f3f7; color: #3B4658; }

/* ===== Sino de avisos (fora da Central) ===== */
.sino { position: relative; } .sino > summary { list-style: none; cursor: pointer; font-size: 18px; padding: 6px 8px; border-radius: 10px; position: relative; } .sino > summary::-webkit-details-marker { display: none; }
.sino > summary:hover { background: rgba(255,255,255,.12); }
.sino-n { position: absolute; top: 0; right: -2px; background: #d92d20; color: #fff; font: 700 10px/16px var(--font-body, sans-serif); min-width: 16px; height: 16px; border-radius: 8px; text-align: center; padding: 0 4px; }
.sino-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: min(420px, 92vw); max-height: 60vh; overflow: auto; margin: 0 !important; box-shadow: 0 14px 36px rgba(7,26,51,.22); color: var(--text); }

/* ===== Envio automático do radar: cartões que se ajustam, ações numa faixa própria ===== */
.envio-auto { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.envio-auto .envio-status { grid-column: span 1; }
.envio-auto .envio-acoes { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--border); border-right: 0; background: var(--surface-2, #f7f9fc); padding: 10px 16px; }
.envio-auto .envio-cel:nth-last-child(2) { border-right: 0; }
.envio-hist[open] .table { top: auto; bottom: 100%; }
@media (max-width: 1100px) { .envio-auto { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }

/* ===== Auditoria ===== */
.au-filtros { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 14px; margin-bottom: 14px; }
.au-filtros input[type=search] { flex: 1 1 260px; }
.au-filtros select { flex: 0 1 200px; }
.au-data { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.au-tl { padding: 6px 18px 12px; }
.au-dia { list-style: none; font: 700 11px var(--font-body, sans-serif); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 16px 0 6px; border-bottom: 1px solid var(--border); margin-bottom: 4px; position: sticky; top: 0; background: #fff; z-index: 1; }
.au-alerta { background: #fff5f4; border-radius: 8px; }
.au-ip { font-size: 11px; color: var(--muted); }

/* ===== Equipe em cartões ===== */
.eq-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.eq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.eq-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.eq-inativo { opacity: .6; }
.eq-top { display: flex; gap: 12px; align-items: center; }
.eq-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50, #eef3fb); color: var(--brand, #0b2a55); font: 700 14px var(--font-head, sans-serif); flex: none; }
.eq-nome { display: flex; flex-direction: column; min-width: 0; flex: 1; } .eq-nome b { font-size: 15px; } .eq-nome span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq-dl { display: grid; gap: 6px; margin: 0; font-size: 13px; } .eq-dl div { display: flex; justify-content: space-between; gap: 10px; } .eq-dl dt { color: var(--muted); } .eq-dl dd { margin: 0; text-align: right; }
.eq-acoes { display: flex; gap: 6px; align-items: center; border-top: 1px solid var(--border); padding-top: 10px; } .eq-acoes .dl-mais { margin-left: auto; }
@media (max-width: 1000px) { .eq-layout { grid-template-columns: 1fr; } }
/* Resumo do sistema: 6 cartões sempre alinhados (3 + 3, 2 + 2 + 2 ou 1 por linha), mesma altura */
.rs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rs-card { height: 100%; }
@media (max-width: 1100px) { .rs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rs-grid { grid-template-columns: 1fr; } }
.au-tl .ce-tl-meta { flex-direction: row; align-items: baseline; gap: 12px; white-space: nowrap; }
.envio-auto input[type=number] { width: 58px !important; padding: 3px 6px !important; height: 30px; }
.robo-status--3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.robo-status > div.robo-on { border-top-color: #2f7d4f !important; } .robo-status > div.robo-on b { color: #1f6b3f; }
.robo-status > div.robo-off { border-top-color: var(--err, #b42318) !important; background: #fffaf9; } .robo-status > div.robo-off b { color: #b42318; }
.robo-como .robo-passos { margin: 12px 0 0; border-top: 1px solid var(--border); }
@media (max-width: 800px) { .robo-status--3 { grid-template-columns: 1fr !important; } .robo-como .robo-passos { grid-template-columns: 1fr; } }
.robo-status--3 { align-items: stretch !important; }

/* ===== Tarefas ===== */
.tf-barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 16px; }
.tf-abas { display: inline-flex; background: var(--surface-2, #f3f5f9); border-radius: 10px; padding: 3px; }
.tf-abas a { padding: 6px 14px; border-radius: 8px; font-weight: 600; font-size: 13.5px; color: var(--muted); text-decoration: none; }
.tf-abas a.is-on { background: #fff; color: var(--brand, #071A33); box-shadow: 0 1px 3px rgba(7,26,51,.12); }
.tf-nav { display: flex; align-items: center; gap: 8px; } .tf-nav b { font: 600 16px var(--font-head, sans-serif); color: var(--brand, #071A33); min-width: 220px; text-align: center; }
.tf-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.tf-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 80px; }
.tf-form-corpo { padding: 14px 16px; display: grid; gap: 10px; }
.tf-lbl { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--text); }
.tf-lbl input, .tf-lbl select, .tf-lbl textarea { font-weight: 400; }
.tf-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tf-legenda { padding: 12px 16px; } .tf-legenda ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; color: var(--muted); }
.tf-sec { padding: 4px 0 6px; margin-bottom: 14px; } .tf-sec h2 { font-size: 15px; margin: 0; padding: 12px 16px 8px; display: flex; align-items: center; gap: 8px; }
.tf-sec--err { border-left: 4px solid #d92d20; } .tf-sec--err h2 { color: #b42318; }
.tf-lista { list-style: none; margin: 0; padding: 0; }
.tf-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 16px; border-top: 1px solid var(--border); position: relative; }
.tf-item:first-child { border-top: 0; }
.tf-item.tf-p1 { box-shadow: inset 3px 0 0 #d92d20; }
.tf-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong, #b8c2d3); background: #fff; cursor: pointer; flex: none; margin-top: 1px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; transition: border-color .15s, background .15s; }
.tf-check:hover { border-color: #2f7d4f; background: #eaf6ee; }
.tf-feita .tf-check { background: #2f7d4f; border-color: #2f7d4f; }
.tf-feita .tf-titulo { text-decoration: line-through; color: var(--muted); }
.tf-corpo { flex: 1; min-width: 0; }
.tf-titulo { font-weight: 600; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.tf-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; align-items: center; }
.tf-chip { font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2, #f3f5f9); color: var(--muted); text-decoration: none; white-space: nowrap; }
.tf-chip--err { background: #fde8e7; color: #b42318; font-weight: 600; } .tf-chip--neutral { background: #f1f2f4; }
.tf-chip--cli { background: #fbf3e8; color: #8a5a1f; } .tf-chip--quem { background: #eef3fb; color: #1d4ed8; }
.tf-desc { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.tf-atrasada .tf-titulo { color: #b42318; }
.tf-mais { margin-left: auto; }
.tf-lista--ag .tf-ag { border-top: 1px solid var(--border); } .tf-lista--ag .tf-ag:first-child { border-top: 0; }
.tf-ag a { display: block; padding: 8px 16px; font-size: 13px; color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.tf-ag a:hover { background: var(--brand-50, #eef3fb); }
.tf-ag-h { font-variant-numeric: tabular-nums; color: var(--muted); display: inline-block; min-width: 38px; }
.tf-ag--sessao { box-shadow: inset 3px 0 0 #1d4ed8; } .tf-ag--prazo { box-shadow: inset 3px 0 0 #b07a3c; }
.tf-semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.tf-dia { padding: 0 0 6px; min-height: 160px; overflow: hidden; } .tf-dia.is-fds { background: #fbfbfc; } .tf-dia.is-hoje { outline: 2px solid var(--accent, #b07a3c); }
.tf-dia-h { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 700; }
.tf-dia-h b { font: 700 18px var(--font-head, sans-serif); color: var(--brand, #071A33); }
.tf-dia .tf-item { padding: 7px 8px; gap: 6px; } .tf-dia .tf-titulo { font-size: 12.5px; } .tf-dia .tf-check { width: 18px; height: 18px; }
.tf-dia .tf-meta .tf-chip--quem, .tf-dia .tf-desc { display: none; }
.tf-dia .tf-ag a { padding: 6px 8px; font-size: 12px; white-space: normal; }
.tf-vazio { color: var(--border-strong, #b8c2d3); text-align: center; padding: 18px 0; }
.tf-mes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: hidden; }
.tf-mes-h { padding: 8px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--border); background: var(--surface-2, #f7f9fc); }
.tf-mes-d { min-height: 108px; padding: 6px 7px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: inherit; min-width: 0; }
.tf-mes-d:nth-child(7n) { border-right: 0; } .tf-mes-d:hover { background: var(--brand-50, #eef3fb); }
.tf-mes-d.is-fora { background: #fafafa; } .tf-mes-d.is-fds { background: #fbfbfc; }
.tf-mes-d.is-hoje .tf-mes-n { background: var(--accent, #b07a3c); color: #fff; border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; }
.tf-mes-n { font-weight: 700; font-size: 13px; color: var(--brand, #071A33); }
.tf-mes-t { font-size: 11px; background: #eef3fb; color: #1d3f72; padding: 1px 5px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-mes-t.tf-p1 { background: #fde8e7; color: #b42318; } .tf-mes-t.tf-atrasada { outline: 1px solid #f3b4ae; }
.tf-mes-mais { font-size: 10.5px; color: var(--muted); }
.tf-mes-ag { font-size: 10.5px; padding: 1px 5px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-mes-ag.tf-ag--sessao { background: #e8efff; color: #1d4ed8; box-shadow: none; } .tf-mes-ag.tf-ag--prazo { background: #fbf3e8; color: #8a5a1f; box-shadow: none; }
@media (max-width: 1200px) { .tf-semana { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .tf-layout { grid-template-columns: 1fr; } .tf-side { position: static; } .tf-semana { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tf-mes-d { min-height: 70px; } .tf-mes-t { display: none; } }
/* Central: minhas tarefas de hoje */
.ce-tarefas { margin-bottom: 14px; padding: 0; }
.ce-tarefas-h { display: flex; align-items: center; gap: 10px; padding: 10px 16px; flex-wrap: wrap; } .ce-tarefas-h .muted { flex: 1; }
.tf-lista--linha { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); border-top: 1px solid var(--border); }
.tf-lista--linha .tf-item { border-top: 0; border-right: 1px solid var(--border); padding: 8px 14px; align-items: center; }
.tf-lbl-t { display: block; } .tf-lbl-t .muted { font-weight: 400; }
.tf-layout--largo { grid-template-columns: 1fr; }
.tf-dlg { padding: 0; width: min(520px, 94vw); } .tf-dlg .tf-form { border: 0; box-shadow: none; margin: 0; }
.tf-form .card-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); } .tf-form .card-head h2 { margin: 0; font-size: 17px; }

/* ===== Backups ===== */
.bk-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.bk-st { padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; border-top: 3px solid var(--border-strong, #b8c2d3); }
.bk-st .lbl { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.bk-st b { font: 600 18px var(--font-head, sans-serif); color: var(--brand, #071A33); overflow-wrap: anywhere; } .bk-st small { color: var(--muted); font-size: 12px; }
.bk-st--ok { border-top-color: #2f7d4f; } .bk-st--warn { border-top-color: #b07a3c; } .bk-st--err { border-top-color: #d92d20; background: #fffaf9; } .bk-st--err b { color: #b42318; }
.bk-prob { margin: 4px 0 0; padding-left: 16px; font-size: 12.5px; display: grid; gap: 3px; }
.bk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.bk-side { display: flex; flex-direction: column; gap: 14px; } .bk-side h2 { font-size: 15px; margin: 0 0 6px; }
.bk-senha { background: #071A33; color: #fff; padding: 10px 14px; border-radius: 8px; font-size: 16px; letter-spacing: .08em; text-align: center; }
.bk-passos { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--text); }
@media (max-width: 1000px) { .bk-status, .bk-layout { grid-template-columns: 1fr; } }

/* ===== Central em abas ===== */
.ce-abas { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 4px 0 16px; overflow-x: auto; scrollbar-width: thin; }
.ce-aba-btn { font: 600 14px var(--font-body, sans-serif); background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; color: var(--muted); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; margin-bottom: -1px; }
.ce-aba-btn:hover { color: var(--brand, #071A33); }
.ce-aba-btn.is-on { color: var(--brand, #071A33); border-bottom-color: var(--accent, #b07a3c); }
.ce-aba-n { background: #eef1f6; color: var(--brand, #071A33); font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 1px 7px; min-width: 20px; text-align: center; }
.ce-aba-n--err { background: #d92d20; color: #fff; } .ce-aba-n--gold { background: #b07a3c; color: #fff; }
.ce-aba[hidden] { display: none !important; }
.ce-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ce-bloco { padding: 0 0 8px; } .ce-bloco .card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px 6px; flex-wrap: wrap; } .ce-bloco .card-head h2 { font-size: 16px; margin: 0; }
.ce-bloco-sub { padding: 0 16px 8px; margin: 0; }
.ce-ag-dia { list-style: none; font: 700 11px var(--font-body, sans-serif); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 16px 4px; border-top: 1px solid var(--border); }
.ce-ag-dia:first-child { border-top: 0; }
.ce-avisos, .ce-whats { list-style: none; margin: 0; padding: 0; }
.ce-avisos li a { display: flex; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--border); text-decoration: none; color: inherit; align-items: flex-start; }
.ce-avisos li a:hover { background: #fbf6ee; } .ce-avisos li span:last-child { display: flex; flex-direction: column; gap: 2px; } .ce-av-ic { font-size: 16px; }
.ce-avisos .aviso-rejeitada b { color: #b42318; }
.ce-whats li { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--border); }
.ce-whats-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.ce-whats-msg { white-space: pre-wrap; font: 12.5px/1.5 var(--font-body, sans-serif); background: #f0f7f1; border-radius: 8px; padding: 8px 10px; margin: 6px 0 0; }
.ce-whats-feito { opacity: .55; } .ce-whats-feito .btn-wa { background: #2f7d4f !important; pointer-events: none; }
.ce-resumo-aba { padding: 14px 16px; } .ce-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; } .ce-chips .ce-chip { text-decoration: none; }
@media (max-width: 1000px) { .ce-2col { grid-template-columns: 1fr; } }

/* Logo do cliente no cadastro */
.logo-up { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.logo-up-prev { width: 220px; height: 120px; border-radius: 12px; border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px;
  background-color: #fff; background-image: linear-gradient(45deg, #eef0f3 25%, transparent 25%), linear-gradient(-45deg, #eef0f3 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eef0f3 75%), linear-gradient(-45deg, transparent 75%, #eef0f3 75%); background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }
.logo-up-prev img { max-width: 100%; max-height: 86px; object-fit: contain; } .logo-up-prev small { font-size: 10.5px; color: var(--muted); background: #fff; padding: 0 4px; border-radius: 4px; }
.logo-up-prev.is-vazio span { color: var(--muted); font-size: 12.5px; background: #fff; padding: 2px 8px; border-radius: 6px; }
.logo-up-campos { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; flex: 1; min-width: 260px; }
.wa-modelo { display: block; margin-top: 4px; background: #f0f7f1; padding: 6px 8px; border-radius: 6px; font-size: 12px; white-space: normal; }

/* ===== Central premium: topo vivo ===== */
.ce-hero { position: relative; overflow: hidden; border-radius: 18px; padding: 22px 24px 18px; margin: 4px 0 14px; color: #fff;
  background: radial-gradient(1200px 300px at 85% -40%, rgba(201,151,94,.35), transparent 60%), linear-gradient(135deg, #071A33 0%, #0d2b52 55%, #10345f 100%); box-shadow: 0 18px 40px rgba(7,26,51,.22); }
.ce-hero::after { content: ''; position: absolute; right: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(201,151,94,.10); pointer-events: none; }
.ce-hero-top { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; flex-wrap: wrap; position: relative; z-index: 1; }
.ce-hero-id { display: flex; gap: 14px; align-items: flex-start; }
.ce-pulso { width: 14px; height: 14px; border-radius: 50%; background: #34d399; margin-top: 30px; flex: none; box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: cePulso 2s infinite; }
.ce-hero--aviso .ce-pulso { background: #fbbf24; box-shadow: 0 0 0 0 rgba(251,191,36,.7); }
.ce-hero--erro .ce-pulso { background: #f87171; box-shadow: 0 0 0 0 rgba(248,113,113,.7); }
@keyframes cePulso { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); } 70% { box-shadow: 0 0 0 12px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.ce-hero-data { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #C9975E; font-weight: 600; }
.ce-hero-tit { margin: 2px 0 2px; font: 700 28px/1.15 var(--font-head, sans-serif); color: #fff; }
.ce-hero-sub { margin: 0; color: rgba(255,255,255,.75); font-size: 13.5px; } .ce-hero-at { color: rgba(255,255,255,.5); }
.ce-hero-acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ce-btn-glass { background: rgba(255,255,255,.08) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.22) !important; backdrop-filter: blur(4px); }
.ce-btn-glass:hover { background: rgba(255,255,255,.16) !important; }
.ce-btn-ouro { background: linear-gradient(135deg, #C9975E, #B07A3C) !important; color: #fff !important; border: 0 !important; box-shadow: 0 6px 16px rgba(176,122,60,.35); }
.ce-saude { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 18px; position: relative; z-index: 1; }
.ce-sd { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #fff; text-decoration: none; min-width: 0; transition: background .15s, transform .15s; }
.ce-sd:hover { background: rgba(255,255,255,.14); transform: translateY(-1px); }
.ce-sd-ic { font-size: 16px; } .ce-sd-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ce-sd-txt b { font-size: 12px; font-weight: 600; } .ce-sd-txt small { font-size: 11px; color: rgba(255,255,255,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ce-sd-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; flex: none; }
.ce-sd--aviso .ce-sd-dot { background: #fbbf24; } .ce-sd--erro { background: rgba(248,113,113,.18); border-color: rgba(248,113,113,.5); } .ce-sd--erro .ce-sd-dot { background: #f87171; animation: cePulso 1.6s infinite; }
.ce-sd--off .ce-sd-dot { background: rgba(255,255,255,.35); } .ce-sd--off { opacity: .8; }
/* funil do radar */
.ce-funil { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.ce-fn { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 13px 14px 12px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 2px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.ce-fn::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--brand, #071A33); }
.ce-fn:hover { box-shadow: 0 10px 24px rgba(7,26,51,.10); transform: translateY(-2px); }
.ce-fn:not(:last-child)::after { content: '›'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--border-strong, #c5cdd9); font-size: 22px; }
.ce-fn-l { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ce-fn-v { font: 700 30px/1.1 var(--font-head, sans-serif); color: var(--brand, #071A33); font-variant-numeric: tabular-nums; transition: color .3s; }
.ce-fn-s { font-size: 11.5px; color: var(--muted); } .ce-fn-s b { color: var(--text); font-weight: 600; }
.ce-fn--ouro::before { background: #B07A3C; } .ce-fn--ouro .ce-fn-v { color: #9a6700; }
.ce-fn--laranja::before { background: #c2410c; } .ce-fn--laranja .ce-fn-v { color: #a8570b; }
.ce-fn--azul::before { background: #1d4ed8; } .ce-fn--azul .ce-fn-v { color: #1f5fa8; }
.ce-fn--verde::before { background: #15803d; } .ce-fn--verde .ce-fn-v { color: #0f7a55; }
.ce-num-mudou { color: #B07A3C !important; }
/* abas mais elegantes */
.ce-abas { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 5px; gap: 4px; border-bottom: 1px solid var(--border); margin: 0 0 14px; }
.ce-aba-btn { border-radius: 10px; border-bottom: 0; padding: 9px 14px; margin: 0; }
.ce-aba-btn.is-on { background: var(--brand, #071A33); color: #fff; }
.ce-aba-btn.is-on .ce-aba-n { background: rgba(255,255,255,.18); color: #fff; }
.ce-aba-btn.is-on .ce-aba-n--err { background: #ef4444; } .ce-aba-btn.is-on .ce-aba-n--gold { background: #C9975E; }
/* clientes e acessos */
.ce-cli-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.ce-acc th small { font-weight: 400; text-transform: none; letter-spacing: 0; } .ce-acc .c { text-align: center; } .d-block { display: block; }
.ce-acc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.ce-acc-dot--ok { background: #22c55e; } .ce-acc-dot--warn { background: #f59e0b; } .ce-acc-dot--err { background: #ef4444; }
.ce-barra { height: 6px; background: #eef1f6; border-radius: 4px; overflow: hidden; width: 120px; margin-bottom: 3px; } .ce-barra i { display: block; height: 100%; background: linear-gradient(90deg, #1d4ed8, #22c55e); }
.ce-tl--cli { padding: 0 16px 8px; }
@media (max-width: 1250px) { .ce-saude { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ce-funil { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ce-fn::after { display: none; } }
@media (max-width: 900px) { .ce-cli-grid { grid-template-columns: 1fr; } .ce-saude { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ce-funil { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ce-hero-tit { font-size: 22px; } }
.ce-hero-nome { color: rgba(255,255,255,.85); }
.ficha-head-id { display: flex; gap: 16px; align-items: center; } .ficha-logo { width: 96px; height: 64px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 6px; flex: none; } .ficha-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pt-pago, .pt-gratis { font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 4px; margin-left: 3px; }
.pt-pago { background: #fde8e7; color: #b42318; } .pt-gratis { background: #e7f6ec; color: #1f6b3f; }

/* ===== Histórico de pesquisas do radar ===== */
.rh-filtro { display: flex; gap: 12px; align-items: center; padding: 10px 14px; margin-bottom: 14px; flex-wrap: wrap; }
.rh-funil { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rh-clientes { display: grid; gap: 14px; margin-bottom: 16px; }
.rh-cli { padding: 16px 18px; }
.rh-cli-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; } .rh-cli-h h2 { margin: 0; font-size: 17px; }
.rh-nums { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); } .rh-nums b { color: var(--text); font-size: 15px; }
.rh-nums .ok b { color: #15803d; } .rh-nums .err b { color: #b42318; } .rh-nums .az b { color: #1d4ed8; }
.rh-barra { display: flex; height: 8px; border-radius: 5px; overflow: hidden; background: #eef1f6; margin: 10px 0 14px; } .rh-barra i { display: block; height: 100%; }
.rh-barra .ok { background: #22c55e; } .rh-barra .ja { background: #93c5fd; } .rh-barra .err { background: #f59e0b; }
.rh-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; } .rh-cols h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.rh-mot td { padding: 6px 8px; vertical-align: top; } .rh-mini { height: 4px; background: #eef1f6; border-radius: 3px; width: 70px; margin: 4px 0 0 auto; overflow: hidden; } .rh-mini i { display: block; height: 100%; background: #f59e0b; }
.rh-sug { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.rh-sug li { padding: 8px 10px; border-radius: 8px; border-left: 3px solid var(--border-strong, #c5cdd9); background: #f8fafc; }
.rh-sug--err { border-left-color: #d92d20 !important; background: #fff5f4 !important; } .rh-sug--warn { border-left-color: #f59e0b !important; background: #fffbeb !important; } .rh-sug--info { border-left-color: #1d4ed8 !important; background: #eff6ff !important; }
.rh-err td { background: #fffaf9; }
.print-only { display: none; }
@media print { .no-print, .top, .sidebar, nav.tabs, .fin-tabs, .avisos { display: none !important; } .print-only { display: block; margin-bottom: 10px; } .rh-cli, .card { break-inside: avoid; box-shadow: none; } body { background: #fff; } }
@media (max-width: 1000px) { .rh-funil { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rh-cols { grid-template-columns: 1fr; } }

/* ===== Radar: topo em 3 cartões ===== */
.rd-topo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 14px; margin-bottom: 16px; }
.rd-c { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; border-top: 3px solid var(--brand, #071A33); }
.rd-c--on { border-top-color: #15803d; } .rd-c--off { border-top-color: #94a3b8; } .rd-c--envio { border-top-color: #B07A3C; }
.rd-l { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rd-big { font: 700 30px/1 var(--font-head, sans-serif); color: var(--brand, #071A33); } .rd-big small { font-size: 13px; font-weight: 500; color: var(--muted); }
.rd-linha { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; border-top: 1px dashed var(--border); padding-top: 6px; } .rd-linha span:first-child { color: var(--muted); }
.rd-num { width: 58px; padding: 3px 6px; height: 28px; }
.rd-env-h { display: flex; justify-content: space-between; align-items: baseline; }
.rd-env-tot { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.rd-env-cli { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.rd-env-cli li { display: flex; justify-content: space-between; gap: 8px; background: #fbf6ee; border-radius: 8px; padding: 6px 10px; font-size: 12.5px; } .rd-env-cli b { color: #9a6700; }
.rd-env-acoes { display: flex; gap: 6px; margin-top: auto; }
@media (max-width: 1100px) { .rd-topo { grid-template-columns: 1fr; } }
.rd-num { width: 64px !important; min-width: 0 !important; display: inline-block !important; padding: 3px 6px !important; height: 28px !important; } .rd-linha .row { flex-wrap: nowrap; align-items: center; } .rh-funil .ce-fn::after { display: none; }
.op-portal { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 7px 12px; border-radius: 8px; margin: 6px 0 2px; font-size: 13px; }
.op-portal--ok { background: #ecfdf3; } .op-portal--ok b { color: #15803d; }
.op-portal--pago { background: #fef2f2; } .op-portal--pago b { color: #b42318; }
.op-portal--conf { background: #fffbeb; border: 1px dashed #f59e0b; } .op-portal--conf b { color: #9a6700; }
.op-portal-acoes { display: inline-flex; gap: 6px; align-items: center; }
.item-tr{margin-top:6px;font-size:12px;font-weight:600;color:#15803d}
.item-tr-pncp{color:#a16207}
.rd-env-tab{width:100%;border-collapse:collapse;font-size:13px;margin:4px 0 10px}
.rd-env-tab th{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted,#6b7280);font-weight:600;text-align:right;padding:2px 6px}
.rd-env-tab th:first-child{text-align:left}
.rd-env-tab td{padding:6px;border-top:1px solid rgba(0,0,0,.06);text-align:right;font-variant-numeric:tabular-nums}
.rd-env-tab td:first-child{text-align:left}
.rd-env-tab td b{font-size:16px}
.rd-env-tab tr.zero td{color:var(--muted,#9ca3af)}
/* tarefas: botões concluir / reagendar / transferir */
.tf-acoes{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;align-items:flex-start}
.tf-acoes form{margin:0}
.tf-btn-ok{background:#15803d;color:#fff;border-color:#15803d}
.tf-btn-ok:hover{background:#166534}
.tf-pop{position:relative}
.tf-pop>summary{list-style:none;cursor:pointer}
.tf-pop>summary::-webkit-details-marker{display:none}
.tf-pop-corpo{position:absolute;z-index:30;top:calc(100% + 4px);left:0;background:#fff;border:1px solid rgba(0,0,0,.1);border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.15);padding:10px;display:flex;flex-direction:column;gap:8px;min-width:220px}
.tf-pop-corpo label{display:flex;flex-direction:column;gap:3px;font-size:12px;font-weight:600}
.tf-google h2{font-size:15px;margin:0 0 6px}
.tf-google-erro{color:#b42318}
.tf-google-cfg{margin-top:10px}
.tf-google-cfg form{margin-top:8px}
/* alarme de proposta */
.alarme-proposta{position:fixed;z-index:9999;left:50%;top:76px;transform:translateX(-50%);width:min(680px,94vw);background:#b42318;color:#fff;border-radius:14px;padding:14px 16px;box-shadow:0 20px 50px rgba(180,35,24,.45);animation:alarmePulso 1s infinite}
.alarme-proposta-h{font-weight:800;font-size:16px;letter-spacing:.02em;margin-bottom:6px}
.alarme-proposta-i{display:block;color:#fff;text-decoration:underline;font-size:14px;margin:3px 0}
.alarme-proposta-acoes{display:flex;gap:8px;align-items:center;justify-content:flex-end;margin-top:10px;flex-wrap:wrap}
.alarme-proposta-som{margin-right:auto;font-size:13px;font-weight:700;background:rgba(0,0,0,.25);padding:4px 8px;border-radius:6px}
.alarme-proposta .btn{background:#fff;color:#b42318;border-color:#fff}
@keyframes alarmePulso{0%,100%{box-shadow:0 20px 50px rgba(180,35,24,.45)}50%{box-shadow:0 0 0 8px rgba(255,255,255,.35),0 20px 50px rgba(180,35,24,.6)}}
.tf-google{padding:16px 18px}
.cols-5 { display:grid; gap:14px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1250px) { .cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .cols-5 { grid-template-columns: 1fr; } }
/* documentos: envio em massa */
.doc-massa{margin-top:16px;padding:16px 18px;border:1.5px dashed #c9b48f;background:#fffdf8}
.doc-massa h2{font-size:15px;margin:0 0 4px}
.doc-massa .sub{margin:0}
.doc-massa-corpo{display:grid;grid-template-columns:1.4fr 1fr auto;gap:14px;align-items:center}
.doc-massa-drop{display:flex;align-items:center;justify-content:center;text-align:center;min-height:64px;border:1px solid rgba(0,0,0,.12);border-radius:10px;background:#fff;padding:10px;cursor:pointer;font-size:13px;color:var(--muted,#6b7280);position:relative}
.doc-massa-drop input{position:absolute;inset:0;opacity:0;cursor:pointer}
.doc-massa-drop.is-sobre{border-color:#b07a3c;background:#fff7ea}
.doc-lote{margin-top:16px}
.doc-lote-item{display:grid;grid-template-columns:minmax(180px,1fr) 3fr auto;gap:12px;align-items:end;padding:12px 16px;border-top:1px solid rgba(0,0,0,.06)}
.doc-lote-arq a{font-weight:600;word-break:break-word}
.doc-lote-aviso{font-size:12px;color:#a16207;margin-top:4px}
.doc-lote-campos{display:grid;grid-template-columns:1.6fr 1.3fr 1fr .9fr .9fr;gap:8px}
.doc-lote-campos label{display:flex;flex-direction:column;gap:3px;font-size:11.5px;font-weight:600}
.doc-lote-falta{border-color:#e0a23a !important;background:#fff8ec}
.doc-lote-acoes{display:flex;gap:6px}
@media (max-width:1100px){.doc-massa-corpo,.doc-lote-item{grid-template-columns:1fr}.doc-lote-campos{grid-template-columns:1fr 1fr}}
/* ---------- Mural Santos & Portela: arte no padrão dos posts do Instagram (projeto Gabriel) ---------- */
.sp-arte{position:relative;overflow:hidden;border-radius:14px;background:#071A33;aspect-ratio:4/5;width:100%}
.sp-arte--banner{aspect-ratio:16/5}
.sp-arte--img{background:#f3efe7}
.sp-arte--img img{width:100%;height:100%;object-fit:cover;display:block}
.sp-arte--banner.sp-arte--img img{object-fit:contain;background:#071A33}
.sp-arte-in{position:absolute;left:0;top:0;width:1080px;height:1350px;transform-origin:0 0;font-family:"TeX Gyre Pagella","Palatino Linotype",Palatino,"Book Antiqua",Georgia,serif;-webkit-font-smoothing:antialiased}
.sp-arte--banner .sp-arte-in{width:1600px;height:500px}
.sp-arte-in.escuro{color:#F5F1EA;background:radial-gradient(1500px 900px at 85% 40%,rgba(26,53,87,.55),rgba(0,0,0,0) 60%),linear-gradient(#071A33 0%,#050F20 100%)}
.sp-arte-in.claro{color:#051A34;background:radial-gradient(1500px 900px at 85% 40%,rgba(255,255,255,.65),rgba(255,255,255,0) 60%),linear-gradient(#F5F1EA 0%,#EFE9DF 100%)}
.sp-arte-in::before{content:"";position:absolute;inset:0;pointer-events:none;background-size:80px 80px;-webkit-mask-image:linear-gradient(90deg,#000 0%,transparent 55%);mask-image:linear-gradient(90deg,#000 0%,transparent 55%)}
.sp-arte-in.escuro::before{background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px)}
.sp-arte-in.claro::before{background-image:linear-gradient(rgba(5,26,52,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(5,26,52,.07) 1px,transparent 1px)}
.sp-arte-in .bloco{position:absolute;left:96px;top:var(--text-top,400px);width:var(--text-w,888px);z-index:2}
.sp-arte-in .headline{font-size:88px;line-height:1.17;font-weight:400;letter-spacing:-.5px;margin:0;font-family:inherit}
.sp-arte-in .headline em{font-style:italic;color:#AE7435;display:block}
.sp-arte-in .sub{font-family:Inter,system-ui,sans-serif;font-size:27px;line-height:1.9;font-weight:400;margin:40px 0 0;max-width:640px}
.sp-arte-in.escuro .sub{color:#B7BDC6}.sp-arte-in.claro .sub{color:#4E5866}
.sp-arte-logo{position:absolute;z-index:2;width:260px;left:410px;top:1165px}
.sp-arte--banner .bloco{left:80px;top:50%;transform:translateY(-50%);width:1000px}
.sp-arte--banner .headline{font-size:70px}
.sp-arte--banner .sub{font-size:26px;margin-top:20px;max-width:900px}
.sp-arte--banner .sp-arte-logo{width:230px;left:1310px;top:395px}
.sp-arte svg.arcos{position:absolute;inset:0;z-index:0}
/* banners no painel do cliente */
.mural-banners{position:relative;margin:0 0 16px}
.mural-banner{display:none;position:relative}
.mural-banner.is-on{display:block}
.mural-banner-cta{position:absolute;right:14px;bottom:14px;display:flex;gap:8px;z-index:3}
.mural-banner-cta .btn{box-shadow:0 6px 18px rgba(0,0,0,.25)}
.mural-dots{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);display:flex;gap:6px;z-index:3}
.mural-dots button{width:9px;height:9px;border-radius:50%;border:0;background:rgba(255,255,255,.45);cursor:pointer;padding:0}
.mural-dots button.is-on{background:#C9975E}
/* feed */
.mural-feed{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px}
.mural-card{display:flex;flex-direction:column;overflow:hidden}
.mural-card .sp-arte{border-radius:14px 14px 0 0}
.mural-card-corpo{padding:12px 16px 14px;display:flex;flex-direction:column;gap:8px}
.mural-card-tipo{font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#B07A3C}
.mural-card-texto{font-size:14px;line-height:1.55;white-space:pre-line}
.mural-acoes{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.mural-acoes .on{background:#fde8ea;border-color:#f5b5bd;color:#b42318}
.mural-com{border-top:1px solid rgba(0,0,0,.06);padding-top:8px;font-size:13px}
.mural-com-item{margin:4px 0}
.mural-com-resp{margin:4px 0 0 12px;padding:6px 10px;background:#f6f1e8;border-radius:8px}
.mural-com form{display:flex;gap:6px;margin-top:6px}
.mural-com input{flex:1;height:32px}
/* escritório */
.mural-adm{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.mural-adm .card{overflow:hidden}
.mural-adm-num{display:flex;gap:10px;flex-wrap:wrap;font-size:12px;color:var(--muted,#6b7280)}
.mural-form{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:18px;align-items:start}
.mural-prev{position:sticky;top:80px;display:grid;gap:12px}
.mural-pub{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:4px 12px;max-height:180px;overflow:auto;padding:6px;border:1px solid rgba(0,0,0,.08);border-radius:8px}
.mural-insta{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.mural-insta img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:10px;display:block}
@media (max-width:900px){.mural-form{grid-template-columns:1fr}.mural-prev{position:static}}
/* guia do cliente */
.guia{display:grid;gap:14px;max-width:900px}
.guia-passo{display:grid;grid-template-columns:48px 1fr;gap:14px;padding:16px 18px}
.guia-n{width:44px;height:44px;border-radius:50%;background:#071A33;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:18px}
.guia-passo h2{font-size:16px;margin:2px 0 6px}
.guia-passo ul{margin:6px 0 0;padding-left:18px;display:grid;gap:4px}
.guia-indice{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}
.sp-arte-in .headline{color:inherit}
.sp-arte-in.escuro{color:#F5F1EA}.sp-arte-in.claro{color:#051A34}
.mural-banner-cta{right:auto;left:16px;bottom:16px}
.sp-arte--banner .bloco{width:900px}
/* régua de cobrança */
.regua-linha .card-body{display:flex;gap:0;overflow-x:auto;padding:18px}
.regua-ponto{flex:1;min-width:110px;text-align:center;position:relative;padding-top:26px}
.regua-ponto::before{content:"";position:absolute;top:8px;left:0;right:0;height:3px;background:#e7e0d4}
.regua-ponto::after{content:"";position:absolute;top:2px;left:50%;width:15px;height:15px;margin-left:-7px;border-radius:50%;background:#2f7d4f;border:3px solid #fff;box-shadow:0 0 0 1px #2f7d4f}
.regua-ponto.dia::after{background:#B07A3C;box-shadow:0 0 0 1px #B07A3C}
.regua-ponto.atraso::after{background:#B42318;box-shadow:0 0 0 1px #B42318}
.regua-ponto.off{opacity:.4}
.regua-ponto b{display:block;font-size:15px}
.regua-ponto span{font-size:12px;color:var(--muted,#6b7280)}
.regua-passos{display:grid;gap:12px;padding:12px 18px}
.regua-passo{border:1px solid rgba(0,0,0,.08);border-radius:10px;padding:10px 12px;display:grid;gap:8px}
.regua-passo-top{display:flex;gap:10px;flex-wrap:wrap}
.resumo-an .ra-pre{background:#f6f1e8;border-left:4px solid #B07A3C;border-radius:8px;padding:12px 14px}
.resumo-an .ra-pre dd{font-size:14px;line-height:1.6}
.ck-extra{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:14px 18px;border-top:1px solid rgba(0,0,0,.06)}
.ck-extra h3{font-size:14px;margin:0 0 2px}
.ck-extra ul{margin:8px 0 0;padding:0;list-style:none;display:grid;gap:5px;font-size:13.5px}
@media (max-width:800px){.ck-extra{grid-template-columns:1fr}}

/* Resumo do sistema · cartões com número principal e linhas de apoio */
.rs2 { position: relative; padding: 16px 18px 14px; border-top: 3px solid var(--rs-cor, var(--brand)); display: flex; flex-direction: column; }
.rs2 .rs-head { font-size: 14px; margin-bottom: 10px; }
.rs2 .rs-ic { width: 30px; height: 30px; border-radius: 8px; display: inline-grid; place-items: center; background: color-mix(in srgb, var(--rs-cor) 12%, #fff); font-size: 16px; }
.rs2 .rs-head .badge { margin-left: auto; }
.rs-dest { display: flex; align-items: baseline; gap: 8px; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px dashed var(--border, #e5e7eb); }
.rs-big { font-size: 28px; line-height: 1; font-weight: 800; color: var(--brand, #071A33); letter-spacing: -.02em; }
.rs-dest span { font-size: 13px; color: var(--muted, #64748b); }
.rs-linhas { margin: 0; display: grid; gap: 2px; font-size: 13px; }
.rs-linhas > div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.rs-linhas > div + div { border-top: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 60%, transparent); }
.rs-linhas dt { color: var(--muted, #64748b); }
.rs-linhas dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.rs-linhas dd.rs-muted { font-weight: 500; color: var(--muted, #64748b); }
.rs-rodape { margin: 8px 0 0; font-size: 12px; color: var(--muted, #64748b); }
.ce-resumo-aba .rs-grid { gap: 16px; }
/* Tarefas no ID da oportunidade */
.op-tf-lista { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.op-tf-lista li { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--border, #e5e7eb); border-radius: 8px; }
.op-tf-lista li.op-tf-feita { opacity: .6; } .op-tf-lista li.op-tf-feita b { text-decoration: line-through; }
.op-tf-atr { color: #b42318; font-weight: 600; }
.op-tf-nova > summary { list-style: none; cursor: pointer; display: inline-block; } .op-tf-nova > summary::-webkit-details-marker { display: none; }
.op-tf-form { margin-top: 10px; }
/* Central: mesmas colunas do painel do cliente */
.ce-quadro.kanban { grid-template-columns: repeat(var(--ce-cols, 4), minmax(270px, 290px)); }
.ce-arraste { margin: 0 0 8px; }
.itens-aviso { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; background: #fdf6e7; color: #7a4a06; border: 1px solid #f1dcae; border-radius: 8px; padding: 9px 12px; margin-bottom: 10px; font-size: 13px; }
.itens-aviso .btn { white-space: nowrap; }
.item-tr-pncp a { color: inherit; text-decoration: underline; }
/* Radar como aba da Central: barra compacta + menu "Mais" */
.rd-barra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 10px 14px; margin: 0 0 14px; }
.rd-barra-info { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 13px; }
.rd-barra-info form { margin: 0; }
.rd-barra-txt { color: var(--muted, #64748b); } .rd-barra-txt b { color: var(--text, #0f172a); }
.rd-barra-acoes { display: flex; gap: 8px; align-items: center; }
.rd-barra-acoes form { margin: 0; }
.rd-mais { position: relative; }
.rd-mais > summary { list-style: none; cursor: pointer; } .rd-mais > summary::-webkit-details-marker { display: none; }
.rd-mais-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 320px; background: #fff; border: 1px solid var(--border, #e5e7eb); border-radius: 10px; box-shadow: 0 10px 30px rgba(7,26,51,.14); padding: 6px; }
.rd-mais-grupo { padding: 6px 4px; } .rd-mais-grupo + .rd-mais-grupo { border-top: 1px solid var(--border, #e5e7eb); }
.rd-mais-grupo form { margin: 0; }
.rd-mais-item { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 7px 8px; border-radius: 6px; font: inherit; font-size: 13px; color: inherit; text-decoration: none; cursor: pointer; }
.rd-mais-item:hover { background: var(--bg-soft, #f4f1ea); }
.rd-mais-dias { display: grid; gap: 4px; font-size: 13px; padding: 2px 8px; }
.rd-mais-tit { display: block; font-size: 12px; font-weight: 700; padding: 2px 8px 4px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted, #64748b); }
.rd-mais-linha { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; padding: 3px 8px; } .rd-mais-linha.zero { color: var(--muted, #64748b); }
.ce-aniv { margin-top: 16px; }
.ce-destaque { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; background: #fdf6e7; border: 1px solid #f1dcae; color: #7a4a06; border-radius: 10px; padding: 9px 14px; margin: 0 0 12px; font-size: 13px; }
.ce-destaque a { color: #7a4a06; text-decoration: underline; } .ce-destaque-todos { margin-left: auto; font-weight: 700; }

.som-conteudo { flex: 1; min-width: 0; }
.som-msg { margin-top: 6px; font-weight: 400; font-size: 13px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 55vh; overflow-y: auto; background: rgba(255,255,255,.1); border-radius: 8px; padding: 8px 10px; }
.som-toast--chat { background: #b91c1c; border: 2px solid #fecaca; animation: somPulsoChat .5s ease-in-out infinite; }
@keyframes somPulsoChat { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.7); } 50% { box-shadow: 0 0 0 10px rgba(239,68,68,0); } }
.chatapp-grupo { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted,#6b7686); padding: 10px 12px 4px; }
.chatapp-item.is-hoje { border-left: 4px solid var(--accent,#c8a35a); background: #fffaf0; }
.pill--hoje { background: #c8a35a; color: #fff; }
.chatapp-item.is-encerrada { opacity: .75; }
.op-margem{margin:6px 0;padding:6px 10px;border-radius:8px;background:#fff5e5;border:1px solid #f3dcb4;color:#8a5a00;font-size:12.5px;font-weight:600}

/* Central: indicadores do painel e sessões dos próximos 7 dias */
.ce-pkpis{margin:0 0 14px}
.ce-sessoes7{margin-bottom:16px}
.s7-grade{display:grid;grid-template-columns:repeat(7,minmax(130px,1fr));gap:8px;overflow-x:auto;padding:4px 2px 2px}
.s7-dia{background:#f7f4ee;border-radius:10px;padding:8px;min-height:120px;display:flex;flex-direction:column;gap:6px}
.s7-dia--hoje{background:#fff4e2;outline:2px solid #e9c58f}
.s7-dia-h{display:flex;align-items:baseline;gap:6px;font-size:12px}.s7-dia-h span{color:#6b7280}.s7-dia-h em{margin-left:auto;font-style:normal;background:#fff;border-radius:10px;padding:0 7px;font-weight:700}
.s7-card{display:flex;flex-direction:column;gap:1px;background:#fff;border-radius:8px;padding:6px 8px;border-left:3px solid #2563eb;color:inherit;text-decoration:none;font-size:11.5px;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.s7-card:hover{box-shadow:0 4px 12px rgba(0,0,0,.1)}
.s7-card--disputa{border-left-color:#0891b2}.s7-card--participar{border-left-color:#1d4ed8}.s7-card--enviada,.s7-card--analisar,.s7-card--escritorio{border-left-color:#b07a3c}
.s7-hora{font-weight:700;color:#0b1f3a}.s7-hora small{font-weight:400;color:#9a6a33}.s7-sub{color:#6b7280}.s7-fase{font-size:10.5px;color:#4b5563}
.s7-vazio{color:#c0b8aa;text-align:center;margin:20px 0 0}
.rd-parede{margin:0 0 14px;padding:10px 14px}
.rd-parede summary{cursor:pointer;list-style:none}
.rd-parede-f{margin-top:10px}
.rd-parede-g{display:flex;flex-wrap:wrap;gap:6px 14px}
.rd-parede textarea{width:100%;font-family:inherit}
/* quadro (kanban) de tarefas e agenda */
.tf-kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.tf-kcol { background: var(--surface-2, #f4f5f7); border: 1px solid var(--border); border-radius: 12px; padding: 8px; min-height: 160px; transition: background .15s, border-color .15s; }
.tf-kcol > header { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 8px; font-size: 13px; }
.tf-kcol .tf-lista { display: flex; flex-direction: column; gap: 6px; }
.tf-kcol .tf-item, .tf-kcol .tf-ag { background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 10px; padding: 8px; }
.tf-kcol .tf-lista--ag { margin-bottom: 6px; }
.tf-kcol .tf-item[draggable="true"] { cursor: grab; }
.tf-kcol .tf-item.is-arrastando { opacity: .5; }
.tf-kcol.is-alvo { border-color: var(--accent, #2563eb); background: color-mix(in srgb, var(--accent, #2563eb) 8%, transparent); }
.tf-kcol--atrasadas > header b { color: #b42318; }
.tf-kcol--feitas .tf-item { opacity: .75; }
.tf-kcol .tf-vazio { text-align: center; color: var(--muted, #8a8f98); font-size: 12px; padding: 18px 0; border: 1px dashed var(--border); border-radius: 10px; }
/* sessões dos próximos 7 dias: linha de aviso compacta na Central */
.ce-s7linha { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px; margin: 0 0 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface, #fff); }
.ce-s7linha .s7l-t { font-size: 13px; margin-right: 4px; white-space: nowrap; }
.ce-s7linha .s7l-t em { font-style: normal; background: var(--accent, #2563eb); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 11px; margin-left: 4px; }
.ce-s7linha .s7l { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2, #f4f5f7); color: inherit; text-decoration: none; white-space: nowrap; }
.ce-s7linha .s7l:hover { border-color: var(--accent, #2563eb); }
.ce-s7linha .s7l-d { font-weight: 600; color: var(--accent, #2563eb); }
.ce-s7linha .s7l--hoje { background: #fff4e5; border-color: #f0b46a; }
.ce-s7linha .s7l--hoje .s7l-d { color: #9a3412; }
.ce-s7linha .s7l--disputa { border-color: #0891b2; }
.tf-kgoogle { max-width: 520px; margin-top: 14px; }
/* alarme de aniversários */
.aniv-alarme { position: fixed; left: 18px; bottom: 18px; z-index: 9998; width: min(420px, calc(100vw - 36px)); max-height: 70vh; overflow: auto; background: linear-gradient(160deg, #0f1f3a, #1c3360); color: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(15, 31, 58, .45); padding: 14px; border: 1px solid rgba(214, 170, 92, .55); }
.aniv-alarme .aniv-h { font-weight: 700; letter-spacing: .02em; margin-bottom: 10px; color: #f3d39a; }
.aniv-alarme .aniv-card { background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid rgba(255, 255, 255, .1); }
.aniv-alarme .aniv-card.is-hoje { border-color: #d6aa5c; background: rgba(214, 170, 92, .14); animation: anivPulso 2s ease-in-out infinite; }
@keyframes anivPulso { 50% { box-shadow: 0 0 0 4px rgba(214, 170, 92, .25); } }
.aniv-alarme .aniv-t { font-size: 12px; font-weight: 700; color: #f3d39a; text-transform: none; }
.aniv-alarme .aniv-n { display: block; color: #fff; font-weight: 600; margin: 3px 0 6px; text-decoration: none; }
.aniv-alarme .aniv-msg summary { cursor: pointer; font-size: 12px; color: #c9d6ee; }
.aniv-alarme .aniv-msg div { white-space: pre-wrap; font-size: 12.5px; line-height: 1.5; background: rgba(0, 0, 0, .2); border-radius: 8px; padding: 8px 10px; margin-top: 6px; }
.aniv-alarme .aniv-ac { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.aniv-alarme .btn { color: inherit; }
.aniv-alarme .btn-primary { background: #25d366; border-color: #25d366; color: #0b2b16; }
.aniv-alarme .aniv-ok { background: #d6aa5c; border-color: #d6aa5c; color: #1b1406; }
.aniv-alarme .btn-ghost { color: #c9d6ee; }
.aniv-alarme .btn:not(.btn-primary):not(.aniv-ok) { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #fff; }
