/* Dedicated component catalogue. Reference-admin layout with semantic ERP tokens. */
:root{--bg:#f3f4f6;--ink:#172033;--muted:#60718b;--line:#dfe5ee;--blue:#245cf3;--blue-soft:#e9efff;--green:#087f65;--red:#bd284b;--amber:#946000;--radius:10px;--duration-fast:120ms;--duration-normal:180ms;--duration-enter:240ms;--duration-page:320ms}
body.catalog aside{top:64px;padding:16px 18px 12px;width:256px;overflow:hidden;gap:0}body.catalog .shell{margin-left:256px;padding-top:64px}body.catalog header{inset:0 0 auto;height:64px;padding:0 20px;gap:16px}body.catalog main{padding:28px 24px;max-width:none}body.catalog .brand{font-size:18px;letter-spacing:-.5px;padding:0;gap:9px}.catalog .brand-icon{width:30px;height:30px;border-radius:7px;font-size:21px}.catalog .breadcrumb{font-size:12px}.catalog .global-search{margin:auto;width:min(360px,28vw)}body.catalog .menu-search{margin:0 0 10px;min-height:34px;background:#f3f3f5;border:1px solid var(--line);border-radius:6px;padding:0 10px}.catalog .menu-search input{width:100%;border:0;min-width:0}.catalog #nav{overflow:auto;flex:1;padding:4px 4px 24px 0;scrollbar-width:thin}.cat-group{padding:12px 0 6px;border-top:1px solid var(--line);margin-top:8px}.cat-group>summary{font-size:11px;letter-spacing:1.5px;font-weight:700;color:var(--muted);padding:6px 10px 10px;cursor:pointer;list-style:none;display:flex;justify-content:space-between}.cat-group>summary:after{content:'⌄'}.cat-group:not([open])>summary:after{content:'›'}.catalog .cat-link{display:flex;align-items:center;gap:10px;width:100%;min-height:35px;padding:7px 12px;background:none;border:0;border-radius:6px;color:var(--ink);text-align:left;font-size:13px;font-weight:500;position:relative;margin:2px 0}.cat-link svg{width:16px;height:16px;color:var(--muted)}.catalog .cat-link:hover{background:var(--soft)}.catalog .cat-link.active{background:var(--blue-soft);color:var(--blue)}.cat-link.active:before{content:'';position:absolute;left:0;height:20px;width:3px;background:var(--blue);border-radius:3px}.cat-link.active svg{color:var(--blue)}.cat-link small{margin-left:auto;color:var(--muted);font-size:10px}.catalog .sidebar-bottom{padding-top:12px;margin-top:auto;border-top:1px solid var(--line)}.catalog .sidebar-bottom p{font-size:11px;color:var(--muted);padding:10px 4px 0}.catalog .density-switch{margin:0}.catalog h1{font-size:24px;letter-spacing:-.6px;font-weight:700}.catalog h2{font-size:20px;letter-spacing:-.3px}.catalog h3{font-size:16px;letter-spacing:-.2px;font-weight:700}.catalog .page-heading{margin-bottom:24px}.catalog .page-heading p{max-width:850px;font-size:14px;margin-top:6px;color:var(--muted)}.catalog .overline{font-size:10px;letter-spacing:1.5px;color:var(--blue);margin-bottom:7px}.catalog .card{border-radius:10px;box-shadow:0 2px 5px #10244a03}.catalog .pad{padding:24px}.catalog .two-col{gap:20px}.catalog .system-tabs,.catalog .reference-note,.catalog .library-summary,.catalog #overview,.catalog #orders{display:none!important}.catalog .catalog-panel{animation:catalog-enter var(--duration-enter) var(--ease)}.catalog footer{margin-top:32px}.catalog footer a{display:none}.catalog .button{font-weight:500;min-height:34px;border-radius:6px}.catalog .button.primary{background:var(--blue);border-color:var(--blue);color:#fff}.catalog .button.primary:hover{background:#174bd1}.catalog .button.soft{color:var(--blue);background:var(--blue-soft);border-color:transparent}.catalog .button.ghost{border-color:transparent;background:transparent}.catalog .button.success-button{background:#087f65;color:white;border-color:#087f65}.catalog .button.danger-button{background:#bd284b;color:white;border-color:#bd284b}.catalog .button.large{min-height:44px;padding:10px 20px}.catalog .button.small{min-height:28px;font-size:12px;padding:4px 10px}.catalog .button.pressed{box-shadow:inset 0 2px 4px #0003;transform:translateY(1px)}.catalog .button.focus-demo{outline:3px solid #94b7ff;outline-offset:3px}.catalog .button:hover{transform:none}.catalog .variant-row{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:22px 0;border-bottom:1px solid var(--line)}.variant-row:last-child{border:0}.variant-label{width:130px;color:var(--muted);font-size:12px;flex-shrink:0}.catalog .section-note{color:var(--muted);font-size:13px;margin:8px 0 20px;max-width:800px}.token-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.token-tile{border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--surface)}.token-color{height:90px;padding:16px;font-weight:500}.token-tile p{padding:12px 14px;font-size:12px}.token-tile p strong{display:block;color:var(--ink)}.type-spec{display:grid;grid-template-columns:190px 1fr;gap:20px;padding:22px 0;border-bottom:1px solid var(--line);align-items:center}.type-spec small{color:var(--muted)}.type-spec p{color:var(--ink);line-height:1.3}.icon-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:12px}.icon-cell{padding:20px 8px;border:1px solid var(--line);border-radius:8px;display:grid;justify-items:center;gap:10px;font-size:11px;color:var(--muted)}.motion-stage{height:140px;display:grid;place-items:center;background:var(--soft);border:1px dashed var(--line);border-radius:8px;margin:20px 0}.motion-object{background:var(--blue);color:white;border-radius:10px;padding:18px 28px;box-shadow:0 8px 25px #245cf326}.motion-object.play{animation:catalog-enter var(--demo-duration,240ms) var(--ease)}.spinner{width:14px;height:14px;display:inline-block;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:cat-spin .8s linear infinite}.catalog .ref-card{overflow:hidden;padding:0;border-radius:12px}.ref-toolbar,.ref-quick,.ref-views{display:flex;gap:8px;align-items:center;padding:10px 16px;border-bottom:1px solid var(--line);flex-wrap:wrap}.ref-toolbar input{width:300px;background:#f3f3f5;min-height:32px}.ref-toolbar select{min-height:32px;padding:5px 10px;background:#f3f3f5}.ref-toolbar .button{min-height:32px;padding:5px 10px}.ref-toolbar .icon-button{height:32px;width:32px;border:1px solid var(--line);border-radius:5px}.ref-quick,.ref-views{min-height:45px;font-size:12px;color:var(--muted)}.ref-quick .chip,.ref-views .chip{border-radius:18px;padding:5px 12px;font-size:12px;min-height:28px}.ref-views .text-button{font-size:12px}.ref-scroll{overflow:auto}.ref-scroll.pinned{max-height:470px}.catalog .ref-table{width:100%;min-width:1320px;border-collapse:separate;border-spacing:0;font-size:14px}.catalog .ref-table th{background:var(--surface);font-size:14px;letter-spacing:0;text-transform:none;color:#717171;font-weight:500;padding:13px 10px;position:sticky;top:0;z-index:1;border-bottom:2px solid var(--line);white-space:nowrap;text-align:left}.ref-table th button{background:none;border:0;color:inherit;font:inherit;padding:0;display:inline-flex;gap:6px;align-items:center}.ref-table th svg{width:12px;height:12px;color:#8793a4}.catalog .ref-table td{padding:9px 10px;height:62px;border-bottom:1px solid #e3e3e5;white-space:nowrap;font-size:14px;color:var(--ink)}.ref-table tr:nth-child(even){background:#fafafa}.ref-table tr.unpaid{background:#fff2f4}.ref-table tr.unpaid td:first-child{border-left:3px solid #ff3768}.ref-table tbody tr:hover{background:var(--blue-soft)}.ref-table td:first-child,.ref-table th:first-child{width:46px;border-right:1px solid var(--line);text-align:center}.ref-table input[type=checkbox]{width:16px;height:16px;accent-color:var(--blue)}.ref-table small{font-size:12px;color:#536b91;display:block;margin-top:3px}.ref-table .ref-num{font-variant-numeric:tabular-nums;text-align:right}.ref-table .ref-badge{display:inline-flex;gap:6px;align-items:center;background:#f4f4f5;color:#171717;padding:3px 8px;border-radius:5px;font-size:12px;white-space:nowrap}.ref-badge i{height:6px;width:6px;border-radius:50%;background:var(--green)}.ref-product{display:flex;gap:12px;align-items:center;min-width:270px}.ref-thumb{width:48px;height:48px;background:#eef3f9;border:1px solid #dce5ef;border-radius:3px;display:grid;place-items:center;color:#6c819f;flex-shrink:0}.ref-thumb svg{width:28px;height:28px}.ref-toggle{appearance:none;width:40px;height:20px;background:#cbd5e3;border-radius:12px;position:relative;border:0;cursor:pointer;vertical-align:middle}.ref-toggle:checked{background:#10b981}.ref-toggle:before{content:'';position:absolute;width:16px;height:16px;left:2px;top:2px;background:white;border-radius:50%;transition:transform 120ms}.ref-toggle:checked:before{transform:translateX(20px)}.ref-actions{display:flex;gap:12px}.ref-actions button{border:0;background:none;color:#425975;padding:3px}.ref-actions button:last-child{color:#ec174c}.ref-actions svg{width:16px;height:16px}.ref-footer{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:14px 16px;font-size:12px;color:var(--muted)}.ref-pages{display:flex;gap:4px}.ref-pages button{min-width:30px;height:30px;background:var(--surface);border:1px solid var(--line);border-radius:5px;color:var(--ink)}.ref-pages .active{background:var(--blue);color:white}.ref-bulk{background:var(--blue-soft);padding:10px 16px;display:flex;gap:14px;align-items:center}.ref-filters{padding:16px;background:var(--soft);display:flex;gap:16px;align-items:end}.ref-filters label{display:grid;gap:6px}.ref-empty{text-align:center!important;padding:60px!important}.catalog .ref-table th{resize:horizontal;overflow:auto;min-width:80px}.catalog .ref-table th:first-child{min-width:46px}.catalog .ref-card.expanded{position:fixed;inset:78px 20px 20px;z-index:40;background:var(--surface);overflow:auto;box-shadow:0 12px 80px #0004}.catalog.compact .ref-table td{height:44px;padding-top:5px;padding-bottom:5px}.catalog.compact .ref-thumb{width:32px;height:32px}.catalog .catalog-panel[hidden]{display:none}.catalog.collapsed aside{transform:translateX(-100%)}.catalog.collapsed .shell{margin-left:0}.catalog aside,.catalog .shell{transition:transform 180ms var(--ease),margin-left 180ms var(--ease)}.catalog .color-line{height:5px;background:linear-gradient(90deg,#245cf3 0 45%,#087f65 45% 70%,#946000 70% 85%,#bd284b 85%)}.catalog .state-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.catalog .input-invalid{border-color:var(--red);background:#fff5f7}.catalog .input-valid{border-color:var(--green)}.catalog .size-bar{height:12px;background:var(--blue);border-radius:3px}.catalog .header-tools{gap:8px}.catalog .font-tools{display:flex;border:1px solid var(--line);border-radius:5px;padding:2px}.font-tools button{background:none;border:0;padding:3px 8px;color:var(--muted)}.font-tools button[aria-pressed=true]{background:var(--soft);color:var(--ink);font-weight:700}.catalog .global-search input{border:0;background:none;min-width:0;width:100%;height:30px}.catalog .header-caption{font-size:11px;color:var(--muted)}
@keyframes catalog-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes cat-spin{to{transform:rotate(360deg)}}
[data-theme=dark] .ref-table tr:nth-child(even){background:#1d293b}[data-theme=dark] .ref-table tr.unpaid{background:#3b2332}[data-theme=dark] .ref-table .ref-badge{background:#293448;color:#f1f5f9}[data-theme=dark] .ref-toolbar input,[data-theme=dark] .ref-toolbar select,[data-theme=dark] .menu-search{background:var(--soft)}[data-theme=dark] .ref-table td{border-color:var(--line)}[data-theme=dark] .ref-table th{color:var(--muted)}
@media(max-width:1100px){.catalog .breadcrumb,.catalog .header-caption{display:none}.token-grid{grid-template-columns:repeat(2,1fr)}.catalog .global-search{width:240px}.catalog .two-col{grid-template-columns:1fr}}
@media(max-width:700px){body.catalog aside{position:fixed;margin:0;top:64px;bottom:0;width:256px;transform:translateX(-100%);box-shadow:8px 0 30px #0002}body.catalog.collapsed aside{transform:translateX(0)}body.catalog .shell,body.catalog.collapsed .shell{margin:0;padding-top:64px}body.catalog main{padding:20px 14px}.catalog header .brand{font-size:15px}.catalog .global-search,.catalog .font-tools,.catalog .header-caption{display:none}.catalog .header-tools{margin-left:auto}.catalog .page-heading{align-items:start;gap:12px;flex-wrap:wrap}.catalog .state-grid{grid-template-columns:1fr}.type-spec{grid-template-columns:1fr}.variant-label{width:100%}.catalog .pad{padding:18px}.catalog .nav-label{display:block}.ref-footer{align-items:start;flex-direction:column}.ref-toolbar input{width:100%}.catalog .ref-table{min-width:1250px}.catalog footer{flex-wrap:wrap}.catalog .density-switch{display:flex}.catalog .cat-link{font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}}body.reduce-motion *,body.reduce-motion *::before{animation-duration:.01ms!important;transition-duration:.01ms!important;animation-iteration-count:1!important}
/* Keep switch dimensions independent of generic table checkboxes and search inputs. */
.catalog .ref-toolbar input.ref-toggle,.catalog .ref-table input.ref-toggle{appearance:none;width:40px!important;min-width:40px;max-width:40px;height:20px!important;min-height:20px;padding:0;background:#cbd5e3;border:0;border-radius:12px;box-shadow:none}.catalog .ref-toolbar input.ref-toggle:checked,.catalog .ref-table input.ref-toggle:checked{background:#10b981}.catalog .ref-table a{color:var(--blue)}.catalog .ref-table th{resize:none;overflow:visible}.catalog .ref-table th .col-resizer{position:absolute;right:0;top:8px;bottom:8px;width:6px;cursor:col-resize;border:0;background:transparent;padding:0}.catalog .ref-table th .col-resizer:hover,.catalog .ref-table th .col-resizer:focus-visible{background:var(--blue-soft);border-right:2px solid var(--blue)}.catalog .catalog-panel>.card+.card{margin-top:20px}.catalog .ref-toolbar input[type=search]{background:#f3f3f5}.catalog .ref-table tbody tr:has(input[data-select]:checked){background:var(--blue-soft)}.catalog .ref-table th:first-child input,.catalog .ref-table td:first-child input{appearance:none;border:1px solid #c3d1e5;border-radius:3px;background:var(--surface);position:relative}.catalog .ref-table input[data-select]:checked,.catalog .ref-table input[data-select-all]:checked{background:var(--blue);border-color:var(--blue)}.catalog .ref-table input[data-select]:checked:after,.catalog .ref-table input[data-select-all]:checked:after{content:'✓';color:white;position:absolute;left:2px;top:-3px;font-size:13px}.catalog .ref-table input:indeterminate{background:var(--blue)}.catalog .ref-table input:indeterminate:after{content:'−';color:white;position:absolute;left:3px;top:-4px}.catalog .reference-note{display:none}.catalog .catalog-panel .card{min-width:0}.catalog .cat-tabs{display:flex;gap:20px;border-bottom:1px solid var(--line)}.cat-tabs button{padding:12px 3px;background:none;border:0;border-bottom:2px solid transparent;color:var(--muted)}.cat-tabs button[aria-selected=true]{color:var(--blue);border-color:var(--blue)}.catalog .error{color:var(--red)}.catalog .field small{font-size:12px}.catalog .button:active{transform:translateY(1px)}.catalog .dialog[open]{animation:catalog-enter 240ms var(--ease)}.catalog .dialog::backdrop{background:#13213b60;backdrop-filter:blur(2px)}
.catalog .section-note,.catalog p,.catalog .field,.catalog input,.catalog select,.catalog textarea,.catalog .ref-table td,.catalog .ref-table th,.catalog .button{font-size:var(--user-font,14px)}.catalog .section-note{font-size:var(--user-font,13px)}.catalog .card .muted{color:var(--muted)}
.catalog .ref-table a strong{color:inherit}.catalog .ref-quick .chip{color:var(--ink);font-weight:500}.catalog .ref-quick .chip.active{color:var(--blue)}.catalog .ref-toolbar input[type=search]{padding-left:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23758192' stroke-width='1.6'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cpath d='m15 15 6 6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:10px center}#catalog-products-table .ref-toolbar input[type=search]{width:256px}#catalog-orders-table .ref-toolbar input[type=search]{width:384px;max-width:100%}.catalog button,.catalog input,.catalog select,.catalog textarea{transition-duration:var(--duration-fast)}
@media(max-width:700px){.catalog .ref-toolbar input[type=search]{max-width:100%}.catalog .button,.catalog .icon-button{min-height:40px}.catalog .cat-link{min-height:40px}}
