* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 登录 */
.login-box {
  max-width: 400px;
  margin: 100px auto;
  padding: 40px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-box h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #4a6cf7;
}

.qrcode-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.qrcode-container #qrcode {
  padding: 15px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
}

.qrcode-tip {
  margin-top: 15px;
  color: #666;
  font-size: 14px;
}

.login-tip {
  text-align: center;
  color: #999;
  font-size: 14px;
  padding: 10px;
}

.login-tip.success {
  color: #52c41a;
}

.login-tip.error {
  color: #ff4d4f;
}

/* 二维码容器 */
#qrcode {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

#qrcode img {
  width: 200px;
  height: 200px;
  border: 1px solid #eee;
  border-radius: 10px;
}

.qr-loading {
  color: #999;
  font-size: 14px;
}

.qr-error {
  color: #ff4d4f;
  font-size: 14px;
}

/* 头部 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 20px;
}

.header h1 {
  font-size: 24px;
  color: #4a6cf7;
}

.company-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.company-info span {
  color: #666;
}

.company-info .user-info {
  color: #4a6cf7;
  font-weight: 500;
}

.company-info button {
  padding: 8px 15px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
}

/* 标签页 */
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab {
  padding: 12px 25px;
  background: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
}

.tab.active {
  background: #4a6cf7;
  color: #fff;
}

.tab-content {
  display: none;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
}

.tab-content.active {
  display: block;
}

/* 工具栏 */
.toolbar {
  margin-bottom: 15px;
}

.toolbar button {
  padding: 10px 20px;
  background: #4a6cf7;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* 表格 */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.data-table th {
  background: #fafafa;
  font-weight: 600;
  color: #666;
}

.data-table tr:hover {
  background: #fafafa;
}

.data-table .actions {
  display: flex;
  gap: 10px;
}

.data-table .btn-edit,
.data-table .btn-delete {
  padding: 5px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.data-table .btn-edit {
  background: #4a6cf7;
  color: #fff;
}

.data-table .btn-delete {
  background: #ff4d4f;
  color: #fff;
}

/* 状态标签 */
.status-active { color: #52c41a; }
.status-inactive { color: #999; }
.status-pending { color: #faad14; }

/* 弹窗 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  min-width: 350px;
}

.modal-content h3 {
  margin-bottom: 20px;
  color: #333;
}

.modal-content input,
.modal-content select {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.modal-buttons button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.modal-buttons button:first-child {
  background: #f5f5f5;
  color: #666;
}

.modal-buttons button:last-child {
  background: #4a6cf7;
  color: #fff;
}

/* 加载提示 */
.loading {
  text-align: center;
  padding: 40px;
  color: #999;
}

.empty {
  text-align: center;
  padding: 40px;
  color: #999;
}

/* 待审核申请状态样式 */
.status-pending {
  color: #faad14;
}

.status-approved {
  color: #52c41a;
}

.status-rejected {
  color: #ff4d4f;
}

/* 审批按钮 */
.btn-approve {
  background: #52c41a;
  color: #fff;
  border: none;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 5px;
}

.btn-approve:hover {
  background: #73d13d;
}

.btn-reject {
  background: #ff4d4f;
  color: #fff;
  border: none;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-reject:hover {
  background: #ff7875;
}

.text-muted {
  color: #999;
  font-size: 12px;
}
