/* Employee relations, compliance and policies (modules/44-relations). */
.er-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.er-steps li { position: relative; padding: 6px 10px 6px 28px; border-radius: 8px; background: var(--ct-soft, #f4f6f9); color: #5b6b7f; min-width: 0; }
.er-steps li::before { content: ""; position: absolute; left: 10px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; border: 2px solid #b8c2cf; background: #fff; }
.er-steps li.done { color: #0f5132; }
.er-steps li.done::before { background: #12a079; border-color: #12a079; }
.er-steps li.now { background: #e8f2fd; color: #0f4c8a; font-weight: 600; }
.er-steps li.now::before { border-color: #1a7fe0; background: #1a7fe0; }
.er-steps small { display: block; font-weight: 400; color: #b06f00; }
.er-thread { display: grid; gap: 10px; }
.er-msg { border-radius: 10px; padding: 10px 12px; background: #f4f6f9; max-width: 92%; min-width: 0; overflow-wrap: anywhere; }
.er-msg.us { background: #e8f2fd; justify-self: end; }
.er-msg.them { background: #f4f6f9; justify-self: start; }
.er-msg.sys { background: #fff8e6; justify-self: center; font-size: .92em; }
.er-meta { font-size: .82em; color: #5b6b7f; margin-bottom: 4px; }
.er-reply { margin-top: 12px; }
.er-policy { white-space: normal; line-height: 1.6; max-height: 520px; overflow: auto; position: relative; padding: 12px 14px; border: 1px solid #e3e8ef; border-radius: 10px; background: #fff; }
.er-hash { font-size: .82em; word-break: break-all; }
.er-pad { padding: 10px 14px; margin: 0; }
.er-toolbar { padding: 10px 14px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.er-items td { vertical-align: top; }
.er-answer { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.er-answer select, .er-answer input { min-width: 0; max-width: 100%; padding: 5px 8px; border: 1px solid #cfd8e3; border-radius: 6px; font: inherit; }
.er-answer input { flex: 1 1 160px; }
.er-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid #e3e8ef; }
.er-cal-h { padding: 6px 8px; font-size: .78em; font-weight: 600; color: #5b6b7f; background: #f7f9fb; border-bottom: 1px solid #e3e8ef; }
.er-cal-d { min-height: 96px; padding: 6px; border-right: 1px solid #eef1f5; border-bottom: 1px solid #eef1f5; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.er-cal-d.out { background: #fafbfc; color: #a3adba; }
.er-cal-d.today { background: #f0f7ff; box-shadow: inset 0 0 0 2px #1a7fe0; }
.er-cal-n { font-size: .8em; font-weight: 600; }
.er-cal-i { display: block; font-size: .74em; line-height: 1.25; padding: 2px 5px; border-radius: 4px; background: #eef1f5; color: #23364d; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.er-cal-i.ok { background: #e3f6ee; color: #0f5132; }
.er-cal-i.warn { background: #fff4d6; color: #7a4f00; }
.er-cal-i.bad { background: #fde7ea; color: #8f1d2c; }
.er-cal-i.info { background: #e8f2fd; color: #0f4c8a; }
.er-cal-more { font-size: .72em; color: #5b6b7f; }
.er-pub { max-width: 1080px; }
.er-anon { border: 1px dashed #cfd8e3; border-radius: 10px; padding: 12px 14px; margin: 6px 0 12px; }
.er-anon p { margin: 4px 0 8px; }
.er-next { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.er-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.7em; letter-spacing: .08em; font-weight: 700; padding: 14px; text-align: center; background: #f4f6f9; border-radius: 10px; margin: 0 0 12px; overflow-wrap: anywhere; }
@media (max-width: 760px) {
    .er-cal { grid-template-columns: 1fr; }
    .er-cal-h { display: none; }
    .er-cal-d { min-height: 0; }
    .er-cal-d:not(.has) { display: none; }
    .er-cal-d.out { display: none; }
    .er-msg { max-width: 100%; }
}
