/* ===== style块1（原文平移） ===== */

*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Microsoft YaHei',sans-serif;background:#f0f2f5;color:#333;font-size:14px}
input,select,textarea,button{padding:8px 12px;border:1px solid #d9d9d9;border-radius:4px;font-size:14px;font-family:inherit}
button{cursor:pointer;background:#1677ff;color:#fff;border:none;border-radius:4px;padding:8px 16px;transition:all .2s}
button:hover{opacity:.85}
button.btn-secondary{background:#fff;color:#333;border:1px solid #d9d9d9}
button.btn-export{background:#1677ff;color:#fff;border:1px solid #1677ff;border-radius:6px;padding:4px 12px;cursor:pointer}
button.btn-danger{background:#ff4d4f}
button.btn-success{background:#52c41a}
button.btn-warning{background:#faad14;color:#fff}
button:disabled{opacity:.5;cursor:not-allowed}
table{width:100%;border-collapse:collapse;background:#fff}
th,td{padding:2px;border:1px solid #e8e8e8;text-align:left}
th{background:#fafafa;font-weight:500;color:#333}
tr:hover{background:#f5f5f5}
.badge{padding:2px 8px;border-radius:10px;font-size:12px;border:1px solid currentColor;background-clip:padding-box}
.badge-pending,.badge-draft{border-color:#d9d9d9}
.badge-confirmed,.badge-ordered{border-color:#ffd591}
.badge-production,.badge-signed{border-color:#91caff}
.badge-completed,.badge-active{border-color:#b7eb8f}
.badge-stopped{border-color:#ffa39e}
.badge-invalid{border-color:#d9d9d9}
.badge-cancelled{border-color:#d9d9d9}
.badge-pending{background:#f5f5f5;color:#999}
.badge-confirmed{background:#fff7e6;color:#fa8c16}
.badge-production{background:#e6f7ff;color:#1677ff}
.badge-completed{background:#f6ffed;color:#52c41a}
.badge-stopped{background:#fff1f0;color:#ff4d4f}
/* 隐藏Chrome、Edge、Safari的number输入框箭头 */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* 隐藏Firefox的默认箭头 */
input[type="number"] {
  -moz-appearance: textfield;
}
/* ====== 生产进度视图 ====== */
.progress-col{background:#fff;border-radius:8px;box-shadow:0 1px 3px rgba(0,0,0,0.06);border:1px solid #f0f0f0;display:flex;flex-direction:column;overflow:hidden;min-height:200px}
.progress-col-header{padding:5px;background:linear-gradient(135deg,#fafafa 0%,#f5f5f5 100%);border-bottom:2px solid #1677ff;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:2}
.progress-col[data-team="技术出图"] .progress-col-header{border-bottom-color:#722ed1}
.progress-col[data-team="钳工班"] .progress-col-header{border-bottom-color:#1677ff}
.progress-col[data-team="焊工班"] .progress-col-header{border-bottom-color:#fa8c16}
.progress-col[data-team="喷涂班"] .progress-col-header{border-bottom-color:#eb2f96}
.progress-col[data-team="装配班"] .progress-col-header{border-bottom-color:#52c41a}
.progress-col-title{font-size:15px;font-weight:600;color:#1a1a2e}
.progress-col-count{background:#1677ff;color:#fff;font-size:12px;padding:2px 10px;border-radius:12px;font-weight:500;min-width:24px;text-align:center}
.progress-col[data-team="技术出图"] .progress-col-count{background:#722ed1}
.progress-col[data-team="钳工班"] .progress-col-count{background:#1677ff}
.progress-col[data-team="焊工班"] .progress-col-count{background:#fa8c16}
.progress-col[data-team="喷涂班"] .progress-col-count{background:#eb2f96}
.progress-col[data-team="装配班"] .progress-col-count{background:#52c41a}
.progress-col-body{flex:1;overflow:auto;max-height:calc(100vh - 280px)}
.progress-tbl{width:100%;border-collapse:collapse;font-size:12px}
.progress-tbl thead{position:sticky;top:0;background:#fafafa;z-index:1}
.progress-tbl thead th{padding:2px;text-align:left;font-weight:600;color:#333;border-bottom:1px solid #e8e8e8;white-space:nowrap;font-size:11px}
.progress-tbl tbody td{padding:2px;border-bottom:1px solid #f5f5f5;color:#333;vertical-align:top}
.progress-tbl tbody tr:hover{background:#f5f9ff}
.progress-tbl tbody tr:last-child td{border-bottom:none}
.badge-draft{background:#f5f5f5;color:#666}
.badge-signed{background:#e6f7ff;color:#1677ff}
.badge-ordered{background:#fff7e6;color:#fa8c16}
.badge-active{background:#f6ffed;color:#52c41a}
.badge-inactive{background:#fff1f0;color:#ff4d4f}
.badge-invalid{background:#fff1f0;color:#ff4d4f;border:1px solid #ffccc7}
.step-s0{background:#f5f5f5;color:#999}
.step-s1{background:#e6f7ff;color:#1677ff}
.step-s2{background:#f6ffed;color:#52c41a}
.step-s3{background:#fff1f0;color:#ff4d4f}
.step-s4{background:#e6e6e6;color:#7a7a7a}
/* 20261105：z-index 1000→3000——聊天面板(z:1460)曾压住弹窗，导致消息页里“我的/私聊/群聊/上传/审批”弹窗全部被遮挡打不开 */
.modal{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.45);display:none;align-items:center;justify-content:center;z-index:3000}
.modal.active{display:flex}
.modal-content{background:#fff;border-radius:8px;width:90%;max-width:900px;max-height:85vh;overflow:hidden;padding:24px;position:relative;display:flex;flex-direction:column}.modal-content.order-detail-modal{max-width:1350px}.modal-content.inbound-modal{width:max-content;min-width:680px;max-width:calc(100vw - 48px)}.modal-content>.modal-header{flex:0 0 auto}.modal-content>.modal-body{flex:1 1 auto;overflow-y:auto;min-height:0;max-height:none;-webkit-overflow-scrolling:touch}.modal-content>.modal-footer{flex:0 0 auto}
.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #e8e8e8}
.modal-title{font-size:18px;font-weight:600}
.modal-close{background:none;border:none;font-size:24px;cursor:pointer;color:#999;line-height:1}
.modal-close:hover{color:#333}
/* 合同弹窗专用：宽度按内容自适应（不超视窗），间距紧凑 */
.modal-content.ct-modal{width:max-content;min-width:680px;max-width:calc(100vw - 48px)}
.modal-content.ct-modal .modal-header{margin-bottom:8px;padding-bottom:8px}
.modal-content.ct-modal .modal-footer{margin-top:8px;padding-top:8px}
.modal-content.ct-modal .form-group{margin-bottom:6px}
.modal-content.ct-modal .items-table{margin:4px 0}
.modal-content.recon-modal{width:max-content;min-width:720px;max-width:calc(100vw - 40px)}
.modal-content.recon-modal .items-table th,.modal-content.recon-modal .items-table td{white-space:nowrap;padding:3px 6px}
.modal-content.recon-modal .modal-body{overflow-x:hidden;max-height:calc(100vh - 200px);overflow-y:auto}
@media (max-width:900px){.modal-content.recon-modal{min-width:0;width:calc(100vw - 32px)}}
.modal-content.ct-modal .items-table th,.modal-content.ct-modal .items-table td{padding:5px 6px}
#po-form .items-table input{border:none;padding:4px 5px;background:#f7fafc!important;border-radius:0;box-sizing:border-box}
#po-form .items-table .btn-danger{white-space:nowrap}
#po-form .items-table .prem-lb input{background:#fff;padding:0}
#po-form .items-table input[id^='po-oq'],#po-form .items-table input[id^='po-price']{width:56px!important}
#po-form .items-table input[id^='po-dd']{width:104px!important}
#po-form .items-table input[id^='po-tax']{width:48px!important;text-align:center}
#po-form .items-table input[id^='po-attr']{width:84px!important}
#po-form .items-table input[id^='po-remark']{width:60px!important}
#po-form input#po-supplier,#po-form input#po-order-date{background:#f7fafc;border-color:#dbe6f0;height:35px;box-sizing:border-box}
.modal-content.ct-modal .total-bar{margin-top:4px}
.modal-content.sg-modal{max-height:95vh;width:72%;max-width:1050px;padding:20px}
.modal-content.sg-modal .modal-header{margin-bottom:5px;padding-bottom:5px;border-bottom:none}
.modal-content.sg-modal .modal-footer{margin-top:5px;padding-top:5px;border-top:none}
.modal-content.ct-modal h4.mb8{margin-bottom:6px}
.modal-footer{margin-top:20px;padding-top:16px;border-top:1px solid #e8e8e8;display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.btn-primary{background:#1677ff;color:#fff;border:none;border-radius:4px;padding:8px 16px;cursor:pointer;transition:all .2s}
.btn-primary:hover{opacity:.85}
.form-group{margin-bottom:16px}
.form-group label{display:block;margin-bottom:6px;font-weight:500}
.form-group input,.form-group select,.form-group textarea{width:100%}
.form-row{display:flex;gap:16px}
.form-row .form-group{flex:1}
.hidden{display:none!important}
.text-center{text-align:center}
.text-right{text-align:right}
.text-muted{color:#999}
.mt8{margin-top:8px}.mt16{margin-top:16px}
.mb8{margin-bottom:8px}.mb16{margin-bottom:16px}
.flex{display:flex;align-items:center;gap:8px}
.flex-between{justify-content:space-between}
.flex-center{justify-content:center}
.gap4{gap:4px}.gap8{gap:8px}.gap16{gap:16px}
.p8{padding:8px}.p16{padding:16px}
.scroll-x{overflow-x:auto}
.scroll-x table thead th{position:sticky;top:0;background:#fafafa;z-index:3}
.search-bar{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap}
.search-bar input,.search-bar select{flex:1;min-width:150px}
.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:0px;}
.stat-card{background:#fff;padding:20px;border-radius:8px;box-shadow:0 1px 3px rgba(0,0,0,.08);flex:1}
.stat-card .stat-label{color:#000000;font-size:13px;margin-bottom:8px}
.stat-card .stat-value{font-size:28px;font-weight:600;color:#1677ff}
.stat-card .stat-sub{color:#999;font-size:12px;margin-top:0px}
.stat-value-row {display: flex; align-items: baseline; gap: 8px;}
.home-wrap{display:flex;flex-direction:column;gap:16px;height:100%;min-height:0}
.stats-grid{flex-shrink:0}
.dashboard-panels{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:auto;flex:1;min-height:0}
.dash-panel{background:#fff;border-radius:8px;box-shadow:0 1px 3px rgba(0,0,0,.08);display:flex;flex-direction:column;min-height:0;overflow:hidden}
.dash-panel-title{padding:12px 16px;font-size:15px;font-weight:600;color:#333;border-bottom:1px solid #e8e8e8}
.dash-panel-list{flex:1;min-height:0;overflow-y:auto}
.dash-table{width:100%;border-collapse:collapse;font-size:13px}
.dash-table th,.dash-table td{padding:8px 12px;text-align:left;border-bottom:1px solid #f0f0f0}
.dash-table th{background:#fafafa;color:#666;font-weight:500}
.dash-table tr:last-child td{border-bottom:none}
/* 财务菜单二级子菜单（2026-10-06） */
.nav-subgroup .nav-subitems{display:none;padding-left:14px}
.nav-subgroup.open .nav-subitems{display:block}
.nav-sub-toggle{display:flex;align-items:center;gap:6px;padding:7px 12px;color:#333;border-radius:6px;cursor:pointer;font-size:13px}
.nav-sub-toggle:hover{background:#f0f4ff}
.nav-sub-toggle .nav-caret{font-size:9px;color:#999;margin-left:auto;transition:transform .2s}
.nav-subgroup.open .nav-sub-toggle .nav-caret{transform:rotate(180deg)}
.nav-sub-item{display:block;padding:5px 12px 5px 30px;font-size:12.5px;color:#555;border-radius:5px}
.nav-sub-item:hover{background:#f0f4ff;color:#1a66ff}
.md-subgroup .md-items{padding-left:16px}
.md-sub-item{font-size:13px;color:#555}
/* 面板列表内部滚动时表头固定（2026-10-06） */
.dash-table thead th{position:sticky;top:0;z-index:1}
/* 首页超期订单/待入库工单：除产品列外不换行（2026-10-06） */
.dash-table th,.dash-table td{white-space:nowrap}
.dash-table td:nth-child(2){white-space:normal;word-break:break-all}
.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.actions {display: flex;gap: 10px; /* 按钮间距 */}
/* 合同搜索栏 */
.ct-search-bar{background:#fafafa;border:1px solid #e8e8e8;border-radius:8px;padding:16px;margin-bottom:16px}
.ct-search-row{display:flex;gap:10px;margin-bottom:10px}
.ct-search-input{flex:1;padding:8px 12px;border:1px solid #d9d9d9;border-radius:4px;font-size:14px}
.ct-search-row select{padding:8px 12px;border:1px solid #d9d9d9;border-radius:4px;font-size:14px}
.ct-date-row{display:flex;align-items:center;gap:10px;font-size:13px;color:#666}
.ct-date-row input{padding:6px 10px;border:1px solid #d9d9d9;border-radius:4px;font-size:13px}
.ct-count{margin-left:auto;color:#1677ff;font-weight:500}
.page-title{font-size:20px;font-weight:600}
.nav{display:flex;align-items:center;background:#001529;padding:0 20px;height:56px;position:fixed;top:0;left:0;right:0;z-index:1000;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;box-shadow:0 2px 8px rgba(0,0,0,.18)}
.nav::-webkit-scrollbar{display:none;height:0}
.nav-brand{color:#fff;font-weight:600;font-size:16px;margin-right:28px;white-space:nowrap;flex-shrink:0;display:flex;align-items:center;gap:8px}
.nav a{color:rgba(255,255,255,.7);padding:0 14px;height:56px;display:flex;align-items:center;gap:6px;text-decoration:none;font-size:13px;transition:all .2s;white-space:nowrap;flex-shrink:0}
.nav a .nav-icon{font-size:15px;line-height:1}
.nav a:hover,.nav a.active{color:#fff;background:rgba(255,255,255,.08)}
.nav-right{margin-left:auto;color:rgba(255,255,255,.65);font-size:13px;white-space:nowrap;flex-shrink:0;display:flex;align-items:center;gap:8px;position:sticky;right:0;background:#001529;padding-left:16px;box-shadow:-8px 0 8px -8px rgba(0,0,0,.4)}
.nav-user{font-weight:500;color:rgba(255,255,255,.85)!important}
.nav-user:hover{color:#fff!important}
/* ===== 分组下拉导航 ===== */
.nav-group{position:relative;display:flex;align-items:center;height:56px;flex-shrink:0}
.nav-group>a{cursor:pointer}
.nav-group .nav-caret{font-size:10px;margin-left:2px;opacity:.7;transition:transform .2s}
.nav-group.open .nav-caret{transform:rotate(180deg)}
.nav-group.active>a{color:#fff;background:rgba(255,255,255,.08)}
.nav-group .nav-dropdown{position:absolute;top:56px;left:0;min-width:170px;background:#001529;border-radius:0 0 6px 6px;box-shadow:0 6px 16px rgba(0,0,0,.35);padding:6px 0;display:none;z-index:1100;flex-direction:column;max-height:calc(100vh - 70px);overflow-y:auto;overscroll-behavior:contain}
.nav-group .nav-dropdown::-webkit-scrollbar{width:6px}
.nav-group .nav-dropdown::-webkit-scrollbar-thumb{background:rgba(255,255,255,.25);border-radius:3px}
.nav:hover,.nav.nav-drop-open{overflow:visible}
.nav-group.open .nav-dropdown,.nav-group:hover .nav-dropdown{display:flex}
.nav-group .nav-dropdown a{height:auto;padding:10px 18px;gap:6px;align-items:center;display:flex;font-size:13px;color:rgba(255,255,255,.75);text-decoration:none;white-space:nowrap}
.nav-group .nav-dropdown a:hover,.nav-group .nav-dropdown a.active{color:#fff;background:rgba(255,255,255,.12)}
.nav-group .nav-dropdown a .nav-icon{font-size:14px;width:18px;text-align:center;flex-shrink:0}
.nav-group .nav-dropdown a.nav-placeholder{color:rgba(255,255,255,.42);cursor:not-allowed}
.nav-group .nav-dropdown a.nav-placeholder:hover{color:rgba(255,255,255,.6);background:none}
.nav-group .nav-dropdown .nav-drop-divider{height:1px;background:rgba(255,255,255,.08);margin:5px 0}
.main-content{padding:64px 16px 16px;max-width:1400px;margin:0 auto}
.login-page{display:flex;min-height:100vh;width:100%;height:100vh;overflow-y:auto}
.login-left{flex:1;background:#0f1419;display:flex;flex-direction:column;padding:60px 40px;position:relative;overflow:hidden;gap:24px}
.login-left::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;background:radial-gradient(ellipse at 30% 20%,rgba(22,119,255,0.08) 0%,transparent 50%),radial-gradient(ellipse at 70% 80%,rgba(64,150,255,0.05) 0%,transparent 50%);pointer-events:none}
.login-brand{display:flex;align-items:center;gap:12px;position:relative;z-index:1}
.login-brand-icon{width:40px;height:40px;background:linear-gradient(135deg,#ff6b35 0%,#f7931e 100%);border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:700;color:#fff;font-size:18px}
.login-brand-text{display:flex;flex-direction:column}
.login-brand-title{font-size:16px;font-weight:600;color:#fff;letter-spacing:1px}
.login-brand-sub{font-size:11px;color:rgba(255,255,255,0.5);text-transform:uppercase;letter-spacing:2px;margin-top:2px}
.login-hero{position:relative;z-index:1}
.login-hero h2{font-size:36px;font-weight:700;color:#fff;line-height:1.3;margin-bottom:16px}
.login-hero h2 span{color:#ff6b35}
.login-hero p{font-size:14px;color:rgba(255,255,255,0.6);line-height:1.8;max-width:400px}
.login-features{position:relative;z-index:1;display:flex;gap:24px;margin-top:auto;padding-top:40px}
.login-feature{font-size:12px;color:rgba(255,255,255,0.4)}
.login-building{margin:72px -10px 24px;position:relative;z-index:1;border-radius:12px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,0.4);flex:1;display:flex;align-items:center;justify-content:center;background:#1a1a2e;min-height:220px;max-height:45vh}
.login-building img{width:100%;height:100%;object-fit:cover;display:block;border-radius:12px}
.login-building-fallback{color:rgba(255,255,255,0.5);font-size:14px;text-align:center;padding:20px}
.login-company-name{position:relative;z-index:1;font-size:24px;font-weight:600;color:#1a1a2e;margin-bottom:8px;letter-spacing:1px}
.login-right{flex:1;background:#fff;display:flex;align-items:center;justify-content:center;padding:60px}
.login-box{width:100%;max-width:400px}
.login-header{margin-bottom:40px}
.login-header h1{font-size:24px;font-weight:600;color:#1a1a2e;margin-bottom:8px}
.login-header p{font-size:14px;color:#999}
.login-box .form-group{margin-bottom:24px}
.login-box label{display:block;font-size:13px;color:#333;margin-bottom:8px;font-weight:500}
.login-box input{width:100%;padding:14px 16px;border:1px solid #e0e0e0;border-radius:8px;font-size:14px;transition:all 0.2s;background:#fff}
.login-box input:focus{outline:none;border-color:#1677ff;box-shadow:0 0 0 3px rgba(22,119,255,0.08)}
.login-box input::placeholder{color:#bbb}
.login-box button{width:100%;padding:14px;font-size:15px;font-weight:500;border-radius:8px;background:#ff6b35;border:none;color:#fff;cursor:pointer;transition:all 0.2s;margin-top:8px}
.login-box button:hover{background:#e85a2a;transform:translateY(-1px)}
.login-box button:active{transform:translateY(0)}
.items-table{width:100%;margin:8px 0}
.items-table th,.items-table td{padding:6px 8px;font-size:13px}
.step-overview{display:flex;gap:6px;align-items:center;margin-bottom:8px;flex-wrap:wrap}
.step-badge{min-width:72px;text-align:center;padding:4px 6px;border-radius:4px;font-size:11px;font-weight:500}
.step-cell{vertical-align:top}
.step-cell-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;min-width:0}.step-st-label{font-size:11px;opacity:.85}
.mini-step{display:block;padding:5px 4px;border-radius:4px;font-size:11px;text-align:center;cursor:pointer;line-height:1.3;border:1px solid rgba(0,0,0,.04);user-select:none}
.mini-step:hover{filter:brightness(.95);box-shadow:0 0 0 1px rgba(30,58,95,.2)}
.mini-step.step-s0{background:#f5f6fa;color:#666}
.mini-step.step-s1{background:#e6f7ff;color:#1677ff}
.mini-step.step-s2{background:#e6f9ed;color:#15803d}
.mini-step.step-s3{background:#fee2e2;color:#b91c1c}
.badge-success{background:#f6ffed;color:#52c41a}
.wo-expand{display:inline-block;width:20px;height:20px;line-height:18px;text-align:center;cursor:pointer;color:#1677ff;font-size:12px;border:1px solid #d9d9d9;border-radius:4px;background:#fff;margin-right:6px;user-select:none;vertical-align:middle}
.wo-expand:hover{background:#e6f7ff;border-color:#1677ff}
.wo-child-row td{padding:8px 12px 8px 34px!important;background:#fafbfc}
.wo-detail-head{display:flex;align-items:center;gap:16px;margin-bottom:8px;flex-wrap:wrap}
.wo-detail-title{font-weight:600;margin:0 0 4px}.wo-detail .items-table{margin:0;border:1px solid #e8e8e8}.wo-detail .items-table th,.wo-detail .items-table td{padding:8px 12px}
.pp-date{width:132px;padding:4px 6px;border:1px solid #d9d9d9;border-radius:4px;font-size:12px;background:#fff;color:#333}
.pp-date:focus{outline:none;border-color:#1677ff;box-shadow:0 0 0 2px rgba(22,119,255,.15)}
.pp-subtabs{display:flex;gap:8px;margin-bottom:16px}
.pp-subtab{padding:8px 18px;border:1px solid #d9d9d9;background:#fff;border-radius:4px;cursor:pointer;font-size:14px;color:#666}
.pp-subtab.active{background:#1677ff;border-color:#1677ff;color:#fff}
.gantt-scroll{overflow-x:auto;overflow-y:auto;max-height:60vh;padding-bottom:8px;background:#fff;border:1px solid #333}
.gantt-table{display:table;border-collapse:collapse;width:100%}
.gantt-head{position:sticky;top:0;z-index:10;background:#fafafa;display:flex}
.gantt-corner,.gantt-label{flex:0 0 110px;position:relative;z-index:5;display:block;width:110px;min-width:110px;background:#fafafa;border-right:1px solid #333;border-bottom:1px solid #333;padding:10px;text-align:center;font-weight:500;color:#333}
.gantt-date{flex:0 0 240px;display:flex;align-items:center;justify-content:center;gap:6px;width:240px;min-width:240px;border-right:1px solid #333;border-bottom:1px solid #333;background:#fafafa;text-align:center;padding:4px 0;font-size:12px;color:#666}
.gantt-head .gantt-date:first-child{border-left:1px solid #333}
.gantt-row{display:flex}
.gantt-row .gantt-label{border-right:1px solid #333;border-bottom:1px solid #333}
.gantt-row .gantt-track{flex:0 0 auto;display:block;border-right:1px solid #333;border-bottom:1px solid #333;position:relative}
.gantt-row .gantt-track:last-child{border-right:1px solid #333}
.gantt-row:last-child .gantt-label,.gantt-row:last-child .gantt-track{border-bottom:1px solid #333}
.pp-export-bar{margin-bottom:12px}.pp-export-bar .btn-secondary{margin-right:10px}
#pp-view.pp-gantt-view{display:flex;flex-direction:column;min-height:0;flex:1}
#pp-view.pp-gantt-view .gantt-scroll{flex:1;min-height:0;max-height:none;margin-bottom:10px}
.gantt-wk{font-size:11px;color:#999}
.gantt-block{cursor:grab}
.gantt-block:active{cursor:grabbing}
.gantt-block .gantt-block-ops{position:absolute;top:2px;right:2px;display:none;gap:3px;z-index:6}
/* 仅精确指针设备（PC鼠标）保留悬停显示；触屏需先点色块（ops-open）才显示按钮，防误触隐藏按钮 */
@media (hover:hover) and (pointer:fine){.gantt-block:hover .gantt-block-ops{display:flex}}
.gantt-block.ops-open .gantt-block-ops{display:flex}
.gantt-paused-mask{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:8;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border-radius:4px;box-sizing:border-box}
.gantt-paused-mask .gpm-txt{color:#fff;font-weight:700;font-size:14px;text-shadow:0 1px 2px rgba(0,0,0,.6)}
.gantt-paused-mask .gpm-resume{background:#fff;color:#333;border:none;border-radius:3px;padding:3px 14px;font-size:12px;font-weight:600;cursor:pointer}
.gb-op{background:rgba(0,0,0,.6);color:#fff;border-radius:3px;padding:1px 5px;font-size:10px;cursor:pointer;white-space:nowrap;line-height:1.4}
.pp-ssw{display:inline-grid;grid-template-columns:1fr 1fr;gap:1px;background:#e4e7ed;border:1px solid #d9d9d9;border-radius:3px;overflow:hidden;flex-shrink:0}
.pp-card{border:1px solid #e4e7ed;border-radius:12px;margin-bottom:14px;overflow:hidden;background:#fff}
.pp-card table{width:100%}
.pp-card table th{text-align:center;white-space:nowrap;overflow:hidden;font-size:12px;padding:4px 2px}
.pp-card table td{font-size:12px}
.pp-card table td:first-child{text-align:center}
.pp-card-hd{display:flex;align-items:center;gap:16px;padding:9px 16px;background:#f5f7fa;font-size:13px;flex-wrap:wrap}
.pp-card-no{font-weight:700;color:#1a1a2e;font-size:14px}
.pp-th4{display:inline-grid;grid-template-columns:1fr 1fr;gap:1px;background:#e8eaed;border:1px solid #d9d9d9;border-radius:3px;overflow:hidden;vertical-align:middle}
.pp-th4 span{background:#fff;padding:1px 6px;font-size:10px;font-weight:400;color:#333;white-space:nowrap}
.pp-teams{display:grid;grid-template-columns:repeat(3,auto);gap:4px;width:auto}
.pp-tg{display:inline-flex;align-items:center;gap:3px;border:1px solid #dfe4ea;border-radius:6px;padding:2px 3px;background:#fafbfc}
.pp-tg-lab{font-size:11px;color:#606266;flex-shrink:0;font-weight:600}
.pp-tg .pp-date{width:106px;min-width:0;font-size:12px;padding:0 2px}
.pp-tg .pp-ss{padding:3px 4px}
.pp-tg .pp-ssw .pp-ss{padding:3px 4px}
.pp-ss{font-size:10px;line-height:13px;height:15px;padding:1px;text-align:center;cursor:pointer;background:#fff;user-select:none;white-space:nowrap}
.pp-ss:hover{filter:brightness(.92)}
.pp-ss.on{font-weight:600}
.gb-op:hover{background:#000}
.gantt-block{position:absolute;border-radius:4px;color:#fff;padding:2px 4px;overflow:hidden;box-sizing:border-box;font-size:11px;line-height:1.25;box-shadow:0 1px 2px rgba(0,0,0,.15)}
.gantt-divider{display:none}
.gb-l1{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gb-l2{white-space:normal;word-break:break-word;overflow-wrap:anywhere;opacity:.95}
.gb-l3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:.92;margin-top:1px}
.status-badge{display:inline-block;padding:2px 8px;border-radius:10px;font-size:12px}
.qr-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.qr-card{background:#fff;border:1px solid #e8e8e8;border-radius:8px;padding:16px}
.qr-card-header{display:flex;justify-content:space-between;margin-bottom:12px}
.qr-card-title{font-weight:600;font-size:16px}
.qr-card-info{color:#666;font-size:13px;margin-bottom:8px}
.scan-page{padding:16px;max-width:600px;margin:20px auto;background:#fff;border-radius:8px}
.scan-header{text-align:center;margin-bottom:24px}
.scan-header h2{color:#1677ff;margin-bottom:8px}
.status-buttons{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}
.status-btn{padding:10px 20px;border-radius:4px;border:2px solid #d9d9d9;background:#fff;color:#333;font-size:14px;flex:1;min-width:120px;text-align:center;transition:all .2s}
.status-btn:hover{border-color:#1677ff;color:#1677ff}
.status-btn.selected{border-color:#1677ff;background:#1677ff;color:#fff}
.status-btn.s0.selected{border-color:#999;background:#999;color:#fff}
.status-btn.s1.selected{border-color:#1677ff;background:#1677ff;color:#fff}
.status-btn.s2.selected{border-color:#52c41a;background:#52c41a;color:#fff}
.status-btn.s3.selected{border-color:#ff4d4f;background:#ff4d4f;color:#fff}
.upload-area{border:2px dashed #d9d9d9;border-radius:8px;padding:32px;text-align:center;cursor:pointer;transition:all .2s}
.upload-area:hover{border-color:#1677ff;background:#f0f5ff}
.upload-area.dragover{border-color:#1677ff;background:#e6f4ff;box-shadow:0 0 0 3px rgba(22,119,255,.15)}
.upload-area input{display:none}
.upload-area p{color:#999}
.filter-row{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap;align-items:center}
.filter-row select,.filter-row input{flex:1;min-width:120px}
.info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:16px}
.info-item{display:flex;gap:8px}
.info-item .label{color:#999}
.info-item .value{font-weight:500}
.info-item.full-width{grid-column:1/-1}
.module-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;margin-top:24px}
.module-card{background:#fff;border-radius:8px;padding:24px;cursor:pointer;transition:all .2s;box-shadow:0 1px 3px rgba(0,0,0,.08);text-align:center}
.module-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.15)}
.module-card .icon{font-size:36px;margin-bottom:12px}
.module-card .name{font-weight:600;font-size:16px;margin-bottom:4px}
.module-card .desc{color:#999;font-size:12px}
.total-bar{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:#fafafa;border-radius:4px;margin-top:8px;font-weight:500}
.action-btns{display:flex;gap:4px;flex-wrap:wrap}
.action-btns button{padding:4px 8px;font-size:12px;min-height:26px;box-sizing:border-box;line-height:1.4}
.wo-steps{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0}
.wo-step{display:inline-block;padding:2px 6px;border-radius:3px;font-size:11px;min-width:48px;text-align:center}
.wo-step.s0{background:#f5f5f5;color:#999}
.wo-step.s1{background:#e6f7ff;color:#1677ff}
.wo-step.s2{background:#f6ffed;color:#52c41a}
.wo-step.s3{background:#fff1f0;color:#ff4d4f}
.tab-bar{display:flex;border-bottom:2px solid #e8e8e8;margin-bottom:16px}.tab-item{padding:8px 20px;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-2px;color:#666;font-size:14px;transition:all .2s}.tab-item:hover{color:#1677ff}.tab-item.active{color:#1677ff;border-bottom-color:#1677ff;font-weight:500}
.qr-mini{display:inline-block;margin-left:4px;vertical-align:middle}.step-with-qr{display:inline-flex;align-items:center;margin:2px}
.order-qr-row{display:flex;justify-content:center;gap:24px;margin-top:12px;padding-top:12px;border-top:1px solid #f0f0f0}
.order-qr-item{text-align:center}
.order-qr-box{display:inline-block;margin-bottom:4px;cursor:pointer;transition:all .2s}.order-qr-box:hover{opacity:.8;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.order-qr-label{display:block;font-size:11px;color:#666}
.col-ck{width:30px;text-align:center}
.col-seq{width:55px;text-align:center}
.col-stu{width:80px;text-align:center}
.col-act{width:120px;text-align:center}
.batch-bar{display:flex;align-items:center;gap:12px;padding:10px 16px;background:#e6f7ff;border:1px solid #91d5ff;border-radius:6px;margin-bottom:12px;font-size:13px}
.batch-bar .sel-count{color:#1677ff;font-weight:bold}
.batch-bar button{padding:4px 14px;font-size:13px}
/* 图纸管理树形结构 */
.dw-container{display:flex;height:calc(100vh - 180px);gap:16px}
.dw-sidebar{width:380px;background:#fff;border-radius:8px;box-shadow:0 1px 3px rgba(0,0,0,.08);display:flex;flex-direction:column}
.dw-sidebar-header{padding:16px;font-weight:600;border-bottom:1px solid #e8e8e8;background:#fafafa}
.dw-search-box{padding:12px;border-bottom:1px solid #e8e8e8}
.dw-search-box input{width:100%;padding:8px 12px;border:1px solid #d9d9d9;border-radius:4px;font-size:14px}
.dw-tree{flex:1;overflow:auto;padding:8px}
.dw-tree-item{display:flex;align-items:center;padding:10px 12px;cursor:pointer;border-radius:4px;transition:all .2s;margin-bottom:4px}
.dw-tree-item:hover{background:#f0f2f5}
.dw-tree-item.active{background:#e6f7ff;color:#1677ff}
.dw-tree-icon{margin-right:8px;font-size:16px;flex-shrink:0}
.dw-tree-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.dw-tree-count{font-size:12px;color:#999;background:#f5f5f5;padding:2px 8px;border-radius:10px;flex-shrink:0;margin-left:8px}
.dw-main{flex:1;background:#fff;border-radius:8px;box-shadow:0 1px 3px rgba(0,0,0,.08);display:flex;flex-direction:column;overflow:hidden}
.dw-global-search{position:relative;padding:16px 20px 12px;border-bottom:1px solid #e8e8e8}
.dw-global-search input{width:100%;padding:10px 14px;border:2px solid #1677ff;border-radius:6px;font-size:14px}
.dw-global-search input:focus{outline:none;box-shadow:0 0 0 3px rgba(22,119,255,.1)}
.dw-search-tip{position:absolute;right:32px;top:50%;transform:translateY(-50%);color:#1677ff;font-size:13px;pointer-events:none}
.dw-breadcrumb{flex-shrink:0;padding:12px 20px;border-bottom:1px solid #f0f0f0;color:#666;font-size:13px}
.dw-breadcrumb a{color:#1677ff;text-decoration:none}
.dw-breadcrumb a:hover{text-decoration:underline}
.dw-reset-btn{background:#f5f5f5;color:#999;border:none;border-radius:50%;width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:14px;line-height:1;margin-left:8px;vertical-align:middle}
.dw-reset-btn:hover{background:#ff4d4f;color:#fff}
.dw-search-result{color:#333}
.dw-search-result b{color:#1677ff}
#dw-content{flex:1;overflow:auto;padding:20px}
.dw-order-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}
.dw-order-card{background:#f6ffed;border:1px solid #b7eb8f;border-radius:8px;padding:16px;cursor:pointer;transition:all .2s}
.dw-order-card:hover{box-shadow:0 2px 8px rgba(0,0,0,.1);transform:translateY(-2px)}
.dw-order-name{font-weight:600;color:#52c41a;margin-bottom:8px;word-break:break-all}
.dw-order-count{font-size:13px;color:#666}
.dw-drawing-list h3,.dw-order-list h3,.scroll-x h3{margin-bottom:16px}
.dw-drawing-list table,.scroll-x table{width:100%;border-collapse:collapse}
.dw-drawing-list th,.dw-drawing-list td,.scroll-x th,.scroll-x td{padding:2px;border:1px solid #e8e8e8}
.dw-drawing-list th,.scroll-x th{background:#fafafa;font-weight:500}
.report-record-header{position:relative;display:flex;align-items:center;gap:8px;margin-bottom:4px}
.report-status-badge{display:inline-block;padding:2px 8px;border-radius:10px;font-size:12px;color:#fff}
.report-status-badge.s0{background:#bfbfbf}.report-status-badge.s1{background:#1677ff}.report-status-badge.s2{background:#52c41a}.report-status-badge.s3{background:#f5222d}
.report-del-btn{margin-left:auto;background:#fff;color:#e53e3e;border:1px solid #e53e3e;padding:2px 8px;font-size:12px;border-radius:4px}
.report-del-btn:hover{background:#e53e3e;color:#fff}
.report-record-body{display:flex;flex-wrap:wrap;gap:10px;font-size:13px;color:#555}
.report-qty strong{color:#1677ff}
/* ====== 多标签页 ====== */
.side-panel{position:fixed;left:0;top:56px;bottom:0;width:100px;background:#001529;overflow-y:auto;z-index:999;display:flex;flex-direction:column;box-shadow:2px 0 8px rgba(0,0,0,.12)}
.side-list{flex:1;overflow-y:auto;padding:6px 0}
.side-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:14px 4px;cursor:pointer;color:rgba(255,255,255,.65);font-size:11px;text-align:center;transition:all .15s;position:relative;border-bottom:1px solid rgba(255,255,255,.06)}
.side-item:hover{background:rgba(255,255,255,.08);color:#fff}
.side-item.active{background:rgba(22,119,255,.2);color:#fff}
.side-item.active::before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:#1677ff}
.side-item .side-icon{font-size:21px;line-height:1}
.side-item .side-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.side-item .side-close{position:absolute;top:5px;right:5px;width:16px;height:16px;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;font-size:11px;line-height:14px;text-align:center;cursor:pointer;opacity:0;transition:all .15s}
.side-item:hover .side-close{opacity:1}
.side-item .side-close:hover{background:#ff4d4f}
.side-footer{padding:8px;border-top:1px solid rgba(255,255,255,.1)}
.side-close-all{width:100%;padding:7px 12px;font-size:12px;background:rgba(255,255,255,.1);color:rgba(255,255,255,.85);border:none;border-radius:4px;cursor:pointer;text-align:center;transition:all .15s}
.side-close-all:hover{background:#ff4d4f;color:#fff}
/* ================== 移动端适配（≤768px，JS 控制 .mobile 类） ================== */
.mobile body{font-size:13px}
.mobile .side-panel{display:none !important}
.mobile .tab-content{margin-left:0 !important;width:100% !important;padding:10px 10px 24px;height:calc(100vh - 56px)}
.mobile .main-content{padding:52px 8px 16px;margin:0 auto}
.mobile .nav{height:48px;padding:0 6px}
.mobile .nav .nav-brand{flex:0 0 auto;font-size:13px;padding-right:8px}
.mobile .nav a{padding:0 9px;font-size:13px;white-space:nowrap}
.mobile .nav .nav-icon{margin-right:2px}
.mobile .nav a{height:48px}
.mobile .nav{overflow:hidden}
.mobile .nav a.nav-iconly,.mobile .nav a.nav-iconly:hover,.mobile .nav a.nav-iconly:focus,.mobile .nav a.nav-iconly.active{background:transparent !important;box-shadow:none !important}
.mobile a.nav-mon{display:none !important} /* 手机/平板不显示公司监控入口 */
.mobile .nav-right{flex:0 0 auto}
.mobile .nav-user{display:flex;align-items:center;max-width:72px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.mobile .nav-right a{font-size:12px;padding:0 6px}
.mobile .page-header{flex-direction:column;align-items:stretch;gap:5px;margin-bottom:8px}
.mobile .page-header h1,.mobile .page-header h2,.mobile .page-header h3{font-size:15px;margin:0}
.mobile .page-title{font-size:16px}
.prem-lb{margin:0;padding:0;font-size:13px;white-space:nowrap;cursor:pointer}
.modal-content.ct-modal .items-table td .prem-lb input{width:14px!important;height:14px!important;margin:0;padding:0;vertical-align:-1px}
.mobile .page-header .actions{flex-wrap:wrap;gap:8px}
.mobile .btn-primary,.mobile .btn-secondary,.mobile .btn-export,.mobile .btn-success,.mobile .btn-warning,.mobile .btn-danger{border-radius:6px;min-height:36px;font-size:13px;padding:7px 12px}
.mobile .filter-row{gap:6px;margin-bottom:6px}
.mobile .filter-row input,.mobile .filter-row select{max-width:100%}
.mobile .ct-search-bar,.mobile .ct-search-row,.mobile .dw-search-box,.mobile .search-bar{padding:10px}
.mobile .stats-grid{grid-template-columns:repeat(2,1fr);gap:8px}
.mobile .stat-card{padding:12px}
.mobile .stat-value{font-size:17px}
.mobile .stat-label{font-size:11px}
.mobile .dashboard-panels{grid-template-columns:1fr;gap:10px}
/* 2026-10-24：手机端紧凑化——减字体/减行距/减头部与明细间隔，增加明细展示范围 */
.mobile .page-header{margin-bottom:2px;gap:1px;padding:0 2px;line-height:1.1}
.mobile .page-header h1,.mobile .page-header h2,.mobile .page-header h3{font-size:13px;margin:0;line-height:1.2}
.mobile .page-title{font-size:13px;line-height:1.2}
.mobile .search-bar,.mobile .filter-row{margin-bottom:2px}
.mobile .search-bar{padding:2px;gap:4px}
.mobile .search-bar input,.mobile .search-bar select,.mobile .filter-row input,.mobile .filter-row select{height:26px;font-size:11px;min-width:0;padding:1px 4px}
.mobile .ct-search-bar,.mobile .ct-search-row,.mobile .dw-search-box{padding:2px}
.mobile table{font-size:11.5px}
.mobile th,.mobile td{padding:1px 3px;line-height:1.15}
.mobile th{white-space:nowrap}
.mobile .scroll-x table thead th{font-size:11.5px;padding:2px 3px}
.mobile .badge{font-size:10px;padding:1px 6px}
.mobile .btn-mini,.mobile button[class^='btn-']{min-height:24px;font-size:11px;padding:2px 6px;white-space:nowrap}
.mobile .actions button{margin:0}
.mobile .stat-card{padding:4px 8px}
.mobile .stat-value{font-size:13px}
.mobile .stat-label{font-size:10px}
.mobile .stats-grid{gap:4px}
.mobile .progress-tbl thead th,.mobile .progress-tbl tbody td{font-size:11px;padding:2px 3px}
/* 2026-10-24：垂直空间压缩——明细栏占手机页高85%以上（含生产工单等所有列表页） */
.mobile .nav{height:28px}
.mobile .nav a{height:28px;font-size:11px;padding:0 8px}
.mobile .nav .nav-brand{font-size:11px;margin-right:8px}
.mobile .nav a .nav-icon{font-size:11px}
.mobile .nav-right .nav-user{font-size:10px}
.mobile .main-content{padding:30px 6px 6px !important}
.mobile .tab-content{padding:8px 6px 6px !important;margin-top:28px !important;height:calc(100vh - 28px) !important} /* 内部滚动，防body overflow:hidden锁死整页 */
.mobile .prod-sub-tab-nav a.prod-sub-tab{font-size:13px !important;padding:4px 10px !important}
.mobile .prod-sub-tab-nav{margin-bottom:0 !important}
.mobile #sub-content-orders{padding-top:2px !important}
.mobile .stats-grid{display:grid !important} /* 2026-11-03：恢复显示（用户要求抬头数据卡片可见） */
.mobile .batch-bar{padding:2px 6px;font-size:11px;min-height:0}
.mobile .dashboard-panels,.mobile .sr-sec{padding:6px 8px;margin-bottom:6px}
/* 2026-10-24：手机端生产工单——隐藏次要列（急单/序号/开始日期/二维码），关键列紧凑，首屏信息量提升到85%+ */
.mobile .wo-tbl th:nth-child(1),.mobile .wo-tbl td:nth-child(1),
.mobile .wo-tbl th:nth-child(2),.mobile .wo-tbl td:nth-child(2),
.mobile .wo-tbl th:nth-child(8),.mobile .wo-tbl td:nth-child(8),
.mobile .wo-tbl th:nth-child(11),.mobile .wo-tbl td:nth-child(11){display:none}
.mobile .wo-tbl th,.mobile .wo-tbl td{font-size:11px;padding:1px 3px;line-height:1.15;white-space:nowrap}
.mobile .wo-tbl td:nth-child(4),.mobile .wo-tbl td:nth-child(5){max-width:76px;overflow:hidden;text-overflow:ellipsis}
.mobile .wo-tbl td:nth-child(6),.mobile .wo-tbl td:nth-child(7){text-align:right}
.mobile .wo-tbl tr.wo-child-row td{display:table-cell !important;max-width:none !important} /* 展开子行豁免列隐藏：子行td是nth-child(1)会被隐藏列规则误伤致展开无内容 */
.mobile .wo-expand{width:28px !important;height:28px !important;line-height:26px !important;font-size:14px !important} /* 手机端加大展开箭头触控区 */
.mobile .wo-tbl .col-act button{min-height:20px;font-size:10px;padding:1px 4px;margin:0 1px}
.mobile .dash-panel-title{padding:10px 12px;font-size:14px}
.mobile .module-grid{grid-template-columns:1fr;gap:10px}
.mobile .scroll-x{overflow-x:auto;-webkit-overflow-scrolling:touch}
.mobile .scroll-x table{font-size:12px}
.mobile .scroll-x table th,.mobile .scroll-x table td{padding:6px 8px;white-space:nowrap}
.mobile .dash-table{font-size:12px}
.mobile .modal-content{width:96%;max-width:100%;padding:14px;max-height:92vh;border-radius:10px}
.mobile .modal-content.ct-modal{min-width:0;width:96%!important;max-width:96%!important}
.mobile .ct-modal .modal-body{overflow-x:auto;overflow-y:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 130px)}
.mobile .ct-modal .items-table{width:100%;min-width:520px}
.mobile .ct-modal .items-table th,.mobile .ct-modal .items-table td{white-space:nowrap}
.mobile .ct-modal .form-row>div{width:100%!important}
.mobile .ct-modal input,.mobile .ct-modal select{max-width:100%;box-sizing:border-box}
.mobile .modal-title{font-size:15px}
.mobile .form-row{flex-direction:column;gap:10px}
.mobile .form-row > div{width:100% !important}
.mobile .form-group{margin-bottom:10px}
.mobile input,.mobile select,.mobile textarea{font-size:16px}
.mobile label{font-size:13px}
.mobile .tab-bar{overflow-x:auto;flex-wrap:nowrap;margin-bottom:8px}
.mobile .tab-item{white-space:nowrap;font-size:13px;padding:8px 10px}
.mobile .info-grid{grid-template-columns:1fr 1fr;gap:8px}
.mobile .wo-child-row{flex-direction:column;align-items:stretch}
.mobile .wo-detail-head{flex-direction:column;align-items:flex-start;gap:8px}
.mobile .wo-detail-title{font-size:15px}
.mobile .items-table{font-size:12px}
.mobile .gantt-scroll{max-height:70vh}
.mobile #pp-view.pp-gantt-view .gantt-scroll{max-height:none;flex:1;min-height:0;margin-bottom:10px}
.mobile .gantt-label,.mobile .gantt-corner{width:88px;min-width:88px;flex-basis:88px;font-size:12px}
.mobile .gantt-date{font-size:11px}
.mobile .dw-container{flex-direction:column;height:auto;gap:10px}
.mobile .dw-main{width:100%;min-height:62vh}
.mobile .dw-sidebar{width:100%;margin-bottom:10px}
.mobile .dw-sidebar{max-height:38vh}
.mobile .qr-grid{grid-template-columns:1fr 1fr}
.mobile .order-qr-row{flex-wrap:wrap;gap:12px}
.mobile .login-page{flex-direction:column}
.mobile .login-left{display:none}
.mobile .login-right{width:100%;padding:24px 16px;min-height:100vh}
.mobile .login-box{width:100%;max-width:360px;margin:0 auto}
.mobile .page-header{margin-bottom:6px;gap:4px}
.mobile .page-header .page-title,.mobile .page-title{font-size:14px}
.mobile .page-header h1,.mobile .page-header h2,.mobile .page-header h3{font-size:14px;margin:0}
.mobile .page-header .actions{gap:5px}
.mobile .search-bar,.mobile .filter-row,.mobile .toolbar,.mobile .sub-tab-nav,.mobile .prod-sub-tab-nav,.mobile .pp-export-bar,.mobile .ct-search-bar,.mobile .ct-search-row,.mobile .dw-search-box{padding:5px;gap:5px;margin-bottom:5px}
.mobile .search-bar input,.mobile .search-bar select,.mobile .filter-row input,.mobile .filter-row select,.mobile .toolbar input,.mobile .toolbar select,.mobile .sub-tab-nav input,.mobile .sub-tab-nav select,.mobile .prod-sub-tab-nav input,.mobile .prod-sub-tab-nav select,.mobile .ct-search-bar input,.mobile .ct-search-bar select,.mobile .dw-search-box input,.mobile .dw-search-box select{height:28px;min-height:28px;font-size:13px;padding:0 6px;box-sizing:border-box}
.mobile .search-bar button,.mobile .filter-row button,.mobile .toolbar button,.mobile .sub-tab-nav button,.mobile .prod-sub-tab-nav button,.mobile .pp-export-bar button,.mobile .ct-search-bar button,.mobile .dw-search-box button,.mobile .page-header .actions button{padding:4px 8px;font-size:12px;min-height:28px}
.mobile .prod-sub-tab-nav{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:4px 5px;white-space:nowrap}
.mobile .prod-sub-tab,.mobile .sub-tab{flex:0 0 auto !important;padding:6px 10px !important;font-size:13px !important;min-height:26px !important;display:flex !important;align-items:center;white-space:nowrap}
.mobile .search-bar input,.mobile .search-bar select{flex:1 1 100px;min-width:100px;max-width:170px}
.mobile .tab-bar{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch}
.mobile .tab-item{padding:5px 10px;font-size:12px;white-space:nowrap}
.mobile .stats-grid,.mobile #stats-grid{display:grid !important} /* 2026-11-03：彻底恢复统计卡 */
.mobile .stat-card{flex:0 0 108px !important;padding:5px 8px !important;margin:0 !important}
.mobile .stat-value{font-size:15px !important}
.mobile .stat-label{font-size:10px !important;margin-bottom:2px}
.mobile .nav{height:28px}
.mobile .prod-sub-tab,.mobile .sub-tab{padding:4px 8px !important;font-size:12px !important;min-height:22px !important}
.mobile .stat-card{flex:0 0 92px !important;padding:3px 6px !important}
.mobile .stat-value{font-size:13px !important}
.mobile .stat-label{font-size:9px !important;margin-bottom:1px}
.mobile .search-bar,.mobile .filter-row,.mobile .toolbar,.mobile .sub-tab-nav,.mobile .prod-sub-tab-nav,.mobile .pp-export-bar,.mobile .ct-search-bar,.mobile .ct-search-row,.mobile .dw-search-box{padding:3px;gap:4px;margin-bottom:3px}
.mobile .search-bar input,.mobile .search-bar select,.mobile .filter-row input,.mobile .filter-row select,.mobile .toolbar input,.mobile .toolbar select,.mobile .sub-tab-nav input,.mobile .sub-tab-nav select,.mobile .prod-sub-tab-nav input,.mobile .prod-sub-tab-nav select,.mobile .ct-search-bar input,.mobile .ct-search-bar select,.mobile .dw-search-box input,.mobile .dw-search-box select{height:24px;min-height:24px;font-size:12px;padding:0 5px}
.mobile .search-bar button,.mobile .filter-row button,.mobile .toolbar button,.mobile .sub-tab-nav button,.mobile .prod-sub-tab-nav button,.mobile .pp-export-bar button,.mobile .ct-search-bar button,.mobile .dw-search-box button,.mobile .page-header .actions button{padding:3px 6px;font-size:11px;min-height:24px}
.mobile .page-header{margin-bottom:4px;gap:3px}
.mobile .page-header .page-title,.mobile .page-title{font-size:13px}
.mobile .page-header h1,.mobile .page-header h2,.mobile .page-header h3{font-size:13px;margin:0}
.mobile .tab-item{padding:4px 8px;font-size:11px}
.mobile .nav{height:28px}
.mobile .stats-grid{gap:4px;margin-bottom:3px}
.mobile .stat-card{flex:0 0 88px !important;padding:2px 5px !important}
.mobile .stat-value{font-size:12px !important}
.mobile .page-header .actions button,.mobile .page-header>button{padding:3px 6px;font-size:11px;min-height:22px}
.mobile .ct-search-bar,.mobile .ct-search-row{padding:3px;gap:4px}
.mobile .ct-search-bar input,.mobile .ct-search-bar select,.mobile .ct-search-row input,.mobile .ct-search-row select{height:22px;min-height:22px;font-size:12px;padding:0 4px;flex:1 1 90px;min-width:90px;max-width:150px}
.mobile .ct-search-bar button,.mobile .ct-search-row button{padding:3px 6px;font-size:11px;min-height:22px}






.mobile .nav a{font-size:12px;padding:0 7px}
.mobile .nav .nav-brand{font-size:12px}
.nav-hamburger{display:none}
.mobile .nav-hamburger{display:flex;width:26px;height:26px;align-items:center;justify-content:center;background:rgba(255,255,255,.12);border:none;border-radius:5px;color:#fff;font-size:15px;margin-right:6px;flex:0 0 auto;cursor:pointer;line-height:1}
.mobile .nav-hamburger:active{background:rgba(255,255,255,.25)}
.mobile .nav-group{display:none !important}
.mobile .nav>a:not(.nav-user):not(.nav-compdocs):not(.nav-chat){display:none !important}
.mobile .nav-right{padding-left:0 !important}
.mobile .nav-right a{font-size:12px;padding:0 6px}
/* 移动端抽屉菜单 */
.mobile-drawer-wrap{position:fixed;top:0;left:0;right:0;bottom:0;z-index:2100;display:none}
.mobile-drawer-wrap.open{display:block}
.mobile-drawer-mask{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5)}
.mobile-drawer{position:absolute;top:0;left:0;bottom:0;width:82%;max-width:320px;background:#fff;display:flex;flex-direction:column;box-shadow:4px 0 20px rgba(0,0,0,.2);transform:translateX(-102%);transition:transform .25s ease}
.mobile-drawer-wrap.open .mobile-drawer{transform:translateX(0)}
.mobile-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid #eee;font-size:16px;font-weight:600}
.mobile-drawer-close{font-size:20px;cursor:pointer;color:#666;border:none;background:none;padding:0 4px;line-height:1}
.mobile-drawer-body{flex:1;overflow-y:auto;padding:8px 0}
.md-group-title{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;font-weight:600;font-size:15px;cursor:pointer;border-bottom:1px solid #f2f2f2;background:#fafafa}
.md-group-title:active{background:#f0f0f0}
.md-group .md-caret{font-size:10px;transition:transform .2s;opacity:.6}
.md-group.open>.md-group-title .md-caret{transform:rotate(180deg)}
.md-items{display:none}
.md-group.open>.md-items{display:block} /* 仅直接子菜单：防一级组展开强制二级组菜单常显无法收起 */
.md-item{display:flex;align-items:center;gap:10px;padding:13px 16px 13px 28px;font-size:14px;color:#333;cursor:pointer;border-bottom:1px solid #f5f5f5}
.md-item:active{background:#e6f4ff}
.md-item .md-ico{font-size:16px;width:22px;text-align:center;flex-shrink:0}
.form-group .proc-switch{display:inline-flex;align-items:center;gap:6px;cursor:pointer;user-select:none;font-weight:400;margin-bottom:0}
.proc-switch input{position:absolute;opacity:0;width:0;height:0}
.proc-switch .sw{width:36px;height:20px;background:#ccc;border-radius:10px;position:relative;transition:background .2s;flex-shrink:0}
.proc-switch .sw:after{content:'';position:absolute;width:16px;height:16px;border-radius:50%;background:#fff;top:2px;left:2px;transition:left .2s}
.proc-switch input:checked + .sw{background:#1677ff}
.proc-switch input:checked + .sw:after{left:18px}
/* ===== 订单BOM/产品BOM 紧凑弹窗 ===== */
.modal-content.ct-modal .form-group{margin-bottom:4px}
.hb-item{display:flex;align-items:center;gap:6px;margin-bottom:6px}
.hb-item label{white-space:nowrap;font-weight:500;font-size:13px;color:#333;margin:0;min-width:60px}
.hb-item .hb-input-wrap{flex:1;min-width:0;position:relative}
.hb-item input,.hb-item select,.hb-item textarea{width:100%;box-sizing:border-box}
.hb-item select,.hb-item textarea{height:39px}
.modal-content.ct-modal .items-table td{padding:0}
.modal-content.ct-modal .items-table th{padding:3px 4px;font-size:12px;background:#f5f5f5;color:#333;border-bottom:1px solid #e8e8e8}
.modal-content.ct-modal .items-table input,
.modal-content.ct-modal .items-table select{
  width:100% !important;box-sizing:border-box;border:none;background:transparent;
  padding:2px 4px;margin:0;height:28px;font-size:12px;border-radius:0;
}
.modal-content.ct-modal #po-form .items-table input{background:#f7fafc!important;border:none!important}
.modal-content.ct-modal #po-form .items-table .prem-lb input{background:#fff!important}
.modal-content.ct-modal .items-table td:first-child{padding:0 4px;text-align:center;color:#888;font-size:12px}
.modal-content.ct-modal .items-table td:last-child{padding:0 2px}
.modal-content.ct-modal .items-table td .btn-danger{line-height:20px;padding:0 6px;margin:2px 0}

/* 出库/入库记录：合作伙伴列起自适应宽度不换行 */
.fit-cols th:nth-child(n+7),.fit-cols td:nth-child(n+7){white-space:nowrap;width:1%}

/* ================== 移动端体验优化 2026-10-04 ================== */
/* ① 首页统计卡：卡宽自适应内容，数字不再截断，卡片可横滑 */
.mobile .stats-grid .stat-card{flex:0 0 auto !important;min-width:140px;max-width:70%;padding:10px 12px !important}
.mobile .stat-label{font-size:11px !important;white-space:nowrap;margin-bottom:4px}
.mobile .stat-value{font-size:16px !important;white-space:nowrap}
.mobile .stat-sub{white-space:nowrap}
.mobile .stat-value-row{display:flex;align-items:baseline;gap:4px;white-space:nowrap}
/* ② 首页超期订单/待入库工单表格：横向滑动，杜绝竖排文字 */
.mobile .dash-panel-list{overflow-x:auto;-webkit-overflow-scrolling:touch;max-height:60vh}
.mobile .dash-table{min-width:560px}
.mobile .dash-table th,.mobile .dash-table td{white-space:nowrap;padding:8px 10px}
/* ③ 按钮/输入触屏友好：恢复到舒适尺寸（覆盖过紧压缩） */
.mobile .search-bar button,.mobile .filter-row button,.mobile .toolbar button,.mobile .sub-tab-nav button,.mobile .prod-sub-tab-nav button,.mobile .pp-export-bar button,.mobile .ct-search-bar button,.mobile .ct-search-row button,.mobile .dw-search-box button,.mobile .page-header .actions button,.mobile .page-header>button{min-height:26px !important;font-size:11.5px !important;padding:3px 8px !important}
.mobile .search-bar input,.mobile .search-bar select,.mobile .filter-row input,.mobile .filter-row select,.mobile .toolbar input,.mobile .toolbar select,.mobile .sub-tab-nav input,.mobile .sub-tab-nav select,.mobile .prod-sub-tab-nav input,.mobile .prod-sub-tab-nav select,.mobile .ct-search-bar input,.mobile .ct-search-bar select,.mobile .dw-search-box input,.mobile .dw-search-box select{height:26px !important;min-height:26px !important;font-size:12px !important;padding:2px 6px !important}
.mobile .sub-tab,.mobile .prod-sub-tab,.mobile .tab-item{min-height:26px !important;font-size:12px !important;padding:4px 9px !important}
/* ④ 合同搜索行统计文字不折行 */
.mobile .ct-date-row{flex-wrap:wrap}
.mobile .ct-date-row span,.mobile .ct-date-row b{white-space:nowrap;flex-shrink:0}
/* ⑤ 生产工单急单列/序号列窄化，把空间留给客户/产品 */
.mobile .col-ck{width:30px !important;min-width:30px !important;padding:4px 2px !important}
.mobile th.col-seq,.mobile td.col-seq{width:34px !important;min-width:34px !important}
/* ⑥ 横滑区域隐藏滚动条更干净（保留滑动） */
.mobile .scroll-x::-webkit-scrollbar,.mobile .dash-panel-list::-webkit-scrollbar,.mobile .stats-grid::-webkit-scrollbar{display:none}
.mobile .scroll-x,.mobile .dash-panel-list,.mobile .stats-grid{scrollbar-width:none}
/* ⑦ 列表操作按钮不换行挤压 */
.mobile td a,.mobile td .btn-sm{white-space:nowrap}
/* ⑧ 弹窗详情信息卡：双列保持但标签不截断 */
.mobile .info-grid>div{min-width:0;overflow:hidden}
.mobile .info-grid>div b,.mobile .info-grid>div span{word-break:break-all}
/* ⑨ 表格内操作按钮紧凑化，避免行高被撑到 250px+ */
.mobile td.action-btns button,.mobile .scroll-x td button{min-height:24px !important;font-size:11px !important;padding:2px 6px !important;margin:1px !important}
.mobile td.action-btns{min-width:112px}
.mobile td.action-btns .btn-secondary,.mobile td.action-btns .btn-primary,.mobile td.action-btns .btn-success,.mobile td.action-btns .btn-export,.mobile td.action-btns .btn-danger{display:inline-block}
.mobile td input[type=checkbox]{width:16px;height:16px;vertical-align:middle}
.mobile .wo-expand{font-size:12px}
/* ⑩ 首页面板标题与卡片标题不折行挤压 */
.mobile .dash-panel-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ================== 平板端适配（769-1024px） 2026-10-04 ================== */
@media (min-width:769px) and (max-width:1024px){
/* ① 首页双面板改上下堆叠，表格横滑不竖排 */
/* 2026-11-03g：首页改自然高度+整页滚动，修复下方面板被统计卡挤成一条缝 */
.home-wrap{height:auto !important;min-height:0}
#tab-content{display:block !important}
.dashboard-panels{grid-template-columns:1fr !important;gap:12px;flex:none;margin-top:0}
.dash-panel-list{max-height:50vh}
.dash-panel-list{overflow-x:auto;-webkit-overflow-scrolling:touch}
.dash-table{min-width:560px}
.dash-table th,.dash-table td{white-space:nowrap}
/* ② 列表表格单元格不折行，改为横向滑动查看全部列 */
.scroll-x table th,.scroll-x table td{white-space:nowrap}
.scroll-x{-webkit-overflow-scrolling:touch}
.scroll-x::-webkit-scrollbar{height:6px}
.scroll-x::-webkit-scrollbar-thumb{background:#d0d5dd;border-radius:3px}
/* ③ 操作列按钮紧凑化+两两一行，避免行高爆增 */
td.action-btns{min-width:118px}
td.action-btns button,.scroll-x td button{min-height:26px;font-size:11.5px;padding:3px 8px;margin:1px}
/* ④ 急单/序号列窄化 */
th.col-ck,td.col-ck{width:34px !important;min-width:34px}
th.col-seq,td.col-seq{width:38px !important;min-width:38px}
/* ⑤ 顶栏压缩，防右侧溢出裁切 */
.nav{padding:0 8px}
.nav a{padding:0 10px;font-size:13px;white-space:nowrap}
.nav .nav-brand{font-size:14px}
/* ⑥ 统计卡三列时更舒展 */
.stats-grid{gap:12px}
.stat-card{padding:14px 16px}
.stat-value{font-size:22px}
/* ⑦ 弹窗宽度适中 */
.modal-content{width:92%;max-width:860px}
/* ⑧ 搜索栏换行舒适 */
.ct-search-row,.search-bar,.filter-row{flex-wrap:wrap}
.ct-search-row input,.search-bar input,.filter-row input{min-width:160px}
}

/* ===== style块2（原文平移） ===== */

html,body{height:100%;overflow:hidden}
.side-panel{display:flex!important}.tab-content{margin-left:100px;margin-top:56px;padding:24px;height:calc(100vh - 56px);width:calc(100% - 100px);box-sizing:border-box;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden}
/* 生产工单/生产计划/成品库存：头部区固定、数据表格区独立滚动 */
#sub-content-orders,#sub-content-progress{display:flex;flex-direction:column;flex:1;min-height:0}
#sub-content-orders .scroll-x{flex:1;min-height:0;overflow-y:auto}
#sub-content-progress #progress-grid{flex:1;min-height:0;overflow:hidden}
#pp-view.pp-list-view{display:flex;flex-direction:column;flex:1;min-height:0}
#pp-view.pp-list-view .scroll-x{flex:1;min-height:0;overflow-y:auto}
#stock-content{display:flex;flex-direction:column;flex:1;min-height:0;overflow-y:auto}
#stock-content .scroll-x{flex:1;min-height:0;overflow-y:auto}

/* ===== style块3（原文平移） ===== */

/* ======== 设计系统统一规范 ======== */
*,body,button,input,select,textarea,.form-control{font-family:"Microsoft YaHei","PingFang SC","Helvetica Neue",Arial,sans-serif!important}
body{font-size:14px;line-height:1.6;color:#333;text-rendering:optimizeLegibility}
h1{font-size:24px;font-weight:600}h2{font-size:18px;font-weight:600}h3{font-size:16px;font-weight:600}h4{font-size:15px;font-weight:600}
input,select,textarea{font-size:14px}
button{font-size:14px}
.page-title{font-size:20px}.btn-sm{font-size:12px}.modal-title{font-size:18px}.nav-brand{font-size:16px}.dash-panel-title{font-size:15px}.stat-card .stat-value{font-size:28px}.stat-card .stat-label{font-size:13px}.stat-card .stat-sub{font-size:12px}.badge{font-size:12px}.dash-table{font-size:13px}
@media (max-width:768px){body{font-size:13px}h1{font-size:20px}h2{font-size:17px}h3{font-size:15px}h4{font-size:14px}button,input,select,textarea{font-size:14px}}
/* ======== 设计系统结束 ======== */

/* 导航右侧图标按钮：仅显示图标，hover 显示名称 */
.nav-right a.nav-iconly{position:relative;display:inline-flex;align-items:center;justify-content:center;width:32px;height:30px;padding:0 4px;vertical-align:middle}
.nav-right a.nav-iconly .nav-lbl{display:none}
.nav-right a.nav-iconly:hover .nav-lbl{display:block;position:absolute;top:100%;left:50%;transform:translateX(-50%);margin-top:4px;background:#2b303b;color:#fff;font-size:12px;padding:4px 8px;border-radius:4px;white-space:nowrap;z-index:4000;box-shadow:0 2px 8px rgba(0,0,0,.25)}
@media (hover:none){.nav-right a.nav-iconly:hover .nav-lbl,.nav-right a.nav-iconly:focus .nav-lbl{display:none!important;pointer-events:none!important}}
/* 手机端消息模块关键布局（重要：!important 压过任何旧版注入样式，保证撑满全屏） */
@media (max-width:768px){
  .cd-chat-wrap{position:fixed !important;top:48px !important;left:0 !important;right:0 !important;bottom:0 !important;height:auto !important;min-height:0 !important;width:100% !important;gap:0 !important}
  .cd-chat-side{width:100% !important;border:none !important;border-radius:0 !important;height:100% !important;display:flex !important;flex-direction:column !important}
  .cd-chat-convlist{flex:1 1 0 !important;min-height:0 !important;overflow-y:auto !important}
  .cd-chat-main{display:none !important;border:none !important;border-radius:0 !important;height:100% !important}
  .cd-chat-wrap.m-open .cd-chat-side{display:none !important}
  .cd-chat-wrap.m-open .cd-chat-main{display:flex !important}
  .cd-chat-back{display:inline-flex !important}
  .cd-chat-main-head{flex-wrap:nowrap !important;flex:0 0 auto !important}
  .cd-chat-messages{flex:1 1 0 !important;min-height:0 !important}
  .cd-chat-input{flex:0 0 auto !important}
}
.nav-msg-badge{display:none;position:absolute;top:-4px;right:-4px;min-width:16px;height:16px;line-height:16px;border-radius:8px;background:#ff4d4f;color:#fff;font-size:11px;font-weight:600;text-align:center;padding:0 4px;box-sizing:border-box;z-index:4001}


/* ===== style块4（原文平移） ===== */
'+
    '@page{size:A4 portrait;margin:15mm}'+
    'body{font-family:"Microsoft YaHei","PingFang SC",sans-serif;font-size:11pt;color:#222;margin:0}'+
    'h1{font-size:20pt;font-weight:bold;text-align:center;margin:0 0 16px}'+
    '.hd{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px}'+
    '.st{display:inline-block;border:3px solid '+st[1]+';color:'+st[1]+';padding:8px 26px;border-radius:6px;font-weight:bold;font-size:20pt;margin-left:42px;margin-top:-14px;transform:rotate(-30deg)}'+
    '.meta{font-size:10.5pt;color:#444;text-align:right;line-height:1.6}'+
    'table.main{width:100%;border-collapse:collapse}'+
    'table.main td,table.main th{border:1px solid #999;padding:6px 8px;vertical-align:top;font-size:11pt}'+
    'table.main th{background:#f2f2f2;text-align:center;width:120px;white-space:nowrap}'+
    '.sect{margin-top:18px;margin-bottom:6px;font-weight:bold;font-size:12pt}'+
    '

/* 客户/供应商等列表：内容自适应列宽，减少换行（2026-10-14） */
.auto-cols{table-layout:auto}
.auto-cols th,.auto-cols td{white-space:normal;word-break:break-word}
.auto-cols .col-ck,.auto-cols .col-seq,.auto-cols .col-stu,.auto-cols .col-act,.auto-cols .col-name{white-space:nowrap}
.auto-cols .col-act{width:auto;min-width:0}
.auto-cols td.action-btns{flex-wrap:nowrap;min-width:0;white-space:nowrap;justify-content:center}
.auto-cols .col-name a{display:inline-block}

/* 出库单据白色按钮（明细/出库检验）：始终白底，hover/active 视觉反馈（2026-10-22） */
.ob-btn-white{background:#fff !important;color:#333 !important;border:1px solid #d9d9d9 !important;white-space:nowrap;}
.ob-btn-white:hover{background:#f0f7ff !important;border-color:#91caff !important;color:#1677ff !important;}
.ob-btn-white:active{background:#e6f4ff !important;border-color:#69b1ff !important;}

/* ===== 手机端媒体查询兜底（≤768px，防 .mobile 类未生效场景，2026-10-24e） ===== */
@media (max-width:768px){
  .nav{height:28px !important}
  .nav a{height:28px !important;font-size:11px !important;padding:0 8px !important}
  .nav .nav-brand{font-size:11px !important;margin-right:8px !important}
  .main-content{padding:30px 6px 6px !important}
  .tab-content{padding:8px 6px 6px !important;margin-top:28px !important;height:calc(100vh - 28px) !important}
  .page-header{margin-bottom:2px !important;gap:1px !important;padding:0 2px !important;line-height:1.1}
  .page-header h1,.page-header h2,.page-header h3{font-size:13px !important;margin:0 !important;line-height:1.2}
  .page-title{font-size:13px !important;line-height:1.2}
  .search-bar,.filter-row{margin-bottom:2px !important;padding:2px !important;gap:4px !important}
  .search-bar input,.search-bar select,.filter-row input,.filter-row select{height:26px !important;font-size:11px !important;min-width:0 !important;padding:1px 4px !important}
  .prod-sub-tab-nav a.prod-sub-tab{font-size:13px !important;padding:4px 10px !important}
  .prod-sub-tab-nav{margin-bottom:0 !important}
  #sub-content-orders{padding-top:2px !important}
  .stats-grid{display:grid !important}
  .batch-bar{padding:2px 6px !important;font-size:11px !important;min-height:0 !important}
  table{font-size:11.5px !important}
  th,td{padding:1px 3px !important;line-height:1.15 !important}
  th{white-space:nowrap}
  .scroll-x table thead th{font-size:11.5px !important;padding:2px 3px !important}
  .btn-mini,button[class^='btn-']{min-height:24px !important;font-size:11px !important;padding:2px 6px !important;white-space:nowrap}
}

/* ===== 甘特图右侧计划列表（2026-10-27） ===== */
.plan-sidebar{position:fixed;top:0;right:-350px;width:330px;max-width:86vw;height:100vh;background:#fff;box-shadow:-4px 0 16px rgba(0,0,0,.15);z-index:3000;transition:right .25s ease;display:flex;flex-direction:column}
.plan-sidebar.open{right:0}
.plan-sidebar-head{padding:12px 14px;border-bottom:1px solid #e8e8e8;display:flex;justify-content:space-between;align-items:center;font-weight:600;font-size:14px;flex:0 0 auto}
.plan-sidebar-tip{padding:8px 14px;font-size:11.5px;color:#999;background:#f8f9fb;border-bottom:1px solid #f0f0f0;flex:0 0 auto;line-height:1.5}
.plan-sidebar-body{flex:1;overflow-y:auto;padding:10px}
.plan-item{border:1px solid #e8e8e8;border-radius:10px;padding:8px 10px;margin-bottom:8px;cursor:grab;background:#fff;user-select:none;-webkit-user-select:none}
.plan-item:active{cursor:grabbing}
.plan-item:hover{box-shadow:0 2px 8px rgba(22,119,255,.18);border-color:#1677ff}
.pi-no{font-weight:600;color:#1677ff;font-size:13px}
.pi-cust{font-size:12px;margin-top:2px}
.pi-prod{font-size:12px;color:#555;margin-top:2px}
.pi-dlv{font-size:11px;color:#fa8c16;margin-top:2px}
.gantt-date.plan-drop-hl{outline:2px dashed #1677ff;outline-offset:-2px;background:#e6f4ff !important}
.gantt-label.plan-drop-hl{outline:2px dashed #1677ff;outline-offset:-2px;background:#e6f4ff !important}

/* 拖动计划项时遮罩穿透，允许drop落到甘特图（2026-10-27b） */

/* ===== 手机/平板导航与内容完整性修复（2026-11-03） ===== */
/* 1) 顶部导航恢复横向滚动：原 overflow:hidden 导致放不下的模块菜单被裁剪不可达 */
.mobile .nav{overflow-x:auto !important;overflow-y:visible}
@media (max-width:768px){
  .nav{overflow-x:auto !important;overflow-y:visible}
}
/* 2) 分组子菜单改为全宽下拉面板：不受导航横向滚动裁剪，触屏可点开全部子模块 */
.mobile .nav-group .nav-dropdown{position:fixed !important;left:0 !important;right:0 !important;top:28px !important;min-width:0 !important;width:100vw !important;border-radius:0 0 10px 10px;box-shadow:0 8px 20px rgba(0,0,0,.35);padding:8px 0;max-height:calc(100vh - 40px)}
.mobile .nav-group .nav-dropdown a{padding:12px 20px !important;font-size:14px !important}
.mobile .nav-group .nav-dropdown .nav-sub-toggle{padding:10px 20px !important;font-size:14px !important}
.mobile .nav-group .nav-dropdown .nav-sub-item{padding:9px 20px 9px 38px !important;font-size:13.5px !important}
@media (max-width:768px){.nav-group .nav-dropdown{position:fixed !important;left:0 !important;right:0 !important;top:28px !important;min-width:0 !important;width:100vw !important;border-radius:0 0 10px 10px;box-shadow:0 8px 20px rgba(0,0,0,.35);padding:8px 0;max-height:calc(100vh - 40px)}
.nav-group .nav-dropdown a{padding:12px 20px !important;font-size:14px !important}
.nav-group .nav-dropdown .nav-sub-toggle{padding:10px 20px !important;font-size:14px !important}
.nav-group .nav-dropdown .nav-sub-item{padding:9px 20px 9px 38px !important;font-size:13.5px !important}
}
/* 3) 平板（≤1024px）轻度适配：导航紧凑 + 内容满宽 */
@media (max-width:1024px) and (min-width:769px){
  .nav{padding:0 10px}
  .nav a{padding:0 10px;font-size:12.5px}
  .main-content{padding:66px 10px 14px;max-width:100%}
  .modal-content{width:94%;max-width:98%}
}
/* 4) 弹窗内容完整可滚（子模块页面弹窗不再被截断） */
/* 20261105：max-height 需扣除底部导航让位(80px+安全区)，否则弹窗顶部标题被顶出屏幕，手机上看似打不开 */
.mobile .modal-content{max-height:calc(100vh - 88px - env(safe-area-inset-bottom)) !important;overflow:hidden}
.mobile .modal-body{max-height:calc(94vh - 60px) !important;overflow-y:auto !important;-webkit-overflow-scrolling:touch}
/* 5) 页面主体兜底可滚：任何模块页面内容超屏时可滚到最底部 */
.mobile .tab-content{overflow-y:auto !important;overflow-x:hidden}

/* ===== 2026-11-03h：手机底部导航栏 + 子模块页签底部化（拇指可达） ===== */
.mobile-bottombar{display:none}
.mobile .mobile-bottombar{
  display:flex;position:fixed;left:0;right:0;bottom:0;z-index:1500;
  background:#fff;border-top:1px solid #e8e8e8;
  padding:4px 0 calc(4px + env(safe-area-inset-bottom));
  box-shadow:0 -2px 10px rgba(0,0,0,.08)
}
.mobile .mobile-bottombar a{
  flex:1;display:flex;flex-direction:column;align-items:center;gap:1px;
  padding:5px 0 3px;text-decoration:none;color:#555;font-size:11px;position:relative
}
.mobile .mobile-bottombar a:active{opacity:.6}
.mobile .mobile-bottombar .bb-ico{font-size:20px;line-height:1}
.mobile .mobile-bottombar .bb-lbl{font-size:10.5px}
.mobile .mobile-bottombar .bb-badge{
  position:absolute;top:0;right:calc(50% - 22px);min-width:16px;height:16px;border-radius:8px;
  background:#ff4d4f;color:#fff;font-size:10px;display:none;align-items:center;justify-content:center;padding:0 4px
}

/* 子模块页签（如待我审批/我已审批）固定在底部导航栏上方，横滑 */
.mobile .tab-bar{
  position:fixed;left:0;right:0;bottom:calc(52px + env(safe-area-inset-bottom));z-index:1400;
  margin:0;border-radius:0;box-shadow:0 -2px 8px rgba(0,0,0,.08);
  background:#fff;padding:6px 8px;flex-wrap:nowrap !important;overflow-x:auto;scrollbar-width:none
}
.mobile .tab-bar::-webkit-scrollbar{display:none}
.mobile .tab-content{padding-bottom:120px}
.mobile .cd-chat-wrap{bottom:calc(52px + env(safe-area-inset-bottom)) !important}

/* ===== 2026-11-03g：数据总览首页改自然高度（统计卡+双面板全部可见，页面整体滚动） ===== */
.mobile .home-wrap{height:auto !important;min-height:0}
.mobile .tab-content{display:block !important}
.mobile .dashboard-panels{flex:none;margin-top:0}
.mobile .dash-panel-list{max-height:50vh}

/* ===== 2026-11-03h：子页签吸顶规则由底部化方案取代（见上方 2026-11-03h 块） ===== */

/* ===== 2026-11-03：移动端表格自适应铺满（免横向滚动，字号紧凑不臃肿） ===== */
.mobile table{width:100% !important;table-layout:auto !important;font-size:10.5px}
.mobile .scroll-x{overflow-x:visible} /* 内容自适应后基本不再溢出；个别超宽表由单表兜底 */
.mobile .scroll-x table th,.mobile .scroll-x table td{white-space:normal !important;word-break:break-word;line-height:1.3;padding:3px 4px}
.mobile th,.mobile td{white-space:normal;word-break:break-word;line-height:1.3;padding:3px 4px}
.mobile td.action-btns,.mobile td.col-act,.mobile td.col-ck,.mobile td.col-seq,.mobile td.col-stu,.mobile th.col-act,.mobile th.col-ck,.mobile th.col-seq,.mobile th.col-stu{white-space:nowrap !important}
.mobile td.action-btns button{max-width:64px;overflow:hidden;text-overflow:ellipsis}
.mobile .wo-tbl td:nth-child(4),.mobile .wo-tbl td:nth-child(5){max-width:none}
.mobile .items-table{min-width:0 !important}

/* ===== 2026-11-03g：手机/小程序易用性（触控目标/可读字号/完整显示） ===== */
/* 表格字号适度回升：信息可读优先，10.5px 偏小不易看 */
.mobile table{font-size:11.5px}
.mobile th,.mobile td{padding:4px 5px;line-height:1.35}
/* 触控目标加大：按钮/输入框/下拉 34px，不再眯眼点 */
.mobile button[class^='btn-'],.mobile .btn-mini{min-height:32px !important;min-width:32px;padding:4px 12px !important;font-size:12.5px !important}
.mobile input:not([type=checkbox]):not([type=radio]),.mobile select,.mobile textarea{min-height:34px;font-size:13px !important;padding:4px 10px}
/* 子页签在平板宽度（769-1024）同样吸顶且不可消失 */
@media (min-width:769px) and (max-width:1024px){
  .tab-bar{position:sticky;top:0;z-index:10;background:#fff;padding:8px 4px;margin-bottom:6px;box-shadow:0 2px 6px rgba(0,0,0,.06);flex-wrap:wrap}
}
/* 弹窗手机化：顶部圆角底部全宽，表单行堆叠 */
@media (max-width:768px){
  .modal{align-items:flex-end}
  .modal-content{width:100% !important;max-width:100% !important;min-width:0 !important;border-radius:18px 18px 0 0 !important;max-height:92vh !important}
  .modal-body{padding:12px}
  .form-row{flex-direction:column;gap:0}
  .form-row .form-group{width:100%}
  .form-group label{font-size:12px;margin-bottom:3px}
  .modal-footer{padding:8px 12px;gap:8px}
  .modal-footer button{flex:1;min-height:36px}
}
/* 手机抽屉菜单：大触控区、清晰分组 */
.mobile .mobile-drawer{width:82vw;max-width:320px}
.mobile .mobile-drawer-body a{padding:12px 16px;font-size:14.5px;border-radius:12px}
/* 首页统计卡可读性：金额字号回升 */
.mobile .stat-value{font-size:16px}
.mobile .stat-label{font-size:11.5px}
.mobile .stat-card{padding:10px 12px}
/* 搜索栏触控友好 */
.mobile .search-bar input,.mobile .search-bar select{height:34px !important;font-size:13px !important}
.mobile .search-bar{padding:8px;gap:6px}

/* ===== 2026-11-04：手机端顶部导航栏整体下线（品牌字/快捷图标/个人中心/退出均移至底部栏） ===== */
.mobile .nav{display:none !important}
/* 顶部导航占位空间回收：内容顶到状态栏下方 */
.mobile .main-content{padding-top:10px !important}
.mobile .tab-content{margin-top:0 !important;padding-top:10px !important}
.mobile .home-wrap{margin-top:0 !important;padding-top:0 !important}

/* ===== 2026-11-04：底部导航遮挡优化 ===== */
/* 子模块页签高度计入：主体底部留白加大，长页面按钮不再被底部栏盖住 */
.mobile .tab-content{padding-bottom:150px !important}
.mobile .home-wrap{padding-bottom:130px !important}
/* 弹窗：整体抬高到底部导航栏上方，内容完整不被遮挡 */
@media (max-width:768px){
  .modal{align-items:flex-end;padding-bottom:calc(64px + env(safe-area-inset-bottom)) !important}
  .modal-content{max-height:calc(100vh - 160px) !important}
  /* 弹窗内部吸底按钮条(如打印/导出操作条)同样避开底部栏 */
  .modal-content .modal-footer{padding-bottom:max(8px,env(safe-area-inset-bottom))}
  /* 聊天输入条/底部操作条抬高到底部栏上方 */
  .cd-chat-input{bottom:calc(52px + env(safe-area-inset-bottom)) !important}
}
/* 底部栏之上再留一档：任何 fixed 底部条通用抬升工具类 */
.mobile .bottom-safe-offset{bottom:calc(52px + env(safe-area-inset-bottom)) !important}

/* ===== 2026-11-04b：手机端四项优化 ===== */
/* 1) 弹窗底部按钮：文字自动换行完整显示，按钮组自动换行 */
@media (max-width:768px){
  .modal-footer{flex-wrap:wrap}
  .modal-footer button{white-space:normal !important;height:auto !important;min-height:36px;line-height:1.35;word-break:break-word;padding:6px 10px !important}
  /* 4) 审批等弹窗进一步抬高：按钮完全脱离底部导航栏 */
  .modal{padding-bottom:calc(80px + env(safe-area-inset-bottom)) !important}
  .modal-content{max-height:calc(100vh - 200px) !important}
}
/* 2) 各班计划分布：手机端单列竖排（技术出图→钳工→焊工→喷涂→装配），班名可点折叠 */
.mobile #progress-grid{grid-template-columns:1fr !important;gap:8px !important}
.progress-col-header{cursor:pointer}
.progress-col-header::after{content:'▼';font-size:11px;color:#999;margin-left:6px}
.progress-col.collapsed .progress-col-header::after{content:'▶'}
.progress-col.collapsed .progress-col-body{display:none !important}
/* 3) 甘特图计划列表：手机端改为屏幕底部35%面板（保留拖拽），PC保持右侧滑出 */
.mobile .plan-sidebar{
  top:auto;left:0;right:0;bottom:calc(52px + env(safe-area-inset-bottom));
  width:100%;max-width:100%;height:35vh;
  box-shadow:0 -6px 20px rgba(0,0,0,.2);
  transform:translateY(120%);transition:transform .25s ease;
}
.mobile .plan-sidebar.open{right:auto;transform:translateY(0)}
.mobile .plan-sidebar-head{padding:10px 14px}
.mobile .plan-sidebar-tip{padding:6px 14px;font-size:11px}
.mobile .plan-sidebar-body{padding:8px}
.mobile .plan-item{margin-bottom:6px;padding:7px 10px}
.mobile .plan-sidebar-head span[onclick]{font-size:20px}

/* ===== 2026-11-04c：聊天页底部遮挡修复 + 表情面板 ===== */
@media (max-width:768px){
  /* 顶部导航已下线：聊天窗口顶到0；z-index抬到子页签条(1400)之上、底部栏(1500)之下，输入条不被页签遮挡 */
  .cd-chat-wrap{top:0 !important;bottom:calc(52px + env(safe-area-inset-bottom)) !important;z-index:1460 !important}
  .cd-chat-input{padding-bottom:calc(10px + env(safe-area-inset-bottom))}
}
.cd-emoji-panel{position:fixed;z-index:1550;left:0;right:0;bottom:calc(56px + env(safe-area-inset-bottom));max-height:38vh;overflow-y:auto;background:#fff;border-top:1px solid #e8e8e8;box-shadow:0 -6px 18px rgba(0,0,0,.14);padding:10px;display:none;grid-template-columns:repeat(8,1fr);gap:4px}
.cd-emoji{font-size:24px;text-align:center;padding:6px 0;cursor:pointer;border-radius:8px;line-height:1.2}
.cd-emoji:active{background:#e6f4ff}
@media (min-width:769px){.cd-emoji-panel{left:auto;width:420px;right:24px;bottom:80px;border:1px solid #e0e4e8;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.15)}}
