/* people.css — GC13, the people screens laid out as the plan draws them (static styles; CSP 'self'). */

/* ── shared form pieces ───────────────────────────────────────────────────────────────────────── */
.hire-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.hire-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.hire-grid3 .md-row, .hire-grid2 .md-row { margin: 0; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hire-grid3 .md-row > label, .hire-grid2 .md-row > label { font-size: 13px; font-weight: 600; color: var(--t2, #475569); }
.hire-grid3 input:not([type=checkbox]):not([type=radio]):not([type=file]), .hire-grid3 select,
.hire-grid2 input:not([type=checkbox]):not([type=radio]):not([type=file]), .hire-grid2 select { width: 100%; min-height: 40px; }
input.ro, .ro { background: var(--s2, #f1f5f9); color: var(--t2, #475569); font-weight: 400 !important; text-align: start !important; }
.ef-job-main .md-row > label::after { content: none !important; }
.money-in { display: flex; align-items: center; gap: 8px; }
.money-in input { flex: 1 1 auto; min-width: 0; }
.money-cur { flex: 0 0 auto; font-size: 13px; color: var(--t3, #64748b); }
[data-nid-hint].ok { color: var(--gn, #15803d); }
[data-nid-hint].warn { color: var(--am, #b45309); }
.hire-note { margin: 14px 0 4px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--ac, #0f766e) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--ac, #0f766e) 25%, transparent); font-size: 13px; color: var(--t1, #0f172a); }
.hire-sec { margin-bottom: 14px; }
.hire-sec-t { font-size: 15px; margin: 0 0 12px; }
.hire-ft { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 16px; }
.hire-ft .btn { min-height: 40px; }

/* the job picker: a search list of the company's jobs */
.jp { position: relative; display: block; }
.jp-input { width: 100%; }
.jp-menu { position: absolute; z-index: 70; inset-inline: 0; top: 100%; margin: 3px 0 0; padding: 4px; list-style: none; background: var(--s1, #fff);
  border: 1px solid var(--bd, #d7dde3); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.14); max-height: 260px; overflow-y: auto; }
.jp-menu li { padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.jp-menu li:hover { background: var(--ad, #e6f4f1); }
.jp-menu li.jp-empty { color: var(--t3, #8a96a3); cursor: default; }

/* the allowed branches as chips (tick boxes underneath) */
.chip-set { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-tick { position: relative; display: inline-flex; }
.chip-tick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-tick span { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--bd, #d7dde3);
  font-size: 13px; cursor: pointer; background: var(--s1, #fff); }
.chip-tick input:checked + span { border-color: var(--ac, #0f766e); color: var(--ac, #0f766e); background: color-mix(in srgb, var(--ac, #0f766e) 8%, transparent); font-weight: 600; }
.chip-tick input:checked + span::before { content: "✓ "; }
.chip-tick input:focus-visible + span { outline: 2px solid var(--ac, #0f766e); outline-offset: 2px; }

@media (max-width: 900px) { .hire-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hire-grid3, .hire-grid2 { grid-template-columns: 1fr; } }

.u-span2 { grid-column: 1 / -1; }

/* ── the employee file (mk-emp-file) ───────────────────────────────────────────────────────────── */
.ef-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; }
.ef-av { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; font-weight: 700; flex: 0 0 auto;
  background: color-mix(in srgb, var(--ac, #0f766e) 12%, transparent); color: var(--ac, #0f766e); object-fit: cover; }
.ef-id { flex: 1 1 320px; min-width: 0; }
.ef-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ef-name { font-size: 20px; margin: 0; }
.ef-sub { margin-top: 4px; font-size: 13px; }
.ef-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ef-acts .btn { min-height: 40px; }
.ef-act .lt-pop { min-width: 260px; }
.ef-act .lt-item.ef-danger { color: var(--rd, #dc2626); }
.ef-act form.lt-item { gap: 6px; flex-wrap: wrap; }
.ef-tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--bd, #e2e8f0); margin: 14px 0 12px; }
.ef-tab { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; font-size: 14px; color: var(--t2, #475569);
  text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ef-tab:hover { color: var(--t1, #0f172a); }
.ef-tab.on { color: var(--ac, #0f766e); border-bottom-color: var(--ac, #0f766e); font-weight: 600; }
.ef-h { font-size: 15px; margin: 0 0 12px; }
.ef-h3 { font-size: 14px; margin: 16px 0 8px; }
.ef-job { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 14px; align-items: start; }
.ef-side { display: flex; flex-direction: column; gap: 14px; }
.ef-side .panel { margin: 0; }
.ef-mini th, .ef-mini td { padding: 8px 6px; font-size: 13px; }
.ef-alert { padding: 9px 12px; border-radius: 9px; margin-bottom: 8px; font-size: 13px; border: 1px solid; }
.ef-alert.warn { background: #fff7e6; border-color: #f5c46b; color: #7a4a00; }
.ef-alert.err { background: #fdecec; border-color: #f2a3a3; color: #8a1c1c; }
.ef-alert.acc { background: color-mix(in srgb, var(--ac, #0f766e) 8%, transparent); border-color: color-mix(in srgb, var(--ac, #0f766e) 30%, transparent); }
.ef-note { margin: 14px 0; padding: 10px 14px; border-radius: 10px; font-size: 13px; background: color-mix(in srgb, var(--ac, #0f766e) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--ac, #0f766e) 22%, transparent); }
.ef-kv th { width: 220px; font-weight: 600; color: var(--t2, #475569); }
.ef-links { display: flex; gap: 10px; flex-wrap: wrap; }
.ef-qr { display: flex; align-items: center; gap: 12px; }
.ef-docform { margin-bottom: 8px; align-items: end; }
.ef-docbtn { justify-content: flex-end; }
.ef-mgr { display: block; min-width: 0; }
.ef-pane .more-details.panel { padding: 10px 16px; }
@media print { .ef-acts, .ef-tabs, #sidebar, .topbar { display: none !important; } .ef-pane[hidden] { display: block !important; } }
@media (max-width: 900px) { .ef-job { grid-template-columns: 1fr; } }

/* ── organisation (mk-org) ─────────────────────────────────────────────────────────────────────── */
.org-grid { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr); gap: 14px; align-items: start; }
.org-ul { list-style: none; margin: 0; padding: 0; }
.org-li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; border-radius: 8px; padding-inline-end: 8px; }
.org-li a { color: var(--t1, #0f172a); text-decoration: none; flex: 1; padding: 6px 0; }
.org-li.on { background: color-mix(in srgb, var(--ac, #0f766e) 10%, transparent); }
.org-li.on a { color: var(--ac, #0f766e); font-weight: 600; }
.org-caret { display: inline-block; width: 14px; color: var(--t3, #64748b); }
.org-n { font-size: 12px; color: var(--t3, #64748b); }
.org-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ── branches (mk-branches) ────────────────────────────────────────────────────────────────────── */
.br-grid2 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(270px, 1fr); gap: 14px; align-items: start; }
.br-list tr.sel { background: color-mix(in srgb, var(--ac, #0f766e) 7%, transparent); }
.br-zone-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* ── separation and settlement (mk-separation) ─────────────────────────────────────────────────── */
.sep-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--t2, #475569); margin: 0 0 12px; }
.sep-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.sep-two .panel { margin: 0; }
.sep-t tfoot th { background: var(--s2, #f1f5f9); }
/* GC16: a long line HR typed wraps; its amount stays on the card */
.sep-t { width: 100%; }
.sep-t td:first-child { white-space: normal; overflow-wrap: anywhere; }
.sep-t td.u-tae, .sep-t th.u-tae { white-space: nowrap; }
.sep-net { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 10px; }
.sep-net-v { font-size: 20px; font-weight: 700; }
.sep-warn { padding: 10px 14px; border-radius: 10px; font-size: 13px; background: #fff7e6; border: 1px solid #f5c46b; color: #7a4a00; margin-bottom: 12px; }

/* ── documents (mk-docs) and leave requests (mk-leave-req) ─────────────────────────────────────── */
.doc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lt-card.on { box-shadow: 0 0 0 2px var(--ac, #0f766e) inset; }
.lt-pill { min-height: 36px; display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; text-decoration: none; }
.lt-pill.on { border-color: var(--ac, #0f766e); color: var(--ac2, #0b5d57); font-weight: 600; background: color-mix(in srgb, var(--ac, #0f766e) 8%, transparent); }   /* T1: the chosen chip's words on its teal tint, 6:1 (the brand teal read 4.3:1) */
.lv-special { background: #f3e8ff; color: #6b21a8; border-color: #e9d5ff; }
.lv-acts { white-space: nowrap; }
.lv-acts .inline-form { display: inline-flex; }
.lv-more .lt-pop { min-width: 160px; }

@media (max-width: 900px) { .org-grid, .br-grid2, .sep-two { grid-template-columns: 1fr; } .doc-cards, .org-cards { grid-template-columns: 1fr; } }

/* a locked button reads as locked; the photo picker drawn as a box */
.btn:disabled, .btn[aria-disabled=true] { opacity: .5; cursor: not-allowed; }
.file-pick { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--bd, #d7dde3);
  border-radius: 8px; cursor: pointer; background: var(--s1, #fff); color: var(--t2, #475569); }
.file-pick:focus-within { outline: 2px solid var(--ac, #0f766e); outline-offset: 1px; }
.lt-pre-more { display: contents; }
.ef-head.panel { overflow: visible; position: relative; z-index: 6; }
.br-left { min-width: 0; }
.br-list th, .br-list td { white-space: normal; padding-inline: 8px; }
