/* GRI SalesSphere - page additions */
:root { --s1: #3987e5; --s2: #d95926; --s3: #199e70; }
:root[data-theme="light"] { --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; }

.adm-side nav a.off { opacity: .45; cursor: default; }
.adm-side nav a.off:hover { background: transparent; color: var(--muted); }
.og-side-foot { margin-top: 18px; padding: 12px; font-size: 11.5px; color: var(--faint); border-top: 1px solid var(--border); }

.og-filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.og-filters label.f { min-width: 150px; }
.og-filters .btn { margin-bottom: 1px; }

.og-kpis .nc-kpi b { font-size: 24px; font-variant-numeric: tabular-nums; }
.og-kpis .nc-kpi span small { text-transform: none; letter-spacing: 0; font-weight: 600; }
.og-kpi-link { color: var(--text) !important; transition: border-color .15s; }
.og-kpi-link:hover, .og-kpi-link.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--info-bg); }

.og-num td.r, .og-num th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.og-num td.b { font-weight: 750; }
.og-num td a { color: inherit; border-bottom: 1px dotted var(--faint); }
.og-num td a:hover { color: var(--accent); border-color: var(--accent); }
.og-scroll { max-height: calc(100vh - 290px); }
.og-wide { font-size: 13px; }
.og-wide th, .og-wide td { padding: 7px 9px; }
.og-wide th { position: sticky; top: 0; z-index: 2; }
.og-stick { position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 260px; max-width: 320px; }
th.og-stick { z-index: 3; background: var(--surface-2); }
.og-cname { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.og-wide td.q, .og-wide th.q { background: color-mix(in srgb, var(--accent-2) 9%, var(--surface)); font-weight: 700; }
.og-wide td.cur { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
tr.og-group td { background: var(--bg-2) !important; color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
tr.og-sub td { background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)) !important; font-weight: 700; color: var(--muted); }
tr.og-rtot td { background: var(--surface-2) !important; font-weight: 800; }
tr.og-cxl td { opacity: .5; text-decoration: line-through; }
.og-ph { color: var(--faint) !important; text-align: center !important; background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--border) 45%, transparent) 6px 7px); font-weight: 600; }
th.og-ph { text-transform: none; letter-spacing: 0; font-size: 11px; white-space: normal; }
th.og-sys { text-align: center !important; }

.og-pct { display: inline-block; min-width: 46px; padding: 1px 7px; border-radius: 999px; font-weight: 750; font-size: 12px; text-align: center; }
.og-pct.ok { background: var(--ok-bg); color: var(--ok); }
.og-pct.warn { background: var(--warn-bg); color: var(--warn); }
.og-pct.bad { background: var(--bad-bg); color: var(--bad); }

.og-seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; flex-wrap: wrap; }
.og-seg a { padding: 6px 12px; border-radius: 9px; color: var(--muted); font-weight: 700; font-size: 13px; }
.og-seg a:hover { color: var(--text); background: var(--surface-2); }
.og-seg a.on { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; }

.og-chart { width: 100%; height: auto; display: block; }
.og-chart .grid { stroke: var(--border); stroke-width: 1; }
.og-chart .base { stroke: var(--border-2); stroke-width: 1; }
.og-chart .ax { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.og-chart .ax.cur { fill: var(--text); font-weight: 800; }
.og-chart .s1 { fill: var(--s1); } .og-chart .s2 { fill: var(--s2); } .og-chart .s3 { fill: var(--s3); }
.og-chart .hit { fill: transparent; }
.og-chart .bar:hover path { opacity: .82; }
.og-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); font-weight: 600; }
.og-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.og-legend i.s1 { background: var(--s1); } .og-legend i.s2 { background: var(--s2); } .og-legend i.s3 { background: var(--s3); }
.og-note { font-size: 12.5px; margin-top: 8px; }
.og-rules p { margin: 0 0 8px; color: var(--muted); font-size: 14px; } .og-rules b { color: var(--text); }
@media (max-width: 900px) { .og-stick { min-width: 180px; } .og-scroll { max-height: none; } }
.og-num td.nw { white-space: nowrap; }
/* v1.1 prospect customers */
.og-pform h2 { margin-bottom: 6px; }
.og-h3 { margin: 18px 0 10px; font-size: 15px; }
.og-budget td { padding: 6px 5px; }
.og-bin { width: 82px; padding: 7px 8px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text); font: inherit; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.og-bin:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--info-bg); }
.og-two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-top: 14px; }
.nc-actions { margin-top: 14px; }
/* brand - GRI SalesSphere (icon + stacked name) */
.gri-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 18px; color: var(--text) !important; text-decoration: none; }
.gri-icon { width: 52px; height: 52px; flex: none; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(45, 212, 207, .18)); }
.gri-name { display: flex; flex-direction: column; line-height: 1; }
.gri-name small { font-size: 12.5px; font-weight: 900; letter-spacing: .08em; color: #9fb3d9; margin-bottom: 3px; }
.gri-name b { font-size: 23px; font-weight: 900; letter-spacing: -.03em; white-space: nowrap; }
.gri-name .w1 { color: #e6ecf8; }
.gri-name .w2 { background: linear-gradient(90deg, #2dd4cf, #14a3b8); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] .gri-name small { color: #0b2a6b; }
:root[data-theme="light"] .gri-name .w1 { color: #0b2a6b; }
:root[data-theme="light"] .gri-name .w2 { background: linear-gradient(90deg, #0f9ea6, #12b3b0); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* v1.3 sign-in, users & access, order funnel */
.ss-login-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 8px; }
.ss-login-brand img { width: 64px; height: 64px; object-fit: contain; }
.ss-login-brand .gri-name b { font-size: 28px; }
.ss-m365 { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px; border-radius: 12px; font-size: 17px; font-weight: 800; color: #fff !important; text-decoration: none; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.ss-m365::before { content: ""; width: 18px; height: 18px; flex: none; background: linear-gradient(90deg, #f25022 50%, #7fba00 50%) top / 100% 50% no-repeat, linear-gradient(90deg, #00a4ef 50%, #ffb900 50%) bottom / 100% 50% no-repeat; }
.ss-or { text-align: center; font-size: 12.5px; margin: 8px 0 16px; }
.ss-local { border-top: 1px solid var(--border); padding-top: 12px; }
.ss-local summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.ss-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.ss-role { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border-2); border-radius: 12px; cursor: pointer; margin: 0; }
.ss-role input { margin-top: 3px; }
.ss-role b { display: block; font-size: 14px; color: var(--text); }
.ss-role small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; font-weight: 500; }
.ss-role:has(input:checked) { border-color: var(--accent); background: var(--info-bg); }
.ss-scope { margin-top: 4px; }
.ss-rsms { max-height: 260px; overflow: auto; padding: 2px; }
.og-od { color: var(--bad); font-weight: 800; }
.userchip { display: inline-flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; line-height: 1.15; }
.userchip .avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 12px; color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.userchip small { font-size: 11px; }
@media (max-width: 700px) { .userchip .name { display: none; } }
.og-pform h3.og-h3 { margin: 24px 0 10px; }
.og-pform .nc-sub { margin-bottom: 14px; }
.og-pform .og-note { margin-top: 10px; }
/* v1.4 sales forecast */
.fc-cycles { flex-wrap: wrap; gap: 8px; }
.fc-cy { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--border-2); color: var(--text) !important; text-decoration: none; min-width: 150px; }
.fc-cy b { font-size: 13px; } .fc-cy small { font-size: 11.5px; color: var(--muted); }
.fc-cy.open { border-color: var(--ok); } .fc-cy.open small { color: var(--ok); font-weight: 700; }
.fc-cy.closed { opacity: .7; }
.fc-cy.on { background: var(--info-bg); border-color: var(--accent); opacity: 1; }
.fc-groups { margin: 4px 0 12px; flex-wrap: wrap; } .fc-groups small { color: var(--muted); font-size: 11px; margin-left: 4px; }
.fc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 6px; background: var(--muted); }
.fc-dot.submitted { background: var(--accent); } .fc-dot.approved { background: var(--ok); } .fc-dot.returned { background: var(--warn); }
.fc-head { display: flex; align-items: flex-start; gap: 14px; } .fc-head > div { flex: 1; } .fc-head h2 small { font-weight: 600; font-size: 13px; }
.fc-status { font-size: 13px; padding: 6px 14px; }
.fc-grid-wrap { max-height: calc(100vh - 330px); }
.fc-grid th.fc-m { border-left: 2px solid var(--border-2); } .fc-grid th.fc-sub { font-size: 11px; color: var(--muted); }
.fc-grid td.fc-in { padding: 4px 3px; text-align: center; } .fc-grid td.fc-in:nth-child(even) { border-left: 2px solid var(--border-2); }
.fc-grid input.fc-v { width: 84px; padding: 6px 7px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text); font: inherit; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.fc-grid input.fc-v::placeholder { color: var(--faint); font-style: italic; }
.fc-grid input.fc-v:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--info-bg); }
.fc-grid input.fc-v:disabled { background: transparent; border-color: transparent; color: var(--text); }
.fc-grid input.fc-far { background: var(--warn-bg); border-color: var(--warn); }
.fc-grid input.fc-bad { background: var(--bad-bg); border-color: var(--bad); }
.fc-grid small.fc-b { display: block; font-size: 10.5px; color: var(--faint); margin-top: 2px; white-space: nowrap; }
.fc-grid input.fc-cm { width: 180px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text); font: inherit; font-size: 12.5px; }
.fc-grid input.fc-cm:disabled { background: transparent; border-color: transparent; }
.fc-grid .fc-ctx { font-size: 12.5px; white-space: nowrap; color: var(--muted); }
.fc-grid tfoot td { font-weight: 800; position: sticky; bottom: 0; background: var(--surface-2); }
.fc-grid tfoot tr.fc-budrow td { bottom: 0; font-weight: 600; color: var(--muted); }
.fc-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .fc-actions .grow { flex: 1; }
.fc-inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.fc-inline input[type=date], .fc-ret input { padding: 5px 8px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text); font: inherit; font-size: 12.5px; }
.fc-ret { display: inline-block; vertical-align: top; } .fc-ret summary { list-style: none; display: inline-block; cursor: pointer; }
.fc-ret summary::-webkit-details-marker { display: none; }
.fc-ret[open] form { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.fc-rep th { white-space: normal; min-width: 84px; font-size: 11.5px; line-height: 1.2; vertical-align: bottom; }
.fc-rep th.fc-pc { min-width: 70px; }
.fc-rep th.fc-c-a, .fc-rep th.fc-c-inv, .fc-rep th.fc-c-out { color: var(--accent); }
.fc-rep tr.grp td { background: var(--surface-2); font-weight: 800; letter-spacing: .02em; }
.fc-rep tr.sub td { font-weight: 700; border-top: 1px solid var(--border-2); }
.fc-rep tr.fc-other td { color: var(--muted); }
.fc-kpi-t { font-size: 22px; }
.og-filters input[type=text], .og-filters input:not([type]) { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text); font: inherit; min-width: 180px; }
/* v1.5 order funnel module (frame) */
.of-frame { display: block; width: 100%; height: calc(100vh - 96px); min-height: 560px; border: 0; border-radius: 16px; background: transparent; }
body.fo:has(.of-frame) .adm-body { padding-top: 10px; }
/* v1.6 friendly forecast screen */
.adm-side nav a.fc-nav { font-weight: 800; }
.adm-side nav a .nav-cnt { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }
.fc-banner { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--accent); background: linear-gradient(135deg, var(--info-bg), transparent 70%); }
.fc-banner-ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.fc-banner-body { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.fc-banner-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 14.5px; }
.fc-banner-row .btn { margin-left: auto; }
.fc-pill { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }
.fc-pill.warn { background: var(--warn-bg); color: var(--warn); } .fc-pill.bad { background: var(--bad-bg); color: var(--bad); }
.fcx { display: flex; flex-direction: column; gap: 10px; padding-bottom: 70px; }
.fcx-top { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.fcx-open { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; }
.fcx-cy { display: flex; flex-direction: column; gap: 1px; padding: 7px 14px; border-radius: 12px; border: 2px solid var(--border-2); text-decoration: none; color: var(--text) !important; min-width: 200px; }
.fcx-cy small { font-size: 10.5px; font-weight: 900; letter-spacing: .08em; color: var(--ok); }
.fcx-cy b { font-size: 15px; } .fcx-cy span { font-size: 12.5px; color: var(--muted); }
.fcx-cy.on { border-color: var(--accent); background: var(--info-bg); }
.fcx-none { padding: 12px 16px; border-radius: 14px; border: 1px dashed var(--border-2); color: var(--muted); }
.fcx-other label, .fcx-who label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.fcx-other select, .fcx-who select { padding: 7px 10px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text); font: inherit; font-size: 14px; min-width: 260px; }
.fcx-head { display: flex; gap: 20px; justify-content: space-between; align-items: flex-start; padding: 14px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); flex-wrap: wrap; }
.fcx-title { flex: 1; min-width: 280px; }
.fcx-kicker { font-size: 12px; font-weight: 900; letter-spacing: .08em; color: var(--accent); text-transform: uppercase; }
.fcx-title h2 { font-size: 22px; margin: 2px 0 4px; letter-spacing: -.02em; }
.fcx-title p { margin: 0 0 6px; color: var(--muted); font-size: 14px; max-width: 760px; }
.fcx-whoone { color: var(--text) !important; }
.fcx-side { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; min-width: 260px; }
.fcx-status { font-size: 13px; font-weight: 800; padding: 6px 14px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.fcx-status.info { background: var(--info-bg); color: var(--accent); } .fcx-status.ok { background: var(--ok-bg); color: var(--ok); }
.fcx-status.warn { background: var(--warn-bg); color: var(--warn); } .fcx-status.bad { background: var(--bad-bg); color: var(--bad); }
.fcx-due { text-align: right; } .fcx-due b { display: block; font-size: 19px; color: var(--ok); } .fcx-due small { color: var(--muted); font-size: 12px; }
.fcx-due.warn b { color: var(--warn); } .fcx-due.bad b { color: var(--bad); }
.fcx-prog { width: 260px; } .fcx-bar { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.fcx-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent-2), var(--ok)); transition: width .3s; }
.fcx-prog small { display: block; text-align: right; margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.fcx-note { padding: 12px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border-2); font-size: 14px; }
.fcx-note.warn { background: var(--warn-bg); border-color: var(--warn); } .fcx-note.ok { background: var(--ok-bg); border-color: var(--ok); }
.fcx-note a { font-weight: 700; }
.fcx-steps { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.fcx-steps li { flex: 1; min-width: 220px; display: flex; gap: 10px; align-items: center; padding: 7px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.fcx-steps li span b { color: var(--text); }
.fcx-steps li > i { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--info-bg); color: var(--accent); font-style: normal; font-weight: 900; }
.fcx-main { display: grid; grid-template-columns: 320px 1fr; gap: 14px; align-items: start; }
.fcx-list { position: sticky; top: 10px; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); max-height: calc(100vh - 120px); }
.fcx-list input[type=search] { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text); font: inherit; }
.fcx-filter { display: flex; gap: 4px; background: var(--surface-2); padding: 3px; border-radius: 10px; }
.fcx-filter button { flex: 1; border: 0; background: transparent; color: var(--muted); padding: 6px; border-radius: 8px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.fcx-filter button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
#fcxItems { overflow: auto; display: flex; flex-direction: column; gap: 4px; padding-right: 2px; }
.fcx-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 10px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.fcx-item:hover { background: var(--surface-2); } .fcx-item.on { background: var(--info-bg); border-color: var(--accent); }
.fcx-item i { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 13px; border: 2px solid var(--border-2); color: var(--muted); }
.fcx-item.done i { background: var(--ok); border-color: var(--ok); color: #fff; } .fcx-item.part i { border-color: var(--warn); color: var(--warn); }
.fcx-item span { flex: 1; min-width: 0; } .fcx-item b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcx-item small { font-size: 11.5px; color: var(--muted); } .fcx-item em { font-style: normal; font-size: 12px; color: var(--muted); font-weight: 700; }
.fcx-edit { padding: 16px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); min-height: 400px; }
.fcx-ehead { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.fcx-ehead h3 { margin: 0; font-size: 22px; } .fcx-ehead small { color: var(--muted); }
.fcx-nav { display: flex; gap: 8px; }
.fcx-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; margin: 12px 0; }
.fcx-facts div { padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.fcx-facts small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; } .fcx-facts b { font-size: 16px; font-variant-numeric: tabular-nums; }
.fcx-quick { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; } .fcx-quick span { font-size: 13px; color: var(--muted); font-weight: 700; }
.fcx-tbl { width: 100%; border-collapse: collapse; }
.fcx-tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 800; padding: 8px 10px; border-bottom: 1px solid var(--border-2); vertical-align: bottom; }
.fcx-tbl th small { display: block; font-weight: 500; font-size: 11px; color: var(--faint); }
.fcx-tbl td { padding: 8px 10px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.fcx-tbl .r { text-align: right; } .fcx-tbl tr.tot td { font-weight: 800; }
.fcx-in { width: 150px; padding: 11px 12px; border-radius: 10px; border: 2px solid var(--border-2); background: var(--bg-2); color: var(--text); font: inherit; font-size: 16px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.fcx-in::placeholder { color: var(--faint); font-weight: 500; font-style: italic; }
.fcx-in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--info-bg); }
.fcx-in.far { border-color: var(--warn); } .fcx-in.bad { border-color: var(--bad); background: var(--bad-bg); }
.fcx-in:disabled { border-color: transparent; background: transparent; }
.fcx-warn { display: block; font-size: 11px; color: var(--warn); font-weight: 700; margin-top: 3px; }
.fcx-cm { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--muted); }
.fcx-cm textarea { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text); font: inherit; font-weight: 400; resize: vertical; }
.fcx-enext { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.fcx-foot { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border-2); box-shadow: 0 -8px 24px rgba(0,0,0,.18); }
.fcx-foot .grow { flex: 1; } .fcx-tot { font-size: 13.5px; color: var(--muted); }
.fcx-saved { font-size: 13px; color: var(--muted); font-weight: 700; } .fcx-saved.ok { color: var(--ok); } .fcx-saved.bad { color: var(--bad); }
.fcx-submit { padding: 12px 22px; font-size: 15px; }
.fcx-modal { position: fixed; inset: 0; z-index: 50; background: rgba(5, 10, 20, .6); display: grid; place-items: center; padding: 16px; }
.fcx-modal[hidden] { display: none; }
.fcx-dialog { width: min(760px, 100%); max-height: 90vh; overflow: auto; padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border-2); display: flex; flex-direction: column; gap: 14px; }
.fcx-dialog h2 { margin: 0; }
.fcx-dlg-actions { display: flex; justify-content: flex-end; gap: 10px; }
.fcx-empty { max-width: 620px; }
@media (max-width: 900px) { .fcx-main { grid-template-columns: 1fr; } .fcx-list { position: static; max-height: 300px; } .fcx-side { align-items: flex-start; } .fcx-in { width: 110px; } .fcx-tbl th:nth-child(5), .fcx-tbl td:nth-child(5), .fcx-tbl th:nth-child(6), .fcx-tbl td:nth-child(6) { display: none; } }
@media (max-width: 700px) { .fcx-tot { display: none; } .fcx-foot { padding: 10px 12px; } .fcx-due { text-align: left; } .fcx-prog { width: 100%; } .fcx-prog small { text-align: left; } .fcx-steps li { min-width: 100%; } .fcx-top { flex-direction: column; align-items: stretch; } }

/* ---------- v1.7 Global summary ---------- */
:root { --s4: #c98500; --s5: #d55181; }
:root[data-theme="light"] { --s4: #eda100; --s5: #e87ba4; }
.gs-filters { align-items: flex-end; }
.gs-seg { align-self: flex-end; }
.gs-kpis .nc-kpi small { line-height: 1.5; }
.gs-bar { flex-wrap: wrap; gap: 10px; }
.gs-bar h2 small { font-size: 12px; font-weight: 600; margin-left: 6px; }
.gs-toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.gs-toggles label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; user-select: none; }
.gs-toggles label:has(input:checked) { border-color: var(--accent); color: var(--text); background: var(--info-bg); }
.gs-toggles input { accent-color: var(--accent); margin: 0; }
.gs-tbl.hide-ly .c-ly, .gs-tbl.hide-bu .c-bu, .gs-tbl.hide-fq .c-fq, .gs-tbl.hide-fc .c-fc, .gs-tbl.hide-act .c-act, .gs-tbl.hide-ob .c-ob { display: none; }
.gs-tbl th { white-space: normal; min-width: 74px; line-height: 1.2; vertical-align: bottom; }
.gs-tbl th.c-act, .gs-tbl td.c-act { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.gs-tbl th.c-fc, .gs-tbl th.c-fq { color: var(--accent-2); }
.gs-tbl tr.gs-cat td:first-child { padding-left: 26px; color: var(--muted); }
.gs-tbl tr.gs-sub td { font-weight: 800; border-top: 1px solid var(--border-2); }
.gs-tbl tr.gs-big td, .gs-tbl tr.gs-cattot td { font-weight: 800; background: var(--surface-2); }
.gs-tbl tr.gs-world td { font-weight: 900; background: var(--info-bg); border-top: 2px solid var(--accent); }
.gs-tbl td a { color: inherit; text-decoration: none; border-bottom: 1px dashed var(--border-2); }
.gs-gr { font-weight: 700; font-size: 12px; white-space: nowrap; }
.gs-gr.up { color: var(--ok); } .gs-gr.dn { color: var(--bad); }
.gs-h2 { margin: 22px 0 10px; font-size: 18px; }
.gs-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gs-ch-card { margin: 0; min-width: 0; }
.gs-ch-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; align-items: baseline; margin-bottom: 6px; }
.gs-ch-head h3 { margin: 0; font-size: 15px; }
.gs-legend { gap: 10px; font-size: 12px; }
.gs-k { display: inline-block; width: 14px; height: 0; border-top: 2px solid var(--muted); margin-right: 6px; vertical-align: middle; }
.gs-k.dash { border-top-style: dashed; }
.gs-ch-wrap { position: relative; }
.gs-ch .gs-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.gs-ch .gs-line.dash { stroke-dasharray: 5 4; stroke-width: 1.6; }
.gs-ch .gs-ref { stroke: var(--muted); stroke-dasharray: 4 4; stroke-width: 1; }
.gs-ch .gs-cross { stroke: var(--border-2); stroke-width: 1; }
.gs-ch .gs-hit { fill: transparent; cursor: crosshair; }
.gs-ch .l1, .gs-k.l1 { stroke: var(--s1); border-color: var(--s1) !important; } .gs-dot.l1 { fill: var(--s1); }
.gs-ch .l2, .gs-k.l2 { stroke: var(--s2); border-color: var(--s2) !important; } .gs-dot.l2 { fill: var(--s2); }
.gs-ch .l3, .gs-k.l3 { stroke: var(--s3); border-color: var(--s3) !important; } .gs-dot.l3 { fill: var(--s3); }
.gs-ch .l4, .gs-k.l4 { stroke: var(--s4); border-color: var(--s4) !important; } .gs-dot.l4 { fill: var(--s4); }
.gs-ch .l5, .gs-k.l5 { stroke: var(--s5); border-color: var(--s5) !important; } .gs-dot.l5 { fill: var(--s5); }
.gs-ch .lb, .gs-k.lb { stroke: var(--muted); border-color: var(--muted) !important; }
.gs-tip { position: absolute; top: 4px; z-index: 5; min-width: 150px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border-2); box-shadow: var(--shadow); font-size: 12.5px; pointer-events: none; }
.gs-tip div { white-space: nowrap; margin-top: 2px; color: var(--muted); } .gs-tip div b { color: var(--text); }
.gs-share { margin-top: 14px; }
.gs-share h3 { margin: 0 0 10px; font-size: 15px; }
.gs-sh-row { display: grid; grid-template-columns: 170px 1fr 70px 40px; gap: 10px; align-items: center; margin: 7px 0; font-size: 13px; }
.gs-sh-track { height: 10px; background: var(--surface-3); border-radius: 6px; overflow: hidden; }
.gs-sh-track i { display: block; height: 100%; background: var(--s1); border-radius: 0 6px 6px 0; }
.gs-sh-row b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .gs-charts { grid-template-columns: 1fr; } .gs-sh-row { grid-template-columns: 110px 1fr 60px 34px; } }

/* ---------- v1.8 Sales reports ---------- */
.rp-filters { align-items: flex-end; }
.rp-range { display: inline-flex; gap: 10px; }
.rp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 22px 0 8px; }
.rp-head h2 { margin: 0; font-size: 18px; }
.rp-head span { color: var(--muted); font-size: 13px; font-weight: 600; }
.rp-wrap { margin-bottom: 8px; }
.rp-tbl th { white-space: normal; line-height: 1.2; min-width: 64px; vertical-align: bottom; }
.rp-tbl thead tr:first-child th { text-align: center; font-size: 12.5px; letter-spacing: .04em; color: #fff; background: linear-gradient(135deg, #0b2a6b, #173f94); border-bottom: 0; }
.rp-tbl thead tr:first-child th.rp-g0 { background: transparent; }
.rp-tbl thead tr:first-child th.rp-inv { background: linear-gradient(135deg, #173f94, #0b2a6b); }
.rp-tbl td.rp-n { text-align: left; white-space: nowrap; }
.rp-tbl td.rp-n.d1 { padding-left: 24px; } .rp-tbl td.rp-n.d2 { padding-left: 42px; color: var(--muted); }
.rp-tbl tr.rp-l0 td { font-weight: 800; background: var(--surface-2); }
.rp-tbl tr.rp-l1 td { font-weight: 700; }
.rp-tbl tr.rp-total td { font-weight: 900; background: var(--info-bg); border-top: 2px solid var(--accent); }
.rp-tbl td:nth-child(7) { border-left: 2px solid var(--border-2); }
.rp-tbl th:nth-child(7) { border-left: 2px solid var(--border-2); }
.rp-p { white-space: nowrap; }
.rp-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.rp-dot.ok { background: var(--ok); } .rp-dot.bad { background: var(--bad); }
.rp-g.up { color: var(--ok); font-weight: 700; } .rp-g.dn { color: var(--bad); font-weight: 700; }
.rp-m-ok { color: var(--ok); font-weight: 700; } .rp-m-bad { color: var(--bad); font-weight: 700; }
.rp-best { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rp-bcard { margin: 0; } .rp-bcard h3 { margin: 0 0 8px; font-size: 14.5px; }
.rp-bar { height: 5px; background: var(--surface-3); border-radius: 4px; margin-top: 4px; overflow: hidden; } .rp-bar i { display: block; height: 100%; background: var(--s1); border-radius: 4px; }
.rp-rank { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 12px; font-size: 12px; background: var(--surface-3); }
.rp-rank.r1 { background: #d4a017; color: #fff; } .rp-rank.r2 { background: #9aa4b5; color: #fff; } .rp-rank.r3 { background: #b87333; color: #fff; }
.rp-sub h3 { margin: 0 0 6px; } .rp-subform { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 8px 0; }
.rp-subs { margin-top: 10px; }
.rp-sp td { vertical-align: middle; } .rp-sp .input { min-width: 140px; }
.print-only { display: none; }
@media (max-width: 900px) { .rp-best { grid-template-columns: 1fr; } }
@media print {
  .no-print, .fc-banner, .og-note { display: none !important; }
  .print-only { display: block; margin-bottom: 6px; font-size: 11px; }
  .adm-main, main { padding: 0 !important; }
  .rp-head { break-before: page; page-break-before: always; margin-top: 0; }
  .rp-body > .rp-head:first-child { break-before: auto; page-break-before: auto; }
  .rp-wrap, .nc-wrap { overflow: visible !important; max-height: none !important; }
  .rp-tbl { font-size: 10.5px; } .rp-tbl td, .rp-tbl th { padding: 3px 5px !important; }
  .rp-tbl tr { break-inside: avoid; }
  body { background: #fff !important; }
}
@media print { :root, :root[data-theme] { --bg: #fff; --bg-2: #fff; --surface: #fff; --surface-2: #eef2f8; --surface-3: #e3e8f1; --text: #0f172a; --muted: #55657f; --faint: #8a98b3; --border: #d5dce8; --border-2: #b8c3d6; --info-bg: #e6f0fa; color-scheme: light; } .adm-top { display: none !important; } }
.rp-tbl { font-size: 13px; } .rp-tbl td, .rp-tbl th { padding: 7px 9px; } .rp-tbl th { min-width: 58px; font-size: 11px; }
.rp-tbl td.rp-n { max-width: 330px; overflow: hidden; text-overflow: ellipsis; }

/* v1.9 landing page + Dashboards section */
.ss-home { min-height: 100vh; }
.ss-home-wrap { width: min(980px, 100%); margin: 0 auto; padding: 28px 22px 40px; }
.ss-home-top { display: flex; align-items: center; gap: 12px; }
.ss-home-top .ss-login-brand { justify-content: flex-start; margin: 0; }
.ss-home-who { text-align: right; font-weight: 700; line-height: 1.2; }
.ss-home-who small { display: block; color: var(--faint); font-weight: 600; }
.ss-home-h { text-align: center; font-size: 26px; margin: 40px 0 24px; }
.ss-home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 720px) { .ss-home-grid { grid-template-columns: 1fr; } }
.ss-door { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); color: var(--text) !important; text-decoration: none; box-shadow: var(--shadow); transition: transform .12s, border-color .12s; }
.ss-door:hover { transform: translateY(-3px); border-color: var(--accent); }
.ss-door-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.ss-door b { font-size: 24px; }
.ss-door > span:not(.ss-door-ic):not(.ss-door-foot) { color: var(--muted); }
.ss-door-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; font-size: 13px; }
.ss-home .nc-login-foot { margin-top: 34px; }
.ss-dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ss-dcard { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--text) !important; text-decoration: none; }
a.ss-dcard[href]:hover { border-color: var(--accent); }
.ss-dcard.locked { opacity: .5; cursor: default; }
.ss-drank { font-size: 12px; font-weight: 800; color: var(--accent); }
.ss-dcard b { font-size: 16px; }
.ss-dfoot { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }

/* ===== v1.9.4 Sales reports - tabs, KPI tiles, charts (dataviz reference palette: blue actual, orange last year,
   ink budget marker, status good/warning/critical with icon) ===== */
:root { --v-act: #338ced; --v-ly: #e76624; --v-bud: #efefef; --v-grid: #2a3346; --v-base: #4a5568; --v-ink2: #9aa7bd;
        --st-good: #0aac23; --st-warn: #fbb315; --st-bad: #dc3c3d; --st-good-t: #53c556; --heat: 51, 140, 237; }
:root[data-theme="light"] { --v-act: #257de0; --v-ly: #f47230; --v-bud: #191919; --v-grid: #e7e7e7; --v-base: #c2c2c2; --v-ink2: #666666;
        --st-good-t: #006c10; --heat: 37, 125, 224; }
.rw { display: flex; flex-direction: column; gap: 14px; }
.rw-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; position: sticky; top: 64px; z-index: 15; padding: 8px 0; background: var(--bg); }
.rw-tabs { display: inline-flex; gap: 2px; border-bottom: 1px solid var(--border); }
.rw-tab { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; font-size: 14px; padding: 9px 16px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.rw-tab:hover { color: var(--text); } .rw-tab.on { color: var(--text); border-bottom-color: var(--v-act); }
.rw-pills { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.rw-pill { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.rw-pill.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.rw-panel { display: none; flex-direction: column; gap: 14px; } .rw-panel.on { display: flex; }
.rw-ph { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; }
.rw-ph h2 { font-size: 18px; margin: 0; } .rw-ph span { color: var(--muted); font-size: 13px; font-weight: 600; }
.rw-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rw-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rw-tile-l { font-size: 12px; font-weight: 700; color: var(--muted); }
.rw-tile-v { font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.rw-tile-s { font-size: 12.5px; color: var(--muted); }
.rw-delta { font-weight: 800; } .rw-delta.up { color: var(--st-good-t); } .rw-delta.dn { color: var(--st-bad); }
.rw-st i { font-style: normal; font-size: .62em; margin-right: 6px; vertical-align: .18em; }
.rw-st.good i { color: var(--st-good); } .rw-st.warn i { color: var(--st-warn); } .rw-st.bad i { color: var(--st-bad); }
.rw-meter { position: relative; height: 8px; border-radius: 4px; background: var(--surface-3); margin-top: 6px; }
.rw-meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--st-bad); }
.rw-meter.good i { background: var(--st-good); } .rw-meter.warn i { background: var(--st-warn); }
.rw-meter b { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--v-bud); margin-left: -1px; }
.rw-spark { width: 100%; height: 34px; margin-top: 4px; } .rw-spark-l { fill: none; stroke: var(--v-act); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; opacity: .55; vector-effect: non-scaling-stroke; }
.rw-spark-d { fill: var(--v-act); stroke: var(--surface); stroke-width: 2; }
.rw-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rw-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.rw-card-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 8px; }
.rw-card-h h3 { margin: 0; font-size: 14.5px; }
.rw-key { display: inline-flex; align-items: center; gap: 6px 8px; font-size: 12px; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.rw-key i { display: inline-block; margin-left: 6px; } .rw-key i:first-child { margin-left: 0; }
.k-act { width: 12px; height: 12px; border-radius: 3px; background: var(--v-act); }
.k-bud { width: 3px; height: 14px; background: var(--v-bud); } .k-ly { width: 14px; height: 2px; background: var(--v-ly); position: relative; }
.k-ly::after { content: ""; position: absolute; left: 3px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--v-ly); }
.rw-m { display: none; } .rw-panel[data-m="a"] .rw-m-a, .rw-panel[data-m="inv"] .rw-m-inv { display: block; }
.rw-svg { width: 100%; height: auto; display: block; font-family: inherit; overflow: visible; }
.rw-grid { stroke: var(--v-grid); stroke-width: 1; } .rw-base { stroke: var(--v-base); stroke-width: 1; }
.rw-tick { fill: var(--v-ink2); font-size: 11px; font-variant-numeric: tabular-nums; } .rw-tick.on { fill: var(--text); font-weight: 700; }
.rw-lab { fill: var(--text); font-size: 12.5px; font-weight: 600; } .rw-val { fill: var(--text); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rw-pct { fill: var(--muted); font-size: 12px; font-weight: 700; } .rw-ic { font-size: 9px; } .rw-ic.good { fill: var(--st-good); } .rw-ic.warn { fill: var(--st-warn); } .rw-ic.bad { fill: var(--st-bad); }
.rw-act { fill: var(--v-act); } .rw-act.dim { opacity: .35; }
.rw-bud { stroke: var(--v-bud); stroke-width: 2.5; stroke-linecap: round; }
.rw-ly { fill: none; stroke: var(--v-ly); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.rw-ly-d { fill: var(--v-ly); stroke: var(--surface); stroke-width: 2; }
.rw-hitbox { fill: transparent; } .rw-hit:hover .rw-hitbox { fill: var(--surface-2); opacity: .55; }
.rw-tip { position: fixed; z-index: 100; pointer-events: none; background: var(--surface); color: var(--text); border: 1px solid var(--border-2); border-radius: 10px; padding: 8px 11px; font-size: 12.5px; box-shadow: var(--shadow); max-width: 280px; }
.rw-tip b { display: block; margin-bottom: 3px; } .rw-tip div { color: var(--muted); font-variant-numeric: tabular-nums; }
.rw-empty { padding: 20px 0; }
.rw-tcard .rp-wrap { margin: 0; max-height: 70vh; overflow: auto; }
.rw-tcard .rp-tbl thead th { position: sticky; z-index: 2; } .rw-tcard .rp-tbl thead tr:first-child th { top: 0; } .rw-tcard .rp-tbl thead tr:nth-child(2) th { top: 31px; background: var(--surface-2); }
.rw-tbtns { display: inline-flex; gap: 6px; }
.rp-tbl tr.kids { cursor: pointer; } .rp-tbl tr.kids:hover td { background: var(--surface-3); }
.rp-car { display: inline-block; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--muted); margin-right: 8px; vertical-align: 2px; transition: transform .12s; }
.rp-tbl tr.shut .rp-car { transform: rotate(-90deg); }
.rp-tbl tbody tr:nth-child(even):not(.rp-l0):not(.rp-total) td { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.rp-heat { background: rgba(var(--heat), calc(var(--h, 0) * .55)); }
.rp-pc i { font-style: normal; font-size: 9px; margin-right: 5px; vertical-align: 1px; }
.rp-pc.good { background: color-mix(in srgb, var(--st-good) 14%, transparent); } .rp-pc.good i { color: var(--st-good); }
.rp-pc.warn { background: color-mix(in srgb, var(--st-warn) 16%, transparent); } .rp-pc.warn i { color: var(--st-warn); }
.rp-pc.bad { background: color-mix(in srgb, var(--st-bad) 13%, transparent); } .rp-pc.bad i { color: var(--st-bad); }
.rw-panel .rp-head { display: none; }
.rw-panel .rp-best { margin-top: 0; }
@media (max-width: 1100px) { .rw-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rw-charts { grid-template-columns: 1fr; } }
@media print {
  @page { size: A4 landscape; margin: 9mm; }
  .rw-nav, .rw-tbtns { display: none !important; }
  .rw-panel { display: flex !important; break-before: page; page-break-before: always; gap: 8px; }
  .rw-panel:first-of-type { break-before: auto; page-break-before: auto; }
  .rw-panel .rw-m-a { display: block !important; } .rw-panel .rw-m-inv { display: none !important; }
  .rw-tile, .rw-card { break-inside: avoid; box-shadow: none; } .rw-tile-v { font-size: 22px; }
  .rw-tcard { break-inside: auto; } .rw-tcard .rp-wrap { max-height: none !important; overflow: visible !important; }
  .rp-tbl tr[hidden] { display: table-row !important; }
  .rw-charts { grid-template-columns: 1fr 1fr !important; } .rw-kpis { grid-template-columns: repeat(4, 1fr) !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  :root, :root[data-theme] { --v-act: #257de0; --v-ly: #f47230; --v-bud: #191919; --v-grid: #e7e7e7; --v-base: #c2c2c2; --v-ink2: #666666; --st-good-t: #006c10; --heat: 37, 125, 224; }
}

/* v1.9.4: a dashboard / report opened in its own tab - full width, no sidebar */
.ss-focus .adm { grid-template-columns: minmax(0, 1fr); } .ss-focus .adm-side, .ss-focus .adm-burger { display: none !important; }
.ss-focus-brand { padding: 0 !important; margin: 0 4px 0 0; } .ss-focus-brand .gri-icon { width: 38px; height: 38px; }
.rp-asat { font-size: 12px; white-space: nowrap; align-self: center; }
.rp-si { font-style: normal; font-size: 9px; margin-right: 6px; vertical-align: 1px; } .rp-si.good { color: var(--st-good); } .rp-si.warn { color: var(--st-warn); } .rp-si.bad { color: var(--st-bad); }
/* v1.9.5 best performers - one page like the Power BI PDF */
.bp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.bp-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bp-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.bp-card h4 { margin: 0 0 6px; font-size: 13px; }
.bp-tbl { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.bp-tbl th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); text-align: left; padding: 3px 4px; border-bottom: 1px solid var(--border); }
.bp-tbl th.r, .bp-tbl td.r { text-align: right; }
.bp-tbl td { padding: 3px 4px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.bp-n { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.bp-bar { display: block; height: 3px; background: var(--surface-3); border-radius: 2px; margin-top: 2px; } .bp-bar i { display: block; height: 100%; background: var(--v-act); border-radius: 2px; }
.bp-bar.good i { background: var(--st-good); } .bp-bar.warn i { background: var(--st-warn); } .bp-bar.bad i { background: var(--st-bad); }
.bp-tbl .rp-rank { min-width: 20px; height: 20px; font-size: 11px; }
.bp-tot td { font-weight: 800; border-top: 2px solid var(--v-act); background: var(--info-bg); }
@media (max-width: 1200px) { .bp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media print { .bp-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 6px; } .bp-col { gap: 6px; } .bp-card { padding: 5px 7px; break-inside: avoid; } .bp-tbl { font-size: 9.5px; } .bp-tbl td { padding: 1.5px 3px; } .bp-tbl .rp-rank { min-width: 15px; height: 15px; font-size: 9px; } .bp-card h4 { font-size: 10.5px; margin-bottom: 3px; } }
@media print { .rw-tip { display: none !important; } .adm, .adm-main, .adm-body { min-height: 0 !important; padding-bottom: 0 !important; } .rw-panel:last-of-type { break-after: auto; } }

/* ===== v1.9.5 Sales Master Dashboard (one dashboard, drill-down in place) ===== */
.sm { display: flex; flex-direction: column; gap: 14px; }
.sm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.sm-ttl h2 { margin: 0; font-size: 22px; } .sm-ttl span { font-size: 13px; }
.sm-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.sm-cr-l { font-size: 12px; font-weight: 700; color: var(--muted); margin-right: 6px; }
.sm-cr { border: 1px solid transparent; background: none; color: var(--text); font: inherit; font-weight: 600; font-size: 14px; padding: 6px 12px; border-radius: 9px; cursor: pointer; }
.sm-cr:hover { background: var(--surface-2); } .sm-cr.on { background: var(--v-act); color: #fff; }
.sm-cr-s { color: var(--muted); }
.sm-chip { border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; cursor: pointer; margin-left: 8px; }
.sm-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .sm-ctl select.input { padding: 7px 10px; border-radius: 9px; font-size: 13px; }
.sm-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sm-tile .rw-tile-v { font-size: 27px; }
.sm-gt-b { display: flex; align-items: center; gap: 10px; } .sm-gt-b .rw-tile-v { font-size: 24px; }
.sm-gauge { width: 112px; flex: none; } .sm-g-track { fill: none; stroke: var(--surface-3); stroke-width: 11; }
.sm-g-fill { fill: none; stroke-width: 11; stroke-linecap: round; } .sm-g-fill.good { stroke: var(--st-good); } .sm-g-fill.warn { stroke: var(--st-warn); } .sm-g-fill.bad { stroke: var(--st-bad); }
.sm-g-tgt { stroke: var(--v-bud); stroke-width: 2.5; }
.sm-main { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 12px; }
.sm-mapcard { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.sm-map { position: relative; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--v-act) 6%, var(--surface)); }
.sm-map svg { display: block; width: 100%; height: auto; cursor: grab; }
.sm-sphere { fill: none; }
.sm-c { stroke: var(--surface); stroke-width: .6; vector-effect: non-scaling-stroke; transition: fill .4s, opacity .4s; cursor: default; }
.sm-c.has { cursor: pointer; } .sm-c.has:hover, .sm-c.hi { stroke: var(--text); stroke-width: 1.6; filter: brightness(1.12); }
.sm-c.sel { stroke: var(--st-warn); stroke-width: 2.2; }
.sm-pt { stroke: var(--surface); cursor: pointer; }
.sm-callouts { position: absolute; inset: 0; pointer-events: none; }
.sm-co { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-width: 150px;
  padding: 9px 12px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--border-2); box-shadow: var(--shadow); font-size: 12px;
  transition: transform .18s, border-color .18s; animation: smPop .5s ease both; }
.sm-co:hover { transform: translate(-50%, -50%) scale(1.05); border-color: var(--v-act); }
.sm-co b { font-size: 12px; letter-spacing: .04em; color: var(--v-act); text-transform: uppercase; }
.sm-co .sm-co-v { font-size: 21px; font-weight: 800; color: var(--text); }
.sm-co-r { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); } .sm-co-r b { color: var(--text); text-transform: none; letter-spacing: 0; font-size: 12px; }
.sm-co.dock { position: static; transform: none; } .sm-co.dock:hover { transform: scale(1.04); }
.sm-callouts:has(.dock) { }
.sm-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 12px; color: var(--muted); padding: 0 4px; }
.sm-ramp { width: 120px; height: 9px; border-radius: 5px; } .sm-nodata i { display: inline-block; width: 12px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.sm-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sm-w2 { grid-column: span 2; }
.sm-empty { padding: 18px 0; text-align: center; }
.sm-click { cursor: pointer; } tr.sm-click:hover td { background: var(--surface-2); } g.sm-click:hover .rw-lab { text-decoration: underline; }
.sm-bars { display: flex; flex-direction: column; gap: 7px; }
.sm-bar { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.sm-bar.sm-click:hover .sm-bar-l { text-decoration: underline; }
.sm-bar-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sm-bar-t { height: 12px; background: var(--surface-2); border-radius: 0 4px 4px 0; } .sm-bar-t i { display: block; height: 100%; background: var(--v-act); border-radius: 0 4px 4px 0; }
.sm-bar-v { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 70px; text-align: right; }
.sm-bar-v small { font-weight: 700; margin-left: 4px; }
.up { color: var(--st-good-t); } .dn { color: var(--st-bad); }
.sm-div { display: flex; flex-direction: column; gap: 7px; }
.sm-div-r { display: grid; grid-template-columns: minmax(90px, 34%) 1fr 84px; gap: 10px; align-items: center; font-size: 13px; }
.sm-div-t { position: relative; height: 14px; } .sm-div-t b { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--v-base); }
.sm-div-t i { position: absolute; top: 1px; height: 12px; } .sm-div-t i.up { background: var(--v-act); border-radius: 0 4px 4px 0; } .sm-div-t i.dn { background: var(--v-ly); border-radius: 4px 0 0 4px; }
.sm-tw { overflow: auto; max-height: 420px; }
.sm-t { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.sm-t th { position: sticky; top: 0; background: var(--surface); text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 7px 8px; border-bottom: 1px solid var(--border-2); z-index: 1; }
.sm-t td { padding: 7px 8px; border-bottom: 1px solid var(--border); } .sm-t .r { text-align: right; white-space: nowrap; }
.sm-t tr.sel td { background: color-mix(in srgb, var(--st-warn) 14%, transparent); }
.sm-t2 { margin-top: 10px; }
.sm-seg { display: flex; gap: 2px; height: 28px; border-radius: 6px; overflow: hidden; }
.sm-seg-p { display: flex; align-items: center; padding-left: 8px; font-size: 12px; font-weight: 800; color: #fff; border-radius: 4px; }
.sm-seg-p.s1, .sm-sw.s1 { background: var(--v-act); } .sm-seg-p.s2, .sm-sw.s2 { background: #00a888; }
:root[data-theme="light"] .sm-seg-p.s2, :root[data-theme="light"] .sm-sw.s2 { background: #00b894; }
.sm-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.sm-prof { display: grid; grid-template-columns: max-content 1fr; gap: 7px 16px; margin: 0; font-size: 13px; } .sm-prof dt { color: var(--muted); font-weight: 600; } .sm-prof dd { margin: 0; }
.sm-big-g { display: flex; align-items: center; gap: 16px; } .sm-big-g .sm-gauge { width: 170px; } .sm-big-g .rw-st { font-size: 28px; font-weight: 800; }
.sm-more { margin: 8px 0 0; font-size: 12.5px; } .sm-link { border: 0; background: none; color: var(--v-act); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }
.sm-skubar { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; } .sm-skuq { flex: 1; max-width: 360px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text); }
.sm-pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 8px; font-size: 13px; }
.sm-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; } .sm-foot h3 { margin: 0 0 6px; font-size: 14.5px; }
.sm-ins { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; font-size: 13px; }
.rw-ic2 { font-style: normal; font-size: 9px; margin-right: 7px; vertical-align: 1px; } .rw-ic2.good { color: var(--st-good); } .rw-ic2.warn { color: var(--st-warn); } .rw-ic2.bad { color: var(--st-bad); }
.sm-at { display: flex; flex-direction: column; gap: 3px; font-size: 12px; text-align: right; max-width: 380px; }
.sm-in { animation: smIn .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes smIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes smPop { from { opacity: 0; transform: translate(-50%, -40%) scale(.9); } to { opacity: 1; } }
@media (max-width: 1250px) { .sm-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sm-main { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .sm-grid { grid-template-columns: 1fr; } .sm-w2 { grid-column: auto; } .sm-ins { grid-template-columns: 1fr; } .sm-co { min-width: 0; padding: 5px 8px; } .sm-co .sm-co-v { font-size: 15px; } .sm-co-r { display: none; } }
.sm-dock { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 8px; pointer-events: auto; }
.sm-ctl select.input { width: auto; min-width: 0; }
.sm-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ttl ctl" "cr cr"; align-items: center; gap: 8px 18px; }
.sm-ttl { grid-area: ttl; } .sm-ctl { grid-area: ctl; justify-content: flex-end; }
.sm-crumbs { grid-area: cr; justify-content: flex-start; padding: 6px 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
@media (max-width: 1250px) { .sm-head { grid-template-columns: 1fr; grid-template-areas: "ttl" "ctl" "cr"; } .sm-ctl { justify-content: flex-start; } }

/* ===== v1.9.6 landing page - live command centre ===== */
.hm { min-height: 100vh; position: relative; overflow-x: hidden; background: radial-gradient(1200px 600px at 75% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), radial-gradient(900px 500px at -10% 30%, color-mix(in srgb, #00b894 12%, transparent), transparent 60%), var(--bg); }
.hm-map { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .9; }
.hm-land { fill: color-mix(in srgb, var(--text) 6%, transparent); stroke: color-mix(in srgb, var(--text) 9%, transparent); stroke-width: .5; }
.hm-arc { fill: none; stroke: color-mix(in srgb, var(--accent) 70%, transparent); stroke-width: 1.4; stroke-linecap: round; opacity: .55; }
.hm-dot { fill: var(--accent); opacity: .8; }
.hm-hq { fill: #00b894; stroke: var(--bg); stroke-width: 2; }
.hm-hq-pulse { fill: none; stroke: #00b894; stroke-width: 2; animation: hmPulse 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.hm-hq-t { fill: color-mix(in srgb, var(--text) 55%, transparent); font-size: 15px; font-weight: 700; letter-spacing: .04em; }
@keyframes hmPulse { from { transform: scale(1); opacity: .9; } to { transform: scale(4); opacity: 0; } }
.hm-glow { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, transparent 40%, var(--bg) 92%); }
.hm-wrap { position: relative; z-index: 1; width: min(1180px, 100%); margin: 0 auto; padding: 22px 24px 30px; display: flex; flex-direction: column; gap: 18px; }
.hm-top { display: flex; align-items: center; gap: 12px; }
.hm-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; } .hm-brand img { width: 54px; height: 54px; object-fit: contain; } .hm-brand .gri-name b { font-size: 26px; }
.hm-user { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--border); backdrop-filter: blur(8px); line-height: 1.2; }
.hm-user .avatar { width: 34px; height: 34px; } .hm-user b { display: block; font-size: 14px; } .hm-user small { color: var(--muted); font-size: 12px; }
.hm-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--text) !important; font-size: 17px; cursor: pointer; text-decoration: none; backdrop-filter: blur(8px); }
.hm-icon:hover { border-color: var(--accent); }
.hm-hero { padding: 26px 0 4px; }
.hm-date { margin: 0 0 6px; color: var(--muted); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.hm-hero h1 { margin: 0; font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -.02em; line-height: 1.1; }
.hm-name { background: linear-gradient(90deg, var(--accent-2), var(--accent), #00b894); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-tag { margin: 10px 0 0; color: var(--muted); font-size: 16px; max-width: 640px; }
.hm-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hm-stat { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 18px; background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--border); backdrop-filter: blur(10px); animation: hmUp .5s cubic-bezier(.2,.7,.2,1) both; }
.hm-stat:nth-child(2) { animation-delay: .06s; } .hm-stat:nth-child(3) { animation-delay: .12s; } .hm-stat:nth-child(4) { animation-delay: .18s; }
.hm-stat > span:first-child { font-size: 12px; font-weight: 700; color: var(--muted); }
.hm-stat b { font-size: 28px; font-weight: 800; letter-spacing: -.01em; min-height: 34px; }
.hm-stat i { font-style: normal; font-size: 12.5px; color: var(--muted); } .hm-stat i i { font-weight: 800; }
.hm-stat .up { color: var(--st-good-t); } .hm-stat .dn { color: var(--st-bad); }
.hm-pct em { font-style: normal; font-size: .55em; margin-right: 6px; vertical-align: .25em; } .hm-pct.good em { color: var(--st-good); } .hm-pct.warn em { color: var(--st-warn); } .hm-pct.bad em { color: var(--st-bad); }
.hm-meter { display: block; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin-top: 4px; } .hm-meter u { display: block; height: 100%; border-radius: 3px; background: var(--st-bad); }
.hm-meter.good u { background: var(--st-good); } .hm-meter.warn u { background: var(--st-warn); }
.hm-stat.sk b, .hm-stat.sk i { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: hmSk 1.2s linear infinite; border-radius: 8px; color: transparent; }
.hm-stat.sk b { width: 60%; } .hm-stat.sk i { width: 80%; }
@keyframes hmSk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.hm-scope { margin: -6px 0 0; font-size: 12px; color: var(--faint); text-align: right; min-height: 15px; }
.hm-doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hm-door { --c1: var(--accent-2); --c2: var(--accent); position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 20px; border-radius: 24px; text-decoration: none; color: var(--text) !important;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, color-mix(in srgb, var(--c1) 55%, transparent), var(--border) 40%, var(--border) 70%, color-mix(in srgb, var(--c2) 45%, transparent)) border-box;
  border: 1px solid transparent; box-shadow: var(--shadow); overflow: hidden; transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s; animation: hmUp .55s cubic-bezier(.2,.7,.2,1) both; }
.hm-door::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c2) 28%, transparent), transparent 70%); transition: transform .35s; pointer-events: none; }
.hm-door:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--c2) 45%, transparent), var(--shadow); }
.hm-door:hover::before { transform: scale(1.35); }
.hm-door.d2 { --c1: #8b5cf6; --c2: #ec4899; animation-delay: .07s; } .hm-door.d3 { --c1: #0ea5e9; --c2: #00b894; animation-delay: .14s; } .hm-door.d4 { --c1: #f59e0b; --c2: #f47230; animation-delay: .21s; }
.hm-door-top { display: flex; align-items: center; justify-content: space-between; }
.hm-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 25px; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 8px 20px -8px var(--c2); transition: transform .25s; }
.hm-door:hover .hm-ic { transform: rotate(-6deg) scale(1.06); }
.hm-badge { font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.hm-badge.info { background: var(--info-bg); color: var(--accent); } .hm-badge.warn { background: var(--warn-bg); color: var(--warn); }
.hm-door > b { font-size: 25px; margin-top: 6px; letter-spacing: -.01em; }
.hm-desc { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.hm-live { position: relative; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 13px; color: var(--muted); min-height: 46px; }
.hm-live em { font-style: normal; font-weight: 800; color: var(--text); } .hm-live small { color: var(--faint); }
#hmDash { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.hm-spark { width: 120px; height: 30px; flex: none; } .hm-spark polyline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; } .hm-spark circle { fill: var(--accent); }
.hm-task { display: flex; flex-direction: column; padding-left: 10px; border-left: 3px solid var(--accent); } .hm-task b { color: var(--text); font-size: 13px; } .hm-task small { font-size: 12px; }
.hm-task.warn { border-left-color: var(--st-warn); } .hm-task.ok { border-left-color: var(--st-good); }
.hm-go { margin-top: auto; padding-top: 6px; font-weight: 800; font-size: 14px; color: var(--c2); } .hm-go i { font-style: normal; display: inline-block; transition: transform .2s; } .hm-door:hover .hm-go i { transform: translateX(5px); }
:root[data-theme="light"] .hm-go { filter: brightness(.85); }
.hm-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--faint); padding-top: 6px; }
@keyframes hmUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 980px) { .hm-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .hm-doors, .hm-strip { grid-template-columns: 1fr; } .hm-user span:last-child { display: none; } .hm-user { padding: 4px; } }
@media (prefers-reduced-motion: reduce) { .hm *, .hm *::before { animation: none !important; transition: none !important; } }
.hm-map { opacity: .55; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 80%); mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 80%); }
.hm-arc { stroke-width: 1.1; opacity: .4; } .hm-hq-t { opacity: .6; }
:root[data-theme="light"] .hm-map { opacity: .7; }
.hm-tag { max-width: 560px; }

/* v1.9.7 landing: 5 doors (Order Funnel added) */
.hm-doors { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.hm-door.d1, .hm-door.d2, .hm-door.d5 { grid-column: span 2; } .hm-door.d3, .hm-door.d4 { grid-column: span 3; }
.hm-door.d5 { --c1: #22c55e; --c2: #0ea5e9; animation-delay: .1s; } .hm-door.d3 { animation-delay: .17s; } .hm-door.d4 { animation-delay: .24s; }
.hm-door > b { font-size: 23px; }
.hm-bk { display: flex; align-items: flex-end; gap: 6px; height: 46px; }
.hm-bk-i { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; min-width: 0; }
.hm-bk-i u { display: block; width: 100%; max-width: 26px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--c2), var(--c1)); }
.hm-bk-i.od u { background: var(--st-bad); } .hm-bk-i small { font-size: 10.5px; white-space: nowrap; }
@media (max-width: 1100px) { .hm-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hm-door.d1, .hm-door.d2, .hm-door.d3, .hm-door.d4, .hm-door.d5 { grid-column: auto; } }
@media (max-width: 720px) { .hm-doors { grid-template-columns: 1fr; } }
