*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;background:#f5f5f5;color:#333}
.layout{display:flex;min-height:100vh}
.sidebar{width:220px;background:#1a3a32;color:#fff;padding:0;position:fixed;top:0;left:0;bottom:0;overflow-y:auto;z-index:50}
.logo{padding:24px 20px;font-size:20px;font-weight:600;border-bottom:1px solid rgba(255,255,255,.1)}
.sidebar nav a{display:block;padding:14px 20px;color:rgba(255,255,255,.7);text-decoration:none;font-size:14px;transition:all .2s;cursor:pointer}
.sidebar nav a:hover{background:rgba(255,255,255,.05);color:#fff}
.sidebar nav a.active{background:rgba(255,255,255,.1);color:#fff;border-left:3px solid #4CAF50}
.main{margin-left:220px;flex:1;padding:0}
.topbar{padding:20px 32px;background:#fff;border-bottom:1px solid #e8e8e8;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:10}
.topbar h1{font-size:20px;font-weight:600}
.server-status{font-size:13px;color:#999}
.content{padding:24px 32px}
.stats-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:20px;margin-bottom:24px}
.stat-card{background:#fff;border-radius:12px;padding:24px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.stat-card .num{font-size:32px;font-weight:700;color:#2E6B5E}
.stat-card .label{font-size:14px;color:#999;margin-top:8px}
.stat-card .sub{font-size:12px;color:#ccc;margin-top:4px}
.card{background:#fff;border-radius:12px;padding:24px;box-shadow:0 1px 3px rgba(0,0,0,.08);margin-bottom:24px}
.card-title{font-size:16px;font-weight:600;margin-bottom:16px}
table{width:100%;border-collapse:collapse}
th{text-align:left;padding:12px 16px;background:#fafafa;font-size:13px;color:#666;font-weight:500;border-bottom:1px solid #f0f0f0}
td{padding:12px 16px;font-size:13px;border-bottom:1px solid #f5f5f5}
tr:hover{background:#fafafa}
.badge{display:inline-block;padding:2px 10px;border-radius:10px;font-size:12px}
.badge.pending{background:#FFF3E0;color:#FF9800}
.badge.paid{background:#E3F2FD;color:#2196F3}
.badge.confirmed{background:#E8F5E9;color:#4CAF50}
.badge.arrived{background:#F3E5F5;color:#9C27B0}
.badge.completed{background:#E0F2F1;color:#009688}
.badge.refunded{background:#FFEBEE;color:#E53935}
.badge.approved{background:#E8F5E9;color:#4CAF50}
.badge.rejected{background:#FFEBEE;color:#E53935}
.btn{display:inline-block;padding:6px 16px;border:1px solid #d9d9d9;border-radius:6px;font-size:13px;cursor:pointer;background:#fff;color:#333;transition:all .2s}
.btn:hover{border-color:#2E6B5E;color:#2E6B5E}
.btn-primary{background:#2E6B5E;color:#fff;border-color:#2E6B5E}
.btn-primary:hover{background:#3A7A6D;color:#fff}
.btn-sm{padding:4px 12px;font-size:12px}
.filter-bar{display:flex;gap:12px;margin-bottom:20px;flex-wrap:wrap;align-items:center}
.filter-bar select,.filter-bar input{padding:8px 12px;border:1px solid #d9d9d9;border-radius:6px;font-size:13px}
.tab-bar{display:flex;gap:8px;margin-bottom:20px}
.tab-bar .tab{padding:8px 20px;border-radius:20px;font-size:13px;cursor:pointer;background:#f0f0f0;color:#666}
.tab-bar .tab.active{background:#2E6B5E;color:#fff}
.upload-area{border:2px dashed #d9d9d9;border-radius:12px;padding:40px;text-align:center;cursor:pointer;transition:all .2s}
.upload-area:hover{border-color:#2E6B5E;background:#f8fcfa}
.upload-area .icon{font-size:40px;color:#ccc}
.upload-area .text{font-size:14px;color:#999;margin-top:8px}
/* 报价矩阵表格 */
.price-matrix { width: 100%; border-collapse: collapse; margin-top: 16px; }
.price-matrix th { background: #1a3a32; color: #fff; padding: 14px 12px; font-size: 14px; font-weight: 500; text-align: center; }
.price-matrix td { border: 1px solid #e8e8e8; padding: 12px; text-align: center; vertical-align: top; }
.price-matrix .level-cell { background: #f0f7f4; font-weight: 600; color: #1a3a32; font-size: 14px; white-space: nowrap; }
.price-matrix .price-cell { padding: 10px 8px; }
.price-matrix .price-main { font-size: 16px; font-weight: 600; color: #2E6B5E; margin-bottom: 6px; display: flex; align-items: center; justify-content: center; gap: 2px; }
.price-matrix .deposit-row { font-size: 12px; color: #999; display: flex; align-items: center; justify-content: center; gap: 4px; }
.price-matrix input[type=number] { padding: 4px 6px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; outline: none; }
.price-matrix input[type=number]:focus { border-color: #4CAF50; box-shadow: 0 0 0 2px rgba(76,175,80,.15); }
.hint { margin-top: 12px; font-size: 12px; color: #999; text-align: right; }
.empty{text-align:center;padding:40px;color:#999;font-size:14px}
.pagination{display:flex;gap:8px;justify-content:center;margin-top:20px}
.pagination .page{padding:6px 12px;border:1px solid #ddd;border-radius:4px;cursor:pointer;font-size:13px}
.pagination .page.active{background:#2E6B5E;color:#fff;border-color:#2E6B5E}

/* 审批编辑弹窗 */
.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);z-index:100;display:none;align-items:center;justify-content:center}
.modal-overlay.show{display:flex}
.modal{background:#fff;border-radius:12px;width:560px;max-width:90%;max-height:90vh;overflow-y:auto;box-shadow:0 8px 32px rgba(0,0,0,.15)}
.modal-header{padding:20px 24px;border-bottom:1px solid #f0f0f0;display:flex;align-items:center;justify-content:space-between}
.modal-header h3{font-size:16px;font-weight:600}
.modal-close{width:28px;height:28px;border:none;background:transparent;font-size:20px;color:#999;cursor:pointer}
.modal-body{padding:24px}
.form-row{margin-bottom:16px}
.form-row label{display:block;font-size:13px;color:#666;margin-bottom:6px}
.form-row input,.form-row select,.form-row textarea{width:100%;padding:10px 12px;border:1px solid #d9d9d9;border-radius:6px;font-size:14px}
.form-row textarea{min-height:80px;resize:vertical}
.form-row small{color:#999;font-size:12px;margin-left:8px}
/* 弹窗分区标题 */
.edit-section-title{margin:18px 0 12px;padding:8px 12px;background:#F0EDE8;border-radius:6px;font-size:13px;font-weight:600;color:#2E6B5E}
.edit-section-title:first-child{margin-top:0}
/* 密码输入框 + 眼睛按钮 */
.pwd-wrap{position:relative;display:flex;align-items:center}
.pwd-wrap input{width:100%;padding-right:44px}
.pwd-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:34px;height:30px;border:none;background:transparent;font-size:16px;cursor:pointer;border-radius:6px;display:flex;align-items:center;justify-content:center;color:#999;line-height:1;padding:0}
.pwd-toggle:hover{color:#2E6B5E;background:#f5f5f5}
.pwd-toggle:active{background:#eee}
/* 登录页密码框给眼睛按钮留出空间 */
.login-form .pwd-wrap input{padding-right:44px}
.checkbox-group{display:flex;flex-wrap:wrap;gap:10px}
.checkbox-label{display:flex;align-items:center;gap:6px;font-size:13px;color:#333;cursor:pointer;padding:4px 10px;border:1px solid #d9d9d9;border-radius:6px;transition:all .2s}
.checkbox-label:has(input:checked){background:#e8f5e9;border-color:#4CAF50;color:#2E6B5E}
.checkbox-label input[type=checkbox]{width:auto;accent-color:#4CAF50}
.modal-footer{padding:16px 24px;border-top:1px solid #f0f0f0;display:flex;justify-content:flex-end;gap:12px}

/* 搜索输入框 */
.search-input{padding:8px 12px;border:1px solid #d9d9d9;border-radius:6px;font-size:14px;width:240px}

/* 16列订单表格 */
.order-table-16{min-width:1500px;width:100%;border-collapse:collapse;font-size:13px}
.order-table-16 th,.order-table-16 td{padding:8px 6px;border-bottom:1px solid #f0f0f0;white-space:nowrap}
.order-table-16 th{background:#fafafa;color:#666;font-weight:600;position:sticky;top:0;z-index:1}
.order-table-16 td{color:#333}
.order-table-16 tr:hover td{background:#f9f9f9}
.order-table-16 .btn-sm{padding:4px 8px;font-size:11px;margin:1px}
/* 表格横向滚动条提示（窗口窄时可滚动） */
.order-table-wrap{overflow-x:auto;padding-bottom:8px;-webkit-overflow-scrolling:touch;position:relative}
.order-table-wrap::-webkit-scrollbar{height:12px}
.order-table-wrap::-webkit-scrollbar-track{background:#e8e8e8;border-radius:6px;border:1px solid #ddd}
.order-table-wrap::-webkit-scrollbar-thumb{background:linear-gradient(90deg,#999,#666);border-radius:6px;border:1px solid #888}
.order-table-wrap::-webkit-scrollbar-thumb:hover{background:linear-gradient(90deg,#666,#333)}

/* 订单编辑弹窗 - 宽版（浏览器中间居中显示） */
#orderEditModal{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);z-index:100;display:flex;align-items:center;justify-content:center}
#orderEditModal .modal-box{background:#fff;border-radius:12px;width:640px;max-width:92%;max-height:90vh;overflow-y:auto;box-shadow:0 8px 32px rgba(0,0,0,.15);margin:auto}
/* 关闭按钮 hover 高亮 */
.modal-close:hover{color:#E53935;background:#f0f0f0;border-radius:50%}

/* 用户头像 */
.user-avatar-sm{width:36px;height:36px;border-radius:50%;object-fit:cover;background:#eee}
.user-detail-avatar{width:72px;height:72px;border-radius:50%;object-fit:cover;background:#eee;margin-right:20px}

/* 档案完成度进度条 */
.progress-bar-mini{display:inline-block;width:80px;height:6px;background:#e8e8e8;border-radius:3px;vertical-align:middle;margin-right:6px}
.progress-fill-mini{height:100%;background:linear-gradient(90deg,#4CAF50,#8BC34A);border-radius:3px}
.progress-text{font-size:12px;color:#999;vertical-align:middle}

/* 用户详情弹窗 */
.user-detail-modal{max-width:640px;max-height:80vh;overflow-y:auto}
.user-detail-header{display:flex;align-items:center;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #f0f0f0}
.user-detail-header h4{font-size:18px;margin-bottom:4px}
.text-muted{color:#999;font-size:13px;margin-bottom:2px}

.info-table{width:100%;border-collapse:collapse;margin-bottom:20px}
.info-table td{padding:10px 12px;border-bottom:1px solid #f0f0f0;font-size:14px}
.info-label{color:#999;width:100px}

/* 用户详情 - 订单列表 */
.table-wrap{overflow-x:auto}
.user-orders-table{width:100%;min-width:760px;border-collapse:collapse;font-size:13px}
.user-orders-table th,.user-orders-table td{padding:10px 8px;border-bottom:1px solid #f0f0f0;text-align:left;white-space:nowrap}
.user-orders-table th{background:#fafafa;color:#666;font-weight:600}
.user-orders-table tr:hover td{background:#f9f9f9}
.user-orders-table td:nth-child(2){white-space:normal;max-width:160px}
.user-detail-modal .modal-body{max-height:70vh;overflow-y:auto}

/* ========== 登录页 ========== */
.login-page{display:flex;align-items:center;justify-content:center;min-height:100vh;background:linear-gradient(135deg,#1a3a32,#2E6B5E)}
.login-box{background:#fff;border-radius:16px;padding:48px 40px;width:400px;max-width:90%;box-shadow:0 12px 40px rgba(0,0,0,.15)}
.login-logo{text-align:center;font-size:24px;font-weight:700;color:#2E6B5E;margin-bottom:32px}
.login-form .form-row{margin-bottom:20px}
.login-form .form-row label{font-size:14px;color:#666;margin-bottom:8px;display:block}
.login-form .form-row input{width:100%;padding:12px 14px;border:1px solid #d9d9d9;border-radius:8px;font-size:15px}
.login-form .form-row input:focus{border-color:#2E6B5E;box-shadow:0 0 0 3px rgba(46,107,94,.12);outline:none}
.login-btn{width:100%;padding:12px;font-size:16px;border-radius:8px;margin-top:8px}

/* ========== 顶栏右侧 ========== */
.topbar-right{display:flex;align-items:center;gap:12px}
.user-info{font-size:13px;color:#666;background:#f0f7f4;padding:4px 12px;border-radius:20px}

/* ========== 后台用户管理 ========== */
.role-badge{display:inline-block;padding:2px 10px;border-radius:10px;font-size:12px}
.role-badge.super_admin{background:#1a3a32;color:#fff}
.role-badge.staff{background:#E3F2FD;color:#2196F3}
.status-badge{display:inline-block;padding:2px 10px;border-radius:10px;font-size:12px}
.status-badge.active{background:#E8F5E9;color:#4CAF50}
.status-badge.disabled{background:#FFEBEE;color:#E53935}
.perm-tags{display:flex;flex-wrap:wrap;gap:4px}
.perm-tag{background:#f0f7f4;color:#2E6B5E;padding:2px 8px;border-radius:4px;font-size:11px}