.sidebar nav { overflow: auto; }
.nav-parent { color:#b9c4d5; padding:11px 13px; border-radius:10px; font-size:14px; font-weight:600; display:flex; gap:12px; align-items:center; width:100%; border:0; background:transparent; cursor:pointer; text-align:left; }
.nav-parent span { width:20px; text-align:center; }
.nav-parent b { margin-left:auto; transition:.2s; }
.nav-parent:hover,.nav-parent.active { background:#183759; color:#fff; }
.nav-parent.active { box-shadow:inset 3px 0 #60a5fa; }
.nav-group.open .nav-parent b { transform:rotate(180deg); }
.submenu { display:none; padding:5px 0 5px 43px; }
.nav-group.open .submenu { display:grid; }
.submenu a { color:#9fb0c6!important; padding:7px 9px!important; border-radius:0!important; border-left:1px solid #29425f; font-size:11px!important; }
.submenu a:hover,.submenu a.active { color:#0f3b66!important; border-left-color:#2563eb; background:#eaf2fb!important; box-shadow:none!important; }
.heading-actions { display:flex; gap:9px; }
.filters { grid-template-columns:minmax(250px,1.5fr) repeat(5,minmax(125px,1fr)) auto; }
.table-tools { display:flex; justify-content:space-between; align-items:center; padding:10px 16px; border-bottom:1px solid var(--line); background:#fafbfc; }
.table-tools>div { display:flex; gap:6px; flex-wrap:wrap; }
.tool-button { border:1px solid var(--line); background:#fff; border-radius:7px; padding:7px 10px; font-size:10px; font-weight:700; color:#475569; cursor:pointer; }
.table-tools select { min-height:30px; font-size:10px; }
.table-wrap table { min-width:1180px; }
.article-cell { min-width:210px; }
.product-thumb { width:38px; height:38px; flex:0 0 38px; border-radius:9px; background:linear-gradient(145deg,#fff,#edf1f6); box-shadow:inset 0 0 0 1px #dfe5ed; display:grid; place-items:center; }
.product-thumb i { width:19px; height:24px; border-radius:3px 3px 6px 6px; background:var(--product-color); clip-path:polygon(12% 0,38% 0,42% 13%,58% 13%,62% 0,88% 0,100% 26%,82% 43%,82% 100%,18% 100%,18% 43%,0 26%); }
.cell-note { display:block; color:#94a3b8; font-size:8px; margin-top:3px; white-space:nowrap; }
.status { display:inline-flex; padding:5px 8px; border-radius:999px; font-size:9px; font-weight:800; }
.status.active { background:#ecfdf5; color:#047857; }
.status.draft { background:#fff7ed; color:#c2410c; }
.status.archived { background:#f1f5f9; color:#64748b; }
.hidden { display:none!important; }

.article-view { padding-top:20px; }
.back-link { border:0; background:transparent; color:#475569; font-weight:700; font-size:12px; cursor:pointer; padding:4px 0 12px; }
.back-link:hover { color:var(--blue); }
.article-header-card { background:#fff; border:1px solid var(--line); border-radius:14px; padding:20px 22px; display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:14px; }
.article-hero { display:flex; align-items:center; gap:16px; min-width:0; }
.article-hero-icon { --product-color:#2563eb; width:62px; height:62px; flex:0 0 62px; display:grid; place-items:center; border-radius:16px; background:#f8fafc; border:1px solid var(--line); }
.article-hero-icon i { width:30px; height:38px; border-radius:5px 5px 9px 9px; background:var(--product-color); clip-path:polygon(12% 0,38% 0,42% 13%,58% 13%,62% 0,88% 0,100% 26%,82% 43%,82% 100%,18% 100%,18% 43%,0 26%); }
.article-title-line { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.article-title-line h1 { margin:2px 0 4px; font-size:26px; letter-spacing:-.03em; }
.article-hero p { margin:0; color:var(--muted); font-size:11px; }
.article-hero p strong { color:#334155; }
.product-kpis { display:grid; grid-template-columns:repeat(5,1fr); gap:10px; margin-bottom:14px; }
.product-kpis article { background:#fff; border:1px solid var(--line); border-radius:11px; padding:13px 14px; }
.product-kpis small,.product-kpis strong,.product-kpis em { display:block; }
.product-kpis small { color:var(--muted); font-size:8px; text-transform:uppercase; letter-spacing:.04em; font-weight:700; }
.product-kpis strong { font-size:17px; margin:4px 0 2px; }
.product-kpis em { color:#94a3b8; font-size:8px; font-style:normal; }
.article-shell { background:#fff; border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.article-tabs { padding:0 18px; overflow-x:auto; white-space:nowrap; scrollbar-width:thin; border-bottom:1px solid var(--line); }
.article-tabs button { flex:0 0 auto; padding:14px 13px; }
.article-detail-content { padding:22px; min-height:420px; }

.section-toolbar { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; margin-bottom:16px; }
.section-toolbar h3,.section-title h3 { margin:0 0 4px; font-size:13px; }
.section-toolbar p,.section-title p { margin:0; color:var(--muted); font-size:10px; }
.section-title { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; margin-bottom:7px; padding-bottom:10px; border-bottom:1px solid var(--line); }
.small-action { padding:8px 11px; font-size:10px; white-space:nowrap; }
.mini { padding:6px 8px; font-size:9px; }
.inline-actions { display:flex; gap:8px; }
.full-general { gap:14px; }
.card-section { border:1px solid var(--line); border-radius:11px; padding:15px; background:#fff; }
.full-width { grid-column:1/-1; }
.notes-box { min-height:72px; border:1px dashed #cbd5e1; border-radius:9px; background:#f8fafc; color:#94a3b8; font-size:10px; padding:12px; }
.toggle { display:inline-flex; align-items:center; gap:6px; color:#64748b!important; font-weight:700; }
.toggle i { width:26px; height:14px; border-radius:99px; background:#cbd5e1; position:relative; }
.toggle i:after { content:""; position:absolute; width:10px; height:10px; border-radius:50%; background:white; left:2px; top:2px; box-shadow:0 1px 2px #0002; }
.toggle.on i { background:#10b981; }
.toggle.on i:after { left:14px; }
.variant-summary { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin-bottom:12px; }
.variant-summary span { border:1px solid var(--line); background:#fafbfc; border-radius:9px; padding:10px 12px; }
.variant-summary b,.variant-summary small { display:block; }
.variant-summary b { font-size:12px; }
.variant-summary small { color:#94a3b8; font-size:8px; margin-top:2px; }
.variant-row span small { display:block; color:#94a3b8; font-size:7px; margin-top:3px; }
.variant-actions { display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; }
.cost-strip { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin-bottom:12px; }
.cost-strip>div { border:1px solid var(--line); border-radius:9px; padding:10px 12px; background:#fafbfc; }
.cost-strip small,.cost-strip strong { display:block; }
.cost-strip small { color:#94a3b8; font-size:8px; text-transform:uppercase; }
.cost-strip strong { font-size:13px; margin-top:3px; }
.price-table { border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.price-line { display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:8px; padding:11px 13px; border-bottom:1px solid var(--line); font-size:10px; align-items:center; }
.price-line:last-child { border-bottom:0; }
.price-line.head { background:#f8fafc; color:#64748b; font-size:8px; text-transform:uppercase; font-weight:800; }
.location-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.location-grid article { border:1px solid var(--line); border-radius:10px; padding:13px; background:#fafbfc; }
.location-grid small,.location-grid strong,.location-grid span { display:block; }
.location-grid small { color:#64748b; font-size:9px; font-weight:700; }
.location-grid strong { font-size:22px; margin:4px 0 2px; }
.location-grid span { color:#94a3b8; font-size:8px; }
.big-total { font-weight:800; font-size:12px; color:#047857; background:#ecfdf5; border-radius:999px; padding:7px 10px; }
.subheading { margin:22px 0 8px; font-size:10px; text-transform:uppercase; color:#64748b; letter-spacing:.05em; }
.movement { grid-template-columns:1.15fr .7fr 1.1fr .8fr .45fr; }
.drive-path { background:#f8fafc; border:1px solid var(--line); border-radius:9px; padding:9px 11px; color:#64748b; font-size:9px; margin-bottom:12px; }
.image-grid { display:grid; grid-template-columns:2fr 1fr 1fr; grid-auto-rows:125px; gap:10px; }
.image-placeholder { border:1px dashed #cbd5e1; background:#f8fafc; border-radius:12px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:12px; color:#64748b; }
.image-placeholder.principal { grid-row:span 2; }
.image-placeholder span { font-size:11px; font-weight:800; }
.image-placeholder small { margin-top:5px; font-size:8px; color:#94a3b8; }
.integration-list { display:grid; gap:9px; }
.integration-list article { display:flex; justify-content:space-between; align-items:center; gap:12px; border:1px solid var(--line); border-radius:10px; padding:12px 14px; }
.integration-list article>div { display:flex; align-items:center; gap:9px; }
.integration-list strong,.integration-list small { display:block; }
.integration-list strong { font-size:11px; }
.integration-list small { color:#94a3b8; font-size:8px; margin-top:2px; }
.integration-dot { width:10px; height:10px; border-radius:50%; background:#cbd5e1; box-shadow:0 0 0 4px #f1f5f9; }
.integration-dot.on { background:#10b981; box-shadow:0 0 0 4px #ecfdf5; }
.empty-state { text-align:center; padding:56px 20px; }
.empty-state>span { display:grid; place-items:center; width:48px; height:48px; margin:0 auto 10px; border-radius:14px; background:#eff6ff; color:#2563eb; font-size:22px; }
.empty-state h3 { margin:0 0 5px; }
.empty-state p { color:#64748b; max-width:520px; margin:0 auto 16px; font-size:10px; line-height:1.6; }
.history-card { display:flex; gap:12px; padding:12px 4px; border-bottom:1px solid var(--line); }
.history-dot { width:10px; height:10px; border-radius:50%; background:#2563eb; margin-top:4px; box-shadow:0 0 0 4px #eff6ff; }
.history-card strong,.history-card small { display:block; }
.history-card strong { font-size:11px; }
.history-card small { color:#94a3b8; font-size:8px; margin-top:2px; }
.history-card p { margin:5px 0 0; color:#64748b; font-size:9px; }

@media(max-width:1250px) { .filters { grid-template-columns:repeat(3,1fr); } .search { grid-column:span 2; } .product-kpis{grid-template-columns:repeat(3,1fr)} }
@media(max-width:900px) { .article-header-card{align-items:flex-start;flex-direction:column}.product-kpis{grid-template-columns:repeat(2,1fr)}.location-grid{grid-template-columns:1fr 1fr}.image-grid{grid-template-columns:1fr 1fr}.image-placeholder.principal{grid-row:auto;grid-column:1/-1}.integration-list article{align-items:flex-start;flex-direction:column}.integration-list article>div:last-child{width:100%;justify-content:space-between} }
@media(max-width:720px) { .heading-actions { flex-direction:column; } .table-tools { align-items:flex-start; gap:8px; flex-direction:column; } .section-toolbar{flex-direction:column}.inline-actions{width:100%;flex-wrap:wrap}.price-line{grid-template-columns:1.5fr 1fr 1fr}.price-line span:last-child{display:none}.location-grid{grid-template-columns:1fr 1fr}.variant-summary,.cost-strip{grid-template-columns:1fr}.article-hero-icon{display:none}.article-title-line h1{font-size:22px}.article-detail-content{padding:15px}.product-kpis{grid-template-columns:1fr 1fr}.full-general{grid-template-columns:1fr}.full-width{grid-column:auto} }
