/* 员工端沿用若依式侧栏框架，保留员工表单与草稿编辑布局。 */
body.employee-layout{--ink:#303133;--muted:#909399;--brand:#409eff;--soft:#ecf5ff;--sidebar-width:220px;background:#f0f2f5}.employee-layout #employeeShell{min-height:100vh}.employee-layout main#main{max-width:none;margin:0;padding:24px;min-height:calc(100vh - 93px)}.employee-layout .pagehead{margin-bottom:22px}.employee-layout .pagehead h1{font-size:21px;font-weight:600;margin-bottom:5px;letter-spacing:0}.employee-layout .pagehead .sub{font-size:12px}.employee-layout .card{border-radius:4px;box-shadow:none}.employee-layout .card h2{font-size:16px}.employee-layout .grid{gap:20px;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr)}.employee-layout .sidebar .navtabs a{display:flex;align-items:center;gap:14px;width:100%;height:50px;border-radius:0;padding:0 23px;color:#bfcbd9;text-decoration:none;font-size:14px;white-space:nowrap}.employee-layout .sidebar .navtabs a:hover{background:#263445;color:#fff}.employee-layout .sidebar .navtabs a.on{background:#263445;color:#409eff;border-right:3px solid #409eff}.employee-layout .sidebar-collapsed .navtabs a{gap:0;padding:0 23px}.employee-layout .breadcrumb a{color:#909399;font-size:13px;text-decoration:none}.employee-layout .visited-tabs a{display:block;flex:none;min-height:25px;border:1px solid #d8dce5;padding:2px 10px;background:white;font-size:12px;color:#606266;text-decoration:none;line-height:19px}.employee-layout .visited-tabs a[aria-current]{background:#42b983;color:white;border-color:#42b983}.employee-layout .visited-tabs a[aria-current]:before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:white;margin-right:7px}.employee-layout .employee-caption{font-size:12px;color:#909399;margin-right:8px}.employee-layout .toolbar{padding:0;background:none;border:0;border-radius:0;margin-bottom:0}.employee-layout .btn{border-radius:4px}.employee-layout input:not([type=checkbox]),.employee-layout select,.employee-layout textarea{border-radius:4px}.employee-layout .seg,.employee-layout .seg button,.employee-layout .upload,.employee-layout .status,.employee-layout .preview,.employee-layout .tipbox{border-radius:4px}.employee-layout .seg button[aria-pressed=true]{color:#409eff}.employee-layout .preview{background:#f8f9fb}.employee-layout .status{border-left-color:#409eff;background:#f5f9ff}.employee-layout .journey .done .step{background:#409eff}.employee-layout .sticky{top:20px}.employee-layout .header-logout{min-height:30px}.employee-layout .skip:focus{z-index:70}.employee-layout .sidebar-brand:focus-visible,.employee-layout .sidebar .navtabs a:focus-visible{outline-offset:-4px}
@media(max-width:1050px){.employee-layout .grid{grid-template-columns:minmax(0,1fr)}.employee-layout .sticky{position:static}.employee-layout .employee-caption{display:none}}
@media(max-width:768px){.employee-layout #employeeShell{--sidebar-width:220px}.employee-layout main#main{padding:20px 12px 40px}.employee-layout .pagehead h1{font-size:20px}.employee-layout .pagehead .datebox{display:none}.employee-layout .sidebar-collapsed .navtabs a{gap:14px;padding:0 23px}.employee-layout .card{padding:18px}.employee-layout .breadcrumb a{font-size:12px}.employee-layout .header-actions{gap:7px}.employee-layout .pagehead{margin-bottom:18px}.employee-layout .stack{gap:16px}.employee-layout .filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:380px){.employee-layout .row,.employee-layout .filters{grid-template-columns:minmax(0,1fr)}.employee-layout .breadcrumb{gap:6px}.employee-layout .breadcrumb a{font-size:11px}.employee-layout .header-actions{gap:5px}.employee-layout #whoami{max-width:50px}.employee-layout .header-logout{padding-left:6px}}
/* 通讯录与公告沿用统一侧栏，联系资料缺失时明确显示未填写。 */
.contact-filters{display:grid;grid-template-columns:minmax(0,2fr) minmax(150px,1fr) auto;gap:16px;align-items:end;margin:20px 0}.contact-filters .field{margin:0}.contact-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}.contact-card{padding:20px;border:1px solid #e6ebf5;border-radius:4px;min-width:0}.contact-person{display:flex;align-items:center;gap:12px}.contact-person>div{min-width:0}.contact-person h3{margin:0;font-size:16px;overflow-wrap:anywhere}.contact-person p{margin:4px 0 0;font-size:12px;color:#909399;overflow-wrap:anywhere}.contact-avatar{width:42px;height:42px;display:grid;place-items:center;flex:none;background:#ecf5ff;color:#409eff;border-radius:6px;font-size:18px}.contact-card dl{margin:18px 0 0;font-size:13px}.contact-card dl>div{display:flex;gap:14px;margin-top:8px}.contact-card dt{flex:none;color:#909399}.contact-card dd{margin:0;min-width:0;overflow-wrap:anywhere}.contact-card a{text-decoration:none}.notice-shortcut{position:relative;display:flex;align-items:center;gap:4px;text-decoration:none;font-size:12px;color:#606266}.notice-shortcut span{background:#f56c6c;color:white;border-radius:10px;min-width:17px;line-height:17px;font-size:10px;padding:0 4px;text-align:center}.notice-item{padding:20px 0;border-bottom:1px solid #ebeef5}.notice-item:last-child{border:0}.notice-item h3{font-size:16px;margin:0;overflow-wrap:anywhere}.notice-snippet{color:#606266;font-size:13px;line-height:1.8;overflow-wrap:anywhere;white-space:pre-wrap}.notice-item .inline{flex-wrap:wrap}.employee-layout .header-actions .employee-caption{display:none}.employee-layout .contact-grid .empty{grid-column:1/-1}.employee-layout #noticeDialog .preview{margin-top:20px;overflow:auto;max-height:60vh}
@media(max-width:768px){.contact-filters{grid-template-columns:minmax(0,1fr)}.contact-grid{grid-template-columns:minmax(0,1fr)}.contact-card{padding:16px}.employee-layout .header-actions{gap:7px}.employee-layout .breadcrumb a{display:none}.employee-layout .breadcrumb>span:first-of-type{display:none}.notice-item .result-head{align-items:flex-start}.notice-item .hint{font-size:11px}.employee-layout .cardhead{flex-wrap:wrap}.employee-layout #contactDialog{padding:20px}}
#noticeTitle{min-width:0;overflow-wrap:anywhere}#contactDialog .cardhead h2{margin:0}
/* 全员群聊：聊天记录独立滚动，阅读旧消息时不强制跳到最新位置。 */
.employee-layout .chat-room{display:flex;flex-direction:column;height:calc(100dvh - 220px);min-height:430px;max-height:850px;padding:0;overflow:hidden;position:relative}.chat-room-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;border-bottom:1px solid #ebeef5}.chat-room-head h2{margin:0 0 4px}.chat-room-head .hint{font-size:12px}.chat-history{text-align:center;padding:4px;background:#f8fafc}.chat-log{flex:1;min-height:100px;overflow-y:auto;padding:20px;background:#f5f7fa;overscroll-behavior:contain;scrollbar-width:thin}.chat-message{display:flex;align-items:flex-start;gap:10px;margin:0 0 20px}.chat-avatar{width:34px;height:34px;flex:none;display:grid;place-items:center;background:#dce9f7;color:#409eff;border-radius:5px;font-size:14px}.chat-message-main{min-width:0;max-width:min(76%,680px)}.chat-message-meta{display:flex;gap:10px;align-items:baseline;font-size:11px;color:#909399;margin-bottom:6px;flex-wrap:wrap}.chat-message-meta b{color:#606266;font-size:12px;font-weight:500}.chat-bubble{background:white;border:1px solid #e6ebf5;padding:10px 14px;border-radius:0 8px 8px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8;min-width:40px}.chat-message.mine{flex-direction:row-reverse}.chat-message.mine .chat-message-meta{justify-content:flex-end}.chat-message.mine .chat-avatar{background:#409eff;color:white}.chat-message.mine .chat-bubble{background:#ecf5ff;border-color:#c6e2ff;border-radius:8px 0 8px 8px}.chat-composer{padding:14px 20px;background:white;border-top:1px solid #ebeef5}.employee-layout .chat-composer textarea{min-height:76px;height:76px;max-height:160px;resize:vertical;padding:9px 11px;font-size:14px}.chat-composer .inline{margin-top:9px;gap:12px}.chat-composer .hint{font-size:11px}.chat-composer .actions{gap:10px;flex-wrap:nowrap}.chat-composer .btn{min-height:36px;padding:6px 20px}.chat-room>.msg{margin:0;border-radius:0;flex:none}.chat-new{position:absolute;align-self:center;bottom:163px;background:#409eff;color:white;border:0;padding:7px 16px;border-radius:20px;font-size:12px;box-shadow:0 2px 8px #0002;z-index:2}.chat-offline{color:#e6a23c!important}#chatMemberList{max-height:55vh;overflow:auto;margin:14px 0}
@media(max-width:768px){.employee-layout .chat-room{height:calc(100dvh - 220px);min-height:400px}.chat-room-head{padding:14px;flex-wrap:wrap}.chat-log{padding:14px 10px}.chat-message-main{max-width:80%}.chat-composer{padding:10px 12px}.chat-composer .inline{align-items:flex-end}.chat-composer #chatDraftHint{max-width:48%;font-size:10px}.chat-message-meta{gap:5px;font-size:10px}.chat-bubble{font-size:13px;padding:8px 11px}.chat-composer .actions{gap:6px}.chat-composer .btn{padding:6px 14px}.chat-room-head .btn{min-height:30px}}
