:root{color:#172033;background:#eef1f6;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}.app-shell{display:grid;grid-template-columns:216px minmax(0,1fr);min-height:100vh;background:#eef1f6}.sidebar{display:flex;flex-direction:column;gap:22px;border-right:1px solid #d9dee8;background:#fff;color:#172033;padding:22px 14px}.brand-lockup{display:grid;gap:3px;padding:0 8px 14px;border-bottom:1px solid #edf0f5}.brand-lockup strong{color:#0b54d9;font-size:19px;line-height:1}.brand-lockup span{color:#7b8494;font-size:12px;font-weight:800;letter-spacing:0;text-transform:uppercase}nav{display:grid;gap:6px}.nav-item,.module-list button{display:flex;align-items:center;gap:10px;width:100%;border:0;border-radius:6px;color:inherit;background:transparent;padding:10px;text-align:left}.nav-item{color:#697486;font-weight:800}.nav-item.active,.nav-item:hover{background:#eef5ff;color:#0956dd}.safety-note{display:flex;gap:10px;align-items:flex-start;margin-top:auto;border-top:1px solid #edf0f5;padding:18px 8px 0;color:#596678;font-size:12px;line-height:1.4}.workspace{min-width:0;padding:24px 26px 30px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.eyebrow{margin:0 0 6px;color:#7b8494;font-size:11px;font-weight:900;letter-spacing:0;text-transform:uppercase}h1,h2,h3{margin:0;letter-spacing:0}h1{color:#111827;font-size:24px;line-height:1.1}h2{color:#111827;font-size:17px;line-height:1.2}.topbar-actions,.toolbar-actions{display:flex;align-items:center;gap:10px}.icon-button,.avatar{display:inline-flex;align-items:center;justify-content:center;border:1px solid #d9dee8;background:#fff;color:#637083}.icon-button{width:38px;height:38px;border-radius:50%}.avatar{width:38px;height:38px;border-radius:50%;background:#233ccf;color:#fff;font-size:12px;font-weight:900}.catalogue-panel{overflow:hidden;border:1px solid #dce1eb;border-radius:8px;background:#fff;box-shadow:0 18px 45px #1f293714}.catalogue-toolbar{display:flex;justify-content:space-between;gap:14px;align-items:center;border-bottom:1px solid #e5e9f1;padding:18px}.search-control,.filter-select{display:flex;align-items:center;border:1px solid #d4d9e3;border-radius:6px;background:#fff;color:#8a94a6}.search-control{width:min(430px,100%);padding:0 11px}.search-control input{width:100%;border:0;outline:0;padding:12px 10px}.filter-select{gap:7px;height:42px;padding:0 9px;color:#687386}.filter-select select{-webkit-appearance:none;-moz-appearance:none;appearance:none;min-width:132px;border:0;outline:0;background:transparent;color:#374151;font-weight:800}input,select{color:#172033}.primary-action,.secondary-action{display:inline-flex;gap:8px;align-items:center;justify-content:center;height:42px;border-radius:6px;padding:0 16px;font-weight:900;white-space:nowrap}.primary-action{border:1px solid #0b58e6;background:#0b58e6;color:#fff}.primary-action:hover{border-color:#0847bb;background:#0847bb}.secondary-action{border:1px solid #bdc8da;background:#fff;color:#164ea8}.secondary-action:hover{background:#f3f7ff}.secondary-action:disabled{cursor:not-allowed;border-color:#d9dee8;background:#f7f9fc;color:#9aa4b2}.compact{width:fit-content;height:36px;padding:0 12px;font-size:13px}.quick-create{display:grid;grid-template-columns:170px repeat(4,minmax(130px,1fr));gap:10px;align-items:end;border-bottom:1px solid #e5e9f1;background:#f8fafd;padding:14px 18px}.form-heading{display:flex;gap:10px;align-items:center;min-width:0}.form-heading>svg{color:#0b58e6}.form-heading p{margin:3px 0 0;color:#697486;font-size:12px;font-weight:800}label{display:grid;gap:6px;min-width:0;color:#687386;font-size:11px;font-weight:900}label input,label select{width:100%;min-width:0;height:38px;border:1px solid #d4d9e3;border-radius:6px;background:#fff;padding:8px 10px;font-size:13px;font-weight:750}.create-actions{display:flex;grid-column:1 / -1;align-items:center;justify-content:flex-end;gap:12px;padding-top:2px}.create-actions span{color:#667085;font-size:12px;font-weight:800}.active-filters{display:flex;gap:8px;align-items:center;min-height:38px;border-bottom:1px solid #e5e9f1;padding:8px 18px;color:#667085;font-size:12px;font-weight:800}.active-filters span{display:inline-flex;align-items:center;gap:8px;border:1px solid #d9dee8;border-radius:4px;background:#f7f9fc;padding:5px 8px}.active-filters .storage-state{border-color:#b7c8ea;background:#eef5ff;color:#164ea8}.active-filters button{border:0;background:transparent;color:#7b8494;font-weight:900;line-height:1;padding:0}.sheet-layout{display:grid;grid-template-columns:minmax(0,1fr);min-height:510px}.sheet{overflow:auto;border-bottom:1px solid #e5e9f1;background:#fff}.sales-panel{min-height:420px}.sales-sheet .sheet-row{grid-template-columns:220px 220px 180px 130px 130px 140px 110px;min-width:1130px}.empty-state{display:flex;align-items:center;min-height:180px;padding:24px;color:#7b8494;font-weight:800}.directory-panel{min-height:620px}.directory-layout{display:grid;grid-template-columns:300px minmax(0,1fr);min-height:540px}.directory-list{display:grid;align-content:start;border-right:1px solid #e5e9f1;background:#fbfcfe}.directory-row{display:grid;gap:4px;width:100%;border:0;border-bottom:1px solid #e5e9f1;background:transparent;padding:13px 16px;color:#475467;text-align:left}.directory-row strong{overflow:hidden;color:#172033;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.directory-row span,.directory-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.directory-row span{font-size:12px;font-weight:800}.directory-row small{color:#7b8494;font-size:11px;font-weight:800}.directory-row:hover,.directory-row.active{background:#eef5ff}.directory-row.active{box-shadow:inset 3px 0 #0b58e6}.directory-detail{display:grid;align-content:start;gap:16px;padding:18px}.detail-heading{display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid #e5e9f1;padding-bottom:14px}.directory-form{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:10px}.related-history{display:grid;gap:8px;border-top:1px solid #e5e9f1;padding-top:14px}.history-row{display:grid;grid-template-columns:minmax(160px,1.2fr) minmax(150px,1fr) minmax(170px,1fr) 120px 100px;gap:10px;align-items:center;border:1px solid #e1e6ef;border-radius:6px;background:#fbfcfe;padding:10px;color:#536074;font-size:12px;font-weight:800}.history-row strong,.history-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compact-empty{min-height:86px;border:1px solid #e1e6ef;border-radius:6px;background:#fbfcfe}.sheet-row{display:grid;grid-template-columns:44px 210px 190px 140px 130px 100px 70px 100px 116px 130px 60px 135px 115px 32px;width:100%;min-width:1572px;border:0;border-bottom:1px solid #eef1f6;background:#fff;color:#182033;padding:0;text-align:left;cursor:pointer}.sheet-row>span,.sheet-row>strong{display:flex;align-items:center;min-height:54px;border-right:1px solid #eef1f6;overflow:hidden;padding:9px 10px;text-overflow:ellipsis;white-space:nowrap}.sheet-row>strong{font-size:13px}.sheet-row.selected{background:#f0f6ff;box-shadow:inset 3px 0 #0b58e6}.sheet-row:hover{background:#f8fbff}.sheet-head{position:sticky;top:0;z-index:2;background:#f8fafd;color:#7b8494;font-size:11px;font-weight:900;text-transform:uppercase}.sheet-head:hover{background:#f8fafd}.select-cell,.action-cell{justify-content:center}.select-cell{position:sticky;left:0;z-index:2;background:inherit}.select-cell input{width:16px;height:16px;accent-color:#0b58e6}.product-id-cell{position:sticky;left:44px;z-index:2;background:inherit;box-shadow:1px 0 #e5e9f1}.name-cell{position:sticky;left:254px;z-index:2;background:inherit;box-shadow:1px 0 #e5e9f1}.sheet-head .select-cell,.sheet-head .product-id-cell,.sheet-head .name-cell{z-index:3}.action-cell{position:sticky;right:0;z-index:1;background:inherit;color:#9aa4b2}.sheet-head .action-cell{z-index:3}code{color:#0e3f9f;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:12px;font-weight:900}.series-chip{width:100%;overflow:hidden;border:1px solid #d9e4f8;border-radius:999px;background:#f2f7ff;color:#174ea6;padding:5px 10px;text-align:left;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:900}.sheet-select{width:100%;min-width:0;height:34px;border:1px solid transparent;border-radius:5px;background:transparent;color:#243044;padding:0 8px;font-size:12px;font-weight:900;outline:0}.sheet-select:hover,.sheet-select:focus{border-color:#a9b9d3;background:#fff;box-shadow:0 0 0 3px #0b58e61a}.status-select{border-color:transparent}.status-select.available,.status-select.on_display,.status-select.in_storage{background:#dff8e9;color:#087443}.status-select.sold,.status-select.damaged{background:#ffe8e5;color:#b42318}.status-select.reserved,.status-select.consigned{background:#fff4d6;color:#9a6200}.status-select.draft,.status-select.archived{background:#eef2f7;color:#475467}.status-badge{border-radius:999px;padding:5px 12px;background:#eef2f7;color:#475467;font-size:12px;font-weight:900}.status-badge.available,.status-badge.on_display,.status-badge.in_storage{background:#dff8e9;color:#087443}.status-badge.sold,.status-badge.damaged{background:#ffe8e5;color:#b42318}.status-badge.reserved,.status-badge.consigned{background:#fff4d6;color:#9a6200}.drilldown{display:grid;grid-template-columns:minmax(300px,360px) minmax(0,1fr);gap:14px;align-items:start;background:#fbfcfe;padding:14px}.product-inspector,.module-workspace{border:1px solid #dce1eb;border-radius:6px;background:#fff}.product-inspector{display:grid;gap:12px;padding:14px}.inspector-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid #e5e9f1;padding-bottom:12px}.inspector-heading code{display:block;margin-top:2px}.certificate-action,.text-action{display:inline-flex;align-items:center;gap:7px;border:1px solid #b9c8df;border-radius:6px;background:#fff;color:#164ea8;padding:8px 10px;font-weight:900}.certificate-action{height:34px}.text-action{width:fit-content;height:32px;font-size:12px}.inspector-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.wide-field{grid-column:1 / -1}.read-only-metric{border:1px solid #dce1eb;border-radius:6px;background:#fbfcfe;padding:11px}.read-only-metric span{display:block;color:#7b8494;font-size:11px;font-weight:900;text-transform:uppercase}.read-only-metric strong{display:block;margin-top:4px;font-size:14px}.module-workspace{display:grid;grid-template-rows:auto 1fr}.detail-tabs{display:flex;gap:2px;overflow-x:auto;border-bottom:1px solid #e5e9f1;padding:8px}.detail-tabs button{display:inline-flex;flex:0 0 auto;align-items:center;gap:6px;border:0;border-radius:4px;background:transparent;color:#5d6879;padding:7px 9px;font-size:12px;font-weight:900}.detail-tabs button:hover{background:#f3f7ff;color:#0b58e6}.detail-tabs button.active{background:#eaf2ff;color:#0b58e6}.module-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.42fr);gap:14px;padding:14px}.module-content p{margin:0;color:#596678;font-size:13px;line-height:1.45}.module-editor,.certificate-log{display:grid;gap:10px}.module-editor{grid-column:1}.related-record{display:grid;grid-template-columns:repeat(2,minmax(130px,1fr));gap:9px;border:1px solid #e1e6ef;border-radius:6px;background:#fbfcfe;padding:10px}.related-record label,.certificate-log label{color:#637083}.certificate-log{align-self:start;border-left:1px solid #e5e9f1;padding-left:14px}.log-row{display:grid;gap:3px;border:1px solid #e1e6ef;border-radius:6px;background:#fff;padding:9px;color:#536074;font-size:12px}.log-row strong{color:#0e3f9f}@media(max-width:1220px){.quick-create{grid-template-columns:repeat(3,minmax(170px,1fr))}.form-heading{grid-column:1 / -1}}@media(max-width:940px){.app-shell,.sheet-layout,.directory-layout{grid-template-columns:1fr}.directory-list{grid-auto-flow:column;grid-auto-columns:minmax(210px,1fr);overflow-x:auto;border-right:0;border-bottom:1px solid #e5e9f1}.directory-row{border-right:1px solid #e5e9f1;border-bottom:0}.sidebar{min-height:auto}.catalogue-toolbar,.topbar,.toolbar-actions{align-items:stretch;flex-direction:column}.search-control{width:100%}.quick-create{grid-template-columns:1fr}.sheet{border-bottom:1px solid #e5e9f1}.drilldown,.module-content,.inspector-grid,.directory-form,.history-row{grid-template-columns:1fr}.certificate-log{border-left:0;border-top:1px solid #e5e9f1;padding-left:0;padding-top:12px}}@media(max-width:760px){body{background:#eef1f6}.app-shell{display:block}.sidebar{position:sticky;top:0;z-index:10;gap:12px;border-right:0;border-bottom:1px solid #d9dee8;padding:14px}.brand-lockup{padding:0 0 10px}nav{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}.nav-item{flex:0 0 auto;width:auto;min-height:38px;padding:9px 11px;white-space:nowrap}.safety-note,.topbar-actions{display:none}.workspace{padding:14px}h1{font-size:22px}.catalogue-panel{border-radius:7px}.catalogue-toolbar,.quick-create,.active-filters{padding:12px}.filter-select,.primary-action,.secondary-action{width:100%}.active-filters{align-items:stretch;flex-direction:column}.sheet{display:grid;gap:10px;overflow:visible;background:#f8fafd;padding:10px}.sheet-row.sheet-head{display:none}.sheet-row{display:grid;grid-template-columns:30px 1fr;min-width:0;border:1px solid #dce1eb;border-radius:7px;background:#fff;box-shadow:0 8px 22px #1f293714}.sheet-row>span,.sheet-row>strong{position:static;min-height:auto;border-right:0;padding:8px 10px;white-space:normal}.sheet-row>span:not(.select-cell):not(.action-cell),.sheet-row>strong{grid-column:2;display:grid;grid-template-columns:96px minmax(0,1fr);gap:8px;align-items:center}.sheet-row>span:not(.select-cell):not(.action-cell):before,.sheet-row>strong:before{content:attr(data-label);color:#7b8494;font-size:10px;font-weight:900;text-transform:uppercase}.select-cell{grid-row:1 / span 12;align-items:start;padding-top:12px}.action-cell{display:none}.product-id-cell,.name-cell{box-shadow:none}.series-chip{width:fit-content;max-width:100%}.drilldown{gap:12px;padding:12px}.related-record{grid-template-columns:1fr}.create-actions{align-items:stretch;flex-direction:column}}
