/* 社員カード・編集の見た目（UniGUI 版 files\app.css の「社員カード」「社員情報の編集」を移したもの）。
   外枠の configure で ServerOptions::client_styles に足す（pages::EMP_CSS）。HTML の style 属性は CSP で効かないので、見た目はここだけで決める。
   表示の切り替え（空欄・他の取込元・変更履歴）はサーバが描き分けるので、ここでは隠さない（見せないものは送らない） */

/* ==== 社員カード（card.rs の HTML） ======================================== */
.emp-card-frame { background: #f1f4f3; }
.ec { display: flex; flex-direction: column; box-sizing: border-box; font-size: 13px; color: #222; background: #f1f4f3; }
.ec-top { display: flex; gap: 16px; padding: 12px 16px; background: #fff; border-bottom: 1px solid #d8dfdc; }
.ec-photo { position: relative; width: 92px; height: 112px; flex: none; border-radius: 6px; border: 1px solid #c9d6d0;
            background: linear-gradient(#e6eeea, #cfdcd6); display: flex; align-items: center; justify-content: center;
            font-size: 28px; font-weight: bold; color: #2f5d50; }
.ec-photo small { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-size: 10px; font-weight: normal; color: #66706b; }
.ec-id { flex: 1; min-width: 0; }
.ec-name { font-size: 20px; font-weight: bold; color: #2f3a35; }
.ec-kana { font-size: 12px; font-weight: normal; color: #66706b; margin-left: 10px; }
.ec-st { display: inline-block; font-size: 11px; font-weight: normal; padding: 1px 9px; border-radius: 10px; margin-left: 10px; vertical-align: middle; }
.ec-st.st-act { background: #d9efe4; color: #1e6b47; }
.ec-st.st-ret { background: #e6e6e6; color: #555; }
.ec-st.st-leave { background: #fdebd0; color: #9a5b00; }
.ec-st.st-other { background: #e3e8e6; color: #34433d; }
.ec-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 10px; margin-top: 8px; }
.ec-kv > div { display: flex; border: 1px solid #dfe5e2; border-radius: 3px; overflow: hidden; background: #fff; }
.ec-kv b { flex: none; width: 78px; background: #eef2f0; color: #4a5650; font-weight: normal; padding: 3px 6px; font-size: 12px; }
.ec-kv span { padding: 3px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-kv i { font-style: normal; color: #2f5d50; margin-left: 4px; font-size: 12px; }
.ec-side { width: 200px; flex: none; display: flex; flex-direction: column; gap: 6px; }
.ec-asof { background: #2f5d50; color: #fff; padding: 4px 8px; border-radius: 3px; text-align: center; }
.ec-upd { font-size: 11px; color: #66706b; }
.ec-cd { display: inline-block; min-width: 16px; padding: 0 4px; margin-right: 5px; border-radius: 3px; background: #e3e8e6; color: #34433d; font-size: 11px; text-align: center; }

.ec-opts { padding: 6px 16px; background: #fff; border-bottom: 1px solid #d8dfdc; font-size: 12px; color: #4a5650; }
.ec-note { font-size: 11px; color: #b9770e; }

.ec-tabs { display: flex; flex-wrap: wrap; gap: 3px 2px; padding: 8px 12px 0; background: #e3eae7; border-bottom: 3px solid #2f5d50; }
.ec-tab { padding: 4px 10px; border: 1px solid #c9d4cf; border-bottom: none; border-radius: 4px 4px 0 0; background: #f7f9f8;
          cursor: pointer; white-space: nowrap; font-size: 12px; font-family: inherit; color: inherit; user-select: none; }
.ec-tab:hover { background: #fff; }
.ec-tab.ec-nodata { color: #9aa39f; }
.ec-tab.active { background: #2f5d50; border-color: #2f5d50; color: #fff; font-weight: bold; }
.ec-tab .ec-cnt { margin-left: 4px; padding: 0 5px; border-radius: 8px; background: #d9e3df; color: #34433d; font-size: 10px; font-weight: normal; }
.ec-tab.active .ec-cnt { background: #f2c94c; color: #2f3a35; }

.ec-body { padding: 12px 16px 40px; }
.ec-pane-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ec-pane-head h3 { margin: 0; font-size: 16px; color: #2f5d50; }
.ec-kind { font-size: 11px; padding: 1px 6px; border-radius: 3px; }
.ec-kind.k-S { background: #e3e8e6; color: #34433d; }
.ec-kind.k-H { background: #2f5d50; color: #fff; }
.ec-kind.k-D { background: #f2c94c; color: #2f3a35; }
.ec-hint { font-size: 11px; color: #8a948f; }
.ec-add { margin-left: auto; }
.ec-none { color: #8a948f; padding: 18px; text-align: center; background: #fff; border: 1px dashed #c9d4cf; border-radius: 6px; }

.ec-btn { display: inline-block; padding: 3px 10px; border: 1px solid #2f5d50; border-radius: 3px; background: #fff; color: #2f5d50;
          cursor: pointer; font-size: 12px; font-family: inherit; white-space: nowrap; user-select: none; }
.ec-btn:hover { background: #2f5d50; color: #fff; }
.ec-btn.primary { background: #2f5d50; color: #fff; }
.ec-btn.primary:hover { background: #24493f; }
.ec-btn.danger { border-color: #c0392b; color: #c0392b; }
.ec-btn.danger:hover { background: #c0392b; color: #fff; }

.ec-card { background: #fff; border: 1px solid #d3dbd7; border-radius: 6px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.ec-card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 6px 12px; background: #f6f8f7;
                border-bottom: 1px solid #e3e8e6; border-radius: 6px 6px 0 0; }
.ec-rl { font-weight: bold; color: #2f5d50; }
.ec-rs { font-size: 11px; color: #66706b; }
.ec-rs.ec-unknown { color: #b9770e; }
.ec-act { margin-left: auto; display: flex; gap: 6px; }
.ec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); column-gap: 18px; padding: 6px 12px 10px; }
.ec-f { display: flex; border-bottom: 1px dotted #dfe5e2; min-height: 26px; }
.ec-f.ec-wide { grid-column: 1 / -1; }
.ec-f.ed-empty .ec-l { color: #a5aeaa; }
.ec-l { flex: none; width: 150px; color: #66706b; padding: 4px 8px 4px 0; font-size: 12px; }
.ec-v { flex: 1; padding: 4px 4px 4px 0; word-break: break-all; }
.ec-card.ed-other { border-color: #ecd9a0; }
.ec-card.ed-other .ec-card-head { background: #fdf6e3; }
.ec-card.ed-hist { border-style: dashed; opacity: .8; }
.ec-card.ed-hist .ec-card-head { background: #ececec; }
.ec-card.ed-hist .ec-rl { color: #777; }
.ec-hidden-only .ec-v { color: #7a8580; }

@media (max-width: 768px) {
  .ec-top { flex-wrap: wrap; }
  .ec-side { width: 100%; }
  .ec-l { width: 110px; }
  .ec-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==== 社員情報の編集（edit.rs の部品の入れ物） ============================== */
.ef-grid { background: #fff; border: 1px solid #d3dbd7; border-radius: 6px; padding: 10px 12px; }
.ef-f { padding: 4px 6px; border-radius: 4px; }
.ef-f.ef-eff { box-shadow: inset 3px 0 0 #2f5d50; }
.ef-f.ef-chg { background: #fffbe6; box-shadow: inset 3px 0 0 #e0b400; }
.ef-f.ef-bad { background: #fdf0ef; box-shadow: inset 3px 0 0 #c0392b; }

/* 社員カードの「閉じる」をモーダルの右上（見出しの行）へ。見た目だけ（2026-12-02 利用者の要望）。
   モーダルの根（.rwr-form.rwr-modal）は position: fixed なので、その中の絶対位置になる */
.emp-card-dlg .rwr-button.emp-dlg-close {
  position: absolute;
  top: 6px;
  right: 12px;
  z-index: 1;
}
