/* Scoped to the approved employee-matching region; other forms keep their existing styles. */
.employee-match{--em-primary:#0F7868;--em-text:#1D2129;--em-muted:#4E5969;--em-placeholder:#86909C;--em-border:#E5E6EB;--em-background:#F7F8FA;--em-danger:#E54848;--em-warning:#FF7D00;font:14px/1.6 Inter,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--em-text);min-width:0}
.employee-match [hidden]{display:none!important}.employee-match .em-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.employee-match h3{font-size:13px;font-weight:500;margin:0}.employee-match .em-optional{font-size:12px;font-weight:400;color:var(--em-placeholder);margin-left:8px}
.employee-match button,.employee-match input,.employee-match select{box-sizing:border-box;font:inherit;height:36px;border:1px solid var(--em-border);border-radius:8px;background:#fff;padding:0 12px;color:var(--em-text);min-width:0}
.employee-match button{cursor:pointer;white-space:nowrap}.employee-match button:disabled,.employee-match input:disabled,.employee-match select:disabled{opacity:.46;cursor:not-allowed}.employee-match input,.employee-match select{width:100%}
.employee-match button:focus-visible,.employee-match input:focus,.employee-match select:focus{outline:2px solid #B6DBD3;outline-offset:2px;border-color:var(--em-primary)}.employee-match input::placeholder{color:var(--em-placeholder)}
.employee-match label{display:block;margin-bottom:8px;font-size:14px;line-height:1.6;color:var(--em-text);font-weight:500}.employee-match em{font-style:normal;color:var(--em-danger)}
.employee-match .em-tabs{display:flex;gap:24px;border-bottom:1px solid var(--em-border);margin:8px 0 16px}.employee-match .em-tabs button{border:0;border-radius:0;background:none;padding:0 0 12px;height:40px;color:var(--em-muted)}
.employee-match .em-tabs button[aria-selected=true]{color:var(--em-primary);border-bottom:2px solid var(--em-primary);font-weight:600}.employee-match .em-count{font-size:11px;padding:1px 5px;border-radius:4px;background:#F2F3F5;margin-left:4px}
.employee-match .em-input-row{display:flex;gap:8px}.employee-match .em-input-row input{flex:1}.employee-match .em-input-row button{flex-shrink:0;color:var(--em-primary)}
.employee-match .em-help{color:var(--em-muted);font-size:12px;font-weight:400;margin:6px 0 0;line-height:1.6}.employee-match .em-error{font-size:12px;color:var(--em-danger);margin:8px 0}.employee-match input.error{border-color:var(--em-danger)}
.employee-match .em-result{border:1px solid var(--em-border);border-radius:8px;padding:16px;margin-top:16px;font-size:13px}.employee-match .em-result strong{display:block;font-weight:600;margin-bottom:4px}.employee-match .em-result p{margin:4px 0 0}
.employee-match .em-result.success{border-color:#B9DFD6;background:#F4FAF8}.employee-match .em-result.warning{border-color:#F6D5AA;background:#FFF7E8}.employee-match .em-result.error{border-color:#F3C1BE;background:#FFF1F0}.employee-match .em-result.neutral{background:var(--em-background)}
.employee-match .em-result-meta{display:flex;gap:24px;flex-wrap:wrap;margin-top:8px;color:var(--em-muted)}.employee-match .em-confirmation{margin-top:12px;padding:12px 16px;background:var(--em-background);border-radius:8px}
.employee-match label.em-ack{display:flex;align-items:flex-start;gap:8px;margin:0;font-size:13px;font-weight:400}.employee-match .em-ack input{width:16px;height:16px;accent-color:var(--em-primary);margin-top:3px;flex-shrink:0;padding:0}
.employee-match label.em-reason-label{font-size:12px;margin:12px 0 0}.employee-match .em-reason-label input{display:block;margin-top:8px}.employee-match .em-period{display:flex;gap:8px;border-top:1px solid var(--em-border);padding-top:16px;margin-top:16px;font-size:12px}
.employee-match .em-period>span{color:var(--em-primary);font-size:20px;line-height:1.3}.employee-match .em-period strong{font-size:13px;font-weight:500}.employee-match .em-period p{margin:4px 0;color:var(--em-muted)}
.employee-match-modal .modal{width:720px;font:14px/1.6 Inter,"PingFang SC","Microsoft YaHei",sans-serif}.employee-match-modal .modal-header{padding:20px 24px}.employee-match-modal .modal-header h2{font-size:18px;line-height:1.5}.employee-match-modal .modal-body{padding:24px}.employee-match-modal .em-description{font:13px/1.6 Inter,"PingFang SC","Microsoft YaHei",sans-serif;color:#4E5969;margin:4px 0 0}
.employee-match-modal .em-person{display:flex;align-items:center;gap:12px;margin-bottom:24px;font:14px/1.6 Inter,"PingFang SC","Microsoft YaHei",sans-serif}.employee-match-modal .em-person>div:nth-child(2){flex:1}.employee-match-modal .em-person small{display:block;color:#4E5969;font-size:12px}
.employee-match-modal .em-avatar{width:36px;height:36px;border-radius:50%;background:#EAF0F1;display:grid;place-items:center;color:#235D56;font-size:16px;font-weight:600}.employee-match-modal .em-person-tag{font-size:12px;color:#0F7868;background:#E8F5F1;padding:3px 8px;border-radius:4px}
.employee-match-modal .em-store{padding-bottom:24px;border-bottom:1px solid #E5E6EB;margin-bottom:24px;font:14px/1.6 Inter,"PingFang SC","Microsoft YaHei",sans-serif}.employee-match-modal .em-store>span{color:#4E5969}.employee-match-modal .em-store strong{display:block;margin-top:4px}
.employee-match-modal .employee-match h3{font-size:15px;font-weight:600}.employee-match-modal .employee-match .em-tabs{margin-top:16px}.employee-match-modal .employee-match .em-period{margin-top:24px}.employee-match-modal .em-summary{margin-top:24px;padding:12px 16px;border-radius:8px;background:#F7F8FA;font:12px/1.6 Inter,"PingFang SC","Microsoft YaHei",sans-serif;color:#4E5969}
.employee-match-modal .modal-footer{padding:16px 24px;gap:12px}.employee-match-modal .em-footer-hint{margin-right:auto;font-size:12px;color:#4E5969}.employee-match-modal .button{height:36px;border-radius:8px;font-size:14px;font-weight:500;padding:0 12px}.employee-match-modal #cancel-modal{color:#0F7868;font-weight:400}
.appointment-modal .employee-match{grid-column:1/-1}.person-profile .employee-mapping-empty{display:flex;align-items:center;justify-content:space-between;gap:12px}.person-profile .employee-mapping-empty .text-button{white-space:nowrap}
@media(max-width:760px){.employee-match .em-result-meta{gap:8px}.employee-match-modal .modal-header,.employee-match-modal .modal-body{padding:16px}.employee-match-modal .modal-footer{padding:12px 16px;gap:8px}.employee-match-modal .em-footer-hint{max-width:140px}}
