/* Acabamento premium da navegação existente. Apenas CSS; sem tocar na estrutura. */
.sidebar {
  --sidebar-accent:#f27616;
  --sidebar-accent-deep:#d95708;
  --sidebar-bg:#f7f8fa;
  --sidebar-surface:#fff;
  --sidebar-line:#e6e9ee;
  --sidebar-text:#242a33;
  --sidebar-muted:#6d7785;
  background:var(--sidebar-bg);
  border-right:1px solid var(--sidebar-line);
  color:var(--sidebar-text);
  box-shadow:5px 0 24px rgba(24,35,50,.07);
  scrollbar-color:#d2d8e1 transparent;
  width:286px;
}
.app-shell { --sidebar:286px; }
.sidebar::before { display:none; }
.sidebar .sidebar-brand {
  appearance:none;
  -webkit-appearance:none;
  display:flex;
  width:100%;
  align-items:center;
  text-align:left;
  font:inherit;
  color:inherit;
  cursor:pointer;
  position:relative;
  isolation:isolate;
  min-height:96px;
  padding:8px 14px 12px;
  gap:7px;
  overflow:hidden;
  border-bottom:1px solid rgba(242,118,22,.17);
  background:linear-gradient(112deg,#fff 0%,#fbfbfc 65%,#fff5eb 100%);
  transition:filter .18s ease,background-color .18s ease;
}
.sidebar .sidebar-brand:hover { filter:brightness(.975); }
.sidebar .sidebar-brand:focus-visible { outline:3px solid #f27616; outline-offset:-4px; }
.sidebar .sidebar-brand-copy { display:flex; flex-direction:column; align-items:flex-start; }
.sidebar .sidebar-brand::before {
  content:""; position:absolute; z-index:-1; inset:-20px -30px -10px 42%;
  background:linear-gradient(125deg,transparent 30%,rgba(245,112,13,.08) 31%,rgba(245,112,13,.38) 32%,transparent 34%),linear-gradient(132deg,transparent 52%,rgba(255,145,30,.2) 53%,transparent 57%);
  transform:skewX(-14deg); pointer-events:none;
}
.sidebar .sidebar-brand::after {
  content:""; position:absolute; z-index:-1; width:138px; height:14px; left:78px; top:53px;
  border-bottom:3px solid #f27616; border-radius:0 0 80% 60%; transform:rotate(-8deg); opacity:.95;
  filter:drop-shadow(0 0 7px rgba(242,118,22,.65)); pointer-events:none;
}
.sidebar .sidebar-brand strong { color:#111318; font-size:30px; font-weight:900; letter-spacing:-.075em; line-height:.95; text-shadow:0 2px 8px rgba(0,0,0,.07); }
.sidebar .sidebar-brand span { color:#20242b; font-size:13px; font-weight:650; letter-spacing:-.025em; }
.sidebar .sidebar-brand .brand-mark,
.sidebar .sidebar-brand .sidebar-brand-logo {
  display:grid;
  place-items:center;
  flex-basis:54px;
  width:54px;
  height:50px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.sidebar .sidebar-brand .sidebar-brand-logo svg { width:52px; height:48px; fill:none; stroke:#ff790a; stroke-width:4.1; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 2px 5px rgba(255,112,0,.38)); }
.sidebar .sidebar-theme-toggle {
  position:relative;
  display:grid;
  grid-template-columns:30px minmax(0,1fr) 38px;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:48px;
  margin:5px 14px 10px;
  width:calc(100% - 28px);
  padding:6px 11px;
  overflow:visible;
  border:1px solid #e8e9ec;
  border-radius:14px;
  color:#282b31;
  background:#fff;
  box-shadow:0 6px 17px rgba(24,35,50,.08);
  text-align:left;
}
.sidebar .sidebar-theme-toggle > span { display:grid; place-items:center; width:26px; height:26px; color:#f27616; background:#fff2e7; border-radius:8px; font-size:20px; line-height:1; }
.sidebar .sidebar-theme-toggle > b { font-size:12px; font-weight:700; }
.sidebar .sidebar-theme-toggle::after { content:""; width:36px; height:20px; grid-column:3; grid-row:1; border-radius:999px; background:#f27616; box-shadow:inset 0 1px 2px rgba(75,30,0,.18); }
.sidebar .sidebar-theme-toggle::before { content:""; z-index:1; width:14px; height:14px; grid-column:3; grid-row:1; justify-self:end; margin-right:3px; border-radius:50%; background:white; box-shadow:0 1px 4px rgba(0,0,0,.2); transition:transform .18s ease; }
.sidebar .sidebar-theme-toggle:hover { border-color:#f3c49f; background:#fffaf6; }
.sidebar .sidebar-theme-toggle:focus-visible { outline:2px solid #ef7419; outline-offset:2px; }
.sidebar .sidebar-collapse-button {
  border-color:var(--sidebar-line);
  background:var(--sidebar-surface);
  color:#5e6672;
  box-shadow:0 3px 10px rgba(24,35,50,.09);
}
.sidebar .sidebar-collapse-button:hover { border-color:#f4b17e; background:#fff1e6; color:var(--sidebar-accent-deep); }
.sidebar-scroll { scrollbar-color:#d2d8e1 transparent; }
.sidebar-scroll::-webkit-scrollbar-thumb { background:#d2d8e1; border-color:var(--sidebar-bg); }
.sidebar .nav-item {
  --nav-accent:var(--sidebar-accent);
  min-height:44px;
  padding:4px 10px;
  border:1px solid #f0f0f2;
  border-radius:12px;
  color:#353942;
  background:#fff;
  box-shadow:0 3px 8px rgba(31,36,46,.075);
  transition:background-color .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.sidebar .nav-item::before { width:3px; background:transparent; box-shadow:none; }
.sidebar .nav-item::after { color:#a1a8b2; }
.sidebar .nav-item > .nav-icon {
  flex-basis:32px;
  width:32px;
  height:32px;
  color:var(--sidebar-accent-deep);
  background:transparent;
  border:0;
  border-radius:10px;
  box-shadow:none;
}
.sidebar .nav-item > .nav-icon svg { width:21px; height:21px; stroke-width:2.15; }
.sidebar .nav-item > .nav-icon svg { stroke:currentColor; }
.sidebar .nav-item:hover {
  color:#222830;
  background:#fffaf6;
  border-color:#f5cfb2;
  box-shadow:0 5px 12px rgba(48,37,28,.09);
  transform:translateX(1px);
}
.sidebar .nav-item:hover > .nav-icon { color:var(--sidebar-accent-deep); background:#ffeadb; border-color:#f2c5a5; }
.sidebar .nav-item.active {
  color:#fff;
  min-height:52px;
  background:linear-gradient(110deg,#ff9f1c 0%,#f06a00 100%);
  border-color:#ef790c;
  border-radius:17px;
  box-shadow:0 7px 17px rgba(217,87,8,.25),inset 0 1px rgba(255,255,255,.25);
}
.sidebar .nav-item.active::before { background:#fff; box-shadow:none; }
.sidebar .nav-item.active::after { color:#fff3e8; }
.sidebar .nav-item.active > .nav-icon {
  color:#fff;
  background:rgba(255,255,255,.16);
  border-color:rgba(255,255,255,.22);
  box-shadow:none;
}
.sidebar .nav-item:focus-visible,
.sidebar .nav-group > summary:focus-visible,
.sidebar .sidebar-projects button:focus-visible { outline:2px solid #ef7419; outline-offset:2px; }
.sidebar .nav-label { color:inherit; font-size:12px; font-weight:650; letter-spacing:-.01em; }
.sidebar .nav-item > em,
.sidebar .nav-item .chat-nav-badge {
  border-radius:999px;
}
.sidebar .nav-separator { display:none; }
.sidebar .nav-group {
  margin:9px 0 0;
  padding-top:7px;
  border-top:1px solid var(--sidebar-line);
}
.sidebar .nav-group:first-of-type { border-top:0; padding-top:0; margin-top:3px; }
.sidebar .nav-group > summary {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:36px;
  padding:5px 4px;
  color:#21252b;
  font-size:11px;
  font-weight:850;
  letter-spacing:.015em;
}
.sidebar .nav-group > summary::before { display:inline-block; flex:0 0 26px; width:26px; height:26px; background-color:#f27616; content:""; -webkit-mask:center/contain no-repeat; mask:center/contain no-repeat; mask-mode:alpha; }
.sidebar .nav-group[data-nav-group="sales"] > summary::before { -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 4h2l2.2 11.2A2.3 2.3 0 0 0 9.5 17h8.9a2.3 2.3 0 0 0 2.2-1.7L22 8H6'/%3E%3Cpath fill='none' stroke='black' stroke-width='1.6' d='M8 11h12M9 14h10'/%3E%3Ccircle cx='10' cy='21' r='1.7' fill='black'/%3E%3Ccircle cx='18' cy='21' r='1.7' fill='black'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 4h2l2.2 11.2A2.3 2.3 0 0 0 9.5 17h8.9a2.3 2.3 0 0 0 2.2-1.7L22 8H6'/%3E%3Cpath fill='none' stroke='black' stroke-width='1.6' d='M8 11h12M9 14h10'/%3E%3Ccircle cx='10' cy='21' r='1.7' fill='black'/%3E%3Ccircle cx='18' cy='21' r='1.7' fill='black'/%3E%3C/svg%3E"); }
.sidebar .nav-group[data-nav-group="advertising"] > summary::before { -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 11v2a2 2 0 0 0 2 2h2l2 5h3l-2-5h2l9 4V5l-9 4H5a2 2 0 0 0-2 2Zm16-3v8M6 15v2'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 11v2a2 2 0 0 0 2 2h2l2 5h3l-2-5h2l9 4V5l-9 4H5a2 2 0 0 0-2 2Zm16-3v8M6 15v2'/%3E%3C/svg%3E"); }
.sidebar .nav-group[data-nav-group="stock"] > summary::before { -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' d='m12 3 9 5-9 5-9-5 9-5Zm-9 9 9 5 9-5M3 16l9 5 9-5M12 13v8'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' d='m12 3 9 5-9 5-9-5 9-5Zm-9 9 9 5 9-5M3 16l9 5 9-5M12 13v8'/%3E%3C/svg%3E"); }
.sidebar .nav-group[data-nav-group="team"] > summary::before,.sidebar .nav-group[data-nav-group="team_support"] > summary::before { -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='8' r='3' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' d='M3 20v-1a6 6 0 0 1 12 0v1m2-9a3 3 0 1 0 0-6m4 15v-1a5 5 0 0 0-3.5-4.8'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='9' cy='8' r='3' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' d='M3 20v-1a6 6 0 0 1 12 0v1m2-9a3 3 0 1 0 0-6m4 15v-1a5 5 0 0 0-3.5-4.8'/%3E%3C/svg%3E"); }
.sidebar .nav-group[data-nav-group="reports"] > summary::before { -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' d='M4 20V11h4v9m4 0V4h4v16m4 0v-7h-4M2 20h20'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' d='M4 20V11h4v9m4 0V4h4v16m4 0v-7h-4M2 20h20'/%3E%3C/svg%3E"); }
.sidebar .nav-group[data-nav-group="admin"] > summary::before { -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm8 4a8 8 0 0 0-.2-1.8l1.6-1.3-1.6-2.8-2 .7a8 8 0 0 0-3.1-1.8L14.4 3h-3.2l-.4 2a8 8 0 0 0-3.1 1.8l-2-.7-1.6 2.8 1.6 1.3a8 8 0 0 0 0 3.6l-1.6 1.3 1.6 2.8 2-.7a8 8 0 0 0 3.1 1.8l.4 2h3.2l.4-2a8 8 0 0 0 3.1-1.8l2 .7 1.6-2.8-1.6-1.3A8 8 0 0 0 20 12Z'/%3E%3C/svg%3E"); mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm8 4a8 8 0 0 0-.2-1.8l1.6-1.3-1.6-2.8-2 .7a8 8 0 0 0-3.1-1.8L14.4 3h-3.2l-.4 2a8 8 0 0 0-3.1 1.8l-2-.7-1.6 2.8 1.6 1.3a8 8 0 0 0 0 3.6l-1.6 1.3 1.6 2.8 2-.7a8 8 0 0 0 3.1 1.8l.4 2h3.2l.4-2a8 8 0 0 0 3.1-1.8l2 .7 1.6-2.8-1.6-1.3A8 8 0 0 0 20 12Z'/%3E%3C/svg%3E"); }
.sidebar .nav-group > summary::after { margin-left:auto; color:#343941; font-size:23px; }
.sidebar .nav-group > summary:hover { color:#d95708; background:transparent; }
.sidebar .nav-group.has-active > summary { color:#c84b05; }
.sidebar .nav-group-items { display:grid; gap:4px; padding:2px 0 3px; }
.sidebar .nav-separator {
  margin:15px 8px 5px;
  color:#89919c;
}
.sidebar .sidebar-projects { scrollbar-color:#d2d8e1 transparent; }
.sidebar .sidebar-section-title { color:#858e99; }
.sidebar .sidebar-section-title > span::after { background:linear-gradient(90deg,var(--sidebar-line),transparent); }
.sidebar .project-nav { color:#505a67; border-radius:10px; }
.sidebar .project-nav:hover { color:#242a33; background:#fff; border-color:#ece1d8; }
.sidebar .project-folder-icon { color:var(--sidebar-accent-deep); background:#fff3e9; border-color:#f5dfce; }
.sidebar .sidebar-user {
  background:#fff;
  border:1px solid var(--sidebar-line);
  border-radius:13px;
  box-shadow:0 3px 11px rgba(24,35,50,.06);
}
.sidebar .sidebar-user strong { color:#252b33; }
.sidebar .sidebar-user span { color:#79828d; }
.sidebar .sidebar-logout { color:#626c78; border:1px solid var(--sidebar-line); background:#fff; }
.sidebar .sidebar-logout:hover { color:#b94400; border-color:#f0c9ae; background:#fff2e9; }
.sidebar .mini-button { color:#b94400; background:#fff3e9; border-color:#f2d6c2; }
.sidebar .mini-button:hover { color:#963600; background:#ffe8d7; border-color:#edb98f; }

html[data-theme="black"] .sidebar {
  --sidebar-bg:#0b111b;
  --sidebar-surface:#121b28;
  --sidebar-line:#263242;
  --sidebar-text:#e8edf4;
  --sidebar-muted:#9ba8b8;
  background:radial-gradient(ellipse at 0 0,rgba(242,118,22,.08),transparent 36%),linear-gradient(180deg,#0c1420 0%,#090f18 100%);
  border-right-color:#202c3a;
  box-shadow:7px 0 24px rgba(0,0,0,.18);
}
html[data-theme="black"] .sidebar .sidebar-brand { border-bottom-color:#263242; }
html[data-theme="black"] .sidebar .sidebar-brand strong { color:#f5f7fa; }
html[data-theme="black"] .sidebar .sidebar-brand span { color:#e4e7eb; }
html[data-theme="black"] .sidebar .sidebar-brand { background:linear-gradient(112deg,#070b10 0%,#0b1016 66%,#17100b 100%); }
html[data-theme="black"] .sidebar .sidebar-brand strong { color:#f7f8fa; text-shadow:0 2px 8px rgba(0,0,0,.3); }
html[data-theme="black"] .sidebar .sidebar-brand span { color:#f2f3f5; }
html[data-theme="black"] .sidebar .sidebar-brand { background:linear-gradient(112deg,#101720 0%,#111923 65%,#24180f 100%); }
html[data-theme="black"] .sidebar .sidebar-brand .brand-mark,
html[data-theme="black"] .sidebar .sidebar-brand .sidebar-brand-logo { border:0; background:transparent; }
html[data-theme="black"] .sidebar .sidebar-theme-toggle { color:#f4f5f7; border-color:#27303c; background:linear-gradient(135deg,#171c23,#11161d); box-shadow:0 7px 18px rgba(0,0,0,.35); }
html[data-theme="black"] .sidebar .sidebar-theme-toggle > span { color:#fff; background:transparent; }
html[data-theme="black"] .sidebar .sidebar-theme-toggle:hover { border-color:#59402a; background:#191b1f; }
html[data-theme="black"] .sidebar .sidebar-collapse-button { color:#dbe3ed; border-color:#344255; background:#151e2a; }
html[data-theme="black"] .sidebar .sidebar-collapse-button:hover { color:#ffb06d; border-color:#875126; background:#261b13; }
html[data-theme="black"] .sidebar-scroll { scrollbar-color:#475568 transparent; }
html[data-theme="black"] .sidebar-scroll::-webkit-scrollbar-thumb { background:#475568; border-color:#0b111b; }
html[data-theme="black"] .sidebar .nav-item { color:#c6cfda; }
html[data-theme="black"] .sidebar .nav-item::after { color:#8290a2; }
html[data-theme="black"] .sidebar .nav-item { background:linear-gradient(145deg,#191e25,#13181f); border-color:#242b34; box-shadow:0 5px 12px rgba(0,0,0,.32),inset 0 1px rgba(255,255,255,.035); }
html[data-theme="black"] .sidebar .nav-item > .nav-icon { color:#ff9a4d; background:transparent; border-color:transparent; }
html[data-theme="black"] .sidebar .nav-item:hover { color:#fff; background:#20262f; border-color:#3b4654; box-shadow:0 5px 15px rgba(0,0,0,.36); }
html[data-theme="black"] .sidebar .nav-item:hover > .nav-icon { color:#ffb06d; background:transparent; border-color:transparent; }
html[data-theme="black"] .sidebar .nav-item.active { color:#fff; background:linear-gradient(110deg,#ff9f1c 0%,#f06a00 100%); border-color:#ff8b18; box-shadow:0 7px 18px rgba(217,87,8,.27),inset 0 1px rgba(255,255,255,.2); }
html[data-theme="black"] .sidebar .nav-item.active > .nav-icon { color:#fff; background:rgba(255,255,255,.16); border-color:transparent; }
html[data-theme="black"] .sidebar .nav-separator { color:#9ba8b8; }
html[data-theme="black"] .sidebar .nav-separator::after { background:linear-gradient(90deg,#344255,transparent); }
html[data-theme="black"] .sidebar .nav-group { border-top-color:#2b3038; }
html[data-theme="black"] .sidebar .nav-group > summary { color:#f0f1f2; }
html[data-theme="black"] .sidebar .nav-group > summary::after { color:#e9e9ea; }
html[data-theme="black"] .sidebar .nav-group > summary:hover { color:#ffb06d; background:transparent; }
html[data-theme="black"] .sidebar .nav-group.has-active > summary { color:#ffad6b; }
html[data-theme="black"] .sidebar .sidebar-section-title { color:#9ba8b8; }
html[data-theme="black"] .sidebar .sidebar-section-title > span::after { background:linear-gradient(90deg,#344255,transparent); }
html[data-theme="black"] .sidebar .project-nav { color:#b7c1cd; }
html[data-theme="black"] .sidebar .project-nav:hover { color:#fff; background:#17212f; border-color:#344255; }
html[data-theme="black"] .sidebar .project-folder-icon { color:#ff9a4d; background:#1c1a18; border-color:#403020; }
html[data-theme="black"] .sidebar .sidebar-user { background:linear-gradient(135deg,#141e2b,#101722); border-color:#2d3a4c; box-shadow:0 5px 15px rgba(0,0,0,.17); }
html[data-theme="black"] .sidebar .sidebar-user strong { color:#f2f5f8; }
html[data-theme="black"] .sidebar .sidebar-user span { color:#9ba8b8; }
html[data-theme="black"] .sidebar .sidebar-logout { color:#c3ccd7; border-color:#344255; background:#17212d; }
html[data-theme="black"] .sidebar .sidebar-logout:hover { color:#ffb06d; border-color:#70451f; background:#261b13; }
html[data-theme="black"] .sidebar .mini-button { color:#ffad6b; background:#211a15; border-color:#513722; }
html[data-theme="black"] .sidebar .mini-button:hover { color:#ffd0a7; background:#302217; border-color:#805126; }

@media (prefers-reduced-motion:reduce) {
  .sidebar .nav-item,.sidebar .sidebar-collapse-button { transition:none; }
}
@media (min-width:821px) {
  .app-shell.sidebar-collapsed { --sidebar:76px; grid-template-columns:76px minmax(0,1fr); }
  .app-shell.sidebar-collapsed .sidebar { width:76px; }
  .app-shell.sidebar-collapsed .sidebar-theme-toggle { display:grid; grid-template-columns:1fr; justify-items:center; width:45px; min-height:44px; margin:8px auto; padding:5px; }
  .app-shell.sidebar-collapsed .sidebar-theme-toggle > b,.app-shell.sidebar-collapsed .sidebar-theme-toggle::before,.app-shell.sidebar-collapsed .sidebar-theme-toggle::after { display:none; }
  .app-shell.sidebar-collapsed .sidebar-theme-toggle > span { width:31px; height:31px; }
  .app-shell.sidebar-collapsed .sidebar .nav-group > summary::before { flex-basis:34px; width:34px; }
}
@media (max-width:820px) {
  .app-shell { --sidebar:292px; }
  .sidebar { width:min(310px,88vw); }
}
