:root {
  --red: #f40013;
  --red-dark: #c90010;
  --ink: #17191d;
  --muted: #68717c;
  --line: #e7e9ed;
  --panel: #ffffff;
  --screen: #f6f7f9;
  --green: #05a94f;
  --blue: #2579ee;
  --purple: #783fe9;
  --orange: #f56b00;
  --yellow: #ffc400;
  font-family: Inter, Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
button, input { font: inherit; }
button { cursor: pointer; }
.ui-icon { width: 1em; height: 1em; display: block; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #f4f5f7;
}

.locked { display: none !important; }
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 20% 10%, rgba(255,255,255,.18), transparent 28%), linear-gradient(145deg, #94000b, #ec0012 46%, #181b20 100%);
}
.login-card {
  width: min(760px, 100%);
  min-height: 440px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(16, 3, 5, .4);
}
.login-product-art { position: relative; overflow: hidden; background: linear-gradient(150deg, #350005, #bd0010 48%, #080a0d); }
.login-product-art::after { content: ""; position: absolute; inset: 0; box-shadow: inset -24px 0 50px rgba(0,0,0,.35); }
.login-product-art img { width: 100%; height: 100%; object-fit: contain; object-position: center; transform: none; background: #101010; }
.login-content { padding: 42px; align-self: center; }
.script-logo { color: #fff; font: italic 800 1.45rem/1 Georgia, "Times New Roman", serif; letter-spacing: -1.5px; white-space: nowrap; }
.login-content .script-logo { color: var(--red); font-size: 2rem; margin-bottom: 18px; }
.login-content h1 { margin: 0 0 8px; font-size: 2rem; letter-spacing: -.04em; }
.login-content p { margin: 0 0 22px; color: var(--muted); line-height: 1.45; }
.login-content label { display: grid; gap: 6px; margin: 13px 0; color: #444b55; font-size: .86rem; font-weight: 800; }
.login-content input { min-height: 48px; border: 1px solid #dce0e5; border-radius: 12px; padding: 0 14px; outline: none; font-size: 1rem; }
.login-content input:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(244,0,19,.1); }
.login-content button { width: 100%; min-height: 48px; margin-top: 6px; border: 0; border-radius: 12px; color: #fff; font-weight: 900; background: var(--red); }
.login-content small { display: block; min-height: 18px; margin-top: 10px; color: var(--red); font-weight: 800; }

.app-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px;
  display: block;
}
.phone {
  display: none;
  position: relative;
  width: min(390px, 100%);
  min-height: 742px;
  max-height: calc(100vh - 44px);
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
  border: 8px solid #0c0f12;
  border-radius: 38px;
  background: var(--screen);
  box-shadow: 0 0 0 2px #656a70, 0 24px 60px rgba(15,19,25,.25);
  scrollbar-width: thin;
}
.phone.active { display: block; }
.phone::-webkit-scrollbar { width: 4px; }
.phone::-webkit-scrollbar-thumb { border-radius: 10px; background: #cfd3d9; }
.phone-status {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 24px;
  padding: 6px 13px 0;
  display: grid;
  grid-template-columns: 1fr 66px 1fr;
  align-items: start;
  background: var(--red);
  color: #fff;
  font-size: 14px;
}
.phone-status > :last-child { text-align: right; letter-spacing: 1px; }
.notch { align-self: start; justify-self: center; width: 66px; height: 17px; margin-top: -6px; border-radius: 0 0 12px 12px; background: #0d1013; }

.topbar, .compactbar {
  position: sticky;
  top: 24px;
  z-index: 29;
  min-height: 54px;
  padding: 7px 12px 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  background: var(--red);
}
.bar-title { min-width: 0; flex: 1; }
.bar-title strong, .bar-title span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-title strong { font-size: 14px; }
.bar-title span { margin-top: 2px; font-size: 14px; opacity: .9; }
.menu-button, .back { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border: 0; color: #fff; background: transparent; font-size: 19px; }
.back { font-size: 28px; margin-left: -5px; }
.compactbar .script-logo { font-size: 22px; }
.screen-topbar { gap: 8px; }
.detail-bar { position: sticky; top: 24px; z-index: 35; box-shadow: 0 3px 10px rgba(0,0,0,.16); }
.topbar,.compactbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;row-gap:0}.topbar>.brand-logo,.compactbar>.brand-logo{grid-column:1;grid-row:1;width:230px;max-width:100%;height:34px;flex:none}.topbar>.bar-title,.compactbar>.bar-title{grid-column:1;grid-row:2}.topbar>.menu-button,.compactbar>.menu-button{grid-column:2;grid-row:1 / span 2}.compactbar>.header-back{grid-column:2;grid-row:1}.compactbar>.header-back + .menu-button{grid-column:3}.screen-topbar{grid-template-columns:minmax(0,1fr) auto auto}
.screen-topbar .script-logo { flex: 0 0 auto; font-size: 20px; }
.screen-topbar .header-back { width: 28px; height: 28px; margin-left: 0; border-radius: 8px; background: rgba(255,255,255,.12); font-size: 24px; }
.screen-topbar .menu-button { width: 28px; height: 28px; }
.home-topbar .script-logo { font-size: 22px; }

.hero {
  position: relative;
  height: 139px;
  overflow: hidden;
  color: #fff;
  background: #101010;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #101010 0%, rgba(16,16,16,.82) 24%, rgba(16,16,16,.26) 66%, rgba(16,16,16,.2) 100%); }
.hero img { position: absolute; z-index: 0; right: -8px; top: -18px; width: 270px; height: 180px; object-fit: cover; object-position: center; opacity: 0; transition: opacity .75s ease; }
.hero img.active { opacity: .9; filter: brightness(.72) contrast(1.18); }
.hero img.coca-bottles { right: -14px; width: 310px; object-position: 62% center; }
.hero-copy { position: relative; z-index: 2; width: 66%; padding: 22px 0 12px 14px; }
.hero h2 { margin: 0 0 11px; font-size: 20px; line-height: 1.06; letter-spacing: -.045em; text-shadow: 0 2px 7px rgba(0,0,0,.45); }
.hero small { display: block; max-height: 29px; overflow: hidden; font-size: 14px; line-height: 1.35; opacity: .9; }

.search-box {
  position: relative;
  z-index: 5;
  min-height: 44px;
  margin: -8px 12px 10px;
  padding: 0 8px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2e5e9;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(22,28,37,.12);
}
.search-icon { font-size: 22px; line-height: 1; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; font-size: 14px; color: #333942; }
.search-box button { width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 6px; background: #f1f2f4; font-size: 18px; }

.primary-shortcuts { padding: 0 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.shortcut-card {
  min-height: 77px;
  padding: 8px 5px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #fff0f1;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.15;
}
.shortcut-card.selected { border: 2px solid var(--red); background: #fff; }
.shortcut-icon { width: 27px; height: 27px; display: grid; place-items: center; color: var(--red); font-style: normal; font-size: 26px; line-height: 1; }
.shortcut-icon .ui-icon { width: 26px; height: 26px; }
.qr-mark { color: #111; font-size: 24px; }
.pin-mark { position: relative; font-size: 19px; }
.pin-mark::after { content: ""; position: absolute; bottom: 1px; width: 8px; height: 8px; transform: rotate(45deg); background: var(--red); z-index: -1; }

.region-section { padding: 0 12px; }
.section-heading { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.section-heading strong { font-size: 14px; letter-spacing: -.02em; }
.section-heading > span { color: var(--muted); font-size: 14px; }

.region-section { margin-top: 8px; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.metric-grid article {
  min-height: 62px;
  padding: 9px;
  display: grid;
  grid-template-columns: 31px 1fr;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.metric-icon { font-style: normal; font-size: 23px; }.metric-icon.red { color: var(--red); }.metric-icon.green { color: #08ac45; }.metric-icon.blue { color: #1976de; }.metric-icon.yellow { color: var(--yellow); }
.metric-icon .ui-icon { width: 25px; height: 25px; }
.metric-grid span, .metric-grid b { display: block; }
.metric-grid span { color: #353a42; font-size: 14px; line-height: 1.15; }
.metric-grid b { margin-top: 2px; font-size: 18px; }

.primary-action, .secondary-action { border-radius: 8px; font-weight: 850; }
.map-action { width: calc(100% - 24px); min-height: 42px; margin: 12px; border: 0; color: #fff; background: var(--red); font-size: 14px; }
.map-action span { margin-right: 6px; }

.view-toggle { margin: 8px 12px; padding: 3px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; border-radius: 8px; background: #eceef1; }
.view-toggle button { min-height: 29px; border: 0; border-radius: 6px; color: #5e6670; background: transparent; font-size: 14px; font-weight: 800; }
.view-toggle .active { color: #fff; background: var(--red); }
.map-card {
  position: relative;
  height: 245px;
  margin: 0 12px 7px;
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.7) 1px, transparent 1px), #dfe9df;
  background-size: 39px 39px;
  transition: height .2s, opacity .2s;
}
.map-card.collapsed { height: 0; opacity: 0; margin-bottom: 0; }
.map-card #client-map-canvas { position:absolute; inset:0; z-index:1; }
.map-card .leaflet-container { width:100%; height:100%; background:#e8edf0; font:12px Arial,sans-serif; }
.map-card .leaflet-control-attribution { font-size:10px; }
.map-card.map-unavailable::after { content:"Mapa indisponível. Verifique sua conexão."; position:absolute; inset:0; z-index:2; display:grid; place-items:center; padding:18px; color:#4c5560; background:#eef1f4; text-align:center; }
.map-road { position: absolute; width: 420px; height: 15px; border: 5px solid rgba(255,255,255,.95); border-radius: 50%; transform: rotate(-22deg); }
.road-a { left: -60px; top: 63px; }.road-b { left: -30px; top: 135px; transform: rotate(21deg); }.road-c { left: 85px; top: -25px; height: 310px; width: 18px; transform: rotate(7deg); border-width: 4px; }
.pulse { position: absolute; left: 51%; top: 52%; width: 18px; height: 18px; border: 4px solid #fff; border-radius: 50%; background: #1b7bf2; box-shadow: 0 0 0 14px rgba(27,123,242,.16), 0 0 0 34px rgba(27,123,242,.08); transform: translate(-50%,-50%); }
.map-tools { position: absolute; z-index: 7; right: 9px; top: 10px; display: grid; gap: 8px; }
.map-tools button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #ddd; border-radius: 9px; color: #252a30; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15); font-size:22px; font-weight:700; line-height:1; cursor:pointer; }.map-tools .ui-icon { width: 17px; height: 17px; }
.client-map-marker { border:0; background:transparent; }
.client-map-marker>span { width:30px; height:30px; display:grid; place-items:center; border:2px solid #fff; border-radius:50% 50% 50% 4px; color:#fff; background:var(--red); box-shadow:0 2px 6px rgba(0,0,0,.32); transform:rotate(-45deg); }
.client-map-marker .ui-icon { width:15px; height:15px; transform:rotate(45deg); }
.leaflet-tooltip { border:0; border-radius:6px; box-shadow:0 2px 8px rgba(0,0,0,.22); font-weight:700; }
.pin { position: absolute; z-index: 6; width: 31px; height: 31px; padding: 0; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; color: #fff; background: var(--red); box-shadow: 0 4px 9px rgba(0,0,0,.22); transform: translate(-50%,-50%); }
.pin i { font-style: normal; font-size: 14px; }
.pin .ui-icon { width: 14px; height: 14px; }
.pin span { position: absolute; left: 33px; top: 4px; padding: 4px 6px; white-space: nowrap; border-radius: 10px; color: #242930; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.12); font-size: 14px; font-weight: 850; }
.sort-row { min-height: 42px; padding: 5px 12px; display: flex; align-items: center; gap: 7px; background: #fff; border-bottom: 1px solid var(--line); }
.sort-row > span { white-space: nowrap; color: #5e6670; font-size: 14px; }
.tabs { display: flex; flex: 1; min-width: 0; gap: 4px; }
.tab { flex: 1; min-height: 27px; padding: 0 5px; border: 0; border-radius: 8px; color: #555d66; background: #f2f3f5; font-size: 14px; font-weight: 800; }
.tab.active { color: #fff; background: var(--red); }
@media (max-width: 420px) { .sort-row .tab { min-width: 0; padding: 0 2px; font-size: 12px; white-space: nowrap; }.sort-row .tab[data-sort="opportunity"] { flex: 1.2; } }
@media (max-width: 350px) { .sort-row { gap: 4px; padding-left: 8px; padding-right: 8px; }.sort-row > span { font-size: 10px; letter-spacing: -.2px; }.tabs { gap: 2px; }.sort-row .tab { font-size: 11px; }.sort-row .tab[data-sort="distance"] { flex: 1; }.sort-row .tab[data-sort="opportunity"] { flex: 1.55; }.sort-row .tab[data-sort="volume"] { flex: .85; }.sort-row .tab.polarized-filter { flex: 1.05; } }
.list-summary { padding: 7px 12px 1px; color: var(--muted); font-size: 14px; }
.client-list { padding: 5px 12px 16px; display: grid; gap: 7px; }
.client-row { width: 100%; padding: 9px; text-align: left; border: 1px solid #e7e9ed; border-radius: 9px; color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(20,25,32,.04); }
.row-top { display: grid; grid-template-columns: 34px 1fr auto 9px; gap: 7px; align-items: start; }
.store-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 3px; color: #fff; background: var(--red); font-size: 18px; }
.store-icon .ui-icon { width: 21px; height: 21px; }
.row-identity strong, .row-identity span, .row-identity small { display: block; }
.row-identity strong { max-width: 176px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
.row-identity span, .row-identity small { margin-top: 2px; color: #5c646e; font-size: 14px; }
.distance-pill { padding: 4px 6px; border-radius: 9px; color: #333941; background: #eef0f2; font-size: 14px; font-weight: 850; }
.chevron { align-self: center; color: #555c65; font-style: normal; font-size: 20px; }
.row-metrics { margin-top: 8px; padding-top: 7px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-top: 1px solid #f0f1f3; }
.row-metrics > span { min-width: 0; font-size: 14px; font-weight: 850; line-height: 1.05; }
.row-metrics b { width: 18px; height: 18px; margin-right: 3px; display: inline-grid; place-items: center; vertical-align: middle; border-radius: 5px; color: #fff; font-size: 14px; }.row-metrics b .ui-icon { width: 11px; height: 11px; }
.row-metrics small { display: block; margin: 2px 0 0 21px; color: #7a818b; font-size: 14px; font-weight: 600; }
.row-metrics .blue { color: #2175df; }.row-metrics .blue b { background: #2d7fe8; }
.row-metrics .green, .row-metrics .positive { color: #099d4d; }.row-metrics .green b, .row-metrics .positive b { background: #12a95a; }
.row-metrics .warning { color: #e5a100; }.row-metrics .warning b { background: #ffc400; }
.row-metrics .danger { color: var(--red); }.row-metrics .danger b { background: var(--red); }
.empty-state { padding: 18px; border-radius: 10px; text-align: center; background: #fff; }.empty-state p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.detail-bar { gap: 7px; }
.detail-bar .bar-title { flex: 1; }
.client-head { margin: 8px 10px 0; padding: 8px; display: grid; grid-template-columns: 38px 1fr auto; gap: 8px; align-items: start; border: 1px solid var(--line); border-radius: 8px 8px 0 0; background: #fff; }
.client-head .store-icon { width: 38px; height: 38px; font-size: 22px; }
.client-head strong, .client-head span, .client-head small { display: block; }
.client-head strong { max-width: 235px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; font-weight: 900; }
.client-head span, .client-head small { margin-top: 2px; color: #59616c; font-size: 14px; line-height: 1.25; }
#detail-fantasy { color: #343b43; font-size: 14px; font-weight: 500; }
.status { padding: 3px 5px; border-radius: 7px; color: #0b9c4c; background: #dff8e9; font-size: 14px; }
#detail-status { width: 66px; height: 66px; padding: 0; display: grid; place-items: center; background: transparent; }
#detail-status[hidden] { display: none; }
#detail-status img { display: block; width: 66px; height: 66px; object-fit: contain; }
.people-grid { margin: 0 10px 7px; padding: 7px 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; background: #fff; }
.people-grid article { min-width: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 4px; }
.people-grid i { grid-row: 1 / span 2; color: #535b65; font-style: normal; font-size: 14px; }
.people-grid .ui-icon { width: 13px; height: 13px; }
.people-grid span, .people-grid b { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.people-grid span { color: #6d747d; font-size: 14px; }.people-grid b { font-size: 14px; font-weight: 500; }
.detail-tabs { position: sticky; top: 78px; z-index: 20; margin: 0 8px 7px; padding: 3px; display: flex; gap: 3px; overflow-x: auto; border-radius: 7px; background: #fff; box-shadow: 0 2px 7px rgba(0,0,0,.06); }
.detail-tabs button { flex: 1 0 auto; min-height: 27px; padding: 0 8px; border: 0; border-radius: 5px; color: #515862; background: #f4f5f6; font-size: 14px; }
.detail-tabs .active { color: #fff; background: var(--red); font-weight: 800; }
.overview-section { margin: 0 10px; }
.detail-heading { border-bottom: 1px solid #eceef1; }
.detail-heading strong { font-size: 14px; }
.detail-filter-grid { margin: 7px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.detail-filter-grid label { min-width: 0; display: grid; gap: 3px; color: #626a74; font-size: 12px; font-weight: 700; }
.detail-filter-grid select { width: 100%; min-width: 0; min-height: 34px; padding: 5px 7px; border: 1px solid #d9dde3; border-radius: 7px; color: #252a31; background: #fff; font: inherit; font-size: 13px; }
@media (max-width: 350px) { .detail-filter-grid { gap: 5px; }.detail-filter-grid select { padding: 5px 4px; font-size: 12px; } }
.indicator-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.sku-mix-card { min-height: 68px; margin-top: 6px; padding: 9px; display: grid; grid-template-columns: 28px minmax(95px, 1.4fr) repeat(2, minmax(65px, 1fr)); align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.sku-mix-card > i { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: var(--purple); font-style: normal; }
.sku-mix-card > i .ui-icon { width: 15px; height: 15px; }
.sku-mix-main, .sku-mix-benchmark { min-width: 0; display: grid; gap: 2px; }
.sku-mix-main span, .sku-mix-benchmark span { color: #69717b; font-size: 12px; }
.sku-mix-main b { color: #20252b; font-size: 18px; line-height: 1.05; }
.sku-mix-main small { color: #838a93; font-size: 11px; }
.sku-mix-benchmark b { color: var(--green); font-size: 16px; }
@media (max-width: 350px) { .sku-mix-card { grid-template-columns: 24px minmax(75px, 1.3fr) repeat(2, minmax(54px, 1fr)); gap: 5px; padding: 7px; }.sku-mix-main b { font-size: 16px; }.sku-mix-benchmark b { font-size: 14px; } }
.indicator { min-height: 85px; padding: 9px; display: grid; grid-template-columns: 28px 1fr; gap: 7px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.indicator > i { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: #fff; font-style: normal; font-size: 14px; }
.indicator > i .ui-icon { width: 15px; height: 15px; }
.indicator.green > i { background: var(--green); }.indicator.blue > i { background: var(--blue); }.indicator.purple > i { background: var(--purple); }.indicator.orange > i { background: var(--orange); }
.indicator span, .indicator b, .indicator em, .indicator small { display: block; }
.indicator span { color: #555d67; font-size: 14px; }.indicator b { margin-top: 2px; font-size: 14px; line-height: 1.05; }.indicator em { margin-top: 4px; color: var(--green); font-size: 14px; font-style: normal; font-weight: 850; }.indicator em.negative { color: var(--red); }.indicator small { margin-top: 2px; color: #7c838c; font-size: 14px; }
.mini-progress { height: 5px; margin-top: 9px; overflow: hidden; border-radius: 6px; background: #e9ecef; }.mini-progress span { height: 100%; border-radius: inherit; background: var(--green); }

.chart-card { margin: 7px 10px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 2px 7px rgba(18,24,30,.035); }
.trend-card { scroll-margin-top: 120px; }
.trend-card .section-heading strong { font-size: 14px; }
.period-pills { display: flex; padding: 2px; border-radius: 7px; background: #eceef1; }
.period-pills button { min-width: 28px; min-height: 19px; border: 0; border-radius: 5px; color: #5d646d; background: transparent; font-size: 14px; font-weight: 800; }.period-pills .active { color: #fff; background: #20242a; }
.metric-pills { margin: 3px 0 5px; padding: 2px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; border-radius: 7px; background: #eceef1; }
.metric-pills button { min-height: 22px; border: 0; border-radius: 5px; color: #5d646d; background: transparent; font-size: 14px; font-weight: 850; }
.metric-pills button.active { color: #fff; background: var(--red); }
.sales-chart { min-height: 174px; }
.sales-chart svg { display: block; width: 100%; height: 146px; overflow: visible; }
.trend-scroll { max-width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: #c7ccd2 transparent; }
.sales-chart text { font-family: Arial, sans-serif; }.bar-value { fill: #d90816; font-size: 14px; font-weight: 850; }.prior-value { fill: #68717b; font-size: 14px; font-weight: 800; }.growth-value { font-size: 14px; font-weight: 900; }.growth-value.positive { fill: #079a4a; }.growth-value.negative { fill: #d90816; }.month-label { fill: #666e78; font-size: 14px; }
.chart-empty { min-height: 120px; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.annual-summary { min-height: 28px; margin: 3px 0 1px; padding: 5px 7px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-radius: 6px; background: #f6f7f9; color: #626a74; font-size: 14px; }
.annual-summary b { color: #262b31; }.annual-summary strong { white-space: nowrap; font-size: 14px; }.annual-summary .positive { color: var(--green); }.annual-summary .negative { color: var(--red); }.annual-summary.unavailable { justify-content: center; text-align: center; color: #848b94; }
.trend-card.annual-pending .annual-legend { display: none; }
.trend-card.annual-pending .sales-chart { min-height: 146px; }
.chart-legend { display: flex; justify-content: center; gap: 11px; color: #59616a; font-size: 14px; }
.chart-legend i { display: inline-block; margin-right: 4px; vertical-align: middle; }.legend-red { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.legend-previous { width: 7px; height: 7px; border-radius: 2px; background: #8b949f; }
.split-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 10px; }
.split-panels .chart-card { margin: 0; min-width: 0; }
.mini-panel { scroll-margin-top: 120px; }
.mini-panel .section-heading { min-height: 23px; }.mini-panel .section-heading strong { font-size: 14px; }
.bar-row { display: grid; grid-template-columns: 46px 1fr 30px; gap: 4px; align-items: center; margin: 7px 0; font-size: 14px; }
.bar-row > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.bar-row b { text-align: right; }
.bar-track { height: 7px; overflow: hidden; border-radius: 5px; background: #edf0f3; }.bar-fill { height: 100%; border-radius: inherit; }
.equipment-list { display: grid; gap: 4px; }.equipment-list p { margin: 6px 0; color: var(--muted); font-size: 14px; }
.equipment-row { min-height: 25px; display: grid; grid-template-columns: 1fr auto; column-gap: 4px; align-items: center; border-bottom: 1px solid #eff1f3; font-size: 14px; }.equipment-row span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.equipment-row b { font-size: 14px; }.active-tag { grid-column: 2; padding: 2px 4px; border-radius: 6px; color: #079445; background: #e1f7e9; font-size: 14px; font-style: normal; }

.product-panel, .insights-panel, .commerce-panel { scroll-margin-top: 120px; }
.product-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(132px, 1fr); gap: 6px; overflow-x: auto; padding-bottom: 3px; }
.product-card { min-height: 72px; padding: 6px; display: grid; grid-template-columns: 42px 1fr; gap: 7px; align-items: center; border: 1px solid #eceef1; border-radius: 8px; background: #fafbfc; }
.product-picture { width: 42px; height: 60px; border-radius: 6px; background-image: url("assets/product-lineup-v2.webp"); background-repeat: no-repeat; background-size: 500% 100%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.product-0 { background-position: 0% center; }.product-1 { background-position: 25% center; }.product-2 { background-position: 50% center; }.product-3 { background-position: 75% center; }.product-4 { background-position: 100% center; }
.product-card span, .product-card strong, .product-card small { display: block; }.product-card span { color: var(--red); font-size: 14px; font-weight: 850; text-transform: uppercase; }.product-card strong { display: -webkit-box; margin-top: 3px; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; line-height: 1.15; }.product-card small { margin-top: 4px; color: #66707a; font-size: 14px; }
.product-empty { padding: 13px; text-align: center; color: var(--muted); font-size: 14px; }
.commerce-panel { padding: 0; overflow: hidden; }
.commerce-panel > .section-heading, .sku-heading { min-height: 33px; margin: 0; padding: 8px 10px; }
.commerce-heading strong, .sku-heading strong, .opportunities-heading strong { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.commerce-heading .ui-icon, .sku-heading .ui-icon, .opportunities-heading .ui-icon { width: 12px; height: 12px; }
.commerce-heading small, .sku-heading small { color: #555e68; font-size: 14px; font-weight: 700; }
.category-mix { padding: 3px 12px 11px; }
.donut-wrap { display: grid; grid-template-columns: 112px 1fr; gap: 15px; align-items: center; }
.donut { width: 110px; height: 110px; display: grid; place-items: center; border-radius: 50%; transform: rotate(-90deg); box-shadow: inset 0 0 0 1px rgba(0,0,0,.025); }
.donut-hole { width: 61px; height: 61px; display: grid; place-content: center; border-radius: 50%; text-align: center; color: #333940; background: #fff; transform: rotate(90deg); box-shadow: 0 0 0 1px rgba(0,0,0,.025); }
.donut-hole small, .donut-hole strong { display: block; }.donut-hole small { font-size: 14px; }.donut-hole strong { font-size: 14px; }
.category-legend { display: grid; gap: 6px; }.category-legend-row { display: grid; grid-template-columns: 8px 1fr 30px; gap: 5px; align-items: center; font-size: 14px; }.category-legend-row i { width: 8px; height: 8px; border-radius: 50%; }.category-legend-row b { text-align: right; font-size: 14px; }
.sku-section { border-top: 1px solid #e9ebee; }.sku-heading { border-bottom: 1px solid #eef0f2; }
.sku-list { padding: 4px 10px 9px; display: grid; gap: 2px; }.sku-row { min-height: 32px; display: grid; grid-template-columns: 18px 1fr 50px; gap: 6px; align-items: center; }.sku-rank { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: #6a727c; background: #f0f2f4; font-size: 14px; }.sku-main { min-width: 0; }.sku-main strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }.sku-track { height: 7px; margin-top: 3px; overflow: hidden; border-radius: 1px; background: #edf0f2; }.sku-track span { display: block; height: 100%; background: var(--red); }.sku-volume { text-align: right; font-size: 14px; white-space: nowrap; }.sku-volume small { display: block; margin-top: 2px; color: #727a83; font-size: 14px; }
.ssd-panel, .division-panel { scroll-margin-top: 120px; padding: 0; overflow: hidden; }
.ssd-heading, .division-heading { min-height: 38px; padding: 8px 10px; border-bottom: 1px solid #e9ebee; }.ssd-heading strong, .division-heading strong { font-size: 14px; }.ssd-heading > span { padding: 3px 7px; border-radius: 9px; color: #6b737c; background: #eef0f2; font-size: 14px; font-weight: 800; }.ssd-heading > span.positive { color: #087e40; background: #dff6e8; }.division-heading > span { max-width: 245px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #626b75; font-size: 14px; }
.ssd-content { padding: 8px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 7px; }.ssd-subcard { min-width: 0; padding: 8px; border: 1px solid #e7e9ed; border-radius: 8px; background: #fafbfc; }.ssd-subcard.exclusive { border-color: #ddd3fa; background: #faf8ff; }.ssd-subhead strong, .ssd-subhead span { display: block; }.ssd-subhead strong { font-size: 14px; }.ssd-subhead span { min-height: 18px; margin-top: 3px; color: #69727c; font-size: 14px; line-height: 1.3; }.ssd-empty { grid-column: 1 / -1; padding: 14px; display: grid; gap: 5px; text-align: center; border-radius: 8px; color: #606974; background: #f5f6f8; }.ssd-empty strong { color: #2c3239; font-size: 14px; }.ssd-empty span { font-size: 14px; }
.ssd-update { grid-column: 1 / -1; padding: 6px; border-radius: 6px; text-align: center; color: #69727b; background: #eef1f4; font-size: 14px; }
.ssd-skus { grid-column: 1 / -1; padding: 8px; border: 1px solid #e7e9ed; border-radius: 8px; background: #fff; }.ssd-skus .division-insight { margin-top: 7px; }
.ssd-table, .division-table { width: 100%; margin-top: 7px; border-collapse: collapse; table-layout: fixed; }.ssd-table th, .ssd-table td, .division-table th, .division-table td { padding: 5px 3px; border-top: 1px solid #e7e9ed; text-align: left; font-size: 14px; }.ssd-table thead th, .division-table thead th { color: #737b84; font-size: 14px; font-weight: 750; }.ssd-table tbody th, .division-table tbody th { color: #262c33; font-weight: 850; }.ssd-table td:last-child { text-align: right; }.segment-table th:first-child { width: 24px; }.segment-table td:nth-child(2) { width: 40px; white-space: nowrap; }.segment-table td:last-child { display: grid; grid-template-columns: 1fr 28px; gap: 4px; align-items: center; }
.mix-table th:first-child { width: 48%; }.mix-table td:nth-child(2) { white-space: nowrap; }.mix-table tbody th small { margin-top: 2px; display: block; color: #717a84; font-size: 14px; font-weight: 650; line-height: 1.3; }
.share-cell { height: 5px; overflow: hidden; border-radius: 4px; background: #e5e8eb; }.share-cell span { display: block; height: 100%; border-radius: inherit; background: var(--accent, var(--purple)); }.share-cell + b { text-align: right; font-size: 14px; }
.division-content { padding: 8px; }.division-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }.division-totals article { min-height: 43px; padding: 7px; border-radius: 7px; background: #f5f7f9; }.division-totals span, .division-totals b { display: block; }.division-totals span { color: #69727c; font-size: 14px; }.division-totals b { margin-top: 3px; font-size: 14px; }.still-panel .division-totals article:first-child { background: #eaf6ff; }.partners-panel .division-totals article:first-child { background: #f2edff; }
.division-sku-head { min-height: 31px; padding: 3px 2px 7px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eceef1; }.division-sku-head strong { font-size: 14px; }.division-sku-head span { color: #6e7680; font-size: 14px; }.division-sku-list { display: grid; }.division-sku-row { min-height: 36px; display: grid; grid-template-columns: 18px minmax(0,1fr) 54px 32px; gap: 6px; align-items: center; border-bottom: 1px solid #eef0f2; }.division-sku-row > b { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: #68717a; background: #eef0f3; font-size: 14px; }.division-sku-row > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; font-weight: 750; }.division-sku-row > em { text-align: right; color: #343b43; font-size: 14px; font-style: normal; font-weight: 800; white-space: nowrap; }.division-sku-row > em small { display: block; margin-top: 2px; color: #747c85; font-size: 14px; font-weight: 600; }.division-sku-row > strong { text-align: right; color: var(--accent, var(--red)); font-size: 14px; }.division-empty { padding: 13px; text-align: center; color: #747c85; font-size: 14px; }
.division-opportunity-head { min-height: 34px; margin-top: 8px; padding: 7px 2px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #e6e9ec; border-bottom: 1px solid #eceef1; }.division-opportunity-head strong { font-size: 14px; }.division-opportunity-head span { color: #707881; font-size: 14px; text-align: right; }.division-opportunity-list { display: grid; gap: 4px; padding-top: 5px; }.product-opportunity { min-height: 58px; padding: 6px; display: grid; grid-template-columns: 18px minmax(0,1fr) auto; grid-template-rows: auto auto; gap: 2px 6px; align-items: center; border-radius: 7px; background: #fff2e9; }.product-opportunity > b { grid-row: 1 / span 2; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #f08a24; font-size: 14px; }.product-opportunity > div { min-width: 0; }.product-opportunity > div strong, .product-opportunity > div span { display: block; }.product-opportunity > div strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }.product-opportunity > div span { margin-top: 3px; color: #69717a; font-size: 14px; line-height: 1.35; }.product-opportunity > em { padding: 4px 6px; border-radius: 9px; color: #087d40; background: #dff5e8; font-size: 14px; font-style: normal; font-weight: 850; white-space: nowrap; }.product-opportunity > em small { display: block; margin-top: 2px; font-size: 14px; font-weight: 700; }.product-opportunity > small { grid-column: 3; color: #d64a1e; font-size: 14px; text-align: right; }
.division-table th:nth-child(1) { width: 60px; }.division-table th:nth-child(2) { width: 45px; }.division-table th:nth-child(3) { width: 62px; }.division-table td:nth-child(2), .division-table td:nth-child(3) { white-space: nowrap; }.division-table td:last-child { display: grid; grid-template-columns: 1fr 27px; gap: 4px; align-items: center; }
.division-insights { margin-top: 7px; display: grid; gap: 5px; }.division-insight { min-height: 35px; padding: 6px 8px; display: grid; grid-template-columns: 67px 1fr; gap: 6px; align-items: center; border-radius: 7px; }.division-insight b { font-size: 14px; }.division-insight span { color: #59626c; font-size: 14px; line-height: 1.3; }.division-insight.positive { background: #e8f8ef; }.division-insight.positive b { color: #078943; }.division-insight.warning { background: #fff6d8; }.division-insight.warning b { color: #8a6500; }.division-insight.info { background: #edf3f8; }.division-insight.info b { color: #476173; }
.opportunities-heading { padding-bottom: 6px; border-bottom: 1px solid #eef0f2; }.opportunities-heading > span { color: #747c85; font-size: 14px; }
.insight-list { display: grid; gap: 5px; }.insight { min-height: 48px; padding: 6px 7px; display: grid; grid-template-columns: 28px minmax(0,1fr) auto 8px; gap: 7px; align-items: center; border-radius: 7px; background: #f7f8fa; }.insight > i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #fff; font-style: normal; font-weight: 900; }.insight strong, .insight span { display: block; }.insight strong { font-size: 14px; }.insight span { margin-top: 3px; color: #636b74; font-size: 14px; line-height: 1.25; }.insight em { padding: 4px 7px; border-radius: 10px; font-size: 14px; font-style: normal; font-weight: 850; white-space: nowrap; }.insight-chevron { color: #606871; font-size: 14px; }.insight.good { background: #eaf8ef; }.insight.good > i { background: var(--green); }.insight.good em { color: #078d44; background: #d3f2df; }.insight.risk { background: #fff0f1; }.insight.risk > i { background: var(--red); }.insight.risk em { color: #d30715; background: #ffdfe2; }.insight.info { background: #eaf6ff; }.insight.info > i { background: var(--blue); }.insight.info em { color: #1570bb; background: #d6ecff; }.insight.warning { background: #fff8df; }.insight.warning > i { color: #292b2f; background: var(--yellow); }.insight.warning em { color: #8a6700; background: #ffed9c; }.insight.equipment { background: #f2edff; }.insight.equipment > i { background: var(--purple); }.insight.equipment em { color: #6140c5; background: #e3d9ff; }.insight.potential { background: #f4edff; }.insight.potential > i { background: #8b42ec; }.insight.potential em { color: #7231cd; background: #e7d6ff; }
.insight > i .ui-icon { width: 16px; height: 16px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; max-width: min(360px, calc(100% - 32px)); padding: 11px 15px; border-radius: 10px; color: #fff; background: #22272e; box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: .2s; font-size: 14px; }.toast.visible { opacity: 1; transform: translate(-50%,0); }
.account-menu {position:fixed;z-index:80;top:76px;right:max(18px,calc((100vw - 390px)/2 + 14px));width:220px;padding:14px;border-radius:12px;background:#fff;box-shadow:0 12px 30px rgba(0,0,0,.25);border:1px solid #e4e7eb}.account-menu strong,.account-menu span{display:block}.account-menu strong{font-size:15px}.account-menu span{margin-top:4px;color:var(--muted);font-size:13px}.account-menu button{width:100%;margin-top:12px;padding:9px;border:0;border-radius:8px;color:#fff;background:var(--red);font-weight:800}

@media (max-width: 480px) {
  .app-shell { padding: 0; }
  .phone { display: none; width: 100%; min-height: 100vh; max-height: none; border: 0; border-radius: 0; box-shadow: none; }
  .phone.active { display: block; }
}

@media (max-width: 680px) {
  .login-screen { padding: 0; }
  .login-card { width: 100%; min-height: 100vh; grid-template-columns: 1fr; border-radius: 0; }
  .login-product-art { min-height: 33vh; }
  .login-content { padding: 28px 24px 34px; }
  .ssd-content { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

.home-sales-summary {display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.home-sales-summary article {background:white;border:1px solid #e1e4e8;border-radius:10px;padding:10px;min-width:0}.home-sales-summary article>span {font-size: 14px;color:#66707b}.home-sales-summary article>strong {display:block;margin:6px 0 10px;font-size:17px}.home-comparison {display:flex;align-items:center;justify-content:space-between;gap:5px;border-top:1px solid #eee;padding:7px 0;font-size: 14px}.home-comparison small {display:block;margin-top:3px}.home-comparison b {white-space:nowrap}.home-comparison .positive {color:#079a4a}.home-comparison .negative {color:#d90816}

.ssd-profile-section {margin-top:8px}.ssd-profile-section>strong {display:block;font-size: 14px;color:#303740}.ssd-profile-section+.ssd-profile-section {padding-top:10px;border-top:1px solid #e1e5eb;margin-top:12px}

/* Readable typography with room for wrapping on narrow screens. */
.home-sales-summary,.indicator-grid,.ssd-content {grid-template-columns:1fr}
.home-sales-summary article {padding:16px}
.home-sales-summary article>strong {font-size:26px}
.home-comparison {font-size:14px;line-height:1.5;padding:12px 0}
.home-comparison small {font-size:14px}
.metric-grid article {min-height:108px}
.metric-grid span {line-height:1.4}
.section-heading {height:auto;min-height:44px;gap:10px;flex-wrap:wrap}
.section-heading strong,.ssd-heading strong,.division-heading strong {font-size:18px}
.hero {height:210px}
.hero-copy {width:85%;padding-top:24px}
.hero h2 {font-size:24px}
.hero small {max-height:none;line-height:1.5}
.hero img {height:240px}
.search-box input {font-size:16px}
.division-sku-row {grid-template-columns:26px minmax(0,1fr);padding:12px 0;gap:8px}
.division-sku-row>span,.sku-main strong {white-space:normal;overflow:visible;line-height:1.45;overflow-wrap:anywhere}
.division-sku-row>em {grid-column:2;text-align:left}
.division-sku-row>strong {grid-column:2;text-align:left}
.division-sku-row>b,.sku-rank {width:24px;height:24px}
.division-insight {grid-template-columns:1fr;padding:14px;gap:8px}
.division-insight span {line-height:1.55;color:#343b43}
.division-sku-head,.division-opportunity-head {flex-direction:column;align-items:flex-start;gap:6px;padding:12px 0}
.division-opportunity-head span {text-align:left}
.ssd-table th,.ssd-table td {padding:12px 4px;overflow-wrap:anywhere;line-height:1.4}
.mix-table th:first-child {width:38%}
.mix-table td:nth-child(2),.segment-table td:nth-child(2) {white-space:normal}
.segment-table th:first-child {width:18%}
.segment-table td:nth-child(2) {width:35%}
.segment-table td:last-child {display:table-cell}
.share-cell {display:none}
.ssd-subhead span {min-height:0;line-height:1.5;margin-bottom:12px}
.ssd-subcard,.ssd-skus,.division-content {padding:12px}
.ssd-profile-section>strong {font-size:16px}
.sku-row {grid-template-columns:24px minmax(0,1fr);padding:12px 0}
.sku-volume {grid-column:2;text-align:left;white-space:normal}
.category-legend-row {grid-template-columns:10px minmax(0,1fr) 52px;line-height:1.5}
.category-legend {gap:10px}
.donut-wrap {grid-template-columns:100px minmax(0,1fr);gap:10px}
.donut {width:96px;height:96px}.donut-hole {width:60px;height:60px}
.indicator {min-height:120px;padding:14px}
.indicator b {font-size:24px}.indicator span,.indicator small {line-height:1.5}
.annual-summary {flex-wrap:wrap;line-height:1.5;padding:10px}
.annual-summary strong {white-space:normal}
.chart-legend {flex-wrap:wrap;line-height:1.5}
.metric-pills button,.period-pills button {min-height:44px;padding:8px 12px}
.detail-tabs {overflow-x:auto}
.detail-tabs button {min-height:44px;flex-shrink:0}
.division-heading>span {white-space:normal;max-width:100%}
.insight {grid-template-columns:28px minmax(0,1fr);padding:12px}
.insight em {grid-column:2;justify-self:start}
.insight span {line-height:1.5}
.row-metrics {grid-template-columns:1fr;gap:12px}
.row-metrics small {line-height:1.5}
.sales-chart svg {height:220px}.phone-status {display:none}.client-persons {flex-wrap:wrap}

.polarized-badge {display:inline-block;margin-top:10px;padding:5px 9px;border-radius:10px;color:#515963;background:#eef0f2;font-size:14px}.polarized-badge.positive {color:#087e40;background:#dff6e8}

.row-metrics>span {display:grid;grid-template-columns:28px minmax(0,1fr);gap:3px 8px}
.row-metrics>span>b {grid-row:1 / span 2;align-self:center}
.row-metrics>span>small {grid-column:2;margin:0}
.row-metrics>span>strong {grid-column:2;font-size:16px;line-height:1.4}
.indicator-inline {display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:6px 10px}
.indicator-inline b,.indicator-inline em,.indicator-inline small {margin:0}
.indicator-inline b {font-size:22px}
.indicator>div {min-width:0;text-align:center}
.indicator {min-height:100px}
.ssd-table td,.ssd-table td:last-child,.ssd-table thead th:not(:first-child) {text-align:center}
.mix-table th:first-child {width:43%}
.ssd-table tbody th {word-break:normal;overflow-wrap:normal}
.segment-table th:first-child {width:22%}
.segment-table td:nth-child(2) {width:42%}
.division-sku-row>em small {display:inline;margin-left:5px}
.sku-row {grid-template-columns:24px minmax(0,1fr);row-gap:8px}
.sku-main {display:contents}
.sku-main strong {grid-column:2}
.sku-track {grid-column:2;width:30%;align-self:center;grid-row:2}
.sku-volume {grid-column:2;grid-row:2;display:flex;justify-content:flex-end;gap:10px;font-size:14px}
.sku-volume>span {display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.sku-volume .ui-icon {width:14px;height:14px}
.sales-chart .bar-value,.sales-chart .prior-value,.sales-chart .growth-value {font-size:10px}
.sales-chart .month-label {font-size:9px}
.sales-chart svg {height:auto;min-height:165px}
.chart-legend {font-size:12px}

.ssd-profile-section {margin-top:18px}
.ssd-profile-section>strong {display:block;padding:10px 12px;border-radius:7px;background:#e9edf3;color:#172331;font-size:18px;font-weight:850}
.ssd-profile-section+.ssd-profile-section {margin-top:26px;padding-top:20px;border-top:2px solid #d6dce5}
.detail-tabs {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;overflow:visible;height:auto;max-height:none;white-space:normal;padding:8px}
.detail-tabs button {min-width:0;width:100%;min-height:44px;white-space:normal;font-size:13px;padding:8px 3px;line-height:1.3}
.detail-tabs button:last-child {grid-column:span 2}

.division-sku-metrics {grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}.division-sku-metrics em,.division-sku-metrics strong {display:inline-flex;align-items:center;gap:4px;font-size:14px;white-space:nowrap;font-style:normal}.division-sku-metrics em {font-weight:800}.division-sku-metrics small {font-size:13px;color:#66707b}.division-sku-metrics strong {color:var(--accent,var(--red))}.division-sku-metrics .ui-icon {width:14px;height:14px;flex-shrink:0}

.indicator>div {text-align:left}.indicator-inline {justify-content:flex-start}.ssd-title-row {display:flex;align-items:center;justify-content:space-between;gap:8px}.ssd-title-row>strong {min-width:0}.ssd-title-row .polarized-badge {margin-top:0;flex-shrink:0;font-size:12px;padding:5px 7px}.ssd-title-row>strong {font-size:14px}

#detail-consultor,#detail-supervisor,#detail-gerente {white-space:normal;overflow:visible;text-overflow:clip;line-height:1.35;overflow-wrap:normal}

/* The simulated status bar is hidden; headers start at the actual top. */
.topbar,.compactbar {top:0}
.detail-tabs {top:54px}
.client-head {grid-template-columns:38px minmax(0,1fr) auto}
.client-head>div {min-width:0}
.client-head strong {max-width:none;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.4}
.row-identity {min-width:0}
.row-identity>strong {white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.4}
.bar-title strong,.bar-title span {white-space:normal;overflow:visible;text-overflow:clip}
.row-identity {display:contents}.row-identity>strong {grid-column:2;grid-row:1;max-width:none}.row-top>.distance-pill {grid-column:3;grid-row:1}.row-top>.chevron {grid-column:4;grid-row:1}.row-identity>span {grid-column:2 / -1;grid-row:2}.row-identity>.client-consultor-route {grid-column:1 / -1;grid-row:3;margin-top:4px;font-size:14px;line-height:1.4}

.home-category-filter {display:grid;gap:6px;margin:14px 0;font-size:14px;font-weight:700}.home-category-filter select {width:100%;min-height:46px;padding:10px 12px;border:1px solid #d7dce3;border-radius:9px;background:white;color:#20252b;font:inherit;font-size:16px}
.row-identity>span {grid-column:1 / -1;text-align:left;justify-self:start}.row-identity>.client-consultor-route {text-align:left;justify-self:start}

#partners-panel .division-heading {display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:7px}#partners-panel .division-heading>strong {flex-shrink:0;font-size:17px}#partners-panel .division-heading>span {min-width:0;max-width:none;font-size:11px;line-height:1.35;text-align:right;white-space:normal}

.sales-actions {margin-top:16px;padding:14px;border:1px solid #cbddeb;border-radius:10px;background:#f0f6fb}.sales-actions h4 {margin:0 0 8px;font-size:16px}.sales-actions article {padding:12px 0;border-top:1px solid #cedeea;margin-top:12px}.sales-actions b {font-size:14px;color:#165778}.sales-actions p {font-size:14px;line-height:1.5;margin:8px 0}.sales-actions small,.sales-actions .actions-note {font-size:13px;line-height:1.5;color:#52616d}
.polarization-mark {display:inline-grid;place-items:center;width:20px;height:20px;margin-right:7px;border-radius:50%;font-size:14px;font-weight:900;vertical-align:middle}.polarization-mark.yes {color:#087f42;background:#d9f5e5}.polarization-mark.no {color:#bd2635;background:#fde2e5}

/* Official combined brand: dedicated row preserves readability on mobile. */
.brand-logo { display:block; width:210px; max-width:100%; height:auto; object-fit:contain; }
.login-content .brand-logo { width:270px; margin-bottom:20px; }
.topbar:has(.brand-logo), .compactbar:has(.brand-logo) { flex-wrap:wrap; }
.topbar > .brand-logo, .compactbar > .brand-logo { width:230px; max-width:calc(100% - 52px); height:34px; flex:0 1 auto; object-position:left center; }

.directions-link { display:inline-flex; align-items:center; gap:7px; margin-top:12px; padding:10px 12px; min-height:44px; border-radius:8px; color:#1764bd; background:#edf5ff; text-decoration:none; font-size:14px; font-weight:700; }
.directions-link .ui-icon {width:18px;height:18px;}
.directions-unavailable {display:block;margin-top:10px;color:#68717c;font-size:14px;}
.client-row {cursor:pointer;}

.primary-shortcuts {grid-template-columns:1fr;}
#search-submit {width:auto;padding:8px;font-size:14px;color:#fff;background:var(--red);border-radius:8px;}
.search-preview {margin:0 16px 14px;padding:10px;background:#fff;border:1px solid var(--line);border-radius:12px;}
.search-preview button {display:flex;width:100%;flex-direction:column;gap:4px;text-align:left;padding:10px 4px;border:0;border-bottom:1px solid var(--line);background:#fff;font-size:14px;}
.search-preview small,.search-preview span {color:var(--muted);font-size:14px;}

.hero.portfolio-hero {height:auto;aspect-ratio:3/2;}
.hero.portfolio-hero::after {display:none;}
.hero.portfolio-hero img {inset:0;width:100%;height:100%;object-fit:contain;opacity:1;filter:none;}
.location-note {display:block;padding:10px 16px 24px;font-size:14px;line-height:1.4;color:var(--muted);}

.sku-catalog-row{grid-template-columns:minmax(0,1fr) auto}.sku-catalog-title{min-width:0}.sku-catalog-title strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sku-catalog-title small{display:inline;margin-left:6px}.sku-catalog-growth{align-items:center}.sku-catalog-growth .up{color:#08a34a}.sku-catalog-growth .down{color:#e30613}.sku-catalog-growth .neutral{color:#68717c}.sku-catalog-growth .ui-icon{display:inline-block;width:13px;height:13px;vertical-align:-2px}

.sku-catalog-row{display:block;padding:10px 0}.sku-catalog-title{display:flex;align-items:center;gap:10px}.sku-catalog-title .sku-rank{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#eef1f4;color:#5c6874;flex:0 0 auto}.sku-catalog-line{display:flex;align-items:center;gap:12px;padding:7px 0 0 38px;white-space:nowrap;overflow-x:auto;font-weight:800}.sku-catalog-line>span{display:inline-flex;align-items:center;gap:4px}.sku-catalog-line .sku-catalog-growth{display:inline-flex;padding:0;gap:4px}.sku-catalog-title small{display:none}

.sku-catalog-line{gap:7px;padding-left:38px;font-size:12px;overflow:hidden}.sku-catalog-line>span{gap:2px;flex:0 0 auto}.sku-catalog-line .sku-catalog-growth{font-size:11px;gap:3px}.sku-catalog-line .ui-icon{width:12px;height:12px}.sku-catalog-title strong{font-size:14px}

.sku-catalog-line{gap:4px;padding-left:38px;font-size:10px;white-space:normal;overflow:visible;flex-wrap:wrap;line-height:1.2}.sku-catalog-line .sku-catalog-growth{font-size:10px}.sku-catalog-line .ui-icon{width:10px;height:10px}

.detail-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.detail-tabs button{min-height:52px;padding:8px 4px;line-height:1.15}

.sku-catalog-line{display:flex;flex-wrap:nowrap;white-space:nowrap;overflow:hidden;gap:4px;font-size:10px;padding-left:38px}.sku-catalog-line .sku-catalog-growth{display:inline-flex;white-space:nowrap;font-size:10px}.sku-catalog-line>span{white-space:nowrap}.sku-catalog-line>span:first-child{color:#175a9b}.sku-catalog-line>span:nth-child(2){color:#7b3fe4}.sku-catalog-line .up{color:#0a9f4a}.sku-catalog-line .down{color:#e30613}.sku-catalog-line .neutral{color:#68717c}


.sku-catalog-line{font-size:12px;white-space:nowrap;overflow:hidden;padding-top:8px}.sku-catalog-growth{display:flex;gap:10px;padding:5px 0 0 38px;font-size:11px;white-space:nowrap}.sku-catalog-growth .up{color:#0a9f4a}.sku-catalog-growth .down{color:#e30613}

.detail-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;padding:8px!important}.detail-tabs button{min-width:0!important;width:auto!important;height:52px!important;padding:5px 3px!important;font-size:13px!important;line-height:1.1!important}

.phone>.screen-topbar,.phone>.topbar{position:sticky!important;top:0!important;z-index:100!important}.phone-status{z-index:110!important}

.sku-catalog-line{display:grid;grid-template-columns:1fr 1fr;gap:5px 12px;padding-left:38px;font-size:13px;white-space:normal;overflow:visible;align-items:center}.sku-catalog-line>span{min-width:0}.sku-catalog-line>span:nth-child(1){grid-column:1;grid-row:1}.sku-catalog-line>span:nth-child(2){grid-column:1;grid-row:2}.sku-catalog-line>span:nth-child(3){grid-column:2;grid-row:1}.sku-catalog-line>span:nth-child(4){grid-column:2;grid-row:2}.sku-catalog-line .sku-catalog-growth{display:inline-flex;padding:0;font-size:12px}.sku-catalog-line .sku-catalog-growth:nth-child(2){grid-column:1;grid-row:2}.sku-catalog-line .sku-catalog-growth:nth-child(4){grid-column:2;grid-row:2}

.sku-catalog-line{font-size:12px;column-gap:18px;row-gap:6px}.sku-catalog-line .sku-catalog-growth{font-size:12px;min-width:0;white-space:nowrap}.sku-catalog-line>span{min-height:18px;display:flex;align-items:center;gap:4px}.sku-catalog-line>span:nth-child(3),.sku-catalog-line .sku-catalog-growth:nth-child(4){justify-self:start}

.detail-tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important;padding:6px!important}.detail-tabs button{min-height:38px!important;padding:4px 2px!important;font-size:12px!important}.detail-tabs button:last-child{grid-column:auto!important}

@media (max-width:600px){.phone.active>.topbar,.phone.active>.screen-topbar{position:fixed!important;top:0!important;left:50%!important;transform:translateX(-50%)!important;width:min(390px,100vw)!important;z-index:200!important}.phone.active>.phone-status{position:fixed!important;top:0!important;left:50%!important;transform:translateX(-50%)!important;width:min(390px,100vw)!important;z-index:210!important}.phone.active>.topbar~.hero,.phone.active>.screen-topbar~.view-toggle,.phone.active>.screen-topbar~.client-head{margin-top:92px!important}}

.sku-catalog-line .sku-catalog-growth.up{color:#0a9f4a!important}.sku-catalog-line .sku-catalog-growth.down{color:#e30613!important}.sku-catalog-line .sku-catalog-growth.neutral{color:#68717c!important}

#location-status.location-note{padding-bottom:4px}.location-note + .location-note{padding-top:0;padding-bottom:10px}

.bar-value.previous{fill:#6f7a85!important}

.sku-catalog-line .up{color:#0a9f4a!important}.sku-catalog-line .down{color:#e30613!important}.sku-catalog-line .neutral{color:#68717c!important}

.equipment-line{display:block;margin:.18rem 0;}


.equipment-bullet{color:#7c3aed;font-size:.75em;margin-right:.25rem;}

.imperdoaveis-panel[hidden] { display: none; }
.imperdoaveis-panel { padding: 8px 10px 12px; border-top: 1px solid #e9ebee; }
.imperdoaveis-title { padding: 8px 12px; border-radius: 3px; color: #fff; background: #192663; font-size: 12px; font-weight: 850; letter-spacing: .14em; }
.imperdoaveis-scroll { overflow-x: hidden; }
.nearby-channel-row { display: flex; align-items: center; gap: 8px; margin: 0 8px 6px; padding: 6px 8px; font-size: 13px; color: #505a65; }
.nearby-channel-row select { flex: 1; min-width: 0; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: inherit; font: inherit; }
.imperdoaveis-pending { margin-top: 10px; font-size: 13px; }
.imperdoaveis-pending details { margin-top: 5px; padding: 6px 8px; border-radius: 6px; background: #f4f5f7; }
.imperdoaveis-pending summary { cursor: pointer; font-weight: 700; }
.imperdoaveis-pending ul { margin: 6px 0 2px; padding-left: 16px; }
.imperdoaveis-pending li { white-space: nowrap; font-size: 12px; }
.imperdoaveis-pending p { margin: 6px 0 2px; }
.imperdoaveis-table { width: 100%; min-width: 0; border-spacing: 0 4px; table-layout: fixed; font-size: 10px; }
.imperdoaveis-table th:first-child { width: 42px; text-align: left; }
.imperdoaveis-table thead th { padding: 5px 0 2px; color: #89909d; font-size: clamp(8px, 2.4vw, 10px); text-align: center; }
.imperdoaveis-table tbody th, .imperdoaveis-table tbody td { padding: 3px 0; background: #f4f6f9; text-align: center; }
.imperdoaveis-table tbody th { padding-left: 6px; font-weight: 700; }
.imperdoaveis-table tbody tr > :first-child { border-radius: 5px 0 0 5px; }
.imperdoaveis-table tbody tr > :last-child { border-radius: 0 5px 5px 0; }
.imperdoaveis-ok, .imperdoaveis-no, .imperdoaveis-na { display: inline-grid; width: clamp(15px, 4.5vw, 19px); height: clamp(15px, 4.5vw, 19px); place-items: center; border-radius: 50%; color: #fff; font-size: clamp(13px, 3.8vw, 17px); font-weight: 800; line-height: 1; }
.imperdoaveis-ok { background: #27b969; }.imperdoaveis-no { background: #d52f3c; }.imperdoaveis-na { color: #838b96; background: #e3e7ec; font-size: 12px; }
.imperdoaveis-alert { display: inline-grid; width: clamp(15px, 4.5vw, 19px); height: clamp(15px, 4.5vw, 19px); place-items: center; border-radius: 50%; color: #fff; background: #f2b400; font-size: clamp(12px, 3.5vw, 16px); font-weight: 900; line-height: 1; }
.segment-table th:first-child { width: 18%; }
.segment-table th:nth-child(2) { width: 30%; }
.segment-table th:nth-child(3) { width: 26%; }
.segment-table th:nth-child(4) { width: 26%; }
.segment-table th, .segment-table td { padding: 4px 2px; font-size: 11px; }
.segment-table thead th { font-size: 10px; line-height: 1.1; }
.segment-table td:nth-child(2) { width: auto; }
.segment-table td:nth-child(3) { display: grid; grid-template-columns: minmax(0,1fr) 34px; gap: 3px; align-items: center; }
.segment-table td:nth-child(4) { display: table-cell; text-align: right; white-space: nowrap; font-size: 10px; }
.sku-catalog-line { display: grid !important; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr) minmax(0,1.1fr) !important; gap: 5px 6px; }
.sku-catalog-line>span:nth-child(1) { grid-column: 1; grid-row: 1; }
.sku-catalog-line>span:nth-child(2) { grid-column: 1; grid-row: 2; }
.sku-catalog-line>span:nth-child(3) { grid-column: 2; grid-row: 1; white-space: nowrap; }
.sku-catalog-line>span:nth-child(4) { grid-column: 3; grid-row: 1; }
.sku-catalog-line>span:nth-child(5) { grid-column: 2; grid-row: 2; }
.sku-catalog-line>.sku-catalog-gross { color: #303841; font-size: 10px; font-weight: 800; white-space: nowrap; }

@media (max-width: 520px) {
  .segment-table th:first-child { width: 20%; }
  .segment-table th:nth-child(2) { width: 29%; }
  .segment-table th:nth-child(3) { width: 24%; }
  .segment-table th:nth-child(4) { width: 27%; }
  .segment-table th, .segment-table td { padding: 4px 1px; font-size: 9px; text-align: center; }
  .segment-table thead th { font-size: 9px; line-height: 1.05; }
  .segment-table tbody th { white-space: nowrap; font-size: 9px; }
  .segment-table td:nth-child(2), .segment-table td:nth-child(3), .segment-table td:nth-child(4) { display: table-cell; text-align: center; white-space: nowrap; }
  .segment-table td:nth-child(3) { font-size: 9px; }
  .segment-table td:nth-child(4) { font-size: 9px; }
}

@media (max-width: 520px) {
  .segment-table th:first-child { width: 23%; text-align: left; padding-left: 4px; white-space: nowrap; }
  .segment-table th:first-child .polarization-mark { width: 16px; height: 16px; margin-right: 4px; font-size: 11px; }
}

.segment-table .segment-label-wrap { display: flex; align-items: center; justify-content: flex-start; gap: 4px; white-space: nowrap; }
.segment-table .segment-label-wrap .polarization-mark { flex: 0 0 16px; margin-right: 0; }
.sku-catalog-line > .sku-catalog-gross { font-size: inherit; }

@media (max-width: 520px) {
  .segment-table th:first-child { width: 23%; text-align: left; padding-left: 4px; }
  .segment-table th:nth-child(2) { width: 28%; }
  .segment-table th:nth-child(3) { width: 25%; }
  .segment-table th:nth-child(4) { width: 24%; }
  .segment-table td:nth-child(3) > b { display: inline-block; font-size: 10px; white-space: nowrap; }
  .segment-table td:nth-child(4) { font-size: 10px; }
  .sku-catalog-line > .sku-catalog-gross { font-size: inherit; }
}
@media (max-width: 520px) {
  .segment-table td:nth-child(2) { font-size: 10px; }
}

@media (max-width: 520px) {
  .segment-table td:nth-child(2),
  .segment-table td:nth-child(3) > b,
  .segment-table td:nth-child(4) { font-size: 11px; }
}
