:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff6ff;
  --ink: #111827;
  --text: #1f2937;
  --muted: #64748b;
  --muted-2: #8a98ad;
  --bg: #eef2f7;
  --panel: #ffffff;
  --line: #e5eaf2;
  --line-strong: #d8e0ec;
  --success: #059669;
  --success-bg: #e7f8f1;
  --warning: #d97706;
  --warning-bg: #fff7e6;
  --danger: #dc2626;
  --danger-bg: #feecec;
  --purple: #7c3aed;
  --purple-bg: #f3edff;
  --cyan: #0891b2;
  --cyan-bg: #e8f9fd;
  --orange: #ea580c;
  --orange-bg: #fff3e8;
  --radius-xl: 18px;
  --radius-lg: 14px;
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 16px 38px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }

.app-shell {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #f3f7fd;
  border-right: 1px solid #dbe4f0;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-brand-clean {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 16px;
}
.sidebar-system-logo { width: 42px; height: 42px; object-fit: contain; }
.sidebar-brand-text h2 { margin: 0; color: #173f8a; font-size: 24px; line-height: 1; }
.sidebar-brand-text span { display:block; margin-top: 5px; color: #64748b; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }

.sidebar-nav-clean { display: grid; gap: 6px; overflow-y: auto; padding-right: 2px; flex: 1 1 auto; }
.sidebar-link-clean, .sidebar-group-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  color: #173f8a;
  border-radius: 14px;
  padding: 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: .18s ease;
}
.sidebar-link-clean:hover, .sidebar-group-toggle:hover { background: rgba(255,255,255,.75); }
.sidebar-link-clean.active, .sidebar-group-toggle.active {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .20);
}
.sidebar-link-left { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.sidebar-icon { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; }
.sidebar-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-group { display: grid; gap: 6px; }
.sidebar-group-arrow { font-size: 12px; transition: transform .18s ease; }
.sidebar-group.open .sidebar-group-arrow { transform: rotate(180deg); }
.sidebar-submenu { display: none; padding-left: 14px; gap: 6px; }
.sidebar-group.open .sidebar-submenu { display: grid; }
.sidebar-sublink { position: relative; padding: 10px 10px 10px 20px; border-radius: 12px; color:#173f8a; font-size: 13px; font-weight: 750; }
.sidebar-sublink:before { content:""; position:absolute; left:8px; top:50%; width:5px; height:5px; border-radius:999px; background:#93b3e5; transform: translateY(-50%); }
.sidebar-sublink:hover, .sidebar-sublink.active { background: rgba(255,255,255,.8); }

.sidebar-footer { margin-top: auto; display: grid; gap: 10px; }
.sidebar-footer-logo-box { min-height: 104px; border: 1px solid var(--line); background:#fff; border-radius: 18px; display:flex; align-items:center; justify-content:center; padding: 14px; box-shadow: var(--shadow-soft); }
.sidebar-footer-logo { max-height: 70px; max-width: 150px; object-fit: contain; }
.sidebar-footer-empty-content { text-align:center; display:grid; gap:8px; color:var(--muted); font-size:12px; }
.sidebar-footer-empty-title { color:#173f8a; font-weight: 500; font-size:14px; }
.sidebar-upload-logo-btn { border: 0; border-radius: 12px; background:var(--brand-soft); color:var(--brand); padding:9px 10px; font-weight: 500; cursor:pointer; }
.user-badge, .logout-btn { background:#fff; border:1px solid var(--line); border-radius:14px; padding:12px; text-align:center; font-weight: 500; color:#173f8a; }
.user-badge span { display:block; font-size:12px; color:var(--muted); font-weight:500; margin-top:3px; }
.logout-btn { width:100%; display:block; }

.main-content { padding: 24px 20px 40px; min-width: 0; }

/* PAGE HEADER */
.page-header-clean { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:22px; }
.page-kicker, .dashboard-badge { display:inline-flex; align-items:center; gap:6px; color: var(--brand); font-size:12px; font-weight: 500; margin-bottom:7px; }
.page-title-default, .page-header-clean h1 { margin:0; color:#111827; font-size:24px; line-height:1.12; letter-spacing:-.02em; }
.page-title-subtitle-small, .page-header-clean p { margin:8px 0 0; color:var(--muted); font-size:13px; line-height:1.5; }
.page-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }

/* BUTTONS */
.primary-btn, .secondary-btn, .ghost-btn, .remove-btn, .icon-action-btn, .collapse-toggle {
  border:0; border-radius:10px; font-weight: 500; cursor:pointer; transition:.18s ease;
}
.primary-btn { background:var(--brand); color:#fff; padding:10px 15px; display:inline-flex; align-items:center; justify-content:center; gap:8px; box-shadow: 0 10px 24px rgba(37,99,235,.16); }
.primary-btn:hover { background:var(--brand-dark); transform: translateY(-1px); }
.secondary-btn, .ghost-btn { background:#fff; color:var(--muted); border:1px solid var(--line); padding:9px 14px; display:inline-flex; align-items:center; gap:8px; justify-content:center; }
.secondary-btn:hover, .ghost-btn:hover { border-color:#bfd0ea; color:var(--brand); transform: translateY(-1px); }
.remove-btn { background:var(--danger-bg); color:var(--danger); padding:9px 12px; }
.submit-bar { display:flex; justify-content:flex-end; gap:10px; margin-top:18px; }
.submit-large { min-width: 190px; min-height:48px; }

/* PANELS */
.panel, .app-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); }
.panel { padding:18px; margin-bottom:18px; }
.compact-panel { padding:14px 16px; }
.panel-header { display:flex; align-items:center; justify-content:space-between; gap:14px; padding-bottom:12px; margin-bottom:12px; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.panel-header h2 { margin:0; color:#111827; font-size:15px; letter-spacing:-.01em; }
.panel-header p { margin:4px 0 0; color:var(--muted); font-size:12px; }

/* KPI FIGMA */
.kpi-grid-figma { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px; margin-bottom:22px; }
.kpi-card-figma { min-height:126px; padding:16px; border-radius:12px; background:#fff; border:1px solid var(--line); box-shadow:var(--shadow-soft); display:grid; align-content:space-between; position:relative; }
.kpi-card-figma .kpi-icon { width:30px; height:30px; border-radius:8px; display:inline-flex; align-items:center; justify-content:center; font-size:16px; margin-bottom:10px; }
.kpi-card-figma .kpi-label { color:var(--muted); font-size:12px; margin-bottom:4px; }
.kpi-card-figma .kpi-value { color:#111827; font-size:20px; font-weight: 500; letter-spacing:-.02em; }
.kpi-card-figma .kpi-sub { color:var(--muted); font-size:12px; margin-top:5px; }
.kpi-card-figma .kpi-delta { position:absolute; right:16px; top:20px; font-size:12px; font-weight: 500; }
.delta-up { color:var(--success); } .delta-down { color:#e11d48; }
.icon-blue { background:#eff6ff; color:var(--brand); } .icon-purple { background:var(--purple-bg); color:var(--purple); } .icon-green { background:var(--success-bg); color:var(--success); } .icon-orange { background:var(--orange-bg); color:var(--orange); } .icon-cyan { background:var(--cyan-bg); color:var(--cyan); }

/* FORMS */
.grid-2, .grid-3, .grid-4, .compact-grid { display:grid; gap:14px; }
.grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid-4, .compact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.full { grid-column:1 / -1; }
.field { display:flex; flex-direction:column; gap:7px; min-width:0; }
.field label { font-size:12px; color:#334155; font-weight: 500; }
.field input, .field select, .field textarea { width:100%; border:1px solid var(--line-strong); border-radius:9px; background:#f8fbff; color:#1f2937; padding:10px 12px; font-size:14px; outline:none; min-height:38px; }
.field textarea { min-height:70px; resize:vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color:#93b4ee; box-shadow:0 0 0 3px rgba(37,99,235,.10); background:#fff; }
.inline-field, .input-suffix { display:grid; grid-template-columns:1fr auto; gap:8px; align-items:end; }
.input-suffix span { border:1px solid var(--brand); color:var(--brand); background:#fff; min-height:38px; padding:9px 12px; border-radius:9px; font-size:12px; font-weight: 500; display:inline-flex; align-items:center; }

/* STEPS (cotação/pedido) */
.step-panel { padding:0; overflow:hidden; }
.step-title { display:flex; align-items:center; gap:12px; padding:14px 18px; border-bottom:1px solid var(--line); }
.step-number { width:26px; height:26px; border-radius:9px; background:var(--brand); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-size:13px; font-weight: 500; }
.step-title h2 { margin:0; font-size:15px; color:#111827; }
.step-title p { margin:2px 0 0; font-size:12px; color:var(--muted); }
.step-body { padding:18px; }

/* TABLE / LIST */
.table-panel { padding:0; overflow:hidden; }
.table-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:18px; border-bottom:1px solid var(--line); flex-wrap:wrap; }
.table-title h2 { margin:0; font-size:15px; color:#111827; }
.table-title span { display:block; color:var(--muted); font-size:12px; margin-top:4px; }
.table-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.search-box { min-width:230px; border:1px solid var(--line-strong); border-radius:9px; background:#f8fbff; min-height:34px; display:flex; align-items:center; gap:8px; padding:0 10px; color:var(--muted); }
.search-box input { border:0; background:transparent; outline:0; width:100%; color:#1f2937; font-size:13px; }
.filter-chip { border:1px solid var(--line); background:#fff; border-radius:9px; padding:8px 12px; color:#64748b; font-size:12px; font-weight:750; }
.filter-chip.active { color:var(--brand); border-color:var(--brand); background:#fff; }
.data-table { width:100%; border-collapse:collapse; }
.data-table th { text-align:left; color:#64748b; font-size:11px; text-transform:uppercase; letter-spacing:.04em; padding:11px 18px; border-bottom:1px solid var(--line); }
.data-table td { padding:14px 18px; border-bottom:1px solid var(--line); font-size:13px; vertical-align:middle; }
.data-table tr:hover td { background:#fbfdff; }
.number-pill { display:inline-flex; align-items:center; justify-content:center; border-radius:8px; background:#eef4ff; color:var(--brand); padding:5px 9px; font-weight: 500; }
.muted-line { color:var(--muted); font-size:12px; margin-top:4px; }
.status-badge { display:inline-flex; align-items:center; gap:4px; border-radius:999px; padding:5px 9px; font-size:11px; font-weight:850; }
.status-approved { background:var(--success-bg); color:var(--success); }
.status-pending { background:var(--warning-bg); color:var(--warning); }
.status-analysis { background:#eaf2ff; color:var(--brand); }
.status-canceled { background:var(--danger-bg); color:var(--danger); }
.icon-action-btn { width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center; border:0; background:transparent; color:#64748b; }
.icon-action-btn:hover { background:#f3f6fb; color:var(--brand); }
.icon-action-btn.danger:hover { color:var(--danger); background:var(--danger-bg); }
.table-footer { display:flex; justify-content:space-between; align-items:center; padding:12px 18px; color:var(--muted); font-size:13px; }
.pagination { display:flex; gap:6px; align-items:center; }
.pagination a, .pagination span { border:1px solid var(--line); border-radius:7px; padding:8px 10px; background:#fff; }
.pagination .active { background:var(--brand); color:#fff; border-color:var(--brand); }

/* DASHBOARD */
.chart-panel { padding:18px; }
.chart-box { height:300px; position:relative; }
.wide-panel { padding:18px; }
.state-bars { display:grid; gap:14px; }
.state-row { display:grid; grid-template-columns: 72px 1fr 90px; gap:12px; align-items:center; }
.state-tag { display:inline-flex; align-items:center; justify-content:center; width:28px; height:20px; border-radius:6px; color:var(--brand); background:#eff6ff; font-size:12px; font-weight: 500; }
.state-bar { height:5px; border-radius:999px; background:#edf2f7; overflow:hidden; }
.state-fill { height:100%; border-radius:999px; background:linear-gradient(90deg,#2563eb,#8bbdff); }
.state-value { text-align:right; font-size:12px; color:#111827; font-weight: 500; }
.factory-list { display:grid; }
.factory-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 0; border-bottom:1px solid var(--line); }
.factory-main { display:flex; align-items:center; gap:12px; }
.factory-icon { width:28px; height:28px; border-radius:8px; background:#eff6ff; color:var(--brand); display:inline-flex; align-items:center; justify-content:center; }
.quick-actions-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.quick-action-card { border:1px solid var(--line); border-radius:12px; padding:16px; display:grid; gap:8px; background:#fff; transition:.18s ease; }
.quick-action-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-hover); border-color:#cbdaf1; }
.quick-action-card strong { color:#111827; font-size:14px; }
.quick-action-card span { color:var(--muted); font-size:12px; }
.quick-icon { width:28px; height:28px; border-radius:8px; display:inline-flex; align-items:center; justify-content:center; }

/* ITEM ROWS */
.itens-wrap { display:grid; gap:0; }
.item-grid-row { display:grid; grid-template-columns: 120px 1fr 85px 115px 115px 42px; gap:8px; align-items:end; padding:10px 18px; border-bottom:1px solid var(--line); }
.item-grid-row .field label { display:none; }
.item-table-head { display:grid; grid-template-columns: 120px 1fr 85px 115px 115px 42px; gap:8px; padding:10px 18px; color:#64748b; font-size:11px; text-transform:uppercase; font-weight: 500; border-bottom:1px solid var(--line); }

/* OLD KPI BLUE COMPAT */
.kpi-grid-blue { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:22px; }
.kpi-blue-card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px; box-shadow:var(--shadow-soft); min-height:100px; }
.kpi-blue-card span { color:var(--muted); font-size:12px; display:block; margin-bottom:6px; }
.kpi-blue-card strong { color:#111827; font-size:20px; }

.alert-error, .alert-success, .status-inline-box { padding:12px 14px; border-radius:12px; margin-bottom:16px; font-weight:750; line-height:1.45; }
.alert-error, .status-error-box { background:var(--danger-bg); color:var(--danger); }
.alert-success, .status-success-box { background:var(--success-bg); color:var(--success); }
.hidden { display:none; }
.empty-state-inline { color:var(--muted); padding:18px; }

@media (max-width: 1180px) {
  .kpi-grid-figma, .kpi-grid-blue { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position:relative; height:auto; }
  .main-content { padding:16px; }
  .page-header-clean { flex-direction:column; }
  .kpi-grid-figma, .kpi-grid-blue, .grid-2, .grid-4, .compact-grid, .quick-actions-grid { grid-template-columns:1fr; }
  .item-grid-row, .item-table-head { grid-template-columns:1fr; }
  .data-table { min-width:760px; }
  .table-panel { overflow-x:auto; }
}


/* =========================
   FIGMA EXACTNESS OVERRIDES V2
   Ajustes para aproximar ainda mais do layout Figma oficial
========================= */
.main-content {
  padding: 22px 20px 44px;
}

.page-header-clean {
  min-height: 72px;
  margin-bottom: 20px;
}

.page-kicker,
.dashboard-badge {
  font-size: 12px;
  font-weight: 850;
  color: #2563eb;
  margin-bottom: 6px;
}

.page-header-clean h1,
.page-title-default {
  font-size: 23px;
  font-weight: 850;
  color: #111827;
}

.page-header-clean p,
.page-title-subtitle-small {
  font-size: 13px;
  color: #64748b;
}

.primary-btn {
  border-radius: 9px;
  min-height: 38px;
  padding: 9px 16px;
  font-size: 14px;
  letter-spacing: .01em;
}

.secondary-btn,
.ghost-btn {
  border-radius: 9px;
  min-height: 38px;
  padding: 9px 14px;
  font-size: 13px;
}

.panel,
.app-card,
.kpi-card-figma,
.quick-action-card {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}

.panel {
  padding: 18px;
  margin-bottom: 20px;
}

.panel-header {
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.panel-title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.panel-title-with-icon h2 {
  margin: 0;
}

.section-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.kpi-grid-figma {
  gap: 12px;
  margin-bottom: 22px;
}

.dashboard-kpi-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 880px;
}

.history-kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kpi-card-figma {
  min-height: 118px;
  padding: 16px;
}

.kpi-card-figma .kpi-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.kpi-card-figma .kpi-label {
  font-size: 12px;
  color: #64748b;
}

.kpi-card-figma .kpi-value {
  font-size: 21px;
  line-height: 1.15;
  color: #111827;
}

.kpi-card-figma .kpi-sub {
  font-size: 12px;
  color: #64748b;
}

.kpi-card-figma .kpi-delta {
  top: 18px;
  right: 16px;
}

.chart-panel {
  padding: 18px;
}

.chart-box {
  height: 300px;
}

.state-bars {
  gap: 13px;
}

.state-row {
  grid-template-columns: 70px 1fr 88px;
}

.state-bar {
  height: 5px;
}

.factory-row {
  padding: 16px 0;
}

.factory-row:first-child {
  padding-top: 10px;
}

.factory-main strong {
  color: #111827;
  font-size: 14px;
}

.quick-actions-grid {
  gap: 12px;
}

.quick-action-card {
  min-height: 118px;
  align-content: start;
  padding: 16px;
}

.quick-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.table-panel {
  border-radius: 12px;
}

.table-toolbar {
  padding: 18px;
}

.data-table th {
  padding: 11px 18px;
  font-size: 11px;
}

.data-table td {
  padding: 14px 18px;
}

.number-pill {
  border-radius: 8px;
  padding: 6px 10px;
}

.status-badge {
  padding: 5px 10px;
}

.step-panel {
  border-radius: 12px;
}

.step-title {
  min-height: 56px;
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 9px;
}

.field input,
.field select,
.field textarea {
  border-radius: 9px;
  background: #f8fbff;
}

@media (max-width: 1180px) {
  .dashboard-kpi-grid,
  .history-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
}

@media (max-width: 760px) {
  .dashboard-kpi-grid,
  .history-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   AJUSTE FINO FIGMA V3 — padrão oficial Vertice
   - mais fiel aos prints do Figma
   - corrige cabeçalhos antigos, mascotes grandes, botões, sidebar e configurações
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --figma-bg: #eef2f7;
  --figma-panel: #ffffff;
  --figma-blue: #2563eb;
  --figma-blue-dark: #1d4ed8;
  --figma-text: #111827;
  --figma-muted: #5b6b84;
  --figma-line: #dfe7f2;
  --figma-line-soft: #edf2f7;
  --figma-radius: 14px;
  --figma-radius-panel: 16px;
  --figma-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
  --figma-shadow-btn: 0 14px 28px rgba(37, 99, 235, 0.22);
}

html,
body {
  font-family: Inter, Arial, Helvetica, sans-serif !important;
  background: var(--figma-bg) !important;
  color: var(--figma-text) !important;
  font-size: 14px;
}

.app-shell {
  grid-template-columns: 236px minmax(0, 1fr);
  background: var(--figma-bg);
}

.main-content {
  padding: 24px 26px 42px !important;
  background: var(--figma-bg);
}

/* ---------- Sidebar mais limpa e premium ---------- */
.sidebar {
  background: #f4f7fc !important;
  border-right: 1px solid #dbe4f0 !important;
  padding: 18px 14px !important;
  gap: 12px !important;
}

.sidebar-brand-clean {
  padding: 4px 8px 16px !important;
  gap: 10px !important;
}

.sidebar-system-logo {
  width: 40px !important;
  height: 40px !important;
}

.sidebar-brand-text h2 {
  color: #173f8a !important;
  font-size: 23px !important;
  font-weight: 850 !important;
  letter-spacing: -0.035em;
}

.sidebar-brand-text span {
  color: #64748b !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  letter-spacing: .08em !important;
}

.sidebar-nav-clean {
  gap: 5px !important;
}

.sidebar-link-clean,
.sidebar-group-toggle {
  min-height: 42px;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  color: #173f8a !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}

.sidebar-link-clean:hover,
.sidebar-group-toggle:hover {
  background: #ffffff !important;
}

.sidebar-link-clean.active,
.sidebar-group-toggle.active {
  color: #ffffff !important;
  background: var(--figma-blue) !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18) !important;
}

.sidebar-icon {
  width: 22px !important;
  height: 22px !important;
  color: currentColor;
}

.sidebar-icon svg {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 2 !important;
}

.sidebar-footer-logo-box,
.user-badge,
.logout-btn {
  border-radius: 14px !important;
  box-shadow: none !important;
  border-color: var(--figma-line) !important;
}

.sidebar-footer-logo-box {
  min-height: 92px !important;
  padding: 12px !important;
}

.sidebar-footer-logo {
  max-height: 62px !important;
}

/* ---------- Cabeçalho padrão, inclusive templates antigos ---------- */
.page-header-clean,
.page-hero-row,
.compact-page-hero {
  margin: 0 0 20px 0 !important;
  padding: 0 !important;
}

.page-header-clean,
.page-title-inline,
.clean-title-inline {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 18px !important;
  flex-wrap: nowrap !important;
}

.page-title-content {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.page-kicker,
.dashboard-badge {
  margin: 0 0 6px 0 !important;
  color: var(--figma-blue) !important;
  font-size: 12px !important;
  line-height: 1.1 !important;
  font-weight: 850 !important;
}

.page-header-clean h1,
.page-title-default {
  margin: 0 !important;
  color: var(--figma-text) !important;
  font-size: 24px !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
  letter-spacing: -0.035em !important;
}

.page-header-clean p,
.page-title-subtitle-small {
  margin: 8px 0 0 0 !important;
  color: var(--figma-muted) !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  max-width: 860px !important;
}

.page-title-illustration,
.page-title-mascot-inline-small {
  width: 76px !important;
  height: 76px !important;
  max-width: 76px !important;
  max-height: 76px !important;
  object-fit: contain !important;
  flex: 0 0 76px !important;
}

/* em telas de configuração antigas, se o mascote estiver solto, nunca ocupar metade da tela */
main .page-title-illustration img,
main img.page-title-illustration {
  width: 76px !important;
  height: 76px !important;
}

/* ---------- Botões ---------- */
.primary-btn,
.secondary-btn,
.ghost-btn,
.submit-large {
  border-radius: 9px !important;
  min-height: 38px;
  padding: 9px 15px !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  letter-spacing: -0.01em;
}

.primary-btn {
  background: var(--figma-blue) !important;
  box-shadow: var(--figma-shadow-btn) !important;
}

.primary-btn:hover {
  background: var(--figma-blue-dark) !important;
  transform: translateY(-1px);
}

.secondary-btn,
.ghost-btn {
  background: #ffffff !important;
  color: #64748b !important;
  border: 1px solid var(--figma-line) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
}

.secondary-btn:hover,
.ghost-btn:hover {
  color: var(--figma-blue) !important;
  border-color: #c7d6ec !important;
}

/* ---------- Painéis ---------- */
.panel,
.app-card,
.kpi-card-figma {
  background: var(--figma-panel) !important;
  border: 1px solid var(--figma-line) !important;
  border-radius: var(--figma-radius-panel) !important;
  box-shadow: var(--figma-shadow) !important;
}

.panel {
  padding: 18px 20px !important;
  margin-bottom: 22px !important;
}

.panel-header {
  min-height: 34px;
  margin-bottom: 14px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid var(--figma-line-soft) !important;
}

.panel-header h2 {
  color: var(--figma-text) !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  letter-spacing: -0.02em;
}

.panel-header p {
  color: var(--figma-muted) !important;
  font-size: 12px !important;
}

.panel-title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-icon,
.factory-icon,
.quick-icon,
.kpi-icon {
  font-family: Inter, Arial, sans-serif;
}

/* ---------- KPIs exatamente mais próximos do Figma ---------- */
.kpi-grid-figma {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(320px, 1fr)) !important;
  gap: 14px !important;
  margin-bottom: 24px !important;
  max-width: 1040px;
}

.kpi-grid-figma.dashboard-kpi-grid .kpi-card-figma:nth-child(5) {
  grid-column: 1 / 2;
}

.kpi-card-figma {
  min-height: 118px !important;
  padding: 15px 16px !important;
  position: relative !important;
  align-content: start !important;
}

.kpi-card-figma .kpi-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  margin-bottom: 10px !important;
}

.kpi-card-figma .kpi-label {
  color: var(--figma-muted) !important;
  font-size: 12px !important;
  line-height: 1.2;
}

.kpi-card-figma .kpi-value {
  color: var(--figma-text) !important;
  font-size: 22px !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
  letter-spacing: -0.035em !important;
}

.kpi-card-figma .kpi-sub {
  color: var(--figma-muted) !important;
  font-size: 12px !important;
  margin-top: 6px !important;
}

.kpi-card-figma .kpi-delta {
  right: 16px !important;
  top: 22px !important;
  font-size: 12px !important;
}

/* ---------- Gráficos ---------- */
.chart-panel {
  max-width: 1040px;
  padding: 20px !important;
}

.chart-box {
  height: 315px !important;
  padding-top: 8px;
}

/* ---------- Estados / fábricas / ações rápidas ---------- */
.wide-panel,
.factory-panel,
.quick-panel {
  max-width: 1040px;
}

.state-row {
  grid-template-columns: 74px 1fr 95px !important;
  gap: 12px !important;
}

.state-tag {
  height: 20px !important;
  min-width: 30px !important;
  border-radius: 5px !important;
  font-size: 12px !important;
}

.state-bar {
  height: 5px !important;
}

.state-value {
  font-size: 12px !important;
  color: var(--figma-text) !important;
  font-weight: 800 !important;
}

.factory-row {
  padding: 13px 0 !important;
}

.factory-main strong {
  color: var(--figma-text) !important;
  font-size: 14px !important;
  font-weight: 750 !important;
}

.quick-actions-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.quick-action-card {
  min-height: 118px !important;
  border-radius: 12px !important;
  padding: 16px !important;
}

.quick-action-card strong {
  color: var(--figma-text) !important;
  font-size: 14px !important;
  font-weight: 780 !important;
}

.quick-action-card span {
  color: var(--figma-muted) !important;
  font-size: 12px !important;
}

/* ---------- Tabelas / históricos ---------- */
.table-panel {
  border-radius: var(--figma-radius-panel) !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.table-toolbar {
  padding: 18px 22px !important;
}

.table-title h2 {
  font-size: 15px !important;
  font-weight: 850 !important;
  letter-spacing: -0.02em;
}

.search-box {
  min-width: 240px !important;
  height: 34px !important;
  min-height: 34px !important;
  background: #f8fbff !important;
  border-radius: 9px !important;
}

.filter-chip {
  min-height: 34px !important;
  border-radius: 9px !important;
  padding: 7px 13px !important;
  background: #ffffff !important;
}

.data-table th {
  padding: 10px 18px !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  color: #64748b !important;
  border-bottom: 1px solid var(--figma-line) !important;
}

.data-table td {
  padding: 13px 18px !important;
  font-size: 13px !important;
  border-bottom: 1px solid var(--figma-line-soft) !important;
}

.number-pill {
  background: #eef4ff !important;
  color: var(--figma-blue) !important;
  border-radius: 8px !important;
  font-weight: 900 !important;
}

.status-badge {
  min-width: 78px;
  justify-content: center;
  padding: 5px 10px !important;
  font-size: 11px !important;
}

.icon-action-btn {
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  color: #64748b !important;
  background: transparent !important;
}

.icon-action-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ---------- Criar cotação/pedido ---------- */
.step-panel {
  padding: 0 !important;
  overflow: hidden !important;
  max-width: 1040px;
}

.step-title {
  padding: 14px 18px !important;
  border-bottom: 1px solid var(--figma-line) !important;
}

.step-number {
  width: 28px !important;
  height: 28px !important;
  border-radius: 9px !important;
  background: var(--figma-blue) !important;
  font-weight: 900 !important;
}

.step-title h2 {
  color: var(--figma-text) !important;
  font-size: 15px !important;
  font-weight: 850 !important;
}

.step-title p {
  color: var(--figma-muted) !important;
  font-size: 12px !important;
}

.step-body {
  padding: 18px !important;
}

.field label {
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  letter-spacing: -0.01em;
}

.field input,
.field select,
.field textarea {
  min-height: 38px !important;
  border-radius: 9px !important;
  border: 1px solid #d6dfec !important;
  background: #f8fbff !important;
  font-size: 13px !important;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: #ffffff !important;
  border-color: #93b4ee !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .10) !important;
}

.item-table-head,
.item-grid-row {
  grid-template-columns: 130px minmax(240px, 1fr) 80px 115px 115px 36px !important;
}

.item-table-head {
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  padding: 10px 18px !important;
}

.item-grid-row {
  padding: 10px 18px !important;
}

/* resumo da cotação/pedido precisa ficar visível e com o estilo do Figma */
.summary-submit-panel {
  max-width: 1040px;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}

.summary-mini-cards {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.summary-mini-card {
  min-width: 120px;
  min-height: 68px;
  border-radius: 12px;
  background: #eef4ff;
  padding: 12px 14px;
}

.summary-mini-card strong {
  display: block;
  font-size: 20px;
  color: var(--figma-blue);
  line-height: 1.05;
  margin-top: 4px;
}

.summary-mini-card span {
  display: block;
  color: var(--figma-blue);
  font-size: 12px;
  font-weight: 500;
}

.summary-mini-card.primary {
  background: var(--figma-blue);
}

.summary-mini-card.primary span,
.summary-mini-card.primary strong {
  color: #ffffff;
}

/* ---------- Configurações / compatibilidade ---------- */
.settings-layout {
  display: grid !important;
  grid-template-columns: 250px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
}

.settings-menu {
  position: sticky;
  top: 22px;
  background: #ffffff;
  border: 1px solid var(--figma-line);
  border-radius: var(--figma-radius-panel);
  padding: 16px;
  box-shadow: var(--figma-shadow);
}

.settings-menu h3 {
  margin: 0 0 12px 0;
  color: var(--figma-text);
  font-size: 15px;
  font-weight: 850;
}

.settings-menu-list {
  display: grid;
  gap: 8px;
}

.settings-menu-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #334155;
  background: #f8fbff;
  border: 1px solid var(--figma-line-soft);
  font-size: 13px;
  font-weight: 750;
}

.settings-menu-link:hover {
  color: var(--figma-blue);
  border-color: #c7d6ec;
}

.settings-content .panel {
  max-width: 100% !important;
}

.permission-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.permission-item {
  background: #f8fbff;
  border: 1px solid var(--figma-line);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #334155;
}

.group-card {
  border: 1px solid var(--figma-line);
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  margin-top: 14px;
}

.group-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.group-card-header h3 {
  margin: 0;
  color: var(--figma-text);
  font-size: 14px;
}

@media (max-width: 1180px) {
  .kpi-grid-figma {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: none;
  }

  .chart-panel,
  .wide-panel,
  .factory-panel,
  .quick-panel,
  .step-panel,
  .summary-submit-panel {
    max-width: none;
  }
}

@media (max-width: 980px) {
  .main-content { padding: 16px !important; }
  .page-header-clean,
  .page-title-inline,
  .clean-title-inline { flex-direction: column !important; }
  .kpi-grid-figma,
  .quick-actions-grid,
  .settings-layout,
  .permission-list { grid-template-columns: 1fr !important; }
  .page-title-illustration { display: none !important; }
}


/* =========================================================
   AJUSTES V4 - FIDELIDADE FIGMA, BOTÕES NÍTIDOS E ÍCONES
========================================================= */
html, body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

.main-content {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.remove-btn,
.icon-action-btn,
.filter-chip,
.collapse-toggle,
.sidebar-link-clean,
.sidebar-group-toggle,
.sidebar-sublink {
  font-family: Inter, Arial, Helvetica, sans-serif;
  letter-spacing: .005em;
  text-shadow: none !important;
  filter: none !important;
  -webkit-font-smoothing: antialiased;
  transform: translateZ(0);
}

.primary-btn {
  background: #2563eb;
  color: #fff;
  border: 1px solid #2563eb;
  box-shadow: 0 10px 20px rgba(37,99,235,.18);
  font-weight: 850;
  min-height: 38px;
  line-height: 1;
  white-space: nowrap;
}

.primary-btn:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 14px 24px rgba(37,99,235,.22);
}

.secondary-btn,
.ghost-btn,
.filter-chip {
  color: #52627a;
  background: #fff;
  border: 1px solid #d9e2ef;
  box-shadow: 0 6px 16px rgba(15,23,42,.035);
  font-weight: 780;
  min-height: 36px;
  line-height: 1;
  white-space: nowrap;
}

.secondary-btn:hover,
.ghost-btn:hover,
.filter-chip:hover {
  color: #2563eb;
  border-color: #bcd0f3;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
}

.remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 88px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: #feecec;
  color: #dc2626;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
}

.remove-btn:hover {
  background: #ffe1e1;
  color: #b91c1c;
}

.icon-action-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 9px;
  border: 1px solid transparent;
  color: #64748b;
  background: transparent;
  padding: 0;
}

.icon-action-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-action-btn:hover {
  border-color: #dbe5f3;
  background: #f8fbff;
  color: #2563eb;
}

.icon-action-btn.danger:hover {
  color: #dc2626;
  background: #fff1f1;
  border-color: #ffd1d1;
}

.page-header-clean {
  min-height: 76px;
  align-items: flex-start;
}

.page-header-clean h1 {
  font-weight: 500;
  letter-spacing: -.035em;
}

.page-kicker,
.dashboard-badge {
  font-weight: 500;
  letter-spacing: .01em;
}

.page-title-illustration,
.page-title-mascot,
.page-title-mascot-inline-small,
.popup-mascot {
  max-width: 86px !important;
  max-height: 86px !important;
  object-fit: contain !important;
}

.page-title-inline,
.clean-title-inline {
  align-items: center;
  gap: 16px;
}

/* Sidebar mais limpa, alinhada e sem símbolos borrados */
.sidebar {
  background: #f4f7fc;
  border-right: 1px solid #dbe4f0;
  padding: 18px 12px;
}
.sidebar-system-logo { width: 38px; height: 38px; }
.sidebar-brand-text h2 { font-size: 22px; font-weight: 500; letter-spacing: -.04em; color:#173f8a; }
.sidebar-nav-clean { gap: 5px; }
.sidebar-link-clean,
.sidebar-group-toggle {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13.5px;
}
.sidebar-icon svg { width: 17px; height: 17px; }
.sidebar-link-clean.active,
.sidebar-group-toggle.active {
  background:#2563eb;
  box-shadow: 0 10px 20px rgba(37,99,235,.16);
}

/* Cards mais próximos do Figma */
.kpi-card-figma {
  min-height: 118px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15,23,42,.035);
}
.kpi-card-figma .kpi-value { font-size: 21px; font-weight: 500; }
.kpi-card-figma .kpi-icon { font-size: 0; }
.kpi-card-figma .kpi-icon svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }

.dashboard-kpi-grid {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  max-width: 900px;
}
.dashboard-kpi-grid .kpi-card-figma:nth-child(5) { grid-column: 1 / 2; }
.history-kpi-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }

.panel, .app-card {
  box-shadow: 0 8px 22px rgba(15,23,42,.035);
  border-color: #e4eaf3;
}
.panel-header h2,
.table-title h2,
.step-title h2 {
  font-weight: 500;
}

.chart-panel .panel-header {
  border-bottom: 1px solid #e8eef7;
  margin-bottom: 12px;
}
.chart-box {
  height: 340px;
}

.chart-legend-note {
  display: flex;
  gap: 14px;
  align-items: center;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}
.chart-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: #2563eb;
  display:inline-block;
}
.chart-legend-bar {
  width: 14px;
  height: 8px;
  border-radius: 3px;
  background: rgba(37,99,235,.18);
  display:inline-block;
}

/* Formulários e linhas */
.field input,
.field select,
.field textarea {
  background: #f8fbff;
  border-color: #d5dfec;
  color:#111827;
  font-weight: 500;
}
.field input::placeholder,
.field textarea::placeholder { color:#7b8798; }

.item-grid-row {
  grid-template-columns: 130px minmax(260px,1fr) 80px 120px 120px 64px;
  align-items: center;
}
.item-grid-row .field { gap:0; }
.item-grid-row .remove-btn { width: 100%; }
.item-grid-row .icon-action-btn.danger {
  background: #fff2f2;
  color: #dc2626;
  border-color: #fee2e2;
}
.item-grid-row .icon-action-btn.danger:hover { background:#ffe4e4; }
.item-table-head {
  grid-template-columns: 130px minmax(260px,1fr) 80px 120px 120px 64px;
}

.summary-submit-panel {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.summary-mini-cards { display:flex; gap:12px; align-items:stretch; flex-wrap:wrap; }
.summary-mini-card {
  min-width: 120px;
  border-radius: 12px;
  padding: 13px 16px;
  background:#eef4ff;
  color:#2563eb;
}
.summary-mini-card span { display:block; font-size:12px; font-weight:750; margin-bottom:6px; }
.summary-mini-card strong { font-size:20px; font-weight: 500; }
.summary-mini-card.primary { background:#2563eb; color:#fff; min-width:145px; }

/* Cadastro de produtos */
.product-table-list { display:grid; gap:10px; }
.product-table-card {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  border:1px solid var(--line);
  background:#fbfdff;
  border-radius:12px;
  padding:12px 14px;
}
.product-table-code { background:#eef4ff; color:#2563eb; border-radius:8px; padding:7px 10px; font-size:12px; font-weight: 500; }
.product-price-stack { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.price-pill { border:1px solid #e5eaf2; background:#fff; border-radius:999px; padding:5px 9px; font-size:11px; color:#52627a; font-weight: 500; }

/* Status cotações */
.status-select {
  min-width: 126px;
  border:0;
  border-radius:999px;
  padding:7px 10px;
  font-size:12px;
  font-weight: 500;
  outline:none;
  cursor:pointer;
}
.status-select.status-emitido { background:#e7f8f1; color:#059669; }
.status-select.status-aprovado { background:#e7f8f1; color:#047857; }
.status-select.status-pendente { background:#fff7e6; color:#d97706; }
.status-select.status-analise { background:#eaf2ff; color:#2563eb; }
.status-select.status-cancelado { background:#feecec; color:#dc2626; }

.table-actions-icons { display:flex; gap:4px; align-items:center; white-space:nowrap; }
.table-actions-icons form { display:inline; margin:0; }

@media (max-width: 1180px) {
  .dashboard-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); max-width:none; }
}
@media (max-width: 980px) {
  .dashboard-kpi-grid,
  .history-kpi-grid { grid-template-columns: 1fr; }
  .item-grid-row,
  .item-table-head { grid-template-columns: 1fr; }
  .summary-submit-panel { align-items:stretch; }
}

/* =========================================================
   PADRÃO GLOBAL DE BOTÕES — FIGMA VERTICE
   Referência: botão azul 'Finalizar cotação'
   Aplicar no fim do arquivo para sobrescrever estilos antigos.
========================================================= */
:root {
  --btn-primary-bg: #2563eb;
  --btn-primary-bg-hover: #1d4ed8;
  --btn-primary-bg-active: #1e40af;
  --btn-primary-text: #ffffff;
  --btn-radius: 7px;
  --btn-height: 38px;
  --btn-padding-x: 18px;
  --btn-font-size: 14px;
  --btn-font-weight: 500;
  --btn-shadow: 0 12px 26px rgba(37, 99, 235, 0.24);
  --btn-shadow-hover: 0 16px 32px rgba(37, 99, 235, 0.30);
}

button,
a.primary-btn,
a.secondary-btn,
a.ghost-btn,
a.logout-btn,
input[type="submit"],
input[type="button"],
.primary-btn,
.secondary-btn,
.ghost-btn,
.submit-large,
.collapse-toggle,
.sidebar-upload-logo-btn,
.remove-btn,
.filter-chip,
.pagination a,
.pagination span,
.table-actions button,
.submit-bar button,
.inline-field button,
.panel-header button,
.panel-header a,
.page-actions a,
.page-actions button,
.list-history-actions button,
.list-history-actions a,
.group-actions button,
.group-actions a {
  min-height: var(--btn-height) !important;
  height: var(--btn-height) !important;
  padding: 0 var(--btn-padding-x) !important;
  border-radius: var(--btn-radius) !important;
  font-family: Inter, Arial, Helvetica, sans-serif !important;
  font-size: var(--btn-font-size) !important;
  font-weight: var(--btn-font-weight) !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  user-select: none !important;
  transform: none !important;
  transition: background-color .16s ease, box-shadow .16s ease, border-color .16s ease, color .16s ease, transform .16s ease !important;
}

.primary-btn,
a.primary-btn,
.submit-large,
button[type="submit"].primary-btn,
input[type="submit"],
.page-actions .primary-btn,
.submit-bar .primary-btn,
.panel-header .primary-btn,
.inline-field .primary-btn,
button.primary-btn {
  background: var(--btn-primary-bg) !important;
  background-image: none !important;
  color: var(--btn-primary-text) !important;
  border: 1px solid var(--btn-primary-bg) !important;
  box-shadow: var(--btn-shadow) !important;
  text-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

.primary-btn:hover,
a.primary-btn:hover,
.submit-large:hover,
button[type="submit"].primary-btn:hover,
input[type="submit"]:hover,
.page-actions .primary-btn:hover,
.submit-bar .primary-btn:hover,
.panel-header .primary-btn:hover,
.inline-field .primary-btn:hover,
button.primary-btn:hover {
  background: var(--btn-primary-bg-hover) !important;
  border-color: var(--btn-primary-bg-hover) !important;
  color: #ffffff !important;
  box-shadow: var(--btn-shadow-hover) !important;
  transform: translateY(-1px) !important;
}

.primary-btn:active,
a.primary-btn:active,
.submit-large:active,
button[type="submit"].primary-btn:active,
input[type="submit"]:active,
button.primary-btn:active {
  background: var(--btn-primary-bg-active) !important;
  border-color: var(--btn-primary-bg-active) !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22) !important;
  transform: translateY(0) !important;
}

/* Botões secundários ficam com o mesmo tamanho/fonte, mas brancos como no Figma */
.secondary-btn,
a.secondary-btn,
.ghost-btn,
a.ghost-btn,
.collapse-toggle,
.filter-chip,
.pagination a,
.pagination span,
.panel-header a.secondary-btn,
.panel-header button.secondary-btn,
.page-actions .secondary-btn,
.table-actions .secondary-btn,
.inline-field .secondary-btn {
  background: #ffffff !important;
  color: #64748b !important;
  border: 1px solid #dbe4f0 !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035) !important;
  text-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

.secondary-btn:hover,
a.secondary-btn:hover,
.ghost-btn:hover,
a.ghost-btn:hover,
.collapse-toggle:hover,
.filter-chip:hover,
.pagination a:hover,
.panel-header a.secondary-btn:hover,
.panel-header button.secondary-btn:hover,
.page-actions .secondary-btn:hover,
.table-actions .secondary-btn:hover,
.inline-field .secondary-btn:hover {
  background: #ffffff !important;
  color: #2563eb !important;
  border-color: #2563eb !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.10) !important;
  transform: translateY(-1px) !important;
}

.filter-chip.active,
.pagination .active {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.20) !important;
}

/* Botão remover: mesmo padrão de tamanho/fonte, mas vermelho e sem quebra */
.remove-btn,
button.remove-btn,
a.remove-btn,
.list-history-actions .remove-btn,
.group-actions .remove-btn {
  min-width: 92px !important;
  background: #feecec !important;
  color: #dc2626 !important;
  border: 1px solid #fecaca !important;
  box-shadow: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
}

.remove-btn:hover,
button.remove-btn:hover,
a.remove-btn:hover,
.list-history-actions .remove-btn:hover,
.group-actions .remove-btn:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  box-shadow: 0 12px 26px rgba(220, 38, 38, 0.20) !important;
  transform: translateY(-1px) !important;
}

/* Botões apenas com ícone continuam compactos, mas com acabamento limpo */
.icon-action-btn,
button.icon-action-btn,
a.icon-action-btn,
.table-actions .icon-action-btn,
.list-history-actions .icon-action-btn {
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #64748b !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}

.icon-action-btn:hover,
button.icon-action-btn:hover,
a.icon-action-btn:hover,
.table-actions .icon-action-btn:hover,
.list-history-actions .icon-action-btn:hover {
  background: #eff6ff !important;
  color: #2563eb !important;
  border-color: #dbeafe !important;
  transform: translateY(-1px) !important;
}

.icon-action-btn.danger:hover,
button.icon-action-btn.danger:hover,
a.icon-action-btn.danger:hover {
  background: #feecec !important;
  color: #dc2626 !important;
  border-color: #fecaca !important;
}

/* Ícones dentro dos botões */
.primary-btn svg,
.secondary-btn svg,
.ghost-btn svg,
.remove-btn svg,
button svg,
a[class*="btn"] svg {
  width: 15px !important;
  height: 15px !important;
  stroke-width: 2.2 !important;
  flex: 0 0 auto !important;
}

/* Corrige botões muito largos sem necessidade, mantendo o padrão visual */
.submit-large {
  min-width: 154px !important;
}

.submit-bar {
  align-items: center !important;
  gap: 10px !important;
}

/* Evita aparência borrada/embaçada em fontes e botões */
button,
a.primary-btn,
a.secondary-btn,
a.ghost-btn,
.primary-btn,
.secondary-btn,
.ghost-btn,
.remove-btn,
.filter-chip {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  backface-visibility: hidden !important;
}

button:disabled,
.primary-btn:disabled,
.secondary-btn:disabled,
.ghost-btn:disabled,
.remove-btn:disabled {
  opacity: .55 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}
/* Tablets e telas médias */
@media (max-width: 980px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .app-shell {
    display: block !important;
    width: 100% !important;
    min-height: 100vh !important;
  }

  .main-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px 14px 36px !important;
    overflow-x: hidden !important;
  }

  /* Sidebar vira cabeçalho superior no mobile */
  .sidebar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    padding: 14px 12px !important;
    border-right: 0 !important;
    border-bottom: 1px solid #dbe4f0 !important;
    display: block !important;
    overflow: visible !important;
  }

  .sidebar-top,
  .sidebar-brand-clean {
    width: 100% !important;
  }

  .sidebar-brand-clean {
    padding: 4px 4px 12px !important;
    justify-content: flex-start !important;
  }

  .sidebar-system-logo {
    width: 34px !important;
    height: 34px !important;
  }

  .sidebar-brand-text h2 {
    font-size: 22px !important;
  }

  .sidebar-brand-text span {
    font-size: 9px !important;
  }

  /* Menu vira lista horizontal rolável */
  .sidebar-nav,
  .sidebar-nav-clean {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 4px 2px 12px !important;
    margin: 0 -2px !important;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar-nav::-webkit-scrollbar,
  .sidebar-nav-clean::-webkit-scrollbar {
    height: 0;
  }

  .sidebar-link-clean,
  .sidebar-group-toggle {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    min-height: 40px !important;
    padding: 9px 12px !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    scroll-snap-align: start;
  }

  .sidebar-link-left {
    gap: 8px !important;
  }

  .sidebar-icon {
    width: 19px !important;
    height: 19px !important;
    flex: 0 0 19px !important;
  }

  .sidebar-icon svg {
    width: 17px !important;
    height: 17px !important;
  }

  /* Submenu no mobile: não abre como bloco gigante */
  .sidebar-group {
    flex: 0 0 auto !important;
    position: relative !important;
  }

  .sidebar-submenu {
    position: absolute !important;
    left: 0 !important;
    top: 44px !important;
    z-index: 50 !important;
    min-width: 220px !important;
    padding: 8px !important;
    background: #ffffff !important;
    border: 1px solid #dfe7f2 !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12) !important;
  }

  .sidebar-sublink {
    white-space: nowrap !important;
    display: block !important;
  }

  /* Rodapé da sidebar fica compacto no mobile */
  .sidebar-footer {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
    margin-top: 6px !important;
  }

  .sidebar-footer-logo-box {
    min-height: 54px !important;
    padding: 8px !important;
    grid-column: 1 / -1;
  }

  .sidebar-footer-logo {
    max-height: 42px !important;
    max-width: 180px !important;
  }

  .sidebar-footer-empty-content small {
    display: none !important;
  }

  .user-badge,
  .logout-btn {
    min-height: 42px !important;
    padding: 9px 10px !important;
    font-size: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .user-badge span {
    display: none !important;
  }

  /* Cabeçalho de página */
  .page-header-clean,
  .page-title-inline,
  .clean-title-inline {
    display: block !important;
    margin-bottom: 16px !important;
  }

  .page-actions {
    width: 100% !important;
    display: flex !important;
    gap: 8px !important;
    margin-top: 12px !important;
  }

  .page-title-default,
  .page-header-clean h1 {
    font-size: 25px !important;
    line-height: 1.12 !important;
  }

  .page-title-subtitle-small,
  .page-header-clean p {
    max-width: 100% !important;
    font-size: 13px !important;
  }

  .page-title-illustration,
  .login-showcase-mascot {
    display: none !important;
  }

  /* Cards e grids */
  .kpi-grid-figma,
  .dashboard-kpi-grid,
  .history-kpi-grid,
  .kpi-grid-blue,
  .quick-actions-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .compact-grid,
  .settings-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    gap: 12px !important;
  }

  .kpi-card-figma {
    min-height: 110px !important;
  }

  .panel,
  .app-card,
  .table-panel,
  .step-panel,
  .wide-panel,
  .chart-panel {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 15px !important;
    margin-bottom: 14px !important;
  }

  .panel {
    padding: 14px !important;
  }

  .panel-header,
  .table-toolbar {
    display: block !important;
    padding: 14px !important;
  }

  .panel-header .primary-btn,
  .panel-header .secondary-btn,
  .table-toolbar .primary-btn,
  .table-toolbar .secondary-btn {
    margin-top: 10px !important;
  }

  .table-actions {
    width: 100% !important;
    margin-top: 12px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .search-box {
    min-width: 0 !important;
    width: 100% !important;
  }

  /* Formulários */
  .field input,
  .field select,
  .field textarea {
    min-height: 44px !important;
    font-size: 16px !important; /* evita zoom automático no iPhone */
  }

  .inline-field,
  .input-suffix {
    grid-template-columns: 1fr auto !important;
  }

  .submit-bar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }

  /* Botões no padrão mobile */
  .primary-btn,
  .secondary-btn,
  .ghost-btn,
  .remove-btn,
  .submit-large,
  .login-submit,
  .login-secondary-link,
  button[type="submit"]:not(.icon-action-btn),
  a.primary-btn,
  a.secondary-btn {
    min-height: 42px !important;
    width: 100%;
    justify-content: center !important;
    white-space: nowrap !important;
    font-size: 14px !important;
  }

  .icon-action-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    flex: 0 0 36px !important;
  }

  .remove-btn {
    width: auto !important;
    min-width: 94px !important;
    padding: 9px 12px !important;
    white-space: nowrap !important;
  }

  /* Etapas de cotação/pedido */
  .step-title {
    align-items: flex-start !important;
    padding: 14px !important;
  }

  .step-body {
    padding: 14px !important;
  }

  .step-title h2 {
    font-size: 17px !important;
  }

  .step-title p {
    font-size: 12px !important;
  }

  /* Itens de cotação/pedido empilhados */
  .item-table-head {
    display: none !important;
  }

  .item-grid-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 14px !important;
    border-bottom: 1px solid #dfe7f2 !important;
  }

  .item-grid-row .field label {
    display: block !important;
  }

  .item-grid-row > * {
    min-width: 0 !important;
  }

  /* Tabelas: rolagem horizontal segura */
  .table-scroll,
  .table-responsive,
  .list-history-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    min-width: 760px !important;
  }

  .data-table th,
  .data-table td {
    padding: 12px 14px !important;
  }

  .table-footer {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .pagination {
    justify-content: center !important;
  }

  /* Cadastro de produtos/listas antigas */
  .list-history-row {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 10px !important;
    align-items: center !important;
    padding: 12px !important;
  }

  .list-history-main {
    min-width: 0 !important;
  }

  .list-history-content strong {
    word-break: break-word !important;
  }

  .list-history-actions {
    display: flex !important;
    gap: 6px !important;
  }

  /* Dashboard */
  .chart-box {
    height: 260px !important;
  }

  .state-row {
    grid-template-columns: 48px 1fr 74px !important;
    gap: 8px !important;
  }

  .factory-row,
  .quick-action-card {
    min-width: 0 !important;
  }

  /* Configurações */
  .settings-menu {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
  }

  .settings-menu-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .permission-list {
    max-height: 320px !important;
    overflow-y: auto !important;
  }

  /* Login */
  .login-body {
    min-height: 100vh !important;
    overflow-x: hidden !important;
  }

  .login-page-wrap,
  .login-page-wrap-split {
    width: 100% !important;
    min-height: 100vh !important;
  }

  .login-page-wrap-split {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .login-showcase-panel {
    display: none !important;
  }

  .login-panel {
    min-height: 100vh !important;
    padding: 20px 14px !important;
  }

  .login-panel-card {
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    padding: 22px 18px !important;
    border-radius: 18px !important;
  }

  .login-brand {
    justify-content: flex-start !important;
  }

  .login-logo {
    max-width: 48px !important;
    max-height: 48px !important;
  }
}

/* Celulares pequenos */
@media (max-width: 520px) {
  .main-content {
    padding: 16px 10px 32px !important;
  }

  .sidebar {
    padding: 12px 10px !important;
  }

  .page-title-default,
  .page-header-clean h1 {
    font-size: 23px !important;
  }

  .page-title-subtitle-small,
  .page-header-clean p {
    font-size: 12.5px !important;
  }

  .kpi-card-figma {
    padding: 14px !important;
  }

  .kpi-card-figma .kpi-value {
    font-size: 20px !important;
  }

  .panel,
  .app-card,
  .table-panel,
  .step-panel {
    border-radius: 14px !important;
  }

  .field input,
  .field select,
  .field textarea {
    padding: 10px 11px !important;
  }

  .primary-btn,
  .secondary-btn,
  .ghost-btn,
  .remove-btn,
  .submit-large {
    min-height: 42px !important;
    font-size: 14px !important;
  }

  .sidebar-footer {
    grid-template-columns: 1fr !important;
  }

  .sidebar-footer-logo-box {
    display: none !important;
  }

  .chart-box {
    height: 230px !important;
  }
}
.product-price-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.price-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f8fbff;
  border: 1px solid #dfe7f2;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.price-pill-sp {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

@media (max-width: 980px) {
  .product-price-stack {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .price-pill {
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
  }
}

/* ===== Importação de clientes ===== */
.import-form {
  display: block;
}

.import-progress-wrap {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #f8fafc;
}

.import-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  margin-bottom: 8px;
}

.import-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
}

.import-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: #2563eb;
  transition: width .2s ease;
}

.muted-text {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

/* ===== Página de clientes - tabela organizada ===== */
.client-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card.metric-card-soft {
  min-height: 112px;
}

.icon-blue {
  color: #2563eb;
  background: #eff6ff;
}

.icon-green {
  color: #059669;
  background: #ecfdf5;
}

.icon-purple {
  color: #7c3aed;
  background: #f5f3ff;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.table-toolbar h2 {
  margin: 0;
}

.table-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(360px, 100%);
  padding: 0 14px;
  border: 1px solid #d7e0ec;
  border-radius: 12px;
  background: #f8fafc;
}

.table-search-wrap span {
  color: #64748b;
  font-weight: 500;
}

.table-search-wrap input {
  width: 100%;
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font-weight: 400;
}

.responsive-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.vertice-table {
  width: 100%;
  border-collapse: collapse;
}

.vertice-table thead th {
  padding: 14px 12px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  white-space: nowrap;
}

.vertice-table tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
  color: #0f172a;
}

.vertice-table tbody tr:hover {
  background: #f8fafc;
}

.text-right {
  text-align: right !important;
}

.table-id-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 500;
}

.client-name-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 240px;
}

.client-name-cell strong {
  font-size: 14px;
  color: #0f172a;
  letter-spacing: .01em;
}

.client-name-cell span,
.client-contact-cell span {
  font-size: 12px;
  color: #64748b;
}

.client-contact-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
}

.muted-pill,
.location-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: #f1f5f9;
  color: #475569;
}

.location-pill {
  background: #ecfdf5;
  color: #047857;
}

.table-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  font-size: 14px;
  transition: .18s ease;
}

.table-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

.table-action-btn.danger {
  color: #dc2626;
}

.table-action-btn.danger:hover {
  background: #fef2f2;
  border-color: #fecaca;
}

.client-list-panel {
  padding-bottom: 8px;
}

@media (max-width: 900px) {
  .client-summary-grid {
    grid-template-columns: 1fr;
  }

  .table-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .table-search-wrap {
    width: 100%;
  }

  .vertice-table {
    min-width: 860px;
  }
}

/* ===== Sidebar Figma 2026 ===== */
.sidebar.figma-sidebar {
  width: 236px;
  min-width: 236px;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 16px 11px 14px;
  background: #0f172a;
  border-right: 1px solid rgba(148, 163, 184, .12);
  box-shadow: none;
  color: #94a3b8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.figma-sidebar *,
.figma-sidebar *::before,
.figma-sidebar *::after {
  box-sizing: border-box;
}

.figma-sidebar-brand {
  padding: 0 10px 24px;
}

.figma-brand-link {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #f8fafc;
}

.figma-brand-icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .22);
}

.figma-brand-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.figma-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.figma-brand-copy strong {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  color: #ffffff;
}

.figma-brand-copy small {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #667085;
}

.figma-sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 0 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, .35) transparent;
}

.figma-sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.figma-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, .35);
  border-radius: 999px;
}

.figma-nav-section-label {
  padding: 0 10px;
  margin: 5px 0 11px;
  color: #536075;
  font-size: 11px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.figma-nav-section-system {
  margin-top: 18px;
}

.figma-nav-item {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  margin: 4px 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #9aa4b2;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: .01em;
  text-align: left;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.figma-nav-item:hover {
  background: rgba(30, 41, 59, .75);
  color: #e2e8f0;
}

.figma-nav-item.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .22);
}

.figma-nav-icon {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 17px;
  color: currentColor;
}

.figma-nav-icon svg,
.figma-subnav-icon svg,
.figma-nav-chevron svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.figma-nav-item span:not(.figma-nav-icon):not(.figma-nav-chevron) {
  min-width: 0;
  white-space: nowrap;
}

.figma-nav-toggle {
  justify-content: flex-start;
}

.figma-nav-chevron {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: currentColor;
  opacity: .9;
  transition: transform .18s ease;
}

.figma-nav-group.open > .figma-nav-toggle .figma-nav-chevron {
  transform: rotate(180deg);
}

.figma-subnav {
  display: none;
  padding: 2px 0 2px 28px;
}

.figma-nav-group.open > .figma-subnav {
  display: block;
}

.figma-subnav-item {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px;
  margin: 2px 0;
  border-radius: 7px;
  text-decoration: none;
  color: #717d90;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .01em;
  transition: color .18s ease, background .18s ease;
}

.figma-subnav-item:hover,
.figma-subnav-item.active {
  color: #e5e7eb;
  background: rgba(30, 41, 59, .55);
}

.figma-subnav-dot {
  color: #465366;
  font-size: 14px;
  line-height: 1;
}

.figma-subnav-icon {
  width: 14px;
  height: 14px;
  color: currentColor;
  opacity: .9;
}

.figma-sidebar-footer {
  padding-top: 13px;
  border-top: 1px solid rgba(148, 163, 184, .16);
}

.figma-client-card {
  min-height: 84px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 13px;
  border-radius: 7px;
  background: #ffffff;
  color: #334155;
  overflow: hidden;
}

.figma-client-logo {
  max-width: 100%;
  max-height: 58px;
  object-fit: contain;
  display: block;
}

.figma-client-card-empty {
  flex-direction: column;
  text-align: center;
  gap: 4px;
}

.figma-client-card-empty strong {
  color: #344054;
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
}

.figma-client-card-empty span {
  color: #667085;
  font-size: 11px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.figma-client-card-empty small {
  color: #98a2b3;
  font-size: 10px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.figma-user-card {
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid rgba(148, 163, 184, .20);
  border-radius: 7px;
  background: rgba(30, 41, 59, .68);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  color: #f8fafc;
}

.figma-user-card strong {
  font-size: 11px;
  line-height: 1;
  font-weight: 500;
  color: #ffffff;
}

.figma-user-card span {
  font-size: 11px;
  line-height: 1;
  font-weight: 400;
  color: #7c8799;
}

.figma-logout {
  height: 34px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 8px;
  color: #9aa4b2;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color .18s ease, background .18s ease;
}

.figma-logout:hover {
  color: #ffffff;
  background: rgba(30, 41, 59, .75);
}

/* Neutraliza estilos antigos da sidebar para o novo padrão */
.figma-sidebar .sidebar-top,
.figma-sidebar .sidebar-nav-clean,
.figma-sidebar .sidebar-footer,
.figma-sidebar .sidebar-link-clean,
.figma-sidebar .sidebar-group-toggle,
.figma-sidebar .sidebar-sublink {
  all: unset;
}

@media (max-width: 900px) {
  .sidebar.figma-sidebar {
    position: fixed;
    z-index: 80;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    transition: transform .22s ease;
  }

  body.sidebar-open .sidebar.figma-sidebar {
    transform: translateX(0);
  }
}

/* ===== Correção forçada da cor da sidebar Figma ===== */
aside.sidebar.figma-sidebar,
.sidebar.figma-sidebar {
  background: #0f172a !important;
  background-color: #0f172a !important;
  color: #94a3b8 !important;
  border-right: 1px solid rgba(148, 163, 184, .12) !important;
}

aside.sidebar.figma-sidebar::before,
aside.sidebar.figma-sidebar::after,
.sidebar.figma-sidebar::before,
.sidebar.figma-sidebar::after {
  background: transparent !important;
}

.figma-sidebar .figma-sidebar-brand,
.figma-sidebar .figma-sidebar-nav,
.figma-sidebar .figma-sidebar-footer,
.figma-sidebar .figma-nav-group,
.figma-sidebar .figma-subnav {
  background: transparent !important;
}

.figma-sidebar .figma-brand-copy strong {
  color: #ffffff !important;
}

.figma-sidebar .figma-brand-copy small {
  color: #667085 !important;
}

.figma-sidebar .figma-nav-section-label {
  color: #536075 !important;
}

.figma-sidebar .figma-nav-item {
  background: transparent !important;
  color: #9aa4b2 !important;
}

.figma-sidebar .figma-nav-item:hover {
  background: rgba(30, 41, 59, .75) !important;
  color: #e2e8f0 !important;
}

.figma-sidebar .figma-nav-item.active {
  background: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .22) !important;
}

.figma-sidebar .figma-subnav-item {
  background: transparent !important;
  color: #717d90 !important;
}

.figma-sidebar .figma-subnav-item:hover,
.figma-sidebar .figma-subnav-item.active {
  background: rgba(30, 41, 59, .55) !important;
  color: #e5e7eb !important;
}

.figma-sidebar .figma-sidebar-footer {
  border-top: 1px solid rgba(148, 163, 184, .16) !important;
}

.figma-sidebar .figma-user-card {
  background: rgba(30, 41, 59, .68) !important;
  border-color: rgba(148, 163, 184, .20) !important;
  color: #f8fafc !important;
}

.figma-sidebar .figma-user-card strong {
  color: #ffffff !important;
}

.figma-sidebar .figma-user-card span {
  color: #7c8799 !important;
}

.figma-sidebar .figma-logout {
  background: transparent !important;
  color: #9aa4b2 !important;
}

.figma-sidebar .figma-logout:hover {
  background: rgba(30, 41, 59, .75) !important;
  color: #ffffff !important;
}

/* ===== Ajuste global dos botões - fonte mais natural ===== */
button,
.btn,
.primary-btn,
.secondary-btn,
.submit-large,
.action-btn,
.filter-btn,
.table-action-btn,
.icon-action-btn,
.sidebar button,
.sidebar a,
.figma-nav-item,
.figma-subnav-item,
.figma-logout,
input[type="button"],
input[type="submit"],
a[class*="btn"],
button[class*="btn"] {
  font-weight: 600 !important;
  letter-spacing: -0.005em !important;
}

.primary-btn,
.secondary-btn,
.submit-large,
.action-primary,
.action-secondary,
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-white {
  font-weight: 600 !important;
  letter-spacing: -0.005em !important;
}

.table-action-btn,
.icon-action-btn {
  font-weight: 500 !important;
}

/* ===== Ajustes globais de peso de fonte e botões - 2026-05 ===== */
body,
input,
select,
textarea,
button,
a,
p,
span,
td,
th,
label {
  font-weight: 500;
}

h1,
h2,
h3,
h4,
.page-title-default,
.page-header-clean h1,
.step-title h2,
.panel-header h2,
.table-title h2,
.dashboard-card strong,
.metric-card strong,
.crm-title-block h1,
.settings-title-block h1 {
  font-weight: 600 !important;
}

strong,
b,
.data-table td strong,
.product-table-card strong,
.number-pill,
.price-pill {
  font-weight: 550 !important;
}

.primary-btn,
.secondary-btn,
.submit-large,
button,
.btn,
.filter-chip,
.settings-primary-btn,
.settings-secondary-btn,
.settings-danger-btn,
.settings-outline-blue,
.crm-primary-action,
.crm-secondary-btn,
.crm-danger-btn,
.icon-action-btn {
  font-weight: 500 !important;
  text-shadow: none !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.data-table th,
.table-header th {
  font-weight: 600 !important;
}

.product-table-card {
  position: relative;
}

.product-table-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.delete-table-btn {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff;
  color: #dc2626;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500 !important;
  cursor: pointer;
}

.delete-table-btn:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

.import-header-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.pagination-products {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 16px 0 0;
  flex-wrap: wrap;
}

.pagination-products .page-info {
  color: #64748b;
  font-size: 13px;
  margin-right: 6px;
}

.pagination-products a,
.pagination-products span {
  min-width: 36px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 500 !important;
  text-decoration: none;
  padding: 0 10px;
}

.pagination-products .active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.pagination-products .disabled {
  opacity: .48;
  pointer-events: none;
}

@media (max-width: 720px) {
  .product-table-card-actions,
  .import-header-actions,
  .pagination-products {
    justify-content: stretch;
  }

  .product-table-card-actions .secondary-btn,
  .product-table-card-actions form,
  .delete-table-btn,
  .import-header-actions .secondary-btn {
    width: 100%;
  }
}

/* >>> TIPOGRAFIA_NATURAL_INICIO >>> */
/* =========================================================
   TIPOGRAFIA NATURAL - remove excesso de negrito da interface
   Aplicado em: títulos, botões, abas, cards e sidebar
   ========================================================= */

/* Fonte geral mais leve */
html,
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: geometricPrecision !important;
}

/* Inputs, botões e campos não devem herdar negrito pesado */
body,
input,
select,
textarea,
button {
  font-family: inherit !important;
  font-weight: 400 !important;
}

/* Títulos principais mais naturais */
h1,
.h1,
.page-title,
.titulo-pagina,
.title,
.titulo,
.dashboard-title,
.section-title {
  font-weight: 500 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.18 !important;
}

/* Subtítulos e textos de seção */
h2,
h3,
h4,
h5,
h6,
.h2,
.h3,
.h4,
.h5,
.h6,
.subtitle,
.subtitulo,
.card-title,
.card-header,
.panel-title,
.page-subtitle,
.section-subtitle {
  font-weight: 450 !important;
  letter-spacing: -0.018em !important;
  line-height: 1.25 !important;
}

/* Textos comuns dentro dos cards */
.card,
.card *,
.metric-card,
.metric-card *,
.stat-card,
.stat-card *,
.kpi-card,
.kpi-card *,
.dashboard-card,
.dashboard-card *,
.resumo-card,
.resumo-card *,
.info-card,
.info-card * {
  letter-spacing: -0.01em !important;
}

/* Labels dos cards */
.card label,
.card small,
.card span,
.card p,
.card div,
.metric-card label,
.metric-card small,
.metric-card span,
.metric-card p,
.metric-card div,
.stat-card label,
.stat-card small,
.stat-card span,
.stat-card p,
.stat-card div,
.kpi-card label,
.kpi-card small,
.kpi-card span,
.kpi-card p,
.kpi-card div,
.dashboard-card label,
.dashboard-card small,
.dashboard-card span,
.dashboard-card p,
.dashboard-card div {
  font-weight: 400 !important;
}

/* Números grandes dos cards: ainda destacados, mas sem peso exagerado */
.card .value,
.card .valor,
.card .numero,
.card .total,
.card .amount,
.card .metric-value,
.card .stat-value,
.card .kpi-value,
.card .dashboard-value,
.metric-value,
.stat-value,
.kpi-value,
.dashboard-value,
.resumo-value,
.valor-total,
.total-geral,
.total-card,
.card strong,
.metric-card strong,
.stat-card strong,
.kpi-card strong,
.dashboard-card strong {
  font-weight: 500 !important;
  letter-spacing: -0.025em !important;
}

/* Botões mais leves */
button,
.btn,
.botao,
.button,
input[type="button"],
input[type="submit"],
a.btn {
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
}

/* Botão principal mantém presença visual pela cor, não pelo negrito */
.btn-primary,
.btn-primario,
.button-primary,
.botao-primary,
.botao-primario,
button.primary,
a.btn-primary {
  font-weight: 500 !important;
}

/* Abas/filtros: Todos, Aprovados, Pendentes, Em análise */
.tabs,
.tabs *,
.tab,
.tab *,
.nav-tabs,
.nav-tabs *,
.filtros,
.filtros *,
.filter,
.filter *,
.filter-button,
.filter-button *,
.status-filter,
.status-filter *,
.segmented,
.segmented *,
.segmented-control,
.segmented-control * {
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
}

/* Sidebar e menus laterais */
.sidebar,
.sidebar *,
.menu,
.menu *,
.nav,
.nav *,
.nav-link,
.menu-link,
.sidebar-link,
aside,
aside * {
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
}

/* Remove negrito forçado por classes comuns do Bootstrap/Tailwind */
.fw-bold,
.fw-bolder,
.font-bold,
.font-semibold,
.font-extrabold,
.font-black,
.text-bold,
.bold {
  font-weight: 500 !important;
}

/* Textos auxiliares sempre leves */
.text-muted,
.muted,
.descricao,
.description,
.caption,
.help-text,
.hint,
.ajuda,
.subinfo,
.card-description,
.card-subtitle,
small {
  font-weight: 400 !important;
  letter-spacing: -0.005em !important;
}

/* Links de topo/menus: visíveis, mas menos duros */
a,
a:visited {
  font-weight: inherit;
}

/* Caso algum <b> ou <strong> esteja deixando tudo pesado */
b,
strong {
  font-weight: 500 !important;
}

/* Tabelas e listas mais naturais */
table,
thead,
tbody,
tr,
td,
th,
ul,
ol,
li {
  font-weight: 400 !important;
}

/* Cabeçalho de tabela com leve destaque */
th,
.table th,
thead th {
  font-weight: 500 !important;
}
/* <<< TIPOGRAFIA_NATURAL_FIM <<< */

/* === AJUSTE GLOBAL DE TIPOGRAFIA LEVE - INICIO === */

/*
Ajuste global para deixar a tipografia mais leve e natural no sistema inteiro.
Remove o excesso de negrito de cards, títulos, botões, tabelas, formulários e sidebar.
*/

html,
body {
    font-weight: 400 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body,
p,
span,
small,
label,
input,
select,
textarea,
button,
a,
td,
th,
li,
div {
    font-weight: 400 !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-title,
.section-title,
.card-title,
.panel-title,
.dashboard-title,
.modal-title,
.form-title,
.sidebar-title,
.nav-title {
    font-weight: 500 !important;
    letter-spacing: -0.01em;
}

.card,
.card *,
.metric-card,
.metric-card *,
.dashboard-card,
.dashboard-card *,
.info-card,
.info-card *,
.stat-card,
.stat-card *,
.kpi-card,
.kpi-card *,
.box,
.box *,
.panel,
.panel * {
    font-weight: 400 !important;
}

.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6,
.metric-card h1,
.metric-card h2,
.metric-card h3,
.metric-card h4,
.metric-card h5,
.metric-card h6,
.dashboard-card h1,
.dashboard-card h2,
.dashboard-card h3,
.dashboard-card h4,
.dashboard-card h5,
.dashboard-card h6,
.info-card h1,
.info-card h2,
.info-card h3,
.info-card h4,
.info-card h5,
.info-card h6,
.stat-card h1,
.stat-card h2,
.stat-card h3,
.stat-card h4,
.stat-card h5,
.stat-card h6,
.kpi-card h1,
.kpi-card h2,
.kpi-card h3,
.kpi-card h4,
.kpi-card h5,
.kpi-card h6 {
    font-weight: 500 !important;
}

.metric-value,
.card-value,
.stat-value,
.kpi-value,
.total-value,
.valor-total,
.valor-card,
.numero-card,
.dashboard-number,
.card-number,
.number,
.value {
    font-weight: 500 !important;
}

.btn,
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.button,
.botao,
a.btn {
    font-weight: 500 !important;
}

.btn *,
button *,
.button *,
.botao * {
    font-weight: 500 !important;
}

label,
.form-label,
.input-label,
.campo-label,
.field-label {
    font-weight: 500 !important;
}

table,
table *,
.table,
.table *,
thead,
thead *,
tbody,
tbody *,
tr,
td,
th {
    font-weight: 400 !important;
}

th,
.table th,
thead th,
.table-header,
.datatable-header {
    font-weight: 500 !important;
}

.sidebar,
.sidebar *,
.menu,
.menu *,
.nav,
.nav *,
.nav-link,
.menu-link {
    font-weight: 400 !important;
}

.sidebar .active,
.sidebar .active *,
.menu .active,
.menu .active *,
.nav .active,
.nav .active *,
.nav-link.active,
.menu-link.active {
    font-weight: 500 !important;
}

.badge,
.tag,
.status,
.pill,
.chip {
    font-weight: 500 !important;
}

strong,
b {
    font-weight: 500 !important;
}

.fw-bold,
.font-bold,
.text-bold,
.bold,
.fw-700,
.fw-800,
.fw-900,
.font-extrabold,
.font-black {
    font-weight: 500 !important;
}

.fw-semibold,
.font-semibold,
.semibold,
.fw-600 {
    font-weight: 500 !important;
}

.fw-medium,
.font-medium,
.medium,
.fw-500 {
    font-weight: 500 !important;
}

.fw-normal,
.font-normal,
.font-regular,
.regular,
.fw-400 {
    font-weight: 400 !important;
}

form,
form *,
.form-control,
.form-select,
.input-group,
.input-group *,
select option {
    font-weight: 400 !important;
}

form label,
.form-group label,
.input-group label {
    font-weight: 500 !important;
}

.logo-text,
.brand-text,
.app-name,
.sistema-nome,
.highlight,
.destaque {
    font-weight: 500 !important;
}

/* === AJUSTE GLOBAL DE TIPOGRAFIA LEVE - FIM === */

/* === REMOVER TITULOS AZUIS SUPERIORES - INICIO === */

/*
Oculta apenas os rótulos pequenos azuis usados como título superior das páginas.
Não afeta a sidebar.
*/

main .eyebrow,
main .page-eyebrow,
main .section-eyebrow,
main .kicker,
main .badge-title,
main .mini-title,
main .label-title,
main .page-label,
.content .eyebrow,
.content .page-eyebrow,
.content .section-eyebrow,
.content .kicker,
.content .badge-title,
.content .mini-title,
.content .label-title,
.content .page-label,
.page-content .eyebrow,
.page-content .page-eyebrow,
.page-content .section-eyebrow,
.page-content .kicker,
.page-content .badge-title,
.page-content .mini-title,
.page-content .label-title,
.page-content .page-label {
    display: none !important;
}

.sidebar .eyebrow,
.sidebar .page-eyebrow,
.sidebar .section-eyebrow,
.sidebar .kicker,
.sidebar .badge-title,
.sidebar .mini-title,
.sidebar .label-title,
.sidebar .page-label {
    display: initial !important;
}

/* === REMOVER TITULOS AZUIS SUPERIORES - FIM === */

/* === CORRECAO TEXTOS SIDEBAR - INICIO === */

/*
Garante que os textos dos menus da sidebar apareçam.
Isso corrige o efeito colateral causado pela remoção dos títulos azuis.
*/

.sidebar a,
.sidebar .nav-link,
.sidebar .menu-link {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.sidebar .sidebar-text,
.sidebar a .sidebar-text,
.sidebar .nav-link .sidebar-text,
.sidebar .menu-link .sidebar-text {
    display: inline-flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    color: inherit !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

.sidebar .eyebrow,
.sidebar .page-eyebrow,
.sidebar .section-eyebrow,
.sidebar .kicker,
.sidebar .badge-title,
.sidebar .mini-title,
.sidebar .label-title,
.sidebar .page-label {
    display: initial !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* === CORRECAO TEXTOS SIDEBAR - FIM === */

/* === CORRECAO MENU CADASTRO SIDEBAR - INICIO === */

.sidebar .sidebar-text {
    display: inline-flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: inherit !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

.sidebar a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* === CORRECAO MENU CADASTRO SIDEBAR - FIM === */

/* === FORCAR CADASTRO SIDEBAR - INICIO === */

.sidebar .cadastro-sidebar-label,
.sidebar .sidebar-text.cadastro-sidebar-label {
    display: inline-flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    overflow: visible !important;
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    margin-left: 0 !important;
}

.sidebar a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* === FORCAR CADASTRO SIDEBAR - FIM === */

/* === CADASTRO SIDEBAR NO ITEM PRINCIPAL - INICIO === */

.sidebar .sidebar-text {
    display: inline-flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
    color: inherit !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

.sidebar button,
.sidebar a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* === CADASTRO SIDEBAR NO ITEM PRINCIPAL - FIM === */

/* ===== Vertice desktop fix geral ===== */
:root {
  --desktop-sidebar-width: 244px;
  --desktop-page-bg: #eef2f7;
}

/* Foco apenas em desktop: desativa sobras de mobile/tablet */
.sidebar-mobile-toggle,
.sidebar-mobile-overlay {
  display: none !important;
}

/* Sidebar fixa */
.vertice-sidebar,
.sidebar.vertice-sidebar {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: var(--desktop-sidebar-width) !important;
  min-width: var(--desktop-sidebar-width) !important;
  max-width: var(--desktop-sidebar-width) !important;
  height: 100vh !important;
  transform: none !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  z-index: 40 !important;
}

/* Páginas internas com sidebar */
body:has(.vertice-sidebar),
body:has(.sidebar.vertice-sidebar) {
  padding-left: var(--desktop-sidebar-width) !important;
  background: var(--desktop-page-bg) !important;
  overflow-x: hidden !important;
}

/* Login/apresentação sem sidebar */
body:not(:has(.vertice-sidebar)):not(:has(.sidebar.vertice-sidebar)) {
  padding-left: 0 !important;
}

/* Conteúdo principal deve ocupar o espaço restante */
body:has(.vertice-sidebar) main,
body:has(.vertice-sidebar) .main,
body:has(.vertice-sidebar) .main-content,
body:has(.vertice-sidebar) .content,
body:has(.vertice-sidebar) .page,
body:has(.vertice-sidebar) .page-content,
body:has(.vertice-sidebar) .dashboard,
body:has(.vertice-sidebar) .dashboard-page,
body:has(.vertice-sidebar) .dashboard-content,
body:has(.vertice-sidebar) .app,
body:has(.vertice-sidebar) .app-main,
body:has(.vertice-sidebar) .app-content,
body:has(.vertice-sidebar) .content-wrapper,
body:has(.vertice-sidebar) .container,
body:has(.vertice-sidebar) .container-fluid,
body:has(.sidebar.vertice-sidebar) main,
body:has(.sidebar.vertice-sidebar) .main,
body:has(.sidebar.vertice-sidebar) .main-content,
body:has(.sidebar.vertice-sidebar) .content,
body:has(.sidebar.vertice-sidebar) .page,
body:has(.sidebar.vertice-sidebar) .page-content,
body:has(.sidebar.vertice-sidebar) .dashboard,
body:has(.sidebar.vertice-sidebar) .dashboard-page,
body:has(.sidebar.vertice-sidebar) .dashboard-content,
body:has(.sidebar.vertice-sidebar) .app,
body:has(.sidebar.vertice-sidebar) .app-main,
body:has(.sidebar.vertice-sidebar) .app-content,
body:has(.sidebar.vertice-sidebar) .content-wrapper,
body:has(.sidebar.vertice-sidebar) .container,
body:has(.sidebar.vertice-sidebar) .container-fluid {
  width: calc(100vw - var(--desktop-sidebar-width)) !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  box-sizing: border-box !important;
}

/* Respiro interno */
body:has(.vertice-sidebar) main,
body:has(.vertice-sidebar) .main-content,
body:has(.vertice-sidebar) .page-content,
body:has(.vertice-sidebar) .dashboard,
body:has(.vertice-sidebar) .dashboard-page,
body:has(.vertice-sidebar) .dashboard-content,
body:has(.vertice-sidebar) .app-content,
body:has(.vertice-sidebar) .content-wrapper,
body:has(.sidebar.vertice-sidebar) main,
body:has(.sidebar.vertice-sidebar) .main-content,
body:has(.sidebar.vertice-sidebar) .page-content,
body:has(.sidebar.vertice-sidebar) .dashboard,
body:has(.sidebar.vertice-sidebar) .dashboard-page,
body:has(.sidebar.vertice-sidebar) .dashboard-content,
body:has(.sidebar.vertice-sidebar) .app-content,
body:has(.sidebar.vertice-sidebar) .content-wrapper {
  padding-left: 28px !important;
  padding-right: 28px !important;
}

/* Remove limites que deixavam a tela estreita */
main,
.main,
.main-content,
.content,
.page,
.page-content,
.dashboard,
.dashboard-page,
.dashboard-content,
.app,
.app-main,
.app-content,
.content-wrapper,
.container,
.container-fluid,
.wrapper {
  max-width: none !important;
  box-sizing: border-box !important;
}

/* Grids de cards */
.dashboard-grid,
.cards-grid,
.kpi-grid,
.metrics-grid,
.stats-grid,
.resumo-grid,
.grid-cards,
.cards,
.metricas,
.metricas-grid,
.crm-grid,
.page-grid,
.modulos-grid {
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(300px, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
}

@media (min-width: 1320px) {
  .dashboard-grid,
  .cards-grid,
  .kpi-grid,
  .metrics-grid,
  .stats-grid,
  .resumo-grid,
  .grid-cards,
  .cards,
  .metricas,
  .metricas-grid {
    grid-template-columns: repeat(3, minmax(280px, 1fr)) !important;
  }
}

.card,
.kpi-card,
.metric-card,
.stat-card,
.resumo-card,
.panel,
.box,
.widget,
.dashboard-card,
.crm-card {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

.table-wrapper,
.tabela-wrapper,
.chart-card,
.grafico-card,
.table-card,
.table-responsive {
  width: 100% !important;
  max-width: none !important;
  overflow-x: auto !important;
}

.page-header,
.dashboard-header,
.header-dashboard,
.topbar,
.top-bar,
.toolbar {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

/* Login/apresentação */
body.login-page,
body.auth-page,
body.apresentacao-page,
body.landing-page {
  padding-left: 0 !important;
}

body.login-page main,
body.auth-page main,
body.apresentacao-page main,
body.landing-page main,
.login-container,
.auth-container,
.apresentacao-container,
.landing-container {
  width: 100% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
/* ===== Fim Vertice desktop fix geral ===== */

/* ===== Sidebar Vertice desktop visual restaurada ===== */
:root {
  --desktop-sidebar-width: 244px;
  --sidebar-bg: #0f172a;
  --sidebar-border: rgba(148, 163, 184, 0.16);
  --sidebar-text: #d8deea;
  --sidebar-muted: #8792a8;
  --sidebar-section: #6f7b91;
  --sidebar-active: #2563eb;
  --sidebar-card: #ffffff;
  --sidebar-card-text: #263348;
  --sidebar-warning-bg: #4a3305;
  --sidebar-warning-text: #fbbf24;
}

.vertice-sidebar,
.sidebar.vertice-sidebar {
  position: fixed !important;
  inset: 0 auto 0 0 !important;
  width: var(--desktop-sidebar-width) !important;
  min-width: var(--desktop-sidebar-width) !important;
  max-width: var(--desktop-sidebar-width) !important;
  height: 100vh !important;
  background: var(--sidebar-bg) !important;
  color: var(--sidebar-text) !important;
  display: flex !important;
  flex-direction: column !important;
  border-right: 1px solid var(--sidebar-border) !important;
  font-family: inherit !important;
  z-index: 60 !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow: hidden !important;
  box-shadow: none !important;
  transform: none !important;
}

.vertice-sidebar * {
  box-sizing: border-box !important;
}

.sidebar-scroll {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 16px 8px 14px !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.6) transparent;
}

.sidebar-scroll::-webkit-scrollbar {
  width: 8px;
}

.sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.55);
  border-radius: 999px;
}

.sidebar-brand {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 3px 10px 17px !important;
}

.brand-logo {
  width: 31px !important;
  height: 31px !important;
  border-radius: 10px !important;
  background: #2563eb !important;
  color: #ffffff !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 31px !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12) !important;
  text-decoration: none !important;
}

.brand-logo svg {
  width: 17px !important;
  height: 17px !important;
}

.brand-text {
  display: flex !important;
  flex-direction: column !important;
  text-decoration: none !important;
  line-height: 1.12 !important;
  min-width: 0 !important;
}

.brand-text strong {
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
}

.brand-text span {
  color: var(--sidebar-muted) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

.sidebar-nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.sidebar-section {
  color: var(--sidebar-section) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 18px 10px 8px !important;
}

.sidebar-section-top {
  padding-top: 0 !important;
}

.sidebar-item,
.sidebar-group summary.sidebar-item,
.sidebar-submenu a {
  min-height: 38px !important;
  border-radius: 7px !important;
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  color: #aab4c5 !important;
  text-decoration: none !important;
  padding: 0 10px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
  outline: none !important;
  border: 0 !important;
  background: transparent !important;
  cursor: pointer !important;
  transition: background 0.18s ease, color 0.18s ease !important;
}

.sidebar-item:hover,
.sidebar-group summary.sidebar-item:hover,
.sidebar-submenu a:hover {
  color: #ffffff !important;
  background: rgba(148, 163, 184, 0.10) !important;
}

.sidebar-item.is-active,
.sidebar-item.active,
.sidebar-submenu a.is-active,
.sidebar-submenu a.active {
  background: var(--sidebar-active) !important;
  color: #ffffff !important;
}

.sidebar-icon {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  display: grid !important;
  place-items: center !important;
  color: currentColor !important;
  opacity: 0.95 !important;
}

.sidebar-icon svg {
  width: 18px !important;
  height: 18px !important;
}

.sidebar-item span:nth-child(2) {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.sidebar-group {
  margin: 0 !important;
}

.sidebar-group summary {
  list-style: none !important;
}

.sidebar-group summary::-webkit-details-marker {
  display: none !important;
}

.sidebar-chevron {
  margin-left: auto !important;
  font-size: 16px !important;
  color: var(--sidebar-muted) !important;
  transition: transform 0.18s ease !important;
}

.sidebar-group[open] .sidebar-chevron {
  transform: rotate(180deg) !important;
}

.sidebar-submenu {
  display: grid !important;
  gap: 2px !important;
  padding: 2px 0 5px 39px !important;
}

.sidebar-submenu a {
  min-height: 30px !important;
  padding: 0 9px !important;
  font-size: 13px !important;
  color: #9ea8ba !important;
}

.sidebar-item-disabled {
  cursor: not-allowed !important;
  opacity: 0.72 !important;
}

.sidebar-item-disabled:hover {
  background: transparent !important;
  color: #aab4c5 !important;
}

.sidebar-item em {
  margin-left: auto !important;
  font-style: normal !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  background: var(--sidebar-warning-bg) !important;
  color: var(--sidebar-warning-text) !important;
  border-radius: 999px !important;
  padding: 3px 7px !important;
  white-space: nowrap !important;
}

.sidebar-footer {
  flex: 0 0 auto !important;
  padding: 12px 8px 11px !important;
  display: grid !important;
  gap: 10px !important;
  border-top: 1px solid var(--sidebar-border) !important;
  background: var(--sidebar-bg) !important;
}

.company-card {
  min-height: 84px !important;
  border-radius: 9px !important;
  background: var(--sidebar-card) !important;
  color: var(--sidebar-card-text) !important;
  display: grid !important;
  place-items: center !important;
  text-align: center !important;
  padding: 12px !important;
}

.company-card strong {
  display: block !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
}

.company-card span {
  display: block !important;
  margin-top: 8px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
}

.company-card small {
  display: block !important;
  margin-top: 3px !important;
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  color: #7c8aa1 !important;
  font-weight: 500 !important;
}

.user-card {
  min-height: 61px !important;
  border: 1px solid var(--sidebar-border) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  border-radius: 9px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px !important;
}

.user-avatar {
  width: 24px !important;
  height: 24px !important;
  border-radius: 999px !important;
  display: grid !important;
  place-items: center !important;
  background: #2563eb !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  flex: 0 0 24px !important;
}

.user-info {
  display: grid !important;
  gap: 3px !important;
}

.user-info strong {
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.user-info span {
  width: fit-content !important;
  color: #fecdd3 !important;
  background: rgba(225, 29, 72, 0.38) !important;
  border-radius: 999px !important;
  padding: 2px 7px !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
}

.logout-link {
  min-height: 38px !important;
  border: 1px solid var(--sidebar-border) !important;
  border-radius: 9px !important;
  color: #9aa6ba !important;
  text-decoration: none !important;
  padding: 0 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.logout-link:hover {
  color: #ffffff !important;
  background: rgba(148, 163, 184, 0.08) !important;
}

.logout-link svg {
  width: 16px !important;
  height: 16px !important;
}

.sidebar-mobile-toggle,
.sidebar-mobile-overlay {
  display: none !important;
}
/* ===== Fim Sidebar Vertice desktop visual restaurada ===== */

/* ===== Botão Entrar fixo na apresentação ===== */
.vertice-apresentacao-entrar-fixo {
  position: fixed !important;
  top: 22px !important;
  right: 28px !important;
  z-index: 9999 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
  background: #2563eb !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.24) !important;
}
.vertice-apresentacao-entrar-fixo:hover {
  background: #1d4ed8 !important;
  color: #ffffff !important;
}
/* ===== Fim Botão Entrar fixo na apresentação ===== */

/* ===== Dashboard Figma Vertice preciso ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

.vertice-dashboard-body.dashboard-figma-exato {
  background: #f0f4f8 !important;
  color: #0f172a;
}

.vtx-dashboard {
  width: calc(100vw - var(--desktop-sidebar-width, 244px));
  min-height: 100vh;
  padding: 24px 28px 44px;
  box-sizing: border-box;
  font-family: Inter, Arial, sans-serif;
}

.vtx-dashboard * {
  box-sizing: border-box;
}

.vtx-dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.vtx-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.vtx-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
}

.vtx-profile-select {
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
}

.vtx-title-block h1 {
  margin: 0;
  font-family: "Plus Jakarta Sans", Inter, Arial, sans-serif;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.vtx-title-block p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
}

.vtx-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.vtx-meta-btn,
.vtx-select {
  height: 38px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 10px 24px rgba(15,23,42,.05);
}

.vtx-meta-btn {
  background: #8b5cf6;
  color: #fff;
  border-color: #8b5cf6;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vtx-meta-btn svg {
  width: 16px;
  height: 16px;
}

.vtx-select {
  background: #fff;
  color: #334155;
  padding: 0 34px 0 12px;
  min-width: 150px;
}

.vtx-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.vtx-kpi,
.vtx-panel {
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(15,23,42,.055);
}

.vtx-kpi {
  padding: 20px;
  min-height: 152px;
  transition: box-shadow .18s ease, transform .18s ease;
}

.vtx-kpi:hover,
.vtx-panel:hover {
  box-shadow: 0 20px 44px rgba(15,23,42,.08);
}

.vtx-kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.vtx-kpi-icon svg {
  width: 19px;
  height: 19px;
}

.vtx-kpi-icon.blue { background: rgba(37,99,235,.08); color: #2563eb; }
.vtx-kpi-icon.green { background: rgba(16,185,129,.09); color: #10b981; }
.vtx-kpi-icon.purple { background: rgba(139,92,246,.09); color: #8b5cf6; }
.vtx-kpi-icon.amber { background: rgba(245,158,11,.1); color: #f59e0b; }

.vtx-kpi p {
  margin: 0 0 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.vtx-kpi strong {
  display: block;
  color: #0f172a;
  font-family: "Plus Jakarta Sans", Inter, Arial, sans-serif;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.vtx-kpi small {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-top: 7px;
}

.vtx-meta-card {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 22px 24px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  border: 1px solid rgba(37,99,235,.4);
}

.vtx-meta-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.vtx-avatar-main {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-weight: 800;
}

.vtx-meta-card h2 {
  margin: 0;
  font-size: 19px;
  font-family: "Plus Jakarta Sans", Inter, Arial, sans-serif;
  font-weight: 800;
}

.vtx-meta-card p,
.vtx-meta-card small {
  color: rgba(255,255,255,.76);
}

.vtx-meta-right {
  text-align: right;
}

.vtx-meta-right strong {
  display: block;
  font-family: "Plus Jakarta Sans", Inter, Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
}

.vtx-meta-right span {
  display: inline-flex;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f59e0b;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.vtx-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, .85fr);
  gap: 18px;
  margin-bottom: 18px;
}

.vtx-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.vtx-panel {
  padding: 22px;
}

.vtx-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.vtx-panel h3,
.vtx-panel-title h3 {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
}

.vtx-panel p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
}

.vtx-mini-totals {
  display: flex;
  gap: 28px;
}

.vtx-mini-totals div {
  text-align: right;
}

.vtx-mini-totals small {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-bottom: 2px;
}

.vtx-mini-totals strong {
  font-family: "Plus Jakarta Sans", Inter, Arial, sans-serif;
  font-size: 18px;
  color: #2563eb;
  font-weight: 800;
}

.vtx-mini-totals div:nth-child(2) strong {
  color: #059669;
}

.vtx-bars {
  display: grid;
  gap: 18px;
}

.vtx-bar-row {
  display: grid;
  grid-template-columns: 80px 1fr 48px;
  align-items: center;
  gap: 14px;
}

.vtx-bar-label strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}

.vtx-bar-label small {
  display: block;
  color: #64748b;
  font-size: 11px;
  margin-top: 3px;
}

.vtx-bar-track {
  height: 42px;
  background: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
}

.vtx-bar-track span {
  height: 100%;
  min-width: 112px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 14px;
  color: #fff;
  border-radius: 10px;
  background: linear-gradient(90deg, #10b981, #059669);
  box-shadow: 0 2px 8px rgba(16,185,129,.3);
}

.vtx-bar-track b {
  font-size: 13px;
  font-weight: 800;
}

.vtx-bar-row > em {
  font-style: normal;
  color: #059669;
  text-align: right;
  font-size: 12px;
  font-weight: 800;
}

.vtx-insights {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(15,23,42,.08);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.vtx-insights div {
  border-radius: 10px;
  padding: 12px;
  border: 1px solid;
}

.vtx-insights div:nth-child(1) { background: #eff6ff; border-color: #dbeafe; }
.vtx-insights div:nth-child(2) { background: #ecfdf5; border-color: #d1fae5; }
.vtx-insights div:nth-child(3) { background: #f5f3ff; border-color: #ede9fe; }

.vtx-insights small {
  display: block;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.vtx-insights div:nth-child(2) small { color: #059669; }
.vtx-insights div:nth-child(3) small { color: #7c3aed; }

.vtx-insights strong {
  color: #0f172a;
  font-size: 13px;
}

.vtx-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.vtx-panel-title span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #2563eb;
}

.vtx-panel-title svg {
  width: 18px;
  height: 18px;
}

.vtx-products,
.vtx-sellers,
.vtx-locations {
  display: grid;
  gap: 12px;
}

.vtx-products div,
.vtx-locations div,
.vtx-sellers div {
  position: relative;
  border-bottom: 1px solid rgba(15,23,42,.08);
  padding-bottom: 12px;
}

.vtx-products div:last-child,
.vtx-locations div:last-child,
.vtx-sellers div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.vtx-products b,
.vtx-locations b,
.vtx-sellers b {
  display: block;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  padding-right: 36px;
}

.vtx-products small,
.vtx-locations small,
.vtx-sellers small,
.vtx-products em {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-top: 3px;
  font-style: normal;
}

.vtx-products span {
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: #f59e0b;
  font-size: 12px;
  font-weight: 800;
}

.vtx-products div:nth-child(2) span { background: #94a3b8; }
.vtx-products div:nth-child(3) span { background: #d97706; }
.vtx-products div:nth-child(n+4) span { background: #64748b; }

.vtx-products strong,
.vtx-locations strong,
.vtx-sellers strong {
  display: block;
  margin-top: 5px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}

.vtx-sellers div {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  column-gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 10px;
}

.vtx-sellers span {
  width: 38px;
  height: 38px;
  grid-row: span 2;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
}

.vtx-sellers .gold { background: #f59e0b; }
.vtx-sellers .silver { background: #94a3b8; }
.vtx-sellers .bronze { background: #cd7f32; }

.vtx-sellers b {
  padding-right: 0;
}

.vtx-sellers strong {
  grid-column: 3;
  grid-row: 1 / span 2;
  margin: 0;
  white-space: nowrap;
}

.vtx-sellers i {
  grid-column: 2 / 4;
  height: 6px;
  background: #10b981;
  border-radius: 999px;
  display: block;
  margin-top: 7px;
}

.vtx-locations div {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  column-gap: 12px;
  align-items: center;
  padding-bottom: 13px;
}

.vtx-locations span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #2563eb;
  background: rgba(37,99,235,.12);
  font-weight: 800;
}

.vtx-locations strong {
  grid-column: 3;
  grid-row: 1 / span 2;
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 1280px) {
  .vtx-kpis { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .vtx-content-grid, .vtx-bottom-grid { grid-template-columns: 1fr; }
}
/* ===== Fim Dashboard Figma Vertice preciso ===== */
