:root {
  --navy: #062a54;
  --navy-deep: #031a34;
  --blue: #0868b5;
  --cyan: #21afd6;
  --green: #16865a;
  --paper: #f2f5f7;
  --ink: #102a43;
  --muted: #5d7083;
  --line: #d5dfe7;
  --kit-accent: #ffc328;
  --kit-accent-strong: #eaa500;
  --state-accent: var(--blue);
  --line-acrilica: #16865a;
  --line-esmalte: #db3a34;
  --line-verniz: #986127;
  --line-premium: #8056c9;
  --line-complementos: #087aa5;
  --shadow: 0 10px 26px rgba(3, 26, 52, 0.09);
}

* { box-sizing: border-box; }
html { background: #e8edf1; scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 5% 0%, rgba(33, 175, 214, 0.13), transparent 26rem), #edf2f5;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid color-mix(in srgb, var(--kit-accent) 75%, white); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }
.print-only { display: none; }

.boot-screen, .fatal-error, .auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}
.boot-screen { align-content: center; gap: 18px; color: var(--navy); }
.boot-screen img { width: min(320px, 72vw); height: 130px; object-fit: contain; }
.fatal-error { align-content: center; gap: 10px; text-align: center; }
.fatal-error strong { color: var(--navy); font-size: 1.35rem; }
.fatal-error span { color: var(--muted); }
.fatal-error button { min-height: 42px; border: 0; border-radius: 9px; background: var(--navy); padding: 0 18px; color: white; font-weight: 850; }
.auth-shell { background: radial-gradient(circle at 10% 0%, rgba(33,175,214,.2), transparent 28rem), var(--navy-deep); }
.auth-card { width: min(440px, 100%); border-radius: 18px; background: white; padding: 30px; box-shadow: 0 28px 70px rgba(0,0,0,.34); }
.auth-card > img { width: 180px; height: 72px; object-fit: contain; }
.auth-card h1 { margin: 8px 0; color: var(--navy); font-size: 1.65rem; letter-spacing: -.03em; }
.auth-card > p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.5; }
.auth-card form { display: grid; gap: 14px; margin-top: 22px; }
.auth-card label { display: grid; gap: 6px; color: var(--ink); font-size: .8rem; font-weight: 850; }
.auth-card input { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; color: var(--ink); }
.auth-card button { min-height: 48px; border: 0; border-radius: 9px; background: var(--navy); color: white; font-weight: 900; }
.auth-card output { min-height: 20px; color: #a4132b; font-size: .8rem; font-weight: 750; }
.auth-card > a { display: inline-block; margin-top: 16px; color: var(--blue); font-size: .8rem; font-weight: 800; }

.site-shell.kit-cl4 { --kit-accent: #ffc328; --kit-accent-strong: #e5a000; }
.site-shell.kit-cl6 { --kit-accent: #ff7a24; --kit-accent-strong: #df5200; }
.site-shell.kit-cl8 { --kit-accent: #f3253c; --kit-accent-strong: #c80024; }
.site-shell.state-mg { --state-accent: var(--green); }

.topbar, .toolbar, .line-nav, .catalog-meta, .kit-rule, .import-message, .catalog-content, .catalog-footer {
  width: min(1500px, calc(100% - 32px));
  margin-inline: auto;
}

.control-deck {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 3px solid var(--kit-accent);
  background: rgba(3, 26, 52, 0.985);
  color: white;
  box-shadow: 0 8px 22px rgba(3, 26, 52, 0.24);
}
.topbar { display: grid; grid-template-columns: 128px minmax(0,1fr) auto; align-items: center; gap: 20px; min-height: 76px; padding: 10px 0; }
.brand-logo { width: 122px; height: 52px; border-radius: 8px; background: white; object-fit: contain; }
.brand-copy h1, .brand-copy p { margin: 0; }
.brand-copy h1 { margin-top: 2px; font-size: clamp(1.4rem, 2vw, 1.85rem); line-height: 1; letter-spacing: -0.035em; }
.brand-copy > p:last-child { margin-top: 6px; color: #ccdae7; font-size: 0.86rem; }
.eyebrow { color: var(--kit-accent); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.state-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 68px; height: 40px; border: 2px solid rgba(255,255,255,.9); border-radius: 999px; background: var(--state-accent); padding: 0 16px; color: white; font-size: 1.05rem; font-weight: 950; }
.account-area { display: flex; align-items: center; gap: 8px; }
.access-badge { display: inline-flex; min-height: 32px; align-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(255,255,255,.08); padding: 0 11px; color: #d7e4ef; font-size: .68rem; font-weight: 850; }
.access-badge.is-admin { border-color: color-mix(in srgb, var(--kit-accent) 65%, white); background: color-mix(in srgb, var(--kit-accent) 16%, transparent); color: var(--kit-accent); }

.toolbar { display: grid; grid-template-columns: auto minmax(280px,1fr) auto; align-items: center; gap: 12px; border-top: 1px solid rgba(255,255,255,.13); padding: 10px 0 12px; }
.kit-tabs, .export-actions { display: flex; align-items: center; gap: 7px; }
.kit-tabs button, .export-actions button, .import-message button, .close-sections {
  border: 1px solid rgba(255,255,255,.2); border-radius: 9px; background: rgba(255,255,255,.08); color: white; font-weight: 850;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}
.kit-tabs button:hover, .export-actions button:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.55); }
.kit-tabs button { display: grid; min-width: 86px; min-height: 48px; place-content: center; padding: 4px 13px; text-align: center; }
.kit-tabs button strong { font-size: 0.95rem; }
.kit-tabs button small { margin-top: 2px; color: #bdd0df; font-size: 0.66rem; font-weight: 750; }
.kit-tabs button.active { border-color: var(--kit-accent); background: var(--kit-accent); color: var(--navy-deep); }
.kit-tabs button.active small { color: color-mix(in srgb, var(--navy-deep) 75%, transparent); }
.search-box input { width: 100%; height: 48px; border: 1px solid rgba(255,255,255,.26); border-radius: 9px; outline: none; background: white; color: var(--ink); padding: 0 15px; font-size: 0.9rem; }
.search-box input::placeholder { color: #718396; }
.export-actions button { min-height: 44px; padding: 0 13px; font-size: 0.78rem; white-space: nowrap; }
.export-actions .admin-action { border-color: color-mix(in srgb, var(--kit-accent) 55%, transparent); background: color-mix(in srgb, var(--kit-accent) 13%, transparent); }

.line-nav { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 8px; margin-top: 16px; }
.line-nav button { display: grid; grid-template-columns: 12px minmax(0,1fr); grid-template-rows: auto auto; align-items: center; column-gap: 9px; min-height: 64px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.96); padding: 9px 11px; color: var(--navy); text-align: left; box-shadow: 0 5px 15px rgba(3,26,52,.055); }
.line-nav button:hover { border-color: color-mix(in srgb, var(--line-color, var(--navy)) 45%, var(--line)); }
.line-nav button.active { border-color: var(--line-color, var(--navy)); background: color-mix(in srgb, var(--line-color, var(--navy)) 8%, white); box-shadow: inset 0 0 0 1px var(--line-color, var(--navy)); }
.line-nav strong { overflow: hidden; font-size: 0.88rem; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
.line-nav small { grid-column: 2; color: var(--muted); font-size: 0.7rem; font-weight: 750; }
.line-dot { grid-row: 1 / 3; width: 10px; height: 34px; border-radius: 999px; background: var(--line-color, var(--navy)); }
.line-dot.all { background: linear-gradient(var(--line-acrilica) 0 20%, var(--line-esmalte) 20% 40%, var(--line-verniz) 40% 60%, var(--line-premium) 60% 80%, var(--line-complementos) 80%); }
.line-acrilica { --line-color: var(--line-acrilica); }
.line-esmalte { --line-color: var(--line-esmalte); }
.line-verniz { --line-color: var(--line-verniz); }
.line-premium { --line-color: var(--line-premium); }
.line-complementos { --line-color: var(--line-complementos); }

.catalog-meta { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.93); padding: 11px 14px; box-shadow: 0 5px 15px rgba(3,26,52,.05); font-size: 0.78rem; }
.result-counts { white-space: nowrap; }
.result-counts strong { color: var(--navy); font-size: 0.95rem; }
.data-notices { display: flex; justify-content: center; gap: 8px 18px; color: var(--muted); }
.data-notices span { white-space: nowrap; }
.kit-rule { display: flex; align-items: center; gap: 12px; margin-top: 10px; border: 1px solid #b9d6ef; border-left: 5px solid var(--blue); border-radius: 12px; background: #eef7ff; padding: 11px 14px; color: #29445c; font-size: .82rem; line-height: 1.4; }
.kit-rule strong { flex: 0 0 auto; color: var(--navy-deep); font-size: .78rem; letter-spacing: .035em; text-transform: uppercase; }
.kit-rule b { color: var(--navy-deep); }
.close-sections, .import-message button { min-height: 34px; border-color: var(--line); background: white; color: var(--navy); padding: 0 11px; font-size: 0.74rem; }
.import-message { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; border: 1px solid #a9d4bf; border-radius: 10px; background: #edf9f2; padding: 10px 13px; color: #155d3e; font-size: 0.8rem; }
.import-message.is-error { border-color: #efb4bb; background: #fff0f2; color: #9d1830; }

.catalog-content { min-height: 52vh; padding: 18px 0 28px; }
.commercial-line { --line-color: var(--navy); margin-bottom: 18px; scroll-margin-top: 160px; }
.line-heading { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 14px; min-height: 80px; border-left: 6px solid var(--line-color); border-radius: 13px 13px 0 0; background: var(--navy-deep); color: white; padding: 12px 16px 12px 12px; }
.line-number { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 12px; background: color-mix(in srgb, var(--line-color) 40%, transparent); font-size: 1rem; font-weight: 950; }
.line-heading h2, .line-heading span { margin: 0; }
.line-copy { min-width: 0; text-align: center; }
.line-heading h2 { font-size: 1.35rem; letter-spacing: -.025em; }
.line-heading span { display: block; margin-top: 3px; color: #c8d8e6; font-size: 0.79rem; }
.line-heading aside { display: flex; align-items: center; gap: 7px; color: #d9e4ed; font-size: 0.76rem; }
.line-heading aside strong { color: white; font-size: 1.2rem; }
.line-heading aside b { margin-left: 7px; border-radius: 999px; background: var(--line-color); padding: 5px 9px; color: white; font-size: 0.7rem; }
.line-spacer { width: 48px; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); align-items: start; gap: 1px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 13px 13px; overflow: hidden; background: var(--line); box-shadow: var(--shadow); }
.brand-grid:has(.brand-card.is-expanded) { display: block; }
.brand-grid:has(.brand-card.is-expanded) .brand-card:not(.is-expanded) { display: none; }
.brand-card { min-width: 0; background: white; }
.brand-card.is-expanded { grid-column: 1 / -1; }
.brand-toggle { display: grid; grid-template-columns: 112px minmax(0,1fr) auto; grid-template-rows: auto auto; width: 100%; min-height: 112px; border: 0; background: white; padding: 10px 13px 10px 10px; color: var(--ink); text-align: left; }
.brand-toggle:hover { background: color-mix(in srgb, var(--line-color) 5%, white); }
.brand-photo { display: grid; grid-row: 1 / 3; width: 100px; height: 90px; place-items: center; align-self: center; overflow: hidden; border: 1px solid color-mix(in srgb, var(--line-color) 22%, #d7e0e7); border-radius: 10px; background: linear-gradient(145deg, color-mix(in srgb, var(--line-color) 5%, white), #f7f9fa); }
.brand-photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 3px; filter: drop-shadow(0 3px 4px rgba(3,26,52,.12)); }
.brand-title { display: grid; grid-column: 2; min-width: 0; align-content: start; padding-top: 2px; }
.brand-title small { color: var(--line-color); font-size: 0.68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.brand-title strong { margin-top: 3px; overflow: hidden; color: var(--navy); font-size: 1.08rem; line-height: 1.08; text-overflow: ellipsis; white-space: nowrap; }
.brand-title em { margin-top: 6px; color: var(--muted); font-size: 0.72rem; font-style: normal; font-weight: 700; }
.brand-stats { display: grid; grid-column: 3; gap: 5px; justify-items: end; align-content: start; padding-top: 2px; color: var(--muted); font-size: 0.67rem; text-align: right; }
.brand-stats b { display: block; color: var(--ink); font-size: 0.75rem; }
.brand-action { display: flex; grid-column: 2 / 4; align-items: center; justify-content: space-between; align-self: end; margin-top: 6px; border-top: 1px solid var(--line); padding-top: 7px; color: var(--navy); font-size: 0.77rem; font-weight: 900; }
.brand-action b { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: var(--line-color); color: white; font-size: 1rem; }
.brand-card.is-expanded .brand-toggle { grid-template-columns: 96px minmax(240px, 430px) minmax(170px, 230px) minmax(150px, 1fr); grid-template-rows: 1fr; min-height: 96px; border-left: 6px solid var(--line-color); background: linear-gradient(100deg, color-mix(in srgb, var(--line-color) 7%, white), white 48%); padding: 9px 14px 9px 10px; }
.brand-card.is-expanded .brand-toggle:hover { background: linear-gradient(100deg, color-mix(in srgb, var(--line-color) 10%, white), white 48%); }
.brand-card.is-expanded .brand-photo { grid-column: 1; grid-row: 1; width: 84px; height: 76px; }
.brand-card.is-expanded .brand-title { grid-column: 2; grid-row: 1; align-content: center; padding: 0 18px 0 2px; }
.brand-card.is-expanded .brand-title strong { font-size: 1.2rem; }
.brand-card.is-expanded .brand-title em { margin-top: 5px; }
.brand-card.is-expanded .brand-stats { grid-column: 3; grid-row: 1; min-width: 170px; align-content: center; gap: 4px; border-right: 1px solid var(--line); padding: 0 20px 0 10px; }
.brand-card.is-expanded .brand-stats b { font-size: 0.82rem; }
.brand-card.is-expanded .brand-action { grid-column: 4; grid-row: 1; align-self: center; justify-content: flex-end; gap: 12px; margin: 0; border: 0; padding: 0 0 0 16px; white-space: nowrap; }
.brand-card.is-expanded .brand-action b { background: var(--navy); }
.brand-details { display: none; grid-template-columns: minmax(0,1fr); gap: 10px; border-top: 4px solid var(--line-color); background: #eef3f6; padding: 12px; }
.brand-details.is-visible { display: grid; }
.brand-detail-actions { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 14px; border: 0; border-radius: 9px; background: var(--navy); padding: 8px 9px 8px 13px; color: #d5e1eb; font-size: .76rem; }
.brand-detail-actions button { min-height: 36px; border: 1px solid color-mix(in srgb, var(--line-color) 55%, white); border-radius: 8px; background: var(--line-color); padding: 0 13px; color: white; font-size: .75rem; font-weight: 850; }
.brand-detail-actions button:hover { background: var(--blue); }
.product-block { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: white; }
.brand-details > .product-block:last-child:nth-of-type(odd) { grid-column: 1 / -1; }
.product-block > summary { display: grid; grid-template-columns: minmax(0,1fr) auto 26px; align-items: center; gap: 12px; min-height: 46px; background: color-mix(in srgb, var(--line-color) 6%, white); padding: 9px 11px; list-style: none; cursor: pointer; }
.product-block > summary::-webkit-details-marker { display: none; }
.product-block[open] > summary { border-bottom: 1px solid var(--line); }
.product-block summary > b { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--line-color); color: white; font-size: 1rem; line-height: 1; transition: transform 150ms ease; }
.product-block[open] summary > b { transform: rotate(45deg); }
.product-block h3 { margin: 0; color: var(--navy); font-size: 0.88rem; line-height: 1.15; }
.product-block summary span { flex: none; color: var(--muted); font-size: 0.67rem; font-weight: 750; }
.sku-table-wrap { width: 100%; overflow: hidden; }
.sku-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 0.76rem; }
.sku-table th { background: #f3f6f8; color: #4f6273; padding: 7px 8px; font-size: 0.64rem; letter-spacing: .025em; text-align: left; text-transform: uppercase; }
.sku-table td { border-top: 1px solid #e5ebef; padding: 7px 8px; vertical-align: middle; }
.sku-table tbody tr:hover { background: #f7fafb; }
.sku-table th:first-child, .sku-table td:first-child { width: 8%; }
.sku-table th:nth-child(2), .sku-table td:nth-child(2) { width: 13%; }
.sku-table th:nth-child(3), .sku-table td:nth-child(3) { width: auto; overflow-wrap: anywhere; }
.sku-table th:nth-child(4), .sku-table td:nth-child(4) { width: 10%; }
.sku-table th:nth-child(5), .sku-table td:nth-child(5), .sku-table th:nth-child(6), .sku-table td:nth-child(6) { width: 8%; text-align: center; }
.sku-table th:last-child, .sku-table td:last-child { width: 11%; text-align: right; }
.sku-table code { color: var(--navy); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.76rem; font-weight: 900; }
.sku-table abbr { margin-left: 3px; color: #c80020; font-size: 0.95rem; font-weight: 950; text-decoration: none; }
.sku-table td:last-child strong { color: #d71920; font-size: 0.8rem; white-space: nowrap; }
.empty-state { display: grid; gap: 7px; max-width: 640px; margin: 40px auto; border: 1px solid var(--line); border-radius: 14px; background: white; padding: 38px; text-align: center; box-shadow: var(--shadow); }
.empty-state span { color: var(--muted); font-size: 0.88rem; }
.catalog-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px 18px; margin-bottom: 28px; border-radius: 11px; background: var(--navy-deep); color: white; padding: 13px 15px; font-size: 0.75rem; }
.catalog-footer strong { color: var(--kit-accent); }

@media (max-width: 1180px) {
  .toolbar { grid-template-columns: auto 1fr; }
  .export-actions { grid-column: 1 / -1; }
  .line-nav { grid-template-columns: repeat(3, 1fr); }
  .catalog-meta { grid-template-columns: 1fr auto; }
  .data-notices { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; flex-wrap: wrap; }
  .brand-grid { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
}

@media (max-width: 760px) {
  .control-deck { position: static; }
  .topbar, .toolbar, .line-nav, .catalog-meta, .kit-rule, .import-message, .catalog-content, .catalog-footer { width: min(100% - 20px, 1500px); }
  .topbar { grid-template-columns: 96px 1fr auto; gap: 10px; min-height: 70px; }
  .brand-logo { width: 92px; height: 44px; }
  .brand-copy h1 { font-size: 1.25rem; }
  .brand-copy > p:last-child { display: none; }
  .state-badge { min-width: 50px; height: 38px; padding: 0 9px; }
  .toolbar, .catalog-meta { grid-template-columns: 1fr; }
  .kit-tabs, .export-actions { display: grid; grid-template-columns: repeat(3,1fr); }
  .export-actions { grid-column: auto; grid-template-columns: repeat(2,1fr); }
  .search-box { grid-row: 2; }
  .line-nav { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .line-nav button { min-height: 62px; }
  .data-notices { grid-column: auto; grid-row: auto; }
  .kit-rule { align-items: flex-start; flex-direction: column; gap: 4px; }
  .line-heading { grid-template-columns: 44px 1fr; gap: 10px; padding: 11px; }
  .line-number { width: 40px; height: 40px; }
  .line-heading h2 { font-size: 1.15rem; }
  .line-heading aside { grid-column: 2; justify-content: flex-start; }
  .line-spacer { display: none; }
  .brand-grid, .brand-details.is-visible { grid-template-columns: 1fr; }
  .brand-card.is-expanded { grid-column: span 1; }
  .account-area { gap: 5px; }
  .access-badge { display: none; }
  .brand-toggle { grid-template-columns: 88px minmax(0,1fr); grid-template-rows: auto auto auto; min-height: 112px; padding: 9px; }
  .brand-photo { grid-row: 1 / 4; width: 78px; height: 88px; }
  .brand-title { grid-column: 2; grid-row: 1; }
  .brand-stats { grid-column: 2; grid-row: 2; grid-template-columns: 1fr 1fr; justify-items: start; margin-top: 4px; text-align: left; }
  .brand-stats b { display: inline; }
  .brand-action { grid-column: 2; grid-row: 3; margin-top: 5px; }
  .brand-card.is-expanded .brand-toggle { grid-template-columns: 82px minmax(0,1fr) auto; grid-template-rows: auto auto; min-height: 102px; border-left-width: 4px; padding: 8px 9px; }
  .brand-card.is-expanded .brand-photo { grid-column: 1; grid-row: 1 / 3; width: 72px; height: 82px; }
  .brand-card.is-expanded .brand-title { grid-column: 2; grid-row: 1; align-content: end; padding: 0 8px 0 0; }
  .brand-card.is-expanded .brand-title strong { font-size: 1.05rem; }
  .brand-card.is-expanded .brand-stats { grid-column: 2; grid-row: 2; min-width: 0; align-content: start; justify-items: start; border: 0; padding: 4px 8px 0 0; text-align: left; }
  .brand-card.is-expanded .brand-action { grid-column: 3; grid-row: 1 / 3; align-self: stretch; flex-direction: column; justify-content: center; gap: 7px; padding-left: 8px; font-size: .7rem; white-space: normal; text-align: center; }
  .brand-detail-actions { align-items: stretch; flex-direction: column; }
  .brand-detail-actions button { width: 100%; }
  .sku-table, .sku-table tbody { display: block; }
  .sku-table thead { display: none; }
  .sku-table tbody { padding: 8px; }
  .sku-table tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); margin-bottom: 8px; overflow: hidden; border: 1px solid #d9e3ea; border-radius: 9px; background: white; }
  .sku-table tbody tr:last-child { margin-bottom: 0; }
  .sku-table td { display: grid; width: auto !important; min-width: 0; gap: 3px; border-top: 0; border-right: 1px solid #e5ebef; padding: 8px 9px; text-align: left !important; }
  .sku-table td::before { content: attr(data-label); color: #687b8c; font-size: .58rem; font-weight: 850; letter-spacing: .035em; text-transform: uppercase; }
  .sku-table td:nth-child(3) { grid-column: 1 / -1; grid-row: 1; border-bottom: 1px solid #e5ebef; border-right: 0; background: #f5f8fa; color: var(--navy); font-size: .8rem; font-weight: 800; }
  .sku-table td:nth-child(1), .sku-table td:nth-child(2), .sku-table td:nth-child(4) { grid-row: 2; }
  .sku-table td:nth-child(5), .sku-table td:nth-child(6), .sku-table td:nth-child(7) { grid-row: 3; }
  .sku-table td:nth-child(4), .sku-table td:nth-child(7) { border-right: 0; }
  .sku-table td:nth-child(7) { background: #fff5f5; }
  .sku-table td:last-child strong { font-size: .9rem; }
}

@page { size: A4 landscape; margin: 8mm; }

@media print {
  html, body { background: white !important; color: #111f2d; }
  .screen-only, .catalog-content, .catalog-footer { display: none !important; }
  .print-only { display: none; }
  .blocked-print-message { width: 100%; margin: 25mm auto; border: 1px solid #aebdca; padding: 12mm; color: #243b53; font: 700 14pt/1.4 Inter, sans-serif; text-align: center; }
  .role-admin .blocked-print-message { display: none !important; }
  body.role-admin:not(.print-brand) .catalog-content { display: block !important; }
  .print-brand .blocked-print-message { display: none !important; }
  .print-brand .brand-print-sheet { display: block !important; }
  .brand-print-sheet { width: 100%; background: white; }
  .brand-print-sheet > header { display: flex; align-items: end; justify-content: space-between; gap: 12mm; margin-bottom: 4mm; border-bottom: 1.2mm solid #173f68; padding: 0 0 3mm; }
  .brand-print-sheet > header span { color: #52697d; font-size: 7pt; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
  .brand-print-sheet h1 { margin: 1mm 0 0; color: #102a43; font-size: 18pt; line-height: 1; }
  .brand-print-meta { display: grid; justify-items: end; gap: 1mm; }
  .brand-print-meta strong { color: #102a43; font-size: 10pt; }
  .brand-print-meta span { letter-spacing: 0 !important; text-transform: none !important; }
  .brand-print-sheet > main { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 3mm; }
  .brand-print-product { min-width: 0; break-inside: avoid; border: .25mm solid #cbd7e0; border-radius: 1.5mm; overflow: hidden; }
  .brand-print-product h2 { margin: 0; border-bottom: .25mm solid #cbd7e0; background: #eef3f6; padding: 1.5mm 2mm; color: #102a43; font-size: 7pt; }
  .brand-print-sheet .sku-table { min-width: 0; font-size: 5.6pt; }
  .brand-print-sheet .sku-table th { padding: 1mm 1.2mm; font-size: 4.6pt; }
  .brand-print-sheet .sku-table td { padding: .85mm 1.2mm; }
  .brand-print-sheet .sku-table th:first-child, .brand-print-sheet .sku-table td:first-child { width: 16mm; }
  .brand-print-sheet .sku-table th:nth-child(2), .brand-print-sheet .sku-table td:nth-child(2) { width: 21mm; }
  .brand-print-sheet .sku-table th:nth-child(4), .brand-print-sheet .sku-table td:nth-child(4) { width: 17mm; }
  .brand-print-sheet .sku-table th:nth-child(5), .brand-print-sheet .sku-table td:nth-child(5), .brand-print-sheet .sku-table th:nth-child(6), .brand-print-sheet .sku-table td:nth-child(6) { width: 12mm; }
  .brand-print-sheet .sku-table th:last-child, .brand-print-sheet .sku-table td:last-child { width: 19mm; }
  .brand-print-sheet .sku-table code { font-size: 5.3pt; }
  .brand-print-sheet .sku-table td:last-child strong { color: #d71920; font-size: 5.5pt; }
  .brand-print-sheet > footer { margin-top: 3mm; border-top: .25mm solid #cbd7e0; padding-top: 2mm; color: #52697d; font-size: 5.5pt; }
}

@media screen {
  .role-consultation .sku-table,
  .role-consultation .brand-stats { user-select: none; -webkit-user-select: none; }
}
