/* 大向集团 · 员工端 */

/* ---------- 登录页 ---------- */
.emp-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: linear-gradient(135deg, #fff7ed 0%, #f1f5f9 60%); }
.emp-login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 18px; padding: 32px; box-shadow: 0 24px 60px rgba(15, 23, 42, .12); }
.emp-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.emp-brand img { width: 50px; height: 50px; object-fit: contain; }
.emp-brand h1 { font-size: 22px; margin: 0; }
.emp-brand p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.emp-login-card input { padding: 12px 14px; border-radius: 10px; }
.emp-login-foot { margin-top: 20px; text-align: center; font-size: 12px; color: var(--muted); }
.emp-login-foot a { color: var(--accent); text-decoration: none; }

/* ---------- 工作台骨架 ---------- */
.emp-shell { min-height: 100vh; background: #f1f4f9; }
.emp-head { height: 72px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 30px; position: sticky; top: 0; z-index: 10; }
.emp-head-brand { display: flex; align-items: center; gap: 10px; }
.emp-head-brand img { width: 40px; height: 40px; object-fit: contain; }
.emp-brand-name { font-weight: 700; font-size: 16px; }
.emp-brand-sub { font-size: 11px; color: var(--muted); }
.emp-head-user { display: flex; align-items: center; gap: 12px; }
.emp-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #fbbf24, #ea580c); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.emp-user-name { font-size: 14px; font-weight: 600; }
.emp-user-meta { font-size: 11px; color: var(--muted); }
.emp-main { max-width: 980px; margin: 0 auto; padding: 28px 24px 48px; }
.emp-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: 0 4px 16px rgba(15, 23, 42, .04); }
.emp-welcome { margin-bottom: 22px; }
.emp-welcome-title { font-size: 24px; font-weight: 750; }
.emp-welcome p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.emp-stat { display: inline-flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 22px; margin-bottom: 24px; }
.emp-stat .stat-icon { width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; }
.emp-stat .stat-icon.amber { background: linear-gradient(135deg, #fbbf24, #d97706); }
.emp-stat .stat-num { font-size: 26px; font-weight: 750; line-height: 1; }
.emp-stat .stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.emp-section h2 { font-size: 16px; margin-bottom: 14px; }
.emp-modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.emp-module { display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-decoration: none; color: var(--text); transition: .16s; box-shadow: 0 3px 12px rgba(15, 23, 42, .04); }
.emp-module:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37, 99, 235, .12); }
.emp-module-icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 11px; background: linear-gradient(135deg, #60a5fa, #2563eb); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.emp-module-body { flex: 1; min-width: 0; }
.emp-module-title { font-weight: 650; font-size: 15px; }
.emp-module-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.emp-module-arrow { font-size: 22px; color: #cbd5e1; }

/* 员工邮箱 */
.mail-badge { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 99px; background: #fee2e2; color: #dc2626; font-size: 12px; font-weight: 700; text-align: center; vertical-align: middle; }
.emp-task.unread-mail { border-left-color: var(--accent); background: #f8fbff; }
.emp-task.unread-mail .emp-task-icon { background: var(--accent-soft); color: var(--accent); }
.emp-mail-content { background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 16px; font-size: 14px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }

/* 个人签字任务列表 */
.emp-task-list { display: flex; flex-direction: column; gap: 10px; }
.emp-task { display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid var(--line); border-left: 3px solid #f59e0b; border-radius: 12px; padding: 14px 16px; }
.emp-task.done { border-left-color: #16a34a; }
.emp-task-icon { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; background: #fffbeb; color: #d97706; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.emp-task.done .emp-task-icon { background: var(--green-soft); color: var(--green); }
.emp-task-body { flex: 1; min-width: 0; }
.emp-task-title { font-weight: 650; font-size: 15px; }
.emp-task-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
@media (max-width: 620px) {
  .emp-head { padding: 0 16px; }
  .emp-user-meta { display: none; }
}


/* 员工通讯录可见范围提示 */
.contact-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.contact-toolbar input { flex: 1; }
.dir-scope-tip { flex: 0 0 auto; font-size: 12px; color: #2563eb; background: #eff6ff; border-radius: 99px; padding: 5px 12px; white-space: nowrap; }
@media (max-width: 620px) { .contact-toolbar { flex-direction: column; align-items: stretch; } .dir-scope-tip { text-align: center; } }
