:root{--ink:#11100d;--ink2:#1c1a16;--cream:#f4efe6;--paper:#fffdf8;--sand:#e8dfd0;--line:#ddd2c1;--gold:#b28a4d;--gold2:#76572d;--muted:#82796c;--green:#1f6f52;--red:#a83b32;--shadow:0 18px 48px rgba(57,42,20,.07)}
body{background:radial-gradient(circle at 88% 4%,rgba(178,138,77,.14),transparent 32rem),repeating-linear-gradient(90deg,transparent 0 159px,rgba(72,54,28,.025) 160px),#f6f2ea;color:var(--ink)}.card,.stat,.modal-box,.auth-card{border-radius:9px;border-color:var(--line);box-shadow:var(--shadow)}.primary{border-radius:5px;background:var(--ink);border-color:var(--ink);color:#fff;box-shadow:none;letter-spacing:2px}.primary:hover{background:#2a261f;transform:translateY(-1px)}.ghost{border-radius:5px;border-color:#cbbca6;color:var(--gold2);background:rgba(255,253,248,.72)}h1,h2,.brand b,.auth h1{font-family:"STSong","Songti SC","SimSun",serif}
.auth{background:linear-gradient(105deg,#11100d 0%,#171510 52%,#2a2117 100%)}.auth:before{width:720px;height:720px;border-color:rgba(178,138,77,.16)}.auth:after{width:520px;height:520px;border-color:rgba(178,138,77,.11)}.auth-card{width:min(440px,100%);background:rgba(255,253,248,.985);border:1px solid rgba(213,196,162,.7);padding:45px 39px 35px;box-shadow:0 42px 100px rgba(0,0,0,.4);overflow:hidden}.auth-art{position:absolute;inset:0;opacity:.08;pointer-events:none}.auth-art img{width:150%;height:150%;object-fit:cover;transform:translate(-15%,-15%)}.logo-img{position:relative;width:80px;height:80px;margin:0 auto 18px;display:block;filter:drop-shadow(0 12px 26px rgba(0,0,0,.22))}.auth h1{position:relative;font-size:34px;letter-spacing:9px}.auth p{letter-spacing:3px;color:#7d7367}.auth input{border-radius:6px;border-color:#d9cebd;background:#fffefb}.auth .primary{border-radius:5px}.link{color:var(--gold2)}
.app{grid-template-columns:244px minmax(0,1fr)}.app aside{background:#11100d;padding:26px 16px 20px}.app aside:after{background:radial-gradient(circle,rgba(178,138,77,.15),transparent 70%)}.brand{gap:12px;padding:0 8px 24px;border-bottom-color:rgba(255,255,255,.09)}.brand-logo{width:46px;height:46px;display:block}.brand b{font-size:19px;letter-spacing:4px;color:#f7f2e8}.brand small{color:#8f877c;letter-spacing:1px}.app nav{gap:3px;margin-top:22px}.app nav button,.side-foot button{border-radius:4px;padding:13px 14px;color:rgba(255,255,255,.58);letter-spacing:2px;font-size:13px}.app nav button:hover{background:rgba(255,255,255,.06);color:#fff}.app nav button.on{background:rgba(178,138,77,.18);color:#f4e7d2;box-shadow:none}.app nav button.on:before{left:0;top:9px;bottom:9px;width:3px;background:#b28a4d}.side-foot{border-top-color:rgba(255,255,255,.08)}.app header{height:88px;background:rgba(244,239,230,.94);border-bottom:1px solid var(--line);padding:0 34px}.app header h1{font-size:29px;letter-spacing:3px;color:#15130f}.app header p{color:#82796c;letter-spacing:2px}.app header>div:last-child{border-radius:4px;border-color:#d5cab9;background:rgba(255,253,248,.72);color:#5f574d}#content{max-width:1560px;padding:28px 34px 80px}

.stats{gap:16px}.stat,.card{background:rgba(255,253,248,.94);border:1px solid var(--line);box-shadow:var(--shadow)}.stat{padding:21px 20px}.stat:before{width:3px;background:var(--gold)}.stat:after{opacity:.5}.stat small{font-size:12px;letter-spacing:2px;color:#7d7367}.stat strong{font-family:"STSong","Songti SC",serif;font-size:30px;color:var(--ink);letter-spacing:.5px}.card{padding:24px}.card h2{font-size:24px;letter-spacing:2px;color:var(--ink);margin-bottom:20px}.toolbar input,.toolbar select{height:46px;border-radius:5px;border-color:#d9cebd;background:#fffefb}.toolbar input:focus,.toolbar select:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(178,138,77,.11)}.table th{padding:15px 12px;color:#80776b;background:#f8f4ec;border-bottom:1px solid var(--line);font-size:11px;letter-spacing:2px}.table td{padding:15px 12px;border-bottom-color:#ebe4d8;color:#302d27}.table tbody tr:hover{background:#faf6ee}.table tbody tr:last-child td{border-bottom:0}.tag{border-radius:3px;padding:4px 9px;letter-spacing:1px}.thumb{border-radius:3px;border-color:#d8cdbb;box-shadow:none}.empty{color:#8b8174}.form-grid{gap:18px}.field label{color:#746c61;letter-spacing:1px;font-size:12px}.field input,.field select,.field textarea{border-radius:5px;border-color:#d9cebd;background:#fffefb;padding:13px 14px}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(178,138,77,.11)}.actions{gap:10px}.modal{background:rgba(17,16,13,.7)}.modal-box{border-radius:9px;border-color:#d7cbb8;background:#fffdf8}.close{color:#716857}.toast{border-radius:4px;background:#11100d;border-color:#4f4434;color:#f4e7d2;letter-spacing:1px}
.brand-logo,.logo-img{filter:none}.auth-card:before{content:"";position:absolute;left:0;top:0;right:0;height:5px;background:linear-gradient(90deg,#76572d,#d6b676,#76572d)}.auth-card .logo-img{background:#11100d;border-radius:22px;padding:5px;box-sizing:border-box}.app aside:before{content:"WEN JIA JEWELRY";position:absolute;left:24px;bottom:24px;color:rgba(255,255,255,.08);font-size:10px;letter-spacing:3px}.app .brand b{font-family:"STSong","Songti SC",serif}
@media(max-width:1000px){.app aside{border-bottom:1px solid rgba(255,255,255,.08)}.app nav button.on:before{display:none}.app header{height:auto}.auth{min-height:100vh}.auth-card{width:min(440px,calc(100% - 28px))}}
@media(max-width:580px){.stat strong{font-size:26px}.card h2{font-size:22px}.auth-card{padding:36px 23px 29px}.auth h1{font-size:30px;letter-spacing:6px}}

/* 参考网站布局：顶部深色导航 + 编辑式品牌首页 */
.app{display:block!important}.app aside{position:sticky!important;top:0;height:auto!important;min-height:72px;display:flex!important;flex-direction:row!important;align-items:center!important;padding:0 30px!important;z-index:30;overflow:visible!important;background:#11100d!important;box-shadow:0 10px 30px rgba(17,16,13,.18)}.app aside:after{display:none}.brand{border:0!important;padding:0!important;gap:11px!important;flex-shrink:0}.brand-logo{width:42px!important;height:42px!important}.brand b{font-size:17px!important;letter-spacing:3px}.brand small{display:none}.app nav{flex-direction:row!important;gap:0!important;margin:0 auto!important;position:static!important}.app nav button{padding:26px 18px!important;border-radius:0!important;color:rgba(255,255,255,.58)!important;font-size:13px!important}.app nav button.on{background:transparent!important;color:#fff!important}.app nav button.on:before{left:18px!important;right:18px!important;top:auto!important;bottom:0!important;width:auto!important;height:2px!important;border-radius:0!important}.side-foot{flex-direction:row!important;gap:0!important;border:0!important;margin:0!important;padding:0!important;position:static!important}.side-foot button{padding:24px 10px!important;font-size:12px!important}.app header{display:none!important}#content{max-width:1540px!important;padding:34px clamp(18px,4vw,66px) 90px!important}.dashboard-hero{position:relative;min-height:430px;display:grid;grid-template-columns:minmax(0,.86fr) minmax(420px,1.14fr);align-items:center;gap:40px;padding:58px 58px 54px;background:linear-gradient(180deg,#faf7f0,#f1eadf);border:1px solid var(--line);overflow:hidden;box-shadow:var(--shadow)}.dashboard-hero:before{content:"文";position:absolute;right:20px;bottom:-100px;font-family:"STSong","Songti SC",serif;font-size:380px;color:rgba(118,87,45,.04);line-height:.8}.dashboard-hero .eyebrow{margin:0 0 15px;color:#76572d;font-size:11px;font-weight:800;letter-spacing:4px}.dashboard-hero h1{margin:0;font-family:"STSong","Songti SC",serif;font-size:clamp(48px,5vw,76px);line-height:1.08;letter-spacing:-3px;color:#11100d}.dashboard-hero h1 span{color:#76572d}.dashboard-hero .hero-text{max-width:560px;color:#61594f;font-size:15px;letter-spacing:1.5px;line-height:1.9;margin:22px 0 0}.dashboard-hero .hero-gem{position:relative;z-index:2;display:flex;justify-content:center}.dashboard-hero .hero-gem img{width:min(470px,100%);filter:drop-shadow(0 28px 45px rgba(44,36,27,.18))}.dashboard-hero .hero-note{position:absolute;right:38px;bottom:30px;background:rgba(244,232,205,.95);border:1px solid rgba(118,87,45,.18);padding:11px 15px;color:#76572d;font-size:12px;letter-spacing:1px}.dashboard-stats{margin-top:22px}.app aside{backdrop-filter:blur(16px)}
@media(max-width:1100px){.app aside{flex-wrap:wrap;padding:10px 18px!important}.app nav{order:3;width:100%;overflow:auto}.app nav button{padding:12px 14px!important;white-space:nowrap}.app nav button.on:before{left:12px!important;right:12px!important}.side-foot{margin-left:auto!important}.side-foot button{padding:18px 9px!important}.dashboard-hero{grid-template-columns:1fr;padding:42px 34px}.dashboard-hero .hero-gem{display:none}}
@media(max-width:650px){.brand b{font-size:15px!important}.side-foot button{display:none}.app nav button{padding:11px 12px!important}.dashboard-hero{padding:34px 22px;min-height:360px}.dashboard-hero h1{font-size:44px}.dashboard-hero .hero-note{position:static;display:inline-block;margin-top:20px}#content{padding:20px 14px 70px!important}}

/* 统一表单控件：高度、基线、字体和焦点样式 */
.form-grid{gap:18px 22px!important}.field{min-width:0!important}.field label{display:block!important;height:20px!important;line-height:20px!important;margin:0 0 8px!important;color:#6f675d!important;font-size:12px!important;font-weight:800!important;letter-spacing:1.4px!important;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif!important}.field input:not([type=file]),.field select{height:50px!important;line-height:50px!important;padding:0 15px!important;box-sizing:border-box!important;border:1px solid #d8ccb9!important;border-radius:4px!important;background:linear-gradient(180deg,#fffefb,#fbf7ef)!important;color:#1f1d19!important;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif!important;font-size:15px!important;font-weight:500!important;letter-spacing:.4px!important;box-shadow:inset 0 1px 2px rgba(73,53,25,.04)!important;outline:none!important;vertical-align:middle!important}.field input:not([type=file]):hover,.field select:hover{border-color:#c9b893!important}.field input:not([type=file]):focus,.field select:focus{border-color:#9d7735!important;background:#fffefb!important;box-shadow:0 0 0 3px rgba(178,138,77,.13),inset 0 1px 2px rgba(73,53,25,.03)!important}.field input::placeholder{color:#aaa092!important;font-weight:400!important;line-height:normal!important}.field textarea{min-height:92px!important;height:auto!important;line-height:1.7!important;padding:12px 15px!important;border:1px solid #d8ccb9!important;border-radius:4px!important;background:linear-gradient(180deg,#fffefb,#fbf7ef)!important;color:#1f1d19!important;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif!important;font-size:15px!important;box-shadow:inset 0 1px 2px rgba(73,53,25,.04)!important;resize:vertical!important}.field textarea:focus{border-color:#9d7735!important;box-shadow:0 0 0 3px rgba(178,138,77,.13)!important}.field select{appearance:none!important;-webkit-appearance:none!important;padding-right:42px!important;background-image:linear-gradient(45deg,transparent 50%,#7c6b50 50%),linear-gradient(135deg,#7c6b50 50%,transparent 50%)!important;background-position:calc(100% - 21px) 21px,calc(100% - 15px) 21px!important;background-size:6px 6px,6px 6px!important;background-repeat:no-repeat!important}.field input[type=date],.field input[type=time]{line-height:normal!important}.toolbar input,.toolbar select{height:48px!important;line-height:48px!important;border-radius:4px!important;border-color:#d8ccb9!important;background:linear-gradient(180deg,#fffefb,#fbf7ef)!important;font-size:14px!important}.toolbar select{appearance:none!important;padding-right:38px!important;background-image:linear-gradient(45deg,transparent 50%,#7c6b50 50%),linear-gradient(135deg,#7c6b50 50%,transparent 50%)!important;background-position:calc(100% - 20px) 20px,calc(100% - 14px) 20px!important;background-size:6px 6px,6px 6px!important;background-repeat:no-repeat!important}.actions .primary,.actions .ghost{height:46px!important;min-width:116px!important;padding:0 20px!important;border-radius:4px!important}

/* 进货入库：短字段小框，宽字段大框 */
.inbound-form{grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:18px 16px!important}.inbound-form .col-code{grid-column:span 3}.inbound-form .col-name{grid-column:span 6}.inbound-form .col-cat{grid-column:span 3}.inbound-form .col-unit{grid-column:span 2}.inbound-form .col-qty{grid-column:span 2}.inbound-form .col-price{grid-column:span 3}.inbound-form .col-party{grid-column:span 5}.inbound-form .col-time{grid-column:span 4}.inbound-form .col-remark{grid-column:span 8}.inbound-form .col-unit input,.inbound-form .col-unit select{text-align:center}.inbound-form .col-qty input{text-align:center}.inbound-form .col-price input{text-align:right}.inbound-form .col-code input,.inbound-form .col-qty input,.inbound-form .col-price input{min-width:0}
@media(max-width:1050px){.inbound-form .col-code,.inbound-form .col-name,.inbound-form .col-cat,.inbound-form .col-unit,.inbound-form .col-qty,.inbound-form .col-price,.inbound-form .col-party,.inbound-form .col-time,.inbound-form .col-remark{grid-column:span 6}.inbound-form .col-name,.inbound-form .col-party,.inbound-form .col-remark{grid-column:span 12}}
@media(max-width:650px){.inbound-form .col-code,.inbound-form .col-name,.inbound-form .col-cat,.inbound-form .col-unit,.inbound-form .col-qty,.inbound-form .col-price,.inbound-form .col-party,.inbound-form .col-time,.inbound-form .col-remark{grid-column:span 12}}

/* 短字段限制真实宽度，避免代码和小数字输入框过长 */
.inbound-form .col-code{max-width:190px!important}.inbound-form .col-cat{max-width:170px!important}.inbound-form .col-unit{max-width:110px!important}.inbound-form .col-qty{max-width:135px!important}.inbound-form .col-price{max-width:190px!important}.inbound-form .col-time{max-width:210px!important}.inbound-form .col-code input,.inbound-form .col-cat input,.inbound-form .col-unit select,.inbound-form .col-qty input,.inbound-form .col-price input,.inbound-form .col-time input{width:100%!important;max-width:100%!important}.inbound-form .col-name,.inbound-form .col-party,.inbound-form .col-remark{width:100%!important;max-width:none!important}
@media(max-width:1050px){.inbound-form .col-code,.inbound-form .col-cat,.inbound-form .col-unit,.inbound-form .col-qty,.inbound-form .col-price,.inbound-form .col-time{max-width:none!important}}

/* 进货入库最终版：固定六列，短字段短框，宽字段通栏 */
.inbound-form{display:grid!important;grid-template-columns:140px 150px minmax(240px,1fr) 150px 110px 190px!important;grid-template-areas:"code name name cat unit ." "qty price party party party time" "remark remark remark remark remark remark"!important;gap:18px 16px!important;align-items:end!important}.inbound-form .col-code{grid-area:code!important;max-width:none!important}.inbound-form .col-name{grid-area:name!important;max-width:none!important}.inbound-form .col-cat{grid-area:cat!important;max-width:none!important}.inbound-form .col-unit{grid-area:unit!important;max-width:none!important}.inbound-form .col-qty{grid-area:qty!important;max-width:none!important}.inbound-form .col-price{grid-area:price!important;max-width:none!important}.inbound-form .col-party{grid-area:party!important;max-width:none!important}.inbound-form .col-time{grid-area:time!important;max-width:none!important}.inbound-form .col-remark{grid-area:remark!important;max-width:none!important}.inbound-form .col-code input,.inbound-form .col-qty input,.inbound-form .col-price input{text-align:center!important}.inbound-form .col-remark textarea{min-height:74px!important}
@media(max-width:1200px){.inbound-form{grid-template-columns:140px minmax(260px,1fr)!important;grid-template-areas:"code name" "cat unit" "qty price" "party time" "remark remark"!important}.inbound-form .col-price input{text-align:left!important}}
@media(max-width:650px){.inbound-form{grid-template-columns:1fr!important;grid-template-areas:"code" "name" "cat" "unit" "qty" "price" "party" "time" "remark"!important}}

/* 除宝石名称外，所有进货入库字段统一缩短 20% */
.inbound-form .field:not(.col-name){width:80%!important;max-width:80%!important;justify-self:start!important}.inbound-form .col-name{width:100%!important;max-width:100%!important}.inbound-form .field:not(.col-name) input,.inbound-form .field:not(.col-name) select,.inbound-form .field:not(.col-name) textarea{width:100%!important;max-width:100%!important}
@media(max-width:650px){.inbound-form .field:not(.col-name){width:100%!important;max-width:100%!important}}

/* 临时压缩：除宝石名称外，字段宽度缩到原来的 20% */
.inbound-form .field:not(.col-name){width:20%!important;max-width:20%!important;min-width:70px!important;justify-self:start!important}.inbound-form .field:not(.col-name) input,.inbound-form .field:not(.col-name) select,.inbound-form .field:not(.col-name) textarea{width:100%!important;max-width:100%!important}
@media(max-width:650px){.inbound-form .field:not(.col-name){width:100%!important;max-width:100%!important}}

/* 大幅度宽度调整：直接使用固定像素，不再按网格比例 */
.inbound-form{display:flex!important;flex-wrap:wrap!important;align-items:flex-end!important;gap:16px 14px!important}.inbound-form .field{flex:0 0 auto!important}.inbound-form .field.col-code{width:110px!important;max-width:110px!important}.inbound-form .field.col-name{width:380px!important;max-width:380px!important}.inbound-form .field.col-cat{width:130px!important;max-width:130px!important}.inbound-form .field.col-unit{width:80px!important;max-width:80px!important}.inbound-form .field.col-qty{width:100px!important;max-width:100px!important}.inbound-form .field.col-price{width:120px!important;max-width:120px!important}.inbound-form .field.col-party{width:180px!important;max-width:180px!important}.inbound-form .field.col-time{width:150px!important;max-width:150px!important}.inbound-form .field.col-remark{width:360px!important;max-width:360px!important}.inbound-form .field input,.inbound-form .field select,.inbound-form .field textarea{width:100%!important;max-width:100%!important}
@media(max-width:760px){.inbound-form{display:grid!important;grid-template-columns:1fr!important}.inbound-form .field{width:100%!important;max-width:none!important}}

/* 三行固定表单，不再响应式换列 */
.inbound-card{overflow-x:auto!important}.inbound-rows{min-width:820px!important}.inbound-row{display:flex!important;flex-wrap:nowrap!important;align-items:flex-end!important;gap:14px!important;margin-bottom:16px!important}.inbound-row:last-child{margin-bottom:0!important}.inbound-row .field{flex:0 0 auto!important;min-width:0!important}.inbound-row .col-code{width:110px!important}.inbound-row .col-name{width:380px!important}.inbound-row .col-cat{width:130px!important}.inbound-row .col-unit{width:80px!important}.inbound-row .col-qty{width:100px!important}.inbound-row .col-price{width:120px!important}.inbound-row .col-party{width:180px!important}.inbound-row .col-time{width:150px!important}.inbound-row .col-remark{width:360px!important}.inbound-row input,.inbound-row select,.inbound-row textarea{width:100%!important;max-width:100%!important}.inbound-row .col-code input,.inbound-row .col-qty input,.inbound-row .col-price input{text-align:center!important}.inbound-row .col-remark textarea{min-height:72px!important}

/* 四列固定对齐：窗口宽窄都不换列 */
.inbound-rows{min-width:860px!important}.inbound-row{display:grid!important;grid-template-columns:110px 380px 180px 160px!important;gap:14px!important;align-items:end!important}.inbound-row .field{width:100%!important;max-width:none!important}.inbound-row .field input,.inbound-row .field select,.inbound-row .field textarea{width:100%!important;max-width:100%!important}.inbound-row .col-remark{grid-column:2 / span 3!important;width:100%!important}.inbound-row .col-code input,.inbound-row .col-qty input,.inbound-row .col-price input{text-align:center!important}.inbound-row .col-remark textarea{min-height:72px!important}

/* 宝石编码单独加宽 */
.inbound-rows{min-width:880px!important}.inbound-row:first-child{grid-template-columns:170px 360px 180px 160px!important}.inbound-row:first-child .col-name input{width:100%!important}

/* 进货入库指定三行加附加行 */
.inbound-rows{min-width:760px!important}.inbound-row{display:grid!important;gap:14px!important;align-items:end!important;margin-bottom:16px!important}.inbound-row:last-child{margin-bottom:0!important}.row-one{grid-template-columns:220px 420px!important}.row-two{grid-template-columns:150px 110px 200px!important}.row-three{grid-template-columns:180px 180px 200px!important}.row-four{grid-template-columns:300px 1fr!important}.inbound-row .field{width:100%!important;max-width:none!important}.inbound-row input,.inbound-row select,.inbound-row textarea{width:100%!important;max-width:100%!important}.inbound-row .col-qty input,.inbound-row .col-price input,.inbound-row .col-total input{text-align:center!important}.inbound-row .col-total input{background:#f7f1e5!important;color:#76572d!important;font-weight:800!important}.row-four .col-remark{grid-column:auto!important}.row-four textarea{min-height:72px!important}

/* 表单占满整宽，并用同一套六列网格保持上下对齐 */
.inbound-rows{width:100%!important;min-width:0!important}.inbound-row.row-one,.inbound-row.row-two,.inbound-row.row-three,.inbound-row.row-four{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:14px!important;width:100%!important;align-items:end!important}.inbound-row.row-one .col-code{grid-column:span 2!important}.inbound-row.row-one .col-name{grid-column:span 4!important}.inbound-row.row-two .col-qty,.inbound-row.row-two .col-unit,.inbound-row.row-two .col-cat{grid-column:span 2!important}.inbound-row.row-three .col-price,.inbound-row.row-three .col-total,.inbound-row.row-three .col-time{grid-column:span 2!important}.inbound-row.row-four .col-party{grid-column:span 2!important}.inbound-row.row-four .col-remark{grid-column:span 4!important}.inbound-row .field{width:100%!important;max-width:none!important}.inbound-row .field input,.inbound-row .field select,.inbound-row .field textarea{width:100%!important;max-width:100%!important}.inbound-row .col-remark textarea{min-height:72px!important}

/* 备注单独整行 */
.inbound-row.row-four{grid-template-columns:repeat(6,minmax(0,1fr))!important}.inbound-row.row-four .col-party{grid-column:span 2!important}.inbound-row.row-remark{display:grid!important;grid-template-columns:1fr!important;width:100%!important;margin-bottom:0!important}.inbound-row.row-remark .col-remark{grid-column:1/-1!important;width:100%!important;max-width:none!important}.inbound-row.row-remark textarea{width:100%!important;min-height:82px!important}

/* 输入框只占内容需要的宽度，其余用留白保持整齐 */
.inbound-row .field{justify-self:start!important}.inbound-row .col-code input{width:150px!important;max-width:100%!important}.inbound-row .col-name input{width:100%!important}.inbound-row .col-qty input{width:120px!important;max-width:100%!important}.inbound-row .col-unit select{width:90px!important;max-width:100%!important}.inbound-row .col-cat input{width:180px!important;max-width:100%!important}.inbound-row .col-price input{width:140px!important;max-width:100%!important}.inbound-row .col-total input{width:140px!important;max-width:100%!important}.inbound-row .col-time input{width:180px!important;max-width:100%!important}.inbound-row .col-party input{width:260px!important;max-width:100%!important}.inbound-row .col-remark textarea{width:480px!important;max-width:100%!important}

/* 指定字段长度统一 */
.inbound-row .col-code input,.inbound-row .col-qty input,.inbound-row .col-price input,.inbound-row .col-party input{width:170px!important;max-width:100%!important}.inbound-row .col-unit select,.inbound-row .col-total input{width:120px!important;max-width:100%!important}

/* 字段标题与输入框居中对齐 */
.inbound-row .col-code{width:170px!important}.inbound-row .col-name{width:100%!important}.inbound-row .col-qty{width:170px!important}.inbound-row .col-unit{width:120px!important}.inbound-row .col-cat{width:180px!important}.inbound-row .col-price{width:170px!important}.inbound-row .col-total{width:120px!important}.inbound-row .col-time{width:180px!important}.inbound-row .col-party{width:170px!important}.inbound-row .col-remark{width:480px!important}.inbound-row .field label{width:100%!important;text-align:center!important}.inbound-row .col-unit select,.inbound-row .col-total input{text-align:center!important}

/* 入库图片上传与预览 */
.inbound-row.row-images{grid-template-columns:1fr 1fr!important;width:100%!important;margin-bottom:0!important}.inbound-row.row-images .field{width:100%!important;max-width:none!important}.inbound-row.row-images input[type=file]{width:100%!important;height:auto!important;padding:9px!important;line-height:normal!important}.image-preview-list{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-top:10px!important}.preview-thumb{width:72px!important;height:72px!important;object-fit:cover!important;border-radius:4px!important;border:1px solid #d8cdbb!important;cursor:zoom-in!important}.large-preview{display:block!important;max-width:100%!important;max-height:72vh!important;margin:0 auto!important;border-radius:4px!important}

/* 图片田字格 */
.hidden-file{display:none!important}.image-grid{display:grid!important;grid-template-columns:repeat(2,72px)!important;gap:8px!important;margin-top:10px!important}.image-tile{position:relative!important;width:72px!important;height:72px!important;border:1px solid #d6cab7!important;border-radius:4px!important;background:#fbf7ef!important;overflow:hidden!important;display:grid!important;place-items:center!important}.image-tile img{width:100%!important;height:100%!important;object-fit:cover!important;cursor:zoom-in!important}.image-add{border-style:dashed!important;color:#8c7856!important;font-size:30px!important;font-weight:300!important;cursor:pointer!important}.image-add:hover{border-color:#9d7735!important;background:#f7f0e3!important}.image-remove{position:absolute!important;right:3px!important;top:3px!important;width:22px!important;height:22px!important;border:0!important;border-radius:50%!important;background:rgba(17,16,13,.72)!important;color:#fff!important;font-size:16px!important;line-height:20px!important;padding:0!important;cursor:pointer!important}

/* 图片与备注标题左对齐 */
.inbound-row.row-images .field label,.inbound-row.row-remark .field label{text-align:left!important;margin-left:0!important}

/* 时间和供应商位置互换 */
.inbound-row.row-three .col-party{grid-column:span 2!important}.inbound-row.row-four .col-time{grid-column:span 2!important}

/* 第三行与第二行、第四行时间保持列宽对齐 */
.inbound-row.row-three .col-party{width:180px!important}.inbound-row.row-three .col-party input{width:180px!important;max-width:100%!important}.inbound-row.row-four .col-time{width:180px!important}.inbound-row.row-four .col-time input{width:180px!important;max-width:100%!important}

/* 输入框固定宽度，不再随网页宽度缩放 */
.inbound-card{overflow-x:auto!important}.inbound-rows{width:100%!important;min-width:860px!important}.inbound-row.row-one{grid-template-columns:170px minmax(360px,1fr)!important}.inbound-row.row-two,.inbound-row.row-three{grid-template-columns:170px 120px 180px 1fr!important}.inbound-row.row-four{grid-template-columns:180px 1fr!important}.inbound-row .col-code,.inbound-row .col-qty,.inbound-row .col-price{width:170px!important}.inbound-row .col-unit,.inbound-row .col-total{width:120px!important}.inbound-row .col-cat,.inbound-row .col-party,.inbound-row .col-time{width:180px!important}.inbound-row .col-name{width:100%!important}.inbound-row .col-code input,.inbound-row .col-qty input,.inbound-row .col-price input{width:170px!important;max-width:none!important}.inbound-row .col-unit select,.inbound-row .col-total input{width:120px!important;max-width:none!important}.inbound-row .col-cat input,.inbound-row .col-party input,.inbound-row .col-time input{width:180px!important;max-width:none!important}.inbound-row .col-remark textarea{width:480px!important;max-width:none!important}.inbound-row .col-name input{width:100%!important}

/* 宝石名称置顶 */
.inbound-row.row-one{grid-template-columns:minmax(360px,1fr) 170px!important}

/* 名称置顶，业务字段按指定四列显示 */
.inbound-row.row-name{grid-template-columns:1fr!important;width:100%!important}.inbound-row.row-values{grid-template-columns:170px 170px 120px 180px!important}.inbound-row.row-money{grid-template-columns:170px 120px 180px 180px!important}.inbound-row.row-name .col-name{width:100%!important}.inbound-row.row-values .col-code,.inbound-row.row-values .col-qty,.inbound-row.row-money .col-price{width:170px!important}.inbound-row.row-values .col-unit,.inbound-row.row-money .col-total{width:120px!important}.inbound-row.row-values .col-cat,.inbound-row.row-money .col-party,.inbound-row.row-money .col-time{width:180px!important}.inbound-row.row-values input,.inbound-row.row-values select,.inbound-row.row-money input{width:100%!important;max-width:100%!important}

/* 第二行、第三行统一四列宽度，保持上下对齐 */
.inbound-row.row-values,.inbound-row.row-money{grid-template-columns:170px 170px 180px 180px!important;gap:14px!important;width:100%!important}.inbound-row.row-values .col-code,.inbound-row.row-values .col-qty,.inbound-row.row-money .col-price{width:170px!important}.inbound-row.row-values .col-unit,.inbound-row.row-money .col-total{width:180px!important}.inbound-row.row-values .col-cat,.inbound-row.row-money .col-party,.inbound-row.row-money .col-time{width:180px!important}.inbound-row.row-values .col-unit select,.inbound-row.row-money .col-total input{width:120px!important;max-width:120px!important;justify-self:center!important;margin:0 auto!important}.inbound-row.row-values .col-code input,.inbound-row.row-values .col-qty input,.inbound-row.row-money .col-price input,.inbound-row.row-money .col-party input,.inbound-row.row-money .col-time input,.inbound-row.row-values .col-cat input{width:100%!important;max-width:100%!important}

/* 宝石名称输入框缩为一半 */
.inbound-row.row-name .col-name{width:50%!important;max-width:50%!important;justify-self:start!important}.inbound-row.row-name .col-name input{width:100%!important;max-width:100%!important}

/* 固定输入框宽度，用留白分布保持上下对齐 */
.inbound-rows{width:100%!important;min-width:900px!important}.inbound-row.row-values,.inbound-row.row-money{display:grid!important;grid-template-columns:170px 170px 180px 180px!important;justify-content:space-between!important;align-items:end!important;column-gap:18px!important;width:100%!important}.inbound-row.row-name{display:grid!important;grid-template-columns:1fr!important;width:100%!important}.inbound-row.row-name .col-name{width:50%!important;max-width:50%!important;justify-self:start!important}.inbound-row.row-values .col-code,.inbound-row.row-values .col-qty,.inbound-row.row-money .col-price{width:170px!important}.inbound-row.row-values .col-unit,.inbound-row.row-money .col-total{width:180px!important}.inbound-row.row-values .col-cat,.inbound-row.row-money .col-party,.inbound-row.row-money .col-time{width:180px!important}.inbound-row.row-values .col-code input,.inbound-row.row-values .col-qty input,.inbound-row.row-money .col-price input{width:170px!important;max-width:170px!important}.inbound-row.row-values .col-unit select,.inbound-row.row-money .col-total input{width:120px!important;max-width:120px!important;justify-self:center!important;margin:0 auto!important}.inbound-row.row-values .col-cat input,.inbound-row.row-money .col-party input,.inbound-row.row-money .col-time input{width:180px!important;max-width:180px!important}.inbound-row.row-name input{width:100%!important}

/* 宝石名称输入框整行居中 */
.inbound-row.row-name .col-name{justify-self:center!important;margin-left:auto!important;margin-right:auto!important}

/* 备注输入框整行居中 */
.inbound-row.row-remark .col-remark{justify-self:center!important;margin-left:auto!important;margin-right:auto!important}

/* 备注框固定 480px 后居中 */
.inbound-row.row-remark .col-remark{width:480px!important;max-width:480px!important;justify-self:center!important;margin-left:auto!important;margin-right:auto!important}.inbound-row.row-remark .col-remark textarea{width:480px!important;max-width:480px!important}

/* 图片区域整体向右对齐 */
.inbound-row.row-images{padding-left:150px!important;padding-right:20px!important;box-sizing:border-box!important;grid-template-columns:minmax(260px,1fr) minmax(260px,1fr)!important;column-gap:80px!important}.inbound-row.row-images .field{justify-self:start!important}

/* 进货入库整洁版 */
.inbound-card2{padding:0!important;overflow:hidden!important;max-width:1280px!important;margin:20px auto!important}.inbound-head{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:22px 28px!important;background:#11100d!important;color:#f4e7d2!important}.inbound-head h2{margin:0!important;color:#fff!important;font-size:24px!important;letter-spacing:3px!important}.inbound-head span{font-size:12px!important;color:#a99a82!important;letter-spacing:2px!important}.inbound-shell{padding:24px!important;background:#f8f4ec!important}.inbound-section{background:#fffdf9!important;border:1px solid #ddd2c1!important;border-radius:6px!important;padding:22px 24px!important;margin-bottom:18px!important}.inbound-section:last-child{margin-bottom:0!important}.inbound-section-title{font-family:"STSong","Songti SC",serif!important;font-size:18px!important;color:#76572d!important;font-weight:800!important;letter-spacing:2px!important;border-bottom:1px solid #e7ddcc!important;padding-bottom:11px!important;margin-bottom:20px!important}.inbound-name{width:50%!important;max-width:50%!important;margin:0 auto 22px!important}.field-grid{display:grid!important;gap:18px!important;justify-content:center!important;align-items:start!important}.grid-basic{grid-template-columns:170px 170px 180px 180px!important}.grid-pricing{grid-template-columns:170px 120px 120px 180px!important}.inbound-media{display:grid!important;grid-template-columns:360px 360px!important;gap:60px!important;justify-content:center!important}.inbound-note{width:480px!important;max-width:480px!important;margin:0 auto!important}.inbound-name label,.field-grid label{text-align:center!important}.inbound-media label,.inbound-note label{text-align:left!important}.inbound-name input{width:100%!important}.grid-basic .field:nth-child(1) input,.grid-basic .field:nth-child(2) input{width:170px!important}.grid-basic .field:nth-child(3) input,.grid-basic .field:nth-child(4) input{width:180px!important}.grid-pricing .field:nth-child(1) input{width:170px!important}.grid-pricing .field:nth-child(2) input,.grid-pricing .field:nth-child(3) select{width:120px!important}.grid-pricing .field:nth-child(4) input{width:180px!important}.grid-basic input,.grid-pricing input,.grid-pricing select,.inbound-note textarea{max-width:100%!important}.inbound-media .field{width:360px!important}.inbound-actions{justify-content:center!important;padding:0 24px 24px!important;margin:0!important}.inbound-actions .primary{min-width:180px!important}

/* 整洁版单位和供应商互换并对齐 */
.inbound-section .grid-basic,.inbound-section .grid-pricing{grid-template-columns:170px 170px 180px 180px!important}.inbound-section .grid-basic .field:nth-child(2) input{width:170px!important}.inbound-section .grid-basic .field:nth-child(3) select{width:120px!important;justify-self:center!important;margin:0 auto!important}.inbound-section .grid-basic .field:nth-child(4) input{width:180px!important}.inbound-section .grid-pricing .field:nth-child(1) input{width:170px!important}.inbound-section .grid-pricing .field:nth-child(2) input{width:120px!important;justify-self:center!important;margin:0 auto!important}.inbound-section .grid-pricing .field:nth-child(3) input{width:180px!important}.inbound-section .grid-pricing .field:nth-child(4) input{width:180px!important}

/* 上下两行对应输入框完全同长 */
.inbound-section .grid-basic,.inbound-section .grid-pricing{grid-template-columns:170px 120px 120px 180px!important;justify-content:center!important;gap:18px!important}.inbound-section .grid-basic .field:nth-child(1),.inbound-section .grid-pricing .field:nth-child(1){width:170px!important}.inbound-section .grid-basic .field:nth-child(2),.inbound-section .grid-basic .field:nth-child(3),.inbound-section .grid-pricing .field:nth-child(2),.inbound-section .grid-pricing .field:nth-child(3){width:120px!important}.inbound-section .grid-basic .field:nth-child(4),.inbound-section .grid-pricing .field:nth-child(4){width:180px!important}.inbound-section .grid-basic input,.inbound-section .grid-basic select,.inbound-section .grid-pricing input,.inbound-section .grid-pricing select{width:100%!important;max-width:100%!important}

/* 宝石库存：左侧分类 + 右侧列表 */
.inventory-layout{display:grid!important;grid-template-columns:210px minmax(0,1fr)!important;gap:18px!important;align-items:start!important}.inventory-rail{background:#fffdf9!important;border:1px solid #ddd2c1!important;border-radius:6px!important;padding:12px!important;position:sticky!important;top:104px!important;max-height:calc(100vh - 130px)!important;overflow:auto!important}.inventory-rail-title{font-family:"STSong","Songti SC",serif!important;font-size:16px!important;color:#76572d!important;font-weight:800!important;padding:10px 9px 12px!important;border-bottom:1px solid #e8dece!important;margin-bottom:8px!important;letter-spacing:2px!important}.inventory-cat{width:100%!important;border:0!important;background:transparent!important;padding:12px 10px!important;border-radius:4px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;color:#574f45!important;font-size:14px!important;text-align:left!important;cursor:pointer!important}.inventory-cat:hover{background:#f7f1e5!important}.inventory-cat.on{background:#11100d!important;color:#f4e7d2!important}.inventory-cat b{font-size:12px!important;color:#9b8b71!important;font-weight:600!important}.inventory-cat.on b{color:#cdb98f!important}.inventory-main{min-width:0!important}.inventory-toolbar-card{margin-top:0!important;padding:16px 18px!important}.inventory-toolbar-card .toolbar input{width:320px!important}.inventory-list-card{padding:0!important;overflow:auto!important}.inventory-list-card .table th:first-child,.inventory-list-card .table td:first-child{padding-left:22px!important}.inventory-list-card .table th:last-child,.inventory-list-card .table td:last-child{padding-right:22px!important}
@media(max-width:800px){.inventory-layout{grid-template-columns:1fr!important}.inventory-rail{position:static!important;max-height:220px!important;display:flex!important;flex-wrap:wrap!important}.inventory-rail-title{width:100%!important}.inventory-cat{width:auto!important;min-width:100px!important}}

/* 左侧分类：白色卡片，暖金选中 */
.inventory-cat{background:#fff!important;border:1px solid #e9e0d2!important;margin-bottom:5px!important;color:#3f3931!important;font-weight:600!important}.inventory-cat:hover{background:#fbf7ef!important;border-color:#d8c8ab!important}.inventory-cat.on{background:linear-gradient(135deg,#f4e7c7,#dfc27b)!important;border-color:#c6a150!important;color:#241e16!important;font-weight:800!important;box-shadow:0 6px 16px rgba(178,138,77,.18)!important}.inventory-cat b{min-width:26px!important;text-align:center!important;background:#f5f0e7!important;border-radius:10px!important;padding:2px 7px!important;color:#756a5b!important}.inventory-cat.on b{background:#fff9ec!important;color:#76572d!important}

/* 库存搜索框居中 */
.inventory-toolbar-card .toolbar{justify-content:center!important}.inventory-toolbar-card .toolbar input{width:320px!important;margin-left:auto!important;margin-right:auto!important}

/* 库存缩略图点击查看原图 */
.inventory-list-card .thumb{cursor:zoom-in!important}.inventory-list-card .thumb:hover{opacity:.88!important;border-color:#b28a4d!important}

/* 强制库存分类始终固定在左侧 */
.inventory-layout{display:grid!important;grid-template-columns:210px minmax(0,1fr)!important;gap:18px!important;align-items:start!important;min-width:760px!important}.inventory-rail{display:block!important;width:210px!important;position:sticky!important;top:100px!important;max-height:calc(100vh - 125px)!important;overflow:auto!important;flex-wrap:nowrap!important}.inventory-cat{display:flex!important;width:100%!important;min-width:0!important}

/* 库存分页加载 */
.inventory-more{text-align:center!important;padding:20px!important;color:#76572d!important;font-size:13px!important;cursor:pointer!important;border-top:1px solid #eee3d1!important;letter-spacing:1px!important}.inventory-more:hover{background:#faf5eb!important}

/* 库存名称两行显示，证书与宝石图分列 */
.inventory-list-card .gem-name-cell{display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;white-space:normal!important;line-height:1.45!important;max-width:210px!important}.inventory-list-card .image-cell{min-width:82px!important}.inventory-list-card .image-cell .thumb{width:54px!important;height:54px!important;margin:2px!important}

/* 证书名称和编号单独一行且不断开 */
.inventory-list-card .gem-name-cell .name-main{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.inventory-list-card .gem-name-cell .cert-line{display:block!important;margin-top:3px!important;color:#9a7420!important;font-size:12px!important;font-weight:700!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}

/* 借出归还详情 */
.return-info{display:grid!important;grid-template-columns:repeat(2,1fr)!important;gap:12px!important;background:#f8f4ec!important;border:1px solid #e5dac7!important;border-radius:6px!important;padding:16px!important;margin-bottom:18px!important}.return-info>div{min-width:0!important}.return-info span{display:block!important;color:#95866d!important;font-size:11px!important;margin-bottom:4px!important;letter-spacing:1px!important}.return-info b{display:block!important;color:#30291f!important;font-size:14px!important;font-weight:700!important;white-space:normal!important}.field input[readonly]{background:#f7f1e5!important;color:#76572d!important;font-weight:700!important}

/* 借出记录：左侧借货人，右侧货物与结算 */
.lend-entry-card{margin-bottom:18px!important}.lend-entry-card h2{margin-bottom:18px!important}.lend-entry-grid{grid-template-columns:repeat(3,minmax(180px,1fr))!important}.lend-records-card{padding:0!important;overflow:hidden!important}.lend-records-head{display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:20px!important;padding:24px 26px 18px!important;border-bottom:1px solid #ece2d3!important;background:linear-gradient(180deg,#fffdf8,#fbf7ef)!important}.lend-records-head h2{margin:0 0 5px!important}.lend-records-head p{margin:0!important;color:#938674!important;font-size:12px!important;letter-spacing:1px!important}.lend-records-head>span{font-size:12px!important;color:#76572d!important;background:#f4e7c7!important;border:1px solid #dec797!important;border-radius:3px!important;padding:7px 10px!important;white-space:nowrap!important}.lends-layout{display:grid!important;grid-template-columns:224px minmax(0,1fr)!important;min-height:540px!important}.lends-rail{padding:18px 14px 24px!important;background:#f8f4ec!important;border-right:1px solid #e8ddcb!important}.lends-rail-title{font-size:11px!important;font-weight:800!important;letter-spacing:2px!important;color:#8a7b64!important;padding:0 7px 10px!important}.lends-rail-title.people-title{margin-top:20px!important;border-top:1px solid #e8ddcb!important;padding-top:18px!important}.lends-filter{display:grid!important;gap:6px!important}.lends-filter button,.lend-person{width:100%!important;border:1px solid #e4d7c2!important;background:#fffdf8!important;border-radius:5px!important;cursor:pointer!important;text-align:left!important;color:#433d35!important}.lends-filter button{height:39px!important;padding:0 11px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;font-size:13px!important}.lends-filter button b{font-size:11px!important;color:#9a8970!important}.lends-filter button.on{background:#11100d!important;border-color:#11100d!important;color:#f4e7d2!important}.lends-filter button.on b{color:#d7bd87!important}.lends-people{display:grid!important;gap:7px!important;max-height:520px!important;overflow:auto!important;padding-right:2px!important}.lend-person{padding:11px!important}.lend-person:hover{background:#fbf6ed!important;border-color:#d4bd93!important}.lend-person.on{background:linear-gradient(135deg,#f4e7c7,#dfc27b)!important;border-color:#c6a150!important;box-shadow:0 7px 16px rgba(178,138,77,.16)!important}.lend-person span{display:block!important;font-size:14px!important;font-weight:800!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.lend-person small{display:block!important;margin-top:5px!important;color:#8b7b62!important;font-size:10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.lend-person.on small{color:#6c522d!important}.lends-empty-small{padding:14px 9px!important;color:#9b8e7c!important;font-size:12px!important}.lends-main{min-width:0!important;padding:20px 22px 28px!important;background:#fffdf8!important}.lend-party-summary{display:grid!important;grid-template-columns:1.2fr .8fr 1fr 1.4fr!important;gap:11px!important;margin-bottom:18px!important}.lend-party-summary>div{min-width:0!important;padding:13px 14px!important;border:1px solid #e8ddcb!important;border-radius:6px!important;background:#faf6ee!important}.lend-party-summary small{display:block!important;color:#94846c!important;font-size:10px!important;letter-spacing:1px!important;margin-bottom:5px!important}.lend-party-summary strong{display:block!important;font-size:18px!important;color:#2b251e!important;font-family:"STSong","Songti SC",serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.lend-party-summary .settle-sum{background:linear-gradient(135deg,#f4e7c7,#ead5a3)!important;border-color:#d4b878!important}.lend-party-summary .settle-sum strong{color:#76572d!important;font-size:22px!important}.lend-party-summary em{display:block!important;margin-top:5px!important;color:#78684e!important;font-size:10px!important;font-style:normal!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.lend-goods-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;margin:0 0 12px!important}.lend-goods-head h3{margin:0!important;font-size:17px!important;letter-spacing:1px!important;color:#28231d!important}.lend-goods-head span{font-size:11px!important;color:#9a8b76!important}.lend-goods{display:grid!important;gap:12px!important}.lend-good{border:1px solid #e3d8c7!important;border-radius:7px!important;background:#fffefb!important;box-shadow:0 8px 24px rgba(68,48,20,.045)!important;overflow:hidden!important}.lend-good-top{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding:14px 16px 12px!important;border-bottom:1px solid #eee5d9!important}.lend-good-top>div{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important}.lend-good-top b{font-size:14px!important;color:#5f513c!important;white-space:nowrap!important}.lend-good-name{max-width:55%!important;text-align:right!important;color:#26211b!important;font-size:15px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.lend-good-grid{display:grid!important;grid-template-columns:repeat(4,minmax(120px,1fr))!important;gap:12px!important;padding:15px 16px!important}.lend-good-grid>div{min-width:0!important}.lend-good-grid small{display:block!important;color:#998b76!important;font-size:10px!important;letter-spacing:1px!important;margin-bottom:5px!important}.lend-good-grid strong{display:block!important;color:#342e26!important;font-size:13px!important;white-space:normal!important;line-height:1.45!important;word-break:break-word!important}.lend-good-grid .wide{grid-column:span 2!important}.lend-good-actions{display:flex!important;justify-content:flex-end!important;gap:8px!important;padding:12px 16px!important;background:#fbf7ef!important;border-top:1px solid #eee5d9!important}.lend-good-actions button{min-width:92px!important}.lends-empty{margin:20px 0!important;padding:26px!important;border:1px dashed #dfd3c1!important;border-radius:6px!important;text-align:center!important}.sell-lend-tip{margin:0 0 16px!important;padding:11px 13px!important;background:#f7f0e2!important;border:1px solid #e5d2ac!important;border-radius:5px!important;color:#76572d!important;font-size:12px!important;line-height:1.6!important}.lend-edit-grid{grid-template-columns:repeat(2,minmax(180px,1fr))!important}.lend-edit-grid textarea{min-height:72px!important}
@media(max-width:900px){.lend-entry-grid,.lend-party-summary,.lend-good-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.lends-layout{grid-template-columns:1fr!important}.lends-rail{border-right:0!important;border-bottom:1px solid #e8ddcb!important}.lends-people{display:flex!important;max-height:none!important;overflow:auto!important}.lend-person{min-width:190px!important}.lend-goods-head{align-items:flex-start!important;flex-direction:column!important}.lend-good-name{max-width:48%!important}}
/* 借出记录与库存分类一致：始终左侧一列、右侧一列 */
.lends-layout{display:grid!important;grid-template-columns:210px minmax(0,1fr)!important;gap:18px!important;align-items:start!important;min-width:760px!important}
.lends-rail{display:block!important;width:210px!important;position:sticky!important;top:100px!important;max-height:calc(100vh - 125px)!important;overflow:auto!important;flex-wrap:nowrap!important;border-right:1px solid #e8ddcb!important}
.lends-people{display:grid!important;grid-template-columns:1fr!important;max-height:none!important;overflow:visible!important;padding-right:0!important}
.lend-person{display:block!important;width:100%!important;min-width:0!important}
/* 借出记录搜索栏 */
.lend-search-bar{padding:14px 26px!important;background:#fffdf8!important;border-bottom:1px solid #ece2d3!important}.lend-search-bar input{width:100%!important;height:44px!important;border:1px solid #d9cebd!important;border-radius:5px!important;background:#fffefb!important;padding:0 16px!important;font-size:14px!important;color:#2f2a23!important}.lend-search-bar input:focus{border-color:#b28a4d!important;box-shadow:0 0 0 3px rgba(178,138,77,.11)!important;outline:0!important}
/* “全部借货人”标题固定在左栏顶部 */
.lends-rail{display:flex!important;flex-direction:column!important;overflow:hidden!important}
.lends-rail-title{position:sticky!important;top:0!important;z-index:3!important;flex:0 0 auto!important;background:#f8f4ec!important;margin:0!important;padding:0 7px 10px!important}
.lends-people{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;padding-right:2px!important}
/* 修正：左栏整体滚动，“全部借货人”吸附在顶部 */
.lends-rail{display:block!important;height:auto!important;max-height:calc(100vh - 125px)!important;overflow:auto!important}
.lends-rail-title{position:sticky!important;top:0!important;z-index:5!important;background:#f8f4ec!important;padding:0 7px 10px!important}
.lends-people{display:grid!important;height:auto!important;max-height:none!important;overflow:visible!important;padding-right:0!important}
/* 明确限定左侧借货人栏：固定高度、内部滚动、标题吸顶 */
.lends-layout>.lends-rail{display:block!important;height:calc(100vh - 125px)!important;max-height:calc(100vh - 125px)!important;overflow-y:auto!important;overflow-x:hidden!important;position:sticky!important;top:100px!important}
.lends-layout>.lends-rail>.lends-rail-title{position:sticky!important;top:0!important;z-index:9!important;background:#f8f4ec!important;padding:0 7px 10px!important;margin:0!important}
.lends-layout>.lends-rail>.lends-people{display:grid!important;grid-template-columns:1fr!important;height:auto!important;max-height:none!important;overflow:visible!important}
/* 宝石库存编辑：重量与田字格图片 */
.edit-item-context{display:flex!important;align-items:center!important;gap:12px!important;margin:-8px 0 20px!important;padding-bottom:14px!important;border-bottom:1px solid #e9dfd0!important}.edit-item-context strong{font-size:17px!important;color:#28231d!important}.edit-item-context span{font-size:12px!important;color:#8d7c63!important;background:#f6efe2!important;border:1px solid #e5d5b8!important;border-radius:3px!important;padding:4px 8px!important}.edit-item-fields{display:grid!important;grid-template-columns:210px!important;margin-bottom:20px!important}.edit-item-media{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px!important}.edit-item-media .image-grid{grid-template-columns:repeat(2,78px)!important;gap:9px!important}.edit-item-media .image-tile{width:78px!important;height:78px!important}
@media(max-width:620px){.edit-item-media{grid-template-columns:1fr!important}.edit-item-fields{grid-template-columns:1fr!important}}
/* 库存列表直接修改克拉与田字格加宝石图 */
.weight-direct{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:82px!important;height:34px!important;border:1px dashed #cdb888!important;border-radius:5px!important;background:#fffaf0!important;color:#76572d!important;font-weight:800!important;cursor:pointer!important;padding:0 9px!important}.weight-direct:hover{background:#f7edd9!important;border-color:#b28a4d!important}.weight-edit-inline{display:flex!important;align-items:center!important;gap:6px!important}.weight-edit-inline input{width:88px!important;height:34px!important;border:1px solid #c9a968!important;border-radius:5px!important;padding:0 8px!important;background:#fffefb!important}.weight-edit-inline button{height:34px!important;padding:0 10px!important}.inventory-image-grid{display:grid!important;grid-template-columns:repeat(2,46px)!important;gap:5px!important;width:97px!important}.inventory-image-grid .thumb,.inventory-image-grid .mini-add{width:46px!important;height:46px!important;margin:0!important}.inventory-image-grid .mini-add{display:grid!important;place-items:center!important;border:1px dashed #cdb888!important;border-radius:4px!important;background:#fffaf0!important;color:#8c6a34!important;font-size:25px!important;font-weight:300!important;padding:0!important;cursor:pointer!important}.inventory-image-grid .mini-add:hover{background:#f7edd9!important;border-color:#b28a4d!important}
/* 库存图片重选 */
.inventory-image-tile{position:relative!important;width:46px!important;height:46px!important;overflow:hidden!important;border-radius:4px!important}.inventory-image-tile .thumb{display:block!important;width:46px!important;height:46px!important;margin:0!important}.image-replace{position:absolute!important;left:0!important;right:0!important;bottom:0!important;height:17px!important;border:0!important;background:rgba(17,16,13,.78)!important;color:#fff!important;font-size:9px!important;line-height:17px!important;padding:0!important;cursor:pointer!important;letter-spacing:1px!important}.image-replace:hover{background:#76572d!important}
/* 库存列表所有可编辑字段 */
.inline-text,.inline-number,.lend-link{border:0!important;background:transparent!important;color:#302d27!important;padding:3px 4px!important;font:inherit!important;cursor:pointer!important;border-radius:3px!important;text-align:left!important}.inline-text:hover,.inline-number:hover,.lend-link:hover{background:#f5eddf!important;color:#76572d!important;text-decoration:underline!important;text-underline-offset:3px!important}.name-inline{max-width:210px!important;white-space:normal!important;line-height:1.4!important;text-align:left!important}.inline-number{font-weight:700!important;color:#76572d!important}.field-edit-inline{display:flex!important;align-items:center!important;gap:5px!important}.field-edit-inline input{width:120px!important;height:34px!important;border:1px solid #c9a968!important;border-radius:5px!important;padding:0 8px!important;background:#fffefb!important}.field-edit-inline button{height:34px!important;padding:0 9px!important}.lend-link{color:#9a6b20!important;font-weight:700!important}
/* 借货图片与归还图片 */
.lend-image-field{grid-column:1/-1!important;margin-top:4px!important}.lend-goods-media{display:flex!important;gap:28px!important;padding:14px 16px!important;border-top:1px solid #eee5d9!important;background:#fffaf2!important}.lend-goods-media section{min-width:0!important}.lend-goods-media small{display:block!important;color:#94846c!important;font-size:10px!important;letter-spacing:1px!important;margin-bottom:7px!important}.lend-media-grid{display:flex!important;gap:7px!important;flex-wrap:wrap!important}.lend-media-grid img{width:54px!important;height:54px!important;object-fit:cover!important;border:1px solid #d8cdbb!important;border-radius:4px!important;cursor:zoom-in!important}.lend-return-media{display:grid!important;grid-template-columns:1.2fr 1fr!important;gap:18px!important;margin:0 0 18px!important;padding:14px!important;border:1px solid #e5dac7!important;border-radius:6px!important;background:#fbf7ef!important}.lend-return-media>section label,.lend-return-media .field label{display:block!important;color:#746c61!important;font-size:12px!important;margin-bottom:8px!important}.lend-return-media em{color:#9a8e7e!important;font-size:12px!important;font-style:normal!important}.lend-return-media .image-grid{grid-template-columns:repeat(2,68px)!important}.lend-return-media .image-tile{width:68px!important;height:68px!important}
/* 库存成本克拉价 */
.cost-per-carat{font-weight:800!important;color:#8a6428!important;white-space:nowrap!important}