/* Dashboard KGV — acabamento baseado na referência enviada; somente apresentação. */
body:not(:has(.dashboard-v8)) .topbar-brand { display:none; }
body:has(.dashboard-v8) .topbar {
  min-height: 62px;
  color: #f8fafc;
  border-color: #172235;
  background: linear-gradient(105deg, #071322 0%, #0b192b 60%, #101b2b 100%);
  box-shadow: 0 4px 18px rgba(5, 13, 25, .18);
}
body:has(.dashboard-v8) .topbar :is(button, a) { color: inherit; }
body:has(.dashboard-v8) .topbar-brand {
  display:flex; flex:0 0 auto; align-items:center; gap:9px; min-width:174px; margin:0 18px 0 4px;
  padding:0; border:0; color:#fff; background:transparent; text-align:left; cursor:pointer;
}
body:has(.dashboard-v8) .topbar-brand > span:first-child { display:grid; width:42px; height:42px; place-items:center; }
body:has(.dashboard-v8) .topbar-brand svg { width:42px; height:42px; fill:none; stroke:#ff8200; stroke-width:4.1; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 2px 5px rgba(255,112,0,.35)); }
body:has(.dashboard-v8) .topbar-brand > span:last-child { display:flex; flex-direction:column; line-height:1; }
body:has(.dashboard-v8) .topbar-brand strong { color:#fff; font-size:22px; font-weight:900; letter-spacing:-.07em; }
body:has(.dashboard-v8) .topbar-brand small { margin-top:3px; color:#d8e0ea; font-size:10px; font-weight:600; }
body:has(.dashboard-v8) .global-search {
  border: 1px solid #46566b;
  border-radius: 18px;
  background: rgba(255,255,255,.09);
  color: #cbd5e1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
body:has(.dashboard-v8) .global-search input { color: #fff; }
body:has(.dashboard-v8) .global-search input::placeholder { color: #c3ccd7; }
body:has(.dashboard-v8) .global-search kbd { color:#fff; border-color:#738197; background:#26364b; }
body:has(.dashboard-v8) .notification-button,
body:has(.dashboard-v8) #new-task-button {
  min-height: 40px;
  border-radius: 18px;
}
body:has(.dashboard-v8) #new-task-button {
  border-color: #ff7900;
  background: linear-gradient(135deg,#ff9a00,#ff6500);
  box-shadow: 0 7px 18px rgba(255,104,0,.23);
}

.dashboard-v8 {
  --ref-orange: #ff7000;
  --ref-orange-dark: #d94900;
  --ref-ink: #14243c;
  --ref-muted: #61738d;
  --ref-line: #dce4ee;
  max-width: 1680px;
  margin-inline: auto;
  padding: 20px 28px 40px;
  color: var(--ref-ink);
  background: #f7f8fb;
}
.dashboard-v8 .dashboard-v6-header {
  position: relative;
  min-height: 92px;
  margin: 0 0 12px;
  padding: 0 0 0 24px;
  align-items: center;
}
.dashboard-v8 .dashboard-v6-header::before {
  content:""; position:absolute; left:0; top:8px; bottom:8px; width:4px;
  border-radius:5px; background:linear-gradient(#ff9b00,#ff5b00);
}
.dashboard-v8 .dashboard-v6-header h1 { margin:0 0 3px; color:var(--ref-ink); font-size:27px; letter-spacing:-.04em; }
.dashboard-v8 .dashboard-v6-header p { margin:0 0 8px; color:var(--ref-muted); }
.dashboard-v8 .dashboard-v6-status { gap:8px; color:#52647c; }
.dashboard-v8 .dashboard-v6-header-actions { gap:12px; }
.dashboard-v8 .dashboard-v6-header-actions time,
.dashboard-v8 .dashboard-v6-header-actions .button {
  min-height:42px; padding:0 15px; border:1px solid #d9e1eb; border-radius:16px;
  background:#fff; color:#263a55; box-shadow:0 5px 14px rgba(27,45,70,.06);
}
.dashboard-v8 .dashboard-v6-header-actions .button { color:var(--ref-orange-dark); border-color:#ff9b48; }
.dashboard-v8 .dashboard-command-tabs {
  display:flex; gap:4px; width:max-content; max-width:100%; margin:0 0 12px;
  padding:5px; border:0; border-bottom:1px solid var(--ref-line); border-radius:0;
  background:transparent; box-shadow:none;
}
.dashboard-v8 .dashboard-command-tabs button {
  min-height:42px; padding:0 16px; border:0; border-radius:14px 14px 8px 8px;
  color:#1d2b42; background:transparent; transition:background .18s ease,color .18s ease,transform .18s ease;
}
.dashboard-v8 .dashboard-command-tabs button:hover { color:var(--ref-orange-dark); background:#fff2e7; transform:translateY(-1px); }
.dashboard-v8 .dashboard-command-tabs button.active {
  color:#fff; background:linear-gradient(135deg,#ff9900,#ff6500);
  box-shadow:0 7px 16px rgba(255,112,0,.22);
}
.dashboard-v8 .dashboard-command-tabs button i { color:var(--ref-orange-dark); background:#fff0e4; }
.dashboard-v8 .dashboard-command-tabs button.active i { color:#fff; background:rgba(255,255,255,.2); }
.dashboard-v8 .dashboard-panel-sales:not(.dashboard-today-sales-block) { margin:0 0 12px; }
.dashboard-v8 .dashboard-v73-kpis,
.dashboard-v8 .dashboard-v8-kpis { margin:0; }
.dashboard-v8 .dashboard-kpi-strip {
  display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px;
  overflow:visible; scroll-snap-type:none;
}
.dashboard-v8 .dashboard-kpi-strip .dashboard-kpi {
  position:relative; display:flex; min-width:0; min-height:108px; flex-direction:column;
  justify-content:center; align-items:flex-start; overflow:hidden; padding:17px 14px 14px 68px;
  border:1px solid #f0d8c7; border-radius:17px; color:var(--ref-ink);
  background:linear-gradient(135deg,#fff 0%,#fff 78%,#fff2e7 100%);
  box-shadow:0 5px 14px rgba(36,48,66,.07); text-align:left;
  transition:transform .18s ease,box-shadow .18s ease;
}
.dashboard-v8 .dashboard-kpi-strip .dashboard-kpi:hover { transform:translateY(-2px); box-shadow:0 10px 22px rgba(36,48,66,.12); }
.dashboard-v8 .dashboard-kpi-strip .dashboard-kpi::before {
  content:""; position:absolute; left:15px; top:17px; display:grid; width:40px; height:40px;
  place-items:center; border-radius:50%; color:#f46a00; background:#fff0e4;
  font-size:21px; font-weight:800; box-shadow:inset 0 0 0 1px #ffdfc7;
}
.dashboard-v8 .dashboard-kpi-strip .dashboard-kpi:nth-child(1)::before { content:"↗"; }
.dashboard-v8 .dashboard-kpi-strip .dashboard-kpi:nth-child(2)::before { content:"≋"; }
.dashboard-v8 .dashboard-kpi-strip .dashboard-kpi:nth-child(3)::before { content:"%"; }
.dashboard-v8 .dashboard-kpi-strip .dashboard-kpi:nth-child(4)::before { content:"▣"; }
.dashboard-v8 .dashboard-kpi-strip .dashboard-kpi:nth-child(5)::before { content:"◇"; }
.dashboard-v8 .dashboard-kpi-strip .dashboard-kpi::after {
  content:""; position:absolute; right:-19px; bottom:-34px; width:65px; height:65px;
  border:7px solid rgba(255,128,23,.1); border-radius:18px; transform:rotate(38deg);
}
.dashboard-v8 .dashboard-kpi-strip .dashboard-kpi > span { color:#33435b; font-size:10px; font-weight:800; letter-spacing:.055em; text-transform:uppercase; }
.dashboard-v8 .dashboard-kpi-strip .dashboard-kpi > strong { margin:5px 0 1px; color:#13243c; font-size:25px; line-height:1.12; letter-spacing:-.045em; }
.dashboard-v8 .dashboard-kpi-strip .dashboard-kpi > small { overflow:hidden; width:100%; color:#62738a; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-v8 .dashboard-kpi-strip .dashboard-kpi-primary { border-color:#f1c9aa; }
.dashboard-v8 #daily-goal-panel { margin:0 0 12px; }
.dashboard-v8 #daily-goal-panel .daily-goal {
  margin:0; padding:17px 18px 12px; border:1px solid #ffc68e; border-radius:18px;
  background:linear-gradient(125deg,#fff 0%,#fff 75%,#fff4e8 100%);
  box-shadow:0 5px 16px rgba(33,48,70,.06);
}
.dashboard-v8 #daily-goal-panel .daily-goal-track { height:13px; border-radius:99px; background:#e3e7ed; }
.dashboard-v8 #daily-goal-panel .daily-goal-fill { border-radius:99px; background:linear-gradient(90deg,#ff9300,#ff5900); box-shadow:0 0 12px rgba(255,106,0,.2); }
.dashboard-v8 #daily-goal-panel .daily-goal h2 { color:#14243c; }
.dashboard-v8 #daily-goal-panel .daily-goal-label,
.dashboard-v8 #daily-goal-panel .daily-goal-details summary { color:#d74800; }
.dashboard-v8 #dashboard-cancelled-sales {
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px 14px; align-items:center;
  margin:0 0 12px; padding:11px 14px; border:1px solid #f3bac7; border-left:4px solid #ed5575;
  border-radius:16px; background:linear-gradient(100deg,#fff8fa,#fff 85%); box-shadow:0 4px 12px rgba(35,45,60,.045);
}
.dashboard-v8 #dashboard-cancelled-sales .cancelled-compact-heading { gap:12px; }
.dashboard-v8 #dashboard-cancelled-sales .cancelled-marker { background:#ffe4eb; color:#d83e60; }
.dashboard-v8 #dashboard-cancelled-sales .cancelled-compact-heading > div:nth-child(2) strong { color:#17263d; }
.dashboard-v8 #dashboard-cancelled-sales .cancelled-compact-value strong { color:#17263d; }
.dashboard-v8 #dashboard-cancelled-sales .cancelled-sync { grid-column:1/-1; }
.dashboard-v8 #dashboard-cancelled-sales .cancelled-expand summary { color:#d83e60; border-color:#f5b6c4; background:#fff; }
.dashboard-v8 #dashboard-shopee-live {
  overflow:hidden; margin:0 0 12px; border:1px solid #f1c4a2; border-radius:18px;
  background:#fff; box-shadow:0 5px 16px rgba(33,48,70,.06);
}
.dashboard-v8 #dashboard-shopee-live > header { min-height:42px; padding:0 16px; color:#9c3900; background:#fff3e9; border-bottom:1px solid #f4d1b7; }
.dashboard-v8 #dashboard-shopee-live > header button { color:#e65300; }
.dashboard-v8 #dashboard-shopee-live .home-shopee-kpis { gap:0; }
.dashboard-v8 #dashboard-shopee-live .home-shopee-kpis > button { min-height:92px; padding:14px 18px; border-right:1px solid #f0dfd3; }
.dashboard-v8 #dashboard-shopee-live .home-shopee-kpis > button:last-child { border-right:0; }
.dashboard-v8 #dashboard-shopee-live .home-shopee-kpis > button strong { color:#17263d; }
.dashboard-v8 #dashboard-shopee-live > footer { min-height:32px; padding:7px 16px; background:#fffaf6; border-top:1px solid #f4e3d8; }
.dashboard-v8 .dashboard-panel-logistics { margin:0 0 14px; }

html[data-theme="black"] body:has(.dashboard-v8) .topbar { background:linear-gradient(105deg,#05080e,#111a27); border-color:#202c3b; }
html[data-theme="black"] .dashboard-v8 { --ref-ink:#f0f4fa; --ref-muted:#9eacc0; --ref-line:#273548; color:#edf3fb; background:#0d1420; }
html[data-theme="black"] .dashboard-v8 .dashboard-v6-header h1,
html[data-theme="black"] .dashboard-v8 .dashboard-kpi-strip .dashboard-kpi > strong,
html[data-theme="black"] .dashboard-v8 #dashboard-cancelled-sales .cancelled-compact-heading > div:nth-child(2) strong,
html[data-theme="black"] .dashboard-v8 #dashboard-cancelled-sales .cancelled-compact-value strong,
html[data-theme="black"] .dashboard-v8 #dashboard-shopee-live .home-shopee-kpis > button strong { color:#f3f6fb; }
html[data-theme="black"] .dashboard-v8 .dashboard-command-tabs { border-color:#273548; }
html[data-theme="black"] .dashboard-v8 .dashboard-command-tabs button { color:#d5deeb; }
html[data-theme="black"] .dashboard-v8 .dashboard-command-tabs button.active { color:#fff; }
html[data-theme="black"] .dashboard-v8 .dashboard-command-tabs button:hover { background:#2a2018; }
html[data-theme="black"] .dashboard-v8 .dashboard-v6-header-actions :is(time,.button) { color:#e7edf5; border-color:#344358; background:#151f2e; }
html[data-theme="black"] .dashboard-v8 .dashboard-kpi-strip .dashboard-kpi { color:#edf3fb; border-color:#344052; background:linear-gradient(135deg,#172231,#121b28 78%,#2a211a); box-shadow:0 6px 16px rgba(0,0,0,.22); }
html[data-theme="black"] .dashboard-v8 .dashboard-kpi-strip .dashboard-kpi > span,
html[data-theme="black"] .dashboard-v8 .dashboard-kpi-strip .dashboard-kpi > small { color:#b5c1d1; }
html[data-theme="black"] .dashboard-v8 #daily-goal-panel .daily-goal { border-color:#70451f; background:linear-gradient(125deg,#151f2e,#141c28 75%,#282019); }
html[data-theme="black"] .dashboard-v8 #dashboard-cancelled-sales { border-color:#71394a; background:linear-gradient(100deg,#261720,#141b28 85%); }
html[data-theme="black"] .dashboard-v8 #dashboard-shopee-live { border-color:#704324; background:#141d2a; }
html[data-theme="black"] .dashboard-v8 #dashboard-shopee-live > header { color:#ffb47a; background:#2a201a; border-color:#55351f; }
html[data-theme="black"] .dashboard-v8 #dashboard-shopee-live .home-shopee-kpis > button { border-color:#344052; }
html[data-theme="black"] .dashboard-v8 #dashboard-shopee-live > footer { background:#171f2b; border-color:#344052; }

@media (max-width:1100px) {
  .dashboard-v8 { padding-inline:18px; }
  .dashboard-v8 .dashboard-kpi-strip { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:720px) {
  .dashboard-v8 { padding:14px 12px 28px; }
  .dashboard-v8 .dashboard-v6-header { min-height:0; padding-left:16px; align-items:flex-start; }
  .dashboard-v8 .dashboard-v6-header h1 { font-size:22px; }
  .dashboard-v8 .dashboard-v6-header-actions { flex-wrap:wrap; }
  .dashboard-v8 .dashboard-v6-header-actions time,.dashboard-v8 .dashboard-v6-header-actions .button { min-height:36px; padding-inline:10px; font-size:11px; }
  .dashboard-v8 .dashboard-command-tabs { width:100%; overflow-x:auto; }
  .dashboard-v8 .dashboard-command-tabs button { flex:0 0 auto; padding-inline:12px; }
  .dashboard-v8 .dashboard-kpi-strip { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .dashboard-v8 .dashboard-kpi-strip .dashboard-kpi { min-height:98px; padding:12px 9px 10px 54px; border-radius:13px; }
  .dashboard-v8 .dashboard-kpi-strip .dashboard-kpi::before { left:9px; top:13px; width:34px; height:34px; font-size:18px; }
  .dashboard-v8 .dashboard-kpi-strip .dashboard-kpi > strong { font-size:19px; }
  .dashboard-v8 #dashboard-cancelled-sales { grid-template-columns:1fr; }
  .dashboard-v8 #dashboard-cancelled-sales .cancelled-compact-heading { flex-wrap:wrap; }
  .dashboard-v8 #dashboard-cancelled-sales .cancelled-compact-value { margin-left:auto; }
  .dashboard-v8 #dashboard-shopee-live .home-shopee-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dashboard-v8 #dashboard-shopee-live .home-shopee-kpis > button { min-height:78px; padding:10px; border-bottom:1px solid #f0dfd3; }
}

/* Ajuste de fidelidade: página inicial sem a coluna fixa, com menu recolhido no hambúrguer como na referência. */
#app-view:has(.dashboard-v8) { display:grid; grid-template-columns:minmax(0,1fr); }
#app-view:has(.dashboard-v8) > .sidebar { position:fixed; z-index:120; inset:0 auto 0 0; width:var(--sidebar,264px); transform:translateX(-105%); box-shadow:20px 0 60px rgba(7,19,34,.3); transition:transform .22s ease; }
#app-view:has(.dashboard-v8) > .sidebar.open { transform:translateX(0); }
#app-view:has(.dashboard-v8) .sidebar-backdrop { position:fixed; z-index:110; inset:0; display:none; background:rgba(7,19,34,.48); }
#app-view:has(.dashboard-v8) .sidebar-backdrop.open { display:block; }
#app-view:has(.dashboard-v8) .workspace { grid-column:1; min-width:0; width:100%; }
#app-view:has(.dashboard-v8) #mobile-menu { display:inline-grid !important; width:40px; height:40px; flex:0 0 40px; color:#fff; border-color:transparent; background:transparent; font-size:22px; }
body:has(.dashboard-v8) .topbar { position:relative; height:66px; min-height:66px; padding:0 26px; gap:14px; overflow:hidden; }
body:has(.dashboard-v8) .topbar::after { content:""; position:absolute; z-index:0; top:0; right:0; width:48%; height:100%; pointer-events:none; background:linear-gradient(150deg,transparent 0 49%,rgba(246,78,0,.22) 49.4% 52%,transparent 52.4%),linear-gradient(158deg,transparent 0 63%,rgba(255,104,0,.48) 63.3% 68%,transparent 68.4%),linear-gradient(165deg,transparent 0 72%,rgba(255,137,0,.44) 72.3% 77%,transparent 77.4%); }
body:has(.dashboard-v8) .topbar > * { position:relative; z-index:1; }
body:has(.dashboard-v8) .topbar-brand { min-width:176px; margin:0 18px 0 0; }
body:has(.dashboard-v8) .global-search { width:min(510px,42vw); min-height:42px; }
.dashboard-v8 .dashboard-v6-header { min-height:102px; }
.dashboard-v8 .dashboard-v6-header h1 { font-size:28px; }
.dashboard-v8 .dashboard-command-tabs { margin-top:2px; }
.dashboard-v8 .dashboard-command-tabs button { position:relative; min-height:44px; padding:0 15px 0 46px; border-radius:16px 16px 11px 11px; font-size:13px; font-weight:800; }
.dashboard-v8 .dashboard-command-tabs button i { position:absolute; left:13px; top:11px; display:block; width:23px; height:23px; overflow:visible; padding:0; border-radius:0; color:transparent; background:transparent; font-size:0; }
.dashboard-v8 .dashboard-command-tabs button i::before { content:""; display:block; width:22px; height:22px; background:#25334a; mask:var(--tab-icon) center/contain no-repeat; -webkit-mask:var(--tab-icon) center/contain no-repeat; }
.dashboard-v8 .dashboard-command-tabs button:nth-child(1) { --tab-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M7 14h3v4H7zM12 9h3v9h-3zM17 5h3v13h-3z'/%3E%3C/svg%3E"); }
.dashboard-v8 .dashboard-command-tabs button:nth-child(2) { --tab-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E"); }
.dashboard-v8 .dashboard-command-tabs button:nth-child(3) { --tab-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h12v12H3zM15 11h4l3 4v4h-7z'/%3E%3Ccircle cx='7.5' cy='19' r='1.5'/%3E%3Ccircle cx='18.5' cy='19' r='1.5'/%3E%3C/svg%3E"); }
.dashboard-v8 .dashboard-command-tabs button:nth-child(4) { --tab-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.4 8.4 0 0 1-3.8-.9L3 21l1.9-5.7a8.4 8.4 0 0 1-.9-3.8A8.5 8.5 0 0 1 8.7 3.9a8.4 8.4 0 0 1 3.8-.9h.5a8.5 8.5 0 0 1 8 8z'/%3E%3C/svg%3E"); }
.dashboard-v8 .dashboard-command-tabs button:nth-child(5) { --tab-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 7v5h-5M4 17v-5h5'/%3E%3Cpath d='M5.6 9A7 7 0 0 1 18 6l2 2M4 16l2 2a7 7 0 0 0 12.4-3'/%3E%3C/svg%3E"); }
.dashboard-v8 .dashboard-command-tabs button.active i::before { background:#fff; }
.dashboard-v8 .dashboard-kpi-strip .dashboard-kpi { --metric-icon:none; }
.dashboard-v8 .dashboard-kpi-strip .dashboard-kpi:nth-child(1) { --metric-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m11 17 2 2a2 2 0 0 0 3-3l-3.5-3.5'/%3E%3Cpath d='m14 14 2 2a2 2 0 0 0 3-3l-4-4a4 4 0 0 0-5.7 0l-.7.7a4 4 0 0 1-5.7 0L2 8'/%3E%3Cpath d='m2 8 5-5 5 5-5 5zM14 5l3-3 5 5-3 3'/%3E%3C/svg%3E"); }
.dashboard-v8 .dashboard-kpi-strip .dashboard-kpi:nth-child(2) { --metric-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='12' cy='5' rx='8' ry='3'/%3E%3Cpath d='M4 5v5c0 1.7 3.6 3 8 3 1 0 2-.1 2.9-.2M4 10v5c0 1.7 3.6 3 8 3M20 5v4M4 15v4c0 1.7 3.6 3 8 3M16 15l2 2 4-4'/%3E%3C/svg%3E"); }
.dashboard-v8 .dashboard-kpi-strip .dashboard-kpi:nth-child(3) { --metric-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m19 5-14 14'/%3E%3Ccircle cx='6.5' cy='6.5' r='2.5'/%3E%3Ccircle cx='17.5' cy='17.5' r='2.5'/%3E%3C/svg%3E"); }
.dashboard-v8 .dashboard-kpi-strip .dashboard-kpi:nth-child(4) { --metric-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 3 7.5 12 12l9-4.5L12 3z'/%3E%3Cpath d='M3 12l9 4.5 9-4.5M3 16.5 12 21l9-4.5'/%3E%3C/svg%3E"); }
.dashboard-v8 .dashboard-kpi-strip .dashboard-kpi:nth-child(5) { --metric-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4 11 23 1 13V3h10l9.6 9.6a.6.6 0 0 1 0 .8z'/%3E%3Ccircle cx='6.5' cy='7.5' r='1.5'/%3E%3C/svg%3E"); }
.dashboard-v8 .dashboard-kpi-strip .dashboard-kpi::before { content:""; width:42px; height:42px; border:1px solid #ffe0c7; background:#fff0e4; }
.dashboard-v8 .dashboard-kpi-strip .dashboard-kpi::after { content:""; position:absolute; left:24px; top:27px; right:auto; bottom:auto; width:24px; height:24px; border:0; border-radius:0; background:#f46a00; mask:var(--metric-icon) center/contain no-repeat; -webkit-mask:var(--metric-icon) center/contain no-repeat; transform:none; }
.dashboard-v8 .dashboard-kpi-strip .dashboard-kpi > span { font-size:11px; letter-spacing:.015em; }
.dashboard-v8 .dashboard-kpi-strip .dashboard-kpi > strong { font-size:28px; }
.dashboard-v8 .dashboard-kpi-strip .dashboard-kpi-primary > span { color:#a84000; }
.dashboard-v8 #daily-goal-panel .daily-goal-top > div:first-child { position:relative; padding-left:58px; }
.dashboard-v8 #daily-goal-panel .daily-goal-top > div:first-child::before,
.dashboard-v8 #daily-goal-panel .daily-goal-values::before { content:""; position:absolute; top:3px; left:0; width:42px; height:42px; border:1px solid #ffdfc6; border-radius:50%; background:#fff0e4; }
.dashboard-v8 #daily-goal-panel .daily-goal-top > div:first-child::after,
.dashboard-v8 #daily-goal-panel .daily-goal-values::after { content:""; position:absolute; top:12px; left:9px; width:24px; height:24px; background:#f05d00; mask:var(--goal-icon) center/contain no-repeat; -webkit-mask:var(--goal-icon) center/contain no-repeat; }
.dashboard-v8 #daily-goal-panel .daily-goal-top > div:first-child { --goal-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3Cpath d='M12 12 22 2M17 2h5v5'/%3E%3C/svg%3E"); }
.dashboard-v8 #daily-goal-panel .daily-goal-values { position:relative; min-width:230px; padding-left:58px; }
.dashboard-v8 #daily-goal-panel .daily-goal-values::before { right:auto; left:0; }
.dashboard-v8 #daily-goal-panel .daily-goal-values::after { left:9px; --goal-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8M12 17v4M7 4H4v3a5 5 0 0 0 5 5M17 4h3v3a5 5 0 0 1-5 5'/%3E%3Cpath d='M7 3h10v8a5 5 0 0 1-10 0z'/%3E%3C/svg%3E"); }
.dashboard-v8 #daily-goal-panel .daily-goal-label { color:#e34800; font-size:13px; }
.dashboard-v8 #daily-goal-panel .daily-goal h2 { font-size:23px; }
.dashboard-v8 #dashboard-shopee-live > header { min-height:44px; }
.dashboard-v8 #dashboard-shopee-live > header > div { position:relative; padding-left:40px; }
.dashboard-v8 #dashboard-shopee-live > header > div::before { content:""; position:absolute; left:0; top:50%; width:25px; height:25px; transform:translateY(-50%); background:#f05d20; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l1 13H4L5 8zM9 8a3 3 0 0 1 6 0'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l1 13H4L5 8zM9 8a3 3 0 0 1 6 0'/%3E%3C/svg%3E") center/contain no-repeat; }
.dashboard-v8 #dashboard-shopee-live .home-shopee-kpis > button { position:relative; padding-left:58px; }
.dashboard-v8 #dashboard-shopee-live .home-shopee-kpis > button::before { content:""; position:absolute; left:15px; top:18px; width:32px; height:32px; border-radius:50%; background:#fff0e4; }
.dashboard-v8 #dashboard-shopee-live .home-shopee-kpis > button::after { content:""; position:absolute; left:21px; top:24px; width:20px; height:20px; background:#ed5a17; mask:var(--shopee-icon) center/contain no-repeat; -webkit-mask:var(--shopee-icon) center/contain no-repeat; }
.dashboard-v8 #dashboard-shopee-live .home-shopee-kpis > button:nth-child(1) { --shopee-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17 9 11l4 4 8-9'/%3E%3Cpath d='M15 6h6v6M4 21h17'/%3E%3C/svg%3E"); }
.dashboard-v8 #dashboard-shopee-live .home-shopee-kpis > button:nth-child(2) { --shopee-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E"); }
.dashboard-v8 #dashboard-shopee-live .home-shopee-kpis > button:nth-child(3) { --shopee-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cellipse cx='8' cy='6' rx='6' ry='3'/%3E%3Cpath d='M2 6v5c0 1.7 2.7 3 6 3M14 6v2M2 11v5c0 1.7 2.7 3 6 3M14 12c0-1.7 2.7-3 6-3s2.7 1.3 2.7 3-2.7 3-6 3-2.7-1.3-2.7-3zM14 12v5c0 1.7 2.7 3 6 3s2.7-1.3 2.7-3v-5'/%3E%3C/svg%3E"); }
.dashboard-v8 #dashboard-shopee-live .home-shopee-kpis > button:nth-child(4) { --shopee-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m19 5-14 14'/%3E%3Ccircle cx='6.5' cy='6.5' r='2.5'/%3E%3Ccircle cx='17.5' cy='17.5' r='2.5'/%3E%3C/svg%3E"); }
html[data-theme="black"] .dashboard-v8 .dashboard-kpi-strip .dashboard-kpi::before,
html[data-theme="black"] .dashboard-v8 #daily-goal-panel .daily-goal-top > div:first-child::before,
html[data-theme="black"] .dashboard-v8 #daily-goal-panel .daily-goal-values::before,
html[data-theme="black"] .dashboard-v8 #dashboard-shopee-live .home-shopee-kpis > button::before { background-color:#322519; border-color:#6a4426; }
html[data-theme="black"] .dashboard-v8 .dashboard-kpi-strip .dashboard-kpi::after,
html[data-theme="black"] .dashboard-v8 #daily-goal-panel .daily-goal-top > div:first-child::after,
html[data-theme="black"] .dashboard-v8 #daily-goal-panel .daily-goal-values::after,
html[data-theme="black"] .dashboard-v8 #dashboard-shopee-live .home-shopee-kpis > button::after { background-color:#ff9a3d; }
@media(max-width:720px) {
  #app-view:has(.dashboard-v8) > .sidebar { width:min(86vw,300px); }
  body:has(.dashboard-v8) .topbar { height:60px; min-height:60px; padding-inline:10px; gap:5px; }
  body:has(.dashboard-v8) .topbar-brand { min-width:92px; gap:4px; margin-right:3px; }
  body:has(.dashboard-v8) .topbar-brand > span:first-child { width:30px; height:32px; }
  body:has(.dashboard-v8) .topbar-brand svg { width:30px; height:32px; }
  body:has(.dashboard-v8) .topbar-brand strong { font-size:17px; }
  body:has(.dashboard-v8) .topbar-brand small { font-size:8px; }
  body:has(.dashboard-v8) .global-search { width:min(40vw,260px); min-width:90px; }
  .dashboard-v8 #daily-goal-panel .daily-goal-top > div:first-child { padding-left:0; }
  .dashboard-v8 #daily-goal-panel .daily-goal-top > div:first-child::before,.dashboard-v8 #daily-goal-panel .daily-goal-top > div:first-child::after { display:none; }
  .dashboard-v8 #daily-goal-panel .daily-goal-values { min-width:0; padding-left:44px; }
  .dashboard-v8 #daily-goal-panel .daily-goal-values::before { width:34px; height:34px; }
  .dashboard-v8 #daily-goal-panel .daily-goal-values::after { top:8px; left:6px; width:22px; height:22px; }
}

/* Compacta os cards e restaura o layout lateral sem alterar os dados. */
@media (min-width:821px) {
  #app-view:has(.dashboard-v8) { display:grid !important; grid-template-columns:var(--sidebar,264px) minmax(0,1fr) !important; }
  #app-view:has(.dashboard-v8) > #sidebar, #app-view:has(.dashboard-v8) > .sidebar { position:fixed !important; z-index:40 !important; inset:0 auto 0 0 !important; width:var(--sidebar,264px) !important; transform:translateX(0) !important; box-shadow:none !important; }
  #app-view:has(.dashboard-v8) > .workspace { grid-column:2 !important; width:auto !important; min-width:0 !important; }
  #app-view:has(.dashboard-v8) .sidebar-backdrop, body:has(.dashboard-v8) #mobile-menu { display:none !important; }
}
#app-view:has(.dashboard-v8) .dashboard-v8 { box-sizing:border-box; width:100%; min-width:0; max-width:none; padding-inline:clamp(12px,2vw,30px); }
#app-view:has(.dashboard-v8) .dashboard-kpi-strip { grid-template-columns:repeat(5,minmax(0,1fr)) !important; gap:10px !important; overflow:visible !important; }
#app-view:has(.dashboard-v8) .dashboard-kpi-strip .dashboard-kpi { min-width:0 !important; min-height:84px !important; padding:10px 10px 9px 52px !important; border-radius:14px !important; box-shadow:0 3px 9px rgba(31,48,70,.08) !important; }
#app-view:has(.dashboard-v8) .dashboard-kpi-strip .dashboard-kpi::before { left:11px !important; top:13px !important; width:31px !important; height:31px !important; }
#app-view:has(.dashboard-v8) .dashboard-kpi-strip .dashboard-kpi::after { right:-17px !important; bottom:-28px !important; width:51px !important; height:51px !important; }
#app-view:has(.dashboard-v8) .dashboard-kpi-strip .dashboard-kpi > span { font-size:9px !important; line-height:1.15 !important; letter-spacing:.025em !important; }
#app-view:has(.dashboard-v8) .dashboard-kpi-strip .dashboard-kpi > strong { margin:4px 0 1px !important; font-size:clamp(17px,1.45vw,22px) !important; line-height:1.05 !important; }
#app-view:has(.dashboard-v8) .dashboard-kpi-strip .dashboard-kpi > small { font-size:9px !important; line-height:1.15 !important; }
#app-view:has(.dashboard-v8) #dashboard-shopee-live { width:100%; min-width:0; }
#app-view:has(.dashboard-v8) #dashboard-shopee-live > header { min-height:36px !important; padding-inline:12px !important; }
#app-view:has(.dashboard-v8) #dashboard-shopee-live .home-shopee-kpis { display:grid !important; grid-template-columns:repeat(4,minmax(0,1fr)) !important; min-width:0; }
#app-view:has(.dashboard-v8) #dashboard-shopee-live .home-shopee-kpis > button { display:block; min-width:0 !important; min-height:70px !important; padding:9px 9px 8px 43px !important; overflow:hidden; text-align:left; border-right:1px solid #f0dfd3 !important; }
#app-view:has(.dashboard-v8) #dashboard-shopee-live .home-shopee-kpis > button::before { left:10px !important; top:13px !important; width:25px !important; height:25px !important; }
#app-view:has(.dashboard-v8) #dashboard-shopee-live .home-shopee-kpis > button::after { left:15px !important; top:18px !important; width:15px !important; height:15px !important; }
#app-view:has(.dashboard-v8) #dashboard-shopee-live .home-shopee-kpis > button span { font-size:9px !important; line-height:1.15 !important; }
#app-view:has(.dashboard-v8) #dashboard-shopee-live .home-shopee-kpis > button strong { display:block; margin-top:3px; font-size:19px !important; line-height:1.05 !important; }
#app-view:has(.dashboard-v8) #dashboard-shopee-live .home-shopee-kpis > button small { font-size:9px !important; line-height:1.15 !important; }
#app-view:has(.dashboard-v8) #dashboard-shopee-live > footer { min-height:27px !important; padding-block:5px !important; font-size:9px !important; }
.dashboard-v8 .dashboard-command-tabs button.active { color:#fff !important; background:linear-gradient(135deg,#ff9900,#ff6500) !important; border:0 !important; box-shadow:0 5px 12px rgba(255,112,0,.2) !important; }
.dashboard-v8 .dashboard-command-tabs button.active::after { display:none !important; }
@media (max-width:820px) {
  #app-view:has(.dashboard-v8) { display:grid !important; grid-template-columns:minmax(0,1fr) !important; }
  #app-view:has(.dashboard-v8) > #sidebar, #app-view:has(.dashboard-v8) > .sidebar { transform:translateX(-105%) !important; }
  #app-view:has(.dashboard-v8) > #sidebar.open, #app-view:has(.dashboard-v8) > .sidebar.open { transform:translateX(0) !important; }
  #app-view:has(.dashboard-v8) > .workspace { grid-column:1 !important; width:100% !important; min-width:0 !important; }
  #app-view:has(.dashboard-v8) #mobile-menu { display:inline-grid !important; }
  #app-view:has(.dashboard-v8) .dashboard-kpi-strip { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  #app-view:has(.dashboard-v8) #dashboard-shopee-live .home-shopee-kpis { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}

/* Proporções da referência mais recente: cabeçalho e painéis compactos. */
#app-view:has(.dashboard-v8) .dashboard-v8 { padding:6px 4px 24px !important; }
#app-view:has(.dashboard-v8) .dashboard-v6-header { min-height:70px !important; margin-bottom:8px !important; padding-left:24px !important; }
#app-view:has(.dashboard-v8) .dashboard-v6-header::before { top:5px !important; bottom:5px !important; width:3px !important; }
#app-view:has(.dashboard-v8) .dashboard-v6-header h1 { font-size:20px !important; margin-bottom:1px !important; }
#app-view:has(.dashboard-v8) .dashboard-v6-header p { font-size:11px !important; margin-bottom:4px !important; }
#app-view:has(.dashboard-v8) .dashboard-v6-status { font-size:10px !important; gap:7px !important; }
#app-view:has(.dashboard-v8) .dashboard-v6-header-actions :is(time,.button) { min-height:34px !important; padding-inline:10px !important; border-radius:12px !important; font-size:10px !important; }
#app-view:has(.dashboard-v8) .dashboard-command-tabs { margin:0 0 10px !important; padding:0 0 4px !important; gap:4px !important; }
#app-view:has(.dashboard-v8) .dashboard-command-tabs button { min-height:32px !important; padding-left:37px !important; padding-right:12px !important; border-radius:12px !important; font-size:10px !important; }
#app-view:has(.dashboard-v8) .dashboard-command-tabs button i { left:10px !important; top:7px !important; width:18px !important; height:18px !important; }
#app-view:has(.dashboard-v8) .dashboard-command-tabs button i::before { width:18px !important; height:18px !important; }
#app-view:has(.dashboard-v8) .dashboard-kpi-strip .dashboard-kpi { min-height:84px !important; padding-left:52px !important; }
#app-view:has(.dashboard-v8) #daily-goal-panel { margin-bottom:11px !important; }
#app-view:has(.dashboard-v8) #daily-goal-panel .daily-goal { min-height:172px; padding:12px 13px 9px !important; border-radius:14px !important; }
#app-view:has(.dashboard-v8) #daily-goal-panel .daily-goal-track { height:11px !important; }
#app-view:has(.dashboard-v8) #daily-goal-panel .daily-goal h2 { font-size:19px !important; }
#app-view:has(.dashboard-v8) #dashboard-cancelled-sales { min-height:60px; margin-bottom:11px !important; padding:7px 11px !important; border-radius:13px !important; }
#app-view:has(.dashboard-v8) #dashboard-shopee-live { border-radius:14px !important; }
#app-view:has(.dashboard-v8) #dashboard-shopee-live > header { min-height:31px !important; padding-inline:11px !important; font-size:11px !important; }
#app-view:has(.dashboard-v8) #dashboard-shopee-live .home-shopee-kpis > button { min-height:61px !important; padding-top:6px !important; padding-bottom:5px !important; }
#app-view:has(.dashboard-v8) #dashboard-shopee-live .home-shopee-kpis > button::before { top:10px !important; }
#app-view:has(.dashboard-v8) #dashboard-shopee-live .home-shopee-kpis > button::after { top:15px !important; }
@media (max-width:820px) {
  #app-view:has(.dashboard-v8) .dashboard-v8 { padding:8px 10px 24px !important; }
  #app-view:has(.dashboard-v8) .dashboard-v6-header { min-height:0 !important; padding-left:16px !important; }
  #app-view:has(.dashboard-v8) .dashboard-v6-header h1 { font-size:20px !important; }
  #app-view:has(.dashboard-v8) .dashboard-v6-header-actions { flex-wrap:wrap !important; }
  #app-view:has(.dashboard-v8) #daily-goal-panel .daily-goal { min-height:0; }
}

/* Cabeçalho principal da referência: barra escura, marca à esquerda e busca ao lado. */
body:has(.dashboard-v8) .workspace > .topbar {
  display:flex !important; justify-content:flex-start !important; align-items:center !important;
  min-height:66px !important; height:66px !important; padding:0 20px !important; gap:0 !important;
  color:#f8fafc !important; background:linear-gradient(105deg,#071322 0%,#0b192b 65%,#101b2b 100%) !important;
  border-bottom:1px solid #25344a !important; box-shadow:0 4px 18px rgba(5,13,25,.18) !important;
}
body:has(.dashboard-v8) .workspace > .topbar .topbar-brand {
  order:1 !important; display:flex !important; flex:0 0 178px !important; min-width:178px !important;
  margin:0 28px 0 0 !important; padding:0 !important; color:#fff !important;
}
body:has(.dashboard-v8) .workspace > .topbar .topbar-brand > span:first-child { width:40px !important; height:40px !important; }
body:has(.dashboard-v8) .workspace > .topbar .topbar-brand svg { width:40px !important; height:40px !important; }
body:has(.dashboard-v8) .workspace > .topbar .topbar-brand strong { color:#fff !important; font-size:22px !important; }
body:has(.dashboard-v8) .workspace > .topbar .topbar-brand small { color:#d8e0ea !important; font-size:10px !important; }
body:has(.dashboard-v8) .workspace > .topbar .global-search {
  order:2 !important; flex:0 1 510px !important; width:min(510px,42vw) !important; min-width:220px !important;
  margin:0 !important; color:#cbd5e1 !important; background:rgba(255,255,255,.09) !important;
  border:1px solid #46566b !important; border-radius:18px !important;
}
body:has(.dashboard-v8) .workspace > .topbar .global-search input { color:#fff !important; }
body:has(.dashboard-v8) .workspace > .topbar .topbar-actions { order:3 !important; margin-left:auto !important; }
body:has(.dashboard-v8) .workspace > .topbar #new-task-button { color:#fff !important; background:linear-gradient(135deg,#ff9a00,#ff6500) !important; }
@media (max-width:820px) {
  body:has(.dashboard-v8) .workspace > .topbar { height:60px !important; min-height:60px !important; padding-inline:8px !important; }
  body:has(.dashboard-v8) .workspace > .topbar .topbar-brand { flex-basis:95px !important; min-width:95px !important; margin-right:8px !important; }
  body:has(.dashboard-v8) .workspace > .topbar .topbar-brand > span:first-child,
  body:has(.dashboard-v8) .workspace > .topbar .topbar-brand svg { width:30px !important; height:30px !important; }
  body:has(.dashboard-v8) .workspace > .topbar .topbar-brand strong { font-size:16px !important; }
  body:has(.dashboard-v8) .workspace > .topbar .global-search { flex:1 1 auto !important; width:auto !important; min-width:70px !important; }
}

/* Override final and independent of :has()/theme selectors: dashboard reference header. */
#app-view .workspace > .topbar {
  display:flex !important; justify-content:flex-start !important; align-items:center !important;
  box-sizing:border-box !important; height:66px !important; min-height:66px !important;
  padding:0 20px !important; gap:0 !important; color:#f8fafc !important;
  background:linear-gradient(105deg,#071322 0%,#0b192b 65%,#101b2b 100%) !important;
  border-bottom:1px solid #25344a !important; box-shadow:0 4px 18px rgba(5,13,25,.18) !important;
}
#app-view .workspace > .topbar .topbar-brand {
  order:1 !important; display:flex !important; flex:0 0 178px !important; min-width:178px !important;
  align-items:center !important; gap:9px !important; margin:0 28px 0 4px !important; padding:0 !important;
  color:#fff !important; background:transparent !important; border:0 !important;
}
#app-view .workspace > .topbar .topbar-brand > span:first-child,
#app-view .workspace > .topbar .topbar-brand svg { display:grid !important; width:40px !important; height:40px !important; }
#app-view .workspace > .topbar .topbar-brand svg { fill:none !important; stroke:#ff8200 !important; stroke-width:4.1 !important; stroke-linecap:round !important; stroke-linejoin:round !important; }
#app-view .workspace > .topbar .topbar-brand > span:last-child { display:flex !important; flex-direction:column !important; line-height:1 !important; }
#app-view .workspace > .topbar .topbar-brand strong { color:#fff !important; font-size:22px !important; font-weight:900 !important; }
#app-view .workspace > .topbar .topbar-brand small { margin-top:3px !important; color:#d8e0ea !important; font-size:10px !important; }
#app-view .workspace > .topbar .global-search {
  order:2 !important; flex:0 1 510px !important; width:min(510px,42vw) !important; min-width:220px !important;
  margin:0 !important; color:#cbd5e1 !important; background:rgba(255,255,255,.09) !important;
  border:1px solid #46566b !important; border-radius:18px !important;
}
#app-view .workspace > .topbar .global-search input { color:#fff !important; }
#app-view .workspace > .topbar .global-search input::placeholder { color:#c3ccd7 !important; }
#app-view .workspace > .topbar .topbar-actions { order:3 !important; margin-left:auto !important; }
#app-view .workspace > .topbar #new-task-button { color:#fff !important; background:linear-gradient(135deg,#ff9a00,#ff6500) !important; }
@media (max-width:820px) {
  #app-view .workspace > .topbar { height:60px !important; min-height:60px !important; padding-inline:8px !important; }
  #app-view .workspace > .topbar .topbar-brand { flex-basis:95px !important; min-width:95px !important; margin-right:8px !important; }
  #app-view .workspace > .topbar .topbar-brand > span:first-child,
  #app-view .workspace > .topbar .topbar-brand svg { width:30px !important; height:30px !important; }
  #app-view .workspace > .topbar .topbar-brand strong { font-size:16px !important; }
  #app-view .workspace > .topbar .global-search { flex:1 1 auto !important; width:auto !important; min-width:70px !important; }
}

/* Última camada: não depende do tema, do modo claro/escuro nem do ID do app-shell. */
.workspace > header.topbar {
  display:flex !important; justify-content:flex-start !important; align-items:center !important;
  box-sizing:border-box !important; height:66px !important; min-height:66px !important;
  padding:0 20px !important; gap:0 !important; color:#f8fafc !important;
  background:#0b192b !important; background-image:linear-gradient(105deg,#071322 0%,#0b192b 65%,#101b2b 100%) !important;
  border-bottom:1px solid #25344a !important; box-shadow:0 4px 18px rgba(5,13,25,.18) !important;
}
.workspace > header.topbar > .topbar-brand { order:1 !important; display:flex !important; flex:0 0 178px !important; min-width:178px !important; margin:0 28px 0 4px !important; }
.workspace > header.topbar > .global-search { order:2 !important; flex:0 1 510px !important; width:min(510px,42vw) !important; min-width:220px !important; margin:0 !important; background:rgba(255,255,255,.09) !important; border-color:#46566b !important; }
.workspace > header.topbar > .global-search input { color:#fff !important; }
.workspace > header.topbar > .topbar-actions { order:3 !important; margin-left:auto !important; }
@media (max-width:820px) {
  .workspace > header.topbar { height:60px !important; min-height:60px !important; padding-inline:8px !important; }
  .workspace > header.topbar > .topbar-brand { flex-basis:95px !important; min-width:95px !important; margin-right:8px !important; }
  .workspace > header.topbar > .global-search { flex:1 1 auto !important; width:auto !important; min-width:70px !important; }
}

/* Corrige o box model do #content: width:100% + padding em content-box causava overflow horizontal no dashboard. */
#app-view:has(.dashboard-v8) > .workspace > #content.content {
  box-sizing:border-box !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
}
#app-view:has(.dashboard-v8) .dashboard-v8 {
  box-sizing:border-box !important;
  width:100% !important;
  max-width:1680px !important;
  min-width:0 !important;
  margin-inline:auto !important;
  padding-inline:clamp(20px,2vw,32px) !important;
}
#app-view:has(.dashboard-v8) .dashboard-v8 :is(.dashboard-panel,.dashboard-executive-grid,.dashboard-kpi-strip,#daily-goal-panel,#dashboard-cancelled-sales,#dashboard-shopee-live) {
  box-sizing:border-box;
  min-width:0;
  max-width:100%;
}

/* Alinha a área útil à coluna real do menu e evita a faixa horizontal excedente. */
@media (min-width:821px) {
  #app-view:has(.dashboard-v8) {
    grid-template-columns:var(--sidebar,264px) minmax(0,1fr) !important;
    width:100% !important;
    min-width:0 !important;
    overflow-x:clip !important;
  }
  #app-view:has(.dashboard-v8) > .workspace {
    grid-column:2 !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }
  #app-view:has(.dashboard-v8) > .workspace > #content.content {
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }
  #app-view:has(.dashboard-v8) > .sidebar .sidebar-brand {
    box-sizing:border-box !important;
    width:100% !important;
    min-width:0 !important;
    padding-left:14px !important;
  }
  #app-view:has(.dashboard-v8) > .sidebar .sidebar-brand-logo {
    flex:0 0 54px !important;
    min-width:54px !important;
    margin-left:0 !important;
  }
}
@media (max-width:820px) {
  #app-view:has(.dashboard-v8) { grid-template-columns:minmax(0,1fr) !important; }
  #app-view:has(.dashboard-v8) > .workspace { grid-column:1 !important; width:100% !important; }
}

/* Restaura os ícones dos KPIs: a regra compacta anterior sobrescrevia o mask SVG em ::after. */
#app-view:has(.dashboard-v8) .dashboard-kpi-strip .dashboard-kpi::before {
  content:"" !important;
  position:absolute !important;
  left:11px !important;
  top:13px !important;
  right:auto !important;
  bottom:auto !important;
  width:34px !important;
  height:34px !important;
  border:1px solid #ffe0c7 !important;
  border-radius:50% !important;
  background:#fff0e4 !important;
  box-shadow:none !important;
  transform:none !important;
}
#app-view:has(.dashboard-v8) .dashboard-kpi-strip .dashboard-kpi::after {
  content:"" !important;
  position:absolute !important;
  left:19px !important;
  top:21px !important;
  right:auto !important;
  bottom:auto !important;
  width:18px !important;
  height:18px !important;
  border:0 !important;
  border-radius:0 !important;
  background:#f46a00 !important;
  mask:var(--metric-icon) center/contain no-repeat !important;
  -webkit-mask:var(--metric-icon) center/contain no-repeat !important;
  box-shadow:none !important;
  transform:none !important;
}
html[data-theme="black"] #app-view:has(.dashboard-v8) .dashboard-kpi-strip .dashboard-kpi::before {
  border-color:#6a4426 !important;
  background:#322519 !important;
}
html[data-theme="black"] #app-view:has(.dashboard-v8) .dashboard-kpi-strip .dashboard-kpi::after {
  background:#ff9a3d !important;
}
