/* Admin catalogue: products, categories, price lists, campaigns, stock, imports */

/* ---------------------------------------------------------------- shared bits */
.cg-code { font-size: 12.5px; font-weight: 650; font-stretch: 88%; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cg-mono { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.cg-ph { color: var(--faint); }
.cg-sort { white-space: nowrap; }
.cg-sort .icon { opacity: 0.45; }
.cg-sort.is-active { color: var(--ink); }
.cg-sort.is-active .icon { opacity: 1; color: var(--brand); }
.table th.num .cg-sort { justify-content: flex-end; }
.cg-clear { margin-left: auto; align-self: center; }
.cg-toolbar .select { width: auto; flex: 0 1 190px; min-width: 140px; }
.cg-toolbar .input-icon { flex: 1 1 240px; }
.cg-empty-lg { padding: 64px 24px; }
.cg-empty-actions { justify-content: center; margin-top: 12px; }
.cg-empty-actions .btn { margin-top: 0; }
.cg-hide-sm { display: inline; }
.cg-pt-0 { padding-top: 0; }
.cg-seg-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cg-seg-full { display: flex; }
.cg-seg-full label { flex: 1; justify-content: center; }
.cg-example { font-size: 13px; color: var(--ink-2); padding: 10px 12px; }
.cg-subhead { display: flex; align-items: center; gap: 8px; padding: 14px 20px 10px; border-top: 1px solid var(--line); font-weight: 700; font-size: 13.5px; }
.cg-stat-note { font-size: 12.5px; color: var(--muted); }

/* product cells shared by the stock and price list tables */
.cg-prod { display: flex; align-items: center; gap: 12px; min-width: 260px; }
.cg-prod .p-thumb { flex: none; }
.cg-prod .cell-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.cg-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.cg-sub .tag { height: 20px; font-size: 11.5px; padding: 0 7px; }
.tag.cg-tag-new { background: var(--brand-soft); color: var(--brand-text); }
.tag.cg-tag-campaign { background: var(--tape-soft); color: var(--tape-ink); }
.tag.cg-tag-bestseller { background: var(--violet-soft); color: var(--violet); }
.cg-stock { font-weight: 650; white-space: nowrap; }
.cg-stock .muted { font-weight: 500; font-size: 12.5px; }
.cg-stock-low { color: var(--warning); }
.cg-stock-out { color: var(--danger); }

/* ---------------------------------------------------------------- product list */
.cg-import-card {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: -2px 0 16px; padding: 14px 16px;
  border-radius: 18px; background: var(--surface); border: 1px dashed color-mix(in srgb, var(--blue) 30%, var(--line));
}
.cg-import-ti { width: 42px; height: 42px; border-radius: 13px; }
.cg-import-ti .icon { width: 20px; height: 20px; }
.cg-import-card .grow { flex: 1 1 220px; min-width: 220px; }
.cg-import-card b { display: block; font-size: 14.5px; font-weight: 700; color: var(--muted); }
.cg-import-card .grow > span { display: block; font-size: 13px; color: var(--muted); font-weight: 550; }
.cg-import-card .btn { height: 36px; }
.cg-menu-badge { margin-left: auto; }

.cg-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 18px; }
.cg-search {
  flex: 1 1 220px; max-width: 320px; display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px;
  border-radius: 11px; border: 1px solid var(--line); background: var(--surface-2); color: var(--faint); cursor: text;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.cg-search:focus-within { border-color: var(--brand); background: var(--surface); }
.cg-search .icon { width: 18px; height: 18px; }
.cg-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 14.5px; color: var(--ink); }
.cg-search input::placeholder { color: var(--faint); }
.cg-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.cg-cat {
  display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font: inherit; font-weight: 650; font-size: 13.5px; white-space: nowrap; cursor: pointer;
  text-decoration: none !important; transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.cg-cat:hover { border-color: var(--line-strong); color: var(--ink); }
.cg-cat.is-active { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.cg-cat .icon { width: 15px; height: 15px; margin-right: -3px; opacity: 0.7; }
.cg-cat-menu { max-height: 340px; overflow-y: auto; min-width: 250px; }
.cg-cat-menu .menu-item { padding-left: calc(10px + var(--depth, 0) * 14px); }
.cg-cat-menu .menu-item.is-current { background: var(--brand-soft); color: var(--brand-text); }
.cg-cat-count { margin-left: auto; padding-left: 10px; font-size: 12px; font-weight: 650; color: var(--faint); font-variant-numeric: tabular-nums; }
.cg-tools-r { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cg-lbl { font-size: 13px; font-weight: 650; color: var(--muted); }
.cg-seg a, .cg-seg button { font-size: 13px; }
.cg-seg button { padding: 0 12px; }
.cg-price-select { width: auto; min-width: 160px; height: 40px; font-size: 13.5px; }
.cg-filter-btn {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.cg-filter-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.cg-filter-btn[aria-expanded="true"] { border-color: var(--ink); color: var(--ink); }
.cg-filter-n {
  position: absolute; top: -7px; right: -7px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; border: 2px solid var(--surface); background: var(--brand); color: var(--brand-ink); font-size: 11px; font-weight: 750;
}
.cg-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: -4px; padding: 0 18px 16px; }
.cg-filters .select { width: auto; flex: 0 1 190px; min-width: 150px; height: 38px; font-size: 13.5px; }

.cg-table th { padding: 10px 14px; border-top: 1px solid var(--line-2); }
.cg-table td { padding: 12px 14px; white-space: nowrap; }
.cg-table th:first-child, .cg-table td:first-child { padding-left: 14px; }
.cg-table th:last-child, .cg-table td:last-child { padding-right: 14px; }
.cg-table .cg-sort { gap: 4px; }
.cg-table th.num { text-align: left; }
.cg-table .cg-prod { min-width: 280px; }
.cg-table .cg-prod .cell-title { display: block; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.cg-tile { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; overflow: hidden; flex: none; }
.cg-tile .icon { width: 22px; height: 22px; }
.cg-tile.is-img { background: var(--surface); border: 1px solid var(--line); }
.cg-tile.is-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.cg-name { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 380px; }
.cg-name .tag { height: 20px; padding: 0 7px; font-size: 11.5px; flex: none; }
.cg-codes { margin-top: 1px; font-size: 12.5px; font-weight: 650; font-stretch: 88%; color: var(--muted); font-variant-numeric: tabular-nums; }

/* row selection: the product tile doubles as the checkbox */
.cg-sel { position: relative; display: block; flex: none; border-radius: 13px; cursor: pointer; }
.cg-sel input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cg-sel-mark {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 13px; opacity: 0;
  background: color-mix(in srgb, var(--surface) 70%, transparent); transition: opacity 0.12s var(--ease);
}
.cg-sel-box { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--surface); color: transparent; }
.cg-sel-box .icon { width: 13px; height: 13px; stroke-width: 3; }
.cg-list.has-selection .cg-sel-mark, .cg-sel input:focus-visible ~ .cg-sel-mark { opacity: 1; }
.cg-sel input:checked ~ .cg-sel-mark { opacity: 1; background: color-mix(in srgb, var(--brand) 16%, transparent); }
.cg-sel input:checked ~ .cg-sel-mark .cg-sel-box { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.cg-sel input:focus-visible ~ .cg-sel-mark .cg-sel-box { box-shadow: var(--ring); }
@media (hover: hover) {
  .cg-table tr:hover .cg-sel-mark { opacity: 1; }
}

.cg-stk { min-width: 150px; }
.cg-stk-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 650; }
.cg-stk-val { font-variant-numeric: tabular-nums; }
.cg-stk-unit { color: var(--faint); }
.cg-stk.is-low .cg-stk-val, .cg-stk.is-out .cg-stk-val { color: var(--danger); }
.cg-stk.is-untracked .cg-stk-val { color: var(--muted); }
.cg-stk-bar { height: 6px; margin-top: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.cg-stk-bar i { display: block; height: 100%; border-radius: inherit; background: var(--success-bright); }
.cg-stk.is-low .cg-stk-bar i { background: var(--danger-bright); }
.cg-price b { font-size: 15px; font-weight: 700; }
.cg-price s { display: block; font-size: 12px; font-weight: 600; color: var(--faint); }
.cg-kdv { margin-left: 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); }

.cg-pub { position: relative; display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 650; color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.cg-pub input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cg-pub-track { position: relative; flex: none; width: 42px; height: 24px; border-radius: 99px; background: var(--line-strong); transition: background 0.2s; }
.cg-pub-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.25s var(--ease);
}
.cg-pub input:checked + .cg-pub-track { background: var(--success-bright); }
.cg-pub input:checked + .cg-pub-track::after { transform: translateX(18px); }
.cg-pub input:focus-visible + .cg-pub-track { box-shadow: var(--ring); }
.cg-pub input:disabled + .cg-pub-track { opacity: 0.6; }
.cg-pub:has(input:disabled) { cursor: progress; }
.cg-pub.is-static { cursor: default; }
.cg-pub-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.cg-pub.is-on .cg-pub-dot { background: var(--success-bright); }
.cg-acts { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
@media (hover: hover) and (min-width: 721px) {
  .cg-table .cg-acts { opacity: 0; transition: opacity 0.12s; }
  .cg-table tr:hover .cg-acts, .cg-table .cg-acts:focus-within, .cg-table .cg-acts:has(.is-open) { opacity: 1; }
}

.cg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; padding: 0 18px 18px; }
.cg-card {
  display: grid; gap: 8px; align-content: start; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); transition: box-shadow 0.2s, transform 0.2s;
}
.cg-card:hover { box-shadow: 0 18px 30px -22px rgba(15, 22, 48, 0.5); transform: translateY(-2px); }
.cg-card-media { position: relative; display: grid; place-items: center; height: 124px; border-radius: 13px; overflow: hidden; text-decoration: none !important; }
.cg-card-media .icon { width: 38px; height: 38px; stroke-width: 1.6; }
.cg-card-media.is-img { background: var(--surface-2); }
.cg-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; mix-blend-mode: multiply; }
:root[data-theme="dark"] .cg-card-media img { mix-blend-mode: normal; }
.cg-card-media .chip { position: absolute; top: 8px; left: 8px; z-index: 1; }
.cg-card-meta { font-size: 12px; font-weight: 700; font-stretch: 88%; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-card-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em;
  font-weight: 700; line-height: 1.3; color: var(--ink); text-decoration: none !important;
}
.cg-card-name:hover { color: var(--brand-text); }
.cg-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.cg-card-foot strong { font-size: 16px; font-weight: 700; font-stretch: 108%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cg-card .cg-pub:not(.is-static) .cg-pub-label { display: none; }
.cg-list[data-view="grid"] .cg-table-wrap, .cg-list[data-view="grid"] .cg-bulkbar { display: none !important; }
.cg-list:not([data-view="grid"]) .cg-grid { display: none; }

.cg-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.cg-foot-r { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cg-foot .pager-links a, .cg-foot .pager-links span { min-width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
.cg-bulkbar { gap: 6px; flex-wrap: wrap; justify-content: center; }
.cg-bulk-count { display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; white-space: nowrap; cursor: pointer; }
.cg-bulk-count input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); }
.cg-bulkbar form { display: contents; }
.cg-bulkbar .menu form { display: block; }

@media (max-width: 720px) {
  .cg-prod { min-width: 0; }
  .cg-table .cg-prod { min-width: 250px; }
  .cg-name { max-width: 230px; }
  .cg-bl { display: none; }
  .cg-bulkbar { width: calc(100% - 24px); }
  .cg-hide-sm { display: none; }
  .cg-toolbar .select { flex: 1 1 calc(50% - 5px); min-width: 0; width: 100%; }
  .cg-toolbar .input-icon { flex-basis: 100%; max-width: none; }
  .cg-tools { padding: 14px; }
  .cg-search { flex-basis: 100%; max-width: none; }
  .cg-tools-r { margin-left: 0; max-width: 100%; }
  .cg-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .cg-seg::-webkit-scrollbar { display: none; }
  .cg-filters { padding: 0 14px 14px; }
  .cg-filters .select { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .cg-sel { pointer-events: none; }
  .cg-sel-mark { display: none; }
  .cg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 14px 14px; }
  .cg-card { padding: 10px; border-radius: 16px; }
  .cg-card-media { height: 104px; }
  .cg-card-foot { flex-wrap: wrap; }
  .cg-foot { padding: 12px 14px; }
}

/* quick stock modal */
.cg-sm-product { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-sm-current { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.cg-sm-current strong { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cg-sm-result { padding: 10px 12px; border-radius: var(--r); background: var(--brand-soft); color: var(--ink); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.cg-sm-result.is-negative { background: var(--danger-soft); }
.cg-sm-result.is-negative strong { color: var(--danger); }

/* ---------------------------------------------------------------- product form */
.cg-title-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cg-head-tile { width: 54px; height: 54px; border-radius: 15px; }
.cg-head-tile .icon { width: 24px; height: 24px; }
.cg-title-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.cg-title-line .chip { margin-top: 4px; }
.cg-form-head .page-sub { font-variant-numeric: tabular-nums; }
.cg-switch-mint input:checked + .track { background: var(--success-bright); }
.cg-head-stock { display: flex; align-items: center; gap: 14px; }
.cg-head-stock .cg-stk { width: 200px; min-width: 0; }
.cg-head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; font-size: 13px; }
.cg-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
.cg-nav { position: sticky; top: calc(var(--topbar-h) + 12px); display: flex; flex-direction: column; gap: 2px; }
.cg-nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px;
  color: var(--muted); font-weight: 600; font-size: 13.5px; text-decoration: none !important; position: relative;
}
.cg-nav a .icon { color: var(--faint); flex: none; }
.cg-nav a:hover { color: var(--ink); background: var(--surface-3); }
.cg-nav a.is-active { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.cg-nav a.is-active .icon { color: var(--brand); }
.cg-nav-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); margin-left: auto; flex: none; }
.cg-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cg-main > form { display: contents; }
.cg-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cg-section { scroll-margin-top: calc(var(--topbar-h) + 16px); }
.cg-section .card-head h2 { display: flex; align-items: center; gap: 8px; }
.cg-sku { position: relative; }
.cg-sku .input { padding-right: 86px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.cg-sku-btn { position: absolute; right: 4px; top: 4px; height: 32px; color: var(--brand-text); }
.cg-desc { min-height: 140px; }
.cg-tag-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.cg-tag-check { position: relative; display: inline-flex; cursor: pointer; }
.cg-tag-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cg-tag-check span {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-weight: 650; font-size: 13px;
}
.cg-tag-check span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line-strong); background: var(--surface); }
.cg-tag-check input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-text); }
.cg-tag-check input:checked + span::before { border-color: var(--brand); background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.cg-tag-check input:focus-visible + span { box-shadow: var(--ring); }
.cg-switches { display: flex; flex-wrap: wrap; gap: 14px 32px; padding-top: 4px; }
.cg-switch-sub { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.switch > span:last-child { line-height: 1.35; }
.cg-switch-field { justify-content: center; }
.cg-switch-sm .track { width: 32px; height: 18px; }
.cg-switch-sm .track::after { width: 12px; height: 12px; }
.cg-switch-sm input:checked + .track::after { transform: translateX(14px); }
.cg-fx-hint { display: flex; align-items: center; gap: 6px; margin-top: -6px; }
.cg-checklist { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); min-height: 40px; }
.cg-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cg-helper { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-lg); background: var(--brand-soft); color: var(--brand-text); }
.cg-helper > .icon { flex: none; margin-top: 1px; }
.cg-helper-text { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.cg-helper-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.cg-helper-sub:empty { display: none; }
.cg-pack-link { align-self: flex-start; }
.cg-variant-total { height: 40px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.is-muted { opacity: 0.55; }
.cg-mini-moves { border-top: 1px solid var(--line); padding-top: 14px; }
.cg-mini-title { font-size: 12.5px; font-weight: 650; color: var(--muted); margin-bottom: 6px; }
.cg-move { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; }
.cg-move + .cg-move { border-top: 1px dashed var(--line); }
.cg-move-delta { min-width: 64px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cg-move-delta.is-in, .cg-delta-in { color: var(--success); }
.cg-move-delta.is-out, .cg-delta-out { color: var(--danger); }

/* editable row tables inside the form */
.cg-rep th { background: var(--surface); }
.cg-rep td { padding-top: 8px; padding-bottom: 8px; vertical-align: top; }
.cg-rep tbody tr:hover { background: transparent; }
.cg-rep .field-error { margin-top: 4px; }
.cg-rep td.is-invalid .input, .cg-rep td.is-invalid .select { border-color: var(--danger); }
.cg-rep .actions { vertical-align: top; padding-top: 8px; }
.cg-rep .switch { margin-top: 7px; }
.cg-rep-variants .input { min-width: 110px; }
.cg-rep-variants td:nth-child(2) .input { min-width: 170px; }
.cg-w-num { width: 100px; min-width: 84px !important; text-align: right; }
.cg-w-attr { width: 34%; }
.cg-ig-sm .input-addon { height: 32px; padding: 0 10px; font-size: 12.5px; }
.cg-ig-sm { min-width: 140px; }
.cg-rep-foot { justify-content: flex-start; gap: 14px; flex-wrap: wrap; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.cg-rep-foot .muted { margin-left: auto; }
.cg-rep-empty { padding-top: 14px; padding-bottom: 18px; }
.cg-pl-rows { display: flex; flex-direction: column; }
.cg-pl-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 6px 16px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.cg-pl-row:last-child { border-bottom: 0; }
.cg-pl-row .field-error { grid-column: 2; }
.cg-pl-row.is-invalid .input { border-color: var(--danger); }
.cg-pl-name { display: flex; align-items: center; gap: 10px; font-weight: 650; min-width: 0; }
.cg-pl-name .icon { color: var(--faint); flex: none; }
.cg-pl-input { display: flex; align-items: center; gap: 12px; }
.cg-pl-input .input-group { width: 160px; flex: none; }
.cg-pl-input .input-addon { height: 32px; padding: 0 10px; }
.cg-pl-diff { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cg-pl-diff.is-down { color: var(--success); }
.cg-pl-diff.is-up { color: var(--warning); }
.cg-pl-note { padding-top: 0; }

/* images & documents */
.cg-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.cg-img { position: relative; margin: 0; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); overflow: hidden; }
.cg-img.is-main { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.cg-img-media { display: block; aspect-ratio: 1; }
.cg-img-media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; mix-blend-mode: multiply; }
:root[data-theme="dark"] .cg-img-media img { mix-blend-mode: normal; }
.cg-img-badge { position: absolute; left: 6px; top: 6px; height: 22px; font-size: 11.5px; }
.cg-img-actions { display: flex; gap: 4px; justify-content: flex-end; padding: 6px; border-top: 1px solid var(--line); background: var(--surface); }
.cg-img-actions .btn { box-shadow: none; }
.cg-img-actions .cg-img-del { margin-left: auto; color: var(--danger); }
.cg-dropzone-sm { padding: 16px; flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 4px 10px; }
.dropzone.is-busy { opacity: 0.6; pointer-events: none; }
.cg-docs .list-item { padding: 12px 20px; }
.cg-docs .li-title { display: block; color: var(--ink); }
.cg-doc-form { border-top: 1px solid var(--line); }
.cg-docs:empty + .cg-doc-form { border-top: 0; }
.cg-doc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.cg-doc-form .hint { margin-top: 8px; }
.cg-file {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px dashed var(--line-strong);
  border-radius: var(--r); background: var(--surface-2); color: var(--muted); cursor: pointer; font-size: 13.5px; min-width: 0;
}
.cg-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-file:hover { border-color: var(--brand); color: var(--brand-text); }
.cg-file input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }

/* sticky save bar */
.cg-savebar {
  position: sticky; bottom: 12px; z-index: 25; display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 18px;
  border-radius: 14px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.cg-savebar-note { margin-right: auto; }
.cg-savebar-note.is-dirty { color: var(--warning); font-weight: 650; }

@media (max-width: 1100px) {
  .cg-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cg-nav {
    position: sticky; top: var(--topbar-h); z-index: 20; flex-direction: row; overflow-x: auto; scrollbar-width: none;
    margin: 0 -16px; padding: 6px 16px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .cg-nav::-webkit-scrollbar { display: none; }
  .cg-nav a { white-space: nowrap; flex: none; padding: 6px 10px; }
  .cg-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .cg-title-row { align-items: flex-start; gap: 12px; }
  .cg-head-tile { width: 44px; height: 44px; border-radius: 13px; margin-top: 2px; }
  .cg-head-tile .icon { width: 20px; height: 20px; }
  .cg-head-stock .cg-stk { width: 150px; }
  .cg-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-pl-row { grid-template-columns: minmax(0, 1fr); }
  .cg-pl-row .field-error { grid-column: 1; }
  .cg-doc-grid { grid-template-columns: minmax(0, 1fr); }
  .cg-savebar { bottom: calc(var(--tabbar-h) + var(--safe-b) + 8px); padding: 8px; }
  .cg-savebar-note { display: none; }
  .cg-savebar .btn-primary { flex: 1; }
  .cg-rep-foot .muted { margin-left: 0; }
  .cg-rep thead { display: none; }
  .cg-rep, .cg-rep tbody, .cg-rep tr, .cg-rep td { display: block; width: 100%; }
  .cg-rep tr { position: relative; padding: 10px 52px 10px 16px; border-bottom: 1px solid var(--line); }
  .cg-rep td { padding: 4px 0 !important; border: 0; }
  .cg-rep td.actions { position: absolute; right: 12px; top: 10px; width: auto; }
  .cg-rep .cg-w-num, .cg-rep .cg-ig-sm { width: 100%; }
  .cg-w-attr { width: 100%; }
  .cg-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- categories */
.cg-tree-head, .cg-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 110px 104px 112px; align-items: center; gap: 8px; }
.cg-tree-head { padding: 10px 16px 10px 12px; background: var(--surface-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.cg-tree-head span:first-child { grid-column: 1 / 3; padding-left: 36px; }
.cg-tree-card .pager.cg-tree-foot { border-top: 0; }
.cg-tree-head .num { text-align: right; }
.cg-tree { list-style: none; margin: 0; padding: 0; }
.cg-row { padding: 10px 16px 10px 12px; border-bottom: 1px solid var(--line-2); background: var(--surface); transition: background 0.12s; }
.cg-row:hover { background: var(--surface-2); }
.cg-grip { display: grid; place-items: center; color: var(--faint); cursor: grab; opacity: 0; transition: opacity 0.12s; }
.cg-row:hover .cg-grip, .cg-row:focus-within .cg-grip { opacity: 1; }
.cg-row-main { display: flex; align-items: center; gap: 10px; min-width: 0; padding-left: calc(var(--depth, 0) * 28px); }
.cg-twisty { width: 24px; height: 24px; display: grid; place-items: center; border: 0; background: none; border-radius: 6px; color: var(--muted); cursor: pointer; flex: none; transition: transform 0.15s var(--ease); }
.cg-twisty:hover { background: var(--surface-3); color: var(--ink); }
.cg-twisty.is-leaf { cursor: default; }
.cg-node[aria-expanded="false"] > .cg-row .cg-twisty { transform: rotate(-90deg); }
.cg-node[aria-expanded="false"] > .cg-tree { display: none; }
.cg-folder { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); flex: none; overflow: hidden; }
.cg-folder img { width: 100%; height: 100%; object-fit: cover; }
.cg-folder.cg-folder-img { width: 36px; height: 36px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); }
.cg-node:not([aria-expanded]) .cg-cat-tile, .cg-tree .cg-tree .cg-cat-tile { width: 32px; height: 32px; border-radius: 10px; }
.cg-tree .cg-tree .cg-cat-tile .icon { width: 16px; height: 16px; }
.cg-node-name { font-weight: 650; color: var(--ink); }
.cg-node-name:hover { color: var(--brand-text); }
.cg-node.is-off > .cg-row .cg-node-name { color: var(--muted); }
.cg-node-sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-row-count { text-align: right; font-weight: 650; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.cg-tree-card .cg-row-count, .cg-tree-card .cg-tree-head .num { padding-right: 18px; }
.cg-row-count a { color: var(--ink); }
.cg-own { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.cg-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.cg-move-form { display: flex; gap: 2px; opacity: 0.55; }
.cg-row:hover .cg-move-form, .cg-move-form:focus-within { opacity: 1; }
.cg-move-form .btn[disabled] { opacity: 0.25; }
.cg-menu-note { cursor: default; color: var(--muted); font-weight: 500; font-size: 12.5px; align-items: flex-start; white-space: normal; }
.cg-menu-note:hover { background: none; }
.cg-node.is-dragging > .cg-row { opacity: 0.45; background: var(--brand-soft); }
.cg-tree-card.is-dragging .cg-row { cursor: grabbing; }
.cg-node.is-moved > .cg-row { animation: cg-flash 0.9s var(--ease); }
@keyframes cg-flash { from { background: var(--brand-soft-2); } to { background: var(--surface); } }
.cg-tree-card.is-filtering .cg-node { display: none; }
.cg-tree-card.is-filtering .cg-node.is-hit, .cg-tree-card.is-filtering .cg-node.is-path { display: block; }
.cg-tree-card.is-filtering .cg-node > .cg-tree { display: block !important; }
.cg-tree-card.is-filtering .cg-node.is-path:not(.is-hit) > .cg-row { opacity: 0.6; }
.cg-tree-card.is-filtering .cg-grip { visibility: hidden; }
.cg-tree-hint { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); }
.cg-danger-link { color: var(--danger); }
.cg-danger-link:hover { color: var(--danger); background: var(--danger-soft); }
@media (max-width: 720px) {
  .cg-tree-head { display: none; }
  .cg-row { grid-template-columns: minmax(0, 1fr) auto auto; padding: 10px 12px; gap: 6px; }
  .cg-grip, .cg-row-status, .cg-tree-hint { display: none; }
  .cg-row-main { padding-left: calc(var(--depth, 0) * 16px); }
  .cg-move-form { display: none; }
  .cg-own { display: none; }
}

/* ---------------------------------------------------------------- price lists */
.cg-explain { display: flex; align-items: stretch; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); }
.cg-explain-step { flex: 1; display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; font-size: 13px; min-width: 0; }
.cg-explain-step strong { display: block; font-weight: 700; }
.cg-explain-step span { color: var(--muted); }
.cg-explain-step.is-here { background: var(--brand-soft); }
.cg-explain-step.is-here .cg-explain-n { background: var(--brand); color: var(--brand-ink); }
.cg-explain-n { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); font-weight: 750; font-size: 12px; flex: none; margin-top: 1px; }
.cg-explain-arrow { align-self: center; color: var(--faint); flex: none; }
.cg-usage { display: flex; flex-wrap: wrap; gap: 4px; }
.cg-pl-cover { min-width: 130px; max-width: 180px; }
.cg-pl-cover-top { font-size: 13.5px; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.cg-pl-cover .meter { height: 6px; }
.cg-pl-stats .stat-label .ti .icon { width: 15px; height: 15px; }
.cg-pl-price b { font-weight: 650; }
.cg-usage .tag { text-decoration: none; }
.cg-usage .tag .icon { color: var(--muted); }
.stats.cg-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cg-stat-of { font-size: 15px; color: var(--faint); font-weight: 500; }
.cg-meter-sm { height: 5px; margin-top: 10px; }
.cg-pl-col { width: 220px; }
.cg-pl-ig { width: 180px; }
.cg-pl-ig .input-addon { height: 34px; padding: 0 10px; font-size: 13px; }
.cg-pl-table tr.is-set .cg-pl-ig .input { font-weight: 650; }
.cg-pl-table tr.is-changed { background: color-mix(in srgb, var(--tape-soft) 55%, transparent); }
.cg-pl-table tr.is-changed .input { border-color: var(--tape); }
.cg-pl-table tr.is-invalid .input { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.cg-pl-table tr.is-saved { animation: cg-saved 0.9s var(--ease); }
@keyframes cg-saved { from { background: var(--success-soft); } }
.cg-diff { font-size: 13px; font-weight: 650; color: var(--muted); }
.cg-diff.is-down { color: var(--success); }
.cg-diff.is-up { color: var(--warning); }
.cg-savebar-dark { position: sticky; }
.cg-btn-on-dark { --btn-bg: var(--surface) !important; --btn-fg: var(--ink) !important; --btn-bd: var(--surface) !important; }
.cg-gen-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 650; }
.cg-gen-pct { width: 130px; }
.cg-gen-dir { width: auto; min-width: 120px; }
@media (max-width: 900px) {
  .cg-explain { flex-direction: column; }
  .cg-explain-arrow { display: none; }
}
@media (max-width: 720px) {
  .stats.cg-stats-3 { grid-template-columns: minmax(0, 1fr); }
  .stats.cg-stats-3 .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .cg-pl-col, .cg-pl-ig { width: auto; }
  .cg-pl-table td.cg-pl-col { align-items: center; }
  .cg-pl-table .cg-pl-ig { max-width: 180px; }
  .cg-pl-table td.actions { position: absolute; top: 10px; right: 10px; width: auto; padding: 0 !important; }
  .cg-pl-table tbody tr { position: relative; }
  .cg-pl-table td.primary { padding-right: 40px !important; }
}

/* ---------------------------------------------------------------- campaigns */
.cg-row-dim td { color: var(--muted); }
.cg-row-dim .cell-title { color: var(--ink-2); }
.cg-period { font-size: 13px; }
.cg-type-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cg-type-cards .choice-title { display: flex; align-items: center; gap: 8px; }
.cg-type-cards .choice-title .icon { color: var(--muted); }
.cg-type-cards .choice:has(input:checked) .choice-title .icon { color: var(--brand); }
.cg-bxy { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.cg-bxy-sep { height: 40px; display: flex; align-items: center; font-weight: 650; color: var(--muted); }
.cg-scope-seg { flex-wrap: wrap; }
.cg-pick-list { max-height: 280px; overflow-y: auto; border: 1px solid var(--line-strong); border-radius: var(--r); padding: 6px; background: var(--surface); }
.cg-pick-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.cg-pick-item { display: flex; padding: 6px 8px 6px calc(8px + var(--depth, 0) * 20px); border-radius: 7px; }
.cg-pick-item:hover { background: var(--surface-2); }
.cg-picked { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.cg-picked:empty { display: none; }
.cg-picked-item { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); min-width: 0; }
.cg-picked-item .p-thumb { flex: none; width: 36px; height: 36px; }
.cg-picked-empty { margin-top: 8px; }
.cg-camp-switches { justify-content: center; padding-top: 22px; }
.cg-summary-text { font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--ink); min-height: 3em; }
.cg-summary .kv-row .v { max-width: 60%; }
.cg-summary-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.cg-rules { font-size: 13px; color: var(--ink-2); }
.cg-rules .strong { display: flex; align-items: center; gap: 6px; }
.cg-rules-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.cg-overlap { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-strong); display: flex; flex-direction: column; gap: 4px; }
.cg-overlap-item { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; color: var(--ink); font-weight: 600; }
@media (max-width: 720px) {
  .cg-type-cards { grid-template-columns: minmax(0, 1fr); }
  .cg-bxy { grid-template-columns: minmax(0, 1fr) auto; }
  .cg-camp-switches { padding-top: 0; }
}

/* ---------------------------------------------------------------- stock */
.cg-dates { display: flex; align-items: center; gap: 6px; }
.cg-dates .input { width: 150px; }
.cg-move-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.cg-move-icon.is-in { background: var(--success-soft); color: var(--success); }
.cg-move-icon.is-out { background: var(--danger-soft); color: var(--danger); }
.cg-moves .cg-prod { min-width: 220px; }
.cg-delta { font-weight: 750; font-variant-numeric: tabular-nums; }
.cg-reason { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 650; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.cg-reason-manual { background: var(--brand-soft); color: var(--brand-text); }
.cg-reason-import { background: var(--violet-soft); color: var(--violet); }
.cg-reason-return, .cg-reason-cancel { background: var(--success-soft); color: var(--success); }
.cg-note-cell { max-width: 260px; color: var(--ink-2); font-size: 13px; }
.stat-value.text-danger { color: var(--danger); }
.stat-value.text-warning { color: var(--warning); }
@media (max-width: 720px) {
  .cg-dates { flex: 1 1 100%; }
  .cg-dates .input { flex: 1; width: auto; }
  .cg-moves .cg-prod { min-width: 0; }
  .cg-note-cell { max-width: none; }
}

/* ---------------------------------------------------------------- imports */
.cg-steps { margin-bottom: 20px; max-width: 640px; }
.cg-import { display: flex; flex-direction: column; gap: 16px; }
.cg-import-types { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cg-type { position: relative; gap: 12px; padding: 16px; }
.cg-type > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.cg-type:has(input:focus-visible) { box-shadow: var(--ring); }
.cg-type .choice-desc { display: block; }
.cg-type-check {
  position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); opacity: 0; transform: scale(0.8); transition: opacity 0.15s, transform 0.15s var(--ease);
}
.cg-type-check .icon { width: 13px; height: 13px; stroke-width: 3; }
.cg-type:has(input:checked) .cg-type-check { opacity: 1; transform: none; }
.cg-type .grow { padding-right: 18px; }
.cg-template-link { width: max-content; margin-top: 10px; font-size: 12.5px; }
.cg-template-link .icon { width: 14px; height: 14px; }
.cg-import-drop { gap: 8px; padding: 36px 16px; }
.cg-import-drop .ti { margin-bottom: 4px; }
.cg-import-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cg-import-foot .hint { display: flex; align-items: center; gap: 6px; }
.cg-file-name { display: block; max-width: 360px; }
.cg-history .cg-hist-file { min-width: 240px; }
.cg-type-select { width: auto; min-width: 160px; }
.cg-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cg-map { display: flex; flex-direction: column; }
.cg-map-row { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--line-2); }
.cg-map-row:first-child { border-top: 1px solid var(--line-2); }
.cg-map-row:last-child { border-bottom: 0; }
.cg-map-row.is-missing { background: color-mix(in srgb, var(--tape-soft) 60%, transparent); }
.cg-map-row.is-missing .select { border-color: var(--tape); }
.cg-map-arrow { color: var(--faint); }
.cg-map-col { min-width: 0; }
.cg-map-sample { margin-top: 4px; font-size: 12px; font-weight: 650; font-stretch: 88%; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cg-req { height: 18px; font-size: 11px; padding: 0 6px; background: var(--tape-soft); color: var(--tape-ink); }
.cg-unmapped { justify-content: flex-start; }
.cg-prev-counts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.cg-preview tr.is-error { background: color-mix(in srgb, var(--danger-soft) 45%, transparent); }
.cg-prev-sub { max-width: 280px; }
.cg-prev-detail { font-variant-numeric: tabular-nums; font-size: 13px; }
.cg-prev-msg { font-size: 12.5px; margin-top: 3px; max-width: 320px; }
.cg-map-total { display: flex; align-items: center; gap: 12px; }
.cg-big-num { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cg-big-unit { font-family: var(--font); font-stretch: 100%; font-size: 14px; font-weight: 600; letter-spacing: 0; }
.cg-alert-sm { padding: 10px 12px; }
.cg-aside-hint { padding: 0 4px; }
form.is-loading .cg-map, form.is-loading .cg-preview { opacity: 0.55; pointer-events: none; transition: opacity 0.15s; }
.cg-job-head { display: flex; align-items: center; gap: 16px; }
.cg-job-title { font-weight: 750; font-size: 16.5px; }
.cg-job-sub { margin-top: 2px; font-size: 13.5px; font-weight: 550; color: var(--muted); }
.cg-job-pct { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 32px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cg-job-meter { height: 8px; margin-top: 18px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.cg-job-meter i { display: block; height: 100%; border-radius: inherit; background: var(--success-bright); transition: width 0.4s var(--ease); }
.cg-job-meter.is-running i { background: var(--brand); }
.cg-job-meter.is-warn i { background: var(--tape); }
.cg-job-meter.is-failed i { background: var(--danger-bright); }
.cg-job-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.cg-job-stats > div { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px; min-width: 0; }
.cg-job-stats > div + div { border-left: 1px solid var(--line-2); }
.cg-job-label { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 650; color: var(--muted); }
.cg-job-stats strong { font-family: var(--font-display); font-stretch: var(--display-stretch); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cg-job-note { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.cg-errors td:first-child { width: 80px; }
@media (max-width: 1100px) {
  .cg-import-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .cg-import-types, .cg-two { grid-template-columns: minmax(0, 1fr); }
  .cg-map-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 16px; }
  .cg-map-arrow { display: none; }
  .cg-job-pct { font-size: 24px; }
  .cg-job-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-job-stats > div { padding: 14px 16px; }
  .cg-job-stats > div:nth-child(3) { border-left: 0; }
  .cg-job-stats > div:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .cg-job-stats strong { font-size: 22px; }
  .cg-file-name { max-width: 220px; }
  .cg-history .cg-hist-file { min-width: 0; }
}
