:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#342a2c;background:#f6f5f3;font-synthesis:none;--red:#9c2336;--red-dark:#75182a;--soft:#f9edef;--border:#e9e4e1;--muted:#8c8082;--green:#287559;--shadow:0 18px 70px #48272b18}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #bf6b7a;outline-offset:3px}button{border:0;background:none;color:inherit}a{color:var(--red)}input,select,textarea{border:1px solid #e1d9d7;border-radius:9px;background:#fff;padding:11px 12px;min-height:42px;width:100%;color:#342a2c}input[type=checkbox]{width:16px;min-height:16px;accent-color:var(--red)}textarea{resize:vertical;min-height:88px}input::placeholder,textarea::placeholder{color:#a99e9f}h1,h2,h3,p{margin:0}h1{font-size:28px;letter-spacing:-.8px;font-weight:650}h2{font-size:18px;letter-spacing:-.3px}h3{font-size:15px}p{line-height:1.65}small{font-size:12px}.muted{color:var(--muted)}.icon{width:20px;height:20px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:none}.btn{min-height:42px;padding:10px 16px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;font-size:13px;font-weight:600;border:1px solid var(--border);background:#fff}.btn:hover{background:#faf5f4;border-color:#d5babe}.btn.primary{background:var(--red);color:#fff;border-color:var(--red);box-shadow:0 3px 6px #82203512}.btn.primary:hover{background:var(--red-dark)}.btn.secondary{background:var(--soft);border-color:#f3dce0;color:var(--red)}.btn.small{min-height:33px;padding:6px 10px;font-size:12px}.btn.danger{color:var(--red)}.icon-button{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px}.icon-button:hover{background:var(--soft)}.link-button{color:var(--red);font-size:12px;padding:6px 0;font-weight:600}.pill{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:5px;background:#f2eeeb;color:#817172;font-size:11px;white-space:nowrap}.pill.red{background:var(--soft);color:var(--red)}.pill.green{background:#eaf5ef;color:var(--green)}.pill.gray{background:#f1f0ef;color:#9a8e90}.dot{width:6px;height:6px;background:currentColor;border-radius:50%}.startup{height:100vh;display:flex;flex-direction:column;gap:18px;align-items:center;justify-content:center;color:var(--muted)}.brand-mark{background:var(--red);color:#fff7ee;border-radius:11px;width:39px;height:39px;font-weight:700;font-style:italic;font-size:26px;display:grid;place-items:center;flex:none;font-family:Georgia,serif}.brand{display:flex;align-items:center;gap:11px}.brand strong{font-size:19px;letter-spacing:1.5px;display:block;font-weight:700}.brand small{font-size:9px;letter-spacing:2.1px;color:var(--muted);display:block;margin-top:3px}.shell{display:grid;grid-template-columns:228px minmax(0,1fr);min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:228px;background:#fff;border-right:1px solid var(--border);display:flex;flex-direction:column;padding:29px 18px 20px;z-index:10}.sidebar .brand{padding:0 9px 26px}.navigation{display:grid;gap:5px}.nav-button{display:flex;align-items:center;gap:12px;min-height:46px;border-radius:9px;padding:0 14px;font-size:13px;font-weight:500;text-align:left;color:#7d6e71}.nav-button .icon{width:19px;height:19px}.nav-button:hover{background:#faf7f5}.nav-button.active{background:var(--soft);color:var(--red);font-weight:650;box-shadow:inset 3px 0 var(--red)}.nav-button .nav-arrow{margin-left:auto;font-size:17px;opacity:.6}.sidebar-bottom{margin-top:auto}.sidebar-foot{display:flex;gap:9px;align-items:center;margin-top:19px;font-size:11px;color:#a89c9e;padding:0 10px}.main{grid-column:2;min-width:0}.topbar{height:73px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:15px}.breadcrumb{font-size:12px;color:#a29497;display:flex;align-items:center;gap:13px}.breadcrumb strong{font-weight:500;color:#554448}.topbar-right{display:flex;align-items:center;gap:18px}.top-date{font-size:11px;color:#9b8c8f}.profile{display:flex;align-items:center;gap:9px}.avatar{width:31px;height:31px;display:grid;place-items:center;background:var(--soft);color:var(--red);border-radius:50%;font-size:12px;font-weight:600}.profile strong{font-size:12px;display:block;max-width:110px;overflow:hidden;text-overflow:ellipsis}.profile small{font-size:9px;color:var(--muted)}.mobile-menu{display:none}.content{padding:29px 36px 34px;max-width:1700px;margin:0 auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px}.heading-actions{display:flex;gap:8px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:23px}.stat{background:#fff;padding:19px 20px;border:1px solid var(--border);border-radius:12px;position:relative;overflow:hidden}.stat-head{display:flex;align-items:center;justify-content:space-between;color:#8e7f82;font-size:11px;margin-bottom:13px}.stat-icon{width:31px;height:31px;background:#f8f3f1;color:#a46f78;display:grid;place-items:center;border-radius:8px}.stat-icon .icon{width:16px;height:16px}.stat-value{font-size:29px;font-weight:600;letter-spacing:-1px;line-height:1.2}.stat-value small{font-size:11px;color:#a39699;margin-left:6px;font-weight:400;letter-spacing:0}.stat-note{font-size:10px;color:#a29597;margin-top:9px}.stat-note em{font-style:normal;color:var(--red)}.panel{background:#fff;border:1px solid var(--border);border-radius:13px;overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 22px;border-bottom:1px solid #f1ebea}.panel-heading h2{font-size:15px}.panel-heading p{font-size:11px;color:var(--muted);margin-top:5px}.count{display:inline-grid;place-items:center;min-width:23px;height:20px;margin-left:7px;background:var(--soft);color:var(--red);font-size:10px;border-radius:5px}.filters{display:flex;gap:10px;padding:16px 22px;align-items:center;flex-wrap:wrap;border-bottom:1px solid #f2eceb;background:#fefdfc}.search{position:relative;flex:1;min-width:180px}.search .icon{position:absolute;left:12px;top:11px;color:#ad9d9f;width:17px;height:17px;pointer-events:none}.search input{padding-left:37px;font-size:12px;min-height:39px;background:#fff}.filters select,.filters input[type=date]{width:auto;min-width:130px;max-width:190px;font-size:12px;min-height:39px;padding:9px 12px}.filter-label{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.table-scroll{overflow:auto}.data-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}.data-table thead{background:#fbf9f8;color:#a39397;font-size:10px;letter-spacing:.3px}.data-table th{padding:12px 20px;font-weight:500;border-bottom:1px solid #eee7e5;white-space:nowrap}.data-table td{padding:16px 20px;border-bottom:1px solid #f1ecea;vertical-align:middle}.data-table tr:last-child td{border:0}.data-table tbody tr:hover{background:#fffdfc}.product-cell{display:flex;gap:12px;align-items:center;min-width:200px}.product-thumb{width:54px;height:64px;flex:none;background:#f4f0ed;border:1px solid #eee5e2;border-radius:7px;padding:0;overflow:hidden;display:grid;place-items:center;color:#cbb7bc}.product-thumb img{width:100%;height:100%;object-fit:cover}.product-cell strong{font-size:12px;font-weight:600;display:block;margin-bottom:5px;max-width:240px;overflow-wrap:anywhere}.sku{color:#ae999e;font-size:10px;letter-spacing:.5px}.size-chips{display:flex;gap:4px;flex-wrap:wrap;max-width:290px}.size-chip{display:inline-flex;align-items:center;gap:5px;border:1px solid #eae2e0;border-radius:4px;padding:4px 6px;font-size:10px;white-space:nowrap;background:#fff}.size-chip span{color:#a18c93}.size-chip b{font-weight:600}.size-chip.zero{color:#c3b5b7;background:#faf8f7}.stock-number{font-size:18px;font-weight:600;letter-spacing:-.4px}.stock-number.zero{color:#b8aaad}.row-actions{display:flex;gap:7px;align-items:center}.table-foot{display:flex;justify-content:space-between;padding:13px 22px;border-top:1px solid var(--border);color:#aa9c9e;font-size:10px;gap:10px}.empty{padding:56px 20px 60px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px}.empty-icon{width:56px;height:56px;display:grid;place-items:center;background:#faf1f1;border:1px solid #f2dfe2;border-radius:16px;color:#bb7e88;margin-bottom:3px}.empty-icon .icon{width:26px;height:26px}.empty h3{font-size:15px;font-weight:500;color:#6a5057}.empty p{font-size:12px;color:#a28b92;max-width:340px;margin-bottom:7px}.section-note{margin-top:16px;color:#b09da3;font-size:10px;display:flex;align-items:center;gap:7px}.section-note .icon{width:13px;height:13px}.split{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.simple-list{padding:0 20px}.simple-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:65px;border-bottom:1px solid #f0e9e6;font-size:13px}.simple-row:last-child{border:0}.simple-row .leading{display:flex;align-items:center;gap:12px}.simple-row .icon{color:#b57b87;width:18px;height:18px}.inline-add{display:flex;gap:8px;padding:18px 20px;border-top:1px solid var(--border)}.inline-add input{font-size:12px;min-width:0}.account-info{padding:18px 22px;display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--border);background:#fffafa;font-size:12px;color:#90747c}.account-info .icon{color:#b96c7e}.ranking-list{padding:0 22px}.rank-row{display:flex;align-items:center;gap:15px;padding:20px 0;border-bottom:1px solid #f0e9e6}.rank-row:last-child{border:0}.rank-number{color:#bdafb2;width:28px;text-align:center;font-size:16px;font-style:italic;font-family:Georgia,serif}.rank-number.top{color:var(--red);font-weight:bold}.rank-product{flex:1;min-width:0}.rank-product strong{font-size:13px}.rank-product .sku{margin-top:4px;display:block}.rank-bar{height:4px;background:#f6eeee;margin-top:10px;border-radius:10px;max-width:500px;overflow:hidden}.rank-bar span{height:100%;display:block;background:linear-gradient(90deg,#a22a40,#d89ca7);border-radius:10px}.rank-qty{font-size:22px;font-weight:600;color:var(--red);text-align:right;min-width:80px}.rank-qty small{display:block;font-size:9px;font-weight:400;color:#b298a0;margin-top:4px}.login-page{min-height:100dvh;display:grid;place-items:center;padding:24px}.login-main{display:flex;align-items:center;justify-content:center;padding:36px;background:#fff;border:1px solid var(--border);border-radius:12px;width:100%;max-width:430px}.login-box>.brand{margin-bottom:28px}.login-box>.brand strong{font-size:18px;letter-spacing:1px}.login-box{width:100%;max-width:350px}.login-box h2{font-size:25px;font-weight:600;margin-bottom:10px}.login-box>p{font-size:12px;color:var(--muted);margin-bottom:32px}.login-box form{display:grid;gap:19px}.login-box .btn{width:100%;margin-top:4px;min-height:46px}.field{display:flex;flex-direction:column;gap:8px;font-size:12px}.field>span,.field>label{font-weight:500;color:#7a626a}.field small{color:#ae99a0;font-size:10px;line-height:1.55}.field.required>span:after{content:' *';color:#bf6b7a}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid .wide{grid-column:1/-1}.error{color:#b32c44;background:#fff0f2;border:1px solid #f2d6dc;border-radius:8px;padding:10px 12px;font-size:12px;line-height:1.6}.error:empty{display:none}.notice{background:#fbf5ee;border:1px solid #efe0d0;color:#9e7244;padding:11px 13px;border-radius:8px;font-size:11px;line-height:1.6}.toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%,15px);max-width:calc(100vw - 30px);padding:13px 20px;color:#fff;background:#443237;border-radius:10px;font-size:13px;box-shadow:var(--shadow);opacity:0;pointer-events:none;z-index:1000;transition:.18s}.toast.show{opacity:1;transform:translate(-50%,0)}dialog{padding:0;border:1px solid #e8dadd;border-radius:16px;box-shadow:var(--shadow);width:640px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 40px);color:#4a343c}dialog::backdrop{background:#271b2366;backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #efe6e7;background:#fffdfb;position:sticky;top:0;z-index:2}.modal-head h2{font-size:18px}.modal-head p{font-size:11px;color:var(--muted);margin-top:5px}.modal-body{padding:24px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;padding:17px 24px;border-top:1px solid #eee3e5;background:#fffdfb;position:sticky;bottom:0;z-index:2}.upload-zone{border:1px dashed #d7aab5;background:#fff9fa;border-radius:10px;padding:21px;text-align:center;position:relative;cursor:pointer;display:block}.upload-zone.dragover{border-color:var(--red);background:#f9eaee}.upload-zone input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.upload-zone .icon{color:#bd7b8b;margin-bottom:7px}.upload-zone strong{display:block;font-size:12px;color:#8b4b5d}.upload-zone small{display:block;font-size:10px;margin-top:5px;color:#ba929f}.image-previews{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}.preview-item{position:relative;width:70px;height:86px;border:1px solid #e9d8de;border-radius:7px;overflow:hidden;background:#f9f4f2}.preview-item img{width:100%;height:100%;object-fit:cover}.preview-item button{position:absolute;right:2px;top:2px;background:#ffffffdf;border-radius:50%;width:21px;height:21px;padding:0;color:#a02b43;font-size:16px}.preview-item:after{content:attr(data-label);position:absolute;left:0;right:0;bottom:0;background:#5f263a77;color:#fff;font-size:8px;padding:3px 4px;pointer-events:none}.upload-status{font-size:11px;color:#b0808e;margin-top:8px}.size-picker{display:flex;gap:7px;flex-wrap:wrap}.size-option{position:relative;cursor:pointer;display:flex;align-items:center;justify-content:center;min-width:48px;height:35px;border:1px solid #e4d6dc;border-radius:7px;font-size:11px;color:#a08790;background:#fff}.size-option:has(input:checked){color:var(--red);background:var(--soft);border-color:#cf8a9c;font-weight:600}.size-option:has(input:focus-visible){outline:2px solid var(--red)}.size-option input{position:absolute;opacity:0;inset:0;cursor:pointer;width:100%;height:100%;margin:0}.stock-input-row{display:grid;grid-template-columns:1fr 90px 110px;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #f1e8eb;font-size:12px}.stock-input-row:last-child{border:0}.stock-input-row input{min-height:36px;padding:7px 10px}.stock-input-row .stock-available{text-align:right;font-size:11px;color:#ae929d}.detail-hero{display:flex;gap:17px;margin-bottom:22px}.detail-hero .product-thumb{width:90px;height:110px}.detail-hero h3{font-size:19px;margin-bottom:8px}.detail-hero .sku{margin-bottom:10px}.detail-images{display:flex;gap:8px;overflow:auto;margin-bottom:20px}.detail-images button{padding:0;width:65px;height:80px;border-radius:7px;overflow:hidden;flex:none;background:#f5edee}.detail-images img{width:100%;height:100%;object-fit:cover}.detail-stock{border:1px solid #eee1e5;border-radius:10px;padding:15px;margin-top:10px}.detail-stock h3{margin-bottom:12px;font-size:12px}.detail-stock .size-chips{max-width:none}.lightbox-head{display:flex;align-items:center;justify-content:space-between;color:#fff;padding:12px 16px;font-size:12px;background:#291c22}.lightbox-stage{display:flex;align-items:center;justify-content:center;height:70dvh;max-height:750px;background:#1e151a;position:relative}.lightbox-stage img{width:100%;height:100%;object-fit:contain}.lightbox-nav{position:absolute;top:calc(50% - 20px);border-radius:50%;background:#ffffffdd;color:#693243;width:38px;height:38px;display:grid;place-items:center}.lightbox-nav.prev{left:12px}.lightbox-nav.next{right:12px}#lightbox{width:1000px;border:0;border-radius:12px;background:#1e151a}#lightbox .icon-button:hover{background:#ffffff20}.lightbox-foot{text-align:center;padding:11px;color:#c8aab6;font-size:10px}.mobile-nav-backdrop{display:none}.retry-panel{padding:40px;text-align:center}.retry-panel p{margin:12px;color:var(--muted);font-size:13px}.out-quantity{color:#a1324b;font-weight:600}.in-quantity{color:var(--green);font-weight:600}
@media(min-width:1500px){.content{padding-top:34px}.data-table td{padding-top:19px;padding-bottom:19px}}
@media(max-width:1200px){.shell{grid-template-columns:198px minmax(0,1fr)}.sidebar{width:198px;padding:25px 13px 17px}.brand strong{font-size:16px}.brand small{font-size:8px}.sidebar .brand{gap:8px}.brand-mark{width:34px;height:34px;font-size:24px}.content{padding:25px 24px}.topbar{padding:0 24px}.data-table th,.data-table td{padding-left:15px;padding-right:15px}.stat{padding:16px}.split{gap:13px}.inline-add{padding:14px}.simple-list{padding:0 14px}}
@media(max-width:960px){.stats{gap:10px}.stat{padding:14px}.stat-value{font-size:25px}.split{grid-template-columns:1fr}.product-cell{min-width:180px}.data-table th,.data-table td{padding-left:13px;padding-right:13px}.top-date{display:none}.size-chips{min-width:180px}.page-heading h1{font-size:25px}}
@media(max-width:700px){.shell{display:block}.sidebar{width:242px;transform:translateX(-100%);transition:transform .2s}.shell.menu-open .sidebar{transform:translateX(0)}.shell.menu-open .mobile-nav-backdrop{display:block;position:fixed;inset:0;background:#2e182666;z-index:9}.mobile-menu{display:flex}.topbar{height:62px;padding:0 16px}.breadcrumb{gap:8px}.breadcrumb>span:first-child,.breadcrumb .breadcrumb-divider{display:none}.topbar-right{gap:4px}.profile small{display:none}.profile strong{max-width:80px;font-size:11px}.content{padding:22px 16px}.page-heading{align-items:flex-start;margin-bottom:20px;gap:12px}.page-heading h1{font-size:25px}.heading-actions .btn{min-height:36px;padding:8px 10px;font-size:11px}.heading-actions{gap:6px;flex-wrap:wrap;justify-content:flex-end}.heading-actions .btn .icon{width:15px;height:15px}.stats{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}.stat{padding:15px 16px;border-radius:10px}.stat-head{font-size:10px;margin-bottom:10px}.stat-value{font-size:27px}.stat-note{font-size:9px}.panel-heading{padding:16px}.filters{padding:13px;gap:8px}.search{min-width:100%;order:0}.filters select,.filters input[type=date]{flex:1;min-width:100px;width:100px;max-width:none;font-size:11px}.filter-label{font-size:10px}.data-table td,.data-table th{padding:13px}.data-table td{font-size:11px}.table-foot{padding:12px 14px;font-size:9px}.table-foot span:last-child{display:none}.empty{padding:40px 18px}.section-note{font-size:9px;align-items:flex-start;line-height:1.6}.login-page{padding:20px 16px}.login-main{padding:28px 22px}.login-box h2{font-size:23px}.login-box>p{margin-bottom:25px}.login-box form{gap:16px}.modal-head{padding:17px 18px}.modal-body{padding:20px 18px}.modal-actions{padding:15px 18px}.modal-actions .btn{flex:1}.form-grid{gap:15px}.form-grid>.field{grid-column:1/-1}.stock-input-row{grid-template-columns:1fr 75px 90px;gap:7px}dialog{max-width:calc(100vw - 18px);max-height:calc(100dvh - 22px);border-radius:13px}.rank-row{gap:9px}.ranking-list{padding:0 14px}.rank-qty{min-width:60px;font-size:20px}.rank-product strong{font-size:12px}.rank-number{width:20px}.rank-row .product-thumb{width:42px;height:54px}.account-info{padding:15px;font-size:11px}.detail-hero{gap:14px}.detail-hero h3{font-size:17px}.size-picker{gap:6px}.size-option{min-width:44px}.lightbox-stage{height:65dvh}#lightbox{max-width:100vw;width:100vw;border-radius:0}.lightbox-foot{font-size:9px}.toast{font-size:12px;bottom:18px}.profile{gap:6px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.pill.correction{background:#f6f0e6;color:#896532}.correction-quantity{color:#896532;font-weight:600;white-space:nowrap}.correction-balances{font-size:11px;font-weight:400;color:var(--muted);margin-top:6px}.correction-preview{grid-column:1/-1;text-align:right;font-size:11px;color:#896532;line-height:1.5}.correction-refresh{margin-top:12px}.correction-refresh[hidden]{display:none}.modal-actions{flex-wrap:wrap}
@media(max-width:760px){
  .topbar .breadcrumb>span{display:none}
  .topbar .breadcrumb{min-width:0;gap:7px}
  .topbar .breadcrumb strong{white-space:nowrap;font-size:12px}
  .topbar-right{flex:0 1 auto;min-width:0;gap:4px}
  .topbar .profile{min-width:0;gap:6px;padding:0}
  .topbar .profile>span:last-child{min-width:0}
  .topbar .profile strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:68px;font-size:11px}
  .topbar .avatar,.topbar .icon-button{flex-shrink:0}

}

.simple-row .leading{min-width:0;flex:1}.simple-row .leading>.icon{flex-shrink:0}.reference-name{min-width:0;overflow-wrap:anywhere}.reference-edit{flex-shrink:0;width:40px;height:40px}.reference-edit:hover{color:var(--red)}dialog:has([data-form="reference-edit"]){width:440px}.reference-reload{margin-top:12px}.reference-reload[hidden]{display:none}

/* Product images lead the inventory workspace. */
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:18px;padding:20px;background:#f8f7f5}
.product-card{min-width:0;display:flex;flex-direction:column;background:#fff;border:1px solid var(--border);border-radius:12px;overflow:hidden}
.product-visual{width:100%;height:330px;position:relative;display:block;padding:10px;background:#f1efeb;overflow:hidden;border-bottom:1px solid var(--border)}
.product-visual img{display:block;width:100%;height:100%;object-fit:contain}
.product-visual:focus-visible{outline-offset:-4px}.product-visual:hover .product-image-hint{background:#fff}
.product-image-count,.product-image-hint{position:absolute;background:#fffffff0;border:1px solid #e8e1dc;border-radius:6px;font-size:11px;padding:5px 8px;color:#5d4a50}
.product-image-count{top:12px;right:12px}.product-image-hint{bottom:12px;right:12px;display:flex;gap:5px;align-items:center}.product-image-hint .icon{width:14px;height:14px}
.product-no-image{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#a99b9f;font-size:12px}.product-no-image>.icon{width:40px;height:40px}
.product-card-body{padding:16px;flex:1;min-width:0}.product-identity{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:7px 14px}
.product-identity h3{min-width:0}.product-title{text-align:left;padding:0;font-size:16px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}.product-title:hover{color:var(--red)}
.product-sku{font-size:11px;color:var(--muted);overflow-wrap:anywhere}.product-sku strong{font-size:16px;font-weight:650;color:var(--red);margin-left:3px;letter-spacing:.3px}
.product-metadata{display:flex;align-items:baseline;flex-wrap:wrap;gap:7px 10px;font-size:11px;line-height:1.6;color:var(--muted);margin:10px 0 14px}.product-metadata>span{min-width:0;max-width:100%;overflow-wrap:anywhere;white-space:normal}
.product-stock-summary{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding-top:12px;border-top:1px solid #f1ecea;margin-bottom:12px;font-size:11px;color:var(--muted)}
.product-stock-summary .stock-number{font-size:23px;color:#342a2c;margin:0 4px}.product-stock-summary .stock-number.zero{color:#b8aaad}.product-stock-summary>span{white-space:nowrap}
.product-card .size-chips{min-width:0;max-width:none;gap:6px}.product-card .size-chip{padding:5px 8px;font-size:11px}
.product-card-actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center;padding:12px 16px;border-top:1px solid #f1ecea}.product-card-actions .btn{flex:1;min-height:40px;padding:8px 10px;font-size:12px}.product-card-actions .icon-button{flex:none;width:36px;height:40px}
.detail-hero .product-thumb{width:170px;height:210px}.detail-hero>div{min-width:0;overflow-wrap:anywhere}.detail-hero .product-thumb img,.detail-images img{object-fit:contain}.detail-images button{width:100px;height:124px}
.rank-row .product-thumb{width:84px;height:104px}.rank-row .product-thumb img{object-fit:contain}
#lightbox{width:1280px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 24px)}.lightbox-stage{height:calc(100dvh - 132px);max-height:none}
@media(max-width:760px){
 .content{padding:18px 14px}.page-heading{margin-bottom:16px}.page-heading h1{font-size:23px}
 .stats{gap:8px;margin-bottom:16px}.stat{padding:11px 13px}.stat-head{margin-bottom:5px;font-size:10px}.stat-icon{width:24px;height:24px}.stat-value{font-size:24px}.stat-note{font-size:9px;margin-top:5px}
 .inventory-panel .panel-heading{padding:14px}.inventory-panel .filters{padding:12px;gap:8px}.inventory-panel .filters .search{min-width:100%}.inventory-panel .filters select{min-width:0;flex:1;width:0;max-width:none;padding-left:9px;padding-right:20px}
 .product-grid{grid-template-columns:minmax(0,1fr);gap:16px;padding:12px}.product-visual{height:350px;padding:8px}.product-card-body{padding:15px}.product-title{font-size:17px}.product-sku strong{font-size:18px}.product-card-actions{padding:12px 15px}
 .detail-hero .product-thumb{width:135px;height:170px}.detail-hero h3{font-size:16px}.detail-images button{width:90px;height:110px}
 .rank-row .product-thumb{width:68px;height:86px}.rank-qty{min-width:55px;font-size:19px}
 #lightbox{max-width:100vw;width:100vw;max-height:100dvh;border-radius:0}.lightbox-stage{height:calc(100dvh - 108px)}
}
@media(max-width:360px){.product-visual{height:310px}.product-card-actions{gap:5px;padding:12px}.product-card-actions .btn{padding:8px;font-size:11px}.product-card-actions .icon-button{width:30px}}

.inventory-stats .stat{padding:13px 16px}.inventory-stats .stat-head{margin-bottom:7px}.inventory-stats .stat-value{font-size:26px}.inventory-stats .stat-note{margin-top:5px}
@media(max-width:760px){.inventory-stats .stat{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 8px;padding:12px}.inventory-stats .stat-head{display:block;margin:0;font-size:10px}.inventory-stats .stat-icon{display:none}.inventory-stats .stat-value{grid-column:2;grid-row:1/3;font-size:23px;white-space:nowrap}.inventory-stats .stat-value small{font-size:9px;margin-left:3px}.inventory-stats .stat-note{grid-column:1;grid-row:2;margin:0;line-height:1.5;font-size:9px}}

.detail-hero .pill{white-space:normal;max-width:100%;overflow-wrap:anywhere}.rank-product{overflow-wrap:anywhere}.lightbox-head{gap:12px}.lightbox-head>span{min-width:0;overflow-wrap:anywhere}.lightbox-head .icon-button{flex:none}.modal-head>div{min-width:0;overflow-wrap:anywhere}.modal-head>.icon-button{flex:none}

/* Movement images and quantities remain visible together on desktop and mobile. */
.movement-product{display:flex;align-items:center;gap:16px;min-width:0}.movement-product>div{min-width:0;overflow-wrap:anywhere}.movement-product .product-sku{display:block;margin:8px 0}.movement-product .product-thumb.movement-thumb{width:128px;height:160px;flex:none;padding:4px}.movement-thumb img{object-fit:contain}.movement-thumb.no-image{display:flex;flex-direction:column;justify-content:center;gap:10px;color:var(--muted)}.movement-thumb.no-image small{font-size:11px}.modal-body>.movement-product{margin-bottom:22px}.movement-table{table-layout:fixed;width:100%;min-width:0}.movement-table th:first-child{width:35%}.movement-table th:nth-child(2){width:15%}.movement-table td{white-space:normal;overflow-wrap:anywhere;padding:16px 12px}.movement-table th{padding:14px 12px}.movement-quantity strong{font-size:23px;font-variant-numeric:tabular-nums}.movement-table .correction-balances{line-height:1.7}.movement-table .movement-note{font-size:12px}.movement-product .pill{white-space:normal}.movement-scroll{overflow:visible}
@media(max-width:1100px){
 .movement-table,.movement-table tbody{display:block}.movement-table thead{display:none}.movement-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 16px;padding:18px;border-bottom:1px solid var(--border)}.movement-table td{display:block;padding:0;border:0;min-width:0}.movement-table td:before{content:attr(data-label);display:block;font-size:10px;color:var(--muted);margin-bottom:5px}.movement-table td.movement-identity:before{display:none}.movement-identity,.movement-note{grid-column:1/-1}.movement-product .product-thumb.movement-thumb{width:112px;height:140px}.movement-table .movement-quantity{grid-column:1/-1}.movement-table .movement-quantity:before{display:inline;margin-right:12px}.movement-table tr:last-child{border-bottom:0}
}

/* Give each size and balance a readable tile, including zero and negative stock. */
.size-chips{gap:8px}.size-chip{display:flex;flex:1 0 76px;flex-direction:column;justify-content:center;gap:6px;min-width:76px;max-width:100%;min-height:74px;padding:10px 12px;border:1px solid #dec8ce;border-radius:9px;background:#fff;white-space:normal;text-align:center}.size-chip span{font-size:14px;font-weight:600;color:#5a424a}.size-chip b{font-size:23px;line-height:1.2;font-weight:700;color:#a12843;overflow-wrap:anywhere;max-width:100%;font-variant-numeric:tabular-nums}.size-chip.zero{background:#fcf9fa;border-color:#e4d6da}.product-stock-summary .stock-number{color:#a12843}

/* Shared one-line size header; stock and transit align without wrapping sizes. */
.stock-matrix-scroll{max-width:100%;overflow:auto;border:1px solid #dfc4cc;border-radius:10px;isolation:isolate}.stock-matrix{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;text-align:center}.stock-matrix th,.stock-matrix td{padding:11px 6px;border-right:1px solid #ead7dc;border-bottom:1px solid #ead7dc;white-space:nowrap}.stock-matrix th:last-child,.stock-matrix td:last-child{border-right:0}.stock-matrix tbody tr:last-child>*{border-bottom:0}.stock-matrix thead th{font-size:14px;font-weight:650;background:#f9f0f3;color:#62464e}.stock-matrix tr>:first-child{position:sticky;left:0;z-index:1;white-space:normal;text-align:left}.stock-matrix tbody th{font-size:15px}.stock-matrix th small{display:block;font-size:11px;font-weight:400;margin-top:6px;line-height:1.5;overflow-wrap:anywhere}.stock-matrix th small b{font-size:13px}.stock-matrix td{height:74px}.stock-matrix td b{display:block;white-space:normal;overflow-wrap:anywhere;font-size:23px;font-weight:700;font-variant-numeric:tabular-nums}.stock-matrix .on-hand-row>*{background:#fff7f9}.stock-matrix .on-hand-row b{color:#a12843}.stock-matrix .in-transit-row>*{background:#fff9ee}.stock-matrix .in-transit-row b{color:#a86414}.matrix-hint{font-size:11px;color:var(--muted);margin-top:7px}.transit-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 15px 14px}.transit-button{color:#99580d;border-color:#d6a570;background:#fffbf3}.product-disable{margin-right:auto}.transit-quantity{color:#a86414}.pill.transit-pill{color:#99580d;background:#fff2db}.transit-input-scroll{max-width:100%;overflow:auto;border:1px solid #e4cbd2;border-radius:8px}.transit-inputs{display:grid}.transit-inputs label{min-width:64px;text-align:center;border-right:1px solid #ead7dc;padding:10px 6px}.transit-inputs label:last-child{border-right:0}.transit-inputs label>span{display:block;font-size:15px;font-weight:600}.transit-inputs small{display:block;font-size:10px;color:var(--muted);margin:6px 0}.transit-inputs input{padding:8px 3px;text-align:center;font-size:18px;min-width:0}.transit-input-total{margin-top:12px;font-size:13px}.transit-input-total strong{font-size:23px;color:#a12843}.modal-actions{flex-wrap:wrap}.product-card-body{min-width:0}.product-stock-summary{margin-bottom:12px}
