/* Екрани Sales Model. Усі класи з префіксом sm-, щоб не зачепити оболонку.
   Кольори груп перевірені на розрізнення при дальтонізмі й контраст — не міняти. */
:root, [data-theme="light"] { --g-k:#2a78d6; --g-b:#eb6834; --g-n:#1baf7a; }
[data-theme="dark"]          { --g-k:#3987e5; --g-b:#d95926; --g-n:#199e70; }

.sm-app { color: var(--text); }
.sm-app [hidden] { display: none !important; }
.sm-app .num, .sm-app td.num { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }
.sm-app button { font-family: inherit; }

/* навігація: два рядки, що гортаються вбік */
.sm-nav { display: flex; align-items: center; gap: 6px; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.sm-nav--objects { border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.sm-obj { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; color: var(--sub); text-decoration: none; font-weight: 600; font-size: var(--fs-lg); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.sm-obj:hover { color: var(--text); }
.sm-obj[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.sm-mine { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.sm-nav--steps { margin-bottom: 20px; padding-bottom: 2px; }
.sm-step { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: 999px; padding: 6px 14px 6px 8px; font-size: var(--fs-md); font-weight: 600; cursor: pointer; }
.sm-step[aria-current] { border-color: var(--accent); }
.sm-step[aria-disabled="true"] { color: var(--muted); background: transparent; cursor: default; }
.sm-stepn { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg); border: 1px solid var(--border-strong); font-size: var(--fs-xs); }
.sm-arrow { color: var(--muted); }
.sm-step--legacy { margin-left: auto; padding-left: 14px; border-style: dashed; }
.sm-nav--steps .sm-step--legacy { flex-shrink: 0; }

/* шапка вмісту */
.sm-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.sm-h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.sm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--fs-sm); color: var(--muted); }
.sm-chip { border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; background: var(--card); color: var(--sub); font-size: var(--fs-sm); }
.sm-chip--warn { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.sm-state { margin: 24px 0; color: var(--sub); font-size: var(--fs-lg); }
.sm-state--err { color: var(--red); }

.sm-sentence { font-size: 20px; line-height: 1.45; margin: 0 0 20px; max-width: 60ch; }
.sm-sentence strong { font-weight: 800; }

/* формула */
.sm-formula { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin-bottom: 14px; }
.sm-tile { flex: 1 1 200px; min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.sm-tile--total { border-color: var(--border-strong); }
.sm-op { align-self: center; font-size: 24px; font-weight: 600; color: var(--muted); line-height: 1; flex: 0 0 auto; }
.sm-tile-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--fs-md); color: var(--sub); }
.sm-tile-main { font-size: 26px; font-weight: 500; letter-spacing: -.02em; margin-top: 2px; white-space: nowrap; }
.sm-tile-sub { font-size: var(--fs-sm); color: var(--sub); }
.sm-cap { margin: 0; font-size: var(--fs-sm); line-height: 1.4; color: var(--muted); }
.sm-note { font-size: var(--fs-sm); color: var(--muted); margin: 10px 0 0; line-height: 1.45; }
.sm-lowdata { margin: 0 0 14px; color: var(--accent); }

.sm-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.sm-dot--k { background: var(--g-k); } .sm-dot--b { background: var(--g-b); } .sm-dot--n { background: var(--g-n); }

.sm-bars { display: flex; align-items: flex-end; gap: 4px; height: 36px; margin: 8px 0 6px; }
.sm-bar { flex: 1 1 0; max-width: 22px; background: var(--muted); opacity: .35; border-radius: 2px 2px 0 0; }
.sm-bar--last { opacity: 1; background: var(--sub); }
.sm-bar--k.sm-bar--last { background: var(--g-k); } .sm-bar--k { background: var(--g-k); }
.sm-bar--b.sm-bar--last { background: var(--g-b); } .sm-bar--b { background: var(--g-b); }
.sm-bar--n.sm-bar--last { background: var(--g-n); } .sm-bar--n { background: var(--g-n); }
.sm-bar:not(.sm-bar--last) { opacity: .35; }

@media (max-width: 760px) {
  .sm-tile { flex-basis: 100%; }
  .sm-op { flex: 1 1 100%; text-align: center; font-size: 20px; }
  .sm-sentence { font-size: 18px; }
}

/* картки, заголовки */
.sm-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 16px; }
.sm-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sm-h2 { margin: 0 0 10px; font-size: var(--fs-lg); font-weight: 700; }
.sm-link { background: none; border: 0; padding: 2px 0; color: var(--accent); font-size: var(--fs-md); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sm-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--fs-sm); color: var(--sub); margin-bottom: 8px; }
.sm-legend-i { display: inline-flex; align-items: center; gap: 6px; }

/* графік */
.sm-svgwrap { position: relative; }
.sm-svg { display: block; width: 100%; height: auto; overflow: visible; }
.sm-grid { stroke: var(--border); stroke-width: 1; }
.sm-base { stroke: var(--border-strong); stroke-width: 1; }
.sm-axis, .sm-xlab, .sm-xcap, .sm-colval { fill: var(--muted); font-size: 11px; font-family: 'JetBrains Mono', monospace; }
.sm-colval { fill: var(--text); font-weight: 500; }
.sm-xcap { font-family: 'Manrope', system-ui, sans-serif; font-size: 10.5px; }
.sm-hit { fill: transparent; }
.sm-seg--k { fill: var(--g-k); } .sm-seg--b { fill: var(--g-b); } .sm-seg--n { fill: var(--g-n); }
.sm-col { outline: none; cursor: default; }
.sm-col:hover .sm-hit, .sm-col:focus .sm-hit { fill: var(--border); }
.sm-col:focus-visible .sm-hit { stroke: var(--accent); stroke-width: 2; }
.sm-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 8px 10px; font-size: var(--fs-sm); box-shadow: var(--shadow-2); min-width: 130px; }
.sm-tip-h { font-weight: 700; margin-bottom: 4px; }
.sm-tip-r { display: flex; align-items: center; gap: 6px; color: var(--sub); }
.sm-tip-r b { min-width: 58px; text-align: right; color: var(--text); font-weight: 500; }

/* вкладки */
.sm-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; overflow-x: auto; white-space: nowrap; }
.sm-tab { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 10px 14px; font-size: var(--fs-lg); font-weight: 600; color: var(--sub); cursor: pointer; }
.sm-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.sm-lead { margin: 0 0 12px; font-size: var(--fs-lg); }

/* таблиці */
.sm-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sm-table { border-collapse: collapse; width: 100%; font-size: var(--fs-md); }
.sm-table th { text-align: left; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--border-strong); white-space: nowrap; vertical-align: bottom; }
.sm-table th.num, .sm-table td.num { text-align: right; }
.sm-table td { padding: 8px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; vertical-align: middle; }
.sm-table td:first-child { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.sm-table tbody tr:last-child td { border-bottom: 0; }
.sm-click { cursor: pointer; }
.sm-click:hover td { background: var(--card-hover); }
.sm-click:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sm-unit td { background: var(--bg); }
.sm-kind { margin-left: 8px; font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.sm-indent { padding-left: 18px; }
.sm-caret { display: inline-block; width: 14px; color: var(--muted); }
.sm-grp { display: inline-flex; align-items: center; gap: 6px; }
.sm-muted { color: var(--muted); }
.sm-up { color: var(--green); } .sm-down { color: var(--red); }
.sm-sharecell { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.sm-sharebar { display: inline-block; width: 40px; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.sm-sharebar i { display: block; height: 100%; background: var(--muted); }
.sm-more { margin: 10px 0 0; }
.sm-sleep { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.sm-sleep-t { margin: 0 0 6px; color: var(--sub); line-height: 1.45; }

.sm-foot { color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; margin: 8px 0 24px; }
.sm-foot p { margin: 0 0 4px; }

@media (pointer: coarse), (max-width: 760px) {
  .sm-app button, .sm-app .sm-link { font-size: 16px; }
}
.sm-table--practices th { white-space: normal; }

/* Дерево «хто продає»: підрозділ розгортається; стрілка практики в таблиці фірми */
.sm-caret { display: inline-block; width: 14px; color: var(--muted); font-size: 11px; }
.sm-unit.sm-click { cursor: pointer; }
.sm-go { color: var(--muted); font-size: 16px; }
tr.sm-click:hover .sm-go { color: var(--accent); }

/* «у фірмі актуальний» біля групи клієнта в практиці */
.sm-firmk { color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; }

/* ───────── Екран «Модель»: речення, «Погляд», таблиця-дерево, картка, «Що робимо» ───────── */
.sm-over { color: var(--accent); font-weight: 700; }
.sm-sentencebox { margin: 0 0 18px; }
.sm-sentencebox .sm-sentence { margin: 0; }
.sm-small { font-size: var(--fs-sm); }

.sm-viewrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; }
.sm-glabel { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.sm-viewwrap { position: relative; }
.sm-viewpick { border: 1px solid var(--border-strong); background: var(--bg-2); color: var(--text); border-radius: 999px; padding: 5px 14px; font-size: var(--fs-md); font-weight: 700; cursor: pointer; }
.sm-viewpick:hover { background: var(--card-hover); }
.sm-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: 280px; max-width: calc(100vw - 40px); max-height: 60vh; overflow: auto; background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-2); padding: 6px 6px 8px; }
.sm-menu-t { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; padding: 8px 8px 4px; }
.sm-menu-i { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: var(--radius-sm); padding: 6px 8px; font-size: var(--fs-md); color: var(--text); cursor: pointer; }
.sm-menu-i:hover, .sm-menu-i:focus-visible { background: var(--card-hover); outline: none; }
.sm-menu-search { width: calc(100% - 16px); margin: 2px 8px 6px; padding: 6px 10px; font-size: 16px; }
.sm-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: var(--fs-md); }
.sm-crumb { background: none; border: 0; padding: 2px 0; color: var(--sub); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.sm-crumb:hover { color: var(--text); }
.sm-crumb--now { color: var(--text); font-weight: 700; text-decoration: none; cursor: default; }
.sm-crumb-sep { color: var(--muted); }

/* керування над таблицею */
.sm-gridbox { min-width: 0; }
.sm-gctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; }
.sm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sm-dimchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-strong); background: var(--bg-2); color: var(--sub); border-radius: 999px; padding: 5px 13px; font-size: var(--fs-md); font-weight: 600; cursor: pointer; }
.sm-dimchip:hover { color: var(--text); background: var(--card-hover); }
.sm-dimchip.is-on { background: var(--text); border-color: var(--text); color: var(--bg-2); }
.sm-dimn { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; border-radius: 9px; background: var(--bg-2); color: var(--text); font-size: var(--fs-xs); font-weight: 800; }
.sm-gright { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.sm-gbtn { background: none; border: 0; color: var(--sub); font-size: var(--fs-md); font-weight: 600; cursor: pointer; padding: 6px 8px; border-radius: var(--radius-sm); }
.sm-gbtn:hover { color: var(--text); background: var(--card-hover); }
.sm-pop { position: absolute; z-index: 20; right: 0; top: calc(100% + 6px); width: 250px; max-width: calc(100vw - 40px); background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-2); padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.sm-sw { display: flex; align-items: center; gap: 8px; font-size: var(--fs-md); cursor: pointer; }
.sm-sw input { width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--accent); }
.sm-measure { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); padding-top: 8px; }
.sm-measure-t { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }

/* таблиця: перший стовпчик і шапка стоять на місці */
.sm-gwrap { overflow: auto; max-height: min(76vh, 880px); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-2); -webkit-overflow-scrolling: touch; }
.sm-grid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: var(--fs-md); }
.sm-grid th, .sm-grid td { white-space: nowrap; }
.sm-grid thead th { position: sticky; top: 0; z-index: 3; background: var(--bg-2); color: var(--muted); font-size: var(--fs-xs); font-weight: 600; padding: 7px 10px; border-bottom: 1px solid var(--border-strong); text-align: right; }
.sm-grid .sm-gy th { height: 26px; padding-top: 6px; padding-bottom: 2px; border-bottom: 0; text-align: center; letter-spacing: .02em; }
.sm-grid .sm-gh th { top: 26px; }
.sm-grid thead .sm-corner { left: 0; z-index: 5; text-align: left; width: 280px; min-width: 280px; max-width: 280px; vertical-align: bottom; }
.sm-grid thead .num { font-family: inherit; }
.sm-grid .sm-colsub { display: block; font-weight: 500; font-size: 10.5px; color: var(--muted); margin-top: 1px; }
.sm-grid .sm-first { position: sticky; left: 0; z-index: 2; background: var(--bg-2); text-align: left; font-weight: 500; width: 280px; min-width: 280px; max-width: 280px; padding: 0 8px 0 10px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); }
.sm-grid .sm-v { text-align: right; padding: 9px 10px; min-width: 82px; border-bottom: 1px solid var(--border); cursor: pointer; }
.sm-grid .sm-gcol { text-align: right; padding: 9px 10px; border-bottom: 1px solid var(--border); }
.sm-grid thead .sm-gcol { text-align: center; }
.sm-grid .sm-mcol { background: color-mix(in srgb, var(--accent) 5%, var(--bg-2)); }
.sm-grid .sm-ys { border-left: 1px solid var(--border); }
.sm-grid .sm-mstart { border-left: 1px solid var(--border-strong); }
.sm-grid tbody tr:hover .sm-v { box-shadow: inset 0 0 0 999px rgba(127, 127, 127, .07); }
.sm-grid tbody tr:hover .sm-first { background: color-mix(in srgb, var(--text) 4%, var(--bg-2)); }
.sm-grid .sm-v:hover { box-shadow: inset 0 0 0 999px rgba(127, 127, 127, .12); }
.sm-grid tr:last-child > * { border-bottom: 0; }
.sm-row { outline: none; }
.sm-row:focus-visible .sm-first { box-shadow: inset 2px 0 0 var(--accent); }
.sm-row.sm-click .sm-first { cursor: pointer; }
.sm-rootrow .sm-first { font-weight: 700; }
.sm-grid .sm-v.sm-sel { outline: 2px solid var(--accent); outline-offset: -2px; font-weight: 700; box-shadow: none; }
.sm-grid .sm-v:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }
.sm-lab { display: flex; align-items: center; gap: 6px; min-width: 0; padding-top: 9px; padding-bottom: 9px; }
.sm-lab .sm-caret { width: 14px; text-align: center; flex: none; }
.sm-dotc { display: inline-flex; width: 14px; justify-content: center; flex: none; }
.sm-dotc::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }
.sm-lab .sm-name { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sm-lab .sm-kind { margin-left: 2px; flex: none; }
.sm-focus { margin-left: auto; flex: none; opacity: 0; border: 0; background: none; color: var(--muted); font-size: 16px; line-height: 1; padding: 2px 4px; cursor: pointer; border-radius: var(--radius-sm); }
.sm-focus:hover { color: var(--accent); background: var(--card-hover); }
.sm-row:hover .sm-focus, .sm-row:focus-within .sm-focus, .sm-focus:focus-visible { opacity: 1; }
@media (hover: none) { .sm-focus { opacity: 1; } }
.sm-moreb { font-weight: 600; }
.sm-gnote p { margin: 8px 0 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; }

/* макет: картка праворуч від таблиці на широкому екрані, під нею — на вузькому */
.sm-mlayout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "g" "c" "i"; align-items: start; }
.sm-mlayout > * { min-width: 0; }
.sm-gridhost { grid-area: g; }
.sm-cell-card { grid-area: c; }
.sm-ini { grid-area: i; }
@media (min-width: 1100px) {
  .sm-mlayout.has-card { grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: auto 1fr; grid-template-areas: "g c" "i c"; }
  .sm-mlayout.has-card .sm-cell-card { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
}

/* картка клітинки */
.sm-cell-card { background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 16px 18px 14px; }
.sm-chead { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sm-ctitle { margin: 0; font-size: var(--fs-lg); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.sm-cclose { flex: none; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; padding: 0 4px; cursor: pointer; border-radius: var(--radius-sm); }
.sm-cclose:hover { color: var(--text); background: var(--card-hover); }
.sm-cvalue { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin: 6px 0 4px; font-family: inherit; font-variant-numeric: tabular-nums; }
.sm-csec { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.sm-ch { margin: 0 0 6px; font-size: var(--fs-sm); font-weight: 700; color: var(--sub); }
.sm-cl { margin: 0 0 4px; font-size: var(--fs-md); line-height: 1.45; }
.sm-cl.sm-small { font-size: var(--fs-sm); }
.sm-clist { list-style: none; margin: 6px 0; padding: 0; }
.sm-bdrow, .sm-deal { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--border); font-size: var(--fs-md); }
.sm-deal-c { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: auto; }
.sm-deal-m { color: var(--muted); font-size: var(--fs-sm); }
.sm-ctable { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin-top: 6px; }
.sm-ctable th { text-align: left; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); padding: 4px 6px; border-bottom: 1px solid var(--border-strong); vertical-align: bottom; }
.sm-ctable td { padding: 4px 6px; border-bottom: 1px solid var(--border); }
.sm-ctable .num { text-align: right; }
.sm-need-total td { font-weight: 700; }
.sm-monthly summary { cursor: pointer; list-style: none; }
.sm-monthly summary::-webkit-details-marker { display: none; }
.sm-monthly summary::before { content: '▸ '; color: var(--muted); }
.sm-monthly[open] summary::before { content: '▾ '; }
.sm-now { font-weight: 600; }
.sm-nph { margin-top: 8px; font-weight: 700; color: var(--sub); }

/* «Що робимо» */
.sm-inihead { display: block; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; font-size: var(--fs-md); font-weight: 600; color: var(--text); cursor: pointer; }
.sm-inihead:hover { background: var(--card-hover); }
.sm-inibody { padding: 12px 0 4px; }
.sm-levers { margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); }
.sm-lever { margin: 0 0 4px; font-size: var(--fs-md); }
.sm-inilist { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.sm-iniitem { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); display: grid; gap: 2px; }
.sm-ini-name { font-weight: 700; }
.sm-ini-meta { font-size: var(--fs-sm); }
.sm-ini-gives { font-size: var(--fs-sm); color: var(--sub); font-variant-numeric: tabular-nums; }
.sm-ini-p { margin: 12px 0 6px; }

@media (max-width: 600px) {
  .sm-grid .sm-first, .sm-grid thead .sm-corner { width: 180px; min-width: 180px; max-width: 180px; }
  .sm-lab .sm-kind { display: none; } /* на вузькому екрані місце потрібне назві */
  .sm-grid .sm-v { min-width: 72px; padding: 9px 8px; }
  .sm-gright { margin-left: 0; }
  .sm-cvalue { font-size: 22px; }
}
