/* ============================================================
   PERIVON ADM — Painel Administrativo
   Tema SaaS premium (identidade Perivon)
   ============================================================ */

:root {
  --bg: #0a0c12;
  --bg-soft: #0e1119;
  --bg-elev: #121624;
  --card: #121624;
  --card-2: #171c2e;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #f2f4f8;
  --muted: #9aa3b4;
  --muted-2: #6b7280;
  --accent: #6e5bff;
  --accent-2: #00c2ff;
  --grad: linear-gradient(120deg, #6e5bff 0%, #00c2ff 100%);
  --grad-soft: linear-gradient(120deg, rgba(110, 91, 255, 0.16), rgba(0, 194, 255, 0.16));
  --danger: #ff5c5c;
  --warn: #ffb020;
  --success: #2bd97c;
  --pv-orange: #ff8a3c;
  --pv-orange-deep: #f06a12;
  --pv-orange-soft: rgba(255, 138, 60, 0.15);
  --pv-orange-grad: linear-gradient(120deg, #ffb45e 0%, #ff7a2e 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sidebar-w: 248px;
  --sidebar-w-collapsed: 72px;
  --topbar-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; color: var(--text); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -0.02em; }
::selection { background: rgba(110, 91, 255, 0.4); color: #fff; }
.accent { color: var(--accent-2); }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.tiny { font-size: 0.78rem; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; } .flex-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.01em; line-height: 1;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 26px rgba(110, 91, 255, 0.35); }
.btn-primary:hover { box-shadow: 0 12px 34px rgba(110, 91, 255, 0.5); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.26); }
.btn-danger { background: rgba(255, 92, 92, 0.12); color: var(--danger); border-color: rgba(255, 92, 92, 0.35); }
.btn-danger:hover { background: rgba(255, 92, 92, 0.2); }
.btn-sm { padding: 8px 15px; font-size: 0.82rem; }
.btn-lg { padding: 14px 26px; font-size: 0.98rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.icon-btn { background: none; border: none; color: var(--muted); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 1.25rem; transition: all 0.15s ease; }
.icon-btn:hover { background: var(--bg-soft); color: var(--text); }
.icon-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Forms ---------- */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: 11px;
  color: var(--text); padding: 12px 15px; font-size: 0.92rem; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(110, 91, 255, 0.22); }
.field textarea { resize: vertical; min-height: 100px; }
.field .hint { display: block; font-size: 0.76rem; color: var(--muted-2); margin-top: 5px; font-weight: 400; }
.field input[readonly] { color: var(--muted-2); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field-full { grid-column: 1 / -1; }
@media (max-width: 640px) { .field-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 4vw, 30px); }
.form-section-title { font-size: 1.02rem; margin: 26px 0 14px; display: flex; align-items: center; gap: 10px; }
.form-section-title:first-of-type { margin-top: 0; }
.form-section-title .fs-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--grad-soft); display: grid; place-items: center; flex: none; }
.form-section-title .fs-ic svg { width: 15px; height: 15px; stroke: var(--accent-2); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Shell / Layout ---------- */
#app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: none; background: var(--bg-soft); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 60;
  transition: width 0.22s ease;
}
.sidebar .sb-brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; height: var(--topbar-h); border-bottom: 1px solid var(--border); white-space: nowrap; overflow: hidden; }
.sidebar .sb-logo { width: 30px; height: 30px; flex: none; border-radius: 8px; }
.sidebar .sb-name { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.02em; }
.sidebar .sb-app { font-size: 0.6rem; letter-spacing: 0.18em; color: var(--accent-2); margin-left: 6px; font-weight: 700; }
.sb-nav { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.sb-nav a, .sb-foot a, .sb-foot button {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px;
  color: var(--muted); font-size: 0.9rem; font-weight: 500; border: none; background: none; width: 100%;
  transition: all 0.14s ease; white-space: nowrap; text-align: left;
}
.sb-nav a:hover, .sb-foot a:hover, .sb-foot button:hover { background: var(--bg-elev); color: var(--text); }
.sb-nav a.active { background: var(--grad-soft); color: var(--text); box-shadow: inset 0 0 0 1px rgba(110, 91, 255, 0.35); }
.sb-ic { width: 20px; height: 20px; flex: none; display: grid; place-items: center; }
.sb-ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sb-foot { padding: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; }
.sb-foot button { cursor: pointer; }

body.nav-collapsed .sidebar { width: var(--sidebar-w-collapsed); }
body.nav-collapsed .sb-name, body.nav-collapsed .sb-app, body.nav-collapsed .sb-lbl { display: none; }
body.nav-collapsed .sb-brand { justify-content: center; padding: 18px 12px; }
body.nav-collapsed .sb-nav a, body.nav-collapsed .sb-foot a, body.nav-collapsed .sb-foot button { justify-content: center; padding: 11px; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 50; height: var(--topbar-h); display: flex; align-items: center; gap: 14px; padding: 0 22px; background: rgba(10, 12, 18, 0.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.tb-title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.tb-user { background: none; border: none; padding: 0; }
.tb-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; box-shadow: 0 4px 14px rgba(110, 91, 255, 0.4); }
.tb-avatar img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

.view { padding: 28px clamp(18px, 3vw, 36px) 60px; max-width: 1240px; width: 100%; }
@media (max-width: 900px) { body.nav-collapsed .sidebar, .sidebar { width: 72px; } body.nav-collapsed .sb-name, body.nav-collapsed .sb-app, body.nav-collapsed .sb-lbl, .sb-name, .sb-app, .sb-lbl { display: none; } .sidebar .sb-brand { justify-content: center; padding: 18px 12px; } .sb-nav a, .sb-foot a, .sb-foot button { justify-content: center; padding: 11px; } }

/* ---------- Page head ---------- */
.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.page-head .sub { color: var(--muted); margin-top: 4px; font-size: 0.94rem; }

/* ---------- Cards / KPIs ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.grid-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; top: -40px; right: -40px; width: 110px; height: 110px; background: radial-gradient(circle, rgba(110, 91, 255, 0.16), transparent 65%); }
.kpi .k-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.kpi .k-value { font-family: var(--font-head); font-size: 1.65rem; font-weight: 700; margin-top: 8px; line-height: 1.1; }
.kpi .k-sub { font-size: 0.78rem; color: var(--muted-2); margin-top: 4px; }
.kpi.k-accent .k-value { color: var(--accent-2); }
.kpi.k-success .k-value { color: var(--success); }
.kpi.k-warn .k-value { color: var(--warn); }
.kpi.k-danger .k-value { color: var(--danger); }
.kpi.k-money .k-value { font-size: 1.35rem; }
.kpi .k-ic { position: absolute; right: 16px; bottom: 14px; width: 34px; height: 34px; border-radius: 10px; background: var(--grad-soft); display: grid; place-items: center; }
.kpi .k-ic svg { width: 17px; height: 17px; stroke: var(--accent-2); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2 { font-size: 1.08rem; }
.card-head .sub { color: var(--muted-2); font-size: 0.8rem; }

/* ---------- Tables ---------- */
.table-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.table th { text-align: left; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; padding: 13px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr { transition: background 0.14s ease; }
.table tbody tr:hover { background: var(--bg-soft); }
.table tbody tr:last-child td { border-bottom: none; }
.table .num-cell { font-family: var(--font-head); font-weight: 700; white-space: nowrap; }
.table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; color: var(--accent-2); white-space: nowrap; }
.table .cell-main b { display: block; font-weight: 600; }
.table .cell-main span { display: block; font-size: 0.78rem; color: var(--muted-2); }
.table .actions { display: flex; gap: 5px; justify-content: flex-end; }
.table .actions a, .table .actions button { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--bg-soft); color: var(--muted); transition: all 0.14s ease; }
.table .actions a:hover, .table .actions button:hover { color: var(--text); border-color: var(--accent); }
.table .actions svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.table .actions .danger:hover { color: var(--danger); border-color: var(--danger); }
@media (max-width: 820px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 14px; border-bottom: 1px solid var(--border); }
  .table td { border: none; padding: 4px 0; }
  .table td::before { content: attr(data-label); display: block; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); font-weight: 700; margin-bottom: 2px; }
  .table .actions { justify-content: flex-start; margin-top: 8px; }
}

/* ---------- Status pills ---------- */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-rascunho { color: var(--muted); background: rgba(148, 157, 184, 0.12); border: 1px solid rgba(148, 157, 184, 0.3); }
.st-enviada { color: var(--accent-2); background: rgba(0, 194, 255, 0.12); border: 1px solid rgba(0, 194, 255, 0.3); }
.st-em_negociacao { color: var(--warn); background: rgba(255, 176, 60, 0.12); border: 1px solid rgba(255, 176, 60, 0.3); }
.st-aprovada { color: var(--success); background: rgba(61, 220, 150, 0.12); border: 1px solid rgba(61, 220, 150, 0.3); }
.st-recusada { color: var(--danger); background: rgba(255, 92, 92, 0.12); border: 1px solid rgba(255, 92, 92, 0.3); }
.st-expirada { color: var(--muted-2); background: rgba(148, 157, 184, 0.08); border: 1px dashed rgba(148, 157, 184, 0.4); }

/* ---------- Filters / toolbar ---------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar .search { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 9px; background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: 999px; padding: 9px 16px; }
.toolbar .search input { background: none; border: none; outline: none; color: var(--text); width: 100%; font-size: 0.9rem; }
.toolbar .search svg { width: 15px; height: 15px; stroke: var(--muted-2); fill: none; stroke-width: 2; stroke-linecap: round; }
.toolbar select { background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: 11px; color: var(--text); padding: 9px 14px; font-size: 0.85rem; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 64px 20px; }
.empty svg { width: 42px; height: 42px; stroke: var(--muted-2); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 14px; }
.empty h3 { font-size: 1.08rem; }
.empty p { color: var(--muted); font-size: 0.9rem; margin: 8px auto 18px; max-width: 400px; }

/* ---------- Wizard steps ---------- */
.steps { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; overflow-x: auto; }
.step-item { display: flex; align-items: center; gap: 8px; flex: none; }
.step-item .s-num { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; font-size: 0.76rem; font-weight: 700; background: var(--bg-soft); border: 1px solid var(--border-strong); color: var(--muted-2); }
.step-item .s-lbl { font-size: 0.8rem; color: var(--muted-2); font-weight: 600; white-space: nowrap; }
.step-item.active .s-num { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 5px 16px rgba(110, 91, 255, 0.4); }
.step-item.active .s-lbl { color: var(--text); }
.step-item.done .s-num { background: var(--grad-soft); border-color: rgba(110, 91, 255, 0.4); color: var(--accent-2); }
.step-line { width: 20px; height: 1px; background: var(--border-strong); flex: none; }
.step-panel { display: none; }
.step-panel.active { display: block; animation: fadeUp 0.25s ease; }
.step-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.step-actions .right { display: flex; gap: 10px; flex-wrap: wrap; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Scope items ---------- */
.scope-item { display: grid; grid-template-columns: 1.3fr 2fr 76px 118px 116px 36px; gap: 10px; align-items: center; margin-bottom: 10px; }
.scope-item input { width: 100%; background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: 10px; color: var(--text); padding: 10px 12px; font-size: 0.88rem; }
.scope-item input:focus { outline: none; border-color: var(--accent); }
.scope-item .s-total { font-family: var(--font-head); font-weight: 700; font-size: 0.88rem; text-align: right; white-space: nowrap; }
.scope-item .s-rm { background: none; border: none; color: var(--muted-2); padding: 5px; }
.scope-item .s-rm:hover { color: var(--danger); }
.scope-item .s-rm svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.scope-head { display: grid; grid-template-columns: 1.3fr 2fr 76px 118px 116px 36px; gap: 10px; padding-bottom: 6px; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted-2); font-weight: 700; }
@media (max-width: 900px) {
  .scope-head { display: none; }
  .scope-item { grid-template-columns: 1fr 1fr; }
  .scope-item .s-rm { grid-column: 1 / -1; justify-self: end; }
  .scope-item .s-total { grid-column: 1 / -1; text-align: right; }
}

/* ---------- Summary box ---------- */
.summary-box { background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: 13px; padding: 18px 20px; }
.summary-box .sb-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.summary-box .sb-row:last-of-type { border-bottom: none; }
.summary-box .sb-row .lbl { color: var(--muted-2); }
.summary-box .sb-row .val { font-weight: 600; text-align: right; }
.summary-box .sb-total { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; }

/* ---------- Client detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.detail-row:last-child { border-bottom: none; }
.detail-row .lbl { color: var(--muted-2); }
.detail-row .val { font-weight: 600; text-align: right; }

/* ---------- Perfil ---------- */
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .grid-2col { grid-template-columns: 1fr; } }
.avatar-upload { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.avatar-lg { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; box-shadow: 0 6px 20px rgba(110, 91, 255, 0.45); overflow: hidden; }
.avatar-lg img { width: 64px; height: 64px; object-fit: cover; }
.avatar-upload input[type="file"] { display: none; }

/* ---------- Resumo do cliente no wizard ---------- */
.client-summary .detail-row { border-bottom: none; padding: 6px 0; }

/* ---------- Charts ---------- */
.chart-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.chart-card h2 { font-size: 1.02rem; margin-bottom: 4px; }
.chart-card .sub { color: var(--muted-2); font-size: 0.8rem; margin-bottom: 16px; }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 160px 1fr 60px; gap: 12px; align-items: center; font-size: 0.85rem; }
.bar-row .b-lbl { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .b-track { background: var(--bg-soft); border-radius: 999px; height: 10px; overflow: hidden; }
.bar-row .b-fill { height: 100%; border-radius: 999px; background: var(--grad); min-width: 2px; transition: width 0.4s ease; }
.bar-row .b-val { text-align: right; font-family: var(--font-head); font-weight: 700; white-space: nowrap; }
.bars.h .bar-row { grid-template-columns: 1fr 90px; }
.bars.h .b-track { height: 26px; }
.bars.h .b-fill { display: flex; align-items: center; padding-left: 10px; color: #fff; font-size: 0.72rem; font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 0.78rem; color: var(--muted); }
.legend .lg { display: flex; align-items: center; gap: 6px; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; }

/* ---------- Login ---------- */
.login-view { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(700px 400px at 15% 0%, rgba(110, 91, 255, 0.14), transparent 60%), radial-gradient(600px 380px at 90% 100%, rgba(0, 194, 255, 0.1), transparent 60%); }
.login-card { width: min(420px, 100%); background: var(--card); border: 1px solid var(--border-strong); border-radius: 22px; padding: 38px 36px; box-shadow: var(--shadow); }
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.login-logo { width: 34px; height: 34px; border-radius: 9px; }
.login-name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.login-app { font-size: 0.62rem; letter-spacing: 0.18em; color: var(--accent-2); font-weight: 700; margin-left: 6px; }
.login-card h1 { font-size: 1.5rem; }
.login-sub { color: var(--muted); font-size: 0.88rem; margin: 10px 0 24px; }
.login-error { color: var(--danger); font-size: 0.84rem; min-height: 1.2em; margin-bottom: 10px; }
.login-hint { font-size: 0.76rem; color: var(--muted-2); margin-top: 18px; line-height: 1.55; border-top: 1px solid var(--border); padding-top: 14px; }
.login-forgot { margin-top: 14px; text-align: center; font-size: 0.84rem; }
.login-forgot a { color: var(--accent-2); font-weight: 600; }
.login-forgot a:hover { text-decoration: underline; }
.rc-question { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.rc-back { margin-top: 10px; }

/* ---------- Perfis de acesso / usuários ---------- */
.role-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--muted); }
.role-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.role-badge.role-master { color: var(--accent-2); border-color: rgba(0, 194, 255, 0.35); background: rgba(0, 194, 255, 0.08); }
.role-badge.role-adm { color: var(--warn); border-color: rgba(255, 176, 32, 0.35); background: rgba(255, 176, 32, 0.08); }
.role-select { padding: 7px 10px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--bg-soft); color: var(--text); font-size: 0.8rem; font-weight: 600; }
.rc-self { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-2); margin-left: 6px; }
.membros-list { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow-y: auto; margin-bottom: 14px; }
.membros-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft); cursor: pointer; }
.membros-item input { width: 16px; height: 16px; accent-color: var(--accent); flex: 0 0 auto; }
.membros-item span { display: flex; flex-direction: column; line-height: 1.25; }
.membros-item .sub { font-size: 0.78rem; color: var(--muted); }

/* ---------- Vídeos do site (Configurações) ---------- */
.video-admin-item { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); padding: 14px; margin-bottom: 12px; }
.video-admin-item:last-child { margin-bottom: 0; }
.video-admin-item .field-grid { margin-top: 10px; }
.video-admin-item label { font-size: 0.8rem; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(6, 8, 13, 0.7); backdrop-filter: blur(4px); z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal { width: min(560px, 100%); max-height: 88vh; overflow-y: auto; background: var(--card); border: 1px solid var(--border-strong); border-radius: 18px; box-shadow: var(--shadow); animation: fadeUp 0.2s ease; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--card); z-index: 2; }
.modal-head h3 { font-size: 1.05rem; }
.modal-body { padding: 20px 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; right: 24px; z-index: 120; max-width: min(360px, 90vw); background: var(--card-2); border: 1px solid var(--border-strong); border-radius: 13px; padding: 14px 16px; box-shadow: var(--shadow); display: none; gap: 11px; align-items: flex-start; }
.toast.show { display: flex; animation: fadeUp 0.25s ease; }
.toast .t-ic { width: 24px; height: 24px; border-radius: 8px; background: var(--grad-soft); display: grid; place-items: center; color: var(--accent-2); font-weight: 800; flex: none; }
.toast .t-title { font-weight: 700; font-size: 0.88rem; }
.toast .t-msg { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 640px) { .toast { right: 12px; bottom: 16px; } }

/* ---------- Documento (folha) ---------- */
.doc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.doc-sheet { max-width: 820px; margin: 0 auto; background: #ffffff; color: #10141f; border-radius: 4px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); overflow: hidden; font-size: 14px; line-height: 1.55; }
.doc-sheet a { color: #4f46e5; }
.doc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 34px 44px 26px; background: linear-gradient(120deg, #0d0f1a 0%, #171a2c 100%); color: #fff; }
.doc-head .dh-brand img { max-height: 44px; width: auto; }
.doc-head .dh-brand .dh-tag { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #8b93ff; margin-top: 8px; }
.doc-head .dh-meta { text-align: right; font-size: 12px; }
.doc-head .dh-meta .m-row { display: flex; justify-content: flex-end; gap: 10px; padding: 3px 0; }
.doc-head .dh-meta .m-row b { font-weight: 600; }
.doc-head .dh-meta .m-row span { color: rgba(255, 255, 255, 0.6); }
.doc-body { padding: 30px 44px 8px; }
.doc-body h3 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #6b7280; margin: 24px 0 8px; padding-bottom: 6px; border-bottom: 1px solid #ececf1; }
.doc-body h3:first-child { margin-top: 0; }
.doc-body p { margin-bottom: 8px; color: #232838; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.doc-grid .d-cell .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: #9ca3af; font-weight: 700; }
.doc-grid .d-cell .val { font-weight: 600; margin-top: 2px; }
.doc-table { width: 100%; border-collapse: collapse; margin: 8px 0 4px; }
.doc-table th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: #6b7280; border-bottom: 1px solid #d8dbe4; padding: 7px 8px; }
.doc-table td { padding: 9px 8px; border-bottom: 1px solid #ececf1; vertical-align: top; }
.doc-table td.num, .doc-table th.num { text-align: right; white-space: nowrap; }
.doc-total { margin-top: 14px; display: flex; justify-content: flex-end; }
.doc-total .t-box { min-width: 240px; border-radius: 10px; background: #f4f5f8; padding: 14px 18px; text-align: right; }
.doc-total .t-lbl { font-size: 11px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.08em; }
.doc-total .t-val { font-family: var(--font-head); font-size: 24px; font-weight: 700; }
.doc-foot { padding: 20px 44px 34px; }
.doc-foot .df-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 16px; }
.doc-foot .df-cell .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: #9ca3af; font-weight: 700; }
.doc-foot .df-cell .val { font-weight: 600; margin-top: 2px; font-size: 13px; }
.doc-foot .df-cell .val.small { font-weight: 400; color: #4b5563; }
.doc-sig { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.doc-sig .sig-line { border-top: 1px solid #c8ccd6; padding-top: 8px; font-size: 12px; color: #4b5563; text-align: center; }
@media print {
  body { background: #fff; }
  .sidebar, .topbar, .doc-actions, .toast { display: none !important; }
  .view { max-width: none; padding: 0; }
  .doc-sheet { box-shadow: none; margin: 0; border-radius: 0; }
  .doc-head { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* ---------- Utils ---------- */
.divider { height: 1px; background: var(--border); border: none; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.mb-0 { margin-bottom: 0; }
.nowrap { white-space: nowrap; }

/* ============================================================
   PERIVON ADM — Gestão Integrada (novos módulos)
   ============================================================ */

/* ---------- Grupos do menu lateral ---------- */
.sb-group { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); padding: 16px 12px 5px; }
body.nav-collapsed .sb-group { display: none; }

/* ---------- Bell de notificações ---------- */
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.tb-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--border-strong); background: var(--bg-soft); color: var(--muted); transition: all 0.14s ease; }
.tb-bell:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.28); }
.tb-bell svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bell-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 0.66rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 3px 10px rgba(255, 92, 92, 0.45); }
.bell-badge.hidden { display: none; }

/* ---------- Abas ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 5px; width: fit-content; }
.tab { padding: 8px 16px; border-radius: 9px; font-size: 0.85rem; font-weight: 600; color: var(--muted); transition: all 0.14s ease; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(110, 91, 255, 0.35); }

/* ---------- Filtros por dias / chips ---------- */
.filtros-dias { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg-soft); color: var(--muted); font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.14s ease; }
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.chip.active { background: var(--grad); border-color: transparent; color: #fff; }

/* ---------- Kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 10px; }
.kc-col { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 240px; }
.kc-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px 8px; font-weight: 700; font-size: 0.86rem; }
.kc-count { background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: 999px; padding: 2px 10px; font-size: 0.74rem; color: var(--muted-2); }
.kc-arrow-btn { display: flex; justify-content: flex-end; padding: 0 15px; }
.kc-sum { padding: 0 15px 8px; font-size: 0.76rem; color: var(--muted-2); font-weight: 600; }
.kc-body { padding: 6px 10px 12px; display: flex; flex-direction: column; gap: 9px; flex: 1; border-radius: 0 0 var(--radius) var(--radius); min-height: 60px; }
.kc-body.over { outline: 2px dashed var(--accent-2); outline-offset: -2px; border-radius: 12px; }
.kc-empty { text-align: center; color: var(--muted-2); font-size: 0.78rem; padding: 18px 8px; border: 1px dashed var(--border-strong); border-radius: 10px; }
.kc-card { background: var(--card); border: 1px solid var(--border-strong); border-radius: 12px; padding: 12px 13px; cursor: grab; transition: border-color 0.14s ease, transform 0.14s ease; }
.kc-card:hover { border-color: rgba(110, 91, 255, 0.5); transform: translateY(-1px); }
.kc-card.dragging { opacity: 0.45; }
.kc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.kc-top b { font-size: 0.86rem; line-height: 1.3; }
.kc-prob { font-size: 0.72rem; font-weight: 800; color: var(--accent-2); background: rgba(0, 194, 255, 0.12); border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.kc-sub { font-size: 0.78rem; color: var(--muted); margin-top: 3px; }
.kc-flag { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 0.7rem; font-weight: 700; color: var(--danger); background: rgba(255, 92, 92, 0.12); border-radius: 6px; padding: 3px 8px; }
.kc-flag svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }
.kc-val { font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; margin-top: 9px; }
.kc-row { font-size: 0.76rem; color: var(--muted-2); margin-top: 5px; }
.kc-row span { display: inline-flex; align-items: center; gap: 5px; }
.kc-row svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }
.kc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; border-top: 1px solid var(--border); padding-top: 8px; }
.kc-open { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--border-strong); background: var(--bg-soft); color: var(--muted); }
.kc-open svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.kc-open:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.kc-nav { display: flex; gap: 5px; }
.kc-arrow { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--border-strong); background: var(--bg-soft); color: var(--muted); cursor: pointer; }
.kc-arrow svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }
.kc-arrow:hover { color: var(--accent-2); border-color: rgba(0, 194, 255, 0.4); }

/* ---------- Progresso do pipeline (detalhe) ---------- */
.pipeline-progress { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.pp-step { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; flex: 0 0 auto; }
.pp-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 0.78rem; font-weight: 700; background: var(--bg-soft); border: 1px solid var(--border-strong); color: var(--muted-2); }
.pp-ic svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.pp-step.done .pp-ic { background: var(--grad-soft); border-color: rgba(110, 91, 255, 0.5); color: var(--accent-2); }
.pp-step.current .pp-ic { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 5px 14px rgba(110, 91, 255, 0.45); }
.pp-step.lost .pp-ic { background: rgba(255, 92, 92, 0.15); border-color: rgba(255, 92, 92, 0.5); color: var(--danger); }
.pp-lbl { font-size: 0.72rem; color: var(--muted-2); white-space: nowrap; }
.pp-step.done .pp-lbl, .pp-step.current .pp-lbl { color: var(--text); font-weight: 600; }
.pp-line { flex: 1 1 30px; height: 2px; background: var(--border-strong); min-width: 16px; margin: 0 6px; align-self: flex-start; margin-top: 14px; }
.pp-line.done { background: linear-gradient(120deg, rgba(110, 91, 255, 0.6), rgba(0, 194, 255, 0.6)); }

/* ---------- Barra de progresso ---------- */
.prog-wrap { width: 100%; max-width: 140px; height: 7px; border-radius: 999px; background: var(--bg-elev); border: 1px solid var(--border-strong); overflow: hidden; }
.prog-bar { height: 100%; border-radius: 999px; background: linear-gradient(120deg, #6e5bff, #00c2ff); }

/* ---------- Tarefas ---------- */
.task-row { display: flex; align-items: flex-start; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.task-row:last-child { border-bottom: none; }
.task-body { flex: 1; min-width: 0; }
.task-body b.done { text-decoration: line-through; color: var(--muted-2); }
.task-row .actions { display: flex; gap: 5px; flex: none; }
.task-row .actions button { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: 7px; border: 1px solid var(--border-strong); background: var(--bg-soft); color: var(--muted); cursor: pointer; }
.task-row .actions svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------- Checkbox customizado ---------- */
.check { display: inline-flex; align-items: center; cursor: pointer; }
.check input { display: none; }
.check span { width: 19px; height: 19px; border-radius: 6px; border: 2px solid var(--border-strong); background: var(--bg-soft); position: relative; transition: all 0.14s ease; flex: none; margin-top: 2px; }
.check input:checked + span { background: var(--grad); border-color: transparent; }
.check input:checked + span::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- Notificações ---------- */
.notif-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--border-strong); border-radius: 12px; margin-bottom: 9px; }
.notif-row.lida { opacity: 0.6; }
.notif-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); flex: none; margin-top: 7px; box-shadow: 0 0 10px rgba(0, 194, 255, 0.6); }
.notif-row.lida .notif-dot { background: var(--muted-2); box-shadow: none; }
.notif-body { flex: 1; min-width: 0; }
.notif-body p { color: var(--muted); font-size: 0.85rem; margin: 3px 0 5px; }
.notif-row .btn { flex: none; }

/* ---------- Fluxo financeiro ---------- */
.fluxo-chart { display: flex; gap: 18px; align-items: flex-end; padding: 18px 6px 6px; min-height: 220px; }
.fx-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 60px; }
.fx-bars { display: flex; align-items: flex-end; gap: 5px; height: 150px; width: 100%; justify-content: center; }
.fx-bar { width: 22px; border-radius: 6px 6px 2px 2px; min-height: 3px; transition: height 0.2s ease; }
.fx-bar.prev { background: linear-gradient(180deg, #6e5bff, #8b7dff); }
.fx-bar.rec { background: linear-gradient(180deg, #00c2ff, #2bd97c); }
.fx-mes { font-size: 0.76rem; font-weight: 700; color: var(--muted); }
.fx-val { font-size: 0.7rem; color: var(--muted-2); }
.fx-val.prev { color: #8b7dff; }
.fx-val.rec { color: var(--success); }
.fx-leg { display: flex; gap: 18px; margin-top: 14px; font-size: 0.78rem; color: var(--muted); }
.fx-leg span { display: inline-flex; align-items: center; gap: 7px; }
.fx-leg span::before { content: ""; width: 12px; height: 12px; border-radius: 3px; }
.fx-leg .prev::before { background: linear-gradient(180deg, #6e5bff, #8b7dff); }
.fx-leg .rec::before { background: linear-gradient(180deg, #00c2ff, #2bd97c); }

/* ---------- Caixa de assinatura ---------- */
.sig-box { border: 1px solid var(--border-strong); border-radius: 12px; padding: 16px; }
.sig-box.ok { border-color: rgba(43, 217, 124, 0.4); background: rgba(43, 217, 124, 0.07); }
.sig-box.pending { border-color: rgba(255, 176, 32, 0.4); background: rgba(255, 176, 32, 0.06); }
.sig-box p { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }

/* ---------- Status pills (novos domínios) ---------- */
.st-novo { color: var(--accent-2); background: rgba(0, 194, 255, 0.12); border: 1px solid rgba(0, 194, 255, 0.3); }
.st-em_contato { color: var(--warn); background: rgba(255, 176, 60, 0.12); border: 1px solid rgba(255, 176, 60, 0.3); }
.st-qualificado { color: var(--success); background: rgba(61, 220, 150, 0.12); border: 1px solid rgba(61, 220, 150, 0.3); }
.st-nao_qualificado { color: var(--muted-2); background: rgba(148, 157, 184, 0.1); border: 1px solid rgba(148, 157, 184, 0.3); }
.st-convertido { color: #8b7dff; background: rgba(139, 125, 255, 0.14); border: 1px solid rgba(139, 125, 255, 0.35); }
.st-contato, .st-diagnostico, .st-proposta, .st-negociacao { color: var(--warn); background: rgba(255, 176, 60, 0.12); border: 1px solid rgba(255, 176, 60, 0.3); }
.st-ganho { color: var(--success); background: rgba(61, 220, 150, 0.12); border: 1px solid rgba(61, 220, 150, 0.3); }
.st-perdido { color: var(--danger); background: rgba(255, 92, 92, 0.12); border: 1px solid rgba(255, 92, 92, 0.3); }
.st-em_elaboracao { color: var(--muted); background: rgba(148, 157, 184, 0.12); border: 1px solid rgba(148, 157, 184, 0.3); }
.st-enviado { color: var(--accent-2); background: rgba(0, 194, 255, 0.12); border: 1px solid rgba(0, 194, 255, 0.3); }
.st-assinado { color: var(--success); background: rgba(61, 220, 150, 0.12); border: 1px solid rgba(61, 220, 150, 0.3); }
.st-ativo { color: var(--success); background: rgba(61, 220, 150, 0.12); border: 1px solid rgba(61, 220, 150, 0.3); }
.st-encerrado { color: var(--muted-2); background: rgba(148, 157, 184, 0.1); border: 1px solid rgba(148, 157, 184, 0.3); }
.st-cancelado { color: var(--muted-2); background: rgba(148, 157, 184, 0.08); border: 1px dashed rgba(148, 157, 184, 0.4); }
.st-planejamento { color: var(--muted); background: rgba(148, 157, 184, 0.12); border: 1px solid rgba(148, 157, 184, 0.3); }
.st-em_andamento { color: var(--accent-2); background: rgba(0, 194, 255, 0.12); border: 1px solid rgba(0, 194, 255, 0.3); }
.st-aguardando_cliente { color: var(--warn); background: rgba(255, 176, 60, 0.12); border: 1px solid rgba(255, 176, 60, 0.3); }
.st-concluido { color: var(--success); background: rgba(61, 220, 150, 0.12); border: 1px solid rgba(61, 220, 150, 0.3); }
.st-atrasado { color: var(--danger); background: rgba(255, 92, 92, 0.12); border: 1px solid rgba(255, 92, 92, 0.3); }
.st-pendente { color: var(--warn); background: rgba(255, 176, 60, 0.12); border: 1px solid rgba(255, 176, 60, 0.3); }
.st-pago { color: var(--success); background: rgba(61, 220, 150, 0.12); border: 1px solid rgba(61, 220, 150, 0.3); }
.st-parcial { color: var(--accent-2); background: rgba(0, 194, 255, 0.12); border: 1px solid rgba(0, 194, 255, 0.3); }
.st-vencido { color: var(--danger); background: rgba(255, 92, 92, 0.12); border: 1px solid rgba(255, 92, 92, 0.3); }
.st-baixa { color: var(--muted); background: rgba(148, 157, 184, 0.12); border: 1px solid rgba(148, 157, 184, 0.3); }
.st-media { color: var(--accent-2); background: rgba(0, 194, 255, 0.12); border: 1px solid rgba(0, 194, 255, 0.3); }
.st-alta { color: var(--warn); background: rgba(255, 176, 60, 0.12); border: 1px solid rgba(255, 176, 60, 0.3); }
.st-urgente { color: var(--danger); background: rgba(255, 92, 92, 0.12); border: 1px solid rgba(255, 92, 92, 0.3); }

/* ---------- Responsivo: kanban e grid ---------- */
@media (max-width: 980px) {
  .kanban { grid-template-columns: 1fr; }
  .kc-body { overflow-x: auto; flex-direction: row; }
  .kc-body .kc-card { min-width: 240px; }
}
@media (max-width: 760px) {
  .field-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
}

.st-erro { color: var(--danger); background: rgba(255, 92, 92, 0.12); border: 1px solid rgba(255, 92, 92, 0.3); }

/* ============================================================
   PERIVON ADM — Agenda / Calendário
   ============================================================ */
.agt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 18px; align-items: start; }
.agt-layout-lista { max-width: 860px; }
@media (max-width: 1000px) { .agt-layout { grid-template-columns: 1fr; } }

.agt-tabs { display: inline-flex; gap: 4px; background: var(--bg-soft); border: 1px solid var(--border); padding: 4px; border-radius: 12px; }
.agt-tab { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 600; font-size: 0.85rem; cursor: pointer; font-family: var(--font-body); }
.agt-tab .ico { width: 15px; height: 15px; }
.agt-tab.on { background: var(--grad); color: #fff; }
.agt-showconcl { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: 0.85rem; color: var(--muted); cursor: pointer; }
.agt-showconcl input { accent-color: var(--accent); }

.agt-panel { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.agt-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.agt-cal-nav { display: inline-flex; align-items: center; gap: 8px; }
.agt-cal-title { font-family: var(--font-head); font-size: 1.02rem; min-width: 168px; text-align: center; }
.agt-cal-nav .btn { padding: 6px 11px; }

.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); font-weight: 700; text-align: center; padding: 2px 0 6px; }
.cal-cell { min-height: 76px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 10px; padding: 5px 6px; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; overflow: hidden; }
.cal-cell:hover { border-color: var(--accent); }
.cal-cell.out { opacity: 0.35; pointer-events: none; }
.cal-cell.sel { outline: 2px solid var(--accent-2); outline-offset: 0; }
.cal-num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-size: 0.78rem; font-weight: 700; color: var(--text); }
.cal-cell.today .cal-num { background: var(--grad); color: #fff; }
.cal-chips { display: flex; flex-direction: column; gap: 3px; margin-top: 3px; }
.cal-chip { display: block; font-size: 0.64rem; line-height: 1.2; color: var(--text); background: var(--bg-soft); border-left: 3px solid var(--tc, var(--muted-2)); border-radius: 5px; padding: 2px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-chip-more { color: var(--muted); font-weight: 700; }
@media (max-width: 620px) {
  .cal-cell { min-height: 54px; }
  .cal-chips .cal-chip { display: none; }
  .cal-chips .cal-chip:first-child, .cal-chips .cal-chip-more { display: block; }
}

.agt-day-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.agt-eyebrow { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); font-weight: 700; }
.agt-day-head h3 { font-size: 1.02rem; }
.agt-empty { padding: 22px 4px; color: var(--muted); font-size: 0.9rem; }

.agt-sec { margin-bottom: 20px; }
.agt-sec-head { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; }
.agt-sec-head h3 { font-size: 0.95rem; }
.agt-count { font-size: 0.72rem; background: var(--bg-elev); border: 1px solid var(--border); padding: 2px 9px; border-radius: 999px; color: var(--muted); font-weight: 700; }

.agt-row { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--border); border-left: 3px solid var(--tc, var(--muted-2)); background: var(--bg-elev); border-radius: 12px; margin-bottom: 8px; }
.agt-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: 0 0 10px var(--tc, transparent); }
.agt-main { flex: 1; min-width: 0; }
.agt-main b { display: block; font-size: 0.87rem; line-height: 1.35; }
.agt-meta { display: block; color: var(--muted); font-size: 0.76rem; margin-top: 3px; }
.agt-data { flex: none; color: var(--muted-2); font-size: 0.76rem; white-space: nowrap; }
.agt-row.is-done { opacity: 0.55; }
.agt-row.is-done .agt-main b { text-decoration: line-through; }
.agt-row-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.agt-row-actions .btn { padding: 5px 9px; font-size: 0.76rem; }
.agt-row-actions .ico { width: 13px; height: 13px; }

.agt-pill { display: inline-block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; margin-right: 4px; }
.agt-pill-danger { color: var(--danger); background: rgba(255, 92, 92, 0.12); }
.agt-pill-auto { color: var(--accent-2); background: rgba(0, 194, 255, 0.1); }

.agt-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; border-top: 1px solid var(--border); margin-top: 14px; padding-top: 12px; }
.agt-legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: 0.76rem; color: var(--muted); }

/* ============================================================
   SOLUÇÕES PERIVON — vitrine de demonstrações
   Conteúdo de apresentação (dados fictícios) dentro do painel.
   ============================================================ */
.vit .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pv-orange); }
.vit .eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pv-orange); box-shadow: 0 0 12px var(--pv-orange); }
.vit-crumb { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.vit-crumb a { color: var(--muted); font-size: 0.86rem; display: inline-flex; align-items: center; gap: 6px; transition: color .15s; }
.vit-crumb a:hover { color: var(--pv-orange); }
.vit-crumb a svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vit-crumb .sep { color: var(--muted-2); }

/* ---------- Hero / menu principal ---------- */
.vit-hero { position: relative; overflow: hidden; background: linear-gradient(150deg, rgba(110, 91, 255, 0.22), rgba(0, 194, 255, 0.08) 55%, rgba(255, 138, 60, 0.12)); border: 1px solid var(--border-strong); border-radius: 20px; padding: clamp(22px, 4vw, 38px); margin-bottom: 22px; }
.vit-hero::after { content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 138, 60, 0.18), transparent 65%); pointer-events: none; }
.vit-hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 10px 0 6px; letter-spacing: -0.02em; }
.vit-hero h1 .hl { background: linear-gradient(120deg, var(--pv-orange) 0%, #ffc489 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vit-hero .lead { color: var(--text); font-size: clamp(1rem, 2vw, 1.15rem); font-weight: 500; max-width: 860px; margin-top: 10px; }
.vit-hero .lead b { color: var(--pv-orange); font-weight: 700; }
.vit-hero .sub-note { color: var(--muted); max-width: 760px; margin-top: 8px; font-size: 0.9rem; }
.vit-hero .vit-hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.vit-hero .vit-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; position: relative; z-index: 1; }
.vit-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 0.76rem; color: var(--muted); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; }
.vit-badge svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vit-badge b { color: var(--text); font-weight: 600; }

.btn-pv-orange { background: var(--pv-orange-grad); color: #fff; border-color: transparent; box-shadow: 0 8px 26px rgba(255, 138, 60, 0.35); }
.btn-pv-orange:hover { box-shadow: 0 12px 34px rgba(255, 138, 60, 0.5); }

.vit-hint { margin: 2px 0 18px; color: var(--muted); font-size: 0.9rem; }

/* ---------- Cards de categoria (menu) ---------- */
.vit-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 14px; margin: 6px 0 8px; }
.vit-cat { position: relative; text-align: left; cursor: pointer; border: 1px solid var(--border); background: var(--card); border-radius: 18px; padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; transition: transform .16s, border-color .16s, box-shadow .16s; overflow: hidden; }
.vit-cat:hover { transform: translateY(-3px); border-color: rgba(255, 138, 60, 0.5); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); }
.vit-cat .vc-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--pv-orange); background: var(--pv-orange-soft); flex: none; }
.vit-cat.violet .vc-ic { color: #a99dff; background: rgba(110, 91, 255, 0.18); }
.vit-cat.cyan .vc-ic { color: #7fdfff; background: rgba(0, 194, 255, 0.14); }
.vit-cat.green .vc-ic { color: #7fe6ae; background: rgba(43, 217, 124, 0.14); }
.vit-cat .vc-ic svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vit-cat h3 { font-size: 1.02rem; }
.vit-cat .vc-count { font-size: 0.72rem; color: var(--pv-orange); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.vit-cat p { color: var(--muted); font-size: 0.84rem; margin: 0; flex: 1; }
.vit-cat .vc-go { font-size: 0.84rem; font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.vit-cat .vc-go svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vit-cat:hover .vc-go { color: var(--pv-orange); }

/* ---------- Galleries (cards de solução) ---------- */
.vit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 4px; }
.vit-card { border: 1px solid var(--border); background: var(--card); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .16s, border-color .16s, box-shadow .16s; }
.vit-card:hover { transform: translateY(-3px); border-color: rgba(110, 91, 255, 0.45); box-shadow: 0 20px 46px rgba(0, 0, 0, 0.42); }
.vit-card .vc-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.vit-card .vc-body h3 { font-size: 1.08rem; display: flex; align-items: center; gap: 9px; }
.vit-card .vc-body h3 .mini-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--pv-orange-soft); color: var(--pv-orange); display: grid; place-items: center; flex: none; }
.vit-card .vc-body h3 .mini-ic svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vit-card .vc-kicker { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pv-orange); }
.vit-card .vc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.vit-card p { color: var(--muted); font-size: 0.86rem; flex: 1; }
.vit-card .vc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.vit-card .vc-sim { font-size: 0.66rem; color: var(--muted-2); display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }

.vit-mini { height: 120px; position: relative; overflow: hidden; border-bottom: 1px solid var(--border); background: linear-gradient(160deg, rgba(110, 91, 255, 0.12), rgba(255, 138, 60, 0.1)); padding: 14px 16px; display: flex; gap: 12px; }
.vit-mini .vm-left { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.vit-mini .vm-k { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.12); }
.vit-mini .vm-k.k1 { width: 42%; background: var(--pv-orange); opacity: .85; }
.vit-mini .vm-k.k2 { width: 70%; }
.vit-mini .vm-k.k3 { width: 58%; }
.vit-mini .vm-bars { display: flex; align-items: flex-end; gap: 5px; height: 46px; margin-top: 4px; }
.vit-mini .vm-bars i { width: 10px; border-radius: 4px 4px 0 0; background: var(--grad); min-height: 5px; }
.vit-mini .vm-bars i.hot { background: var(--pv-orange-grad); }
.vit-mini .vm-phone { width: 62px; flex: none; align-self: center; border-radius: 10px; background: #fff; color: #0b0f1a; height: 88px; position: relative; }
.vit-mini .vm-chat { flex: 1; display: flex; flex-direction: column; gap: 5px; justify-content: center; }
.vit-mini .vm-chat i { height: 9px; border-radius: 6px; background: rgba(255, 255, 255, 0.16); }
.vit-mini .vm-chat i.u { align-self: flex-end; width: 55%; background: var(--pv-orange-soft); border: 1px solid rgba(255, 138, 60, 0.4); }
.vit-mini .vm-chat i.a { width: 80%; }
.vit-mini .vm-case { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 100%; }
.vit-mini .vm-case .vm-ctx { height: 7px; border-radius: 5px; width: 30%; background: var(--pv-orange); }
.vit-mini .vm-case .vm-tl { display: flex; flex-direction: column; gap: 4px; }
.vit-mini .vm-case .vm-tl i { height: 7px; border-radius: 5px; background: rgba(255, 255, 255, 0.16); }
.vit-mini .vm-tag { position: absolute; top: 10px; right: 12px; font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); background: rgba(255, 255, 255, 0.05); padding: 2px 8px; border-radius: 999px; }

/* ---------- Página individual ---------- */
.vit-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.vit-header h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.vit-header .vit-kicker { color: var(--pv-orange); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; }
.vit-lead { color: var(--muted); font-size: 1.02rem; max-width: 860px; margin-bottom: 20px; }
.vit-lead b { color: var(--text); }
.vit-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; color: var(--text); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-strong); border-radius: 999px; padding: 5px 11px; }
.vit-chip svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.vit-chip.warn { color: #ffc489; border-color: rgba(255, 138, 60, 0.45); background: var(--pv-orange-soft); }
.vit-chips { display: flex; flex-wrap: wrap; gap: 7px; }

.vit-sec { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; margin-top: 18px; }
.vit-sec-title { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.vit-sec-title .num { width: 28px; height: 28px; flex: none; border-radius: 9px; background: var(--pv-orange-soft); color: var(--pv-orange); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; }
.vit-sec-title h2 { font-size: 1.14rem; }
.vit-sec .psub { color: var(--muted); font-size: 0.9rem; }

.vit-stage-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vit-stage-label b { color: var(--pv-orange); font-weight: 700; }

.vit-cta { position: relative; overflow: hidden; margin-top: 22px; border: 1px solid rgba(255, 138, 60, 0.35); background: linear-gradient(130deg, rgba(255, 138, 60, 0.12), rgba(110, 91, 255, 0.14)); border-radius: var(--radius); padding: clamp(20px, 4vw, 28px); }
.vit-cta h3 { font-size: 1.2rem; margin-bottom: 4px; }
.vit-cta p { color: var(--muted); font-size: 0.92rem; max-width: 700px; }
.vit-cta .buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.vit-cta .mini { margin-top: 12px; font-size: 0.76rem; color: var(--muted-2); }

.vit-final { text-align: center; margin-top: 26px; border: 1px solid var(--border-strong); background: linear-gradient(160deg, rgba(110, 91, 255, 0.16), rgba(0, 194, 255, 0.06) 60%, rgba(255, 138, 60, 0.1)); border-radius: 20px; padding: clamp(24px, 5vw, 44px); position: relative; overflow: hidden; }
.vit-final::before { content: ""; position: absolute; left: 50%; transform: translateX(-50%); top: -90px; width: 300px; height: 180px; background: radial-gradient(circle, rgba(255, 138, 60, 0.22), transparent 70%); }
.vit-final h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); max-width: 760px; margin: 0 auto; }
.vit-final h2 .hl { background: var(--pv-orange-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vit-final p { color: var(--muted); max-width: 720px; margin: 12px auto 0; font-size: 0.98rem; }
.vit-final .buttons { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

.vit-section-flag { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: #f5b07e; background: var(--pv-orange-soft); border: 1px solid rgba(255, 138, 60, 0.4); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.vit-section-flag svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Preview frames (telas SaaS, tema claro) ---------- */
.pv { --pvl: #6e6f78; --pvt: #1c212e; --pvln: #e6e9f0; background: #f3f5fa; color: var(--pvt); border: 1px solid var(--border-strong); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.pv * { box-sizing: border-box; }
.pv-chrome { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: #0d1220; }
.pv-chrome .pv-dots { display: flex; gap: 6px; }
.pv-chrome .pv-dots i { width: 10px; height: 10px; border-radius: 50%; }
.pv-chrome .pv-dots i:nth-child(1) { background: #ff5f57; }
.pv-chrome .pv-dots i:nth-child(2) { background: #febc2e; }
.pv-chrome .pv-dots i:nth-child(3) { background: #28c840; }
.pv-chrome .pv-url { flex: 1; background: rgba(255, 255, 255, 0.06); border-radius: 7px; color: rgba(255, 255, 255, 0.55); font-size: 0.72rem; padding: 4px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
.pv-chrome .pv-brand { color: rgba(255, 255, 255, 0.75); font-family: var(--font-head); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.05em; display: inline-flex; align-items: center; gap: 6px; }
.pv-chrome .pv-brand i { width: 6px; height: 6px; border-radius: 50%; background: var(--pv-orange); box-shadow: 0 0 8px var(--pv-orange); }
.pv-chrome .pv-sim { font-size: 0.62rem; color: rgba(255, 255, 255, 0.5); border: 1px solid rgba(255, 255, 255, 0.18); padding: 2px 8px; border-radius: 999px; }
.pv-body { padding: 18px; }
.pv-body h4, .pv-body h5, .pv-body p { color: var(--pvt); }
.pv-body .pv-muted { color: var(--pvl); }
.pv-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pv-toolbar h4 { font-size: 1rem; }
.pv-toolbar .pv-sub { color: var(--pvl); font-size: 0.76rem; }
.pv-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.pv-filter span { font-size: 0.72rem; font-weight: 600; color: #7c7f8b; background: #fff; border: 1px solid var(--pvln); border-radius: 999px; padding: 4px 11px; cursor: pointer; }
.pv-filter span.on { color: #fff; background: #4b3ff0; border-color: #4b3ff0; }
.pv-filter span.on.pv-o { background: var(--pv-orange-deep); border-color: var(--pv-orange-deep); }
.pv-date { font-size: 0.74rem; color: var(--pvl); border: 1px solid var(--pvln); background: #fff; border-radius: 8px; padding: 4px 10px; display: inline-flex; align-items: center; gap: 6px; }
.pv-date svg { width: 12px; height: 12px; stroke: #7c7f8b; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.pv-k { background: #fff; border: 1px solid var(--pvln); border-radius: 12px; padding: 13px 15px; }
.pv-k .kl { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pvl); }
.pv-k .kv { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; margin-top: 3px; color: var(--pvt); }
.pv-k .kd { font-size: 0.7rem; font-weight: 700; margin-top: 3px; display: inline-flex; align-items: center; gap: 4px; }
.pv-k .kd svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pv-up { color: #15803d; }
.pv-bad { color: #dc2626; }
.pv-neu { color: #7c7f8b; }
.pv-cols { display: grid; grid-template-columns: 1fr 300px; gap: 14px; margin-top: 14px; }
.pv-card { background: #fff; border: 1px solid var(--pvln); border-radius: 12px; padding: 13px 15px; }
.pv-card h5 { font-size: 0.78rem; color: var(--pvl); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pv-card h5 .pv-lk { color: #4b3ff0; font-weight: 700; letter-spacing: 0; text-transform: none; cursor: pointer; font-size: 0.7rem; }
.pv-card h5 .pv-lk.pv-o { color: var(--pv-orange-deep); }
.pv-bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 8px; }
.pv-bar-g { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.pv-bar-g .pv-bar-tr { display: flex; align-items: flex-end; gap: 3px; width: 100%; justify-content: center; flex: 1; }
.pv-bar-g .pv-bar-tr i { width: 11px; border-radius: 4px 4px 0 0; min-height: 3px; }
.pv-bar-g .pv-bar-lbl { font-size: 0.62rem; color: var(--pvl); }
.pv-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.pv-legend span { font-size: 0.7rem; color: var(--pvl); display: inline-flex; align-items: center; gap: 6px; }
.pv-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.pv-donut-wrap { display: flex; align-items: center; gap: 14px; }
.pv-donut { position: relative; width: 100px; height: 100px; border-radius: 50%; flex: none; }
.pv-donut::after { content: ""; position: absolute; inset: 16px; background: #fff; border-radius: 50%; }
.pv-donut .pv-donut-c { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; text-align: center; }
.pv-donut .pv-donut-c b { display: block; font-family: var(--font-head); font-size: 1rem; color: var(--pvt); }
.pv-donut .pv-donut-c span { font-size: 0.58rem; color: var(--pvl); text-transform: uppercase; letter-spacing: 0.05em; }
.pv-dl { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.pv-dl li { display: flex; align-items: center; gap: 7px; font-size: 0.72rem; color: var(--pvl); }
.pv-dl li i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.pv-dl li b { color: var(--pvt); font-weight: 700; margin-left: auto; }
.pv-tbl { width: 100%; border-collapse: collapse; font-size: 0.76rem; }
.pv-tbl th { text-align: left; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pvl); padding: 5px 8px; border-bottom: 1px solid var(--pvln); font-weight: 700; }
.pv-tbl td { padding: 7px 8px; border-bottom: 1px solid #f1f3f8; color: var(--pvt); white-space: nowrap; }
.pv-tbl td.pv-muted { color: var(--pvl); }
.pv-tbl tr:last-child td { border-bottom: none; }
.pv-pill { display: inline-block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.03em; border-radius: 999px; padding: 2px 8px; }
.pv-pill.pv-g { color: #15803d; background: #ecfdf3; }
.pv-pill.pv-y { color: #b45309; background: #fef3c7; }
.pv-pill.pv-r { color: #b91c1c; background: #fee2e2; }
.pv-pill.pv-b { color: #4338ca; background: #eef2ff; }
.pv-pill.pv-o { color: #c2410c; background: #ffedd5; }
.pv-ins { border: 1px solid #ffdfc2; background: #fff8f2; border-radius: 12px; padding: 13px 15px; }
.pv-ins .pv-ins-k { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pv-orange-deep); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.pv-ins .pv-ins-k svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-ins p { font-size: 0.82rem; line-height: 1.5; color: #4b1f05; margin: 0; }
.pv-ins p b { color: #c2410c; }
.pv-empty-box { border: 1px dashed var(--pvln); border-radius: 12px; background: #fff; color: var(--pvl); font-size: 0.78rem; padding: 26px 16px; text-align: center; }
@media (max-width: 980px) { .pv-cols { grid-template-columns: 1fr; } .pv-side { display: grid; grid-template-columns: 1fr; gap: 12px; } }

/* telas de aplicativo (mock mobile) */
.pv-phone-shell { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; align-items: flex-start; }
.pv-phone { width: 252px; background: #0c101c; border-radius: 26px; padding: 9px; box-shadow: 0 22px 44px rgba(12, 16, 28, 0.4); border: 1px solid #2a3247; }
.pv-phone .pv-ph { background: #f2f4f9; border-radius: 18px; overflow: hidden; }
.pv-ph-top { background: #171d31; color: #fff; padding: 13px 14px 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pv-ph-top h6 { color: #fff; font-size: 0.8rem; font-weight: 700; }
.pv-ph-top .pv-ph-sub { color: rgba(255, 255, 255, 0.55); font-size: 0.66rem; margin-top: 2px; }
.pv-ph-top .pv-ava { width: 24px; height: 24px; border-radius: 50%; background: var(--pv-orange-grad); flex: none; }
.pv-ph-bell { width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); display: grid; place-items: center; }
.pv-ph-bell svg { width: 12px; height: 12px; stroke: rgba(255, 255, 255, 0.7); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-ph-body { padding: 11px; display: flex; flex-direction: column; gap: 9px; max-height: 330px; overflow: hidden; }
.pv-ph-card { background: #fff; border: 1px solid #e4e7ef; border-radius: 12px; padding: 10px 12px; }
.pv-ph-card .ph-kt { font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; color: #9aa0ad; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.pv-ph-card h6 { color: #141a28; font-size: 0.8rem; margin-top: 4px; line-height: 1.3; }
.pv-ph-card .ph-line { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 0.68rem; color: #6c7280; }
.pv-ph-card .ph-line svg { width: 11px; height: 11px; stroke: #9aa0ad; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pv-ph-card .ph-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.pv-ph-steps { display: flex; gap: 4px; align-items: center; margin-top: 9px; }
.pv-ph-steps i { height: 4px; border-radius: 4px; background: #e4e7ef; flex: 1; }
.pv-ph-steps i.on { background: var(--pv-orange); }
.pv-ph-steps span { font-size: 0.6rem; color: #9aa0ad; }
.pv-ph-nav { display: flex; justify-content: space-around; padding: 8px 10px 10px; background: #fff; border-top: 1px solid #e4e7ef; }
.pv-ph-nav svg { width: 16px; height: 16px; stroke: #b6bcc9; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-ph-nav i.on { stroke: #4b3ff0; }
.pv-ph-nav i.on.pv-o { stroke: var(--pv-orange-deep); }
.pv-ph-fab { position: absolute; right: 14px; bottom: 58px; width: 38px; height: 38px; border-radius: 50%; background: var(--pv-orange-grad); box-shadow: 0 8px 18px rgba(255, 138, 60, 0.45); display: grid; place-items: center; color: #fff; }
.pv-ph-fab svg { width: 17px; height: 17px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pv-ph-pic { height: 54px; border-radius: 10px; background: linear-gradient(130deg, #cfe2ff, #e8eefc 55%, #ffe1c8); margin-top: 8px; display: grid; place-items: center; color: #7c8db0; font-size: 0.62rem; }
.pv-check-row { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 0.75rem; color: #141a28; cursor: pointer; }
.pv-check-row input { display: none; }
.pv-check-row .cbox { width: 17px; height: 17px; border-radius: 5px; border: 2px solid #ccd1dc; display: grid; place-items: center; flex: none; transition: all .15s; }
.pv-check-row .cbox svg { width: 11px; height: 11px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.pv-check-row.on .cbox { background: #2fbf6a; border-color: #2fbf6a; }
.pv-check-row.on .cbox svg { opacity: 1; }
.pv-check-row.on .cl { color: #9aa0ad; text-decoration: line-through; }
.pv-progress { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.pv-progress i { flex: 1; height: 5px; border-radius: 5px; background: #e4e7ef; overflow: hidden; position: relative; }
.pv-progress i::after { content: ""; position: absolute; inset: 0; background: var(--pv-orange-grad); width: var(--w, 0%); border-radius: 5px; }
.pv-progress b { font-size: 0.66rem; color: #6c7280; }

/* chat / IA */
.pv-chat { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.pv-m { display: flex; gap: 9px; max-width: 92%; }
.pv-m .pva { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; background: linear-gradient(130deg, #ff8a3c, #ffb45e); color: #fff; font-weight: 800; font-size: 0.7rem; font-family: var(--font-head); }
.pv-m .pvb { background: #fff; border: 1px solid var(--pvln); border-radius: 4px 12px 12px 12px; padding: 10px 13px; font-size: 0.82rem; line-height: 1.5; box-shadow: 0 6px 16px rgba(20, 24, 40, 0.05); }
.pv-m.user { align-self: flex-end; flex-direction: row-reverse; }
.pv-m.user .pva { background: #4b3ff0; }
.pv-m.user .pvb { background: #4b3ff0; color: #fff; border-radius: 12px 4px 12px 12px; border: none; }
.pv-m .pvb b { font-weight: 700; }
.pv-qa-k { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pv-orange-deep); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.pv-qa-k svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-ai-list { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.pv-ai-list li { display: flex; gap: 8px; font-size: 0.8rem; color: #33384a; }
.pv-ai-list li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--pv-orange); margin-top: 7px; flex: none; }
.pv-ai-note { font-size: 0.74rem; color: #8a6a45; background: #fff6ee; border: 1px solid #ffe3c6; border-radius: 9px; padding: 8px 11px; margin-top: 7px; }
.pv-ai-note b { color: #c2410c; }
.pv-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.pv-chips button { font-size: 0.74rem; font-weight: 600; color: #3b3fd0; background: #fff; border: 1px solid #d6d9f5; border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: all .15s; }
.pv-chips button:hover { background: #eeefff; }
.pv-chips button .ch-ic { margin-right: 4px; }
.pv-typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.pv-typing i { width: 6px; height: 6px; border-radius: 50%; background: #c9cdd9; animation: pvblink 1.1s infinite; }
.pv-typing i:nth-child(2) { animation-delay: .2s; }
.pv-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes pvblink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

/* diagnóstico IA (stepper) */
.pv-diag { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--pvln); border-radius: 14px; padding: 16px; }
.pv-dhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.pv-dhead .pv-dtitle { font-size: 0.8rem; font-weight: 700; color: var(--pvt); display: flex; align-items: center; gap: 8px; }
.pv-dhead .pv-dtitle svg { width: 15px; height: 15px; stroke: var(--pv-orange-deep); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-dsteps { display: flex; gap: 5px; align-items: center; }
.pv-dsteps i { width: 16px; height: 5px; border-radius: 5px; background: #e3e6ef; }
.pv-dsteps i.on { background: var(--pv-orange); }
.pv-dsteps i.done { background: #2fbf6a; }
.pv-dsteps span { font-size: 0.66rem; color: var(--pvl); }
.pv-q { font-size: 1rem; font-weight: 700; color: var(--pvt); margin-bottom: 4px; }
.pv-q-sub { font-size: 0.78rem; color: var(--pvl); margin-bottom: 12px; }
.pv-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pv-opt { text-align: left; display: flex; align-items: center; gap: 9px; border: 1px solid #e2e5ee; background: #fafbfe; border-radius: 11px; padding: 11px 12px; cursor: pointer; transition: all .14s; font-size: 0.8rem; color: var(--pvt); font-weight: 600; }
.pv-opt:hover { border-color: var(--pv-orange); background: #fff7f0; }
.pv-opt .po-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #cfd4e0; }
.pv-opt[data-s="ok"] .po-dot { background: #2fbf6a; }
.pv-opt[data-s="atencao"] .po-dot { background: var(--pv-orange); }
.pv-opt[data-s="risco"] .po-dot { background: #ef4444; }
.pv-res { border-top: 1px dashed #e7c8ab; margin-top: 14px; padding-top: 14px; }
.pv-res .pr-k { display: flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pv-orange-deep); margin-bottom: 8px; }
.pv-res .pr-k svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-res-item { display: flex; align-items: flex-start; gap: 10px; border: 1px solid #efe3d6; background: #fffdf9; border-radius: 11px; padding: 10px 12px; margin-bottom: 8px; }
.pv-res-item .ri-ic { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; color: var(--pv-orange-deep); background: #ffedd5; }
.pv-res-item .ri-ic svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pv-res-item h6 { font-size: 0.86rem; color: var(--pvt); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pv-res-item .ri-meta { font-size: 0.72rem; color: var(--pvl); }
.pv-res-item .ri-note { font-size: 0.74rem; color: #33384a; margin-top: 3px; line-height: 1.45; }
.pv-btn-o { font-size: 0.78rem; font-weight: 700; color: #fff; background: var(--pv-orange-deep); border: none; border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.pv-btn-o:hover { background: #e85f0a; }
.pv-btn-line { font-size: 0.76rem; color: #7c7f8b; background: none; border: 1px solid #e0e3ec; border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.pv-dfin { font-size: 0.8rem; color: var(--pvt); background: #f0f7ff; border: 1px solid #d6e6fa; border-radius: 11px; padding: 11px 13px; }
.pv-dfin b { color: #1d4ed8; }

/* cases */
.pv-case { display: flex; flex-direction: column; gap: 12px; }
.pv-case-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid var(--pvln); border-radius: 12px; padding: 12px 15px; }
.pv-case-head h4 { font-size: 1rem; }
.pv-case-head .pv-muted { font-size: 0.72rem; }
.pv-cseg { font-size: 0.64rem; letter-spacing: 0.09em; text-transform: uppercase; font-weight: 700; color: #4b3ff0; background: #eef2ff; border-radius: 999px; padding: 3px 10px; }
.pv-quote { border-left: 4px solid var(--pv-orange); background: #fff; border-radius: 0 12px 12px 0; padding: 13px 15px; font-size: 0.88rem; line-height: 1.55; color: #3a4152; box-shadow: 0 4px 12px rgba(20, 24, 40, 0.05); }
.pv-quote b { color: #1c212e; }
.pv-bullets { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.pv-bullets li { display: flex; gap: 9px; font-size: 0.82rem; color: #33384a; line-height: 1.5; }
.pv-bullets li::before { content: "✓"; color: #2fbf6a; font-weight: 800; flex: none; }
.pv-combo { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-combo span { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid #ead9c9; border-radius: 999px; padding: 7px 13px; font-size: 0.78rem; font-weight: 700; color: #3a4152; }
.pv-combo span svg { width: 13px; height: 13px; stroke: var(--pv-orange-deep); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-case-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.pv-cm { background: #fff; border: 1px solid var(--pvln); border-radius: 12px; padding: 12px 14px; }
.pv-cm b { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--pvt); }
.pv-cm span { font-size: 0.72rem; color: var(--pvl); line-height: 1.35; display: block; margin-top: 2px; }
.pv-cm .pv-k { padding: 0; border: none; }

/* modais do vitrine */
.vit-lead { color: var(--muted); font-size: 0.88rem; margin-bottom: 14px; }
.vit-lead b { color: var(--text); }
.vit-preview-note { display: flex; align-items: center; gap: 7px; font-size: 0.72rem; color: var(--muted-2); margin-top: 10px; }
.vit-preview-note svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* estado vazio / lista de itens simples */
.vit-simple-list { display: grid; gap: 8px; }
.vit-simple-item { display: flex; gap: 10px; align-items: flex-start; font-size: 0.86rem; color: var(--text); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 10px; padding: 10px 13px; }
.vit-simple-item svg { width: 15px; height: 15px; flex: none; margin-top: 3px; stroke: var(--pv-orange); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vit-simple-item .vs-meta { color: var(--muted); font-size: 0.78rem; display: block; }

/* ---------- Banner de acesso à vitrine no Dashboard ---------- */
.vit-dash { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 16px 18px; background: linear-gradient(130deg, rgba(255, 138, 60, 0.1), rgba(110, 91, 255, 0.09) 55%, transparent); }
.vit-dash-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; flex: none; color: var(--pv-orange); background: rgba(255, 138, 60, 0.16); border: 1px solid rgba(255, 138, 60, 0.4); }
.vit-dash-ic svg { width: 25px; height: 25px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vit-dash-tx { flex: 1 1 300px; min-width: 230px; }
.vit-dash-tx b { font-size: 1.02rem; color: var(--text); display: block; margin-bottom: 3px; }
.vit-dash-tx p { margin: 0; color: var(--muted); font-size: 0.88rem; max-width: 620px; line-height: 1.45; }
.vit-dash-stats { display: flex; gap: 22px; }
.vit-dash-stats div b { display: block; font-size: 1.2rem; color: var(--pv-orange); line-height: 1.1; }
.vit-dash-stats div span { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.vit-dash-btn { display: inline-flex; align-items: center; flex: none; background: var(--pv-orange-grad); color: #1b1425; font-weight: 700; font-size: 0.86rem; padding: 10px 18px; border-radius: 10px; text-decoration: none; box-shadow: 0 8px 22px rgba(255, 138, 60, 0.28); }
.vit-dash-btn:hover { filter: brightness(1.05); }

/* ============================================================
   MÓDULO DE PROJETOS / CONHECIMENTO (workspace, repositório,
   indicadores, evidências, cases, IA e timeline)
   ============================================================ */

/* ---------- Cabeçalho do workspace ---------- */
.ws-head { background: linear-gradient(135deg, rgba(110, 91, 255, 0.1), rgba(0, 194, 255, 0.06) 60%, transparent); border: 1px solid var(--border-strong); border-radius: 18px; padding: 20px 22px; margin-bottom: 16px; }
.ws-head-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ws-head h1 { font-size: 1.35rem; margin-bottom: 4px; }
.ws-head .ws-client { color: var(--muted); font-size: 0.9rem; }
.ws-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 16px; }
.ws-meta > div { display: flex; flex-direction: column; gap: 3px; }
.ws-meta .lbl { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted-2); font-weight: 700; }
.ws-meta .val { font-size: 0.92rem; font-weight: 600; }
.ws-prog { min-width: 160px; }
.ws-prog .prog-wrap { margin-top: 3px; }

.tabs.ws-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
.tabs.ws-tabs .tab { white-space: nowrap; }

/* ---------- Blocos de conteúdo ---------- */
.ws-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ws-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 900px) { .ws-grid { grid-template-columns: 1fr; } .ws-grid .span-2 { grid-column: auto; } }

.ws-list { display: grid; gap: 9px; }
.ws-item { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.ws-item-main { min-width: 0; }
.ws-item-main b { display: block; font-size: 0.9rem; }
.ws-item-main .sub { color: var(--muted); font-size: 0.78rem; margin-top: 2px; }
.ws-note { color: var(--muted); font-size: 0.84rem; line-height: 1.55; }
.ws-empty { color: var(--muted-2); font-size: 0.84rem; padding: 14px; border: 1px dashed var(--border-strong); border-radius: 12px; text-align: center; }

/* ---------- Resumo executivo / IA ---------- */
.ws-exec { background: linear-gradient(135deg, rgba(255, 138, 60, 0.08), rgba(110, 91, 255, 0.07)); border: 1px solid rgba(110, 91, 255, 0.35); border-radius: 16px; padding: 18px 20px; }
.ws-exec h2 { font-size: 1rem; display: flex; align-items: center; gap: 9px; }
.ws-exec h2 svg { width: 18px; height: 18px; stroke: var(--pv-orange); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ws-exec p { margin-top: 10px; color: var(--text); font-size: 0.9rem; line-height: 1.6; }
.ws-exec .ws-ia-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2); margin-top: 10px; }

.ia-item { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 11px; }
.ia-item .ia-body { min-width: 0; flex: 1; }
.ia-item b { display: block; font-size: 0.84rem; }
.ia-item .ia-val { color: var(--text); font-size: 0.86rem; line-height: 1.5; margin-top: 3px; }
.ia-item .ia-src { color: var(--muted-2); font-size: 0.74rem; margin-top: 5px; }
.badge-origem { font-size: 0.64rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.badge-manual { color: var(--success); background: rgba(61, 220, 150, 0.12); border: 1px solid rgba(61, 220, 150, 0.3); }
.badge-ia { color: var(--accent-2); background: rgba(0, 194, 255, 0.12); border: 1px solid rgba(0, 194, 255, 0.3); }
.badge-nao { color: var(--muted-2); background: rgba(148, 157, 184, 0.1); border: 1px dashed var(--border-strong); }
.badge-revisao { color: var(--warn); background: rgba(255, 176, 32, 0.12); border: 1px solid rgba(255, 176, 32, 0.3); }
.badge-validado { color: var(--success); background: rgba(61, 220, 150, 0.14); border: 1px solid rgba(61, 220, 150, 0.35); }
.badge-rejeitado { color: var(--danger); background: rgba(255, 92, 92, 0.12); border: 1px solid rgba(255, 92, 92, 0.3); }
.ia-val-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ia-val-actions .btn { padding: 5px 10px; font-size: 0.74rem; }
.match-score { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }
.match-score b { font-size: 1.05rem; color: var(--accent-2); }

/* ---------- Repositório ---------- */
.repo-folders { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.repo-folder { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-soft); color: var(--muted); font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.repo-folder:hover { color: var(--text); }
.repo-folder.active { background: var(--grad); border-color: transparent; color: #fff; }
.repo-folder svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.repo-folder .cnt { font-size: 0.68rem; opacity: 0.8; }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; }
.doc-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(110, 91, 255, 0.12); border: 1px solid rgba(110, 91, 255, 0.3); }
.doc-ic svg { width: 18px; height: 18px; stroke: #8b7dff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.doc-info { flex: 1; min-width: 0; }
.doc-info b { display: block; font-size: 0.88rem; }
.doc-info .sub { color: var(--muted); font-size: 0.76rem; margin-top: 2px; }
.doc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.doc-tag { font-size: 0.68rem; color: var(--accent-2); background: rgba(0, 194, 255, 0.1); border-radius: 6px; padding: 2px 7px; }

/* ---------- Indicadores / evidências ---------- */
.ind-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; padding: 15px 16px; }
.ind-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.ind-card-top b { font-size: 0.92rem; }
.ind-vals { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.ind-vals > div .lbl { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2); font-weight: 700; }
.ind-vals > div .val { font-size: 1.05rem; font-weight: 700; }
.ind-delta { font-weight: 800; font-size: 0.9rem; }
.ind-delta.pos { color: var(--success); }
.ind-delta.neg { color: var(--danger); }
.ind-bar { margin-top: 12px; }
.ind-bar .prog-wrap { height: 7px; }
.ev-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.ev-card b { font-size: 0.9rem; }
.ev-card .sub { color: var(--muted); font-size: 0.78rem; margin-top: 3px; }
.ev-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.pill-class { font-size: 0.68rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.pill-interna { color: var(--muted); background: rgba(148, 157, 184, 0.12); border: 1px solid var(--border-strong); }
.pill-comercial { color: var(--pv-orange); background: rgba(255, 138, 60, 0.12); border: 1px solid rgba(255, 138, 60, 0.35); }
.pill-publica { color: var(--success); background: rgba(61, 220, 150, 0.12); border: 1px solid rgba(61, 220, 150, 0.35); }

/* ---------- Autorizações / cases ---------- */
.auth-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 9px; }
.auth-item { display: flex; align-items: center; gap: 10px; padding: 10px 13px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 11px; font-size: 0.84rem; cursor: pointer; }
.auth-item input { accent-color: var(--accent); width: 16px; height: 16px; }
.auth-item.on { border-color: rgba(61, 220, 150, 0.4); background: rgba(61, 220, 150, 0.06); }
.onepage { background: #fff; color: #1a1f2e; border-radius: 16px; padding: 30px 34px; box-shadow: var(--shadow); }
.onepage h1 { color: #14162b; font-size: 1.5rem; }
.onepage .op-sub { color: #5b6478; font-size: 0.9rem; margin-top: 3px; }
.onepage .op-sec { margin-top: 20px; }
.onepage .op-sec h3 { color: #6e5bff; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.onepage .op-sec p { color: #2a3040; font-size: 0.88rem; line-height: 1.6; }
.onepage .op-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 10px; }
.onepage .op-metric { background: #f4f5fb; border: 1px solid #e3e5f2; border-radius: 11px; padding: 11px 13px; }
.onepage .op-metric b { display: block; color: #6e5bff; font-size: 1.05rem; }
.onepage .op-metric span { font-size: 0.72rem; color: #5b6478; }
.op-bloqueado { color: #a0a6b8; font-style: italic; }

/* ---------- Timeline ---------- */
.tl { position: relative; padding-left: 22px; }
.tl::before { content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--border-strong); }
.tl-item { position: relative; padding: 0 0 18px; }
.tl-item::before { content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.15); }
.tl-item .tl-date { font-size: 0.72rem; color: var(--muted-2); font-weight: 700; }
.tl-item b { display: block; font-size: 0.88rem; margin-top: 2px; }
.tl-item .sub { color: var(--muted); font-size: 0.82rem; margin-top: 2px; line-height: 1.5; }

/* ---------- Alertas / inteligência ---------- */
.ia-alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); }
.ia-alert .dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; }
.ia-alert.alta .dot { background: var(--danger); }
.ia-alert.media .dot { background: var(--warn); }
.ia-alert.baixa .dot { background: var(--accent-2); }
.ia-alert b { font-size: 0.88rem; }
.ia-alert p { color: var(--muted); font-size: 0.82rem; margin-top: 3px; }
.ia-alert a { display: inline-block; margin-top: 6px; font-size: 0.78rem; font-weight: 700; color: var(--accent-2); }

/* ---------- Busca global ---------- */
.gsearch { position: relative; flex: 1; max-width: 420px; display: flex; align-items: center; gap: 9px; background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: 999px; padding: 8px 15px; }
.gsearch input { background: none; border: none; outline: none; color: var(--text); width: 100%; font-size: 0.86rem; }
.gsearch svg { width: 15px; height: 15px; stroke: var(--muted-2); fill: none; stroke-width: 2; stroke-linecap: round; }
.gsearch-res { position: absolute; top: calc(100% + 8px); left: 0; right: 0; max-height: 420px; overflow-y: auto; background: var(--card); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; z-index: 40; }
.gsearch-res .gs-group { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted-2); font-weight: 800; padding: 9px 10px 4px; }
.gsearch-res a { display: block; padding: 8px 10px; border-radius: 9px; font-size: 0.84rem; color: var(--text); }
.gsearch-res a:hover { background: var(--bg-soft); }
.gsearch-res a .sub { display: block; color: var(--muted); font-size: 0.74rem; }
.gsearch-res .gs-empty { padding: 14px; text-align: center; color: var(--muted-2); font-size: 0.82rem; }

@media (max-width: 640px) {
  .ws-head { padding: 16px; }
  .onepage { padding: 20px; }
  .gsearch { max-width: 100%; }
  .doc-row { flex-wrap: wrap; }
  .doc-row .doc-info { flex: 1 1 60%; }
  .doc-row .actions { width: 100%; justify-content: flex-end; }
  .ws-item { flex-wrap: wrap; }
}

/* ---------- Novos status ---------- */
.st-validacao { color: #8b7dff; background: rgba(139, 125, 255, 0.14); border: 1px solid rgba(139, 125, 255, 0.35); }
.st-pausado { color: var(--warn); background: rgba(255, 176, 60, 0.12); border: 1px solid rgba(255, 176, 60, 0.3); }
.st-a_fazer { color: var(--muted); background: rgba(148, 157, 184, 0.12); border: 1px solid rgba(148, 157, 184, 0.3); }
.st-em_revisao { color: #8b7dff; background: rgba(139, 125, 255, 0.14); border: 1px solid rgba(139, 125, 255, 0.35); }
.st-bloqueada { color: var(--danger); background: rgba(255, 92, 92, 0.12); border: 1px solid rgba(255, 92, 92, 0.3); }
.st-rascunho { color: var(--muted); background: rgba(148, 157, 184, 0.12); border: 1px solid rgba(148, 157, 184, 0.3); }
.st-aprovado_interno { color: var(--success); background: rgba(61, 220, 150, 0.12); border: 1px solid rgba(61, 220, 150, 0.3); }
.st-comercial { color: var(--pv-orange); background: rgba(255, 138, 60, 0.12); border: 1px solid rgba(255, 138, 60, 0.35); }
.st-publico { color: var(--accent-2); background: rgba(0, 194, 255, 0.12); border: 1px solid rgba(0, 194, 255, 0.3); }
.st-ia_identificou { color: var(--accent-2); background: rgba(0, 194, 255, 0.12); border: 1px solid rgba(0, 194, 255, 0.3); }
.st-validado { color: var(--success); background: rgba(61, 220, 150, 0.12); border: 1px solid rgba(61, 220, 150, 0.3); }
.st-rejeitado { color: var(--danger); background: rgba(255, 92, 92, 0.12); border: 1px solid rgba(255, 92, 92, 0.3); }
.st-nao_identificado { color: var(--muted-2); background: rgba(148, 157, 184, 0.1); border: 1px dashed var(--border-strong); }

/* ---------- Portal do cliente ---------- */
.portal-wrap { max-width: 900px; }
.portal-wrap .onepage { margin-top: 4px; }
.portal-wrap .ind-delta.pos { color: var(--success); }
.portal-wrap .ind-delta.neg { color: var(--danger); }
@media print {
  .portal-wrap { max-width: none; }
  .portal-wrap .onepage { box-shadow: none; border-radius: 0; }
  .page-head { display: none !important; }
}
