:root{--bg-body:#f0f2f5;--bg-sidebar:#f7f8fa;--bg-white:#fff;--border-color:#d9d9d9;--border-light:#e8e8e8;--text-primary:#333;--text-secondary:#666;--text-muted:#999;--primary:#1890ff;--primary-hover:#40a9ff;--success:#52c41a;--warning:#faad14;--danger:#ff4d4f;--tree-active-bg:#e6f7ff;--header-height:48px;--sidebar-width:240px;--radius:4px}
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,"Microsoft YaHei","Segoe UI",sans-serif;font-size:13px;color:var(--text-primary);background:var(--bg-body);height:100vh;overflow:hidden}
.app-header{height:var(--header-height);background:linear-gradient(135deg,#1a2332,#2c3e50);color:#fff;display:flex;align-items:center;padding:0 20px;gap:12px;box-shadow:0 4px 12px rgba(0,0,0,.2);z-index:100}
.app-header .logo{font-size:16px;font-weight:700;letter-spacing:1px}
.app-header .logo-icon{width:28px;height:28px;background:var(--primary);border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:16px}
.app-header .subtitle{font-size:11px;opacity:.65}
.app-layout{display:flex;height:calc(100vh - var(--header-height))}
.sidebar{width:var(--sidebar-width);min-width:var(--sidebar-width);background:linear-gradient(180deg,#fff 0%,#f8f9fb 100%);border-right:1px solid var(--border-color);overflow-y:auto;display:flex;flex-direction:column}
.sidebar::-webkit-scrollbar{width:4px}
.sidebar::-webkit-scrollbar-thumb{background:#cdd4dc;border-radius:3px}
.sidebar-tree{flex:1;padding:0;user-select:none}
.tree-folder{padding:4px 10px;display:flex;align-items:center;gap:5px;line-height:24px;transition:all .15s;border-radius:2px;cursor:pointer;font-size:15px;font-weight:700}
.tree-folder:hover{background:#e8eaed}
.tree-folder.active{background:var(--tree-active-bg);color:var(--primary);font-weight:600}
.tree-folder .folder-icon{font-size:13px;width:16px;text-align:center;flex-shrink:0;transition:transform .2s}
.tree-folder .folder-icon.expanded{transform:rotate(90deg)}
.tree-leaf{padding:10px 16px;display:flex;align-items:center;gap:10px;line-height:22px;color:var(--text-secondary);transition:all .18s ease;border-radius:8px;cursor:pointer;font-size:13.5px;margin:2px 8px;position:relative}
.tree-leaf .leaf-icon{width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:15px;flex-shrink:0;background:#e8ecf1;transition:all .18s}
.tree-leaf:hover{background:linear-gradient(135deg,#f0f4fa,#fff);color:var(--text-primary)}
.tree-leaf:hover .leaf-icon{background:linear-gradient(135deg,#dce5f2,#e8ecf1);transform:scale(1.08)}
.tree-leaf.active{background:linear-gradient(135deg,#e6f4ff,#f0f7ff)!important;color:var(--primary);font-weight:600;box-shadow:0 2px 12px rgba(24,144,255,.12),inset 0 0 0 1px rgba(24,144,255,.08)}
.tree-leaf.active .leaf-icon{background:linear-gradient(135deg,var(--primary),#40a9ff)!important;color:#fff;transform:scale(1);box-shadow:0 2px 8px rgba(24,144,255,.25)}
.tree-children{overflow:hidden;transition:max-height .25s ease;max-height:0}
.tree-children.open{max-height:1200px}
.main-content{flex:1;display:flex;flex-direction:column;overflow:hidden;background:var(--bg-white)}
.content-panel{flex:1;overflow:auto;padding:16px 20px}
.toolbar{display:flex;align-items:center;gap:6px;padding:8px 0;border-bottom:1px solid var(--border-light);margin-bottom:10px;flex-wrap:wrap}
.toolbar-btn{display:inline-flex;align-items:center;gap:4px;padding:4px 12px;border:1px solid var(--border-color);border-radius:var(--radius);background:var(--bg-white);color:var(--text-primary);cursor:pointer;font-size:12px;transition:all .15s;line-height:20px}
.toolbar-btn:hover{border-color:var(--primary);color:var(--primary)}
.toolbar-btn.primary{background:var(--primary);color:#fff;border-color:var(--primary)}
.search-btn{padding:4px 16px;background:var(--primary);color:#fff;border:none;border-radius:var(--radius);cursor:pointer;font-size:12px}
.reset-btn{padding:4px 12px;background:#fff;border:1px solid var(--border-color);border-radius:var(--radius);cursor:pointer;font-size:12px}
.data-table-wrap{border:1px solid var(--border-color);border-radius:var(--radius);overflow:auto;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.data-table{width:100%;border-collapse:collapse;font-size:13px;table-layout:fixed}
.data-table thead th{background:#fafafa;border-bottom:1px solid var(--border-color);border-right:1px solid var(--border-light);padding:8px 10px;text-align:left;font-weight:600;color:var(--text-secondary);white-space:nowrap;position:sticky;top:0;z-index:2}
.data-table tbody td{border-bottom:1px solid var(--border-light);border-right:1px solid var(--border-light);padding:6px 10px;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.data-table tbody tr{cursor:pointer}
.data-table tbody tr:hover{background:#e6f7ff}
.data-table tbody tr:nth-child(even){background:#fafbfc}
.data-table tbody tr.row-selected{background:#e6f7ff !important}
.data-table tbody tr.row-selected td:first-child{box-shadow:inset 3px 0 0 var(--primary)}
/* 快件查询 / 轨迹查询 统一行高（按 wrapper ID 选，覆盖 _prows 重渲染后的表） */
#peqTableWrap .data-table tbody td,
#ptqTableWrap .data-table tbody td{height:36px;box-sizing:border-box;}
.data-table tbody tr.row-selected:hover{background:#e6f7ff !important}
.text-red{color:var(--danger)}.text-blue{color:var(--primary)}.text-green{color:var(--success)}

/* v262-A 方案 A1：运费试算 dest 列 → 纯 hover 气泡（无图标、空 customsReq 不提示） */
.dest-trigger{cursor:help;vertical-align:middle;display:inline-block;max-width:100%}
.dest-trigger>.dest-name{max-width:120px;overflow:hidden;text-overflow:ellipsis;display:inline-block;vertical-align:middle;color:#262626}
.dest-trigger>.dest-name:hover{color:#1890ff}
/* 勾选列：刚好放下复选框并居中（去掉左右内边距，避免被裁切） */
.data-table td:has(> input[type="checkbox"]),
.data-table th:has(> input[type="checkbox"]){text-align:center !important;padding-left:0 !important;padding-right:0 !important;width:24px !important;max-width:24px !important;min-width:24px !important}
.data-table td:has(> input[type="checkbox"]) input[type="checkbox"],
.data-table th:has(> input[type="checkbox"]) input[type="checkbox"]{margin:0 auto}
/* 所有数据居中 */
.data-table td,.data-table tbody td{text-align:center !important;vertical-align:middle}
.data-table th{text-align:center !important}
.btn{padding:6px 20px;border-radius:var(--radius);font-size:12px;cursor:pointer;border:1px solid var(--border-color);transition:all .15s;display:inline-flex;align-items:center;gap:4px}
.btn-primary{background:var(--primary);color:#fff;border-color:var(--primary)}.btn-primary:hover{background:var(--primary-hover)}
.btn-default{background:#fff;color:var(--text-primary)}.btn-default:hover{border-color:var(--primary);color:var(--primary)}
.module-header{padding:2px 2px 14px;margin-bottom:14px;border-bottom:1px solid var(--border-light)}
.module-title{font-size:17px;font-weight:600;color:var(--text-primary);padding-left:11px;border-left:3px solid var(--primary);line-height:1.3;letter-spacing:.5px}
.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.35);z-index:999;display:none;align-items:center;justify-content:center}
.modal-overlay.show{display:flex}
.modal-dialog{background:#fff;border-radius:8px;box-shadow:0 8px 30px rgba(0,0,0,.2);width:900px;max-width:95vw;max-height:90vh;display:flex;flex-direction:column}
.modal-wide{width:1100px}.modal-full{width:98vw}
.modal-header{padding:14px 18px;border-bottom:1px solid var(--border-color);display:flex;align-items:center;justify-content:space-between;background:#fafafa;border-radius:8px 8px 0 0}
.modal-title{font-size:14px;font-weight:700;display:flex;align-items:center;gap:6px}
.modal-close{font-size:20px;cursor:pointer;color:var(--text-muted);background:none;border:none;line-height:1}
.modal-close:hover{color:var(--danger)}
.modal-body{flex:1;overflow-y:auto;padding:18px}
.modal-footer{padding:12px 18px;border-top:1px solid var(--border-color);display:flex;justify-content:flex-end;gap:8px;background:#fafafa;border-radius:0 0 8px 8px}
.login-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:linear-gradient(135deg,#1a2332,#2c3e50);display:flex;align-items:center;justify-content:center;z-index:1000}
.login-card{width:360px;background:#fff;border-radius:10px;box-shadow:0 12px 40px rgba(0,0,0,.45);padding:34px 30px;box-sizing:border-box}
.login-card .login-logo{width:54px;height:54px;border-radius:50%;background:linear-gradient(135deg,#2f6fed,#15a06f);color:#fff;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:700;margin:0 auto 14px}
.login-card .login-title{font-size:20px;font-weight:700;color:#1a2332;text-align:center;margin-bottom:4px}
.login-card .login-sub{font-size:12px;color:#888;text-align:center;margin-bottom:22px}
.login-card .form-item{margin-bottom:14px}
.login-card label{display:block;font-size:13px;color:#444;margin-bottom:6px}
.login-card input{width:100%;height:38px;box-sizing:border-box;padding:0 12px;border:1px solid var(--border-color);border-radius:6px;font-size:14px;outline:none}
.login-card input:focus{border-color:#2f6fed;box-shadow:0 0 0 2px rgba(47,111,237,.15)}
.login-card .login-btn{width:100%;height:40px;background:#2f6fed;color:#fff;border:none;border-radius:6px;font-size:15px;cursor:pointer;margin-top:6px}
.login-card .login-btn:hover{background:#2257c9}
.login-card .login-error{color:#e11d48;font-size:12px;text-align:center;min-height:18px;margin:4px 0 2px}
.login-card .login-hint{font-size:11px;color:#aaa;text-align:center;margin-top:16px;line-height:1.7}
.header-user{margin-left:auto;display:flex;align-items:center;gap:14px;font-size:13px}
.header-user .hu-name{color:#cfe0ff}
.header-user .hu-logout{background:rgba(255,255,255,.15);color:#fff;border:1px solid rgba(255,255,255,.25);border-radius:5px;padding:5px 12px;cursor:pointer;font-size:12px}
.header-user .hu-logout:hover{background:rgba(255,255,255,.3)}
/* ===== 新建订单页面样式 ===== */
.pno-wrap{padding:20px 24px;background:#fff;}
.pno-top{display:grid;grid-template-columns:repeat(3,1fr);gap:12px 24px;margin-bottom:4px}
.pno-section{margin-bottom:18px;border:1px solid #e8e8e8;border-radius:6px;overflow:hidden}
.pno-sect-head{display:flex;align-items:center;gap:8px;padding:10px 16px;background:linear-gradient(135deg,#f8f9fb,#eff2f7);border-bottom:1px solid #e8e8e8}
.pno-sect-title{font-size:14px;font-weight:600;color:#1a1a1a;letter-spacing:.5px}
.pno-sect-link{font-size:12px;color:#1890ff;cursor:pointer;text-decoration:none;margin-left:auto}
.pno-sect-link:hover{color:#40a9ff;text-decoration:underline}
.pno-sect-body{padding:16px 20px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px 24px}
.pno-field{display:flex;flex-direction:column;gap:4px}
.pno-field .pno-label{font-size:12px;color:#555;font-weight:500;white-space:nowrap}
.pno-field .pno-label .req{color:#ff4d4f;margin-left:1px}
.pno-field input,.pno-field select{height:34px;padding:0 10px;border:1px solid #d9d9d9;border-radius:4px;font-size:13px;color:#333;outline:none;transition:all .2s;background:#fff;width:100%;box-sizing:border-box}
.pno-field input:focus,.pno-field select:focus{border-color:#1890ff;box-shadow:0 0 0 2px rgba(24,144,255,.15)}
.pno-field textarea{height:52px;padding:6px 10px;border:1px solid #d9d9d9;border-radius:4px;font-size:13px;color:#333;outline:none;resize:vertical;width:100%;box-sizing:border-box;font-family:inherit}
.pno-field textarea:focus{border-color:#1890ff;box-shadow:0 0 0 2px rgba(24,144,255,.15)}
/* 产品申报表格 */
.pno-prod-title{font-size:14px;font-weight:600;color:#1a1a1a;margin-bottom:10px;padding-left:2px}
.pno-prod-table{width:100%;border-collapse:collapse;border:1px solid #e8e8e8;border-radius:6px;overflow:hidden;font-size:12px}
.pno-prod-table thead th{background:linear-gradient(135deg,#f0f3f7,#e8ecf1);color:#444;font-weight:600;padding:9px 8px;text-align:center;border-bottom:1px solid #ddd;border-right:1px solid #eee;white-space:nowrap;font-size:12px}
.pno-prod-table thead th:last-child{border-right:none}
.pno-prod-table tbody td{padding:0;border-bottom:1px solid #f0f0f0;border-right:1px solid #f5f5f5;vertical-align:middle}
.pno-prod-table tbody td:last-child{border-right:none}
.pno-prod-table tbody input{width:100%;height:32px;padding:0 6px;border:1px solid transparent;border-radius:3px;font-size:12px;text-align:center;outline:none;box-sizing:border-box;background:transparent;transition:all .15s}
.pno-prod-table tbody input:focus{border-color:#1890ff;background:#fff;box-shadow:0 0 0 2px rgba(24,144,255,.12)}
.pno-prod-tfoot td{background:#fdf6ec;padding:8px 12px;border-top:1px solid #e8d9a3;text-align:right;font-size:12px;color:#666}
.pno-prod-tfoot .total-val{font-weight:700;color:#d48806;font-size:13px;min-width:80px;display:inline-block;text-align:right}
.pno-prod-ops{text-align:center;white-space:nowrap}
.pno-prod-ops .op-btn{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border:1px solid #d9d9d9;border-radius:4px;background:#fff;cursor:pointer;font-size:14px;line-height:1;color:#888;transition:all .15s}
.pno-prod-ops .op-btn:hover{border-color:#1890ff;color:#1890ff;background:#e6f7ff}
.pno-prod-ops .op-btn.del-btn:hover{border-color:#ff4d4f;color:#ff4d4f;background:#fff1f0}
/* 底部操作区 */
.pno-footer{display:flex;align-items:center;justify-content:space-between;margin-top:20px;padding-top:16px;border-top:1px solid #f0f0f0}
.pno-footer-left{display:flex;align-items:center;gap:16px;font-size:12px;color:#666}
.pno-footer-left label{display:flex;align-items:center;gap:4px;cursor:pointer}
.pno-footer-left input[type="checkbox"]{width:14px;height:14px;cursor:pointer}
.pno-footer-right{display:flex;gap:10px}
.pno-btn{height:36px;padding:0 24px;border-radius:4px;font-size:13px;cursor:pointer;border:none;transition:all .2s;font-weight:500;letter-spacing:.5px}
.pno-btn-primary{background:linear-gradient(135deg,#1890ff,#096dd9);color:#fff;box-shadow:0 2px 6px rgba(24,144,255,.35)}
.pno-btn-primary:hover{background:linear-gradient(135deg,#40a9ff,#1890ff);box-shadow:0 4px 10px rgba(24,144,255,.45)}
.pno-btn-success{background:linear-gradient(135deg,#13c2c2,#08979c);color:#fff;box-shadow:0 2px 6px rgba(19,194,194,.35)}
.pno-btn-success:hover{background:linear-gradient(135deg,#36cfc9,#13c2c2);box-shadow:0 4px 10px rgba(19,194,194,.45)}
.pno-btn-default{background:#fff;color:#555;border:1px solid #d9d9d9;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.pno-btn-default:hover{border-color:#1890ff;color:#1890ff}
::-webkit-scrollbar{width:6px;height:6px}
::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}
::-webkit-scrollbar-track{background:transparent}

/* 通知详情渲染（客户端） */
.notice-content{font-size:13px;line-height:1.8;color:#222;word-break:break-word;}
.notice-content p{margin:6px 0;}
.notice-content img{max-width:100%;border:1px solid #eee;border-radius:4px;margin:4px 0;}
.notice-content a{color:#1677ff;text-decoration:underline;}
.notice-content .nte-file-link{display:inline-block;padding:2px 8px;background:#f0f7ff;border:1px solid #cfe0f5;border-radius:4px;color:#1677ff;text-decoration:none;margin:2px 4px 2px 0;}
.notice-content ul,.notice-content ol{padding-left:24px;margin:4px 0;}
.notice-content h1{font-size:18px;margin:10px 0 4px;}
.notice-content h2{font-size:16px;margin:8px 0 4px;}
.notice-content h3{font-size:14px;margin:6px 0 4px;}
.notice-attachments{margin-top:14px;padding-top:10px;border-top:1px dashed #e1e6ec;font-size:12px;}
.notice-attachments-title{color:#666;font-weight:600;margin-bottom:6px;}
.notice-attach-row{display:flex;align-items:center;gap:6px;padding:4px 8px;background:#fafbfc;border:1px solid #e8eaef;border-radius:4px;margin-bottom:4px;}
.notice-attach-row-icon{width:18px;text-align:center;}
.notice-attach-row-name{flex:1;color:#1677ff;text-decoration:none;}
.notice-attach-row-name:hover{text-decoration:underline;}
.notice-attach-row-size{color:#999;font-size:11px;}
/* ===== 客户端门户通用卡片与表单美化 ===== */
.portal-card{background:#fff;border:1px solid #e8eaef;border-radius:10px;padding:16px 18px;margin-bottom:14px;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.portal-filter{display:flex;flex-wrap:nowrap;gap:8px 10px;align-items:end;margin-bottom:4px;overflow-x:auto}
.portal-filter > *{flex:1 1 auto;min-width:82px;max-width:150px}
.portal-filter .portal-field input,
.portal-filter .portal-field select{padding:5px 8px;height:32px;width:100%;min-width:0}
.pfc-actions{display:flex;gap:8px;align-items:stretch;height:32px;min-width:120px;max-width:160px}
.pfc-actions button{flex:1;min-width:0;padding:5px 10px;height:32px;white-space:nowrap}
.portal-field{display:flex;flex-direction:column;gap:5px}
.portal-field label{font-size:12px;color:#555;font-weight:500;white-space:nowrap}
.portal-field input,.portal-field select{height:34px;padding:0 10px;border:1px solid #d9d9d9;border-radius:6px;font-size:13px;color:#333;outline:none;transition:all .2s;background:#fff;width:100%;box-sizing:border-box}
.portal-field input:focus,.portal-field select:focus{border-color:#1890ff;box-shadow:0 0 0 2px rgba(24,144,255,.12)}
.portal-field input[type="date"]{padding:0 8px;position:relative}
/* 起始状态不显示原生 yyyy-mm-dd 占位提示：空值(invalid)时隐藏占位文字，选值后(valid)正常显示 */
.portal-field input[type="date"]:invalid::-webkit-datetime-edit-year-field,
.portal-field input[type="date"]:invalid::-webkit-datetime-edit-month-field,
.portal-field input[type="date"]:invalid::-webkit-datetime-edit-day-field,
.portal-field input[type="date"]:invalid::-webkit-datetime-edit-text{color:transparent;}
/* 日期控件：点击输入框任意空白处都能打开日期选择器（WebKit/Blink 中将原生日历图标扩展为全尺寸可点击区域） */
.portal-field input[type="date"]::-webkit-calendar-picker-indicator{position:absolute;top:0;left:0;width:100%;height:100%;cursor:pointer;opacity:0;}
.portal-field input::placeholder{color:#bfbfbf}
.portal-checkbox{display:flex;align-items:center;gap:6px;font-size:12px;color:#555;cursor:pointer;height:34px;padding-bottom:2px}
.portal-checkbox input[type="checkbox"]{width:15px;height:15px;cursor:pointer;accent-color:#1890ff}
.portal-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0}
.portal-btn-primary{height:34px;padding:0 18px;border:none;border-radius:6px;background:linear-gradient(135deg,#1890ff,#096dd9);color:#fff;font-size:13px;cursor:pointer;transition:all .2s;font-weight:500;display:inline-flex;align-items:center;justify-content:center;gap:5px;box-shadow:0 2px 6px rgba(24,144,255,.25)}
.portal-btn-primary:hover{background:linear-gradient(135deg,#40a9ff,#1890ff);box-shadow:0 4px 10px rgba(24,144,255,.35)}
.portal-btn-default{height:34px;padding:0 16px;border:1px solid #d9d9d9;border-radius:6px;background:#fff;color:#555;font-size:13px;cursor:pointer;transition:all .2s;display:inline-flex;align-items:center;justify-content:center;gap:5px}
.portal-btn-default:hover{border-color:#1890ff;color:#1890ff;background:#f6fbff}
.portal-tabs{display:flex;gap:6px;flex-wrap:wrap;border-bottom:2px solid #f0f0f0;padding-bottom:0;margin-bottom:12px}
.portal-tab{padding:7px 16px;font-size:12px;border:1px solid transparent;border-bottom:none;background:transparent;color:#666;border-radius:8px 8px 0 0;cursor:pointer;transition:all .15s;margin-bottom:-2px;font-weight:500}
.portal-tab:hover{color:#1890ff;background:#f0f7ff}
.portal-tab.active{background:#1890ff;color:#fff;border-color:#1890ff;box-shadow:0 2px 8px rgba(24,144,255,.2)}
.portal-hint{font-size:12px;color:#888;margin-bottom:10px;line-height:1.5}
.portal-empty{padding:32px 20px;text-align:center;color:#8c8c8c;font-size:13px;background:#fafbfc;border:1px dashed #e8e8e8;border-radius:8px}
/* ===== 偏远查询美化样式（与 index.html 共享同一份） ===== */
.rq-card{background:#fff;border:1px solid #e8eaef;border-radius:8px;padding:14px 16px;margin:8px 12px 12px 12px;box-shadow:0 2px 6px rgba(0,0,0,.04);max-width:1000px}
#prqResult{max-width:1000px;margin:0 12px 12px 12px}
.rq-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.rq-icon{font-size:20px;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;background:#e6f4ff;border-radius:8px}
.rq-title{font-size:15px;font-weight:600;color:#1a1a1a}
.rq-sub{font-size:12px;color:#8c8c8c;margin-top:2px}
.rq-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 12px;align-items:end}
.rq-field{display:flex;flex-direction:column;gap:4px}
.rq-field label{font-size:12px;color:#555;font-weight:500}
.rq-field input,.rq-field select{font-size:13px;padding:6px 8px;border:1px solid #d9d9d9;border-radius:4px;background:#fff;outline:none}
.rq-field input:focus,.rq-field select:focus{border-color:#1890ff;box-shadow:0 0 0 2px rgba(24,144,255,.12)}
.rq-actions{display:flex;gap:8px;align-self:end}
.rq-actions .search-btn,.rq-actions .reset-btn{padding:6px 18px;border:none;border-radius:4px;cursor:pointer;font-size:13px}
.rq-actions .search-btn{background:#1890ff;color:#fff}.rq-actions .search-btn:hover{background:#40a9ff}
.rq-actions .reset-btn{background:#fafafa;color:#555;border:1px solid #d9d9d9}.rq-actions .reset-btn:hover{background:#f0f0f0}
.rq-summary{display:flex;align-items:center;gap:10px;background:linear-gradient(90deg,#e6f4ff 0%,#f0f7ff 100%);border:1px solid #91caff;border-radius:6px;padding:6px 12px;margin:0 0 8px 0;font-size:12px;line-height:1.4}
.rq-summary-num{font-size:22px;font-weight:700;color:#1890ff;line-height:1;min-width:26px;text-align:center}
.rq-summary-text{color:#444}
.rq-group{background:#fff;border:1px solid #e8eaef;border-radius:6px;margin:0 0 6px 0;overflow:hidden}
.rq-group-head{display:flex;justify-content:space-between;align-items:center;padding:5px 12px;background:#fafbfc;border-bottom:1px solid #f0f0f0;font-size:12px;font-weight:500;color:#333;min-height:24px}
.rq-group-count{font-size:11px;color:#8c8c8c;font-weight:400}
.rq-group-body{padding:6px 12px 8px}
.rq-tbl-wrap{overflow-x:auto}
.rq-table{margin:0!important;border:1px solid #f0f0f0;border-radius:4px}
.rq-table th{background:#fafbfc!important;color:#666!important;font-weight:500!important;font-size:11px!important;padding:4px 8px!important;border-bottom:1px solid #f0f0f0!important}
.rq-table td{font-size:12px!important;padding:4px 8px!important;border-bottom:1px solid #f5f5f5!important}
.rq-table tbody tr:last-child td{border-bottom:none!important}
.rq-badge{display:inline-block;min-width:32px;text-align:center;padding:1px 7px;border-radius:8px;font-size:11px;font-weight:600;line-height:1.5}
.rq-badge-A{background:#e6f4ff;color:#1677ff;border:1px solid #91caff}
.rq-badge-B{background:#fff7e6;color:#d46b08;border:1px solid #ffd591}
.rq-badge-X{background:#f9f0ff;color:#722ed1;border:1px solid #d3adf7}
.rq-badge-D{background:#fff1f0;color:#cf1322;border:1px solid #ffa39e}
.rq-badge-NS{background:#f5f5f5;color:#999;border:1px solid #d9d9d9}
.rq-norow{display:inline-block;min-width:32px;text-align:center;padding:1px 7px;border-radius:8px;font-size:11px;color:#bfbfbf;background:#fafafa;border:1px dashed #e8e8e8;line-height:1.5}
.rq-loading{padding:32px 20px;text-align:center;color:#1890ff;font-size:13px}
.rq-empty{padding:28px 20px;text-align:center;font-size:13px;color:#8c8c8c;margin:0;background:#fff;border:1px dashed #e8e8e8;border-radius:6px}
.rq-empty-icon{font-size:28px;margin-bottom:4px}
.rq-empty-text{color:#8c8c8c}
.rq-error{padding:18px;text-align:center;color:#cf1322;font-size:13px}
.rq-fee{margin:6px 12px 12px;padding:8px 12px;background:#f6ffed;border:1px solid #b7eb8f;border-radius:6px;font-size:12px;color:#444;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.rq-fee input{width:90px;padding:4px 8px;border:1px solid #d9d9d9;border-radius:4px;font-size:13px}
.rq-fee button{padding:4px 14px;background:#1890ff;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:12px}
.rq-fee button:hover{background:#40a9ff}
.rq-fee-out{margin-left:auto;color:#389e0d;font-weight:600}
.rq-status{display:inline-flex;align-items:center;gap:3px;padding:1px 7px;border-radius:9px;font-size:11px;font-weight:600;line-height:1.5}
.rq-status-ok{background:#f6ffed;color:#389e0d;border:1px solid #b7eb8f}
.rq-status-rm{background:#fff1f0;color:#cf1322;border:1px solid #ffa39e}
.cell-right{text-align:right}
.rq-badge-row{display:flex;gap:4px;flex-wrap:wrap;margin:0 0 4px 0}
.rq-table-more{font-size:11px;color:#999;margin-top:2px;text-align:right}
@media (max-width:900px){.rq-form{grid-template-columns:1fr 1fr}.rq-actions{grid-column:1/-1}}
@media (max-width:600px){.rq-form{grid-template-columns:1fr}}

/* ===== 工作台首页网格（桌面默认多列，手机端在下方媒体查询覆盖为单列） ===== */
.dash-info-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;align-items:start}
/* 三栏统一 200px 固定高度，中间通知多不再撑开左右两栏 */
.dash-info-grid > div{height:200px;display:flex;flex-direction:column;overflow:hidden}
#phStaff{flex:1;min-height:0;overflow:auto;margin-top:12px}
.dash-quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.dash-recent-row{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr 0.8fr}
.dash-staff-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;align-items:start}
/* ===== 通知公告自动滚动 + 查看全部弹窗 ===== */
#phNotice{flex:1;min-height:0;overflow:hidden;margin-top:12px}
#phNotice.scroll{overflow:auto}
.notice-ticker{display:flex;flex-direction:column;will-change:transform}
.notice-ticker.run{animation:noticeScroll 14s linear infinite}
#phNotice:hover .notice-ticker.run,
.notice-ticker.run:hover,
.notice-ticker.paused{animation-play-state:paused}
@keyframes noticeScroll{from{transform:translateY(0)}to{transform:translateY(-50%)}}
@media (prefers-reduced-motion: reduce){
  .notice-ticker.run{animation:none}
  #phNotice{overflow:auto}
}
#phNotice{max-height:180px;overflow:hidden}
.notice-row{border-bottom:1px solid #f0f0f0;padding:6px 4px;cursor:pointer}
.notice-row:hover{background:#fafbfc}
.notice-row-title{font-weight:600;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.notice-row-sum{color:#555;font-size:12px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.notice-row-date{color:#999;font-size:11px;margin-top:4px}
/* 查看全部弹窗内摘要保留 2 行，空间充足 */
.notice-all-body .notice-row-sum{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;max-height:none}
.notice-pin{color:#fa8c16;margin-right:6px}
.notice-empty{color:#999;padding:10px}
.notice-modal-mask{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:9999;display:flex;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}
.notice-all-dialog{background:#fff;border-radius:8px;width:600px;max-width:100%;max-height:80vh;display:flex;flex-direction:column;box-shadow:0 12px 40px rgba(0,0,0,.25)}
.notice-all-head{padding:14px 18px;border-bottom:1px solid #eef0f3;display:flex;align-items:center}
.notice-all-title{font-size:15px;font-weight:700;flex:1}
.notice-all-close{background:transparent;border:0;font-size:18px;color:#888;cursor:pointer;line-height:1}
.notice-all-body{padding:6px 18px 16px;overflow:auto;flex:1}
/* 弹窗内字段网格（修改/查看订单） */
.modal-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:6px 14px}

/* ===== 手机端响应式适配（≤768px：抽屉式侧边栏 + 单列布局，桌面端样式完全不变） ===== */
.menu-toggle{display:none;align-items:center;justify-content:center;width:34px;height:34px;margin-right:4px;border:none;background:rgba(255,255,255,.12);color:#fff;font-size:19px;line-height:1;border-radius:6px;cursor:pointer;flex-shrink:0}
.menu-toggle:hover{background:rgba(255,255,255,.28)}
.sidebar-mask{display:none}
@media (max-width:768px){
  /* 顶部栏：显示菜单按钮，精简用户信息 */
  .app-header{padding:0 10px;gap:8px}
  .app-header .logo{display:block;font-size:14.5px;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .menu-toggle{display:inline-flex}
  .header-user{gap:8px;font-size:12px}
  .header-user .hu-myprofile{display:none}
  .header-user .hu-name{display:none}
  /* 侧边栏 → 固定抽屉（默认收起，点 ☰ 滑出）。
     注意：theme.css（在 client.css 之后加载）自带后台窄屏"60px 迷你栏"响应式，
     对 .sidebar 用 var(--sidebar-width) 且把变量设为 60px，源顺序在后会压过本段普通规则，
     故此处对冲突属性加 !important 以稳赢（不影响桌面端，桌面端不会进入本媒体查询）。 */
  .app-layout{position:relative}
  .sidebar{position:fixed;top:var(--header-height);left:0;bottom:0;width:max-content !important;min-width:0 !important;max-width:78vw;transform:translateX(-100%) !important;transition:transform .25s ease;z-index:300;box-shadow:3px 0 16px rgba(0,0,0,.22)}
  .sidebar.open{transform:translateX(0) !important}
  .sidebar-tree{width:auto}
  .sidebar-mask{position:fixed;top:var(--header-height);left:0;right:0;bottom:0;background:rgba(0,0,0,.42);z-index:250;display:none}
  .sidebar-mask.show{display:block}
  /* 手机端抽屉菜单：去掉图标和“功能导航”标题，做成简洁文字列表 */
  .sidebar-tree > div:first-child{display:none}
  .sidebar-tree .tree-leaf{display:block;margin:0;border-radius:0;padding:13px 18px;font-size:14.5px;border-bottom:1px solid var(--border-light);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;gap:0;line-height:1.6}
  .sidebar-tree .tree-leaf:hover{background:#f5f7fa}
  .sidebar-tree .tree-leaf.active{background:var(--tree-active-bg);color:var(--primary);font-weight:600;box-shadow:none;border-right:3px solid var(--primary)}
  .sidebar-tree .tree-leaf.active .leaf-icon{background:transparent;color:var(--primary);box-shadow:none}
  .sidebar-tree .tree-leaf .leaf-icon{display:none}
  .main-content{width:100%}
  .content-panel{padding:12px}
  /* 通用筛选 / 卡片 单列 */
  .portal-filter{grid-template-columns:1fr}
  .portal-card{padding:14px}
  /* 新建订单：多列网格 → 单列，底部按钮拉满 */
  .pno-wrap{padding:14px}
  .pno-top,.pno-sect-body{grid-template-columns:1fr}
  .pno-footer{flex-direction:column;align-items:stretch;gap:12px}
  .pno-footer-left{justify-content:space-between}
  .pno-footer-right{justify-content:stretch}
  .pno-footer-right .pno-btn{flex:1}
  /* 偏远查询表单单列 */
  .rq-form{grid-template-columns:1fr}
  .rq-actions{grid-column:auto}
  /* 数据表格 → 横向滚动（不撑破屏幕） */
  .data-table{table-layout:auto;min-width:640px}
  .data-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .pno-prod-table{display:block;width:100%;min-width:680px;overflow-x:auto;-webkit-overflow-scrolling:touch}
  /* 弹窗在手机端接近全屏 */
  .modal-overlay{padding:0}
  .modal-dialog{width:100%!important;max-width:100%!important;height:100%;max-height:100%;border-radius:0}
  /* 工作台首页：网格单列；最近运单模拟表格横滑 */
  .dash-info-grid,.dash-quick-grid,.dash-staff-grid{grid-template-columns:1fr}
  .dash-info-grid > div{height:auto}
  #phRecent{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .dash-recent-row{min-width:560px}
  /* 弹窗内字段网格 → 单列；地址等跨列项重置占满整行 */
  .modal-grid-3{grid-template-columns:1fr}
  .modal-grid-3 > div[style*="grid-column"]{grid-column:1 / -1 !important}
}
