:root{
--ink:#0f172a; --text:#1e293b; --muted:#5b6b80; --line:#d6dee8; --line-strong:#c2cdda;
--bg:#f4f6fa; --card:#ffffff; --primary:#1d4ed8; --primary-soft:#eff6ff;
--ok:#047857; --ok-soft:#ecfdf5; --warn:#b45309; --warn-soft:#fffbeb;
--danger:#b91c1c; --danger-soft:#fef2f2; --radius:10px;
--shadow:0 1px 2px rgba(15,23,42,.05), 0 8px 24px rgba(15,23,42,.05);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
background:var(--bg); color:var(--text); font-size:17px; line-height:1.6;
-webkit-font-smoothing:antialiased;
}
a{color:var(--primary);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{margin:0;font-weight:600;color:var(--ink)}
.layout{display:flex;min-height:100vh}
.sidebar{
width:224px;flex:0 0 224px;background:var(--card);border-right:1px solid var(--line);
display:flex;flex-direction:column;position:sticky;top:0;height:100vh;z-index:40;
}
.brand{display:flex;gap:10px;align-items:center;padding:18px 16px 14px}
.brand-mark{
width:36px;height:36px;border-radius:9px;background:var(--ink);color:#fff;
display:grid;place-items:center;font-weight:700;font-size:16px;letter-spacing:0;
}
.brand-logo{width:40px;height:40px;object-fit:contain;flex:0 0 40px}
.login-logo{width:170px;height:auto;display:block;margin:0 auto}
.brand-name{font-weight:700;color:var(--ink);font-size:17px}
.brand-sub{font-size:15px;color:var(--muted);letter-spacing:.04em}
.nav{flex:1;overflow-y:auto;padding:6px 10px 12px}
.nav-item{
display:block;padding:8px 12px;margin:2px 0;border-radius:8px;color:var(--text);
font-size:17px;text-decoration:none;border:1px solid transparent;
}
.nav-item:hover{background:#f1f5f9;text-decoration:none}
.nav-item.active{background:var(--primary-soft);color:var(--primary);font-weight:600;border-color:#dbeafe}
.sidebar-foot{border-top:1px solid var(--line);padding:12px 14px;display:flex;align-items:center;gap:8px;justify-content:space-between}
.who-name{font-size:16px;font-weight:600;color:var(--ink)}
.who-role{font-size:15px;color:var(--muted)}
.main{flex:1;min-width:0;display:flex;flex-direction:column}
.topbar{
position:sticky;top:0;z-index:30;background:rgba(245,247,251,.92);backdrop-filter:blur(8px);
display:flex;align-items:center;gap:12px;padding:14px 24px;border-bottom:1px solid var(--line);
}
.page-title{font-size:17px;flex:1;min-width:0}
.topbar-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.menu-btn{
display:none;background:var(--card);border:1px solid var(--line);border-radius:8px;
width:34px;height:34px;font-size:16px;cursor:pointer;color:var(--ink);
}
.content{padding:20px 24px 48px;max-width:1400px;width:100%}
.overlay{display:none;position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:35}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.card-pad{padding:16px 18px}
.section{margin-bottom:18px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.section-head h2{font-size:17px}
.muted{color:var(--muted)}
.small{font-size:16px}
.tiny{font-size:13px}
.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.num{font-variant-numeric:tabular-nums}
.right{text-align:right}
.center{text-align:center}
.nowrap{white-space:nowrap}
.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.spacer{flex:1}
.btn{
display:inline-flex;align-items:center;justify-content:center;gap:6px;
padding:8px 14px;border-radius:8px;border:1px solid var(--line);background:var(--card);
color:var(--text);font-size:17px;cursor:pointer;font-family:inherit;line-height:1.2;
transition:background .15s,border-color .15s,opacity .15s;
}
.btn:hover{background:#f1f5f9;text-decoration:none}
.btn-primary{background:var(--primary);border-color:var(--primary);color:#fff}
.btn-primary:hover{background:#1e40af}
.btn-danger{background:var(--danger-soft);border-color:#fecaca;color:var(--danger)}
.btn-danger:hover{background:#fee2e2}
.btn-ghost{background:transparent;border-color:transparent;color:var(--muted)}
.btn-ghost:hover{background:#f1f5f9;color:var(--ink)}
.btn-sm{padding:5px 10px;font-size:16px;border-radius:7px}
.btn-lg{padding:11px 20px;font-size:17px}
.btn-block{width:100%}
.btn[disabled]{opacity:.5;cursor:not-allowed}
label{display:block;font-size:16px;color:var(--muted);margin-bottom:4px}
input,select,textarea{
width:100%;padding:8px 10px;border:1px solid var(--line-strong);border-radius:8px;
font-size:17px;font-family:inherit;color:var(--text);background:#fff;
}
input:focus,select:focus,textarea:focus{outline:2px solid #bfdbfe;border-color:#93c5fd;outline-offset:0}
textarea{min-height:72px;resize:vertical}
.field{margin-bottom:12px}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.check{display:flex;align-items:center;gap:8px;font-size:16px;color:var(--text)}
.check input{width:auto}
.req{color:#dc2626;font-weight:600}
label .req{margin-left:2px}
.req-field{display:inline-flex;align-items:center;gap:4px;min-width:0;max-width:100%}
.req-field input{flex:1 1 auto;min-width:0;width:100%}
.fee-form{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;margin-top:12px}
.table-wrap{overflow-x:auto;border-radius:var(--radius)}
table.data{width:100%;border-collapse:collapse;background:var(--card);font-size:16px}
table.data th,table.data td{padding:9px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle;white-space:nowrap}
table.data th{font-size:15px;color:var(--muted);font-weight:500;background:#f0f4f9;position:sticky;top:0;border-bottom:1px solid var(--line-strong)}
table.data tr:last-child td{border-bottom:none}
table.data tbody tr:hover{background:#fafcff}
table.data td.wrap{white-space:normal;min-width:180px}
.badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:13px;border:1px solid transparent;line-height:1.6}
.badge-gray{background:#f1f5f9;color:#475569;border-color:#e2e8f0}
.badge-blue{background:var(--primary-soft);color:var(--primary);border-color:#dbeafe}
.badge-green{background:var(--ok-soft);color:var(--ok);border-color:#d1fae5}
.badge-amber{background:var(--warn-soft);color:var(--warn);border-color:#fde68a}
.badge-red{background:var(--danger-soft);color:var(--danger);border-color:#fecaca}
.flash-wrap{max-width:1400px;width:100%;padding:0 24px}
.flash{padding:10px 14px;border-radius:8px;margin:12px 0 0;font-size:17px}
.flash-ok{background:var(--ok-soft);color:var(--ok);border:1px solid #d1fae5}
.flash-error{background:var(--danger-soft);color:var(--danger);border:1px solid #fecaca}
.flash-warn{background:var(--warn-soft);color:var(--warn);border:1px solid #fde68a}
.empty{padding:36px 16px;text-align:center;color:var(--muted);font-size:16px}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.stat{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:14px 16px;box-shadow:var(--shadow)}
.stat-label{font-size:13px;color:var(--muted);margin-bottom:6px}
.stat-value{font-size:24px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums;line-height:1.2}
.stat-sub{font-size:13px;color:var(--muted);margin-top:4px}
.stat.warn .stat-value{color:var(--warn)}
.stat.danger .stat-value{color:var(--danger)}
.login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px;background:
radial-gradient(900px 500px at 10% 0%, #e0ecff 0%, transparent 60%),
radial-gradient(700px 400px at 100% 100%, #eef2ff 0%, transparent 55%), var(--bg)}
.login-card{width:100%;max-width:380px;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:32px 28px;box-shadow:var(--shadow)}
.login-card-wide{max-width:760px;display:grid;grid-template-columns:1fr 210px;gap:28px;align-items:start}
.login-side{border-left:1px solid var(--line);padding-left:24px;text-align:center}
.qr-img{width:170px;height:170px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:8px}
@media (max-width:760px){
.login-card-wide{grid-template-columns:1fr;max-width:420px}
.login-side{border-left:none;border-top:1px solid var(--line);padding-left:0;padding-top:18px;display:flex;flex-direction:column;align-items:center}
}
.login-brand{display:flex;align-items:center;gap:10px;margin-bottom:22px}
.login-title{font-size:19px;font-weight:700;color:var(--ink)}
.login-sub{font-size:13px;color:var(--muted)}
.pos-grid{display:grid;grid-template-columns:1fr 340px;gap:16px;align-items:start}
.line-table input{padding:6px 8px;font-size:16px}
.line-table td{padding:6px 8px}
.search-box{position:relative}
.dropdown{
position:absolute;left:0;right:0;top:calc(100% + 4px);background:#fff;border:1px solid var(--line);
border-radius:8px;box-shadow:0 12px 30px rgba(15,23,42,.12);max-height:320px;overflow:auto;z-index:50;display:none;
}
.dropdown.open{display:block}
.dd-item{padding:9px 12px;cursor:pointer;border-bottom:1px solid #f1f5f9;font-size:16px}
.dd-item:last-child{border-bottom:none}
.dd-item:hover,.dd-item.active{background:var(--primary-soft)}
.dd-title{font-weight:600;color:var(--ink)}
.dd-meta{font-size:15px;color:var(--muted)}
.sn-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.sn-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border:1px solid var(--line);border-radius:6px;font-size:15px;background:#fff;cursor:pointer}
.sn-chip input{width:auto}
.summary-line{display:flex;justify-content:space-between;padding:5px 0;font-size:16px}
.total-amount{font-size:18px;font-weight:700;color:var(--ink)}
.summary-line.total{font-size:18px;font-weight:700;color:var(--ink);border-top:1px dashed var(--line);margin-top:6px;padding-top:10px}
.pay-row{display:grid;grid-template-columns:90px 1fr 32px;gap:6px;margin-bottom:6px}
.detail-grid{display:grid;grid-template-columns:1fr 320px;gap:16px;align-items:start}
.kv{display:grid;grid-template-columns:max-content 1fr;gap:6px 12px;font-size:17px;padding:3px 0}
.kv dt{color:var(--muted)}
.kv dd{margin:0;color:var(--text)}
.timeline{list-style:none;margin:0;padding:0}
.timeline li{position:relative;padding:0 0 14px 18px;border-left:2px solid var(--line);margin-left:6px}
.timeline li:last-child{border-left-color:transparent;padding-bottom:0}
.timeline li::before{content:"";position:absolute;left:-5px;top:4px;width:8px;height:8px;border-radius:50%;background:#cbd5e1}
.timeline li.done::before{background:var(--ok)}
.timeline .t-title{font-size:16px;font-weight:600;color:var(--ink)}
.timeline .t-meta{font-size:15px;color:var(--muted)}
.print-page{max-width:760px;margin:24px auto;background:#fff;padding:28px 32px;border:1px solid var(--line)}
.print-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:2px solid var(--ink);padding-bottom:12px;margin-bottom:16px}
.print-title{font-size:20px;font-weight:700}
.toolbar{max-width:760px;margin:16px auto 0;display:flex;gap:8px;justify-content:flex-end}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:16px;overflow-x:auto;
position:sticky;top:var(--topbar-h,64px);z-index:20;background:var(--bg);
box-shadow:0 -40px 0 0 var(--bg)}
.tab{padding:8px 14px;border:none;background:none;cursor:pointer;font-size:17px;color:var(--muted);border-bottom:2px solid transparent;white-space:nowrap;font-family:inherit}
.tab.active{color:var(--primary);border-bottom-color:var(--primary);font-weight:600}
.cols-2{display:grid;grid-template-columns:1.6fr 1fr;gap:16px;align-items:start}
@media (max-width:980px){.cols-2{grid-template-columns:1fr}}
.modal{display:none;position:fixed;inset:0;z-index:100;background:rgba(15,23,42,.5);align-items:center;justify-content:center;padding:16px}
.modal.open{display:flex}
.modal-card{background:#fff;border-radius:12px;max-width:540px;width:100%;max-height:82vh;display:flex;flex-direction:column;padding:18px}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.modal-list{overflow:auto;margin:12px 0;flex:1;min-height:80px}
.modal-foot{display:flex;gap:8px;justify-content:flex-end;align-items:center}
.mobilenav{display:none}
@media (max-width:760px){
.mobilenav{
display:flex;position:fixed;left:0;right:0;bottom:0;z-index:46;background:#cdd9e6;
border-top:1px solid #b9c8d8;padding-bottom:env(safe-area-inset-bottom);
box-shadow:0 -2px 12px rgba(15,23,42,.07);
}
.mobilenav a,.mobilenav button{
flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
height:56px;border:none;background:none;font-size:15px;color:var(--muted);
text-decoration:none;font-family:inherit;cursor:pointer;
}
.mobilenav a.active,.mobilenav button.active{color:var(--primary);font-weight:600}
.mn-icon{width:22px;height:22px}
.content{padding-bottom:calc(96px + env(safe-area-inset-bottom))}
.sidebar{z-index:60}
.overlay{z-index:55}
.topbar{flex-wrap:wrap;row-gap:8px;padding:10px 14px}
.page-title{font-size:16px}
.topbar-actions{gap:6px;flex-wrap:wrap}
.topbar-actions .btn{padding:7px 10px;font-size:16px;min-height:36px}
.card-pad{padding:14px}
.section-head h2{font-size:17px}
input,select,textarea{font-size:17px;padding:9px 10px}
input:focus,select:focus,textarea:focus{font-size:16px}
label{font-size:13px}
.btn{min-height:40px}
.btn-sm{min-height:32px;padding:6px 10px;font-size:16px}
table.data{font-size:16px}
table.data th,table.data td{padding:8px 9px}
.table-wrap{-webkit-overflow-scrolling:touch}
.stats{gap:8px}
.stat{padding:12px}
.stat-value{font-size:20px}
.summary-card{position:static!important}
.flash-wrap{padding:0 14px}
.tabs{margin-bottom:12px}
.tab{padding:8px 12px}
.summary-line.total{font-size:18px}
.kv{grid-template-columns:max-content 1fr;gap:6px 12px}
.login-card{padding:26px 20px}
}
@media print{
.mobilenav{display:none!important}
}
@media (max-width:980px){
.pos-grid,.detail-grid{grid-template-columns:1fr}
.stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
.sidebar{position:fixed;left:0;top:0;bottom:0;transform:translateX(-100%);transition:transform .2s;width:250px;height:100dvh}
.sidebar.open{transform:translateX(0)}
.overlay.open{display:block}
.menu-btn{display:inline-flex;align-items:center;justify-content:center}
.topbar{padding:10px 14px}
.content{padding:14px 14px 40px}
.flash-wrap{padding:0 14px}
.page-title{font-size:16px}
.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}
.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.stat-value{font-size:20px}
table.data th,table.data td{padding:8px 10px}
.print-page{margin:0;border:none;padding:16px}
.toolbar{max-width:none;padding:0 14px}
}
@media print{
.sidebar,.topbar,.flash-wrap,.toolbar,.no-print{display:none!important}
body{background:#fff}
.content{padding:0;max-width:none}
.print-page{border:none;margin:0;padding:0;max-width:none}
}
@media (max-width:760px){
.content{padding-bottom:calc(96px + env(safe-area-inset-bottom))}
.sidebar{z-index:60}
.overlay{z-index:55}
}
@media (max-width:760px){
.cards-wrap{border:none;background:transparent;box-shadow:none;overflow:visible}
table.data.cards{display:block;background:transparent;border:none}
table.data.cards thead{display:none}
table.data.cards tbody{display:block}
table.data.cards tr{display:block;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-bottom:10px;box-shadow:var(--shadow)}
table.data.cards td{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:4px 0;border:none;white-space:normal;text-align:right;font-size:16px}
table.data.cards td::before{content:attr(data-label);color:var(--muted);font-size:15px;flex:0 0 auto;text-align:left}
table.data.cards td:empty{display:none}
table.data.cards td.cell-main{display:block;text-align:left;font-size:17px;font-weight:600;padding:0 0 8px;border-bottom:1px solid #eef2f7;margin-bottom:6px;white-space:normal}
table.data.cards td.cell-main::before{display:none}
table.data.cards td.cell-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:10px;margin-top:6px;border-top:1px solid #eef2f7}
table.data.cards td.cell-actions::before{display:none}
table.data.cards td.cell-form{display:block;text-align:left;padding-top:8px;margin-top:6px;border-top:1px solid #eef2f7}
table.data.cards td.cell-form::before{display:block;margin-bottom:6px}
table.data.cards td.empty{display:block;text-align:center;color:var(--muted);padding:18px 0}
table.data.cards td.empty::before{display:none}
}
@media (max-width:760px){
.card form.row{display:block}
.card form.row > *:not([type="hidden"]){
width:100%!important;max-width:none!important;margin:0 0 8px 0;
}
.card form.row > label{display:block;margin-bottom:4px}
.card form.row > .spacer{display:none}
.card form.row > button,.card form.row > .btn{width:100%}
.cards-wrap{margin-top:4px}
table.data.cards tbody tr:first-child{margin-top:2px}
table.data.cards td input,table.data.cards td select{
flex:1;min-width:0;width:auto!important;max-width:none!important;
}
table.data.cards td.cell-actions{flex-wrap:wrap}
table.data.cards td{gap:10px}
.mono,.scan-url{word-break:break-all}
.qr-row{flex-direction:column!important;align-items:stretch!important;gap:14px!important}
.qr-row img{align-self:center}
.filter-card label{font-size:13px}
.card form.row > strong{display:block;text-align:right;font-size:18px;margin-top:2px}
}
@media (max-width:760px){
form.card.row{display:block}
form.card.row > *:not([type="hidden"]){
width:100%!important;max-width:none!important;margin:0 0 8px 0;
}
form.card.row > label{display:block}
form.card.row > .spacer{display:none}
form.card.row > button,form.card.row > .btn{width:100%}
form.card.row > strong{display:block;text-align:right;font-size:18px}
}
@media (max-width:760px){
table.data.cards td::before{min-width:56px}
table.data.cards td.cell-actions .btn{min-height:34px}
}
@media (max-width:760px){
html,body{overflow-x:hidden;overflow-x:clip}
.pos-grid,.detail-grid,.cols-2{grid-template-columns:minmax(0,1fr)!important}
.pos-grid > *,.detail-grid > *,.cols-2 > *{min-width:0}
.table-wrap{max-width:100%}
.topbar{background:var(--bg);backdrop-filter:none;border-bottom:1px solid var(--line)}
.hide-sm{display:none!important}
}
@media (max-width:760px){
.pc-only{display:none!important}
}
.pick{display:flex;align-items:center;gap:8px;margin:0;font-weight:600;font-size:13px;color:var(--text)}
.pick input{width:auto;flex:0 0 auto;margin:0}
table.data.backup-list td{padding-top:7px;padding-bottom:7px;vertical-align:middle}
table.data.backup-list td.cell-main{white-space:normal;min-width:220px}
.basic-item{display:flex;align-items:center;gap:6px;padding:4px 0;border-bottom:1px solid #f1f5f9}
.basic-form{display:flex;align-items:center;gap:6px;flex:1 1 auto;min-width:0;margin:0}
.basic-form input{flex:1 1 auto;width:auto;min-width:0;padding:6px 8px}
.basic-item .btn{flex:0 0 auto;padding:5px 9px;white-space:nowrap}
.basic-add{display:flex;align-items:center;gap:6px;margin-bottom:10px}
.basic-add input{flex:1 1 auto;width:auto;min-width:0}
.basic-add .btn{flex:0 0 auto}
.user-save{display:flex;align-items:center;gap:6px;margin:0}
.user-save input{flex:1 1 auto;width:auto;min-width:0;max-width:none}
.user-save .btn{flex:0 0 auto}
.pw{max-width:130px}
@media (max-width:760px){
table.data.cards.backup-list tr{padding:9px 12px;margin-bottom:8px}
table.data.cards.backup-list td.cell-main{padding:0;margin:0;border:none;font-size:13px;line-height:1.5}
table.data.cards.backup-list td.cell-actions{padding:8px 0 0;margin-top:4px;gap:6px;border-top:1px solid #eef2f7}
table.data.cards.backup-list td.cell-actions .btn{min-height:30px;padding:4px 10px;font-size:13px}
table.data.cards td input.backup-check{flex:0 0 auto;width:auto;min-width:0;margin:0}
.basic-item{padding:5px 0}
.basic-item .btn{min-height:32px;padding:5px 10px}
.basic-form input{font-size:16px;padding:6px 8px}
}
@media (max-width:760px){
.line-wrap{border:none!important;border-radius:0!important;overflow:visible}
table.data.line-table{display:block}
table.data.line-table thead{display:none}
table.data.line-table tbody{display:block}
table.data.line-table tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 10px;
background:var(--card);border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin-bottom:10px}
table.data.line-table tr:hover{background:var(--card)}
table.data.line-table td{border:none;padding:0;white-space:normal;text-align:left;min-width:0}
table.data.line-table td::before{content:attr(data-label);display:block;font-size:11px;color:var(--muted);margin-bottom:2px}
table.data.line-table td:not([data-label])::before{display:none}
table.data.line-table td:nth-child(1){grid-column:1/-1}
table.data.line-table td:nth-child(5){grid-column:1/3}
table.data.line-table td:nth-child(6){grid-column:3/4;text-align:right;align-self:end}
table.data.line-table td input{width:100%!important}
table.data.line-table td textarea{width:100%!important;min-width:0!important}
table.data.line-table td .btn{padding:6px 10px;font-size:13px}
table.data.line-table{font-size:17px}
table.data.line-table td{font-size:17px;line-height:1.5}
table.data.line-table td::before{font-size:13px;margin-bottom:3px}
table.data.line-table td .tiny{font-size:13px;line-height:1.4}
table.data.line-table td input{font-size:16px;padding:8px 10px}
table.data.line-table td .btn{font-size:16px;padding:8px 12px}
table.data.line-table td.amount{font-weight:600}
.line-name{font-weight:600;font-size:16px;line-height:1.35}
}
.quick-block{margin-top:12px;padding-top:12px;border-top:1px dashed var(--line)}
.quick-block .quick-label{font-size:11px;color:var(--muted);margin-bottom:6px}
.quick-picks{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.chip{border:1px solid var(--line);background:var(--card);border-radius:999px;padding:4px 9px;
font-size:15px;line-height:1.25;cursor:pointer;font-family:inherit;color:var(--text)}
.chip:hover{background:var(--primary-soft);border-color:#bfdbfe}
.grid-4.purchase-meta{margin-bottom:0}
@media (max-width:760px){
.grid-4.purchase-meta{grid-template-columns:1fr 1fr;gap:10px}
.grid-4.purchase-meta .field{margin-bottom:0}
.chip{font-size:15px;padding:5px 10px}
}
.po-lines{display:flex;flex-direction:column;gap:10px}
.po-empty{border:1px dashed var(--line-strong);border-radius:10px;padding:20px 14px;text-align:center;color:var(--muted);font-size:16px}
.po-item{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:12px 14px}
.po-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.po-title{min-width:0}
.po-name{font-size:16px;font-weight:600;color:var(--ink);line-height:1.35}
.po-sub{font-size:15px;color:var(--muted);margin-top:2px}
.po-side{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.po-amount{font-size:16px;font-weight:600;color:var(--ink);white-space:nowrap}
.po-del{background:none;border:none;padding:2px 0;color:var(--danger);font-size:13px;cursor:pointer;font-family:inherit}
.po-del:hover{text-decoration:underline}
.po-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.po-fields-single{grid-template-columns:1fr}
.po-field{display:block;margin:0}
.po-field span{display:block;font-size:15px;color:var(--muted);margin-bottom:4px}
.po-field input{width:100%}
.po-sn{margin-top:10px}
.po-sn .po-label{font-size:15px;color:var(--muted);margin-bottom:4px}
.po-sn textarea{width:100%;min-height:76px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:16px}
.po-hint{font-size:15px;color:var(--muted);margin-top:4px}
.po-total{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.po-total-num{display:flex;justify-content:space-between;align-items:baseline;font-size:17px}
.po-total-num strong{font-size:20px;color:var(--ink)}
.chip-sub{color:var(--muted);font-size:11px;margin-left:4px}
.chip-plus{color:var(--primary);font-weight:700;margin-right:3px;font-size:15px}
@media (min-width:761px){
.po-fields{grid-template-columns:190px 190px}
.po-total{flex-direction:row;align-items:center;justify-content:flex-end;gap:16px}
.po-total .btn{width:auto;min-width:150px}
}
.po-amount .po-amount-empty{font-size:15px;font-weight:400;color:var(--muted)}
a.stat-link{display:block;color:inherit;text-decoration:none}
a.stat-link:hover{border-color:#bfdbfe;box-shadow:0 2px 10px rgba(29,78,216,.10);text-decoration:none}
a.stat-link .stat-sub{color:var(--primary)}
a.todo-link{display:flex;justify-content:space-between;align-items:center;padding:7px 0;color:inherit;
text-decoration:none;border-bottom:1px solid #f1f5f9}
a.todo-link:last-of-type{border-bottom:none}
a.todo-link:hover{color:var(--primary);text-decoration:none}
.due{color:var(--danger);font-weight:700}
.badges{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
td[data-label] .badges{justify-content:flex-end}
a.todo-link.todo-alert span{color:var(--danger);font-weight:700}
a.todo-link.todo-alert strong{color:var(--danger)}
.section-head h2 .hint{font-size:15px;font-weight:400;color:var(--muted);margin-left:6px}
@media (max-width:760px){
form.card.row.sales-filters{display:grid;grid-template-columns:1fr 1fr;gap:8px}
form.card.row.sales-filters > input[name="q"]{grid-column:1 / -1;margin:0}
form.card.row.sales-filters > select{margin:0;max-width:none !important}
form.card.row.sales-filters > .date-range{grid-column:1 / -1;display:flex;align-items:center;
gap:6px;min-width:0}
form.card.row.sales-filters > .date-range input{flex:1 1 0;min-width:0;max-width:none !important;
margin:0;padding-left:8px;padding-right:4px}
form.card.row.sales-filters > .date-range span{flex:0 0 auto;margin:0}
form.card.row.sales-filters > button{grid-column:2 / 3;margin:0}
form.card.row.sales-filters > a.btn{grid-column:1 / -1;margin:0}
}
.danger-row{display:flex;justify-content:space-between;align-items:center;gap:14px;
padding:12px 0;border-bottom:1px solid #f1f5f9}
.danger-row .btn{flex:0 0 auto;white-space:nowrap}
.danger-title{font-weight:600;color:var(--ink);display:flex;align-items:center;gap:8px}
@media (max-width:760px){
.danger-row{flex-direction:column;align-items:flex-start;gap:8px}
.danger-row .btn{width:100%}
}
.clear-list{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.clear-item{display:flex;align-items:flex-start;gap:8px;padding:8px 10px;border:1px solid var(--line);
border-radius:8px;background:#fbfdff;font-size:16px;line-height:1.45;cursor:pointer}
.clear-item input{margin-top:3px;flex:0 0 auto}
.clear-item .tiny{display:block;margin-top:2px}
.clear-item:has(input:disabled){background:#f8fafc;color:var(--muted);cursor:default}
.danger-zone > summary{display:flex;justify-content:space-between;align-items:center;gap:10px;
cursor:pointer;list-style:none;color:var(--muted);font-size:16px;font-weight:600;
padding:12px 14px;border:1px dashed var(--line);border-radius:10px;background:#f8fafc}
.danger-zone > summary::-webkit-details-marker{display:none}
.danger-zone > summary:hover{color:var(--ink);background:#f1f5f9}
.danger-zone .danger-zone-tip{font-size:15px;font-weight:400}
.danger-zone[open] > summary{color:var(--danger);border-style:solid;border-color:#fecaca;
background:#fef2f2;border-radius:10px 10px 0 0;margin-bottom:0}
.danger-zone .danger-body{border:1px solid #fecaca;border-top:none;border-radius:0 0 10px 10px;padding:2px 14px}
.hold-btn{position:relative;overflow:hidden;user-select:none;-webkit-user-select:none;
-webkit-touch-callout:none;touch-action:manipulation}
.danger-zone .when-open{display:none}
.danger-zone[open] .when-closed{display:none}
.danger-zone[open] .when-open{display:inline}
.danger-zone > summary{justify-content:flex-start}
.danger-zone .danger-zone-tip{display:none}
.hold-btn.holding{background:#fee2e2;border-color:#fca5a5;color:#b91c1c;font-weight:700}
.flash{scroll-margin-top:calc(var(--topbar-h,64px) + 12px)}
.flash-wrap{position:sticky;top:var(--topbar-h,56px);z-index:29;background:var(--bg)}
.flash-wrap:empty{display:none}
.user-cards{display:flex;flex-direction:column;gap:12px}
.user-card{border:1px solid var(--line);border-radius:10px;padding:14px 16px;background:var(--card)}
.uc-head{display:flex;align-items:center;justify-content:space-between;gap:10px;
padding-bottom:10px;margin-bottom:12px;border-bottom:1px solid #f1f5f9}
.uc-title{font-weight:600;font-size:17px;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.uc-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 12px}
.uc-grid .field{margin:0}
.uc-actions{display:flex;align-items:center;gap:8px;margin-top:12px;justify-content:flex-end;flex-wrap:wrap}
.uc-actions form{display:inline-flex;margin:0}
@media (max-width:1100px){ .uc-grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:560px){
.uc-grid{grid-template-columns:1fr}
.uc-actions{justify-content:flex-start}
.uc-actions .btn{flex:1 1 auto}
}
.pc-name{font-weight:600;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.stock-low{color:var(--danger);font-weight:700}
.section-head h2{white-space:nowrap;flex:0 0 auto}
.section-head > .tiny{flex:1 1 auto;text-align:right;min-width:0}
.section-head > .badge,
.section-head > .badges{flex:0 0 auto;text-align:right}
.badge{flex:0 0 auto;white-space:nowrap}
.tabs{scrollbar-width:none;-ms-overflow-style:none}
.tabs::-webkit-scrollbar{display:none;height:0}
.btn-pale-yellow{background:#fef9c3;border-color:#fde68a;color:#92400e}
.btn-pale-yellow:hover{background:#fef08a}
.btn-pale-blue{background:#dbeafe;border-color:#bfdbfe;color:#1d4ed8}
.btn-pale-blue:hover{background:#bfdbfe}
.detail-page{display:flex;flex-direction:column;gap:14px;max-width:900px}
.detail-page > .card{margin:0}
.pay-collapse > summary{list-style:none;cursor:pointer}
.pay-collapse > summary::-webkit-details-marker{display:none}
.pay-collapse[open] > summary{margin-bottom:8px}
@media (max-width:760px){
table.data.cards td.inv-head{
background:linear-gradient(180deg,#f7fbff 0%,#e8f1ff 100%);
margin:-12px -14px 8px;padding:12px 14px;
border-bottom:1px solid #dbe7f7;border-radius:11px 11px 0 0;
}
table.data.cards td.inv-head .pc-name{font-size:16px}
}
@media (max-width:560px){
.grid-4.purchase-meta{grid-template-columns:1fr}
}
@media (max-width:760px){
table.data.cards td.cell-main{
background:linear-gradient(180deg,#f7fbff 0%,#e9f2ff 100%);
margin:-12px -14px 8px;padding:12px 14px;
border-bottom:1px solid #dbe7f7;border-radius:11px 11px 0 0;
}
table.data.cards td.cell-main .tiny{color:#64748b}
table.data.cards.backup-list td.cell-main{
background:none;margin:0;padding:0;border-bottom:none;border-radius:0;
}
}
.kv dt{white-space:nowrap}
.mat-row{display:grid;grid-template-columns:1.6fr .8fr .8fr 1fr auto;gap:6px;align-items:center;margin-bottom:6px}
.mat-row input{width:100%;min-width:0}
.mat-row .btn{padding:6px 10px}
@media (max-width:560px){
.mat-row{grid-template-columns:1.4fr .8fr .8fr 1fr auto;gap:5px}
.mat-row input{padding:8px 8px;font-size:16px}
}
.timeline{position:relative;padding-left:18px}
.timeline::before{content:'';position:absolute;left:5px;top:6px;bottom:6px;width:2px;background:#e2e8f0}
.tl-item{position:relative;padding:0 0 14px}
.tl-item:last-child{padding-bottom:0}
.tl-dot{position:absolute;left:-17px;top:5px;width:10px;height:10px;border-radius:50%;
background:#fff;border:2px solid var(--primary)}
.tl-head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.tl-detail{margin-top:3px;font-size:16px;color:#334155;white-space:pre-wrap;word-break:break-word}
.btn-pale-green{background:#ecfdf5;border-color:#a7f3d0;color:#047857}
.btn-pale-green:hover{background:#d1fae5;border-color:#6ee7b7}
.inst-fields{display:none;gap:8px;flex-wrap:wrap;width:100%}
.inst-fields input{flex:1 1 120px;min-width:0}
.pay-amount-row{display:flex;gap:8px;align-items:center;width:100%}
.pay-amount-row .req-field{flex:1 1 auto;min-width:0;max-width:none}
.pay-amount-row .btn{flex:0 0 auto;white-space:nowrap}
.topbar .page-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.menu-btn{font-size:18px;line-height:1;display:inline-flex;align-items:center;justify-content:center}
.menu-btn:active{background:#eef2ff}
.brand-sub .ver{color:var(--muted);font-size:11px;margin-left:4px}
.login-version{display:inline-block;margin-top:6px;font-size:15px;color:var(--muted);
border:1px solid var(--line);border-radius:6px;padding:1px 8px}
.mn-logo{width:29px;height:29px;border-radius:7px;object-fit:cover;display:block;box-shadow:0 1px 2px rgba(15,23,42,.10)}
.mobilenav .mn-home{display:flex;flex-direction:column;align-items:center;gap:2px}
@media (max-width:760px){
.login-wrap{padding:10px;min-height:100dvh;align-items:start;padding-top:14px}
.login-card{padding:18px 16px;border-radius:14px}
.login-logo{width:120px}
.login-card > div > div[style*="text-align:center"]{margin-bottom:12px !important}
.login-title{font-size:18px;margin-top:6px !important}
.login-sub{font-size:15px}
.login-version{margin-top:4px;font-size:11px;padding:0 7px}
.login-card .field{margin-bottom:9px}
.login-card .field label{margin-bottom:3px}
.login-card .btn-lg{padding:11px 16px;font-size:16px}
.login-side{padding-top:12px}
.login-side .qr-img{width:104px;height:104px}
.login-side > div{font-size:15px;margin-top:4px !important}
}
.field-inline{display:grid;grid-template-columns:5.6em minmax(0,1fr);align-items:center;column-gap:10px}
.field-inline > label{margin:0;white-space:nowrap;font-size:16px;color:var(--muted)}
.field-inline > input,.field-inline > select,.field-inline > .req-field{width:100%;margin:0}
.field-inline > .req-field > input{width:100%}
.field-inline > .tiny{grid-column:2;margin-top:2px}
@media (max-width:560px){
.field-inline{grid-template-columns:5em minmax(0,1fr)}
}
.sub-head{font-size:13px;font-weight:600;color:var(--muted);margin:14px 0 6px}
.empty-hint{color:#1d4ed8;border:none !important;background:none !important;font-size:13px}
@media (max-width:760px){
.field:not(:has(textarea)):not(.field-block){
display:grid;grid-template-columns:5.4em minmax(0,1fr);align-items:center;column-gap:10px;row-gap:4px;
}
.field:not(:has(textarea)):not(.field-block) > label{margin:0;white-space:nowrap;font-size:16px;color:var(--muted)}
.field:not(:has(textarea)):not(.field-block) > .tiny,
.field:not(:has(textarea)):not(.field-block) > .dropdown{grid-column:2}
.field:not(:has(textarea)):not(.field-block) > input,
.field:not(:has(textarea)):not(.field-block) > select,
.field:not(:has(textarea)):not(.field-block) > .search-box,
.field:not(:has(textarea)):not(.field-block) > .req-field{width:100%;margin:0}
.kv dd{text-align:right}
}
@media (max-width:760px){
.field:not(:has(textarea)):not(.field-block){margin-bottom:12px;min-height:38px}
.field:not(:has(textarea)):not(.field-block) > input,
.field:not(:has(textarea)):not(.field-block) > select{height:38px;padding:6px 10px}
.field:not(:has(textarea)):not(.field-block) > label{line-height:38px}
.field > .tiny{margin-top:2px;line-height:1.3}
}
@media (max-width:760px){
.grid-2 > .field,.grid-3 > .field,.grid-4 > .field{display:block !important;min-height:0;margin-bottom:0}
.grid-2 > .field > label,.grid-3 > .field > label,.grid-4 > .field > label{
display:block;line-height:1.25 !important;margin:0 0 3px !important;font-size:13px}
.grid-2{gap:8px 10px}
.user-card .field{margin-bottom:6px}
.user-card .field > label{line-height:1.3 !important;margin-bottom:2px !important}
.user-card .field > input,.user-card .field > select{height:34px;padding:4px 9px}
.user-card .tiny{margin-top:1px}
.user-card .uc-grid{row-gap:6px}
}
table.data.cards td > .cell-val{flex:1 1 auto;min-width:0;text-align:right;line-height:1.45}
table.data.cards td > .cell-val > .tiny,
table.data.cards td > .cell-val > .small{display:block;text-align:right;margin-top:2px}
.content{max-width:920px;margin:0 auto;padding:18px 16px 48px}
.page-title{font-size:18px;font-weight:700;letter-spacing:.2px}
.card-pad{padding:14px 16px}
.section{margin-bottom:12px}
.section-head{margin-bottom:8px}
.section-head h2{font-size:17px;letter-spacing:.2px}
@media (max-width:760px){
.field:not(.field-block):not(:has(textarea)){
display:grid;grid-template-columns:5.6em minmax(0,1fr);
align-items:center;column-gap:10px;row-gap:3px;margin:0 0 10px;min-height:0;
}
.field:not(.field-block):not(:has(textarea)) > label{
margin:0 !important;line-height:1.3 !important;font-size:15px;color:#6b7280;
white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.field:not(.field-block):not(:has(textarea)) > input,
.field:not(.field-block):not(:has(textarea)) > select,
.field:not(.field-block):not(:has(textarea)) > .req-field,
.field:not(.field-block):not(:has(textarea)) > .search-box{
width:100% !important;max-width:none !important;margin:0 !important;min-width:0;
}
.field:not(.field-block):not(:has(textarea)) > .tiny{grid-column:2;margin:0 !important;line-height:1.3}
.grid-2 > .field,.grid-3 > .field,.grid-4 > .field{display:block !important;margin-bottom:0 !important}
.grid-2 > .field > label,.grid-3 > .field > label,.grid-4 > .field > label{
display:block !important;font-size:14px;margin:0 0 3px !important;line-height:1.3 !important;
}
.grid-2{gap:10px}
.grid-3,.grid-4{gap:8px}
.card-pad{padding:12px 14px}
.section{margin-bottom:10px}
.btn{min-height:42px}
.btn-sm{min-height:34px;padding:4px 10px;font-size:15px}
.kv{gap:5px 10px;padding:2px 0}
.topbar{padding:10px 12px}
.content{padding:12px 12px 48px}
}
@media (max-width:760px){
.grid-2,.grid-3,.grid-4{display:block !important}
.grid-2 > .field,.grid-3 > .field,.grid-4 > .field{
display:grid !important;grid-template-columns:5.8em minmax(0,1fr) !important;
align-items:center;column-gap:10px;row-gap:3px;margin:0 0 10px !important;
}
.grid-2 > .field > label,.grid-3 > .field > label,.grid-4 > .field > label{
margin:0 !important;line-height:1.3 !important;font-size:15px;color:#6b7280;
white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block !important;
}
.grid-2 > .field > .tiny,.grid-3 > .field > .tiny,.grid-4 > .field > .tiny{grid-column:2}
.field:has(.search-box),.field:has(textarea){display:block !important;margin:0 0 10px !important}
.field:has(.search-box) > label,.field:has(textarea) > label{
display:block !important;margin:0 0 4px !important;font-size:14px
}
.field:has(.search-box) > .search-box{width:100% !important}
.check{font-size:16px;padding:2px 0}
}
@media (max-width:760px){
.field:has(.search-box){display:grid !important;grid-template-columns:5.8em minmax(0,1fr) !important;
align-items:center;column-gap:10px;row-gap:3px;margin:0 0 10px !important}
.field:has(.search-box) > label{display:block !important;margin:0 !important;line-height:1.3 !important;
font-size:15px;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.field:has(.search-box) > .search-box{width:100% !important;grid-column:2}
.field:has(.search-box) > .tiny{grid-column:2;margin:0 !important}
}
.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.stat{padding:16px 16px 14px;border-radius:14px}
.stat-label{font-size:14px;color:#6b7280;margin-bottom:6px}
.stat-value{font-size:28px;font-weight:700;line-height:1.15;letter-spacing:-.3px}
.stat-sub{margin-top:6px;font-size:13px}
.tabs{display:flex;gap:6px;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.tabs::-webkit-scrollbar{display:none}
.tabs .tab{flex:0 0 auto;white-space:nowrap}
table.data.cards tr{padding:10px 12px}
table.data.cards td{padding:3px 0;font-size:16px}
table.data.cards td.cell-main{font-size:16px;padding-bottom:7px;margin-bottom:5px}
table.data.cards td.cell-actions{padding-top:8px;margin-top:4px}
.empty{padding:36px 16px !important;color:#6b7280;font-size:15px;text-align:center;line-height:1.7}
.detail-page > .card{padding:15px 16px;margin-bottom:10px}
.detail-page .section-head{margin-bottom:10px}
@media (max-width:760px){
.topbar{border-bottom:1px solid var(--line);box-shadow:none}
.stat-value{font-size:26px}
.stat{padding:14px}
.stat-grid{gap:10px}
}
@media (max-width:760px){
.field:has(.search-box):not(:has(> label)){display:block !important;margin:0 0 8px !important}
.field:has(.search-box):not(:has(> label)) > .search-box{width:100% !important}
.pf-form .field.field-short > input,.pf-form .field.field-short > select{
width:38% !important;max-width:38% !important;margin-left:auto !important;text-align:right
}
.detail-page .card table thead th{
background:#e8f0ff !important;color:#1e3a8a !important;
font-size:18px !important;font-weight:600;padding:10px 12px
}
.detail-page .card table td{font-size:17px}
#settings .card,.settings .card,form.card.card-pad{max-width:100% !important}
}
.line-table tbody tr{background:#fff}
.line-table tbody td.empty{background:#f2fdf5 !important;border:none;padding:36px 16px !important}
table.line-table{background:transparent !important}
table.line-table thead,tbody{background:transparent !important}
@media (max-width:760px){
.content{padding:12px 12px calc(104px + env(safe-area-inset-bottom)) !important}
body{overscroll-behavior-y:contain}
}
@media (min-width:761px){
.content{padding:20px 24px 48px !important;max-width:1400px !important;margin:0 !important}
.page-title{font-size:17px !important;font-weight:600 !important;letter-spacing:0 !important}
.card-pad{padding:16px 18px !important}
.section{margin-bottom:18px !important}
.section-head{margin-bottom:10px !important}
.section-head h2{font-size:17px !important}
.stat{padding:14px 16px !important;border-radius:var(--radius) !important}
.stat-label{font-size:13px !important}
.stat-value{font-size:24px !important;letter-spacing:0 !important}
.stat-sub{font-size:13px !important;margin-top:4px !important}
.stat-grid{grid-template-columns:repeat(4,1fr) !important;gap:14px !important}
.tabs{gap:4px !important;border-bottom:1px solid var(--line) !important;margin-bottom:16px !important;
overflow-x:auto !important;flex-wrap:nowrap !important}
.empty{padding:36px 16px !important;font-size:16px !important}
.detail-page{gap:14px !important;max-width:900px !important}
.detail-page > .card{margin:0 !important;padding:16px 18px !important}
.btn{min-height:0 !important}
.btn-sm{padding:5px 10px !important;font-size:15px !important;min-height:0 !important}
}
.inv-reason{display:flex;align-items:center;gap:8px}
.inv-reason-label{flex:0 0 68px}
.inv-actions{display:flex;align-items:center;gap:6px}
.inv-qty{width:100px}
@media (min-width:761px){
.inv-adjust{display:flex;align-items:center;gap:8px}
.inv-reason{flex:1 1 auto;min-width:120px}
.inv-reason input{flex:1 1 auto;min-width:0}
.inv-actions{flex:0 0 auto}
.inv-qty{width:72px}
td[data-label="序列号"] select{width:140px !important;min-width:0 !important}
}
@media (max-width:760px){
.inv-adjust{display:block}
.inv-reason{margin-bottom:6px}
.inv-actions{justify-content:flex-end}
.inv-qty{width:110px}
}
.inv-reason .inv-reason-label{display:none !important}
.inv-reason{gap:0 !important}
.due,strong.due,td .due{color:var(--danger) !important;font-weight:700 !important}
@media (max-width:760px){
table.data.cards thead{display:none !important}
table.data.cards thead tr{display:none !important}
}
@media (max-width:760px){
form.card.row, .card form.row{overflow:visible}
form.card.row .spacer, .card form.row .spacer{display:none}
form.card.row strong.num, form.card.row .num, .card form.row strong.num, .card form.row .num{display:block !important;width:auto !important;
max-width:100% !important;text-align:right;font-size:16px;word-break:break-all}
}
form.card.row strong.num, .card form.row strong.num{color:#1d4ed8;font-weight:700;font-size:18px}
@media (max-width:760px){
form.card.row strong.num, .card form.row strong.num{font-size:20px}
}
.pay-amt{color:#047857;font-weight:500;font-variant-numeric:tabular-nums}
.amt-blue{color:#1d4ed8;font-weight:500;font-variant-numeric:tabular-nums}
.captcha-row{display:flex;align-items:center;gap:10px}
.captcha-q{flex:0 0 auto;font-weight:700;font-size:18px;letter-spacing:2px;color:#1d4ed8;
background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;padding:8px 14px}
.captcha-row input{flex:1 1 auto;min-width:0}
.amt-green{color:#047857;font-weight:500}
.amt-blue{color:#1d4ed8;font-weight:500}
.amt-red{color:#b91c1c;font-weight:600}
.modal-mask{position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:200;
display:flex;align-items:center;justify-content:center;padding:16px}
.modal-card{max-height:92vh;overflow:auto}
.done-flow summary{cursor:pointer;list-style:none;padding:8px 12px;border-radius:10px;
background:#f0fdf4;border:1px solid #bbf7d0;display:flex;align-items:center;gap:4px;
white-space:nowrap;overflow:hidden}
.done-flow summary::-webkit-details-marker{display:none}
.done-flow summary::before{content:'▸';color:#059669;font-weight:700;font-size:12px;flex:0 0 auto}
.done-flow[open] summary::before{content:'▾'}
.done-flow-title{font-weight:700;color:#065f46;font-size:14px;letter-spacing:0}
.done-flow summary .tiny{margin-left:2px;font-size:12px;flex:0 0 auto}
.done-flow .flash{font-size:13px;padding:8px 12px;margin:8px 0 !important}
.readonly-grid{display:block;margin-top:2px}
.ro-field{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.ro-field label{flex:0 0 66px;margin:0;font-size:13px;color:#64748b;text-align:left;line-height:1.2}
.ro-field > div{flex:1 1 auto;background:#f1f5f9;border:none;border-radius:8px;
padding:7px 12px;color:#475569;font-size:15px;min-height:36px;display:flex;align-items:center;
word-break:break-all;line-height:1.3}
.po-lines{display:flex;flex-direction:column;gap:12px}
.po-item{background:#f2fdf5 !important;border:1px solid #d6f2df !important;border-radius:12px;
padding:14px 16px !important;box-shadow:none !important}
.po-name{font-size:17px !important;font-weight:700 !important;color:#0f172a}
.po-sub{font-size:14px;color:#64748b;margin-top:3px}
.po-amount{font-size:15px;font-weight:500;color:#475569}
.po-amount .po-amount-empty{color:#94a3b8;font-weight:400}
.po-del{color:#dc2626 !important;font-size:14px}
.po-field span,.po-sn .po-label{font-size:14px;color:#64748b;margin-bottom:6px}
.po-field input,.po-sn textarea{background:#fff !important;border:1px solid #dbe3ea !important;
border-radius:9px !important;padding:9px 12px !important;font-size:15px !important;width:100%}
.po-field input:focus,.po-sn textarea:focus{border-color:#86efac !important;outline:none;
box-shadow:0 0 0 3px rgba(34,197,94,.12) !important}
.po-sn textarea{min-height:96px}
.po-hint{font-size:14px;color:#64748b;margin-top:6px}
.add-product-card{background:#fff !important;border:1px solid var(--line) !important;padding:0 !important;
border-radius:12px !important;overflow:hidden}
.add-product-top{background:#f2fdf5;padding:14px 18px 12px;border-bottom:1px dashed #b9e3c8}
.add-product-top .section-head{margin-bottom:10px}
.add-product-top .hint{color:#64748b;font-weight:400;font-size:14px}
.add-product-top .search-box input{background:#fff !important;border:2px solid #40d8f0 !important;
border-radius:9px !important;padding:9px 11px !important;font-size:15px !important;width:100%}
.add-product-top .search-box input::placeholder{color:#94a3b8}
.add-product-top .search-box input:focus{border-color:#22c9e6 !important;
box-shadow:0 0 0 3px rgba(64,216,240,.22) !important;outline:none}
.add-product-bottom{padding:12px 18px 14px;background:#fff}
.add-product-bottom .quick-block{border-top:none !important;padding-top:0 !important;margin-top:0 !important}
.add-product-bottom .quick-label{color:#64748b;font-size:14px}
.add-product-bottom .chip{background:#fff !important;border:1px solid #dbe3ea !important}
.search-box input.accent-cyan{border:2px solid #40d8f0 !important;border-radius:9px !important;
background:#fff !important;padding:9px 11px !important;font-size:15px !important}
.search-box input.accent-cyan:focus{border-color:#22c9e6 !important;outline:none;
box-shadow:0 0 0 3px rgba(64,216,240,.22) !important}
@media (min-width:761px){
.inv-table{table-layout:fixed;width:1270px;min-width:1270px}
.inv-table col.c-name{width:116px}
.inv-table col.c-cat{width:80px}
.inv-table col.c-brand{width:84px}
.inv-table col.c-model{width:84px}
.inv-table col.c-sn{width:118px}
.inv-table col.c-qty{width:96px}
.inv-table col.c-in{width:90px}
.inv-table col.c-price{width:100px}
.inv-table col.c-value{width:120px}
.inv-table col.c-sale{width:100px}
.inv-table col.c-adjust{width:64px}
.inv-table th,.inv-table td{padding:10px 8px;font-size:14px;vertical-align:middle}
.inv-table th{font-weight:600;color:#475569;white-space:nowrap;background:#f8fafc}
.inv-table td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inv-table td[data-label="商品"]{white-space:normal}
.inv-table .pc-name{font-size:15px;font-weight:700;color:#0f172a}
.inv-table td[data-label="序列号"]{overflow:visible}
.sn-cell select{width:100%;max-width:132px;font-size:13px;padding:6px 6px;
font-family:Consolas,monospace;text-align:center}
.sn-none{color:#b91c1c;font-weight:700}
.sn-warn{color:#b91c1c;font-weight:600;font-size:12px;white-space:normal;line-height:1.3}
.qty-cell{text-align:right}
.qty-box{display:flex;flex-direction:column;align-items:flex-end;gap:3px;line-height:1.15}
.qty-num{font-size:17px;font-weight:700;color:#0f172a}
.qty-num.qty-low{color:#b91c1c}
.qty-box .badge{font-size:11px;padding:1px 6px;margin:0}
.inv-table td[data-label="最近入库"]{font-size:13px;line-height:1.25;white-space:normal}
.inv-table td[data-label="最近入库"] .tiny{font-size:11px;color:#94a3b8}
.inv-table .btn-adjust{padding:6px 12px !important;font-size:13px !important}
.inv-table td[data-label="库存"]{padding-right:16px !important;overflow:visible}
.inv-table th[class="right"]:nth-of-type(6){padding-right:16px}
.inv-table td[data-label="最近入库"]{padding-left:14px !important}
}
.inv-mobile{display:none}
@media (max-width:760px){
.inv-desktop{display:none}
.inv-mobile{display:block}
}
@media (min-width:761px){
.inv-table col.c-qty{width:120px}
.inv-table col.c-sn{width:108px}
.inv-table col.c-in{width:80px}
.inv-table td[data-label="类型"],
.inv-table td[data-label="品牌"],
.inv-table td[data-label="型号"],
.inv-table td[data-label="序列号"],
.inv-table td[data-label="库存"],
.inv-table td[data-label="最近入库"]{text-align:center !important}
.inv-table th:nth-child(2),.inv-table th:nth-child(3),.inv-table th:nth-child(4),
.inv-table th:nth-child(5),.inv-table th:nth-child(6),.inv-table th:nth-child(7){text-align:center}
.inv-table td[data-label="类型"],.inv-table td[data-label="品牌"],.inv-table td[data-label="型号"]{
font-size:13px !important}
.inv-table .sn-cell select{margin:0 auto}
.inv-table td[data-label="最近入库"] .tiny{font-size:11px}
.inv-table .qty-box{align-items:center}
.inv-table td[data-label="库存"]{padding-right:8px !important}
.amt-black{color:#0f172a !important;font-weight:500}
}
table.data thead th{text-align:center !important}
.inv-table .qty-box{flex-direction:row !important;align-items:center !important;
justify-content:flex-end;gap:6px}
.inv-table .qty-box .badge{font-size:10px !important;padding:1px 5px !important}
.inv-table .sn-none{font-size:13px !important}
.amt-black{color:#0f172a !important;font-weight:600}
@media (min-width:761px){
.inv-table td[data-label=商品]{text-align:center !important}
.inv-table .pc-name{text-align:center}
.inv-table td[data-label=库存]{text-align:left !important}
.inv-table .qty-box{justify-content:flex-start !important}
.inv-table td[data-label=进价],.inv-table td[data-label=库存金额]{text-align:center !important}
}
@media (min-width:761px){
.inv-table tbody td:first-child{text-align:center !important}
.inv-table tbody td:first-child .pc-name{text-align:center !important;display:block}
.inv-table .qty-box{gap:5px !important}
.inv-table .qty-box .badge{font-size:10px !important;padding:1px 4px !important;white-space:nowrap}
}
@media (min-width:761px){
.inv-table td[data-label=库存]{text-align:center !important}
.inv-table .qty-box{justify-content:center !important;align-items:center !important;gap:6px !important}
}
@media (min-width:761px){
.inv-table td[data-label=进价],
.inv-table td[data-label=库存金额],
.inv-table td[data-label=售价]{text-align:right !important;padding-right:16px !important}
.inv-table td[data-label=库存]{overflow:visible !important}
}
.info-list{display:flex;flex-direction:column;gap:9px}
.info-row{display:flex;align-items:baseline;justify-content:space-between;gap:14px}
.info-row > span{color:#64748b;font-size:15px;flex:0 0 auto}
.info-row > b{color:#1f2937;font-size:15px;font-weight:400;text-align:right;word-break:break-all}
.item-amount{display:flex;align-items:center;justify-content:space-between;
margin-top:14px;padding-top:12px;border-top:1px solid #e8eef5}
.item-amount > span{font-size:16px;font-weight:700;color:#0f172a}
.item-amount > b{font-size:18px;font-weight:600;color:#0f172a;font-variant-numeric:tabular-nums}
@media (max-width:760px){
.info-row > span,.info-row > b{font-size:16px;font-weight:400}
.item-amount > b{font-size:20px}
}
.item-card .section-head{background:#e8f0fe;border-radius:8px;padding:9px 12px;margin-bottom:12px}
.item-card .section-head h2{color:#1d4ed8;font-size:17px;font-weight:700;margin:0}
.tip-mask{position:fixed;inset:0;background:rgba(15,23,42,.35);z-index:300;
display:flex;align-items:center;justify-content:center;padding:18px}
.tip-box{background:#eff6ff;border:1px solid #bfdbfe;border-radius:14px;padding:18px 18px 14px;
width:100%;max-width:340px;box-shadow:0 18px 40px rgba(15,23,42,.18)}
.tip-title{font-size:17px;font-weight:700;color:#1d4ed8;margin-bottom:8px}
.tip-text{font-size:15px;line-height:1.55;color:#1e40af;margin-bottom:16px;word-break:break-all}
.tip-box .tip-ok{display:block;margin-left:auto;min-width:88px;background:#2563eb;border-color:#2563eb}
.tip-box .tip-ok:hover{background:#1d4ed8;border-color:#1d4ed8}
@media (max-width:760px){
.inv-mobile td.cell-form{display:flex !important;align-items:center;justify-content:space-between;
gap:12px;padding:6px 0 !important}
.inv-mobile td.cell-form::before{content:attr(data-label);color:#64748b;font-size:16px;
min-width:0 !important;flex:0 0 auto}
.inv-mobile td.cell-form .btn-adjust{margin-left:auto;min-width:88px}
.inv-mobile td[data-label="序列号"]{align-items:center}
.inv-mobile td[data-label="序列号"] .sn-cell{flex:1 1 auto;display:flex;justify-content:flex-end}
.inv-mobile td[data-label="序列号"] select{width:auto !important;min-width:150px;
max-width:100%;flex:1 1 auto;height:31px;padding:3px 10px;font-size:15px}
}
@media (max-width:760px){
.inv-mobile td.inv-sub{display:block !important;padding:8px 0 2px !important;border:none !important;
text-align:left !important;justify-content:flex-start !important}
.inv-mobile td.inv-sub::before{display:none !important}
.inv-mobile td.inv-sub .tiny{font-size:14px;color:#94a3b8}
}
@media (max-width:760px){
.inv-mobile .inv-tag{font-size:14px;font-weight:400;color:#64748b;margin-left:8px}
.inv-mobile td[data-label="售价"],.inv-mobile td[data-label="售价"] *{font-weight:400 !important}
}
.login-toast{position:static;display:flex;align-items:center;justify-content:center;gap:8px;
max-width:100%;margin:0 auto 14px;padding:8px 14px;border-radius:20px;
font-size:14px;line-height:1.3;background:#fee2e2;color:#b91c1c;border:1px solid #fecaca;
box-shadow:0 6px 18px rgba(15,23,42,.08);opacity:0;transition:opacity .35s ease}
.login-toast.show{opacity:1}
.login-toast.is-ok{background:#dcfce7;color:#15803d;border-color:#bbf7d0}
.login-toast-icon{flex:0 0 auto;width:18px;height:18px;border-radius:50%;
background:#ef4444;color:#fff;font-size:12px;font-weight:700;
display:flex;align-items:center;justify-content:center}
.login-toast.is-ok .login-toast-icon{background:#16a34a}
.login-card .field:not(:has(textarea)){grid-template-columns:4.6em minmax(0,1fr) !important;
column-gap:10px !important}
.login-card .field:not(:has(textarea)) > label{text-align:right !important;padding-right:2px;
font-size:15px !important}
@media (max-width:560px){
.login-card .field:not(:has(textarea)){grid-template-columns:4.2em minmax(0,1fr) !important;
column-gap:8px !important}
}
@media (max-width:760px){
.sales-table td{font-size:16px !important;font-weight:400;line-height:1.4}
.sales-table td .tiny{font-size:16px !important}
.sales-table td[data-label="客户"]{font-weight:700}
.sales-table td[data-label="客户"] .tiny{font-weight:400}
.sales-table td .due{font-weight:700}
}
@media (max-width:760px){
.sales-table td[data-label="联系电话"],
.sales-table td[data-label="门店"],
.sales-table td[data-label="类型"],
.sales-table td[data-label="销售员"],
.sales-table td[data-label="日期"],
.sales-table td[data-label="金额"]{color:#0f172a !important;font-size:16px !important;font-weight:400}
.sales-table td[data-label="联系电话"] .muted,
.sales-table td[data-label="门店"] .muted{color:#0f172a !important}
.sales-table td[data-label="客户"]{color:#0f172a !important;font-weight:700}
}
@media (min-width:761px){
.po-list{table-layout:fixed;min-width:1180px;font-size:13px}
.po-list th,.po-list td{padding:9px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.po-list th{text-align:center !important}
.po-list th:nth-child(1){width:138px}
.po-list th:nth-child(2){width:100px}
.po-list th:nth-child(3){width:140px}
.po-list th:nth-child(4){width:96px}
.po-list th:nth-child(5){width:96px}
.po-list th:nth-child(6){width:96px}
.po-list th:nth-child(7){width:104px}
.po-list th:nth-child(8){width:82px}
.po-list th:nth-child(9){width:96px}
.po-list th:nth-child(10){width:74px}
.po-list th:nth-child(11){width:132px}
.po-list td:nth-child(5),.po-list td:nth-child(6),.po-list td:nth-child(7){font-size:13px;color:#334155}
}
.po-detail-table th,.po-detail-table td{vertical-align:middle !important}
.po-detail-table td:first-child{text-align:center !important}
.po-detail-table th:first-child{text-align:center !important}
@media (max-width:760px){
.po-detail-table{min-width:0 !important;width:100%}
.po-detail-table th,.po-detail-table td{padding:8px 3px;font-size:12.5px}
}
.po-detail-table{table-layout:fixed;width:100%}
.po-detail-table th:nth-child(1),.po-detail-table td:nth-child(1){width:16%}
.po-detail-table th:nth-child(2),.po-detail-table td:nth-child(2){width:17%}
.po-detail-table th:nth-child(3),.po-detail-table td:nth-child(3){width:18%}
.po-detail-table th:nth-child(4),.po-detail-table td:nth-child(4){width:12%}
.po-detail-table th:nth-child(5),.po-detail-table td:nth-child(5){width:18%}
.po-detail-table th:nth-child(6),.po-detail-table td:nth-child(6){width:21%}
.po-detail-table th,.po-detail-table td{text-align:center !important;vertical-align:middle !important;
white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:760px){
.po-detail-table{font-size:12.5px}
.po-detail-table th,.po-detail-table td{padding:8px 3px}
}
@media (max-width:760px){
.topbar{padding-top:calc(10px + env(safe-area-inset-top)) !important}
.login-wrap{padding-top:calc(14px + env(safe-area-inset-top)) !important}
body{padding-top:0}
}
@supports (padding-top: env(safe-area-inset-top)){
@media (max-width:760px){
.topbar{padding-top:calc(10px + env(safe-area-inset-top)) !important}
.login-wrap{padding-top:calc(14px + env(safe-area-inset-top)) !important}
}
}
.add-product-bottom .quick-picks{gap:6px !important;flex-wrap:wrap}
.add-product-bottom .chip{font-size:13px !important;padding:4px 9px !important;
border-radius:14px !important;line-height:1.3 !important;gap:2px}
.add-product-bottom .chip .chip-sub{font-size:11px !important;margin-left:3px !important}
.add-product-bottom .chip-plus{font-size:13px !important}
.inst-items th,.inst-items td{text-align:center !important;vertical-align:middle !important}
.inst-items td{word-break:break-all}
@media (max-width:760px){
.inst-items{table-layout:fixed;width:100%;font-size:12.5px}
.inst-items th,.inst-items td{padding:7px 4px;font-size:12.5px;line-height:1.35}
.inst-items th{font-size:12.5px;font-weight:700}
.inst-items th:nth-child(1){width:20%}
.inst-items th:nth-child(2){width:22%}
.inst-items th:nth-child(3){width:20%}
.inst-items th:nth-child(4){width:10%}
.inst-items th:nth-child(5){width:28%}
.inst-items td.mono{font-size:12px;word-break:break-all}
}
@media (max-width:760px){
.inst-items{min-width:0 !important;width:100% !important;table-layout:fixed !important;font-size:12px !important}
.inst-items th,.inst-items td{padding:7px 3px !important;font-size:12px !important;
white-space:normal !important;word-break:break-all !important;line-height:1.3 !important}
.inst-items th{font-size:12px !important;font-weight:700 !important}
}
@media (max-width:760px){
.inst-items th{white-space:nowrap !important;font-size:11.5px !important;letter-spacing:0}
.inst-items col, .inst-items th:nth-child(1){width:17%}
.inst-items th:nth-child(2){width:27%}
.inst-items th:nth-child(3){width:19%}
.inst-items th:nth-child(4){width:9%}
.inst-items th:nth-child(5){width:28%}
}
@media (max-width:760px){
.inst-items{font-size:11.5px !important}
.inst-items th{font-size:11px !important;font-weight:600 !important;color:#475569 !important;
white-space:nowrap !important;padding:6px 2px !important}
.inst-items td{font-size:11.5px !important;padding:6px 2px !important;line-height:1.25 !important;
white-space:normal !important;word-break:break-all !important}
.inst-items th:nth-child(1){width:18%}
.inst-items th:nth-child(2){width:26%}
.inst-items th:nth-child(3){width:18%}
.inst-items th:nth-child(4){width:10%}
.inst-items th:nth-child(5){width:28%}
.inst-items td.mono{font-size:11px !important}
}
@media (max-width:760px){
.detail-page .card table.inst-items thead th{
font-size:11px !important;font-weight:500 !important;color:#475569 !important;
white-space:nowrap !important;padding:6px 2px !important;letter-spacing:0 !important;
}
.detail-page .card table.inst-items tbody td{font-size:11.5px !important;padding:6px 2px !important}
}
@media (max-width:760px){
.detail-page .card table.inst-items thead th{
color:#1e3a8a !important;font-weight:700 !important;font-size:11px !important;
}
}
@media (max-width:760px){
.detail-page .field-inline > label{white-space:normal !important;line-height:1.25 !important;
font-size:14px !important}
.detail-page .field-inline > select{max-width:42% !important}
}
.field-stack{display:block !important}
.field-stack > label{display:block !important;margin:0 0 4px !important;white-space:normal !important;
font-size:14px !important;color:#64748b}
@media (max-width:760px){
.detail-page .field{margin-bottom:8px !important}
.detail-page .field-inline{row-gap:2px !important}
.detail-page .card-pad{padding:12px 14px !important}
.detail-page .section{margin-bottom:10px !important}
.detail-page .section-head{margin-bottom:8px !important}
.detail-page .grid-2,.detail-page .grid-3{row-gap:6px !important}
}
@media (max-width:760px){
.detail-page .field{margin-bottom:6px !important}
.detail-page .field > input,
.detail-page .field > select,
.detail-page .field > textarea{font-size:15px !important}
.detail-page .field > input,
.detail-page .field > select{height:36px !important;min-height:36px !important;
padding:4px 10px !important}
.detail-page .field > textarea{min-height:70px !important;padding:8px 10px !important}
.detail-page .field > label{font-size:15px !important}
}
@media (max-width:760px){
.detail-page .field{margin-bottom:5px !important}
.detail-page .field > input,
.detail-page .field > select{height:32px !important;min-height:32px !important;
padding:2px 10px !important;font-size:14.5px !important;line-height:1.2 !important}
.detail-page .field > label{font-size:14.5px !important;line-height:1.3}
.detail-page .field > textarea{min-height:60px !important}
.detail-page .field-inline{row-gap:0 !important}
}
@media (min-width:761px){
.prod-table{table-layout:fixed;width:100%;font-size:13.5px}
.prod-table th,.prod-table td{text-align:center !important;vertical-align:middle !important;
padding:10px 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prod-table th{font-weight:600;color:#475569;line-height:1.25}
.prod-table th:nth-child(1){width:14%}
.prod-table th:nth-child(2){width:11%}
.prod-table th:nth-child(3){width:11%}
.prod-table th:nth-child(4){width:12%}
.prod-table th:nth-child(5){width:9%}
.prod-table th:nth-child(6){width:10%}
.prod-table th:nth-child(7){width:9%}
.prod-table th:nth-child(8){width:8%}
.prod-table th:nth-child(9){width:6%}
.prod-table th:nth-child(10){width:10%}
.prod-name{font-weight:700;color:#0f172a;font-size:13px !important}
.prod-table td[data-label="商品类型"],
.prod-table td[data-label="品牌"],
.prod-table td[data-label="型号"]{font-size:12.5px !important}
.prod-table .price-cost{color:#1d4ed8 !important;font-weight:600}
.prod-table .price-sale{color:#047857 !important;font-weight:600}
.prod-table .price-min{color:#c2410c !important;font-weight:600}
.prod-actions{white-space:nowrap;overflow:visible}
.prod-actions .btn{padding:4px 8px !important;font-size:12.5px !important}
}
.prod-table td.stock-zero{color:#dc2626 !important;font-weight:700}
@media (min-width:761px){
.sales-table{table-layout:fixed;width:100%;font-size:13px}
.sales-table th,.sales-table td{text-align:center !important;vertical-align:middle !important;
padding:10px 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sales-table th{font-weight:600;color:#475569}
.sales-table th:nth-child(1){width:13%}
.sales-table th:nth-child(2){width:9%}
.sales-table th:nth-child(3){width:9%}
.sales-table th:nth-child(4){width:12%}
.sales-table th:nth-child(5){width:9%}
.sales-table th:nth-child(6){width:9%}
.sales-table th:nth-child(7){width:7%}
.sales-table th:nth-child(8){width:9%}
.sales-table th:nth-child(9){width:8%}
.sales-table th:nth-child(10){width:8%}
.sales-table th:nth-child(11){width:9%}
.sales-table th:nth-child(12){width:6%}
.sales-table td.cell-main a{font-size:12.5px}
.sales-table .btn-sm{padding:4px 8px !important;font-size:12px !important}
}
@media (min-width:761px){
.sales-table th:nth-child(1){width:12%}
.sales-table th:nth-child(2){width:8%}
.sales-table th:nth-child(3){width:9%}
.sales-table th:nth-child(4){width:11%}
.sales-table th:nth-child(5){width:8%}
.sales-table th:nth-child(6){width:8%}
.sales-table th:nth-child(7){width:6%}
.sales-table th:nth-child(8){width:8%}
.sales-table th:nth-child(9){width:9%}
.sales-table th:nth-child(10){width:8%}
.sales-table th:nth-child(11){width:10%}
.sales-table th:nth-child(12){width:5%}
.sales-table .badges{display:flex !important;flex-wrap:nowrap !important;
gap:4px !important;justify-content:center}
.sales-table .badges .badge{white-space:nowrap !important;font-size:11.5px !important;padding:2px 6px !important}
.sales-table td[data-label="状态"]{overflow:visible}
}
@media (min-width:761px){
.sales-table td[data-label="客户"],
.sales-table td[data-label="联系电话"],
.sales-table td[data-label="类型"],
.sales-table td[data-label="品牌"],
.sales-table td[data-label="型号"],
.sales-table td[data-label="销售员"]{
font-size:12.5px !important;font-weight:400 !important;color:#334155 !important;
}
.sales-table td[data-label="客户"]{font-weight:500 !important}
.sales-table td[data-label="客户"] span,
.sales-table td[data-label="类型"] span,
.sales-table td[data-label="品牌"] span,
.sales-table td[data-label="型号"] span{font-size:12.5px !important;font-weight:400 !important}
}
@media (min-width:761px){
.sales-table td > span{display:inline-block;max-width:100%;overflow:hidden;
text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}
}
@media (min-width:761px){
.card.table-wrap{overflow-x:auto}
table.data{table-layout:fixed;width:100%;font-size:13px}
table.data th,table.data td{vertical-align:middle !important;padding:10px 8px}
table.data th{font-size:12.5px;font-weight:600;color:#475569;white-space:nowrap;
overflow:hidden;text-overflow:ellipsis}
table.data td{font-size:13px;overflow:hidden;text-overflow:ellipsis}
table.data .badges{display:inline-flex !important;flex-wrap:nowrap !important;
gap:4px !important;align-items:center;vertical-align:middle}
table.data .badge{white-space:nowrap !important;font-size:11.5px !important;padding:2px 6px !important}
table.data .btn-sm{padding:4px 9px !important;font-size:12px !important;white-space:nowrap}
}
@media (min-width:761px){
.po-list th:nth-child(1){width:12%}
.po-list th:nth-child(2){width:8%}
.po-list th:nth-child(3){width:15%}
.po-list th:nth-child(4){width:9%}
.po-list th:nth-child(5){width:9%}
.po-list th:nth-child(6){width:7%}
.po-list th:nth-child(7){width:9%}
.po-list th:nth-child(8){width:7%}
.po-list th:nth-child(9){width:9%}
.po-list th:nth-child(10){width:7%}
.po-list th:nth-child(11){width:8%}
}
.inst-list th:nth-child(1){width:12%}
.inst-list th:nth-child(2){width:8%}
.inst-list th:nth-child(3){width:8%}
.inst-list th:nth-child(4){width:6%}
.inst-list th:nth-child(5){width:15%}
.inst-list th:nth-child(6){width:8%}
.inst-list th:nth-child(7){width:7%}
.inst-list th:nth-child(8){width:8%}
.inst-list th:nth-child(9){width:8%}
.inst-list th:nth-child(10){width:6%}
.inst-list th:nth-child(11){width:9%}
.inst-list th:nth-child(12){width:5%}
.as-list th:nth-child(1){width:11%}
.as-list th:nth-child(2){width:9%}
.as-list th:nth-child(3){width:7%}
.as-list th:nth-child(4){width:8%}
.as-list th:nth-child(5){width:9%}
.as-list th:nth-child(6){width:7%}
.as-list th:nth-child(7){width:7%}
.as-list th:nth-child(8){width:9%}
.as-list th:nth-child(9){width:6%}
.as-list th:nth-child(10){width:7%}
.as-list th:nth-child(11){width:10%}
.as-list th:nth-child(12){width:10%}
.mv-list th:nth-child(1){width:11%}
.mv-list th:nth-child(2){width:8%}
.mv-list th:nth-child(3){width:7%}
.mv-list th:nth-child(4){width:8%}
.mv-list th:nth-child(5){width:8%}
.mv-list th:nth-child(6){width:13%}
.mv-list th:nth-child(7){width:7%}
.mv-list th:nth-child(8){width:6%}
.mv-list th:nth-child(9){width:13%}
.mv-list th:nth-child(10){width:7%}
.mv-list th:nth-child(11){width:12%}
.debt-list th:nth-child(1){width:26%}
.debt-list th:nth-child(2){width:16%}
.debt-list th:nth-child(3){width:12%}
.debt-list th:nth-child(4){width:18%}
.debt-list th:nth-child(5){width:18%}
.debt-list th:nth-child(6){width:10%}
.warranty-list th:nth-child(1){width:22%}
.warranty-list th:nth-child(2){width:18%}
.warranty-list th:nth-child(3){width:16%}
.warranty-list th:nth-child(4){width:16%}
.warranty-list th:nth-child(5){width:14%}
.warranty-list th:nth-child(6){width:14%}
.sn-tbl th:nth-child(1){width:16%}
.sn-tbl th:nth-child(2){width:22%}
.sn-tbl th:nth-child(3){width:9%}
.sn-tbl th:nth-child(4){width:13%}
.sn-tbl th:nth-child(5){width:12%}
.sn-tbl th:nth-child(6){width:18%}
.sn-tbl th:nth-child(7){width:10%}
@media (min-width:761px){
.po-list th:nth-child(1){width:12%}
.po-list th:nth-child(3){width:13%}
.po-list th:nth-child(8){width:6%}
.po-list th:nth-child(9){width:9%}
.po-list th:nth-child(11){width:11%}
.po-list .cell-actions{overflow:visible}
.po-list .btn-sm{padding:4px 7px !important}
.mv-list th:nth-child(1){width:12%}
.mv-list th:nth-child(2){width:8%}
.mv-list th:nth-child(3){width:7%}
.mv-list th:nth-child(4){width:8%}
.mv-list th:nth-child(5){width:9%}
.mv-list th:nth-child(6){width:14%}
.mv-list th:nth-child(7){width:7%}
.mv-list th:nth-child(8){width:6%}
.mv-list th:nth-child(9){width:13%}
.mv-list th:nth-child(10){width:6%}
.mv-list th:nth-child(11){width:10%}
.mv-list td[data-label="时间"]{font-size:12px !important}
}
@media (min-width:761px){
.sn-tbl th:nth-child(1){width:13%}
.sn-tbl th:nth-child(2){width:9%}
.sn-tbl th:nth-child(3){width:8%}
.sn-tbl th:nth-child(4){width:9%}
.sn-tbl th:nth-child(5){width:6%}
.sn-tbl th:nth-child(6){width:11%}
.sn-tbl th:nth-child(7){width:13%}
.sn-tbl th:nth-child(8){width:6%}
.sn-tbl th:nth-child(9){width:8%}
.sn-tbl th:nth-child(10){width:8%}
.sn-tbl th:nth-child(11){width:6%}
.sn-tbl th:nth-child(12){width:5%}
.sn-tbl td[data-label="安装/保修"],.sn-tbl td[data-label="入库"],.sn-tbl td[data-label="售出"]{font-size:12px !important}
}
@media (min-width:761px){
.sn-tbl{font-size:12.5px}
.sn-tbl th,.sn-tbl td{padding:9px 5px !important;font-size:12.5px !important}
.sn-tbl th:nth-child(1){width:14%}
.sn-tbl th:nth-child(2){width:8%}
.sn-tbl th:nth-child(3){width:7%}
.sn-tbl th:nth-child(4){width:8%}
.sn-tbl th:nth-child(5){width:5%}
.sn-tbl th:nth-child(6){width:12%}
.sn-tbl th:nth-child(7){width:15%}
.sn-tbl th:nth-child(8){width:6%}
.sn-tbl th:nth-child(9){width:9%}
.sn-tbl th:nth-child(10){width:9%}
.sn-tbl th:nth-child(11){width:5%}
.sn-tbl th:nth-child(12){width:5%}
.sn-tbl td[data-label="入库"],.sn-tbl td[data-label="售出"]{font-size:11.5px !important}
}
@media (min-width:761px){
.sn-tbl th:nth-child(1){width:13%}
.sn-tbl th:nth-child(7){width:14%}
.sn-tbl th:nth-child(9){width:11%}
.sn-tbl th:nth-child(10){width:8%}
.rp-sales th:nth-child(1){width:12%}
.rp-sales th:nth-child(2){width:9%}
.rp-sales th:nth-child(3){width:8%}
.rp-sales th:nth-child(4){width:17%}
.rp-sales th:nth-child(5){width:7%}
.rp-sales th:nth-child(6){width:14%}
.rp-sales th:nth-child(7){width:6%}
.rp-sales th:nth-child(8){width:9%}
.rp-sales th:nth-child(9){width:9%}
.rp-sales th:nth-child(10){width:9%}
}
@media (min-width:761px){
table.data thead th{background:#eaf1fe !important;color:#1e3a8a !important}
}
@media (min-width:761px){
table.data{
table-layout:auto !important;
width:100% !important;
border-collapse:collapse;
}
table.data thead th,
table.data tbody td{
vertical-align:middle !important;
text-align:center !important;
}
table.data thead th{
padding:11px 10px !important;
font-size:12.5px !important;
font-weight:600 !important;
color:#1e3a8a !important;
background:#eaf1fe !important;
white-space:nowrap !important;
overflow:visible !important;
text-overflow:clip !important;
line-height:1.3 !important;
}
table.data tbody td{
padding:11px 10px !important;
font-size:13px !important;
white-space:nowrap !important;
overflow:visible !important;
text-overflow:clip !important;
line-height:1.35 !important;
}
table.data th[class*="nth"], table.data thead th{width:auto !important}
.prod-table thead th,.sales-table thead th,.po-list thead th,.po-detail-table thead th,
.inst-list thead th,.as-list thead th,.mv-list thead th,.sn-tbl thead th,
.debt-list thead th,.warranty-list thead th,.rp-sales thead th,.inst-items thead th{
width:auto !important;max-width:none !important;
}
.prod-table{min-width:1250px !important}
.sales-table{min-width:1400px !important}
.po-list{min-width:1350px !important}
.inst-list{min-width:1450px !important}
.as-list{min-width:1300px !important}
.mv-list{min-width:1250px !important}
.sn-tbl{min-width:1350px !important}
.debt-list{min-width:900px !important}
.warranty-list{min-width:1000px !important}
.rp-sales{min-width:1250px !important}
.inst-items{min-width:0 !important}
.po-detail-table{min-width:0 !important}
.card.table-wrap{overflow-x:auto;overflow-y:visible}
table.data td .badges{display:inline-flex !important;flex-wrap:nowrap !important;gap:4px !important;
align-items:center;vertical-align:middle}
table.data td .badge{white-space:nowrap !important;font-size:11.5px !important;padding:2px 6px !important}
}
@media (min-width:761px){
.inst-list{min-width:1320px !important}
.inst-list td[data-label="地址"]{max-width:170px;overflow:hidden;text-overflow:ellipsis}
.inst-list td[data-label="商品类型"]{max-width:130px;overflow:hidden;text-overflow:ellipsis}
.inst-list td[data-label="品牌"]{max-width:110px;overflow:hidden;text-overflow:ellipsis}
.inst-list td[data-label="型号"]{max-width:130px;overflow:hidden;text-overflow:ellipsis}
.as-list{min-width:1250px !important}
.as-list td[data-label="商品"]{max-width:110px;overflow:hidden;text-overflow:ellipsis}
.sales-table{min-width:1330px !important}
.sales-table td[data-label="类型"]{max-width:140px;overflow:hidden;text-overflow:ellipsis}
.sales-table td[data-label="品牌"]{max-width:120px;overflow:hidden;text-overflow:ellipsis}
.sales-table td[data-label="型号"]{max-width:130px;overflow:hidden;text-overflow:ellipsis}
.prod-table{min-width:1180px !important}
.mv-list{min-width:1200px !important}
.sn-tbl{min-width:1280px !important}
.po-list{min-width:1280px !important}
}
@media (min-width:761px){
.inst-list{min-width:1200px !important}
.inst-list td[data-label="地址"]{max-width:140px !important}
.inst-list td[data-label="商品类型"]{max-width:115px !important}
.inst-list td[data-label="型号"]{max-width:120px !important}
.inst-list td[data-label="工单号"]{font-size:12px !important}
}
@media (min-width:761px){
.inst-list{min-width:1120px !important;font-size:12.5px !important}
.inst-list th,.inst-list td{padding:9px 6px !important;font-size:12.5px !important}
.inst-list th{font-size:12px !important}
.inst-list td[data-label="地址"]{max-width:120px !important}
.inst-list td[data-label="商品类型"]{max-width:105px !important}
.inst-list td[data-label="品牌"]{max-width:95px !important}
.inst-list td[data-label="型号"]{max-width:105px !important}
.inst-list td[data-label="预约"]{font-size:11.5px !important}
.inst-list .badge{font-size:11px !important;padding:2px 5px !important}
}
.sn-tbl .sn-instock{background:#f3e8ff !important;color:#6b21a8 !important;border:1px solid #e9d5ff !important;font-weight:600}
.sn-tbl td a{text-decoration:underline !important;text-underline-offset:3px;color:#1d4ed8 !important}
@media (min-width:1400px){
.content{max-width:100% !important;padding:18px 20px 48px !important}
.inst-list{min-width:0 !important}
.sales-table{min-width:0 !important}
.as-list{min-width:0 !important}
.sn-tbl{min-width:0 !important}
.po-list{min-width:0 !important}
.mv-list{min-width:0 !important}
.prod-table{min-width:0 !important}
.rp-sales{min-width:0 !important}
}
@media (min-width:761px){
.inst-list{table-layout:fixed !important;width:100% !important;min-width:0 !important}
.inst-list th:nth-child(1){width:10%}
.inst-list th:nth-child(2){width:8%}
.inst-list th:nth-child(3){width:9%}
.inst-list th:nth-child(4){width:6%}
.inst-list th:nth-child(5){width:20%}
.inst-list th:nth-child(6){width:7%}
.inst-list th:nth-child(7){width:6%}
.inst-list th:nth-child(8){width:7%}
.inst-list th:nth-child(9){width:7%}
.inst-list th:nth-child(10){width:5%}
.inst-list th:nth-child(11){width:8%}
.inst-list th:nth-child(12){width:3%}
.inst-list th:nth-child(13){width:4%}
.inst-list td{white-space:normal !important;overflow:visible !important;text-overflow:clip !important;
max-width:none !important}
.inst-list td[data-label="工单号"]{white-space:nowrap !important;font-size:12px !important}
.inst-list td[data-label="预约"]{font-size:11.5px !important}
}
@media (min-width:761px){
.inst-list{table-layout:fixed !important}
.inst-list th:nth-child(1){width:9% !important}
.inst-list th:nth-child(2){width:7% !important}
.inst-list th:nth-child(3){width:8% !important}
.inst-list th:nth-child(4){width:5% !important}
.inst-list th:nth-child(5){width:24% !important}
.inst-list th:nth-child(6){width:7% !important}
.inst-list th:nth-child(7){width:6% !important}
.inst-list th:nth-child(8){width:7% !important}
.inst-list th:nth-child(9){width:7% !important}
.inst-list th:nth-child(10){width:4% !important}
.inst-list th:nth-child(11){width:8% !important}
.inst-list th:nth-child(12){width:4% !important}
.inst-list th:nth-child(13){width:4% !important}
}
@media (min-width:761px){
table.data.inst-list{table-layout:fixed !important;width:100% !important}
table.data.inst-list thead th:nth-child(1){width:70px !important}
table.data.inst-list thead th:nth-child(2){width:10% !important}
table.data.inst-list thead th:nth-child(3){width:7% !important}
table.data.inst-list thead th:nth-child(4){width:7% !important}
table.data.inst-list thead th:nth-child(5){width:5% !important}
table.data.inst-list thead th:nth-child(6){width:18% !important}
table.data.inst-list thead th:nth-child(7){width:7% !important}
table.data.inst-list thead th:nth-child(8){width:6% !important}
table.data.inst-list thead th:nth-child(9){width:7% !important}
table.data.inst-list thead th:nth-child(10){width:7% !important}
table.data.inst-list thead th:nth-child(11){width:4% !important}
table.data.inst-list thead th:nth-child(12){width:12% !important}
table.data.inst-list thead th:nth-child(13){width:5% !important}
table.data.inst-list thead th:nth-child(14){width:5% !important}
}
.qty-box{display:flex !important;align-items:center !important;justify-content:flex-end !important;
gap:6px;white-space:nowrap}
.qty-box .qty-num{display:inline-block;min-width:2.2em;text-align:right;
font-variant-numeric:tabular-nums;font-weight:700}
.qty-box .badge{flex:0 0 auto;font-size:11px;padding:1px 6px}
@media (min-width:761px){
table.inv-table td.qty-cell .qty-box{
display:grid !important;
grid-template-columns:2.6em auto !important;
justify-content:end !important;
align-items:center !important;
column-gap:6px !important;
}
table.inv-table td.qty-cell .qty-box .qty-num{
text-align:right !important;width:100% !important;font-variant-numeric:tabular-nums !important;
}
table.inv-table td.qty-cell .qty-box .badge{justify-self:start !important}
}
@media (min-width:761px){
table.data.inv-table td.qty-cell .qty-box{
display:grid !important;
grid-template-columns:2.8em 1fr !important;
justify-content:stretch !important;
justify-items:end !important;
align-items:center !important;
column-gap:6px !important;
width:100% !important;
}
table.data.inv-table td.qty-cell .qty-box .qty-num{
text-align:right !important;width:100% !important;
font-variant-numeric:tabular-nums !important;
}
table.data.inv-table td.qty-cell .qty-box .badge{justify-self:start !important}
}
@media (min-width:761px){
table.data.inv-table td.qty-cell{position:relative !important}
table.data.inv-table td.qty-cell .qty-box{
display:flex !important;justify-content:center !important;align-items:center !important;
position:relative !important;width:100% !important;
}
table.data.inv-table td.qty-cell .qty-num{
width:3em !important;min-width:3em !important;text-align:center !important;
font-variant-numeric:tabular-nums !important;
}
table.data.inv-table td.qty-cell .qty-box .badge{
position:absolute !important;left:calc(50% + 1.7em) !important;top:50% !important;
transform:translateY(-50%) !important;margin:0 !important;
}
}
@media (min-width:761px){
table.data.inv-table td.qty-cell{padding-right:44px !important}
table.data.inv-table td.qty-cell .qty-box .badge{
position:absolute !important;right:6px !important;left:auto !important;top:50% !important;
transform:translateY(-50%) !important;margin:0 !important;
}
}
@media (min-width:761px){
table.data.inv-table td.qty-cell{padding-right:8px !important;position:relative !important}
table.data.inv-table td.qty-cell .qty-box .badge{
position:absolute !important;right:6px !important;top:50% !important;
transform:translateY(-50%) !important;margin:0 !important;left:auto !important;
}
}
@media (min-width:761px){
.inv-table col.c-qty{width:140px !important}
table.data.inv-table td.qty-cell .qty-box .badge{
right:4px !important;font-size:10.5px !important;padding:1px 5px !important;
}
}
@media (min-width:761px){
table.data.inv-table td.qty-cell .qty-box{
position:static !important;display:flex !important;width:100% !important;
justify-content:center !important;align-items:center !important;
}
table.data.inv-table td.qty-cell{padding-right:8px !important}
}
@media (min-width:761px){
table.data.inv-table td.qty-cell .qty-box .qty-num{width:auto !important;min-width:0 !important;text-align:center !important}
table.data.inv-table td.qty-cell .qty-box .badge{
right:2px !important;font-size:10px !important;padding:1px 4px !important;letter-spacing:0 !important;
}
}
@media (min-width:761px){
table.data.sales-table{table-layout:fixed !important;width:100% !important;min-width:0 !important}
table.data.sales-table thead th:nth-child(1){width:4.5% !important}
table.data.sales-table thead th:nth-child(2){width:10.5% !important}
table.data.sales-table thead th:nth-child(3){width:8.5% !important}
table.data.sales-table thead th:nth-child(4){width:9% !important}
table.data.sales-table thead th:nth-child(5){width:8.5% !important}
table.data.sales-table thead th:nth-child(6){width:8% !important}
table.data.sales-table thead th:nth-child(7){width:7% !important}
table.data.sales-table thead th:nth-child(8){width:6.5% !important}
table.data.sales-table thead th:nth-child(9){width:8% !important}
table.data.sales-table thead th:nth-child(10){width:7.5% !important}
table.data.sales-table thead th:nth-child(11){width:7% !important}
table.data.sales-table thead th:nth-child(12){width:8% !important}
table.data.sales-table thead th:nth-child(13){width:7% !important}
table.data.sales-table tbody td{white-space:normal !important;word-break:break-word !important;
overflow:visible !important;text-overflow:clip !important;max-width:none !important}
table.data.sales-table tbody td .badges{display:inline-flex !important;flex-wrap:nowrap !important;gap:4px !important}
}
@media (min-width:761px){
table.data.rp-unpaid{table-layout:fixed !important;min-width:0 !important}
table.data.rp-unpaid thead th:nth-child(1){width:12% !important}
table.data.rp-unpaid thead th:nth-child(2){width:9% !important}
table.data.rp-unpaid thead th:nth-child(3){width:8% !important}
table.data.rp-unpaid thead th:nth-child(4){width:16% !important}
table.data.rp-unpaid thead th:nth-child(5){width:7% !important}
table.data.rp-unpaid thead th:nth-child(6){width:13% !important}
table.data.rp-unpaid thead th:nth-child(7){width:6% !important}
table.data.rp-unpaid thead th:nth-child(8){width:9% !important}
table.data.rp-unpaid thead th:nth-child(9){width:9% !important}
table.data.rp-unpaid thead th:nth-child(10){width:8% !important}
}
td.unsettled-amt strong,td.unsettled-amt{color:#dc2626 !important;font-weight:700 !important}
.unpaid-box{
margin-top:14px;padding:12px 14px;border-radius:8px;
background:#fef9c3;border:1px solid #fde68a;
display:flex;align-items:center;justify-content:space-between;gap:10px;
}
.unpaid-box .unpaid-label{font-size:15px;font-weight:700;color:#854d0e}
.unpaid-box .unpaid-value{font-size:20px;font-weight:800;color:#b91c1c;
font-variant-numeric:tabular-nums}
.unpaid-card{margin-top:14px !important;background:#fef9c3 !important;border:1px solid #fde68a !important;
display:block !important}
.unpaid-card .unpaid-box{display:flex;align-items:center;justify-content:space-between;gap:10px;
margin:0 !important;padding:0 !important;background:transparent !important;border:none !important}
.unpaid-card .unpaid-label{font-size:15px;font-weight:700;color:#854d0e}
.unpaid-card .unpaid-value{font-size:22px;font-weight:800;color:#b91c1c;font-variant-numeric:tabular-nums}
.unpaid-card .unpaid-count{margin-top:8px;font-size:12.5px;color:#92400e}
.col-stack{display:flex;flex-direction:column;gap:14px;min-width:0}
.col-stack > .card{margin:0 !important}
.unpaid-card{
margin-top:8px !important;padding:9px 14px !important;
background:#fef3c7 !important;border:1px solid #fde68a !important;border-radius:8px !important;
}
.unpaid-card .unpaid-box{
display:flex !important;align-items:center !important;justify-content:space-between !important;
gap:8px;margin:0 !important;padding:0 !important;background:none !important;border:none !important;
}
.unpaid-card .unpaid-label{font-size:14px !important;font-weight:700 !important;color:#854d0e !important}
.unpaid-card .unpaid-count{font-size:12px !important;font-weight:400 !important;color:#a16207 !important}
.unpaid-card .unpaid-value{font-size:17px !important;font-weight:800 !important;color:#b91c1c !important;
font-variant-numeric:tabular-nums;letter-spacing:0}
.col-stack{display:flex !important;flex-direction:column !important;gap:10px !important;height:100% !important}
.col-stack .col-fill{flex:1 1 auto;min-height:0}
.unpaid-card{margin-top:0 !important}
.col-stack .card:not(.unpaid-card){padding:12px 14px !important}
.col-stack .card:not(.unpaid-card) .section-head{margin-bottom:6px !important}
.col-stack .card:not(.unpaid-card) .row{padding:4px 0 !important}
.col-stack .card:not(.unpaid-card){padding:10px 12px !important}
.col-stack .card:not(.unpaid-card) .section-head{margin-bottom:4px !important}
.col-stack .card:not(.unpaid-card) .section-head h2{font-size:15px !important}
.col-stack .card:not(.unpaid-card) .row{padding:3px 0 !important;font-size:13.5px !important}
.col-stack .col-fill{display:none !important}
.col-stack > .card:not(.unpaid-card){flex:1 1 auto !important;display:flex !important;
flex-direction:column !important;justify-content:flex-start !important}
.col-stack > .unpaid-card{flex:0 0 auto !important}
.col-stack .card:not(.unpaid-card){padding:14px 16px !important}
.col-stack .card:not(.unpaid-card) .section-head{margin-bottom:10px !important}
.col-stack .card:not(.unpaid-card) .section-head h2{font-size:17px !important;font-weight:700 !important}
.col-stack .card:not(.unpaid-card) .row{padding:8px 0 !important;font-size:16px !important}
.col-stack .card:not(.unpaid-card) .pay-amt{font-size:16px !important;font-weight:600 !important}
.unpaid-card{padding:10px 16px !important;border-radius:8px !important}
.unpaid-card .unpaid-label{font-size:15px !important;font-weight:700 !important}
.unpaid-card .unpaid-count{font-size:13px !important;font-weight:400 !important}
.unpaid-card .unpaid-value{font-size:17px !important;font-weight:800 !important}
.col-stack{position:relative !important;padding-bottom:54px !important;
display:flex !important;flex-direction:column !important;height:100% !important}
.col-stack > .card:not(.unpaid-card){flex:1 1 auto !important;margin:0 !important}
.col-stack > .unpaid-card{position:absolute !important;left:0 !important;right:0 !important;
bottom:0 !important;margin:0 !important}
.cols-eq{align-items:stretch !important}
.idle-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.idle-row .idle-label{color:#64748b;font-size:15px;margin:0;white-space:nowrap}
.idle-row .idle-select{max-width:200px;margin:0}
.idle-row .idle-save{margin-left:6px;padding:9px 22px}
.idle-tip{margin-top:8px}
.anon-body{display:flex;align-items:center;justify-content:center;min-height:100vh;
background:#f6f8fb;margin:0;font-family:"Microsoft YaHei",sans-serif}
.anon-wrap{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:36px 40px;
text-align:center;max-width:420px;box-shadow:0 10px 30px rgba(15,23,42,.06)}
.anon-logo{width:96px;height:auto;margin-bottom:10px}
.anon-code{font-size:44px;font-weight:800;color:#1d4ed8;line-height:1.1}
.anon-msg{font-size:16px;color:#0f172a;margin-top:6px}
.anon-hint{font-size:13px;color:#64748b;margin-top:6px}
.anon-wrap .btn{margin-top:18px}
.captcha-img{height:46px;width:128px;border:1px solid #cbd5e1;border-radius:6px;
background:#fff;cursor:pointer;flex:0 0 auto}
.login-card, .login-card-wide{
max-width:480px !important;width:100% !important;
padding:20px 20px 24px !important;border-radius:16px !important;
display:block !important;
}
.login-logo{width:104px !important;margin:0 auto !important}
.login-title{font-size:20px !important;font-weight:700 !important;margin-top:6px !important}
.login-sub{font-size:15px !important;margin-top:2px}
.login-version{font-size:12px !important;margin-top:4px !important;padding:1px 8px !important}
.login-card > div > div[style*="text-align:center"]{margin-bottom:14px !important}
.login-card .field:not(:has(textarea)){
display:grid !important;grid-template-columns:4.6em minmax(0,1fr) !important;
column-gap:10px !important;align-items:center !important;margin-bottom:12px !important;
}
.login-card .field:not(:has(textarea)) > label{
text-align:right !important;margin:0 !important;font-size:16px !important;
color:var(--muted) !important;white-space:nowrap;
}
.login-card .field:not(:has(textarea)) > input{
width:100% !important;min-width:0 !important;height:40px !important;margin:0 !important;
}
.login-card .btn-lg{
margin-top:6px !important;height:44px !important;font-size:17px !important;
border-radius:8px !important;
}
.login-side{
display:flex !important;flex-direction:column !important;align-items:center !important;
border-left:none !important;border-top:1px solid var(--line) !important;
padding-left:0 !important;padding-top:14px !important;margin-top:16px !important;
text-align:center;
}
.login-side .qr-img{width:126px !important;height:126px !important}
.login-side > div{font-size:15px !important;margin-top:6px !important}
@media (max-width:760px){
.login-wrap{padding:12px !important;padding-top:calc(12px + env(safe-area-inset-top)) !important}
}
.idle-row{flex-wrap:nowrap !important;gap:12px !important}
.idle-row .idle-select{flex:0 0 150px !important;width:150px !important;max-width:150px !important}
.idle-row .idle-save{flex:0 0 auto !important;margin-left:0 !important;padding:9px 18px !important}
@media (max-width:420px){
.idle-row{gap:8px !important}
.idle-row .idle-label{font-size:14px !important}
.idle-row .idle-select{flex:0 0 118px !important;width:118px !important;max-width:118px !important;
padding-left:8px;padding-right:4px}
.idle-row .idle-save{padding:9px 14px !important}
}
.kv{grid-template-columns:max-content minmax(0,1fr) !important}
.kv dd{min-width:0 !important;overflow-wrap:anywhere}
.kv dd img{max-width:min(260px,100%) !important;height:auto}
.photo-thumb{display:inline-block;line-height:0;cursor:zoom-in}
.lb-mask{position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.88);
display:flex;align-items:center;justify-content:center;cursor:zoom-out}
.lb-img{max-width:92vw;max-height:86vh;border-radius:8px;box-shadow:0 8px 30px rgba(0,0,0,.5)}
.lb-close{position:absolute;top:14px;right:14px;width:42px;height:42px;border:none;border-radius:50%;
background:rgba(255,255,255,.92);color:#0f172a;font-size:26px;line-height:42px;cursor:pointer;
padding:0;font-family:sans-serif}
.lb-tip{position:absolute;bottom:18px;left:0;right:0;text-align:center;color:#e2e8f0;font-size:13px}
@media (max-width:760px){
.row.as-tabs{display:flex !important;flex-wrap:nowrap !important;gap:6px !important;
overflow-x:auto;padding-bottom:2px;-webkit-overflow-scrolling:touch}
.row.as-tabs > .btn{flex:1 1 0 !important;min-width:0 !important;padding:9px 4px !important;
font-size:13px !important;text-align:center;white-space:nowrap;overflow:hidden;
text-overflow:ellipsis}
}

/* 销售单筛选：起止日期一组（电脑端一行，手机端独占一行） */
.sales-filters .date-range{display:flex;align-items:center;gap:6px;min-width:0;flex:0 0 auto}
.sales-filters .date-range input[type="date"]{flex:0 0 150px;width:150px;max-width:150px !important;margin:0}
.sales-filters .date-range > span{flex:0 0 auto;margin:0}

/* 采购入库：入库信息四项，每个都是「标签在左、控件在右」对齐 */
.grid-4.purchase-meta{align-items:end}
.purchase-meta .field{display:grid !important;grid-template-columns:5.2em minmax(0,1fr) !important;
  align-items:center;column-gap:8px;margin:0 !important}
.purchase-meta .field > label{text-align:right;margin:0 !important;white-space:nowrap;font-size:15px}
.purchase-meta .field > select,.purchase-meta .field > input{width:100% !important;min-width:0}
@media (max-width:760px){
  .purchase-meta .field{grid-template-columns:4.6em minmax(0,1fr) !important}
}

/* 添加商品：下拉列表不能被卡片裁掉 */
.add-product-card{overflow:visible !important}
.add-product-top{position:relative;z-index:30}
.search-box .dropdown{z-index:60}

/* 登录页底部版权行（VER / 版权 / 技术支持） */
.login-card .login-foot{
  display:flex;align-items:center;justify-content:space-between;gap:6px;
  margin-top:18px;padding-top:12px;border-top:1px solid var(--line);
  font-size:12px;color:#94a3b8;white-space:nowrap;flex-wrap:wrap;
}
.login-card .login-foot span{flex:0 0 auto}
@media (max-width:420px){
  .login-card .login-foot{font-size:11px;gap:4px;justify-content:center}
}

/* 库存页：门店下拉放宽 */
.inv-store-select{min-width:190px;max-width:none !important}

/* 库存页：序列号列（下拉更长，缺号红标签） */
.inv-sn-td{min-width:210px}
.inv-sn-cell{display:flex;align-items:center;gap:8px;min-width:0}
.inv-sn-cell select{flex:1 1 auto;min-width:150px;max-width:none}
.sn-badge{flex:0 0 auto;background:#fee2e2;color:#b91c1c;border:1px solid #fecaca;
  border-radius:999px;padding:1px 8px;font-size:12px;white-space:nowrap;font-weight:600}
.sn-empty{flex:1 1 auto;color:#b91c1c;font-size:13px}

/* 库存页：最近入库一行、金额右对齐 */
.inv-in-td{white-space:nowrap}
.inv-table td.num, .inv-table .inv-value-td{font-variant-numeric:tabular-nums}

/* 盘点/补录 弹窗页签 */
.inv-tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin:-4px 0 12px}
.inv-tab{background:transparent;border:none;border-bottom:2px solid transparent;
  padding:9px 12px;font-size:15px;color:#64748b;cursor:pointer;font-family:inherit}
.inv-tab:hover:not(:disabled){color:var(--primary)}
.inv-tab.active{color:var(--primary);border-bottom-color:var(--primary);font-weight:600}
.inv-tab:disabled{color:#cbd5e1;cursor:not-allowed}
.inv-modal-name{margin-bottom:10px}

/* 库存表：给序列号列留足宽度，整表宽度跟着调整 */
.inv-table{width:1400px !important;min-width:1400px !important}
.inv-table col.c-name{width:120px !important}
.inv-table col.c-cat{width:74px !important}
.inv-table col.c-brand{width:80px !important}
.inv-table col.c-model{width:80px !important}
.inv-table col.c-sn{width:240px !important}
.inv-table col.c-qty{width:110px !important}
.inv-table col.c-in{width:130px !important}
.inv-table col.c-price{width:96px !important}
.inv-table col.c-value{width:116px !important}
.inv-table col.c-sale{width:96px !important}
.inv-table col.c-adjust{width:72px !important}
.inv-table td.inv-in-td{white-space:nowrap !important}
.inv-table .inv-sn-cell{justify-content:flex-start}
.inv-table .inv-sn-cell select{margin:0 !important}
.inv-store-select{flex:0 0 250px !important;width:250px !important;min-width:250px !important;max-width:250px !important}

/* 库存表：与采购列表统一风格（统一字号、字重、行高） */
.inv-table{font-size:15px !important}
.inv-table th,.inv-table td{
  padding:11px 12px !important;font-size:15px !important;font-weight:400 !important;
  line-height:1.4 !important;vertical-align:middle !important;height:52px;
}
.inv-table thead th{font-weight:600 !important;font-size:15px !important;color:#475569 !important}
.inv-table .pc-name{font-size:15px !important;font-weight:500 !important;text-align:center}
.inv-table .qty-num{font-size:15px !important;font-weight:500 !important}
.inv-table .sn-badge{font-weight:500 !important}
.inv-table td[data-label="商品"]{white-space:nowrap !important;overflow:hidden;text-overflow:ellipsis}
.inv-table .amt-green,.inv-table .amt-blue,.inv-table .amt-black{font-weight:400 !important}
.inv-table .btn-adjust{font-size:13px !important}

/* 库存表：行高与字号强统一（覆盖历史零散规则） */
.inv-table tbody td{font-size:15px !important;font-weight:400 !important;
  height:54px !important;padding:8px 12px !important;vertical-align:middle !important}
.inv-table tbody td .pc-name{font-size:15px !important;font-weight:500 !important}
.inv-table tbody td .qty-num{font-size:15px !important;font-weight:500 !important}
.inv-table tbody td select{height:32px !important;min-height:32px !important;padding:2px 8px !important;
  font-size:14px !important;line-height:1.2 !important}
.inv-table tbody td .sn-badge{font-size:12px !important;font-weight:500 !important;padding:1px 8px !important}
.inv-table tbody td .badge{font-size:11px !important;font-weight:500 !important}
.inv-table tbody td .sn-none,.inv-table tbody td .sn-empty{font-size:14px !important}
.inv-table tbody tr{height:54px}

/* 库存表：最终统一字号/字重（提高优先级，压过历史零散规则） */
table.data.inv-table tbody td,
table.data.inv-table tbody td[data-label]{font-size:15px !important;font-weight:400 !important;
  height:54px !important;padding:8px 12px !important}
table.data.inv-table thead th{font-size:15px !important;font-weight:600 !important}
table.data.inv-table .pc-name{font-size:15px !important;font-weight:400 !important}
table.data.inv-table .qty-num{font-size:15px !important;font-weight:400 !important}
table.data.inv-table .sn-none,table.data.inv-table .sn-empty{font-size:14px !important;font-weight:400 !important}
table.data.inv-table .sn-badge{font-size:12px !important;font-weight:500 !important}
table.data.inv-table td select{height:32px !important;font-size:14px !important}

/* 库存：序列号栏位统一成「框内提示」，值靠右、缺号标签靠左 */
.sn-box{position:relative;display:flex;align-items:center;height:34px;width:100%;
  border:1px solid #d7dee8;border-radius:8px;background:#fff;padding:0 10px;
  box-sizing:border-box;min-width:0}
.sn-box select{flex:1 1 auto;width:100%;height:32px;border:none !important;background:transparent !important;
  box-shadow:none !important;appearance:none;-webkit-appearance:none;-moz-appearance:none;
  text-align:right;padding:0 18px 0 0 !important;margin:0 !important;font-size:14px !important;
  color:#0f172a;cursor:pointer;outline:none}
.sn-box .sn-caret{position:absolute;right:8px;top:calc(50% - 3px);
  width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;
  border-top:5px solid #94a3b8;pointer-events:none}
.sn-box .sn-badge{position:absolute;left:6px;top:50%;transform:translateY(-50%);z-index:2;
  background:#fee2e2;color:#b91c1c;border:1px solid #fecaca;border-radius:999px;
  padding:1px 8px;font-size:12px;font-weight:500;white-space:nowrap;pointer-events:none}
.sn-box.has-badge select{padding-left:92px !important}
.sn-box .sn-empty,.sn-box .sn-none{flex:1 1 auto;text-align:right;font-size:14px;white-space:nowrap}
.sn-box .sn-empty{color:#b91c1c}
.sn-box .sn-none{color:#b91c1c}
table.data.inv-table td[data-label="序列号"]{padding:8px 12px !important}

/* 库存：统计文案 + 表头排序 */
.inv-count-text{color:#64748b;font-size:15px;white-space:nowrap;margin-right:18px}
.inv-count-text b{color:#1d4ed8;font-weight:600;font-size:16px}
.inv-table .th-sort{color:inherit;text-decoration:none;display:inline-flex;align-items:center;gap:4px;
  cursor:pointer;white-space:nowrap}
.inv-table .th-sort:hover{color:#1d4ed8}
.inv-table .th-arrow{font-size:11px;color:#1d4ed8;line-height:1}

/* 序列号页：勾选「改SN」后才显示改号按钮，防误点 */
.sn-edit-toggle{display:inline-flex;align-items:center;gap:5px;font-size:13px;color:#64748b;
  margin-left:8px;white-space:nowrap;cursor:pointer;font-weight:400}
.sn-edit-toggle input{width:auto !important;margin:0;cursor:pointer}
.sn-tbl .btn-sn-edit{display:none !important}
.sn-tbl.sn-edit-on .btn-sn-edit{display:inline-block !important}
.only-mobile{display:none}
@media (max-width:760px){ .only-mobile{display:inline-flex} }

/* 侧边栏：上下分区底色 + 图标菜单 */
.sidebar{background:#ffffff !important;display:flex;flex-direction:column}
.sidebar .brand{background:#ffffff;border-bottom:1px solid #eef2f7;padding:18px 16px 16px}
.sidebar .brand-logo{width:64px;height:64px;border-radius:14px;background:#f5f8ff;padding:6px;flex:0 0 64px}
.sidebar .brand-name{font-size:18px;font-weight:700;color:#0f172a;letter-spacing:.02em}
.sidebar .brand-sub{font-size:14px;color:#94a3b8}
.sidebar .nav{background:#f7f9fc;padding:10px 8px;flex:1 1 auto;overflow-y:auto}
.sidebar .nav .nav-item{display:flex;align-items:center;gap:10px;
  padding:10px 12px;margin:2px 0;border:1px solid transparent;border-radius:10px;
  color:#334155;font-size:16px;font-weight:500;line-height:1.2}
.sidebar .nav .nav-item .nav-ico{width:19px;height:19px;flex:0 0 19px;color:#64748b}
.sidebar .nav .nav-item:hover{background:#eef4ff;color:#1d4ed8;text-decoration:none}
.sidebar .nav .nav-item:hover .nav-ico{color:#1d4ed8}
.sidebar .nav .nav-item.active{background:#e6efff;color:#1d4ed8;font-weight:600;border-color:#d6e4ff}
.sidebar .nav .nav-item.active .nav-ico{color:#1d4ed8}
.sidebar-foot{background:#ffffff;border-top:1px solid #eef2f7;padding:12px 14px}
.sidebar-foot .who-name{font-size:16px;font-weight:700;color:#0f172a}
.sidebar-foot .who-role{font-size:14px;color:#94a3b8}
.logout-btn{display:inline-flex;align-items:center;gap:6px;border:1px solid #e2e8f0;
  background:#fff;color:#475569;padding:7px 12px;border-radius:8px;font-size:15px}
.logout-btn:hover{background:#f8fafc;color:#1d4ed8;border-color:#c7d7fe;text-decoration:none}
.logout-btn .nav-ico{width:16px;height:16px}

/* 登录页：访问方式切换（外网 / 局域网） */
.net-switch{display:flex;align-items:center;justify-content:center;gap:8px;
  margin-top:16px;font-size:13px;color:#94a3b8}
.net-switch .net-label{color:#94a3b8}
.net-chip{display:inline-block;padding:3px 12px;border:1px solid #dbe3ea;border-radius:999px;
  color:#475569;text-decoration:none;font-size:13px;line-height:1.4}
.net-chip:hover{border-color:#bfdbfe;color:#1d4ed8;text-decoration:none}
.net-chip.on{background:#e6efff;border-color:#c7d7fe;color:#1d4ed8;font-weight:600}

/* 登录页访问方式：单选勾选样式 */
.net-switch{display:flex;align-items:center;justify-content:center;gap:14px;
  margin-top:12px;font-size:13px;color:#94a3b8}
.net-opt{display:inline-flex;align-items:center;gap:6px;cursor:pointer;color:#475569;font-size:13px}
.net-opt input[type=radio]{width:15px;height:15px;margin:0;accent-color:#1d4ed8;cursor:pointer}
.net-opt span{line-height:1}
.net-opt:has(input:checked){color:#1d4ed8;font-weight:600}

/* 自动切换内网提示 */
.net-switched{margin-top:14px;padding:7px 12px;border-radius:8px;background:#ecfdf5;
  border:1px solid #bbf7d0;color:#15803d;font-size:13px;text-align:center}

/* 序列号页：SN 号码加大一号并标蓝 */
.sn-tbl td.cell-main{font-size:17px !important;color:#1d4ed8 !important;font-weight:600 !important}
.sn-tbl td.cell-main a{color:#1d4ed8 !important}
@media (max-width:760px){
  .sn-tbl td.cell-main{font-size:16px !important}
}

/* 改号留痕：原 SN 提示 */
.sn-origin{color:#b45309;font-size:13px;font-weight:400}
.sn-log-table{width:100%}
.sn-log-table .sn-new{color:#1d4ed8;font-weight:600}

/* 库存为 0 的显示 */
.stock-soldout{color:#b91c1c;font-weight:600;font-size:14px;white-space:nowrap}

/* 库存 0：已售罄 + 预警标签不重叠 */
.inv-table .qty-box{flex-wrap:wrap !important;gap:4px 6px !important}
.inv-table .stock-soldout{font-size:13px !important;line-height:1.2}
.inv-table td.qty-cell{padding-right:12px !important}

/* 销售单统计：独占一行并右对齐 */
.sales-filters .inv-count-text{flex:1 0 100%;text-align:right;margin-top:2px}

/* 销售单：序号列 + 统计与筛选同一行 */
.sales-table .col-idx{text-align:center;color:#64748b;white-space:nowrap}
@media (min-width:761px){
  .sales-filters{flex-wrap:nowrap !important}
  .sales-filters > input[name="q"]{max-width:240px !important;min-width:150px}
  .sales-filters .date-range input[type="date"]{flex:0 0 168px;width:168px;max-width:168px !important}
  .sales-filters > select{max-width:140px !important}
  .sales-filters .inv-count-text{flex:0 0 auto;margin-left:auto;text-align:right;white-space:nowrap}
}
@media (max-width:1500px){
  .sales-filters .inv-count-text{flex:1 0 100%;text-align:right;margin-top:2px;white-space:normal}
}

/* 各列表页序号列：固定 70px，足够 7 位数字 */
table.data th.col-idx,table.data td.col-idx{
  width:70px !important;min-width:70px !important;max-width:70px !important;
  text-align:center !important;color:#64748b;white-space:nowrap;font-weight:400}
.inv-table col.c-idx{width:70px}
.inv-table{width:1340px;min-width:1340px}

/* 采购单序号列：自动布局，序号固定 70px */
table.data.po-list{table-layout:auto !important;min-width:1350px !important}
table.data.po-list thead th{width:auto !important}
table.data.po-list thead th.col-idx{width:70px !important;min-width:70px !important;max-width:70px !important;
  text-align:center !important;color:#64748b;white-space:nowrap}
table.data.po-list tbody td.col-idx{width:70px !important;text-align:center !important;color:#64748b;white-space:nowrap}

/* 销售单筛选按钮不折行 */
.sales-filters > button,.sales-filters > a.btn{white-space:nowrap;flex:0 0 auto}

/* 报表明细：序号列 70px */
table.data.rp-sales thead th:nth-child(1){width:70px !important}
table.data.rp-sales tbody td:nth-child(1){width:70px !important}
table.data.rp-sales thead th.col-idx,table.data.rp-sales tbody td.col-idx{
  text-align:center !important;color:#64748b;white-space:nowrap}
table.data.rp-sales{table-layout:auto !important;min-width:1300px !important}
