/* People HRMS My team tab (people-my-team.js). */
.pmt-panel, .pmt-toast, .pmt-backdrop, .pmt-modal {
  --pmt-teal: #1d6f72;
  --pmt-line: #e3eaee;
  --pmt-ink: #10233a;
  --pmt-mute: #64748b;
}
.pmt-panel *, .pmt-toast *, .pmt-backdrop *, .pmt-modal * { box-sizing: border-box; }
.pmt-panel { display: grid; gap: 16px; padding: 4px 0 24px; color: var(--pmt-ink); font-size: 14px; }
/* display:grid above would otherwise override the HTML hidden attribute */
.pmt-panel[hidden] { display: none !important; }
.pmt-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.pmt-head h3 { margin: 0 0 4px; font-size: 20px; }
.pmt-head p { margin: 0; color: var(--pmt-mute); max-width: 520px; }
.pmt-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pmt-tools label { display: grid; gap: 4px; font-size: 12px; font-weight: 650; color: #475569; }
.pmt-tools select { min-width: 160px; height: 38px; border: 1px solid #d5e0e5; border-radius: 10px; padding: 0 10px; font: inherit; background: #fff; }
.pmt-stat { background: #f0f7f7; border: 1px solid #cfe4e4; border-radius: 12px; padding: 10px 14px; font-size: 13px; color: #334155; }
.pmt-stat b { color: var(--pmt-teal); }
.pmt-alert { padding: 10px 12px; border-radius: 10px; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.pmt-muted { color: var(--pmt-mute); margin: 0; }
.pmt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pmt-member-list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.pmt-card { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(220px, 1.4fr); gap: 16px; padding: 16px; border: 1px solid var(--pmt-line); border-radius: 14px; background: #fff; }
.pmt-card.pmt-member {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.pmt-card.pmt-member:hover,
.pmt-card.pmt-member:focus-visible {
  border-color: #9ec8c9;
  box-shadow: 0 8px 20px rgba(29, 111, 114, 0.12);
  outline: none;
  transform: translateY(-1px);
}
.pmt-person { display: flex; gap: 12px; align-items: center; min-width: 0; }
.pmt-person-modal { align-items: flex-start; margin-bottom: 4px; }
.pmt-avatar { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: #e8f3f3; color: var(--pmt-teal); display: grid; place-items: center; font-weight: 750; flex: none; }
.pmt-person b { display: block; font-size: 15px; }
.pmt-person small { color: var(--pmt-mute); display: block; margin-top: 2px; }
.pmt-phone { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.pmt-hr-summary { display: grid; gap: 10px; margin-bottom: 8px; }
.pmt-att-block, .pmt-bal-block, .pmt-leave-block {
  display: grid; gap: 10px; padding: 12px; border: 1px solid #cfe4e4; border-radius: 12px; background: #f4fafa;
}
.pmt-att-block h4, .pmt-bal-block h4, .pmt-leave-block h4 { margin: 0; font-size: 14px; color: #0f3d3e; }
.pmt-kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pmt-kpi-row article { background: #fff; border: 1px solid #d5e0e5; border-radius: 10px; padding: 8px 10px; }
.pmt-kpi-row small { display: block; color: #64748b; font-size: 11px; font-weight: 650; }
.pmt-kpi-row b { display: block; margin-top: 2px; font-size: 14px; color: #0f3d3e; }
.pmt-bal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pmt-bal-list li { display: flex; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid #d5e0e5; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; }
.pmt-bal-list span { color: #64748b; text-align: right; }
.pmt-leave-block { margin-bottom: 8px; }
.pmt-leave-card { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid #d5e0e5; border-radius: 10px; background: #fff; }
.pmt-leave-card b { display: inline; }
.pmt-leave-card small { display: block; color: #64748b; margin-top: 2px; }
.pmt-leave-edit { display: grid; gap: 8px; }
.pmt-leave-edit label { display: grid; gap: 4px; font-size: 12px; font-weight: 650; color: #475569; }
.pmt-leave-edit input, .pmt-leave-edit textarea { width: 100%; border: 1px solid #d5e0e5; border-radius: 8px; padding: 8px 10px; font: inherit; font-weight: 400; }
.pmt-leave-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 6px; }
.pmt-leave-actions .pmt-btn { width: 100%; justify-content: center; height: 42px; padding: 8px 12px; }
.pmt-btn.danger { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }
.pmt-btn.send { background: #0f3d3e; border-color: #0f3d3e; color: #fff; }
.pmt-btn.send:disabled { opacity: 0.45; }
.pmt-leave-decision { color: #475569 !important; font-weight: 650; }
.pmt-leave-decision.on { color: #0f3d3e !important; }
.pmt-leave-hint { margin: 0; font-size: 12px; color: #9a3412; font-weight: 650; }
.pmt-leave-attach { margin-top: 4px; padding: 8px 10px; border-radius: 8px; background: #f8fafb; border: 1px dashed #d5e0e5; font-size: 12.5px; }
.pmt-leave-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pmt-leave-files li { margin: 0; }
.pmt-link { border: 0; background: transparent; color: var(--pmt-teal); font: inherit; font-weight: 650; cursor: pointer; padding: 0; text-align: left; text-decoration: underline; }
.pmt-unauth { color: #9f1239 !important; font-weight: 650; }
.pmt-leave-badge { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; color: #9a3412; background: #ffedd5; border-radius: 999px; padding: 2px 8px; }
.pmt-form { display: grid; gap: 10px; }
.pmt-form label { display: grid; gap: 5px; font-size: 12.5px; font-weight: 650; color: #475569; }
.pmt-stars { display: inline-flex; gap: 2px; }
.pmt-stars button { border: 0; background: transparent; font-size: 22px; line-height: 1; color: #cbd5e1; cursor: pointer; padding: 0 1px; }
.pmt-stars button.on { color: #f59e0b; }
.pmt-stars button:hover { transform: scale(1.08); }
.pmt-form select, .pmt-form textarea { width: 100%; border: 1px solid #d5e0e5; border-radius: 10px; padding: 9px 11px; font: inherit; font-weight: 400; color: var(--pmt-ink); background: #fff; }
.pmt-form textarea { resize: vertical; min-height: 72px; }
.pmt-form select:focus, .pmt-form textarea:focus { outline: 2px solid rgba(29, 111, 114, 0.25); border-color: var(--pmt-teal); }
.pmt-crm-target {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #cfe4e4;
  border-radius: 12px;
  background: #f4fafa;
}
.pmt-crm-target input {
  width: 100%;
  height: 38px;
  border: 1px solid #d5e0e5;
  border-radius: 10px;
  padding: 0 11px;
  font: inherit;
  font-weight: 400;
  color: var(--pmt-ink);
  background: #fff;
}
.pmt-crm-target input:focus {
  outline: 2px solid rgba(29, 111, 114, 0.25);
  border-color: var(--pmt-teal);
}
.pmt-crm-ach {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #475569;
}
.pmt-crm-ach b { color: var(--pmt-teal); font-size: 14px; }
.pmt-actions { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.pmt-meta { font-size: 12px; color: var(--pmt-mute); }
.pmt-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--pmt-line); background: #fff; color: var(--pmt-ink); font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; }
.pmt-btn.primary { background: #1d6f72; border-color: #1d6f72; color: #fff; }
.pmt-leave-actions .pmt-btn.primary { background: #1d6f72 !important; border-color: #1d6f72 !important; color: #fff !important; }
.pmt-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.pmt-toast { position: fixed; right: 24px; bottom: 24px; z-index: 1400; background: #0f3d3e; color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25); font-size: 14px; max-width: 420px; }
.pmt-toast.bad { background: #9f1239; }
.pmt-note { background: #f8fafb; border: 1px solid var(--pmt-line); border-radius: 12px; padding: 10px 14px; color: #475569; font-size: 13.5px; }
.pmt-rollup { display: block !important; margin-top: 6px !important; color: var(--pmt-teal) !important; font-weight: 650; }
.pmt-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); display: grid; place-items: center; z-index: 1300; padding: 16px; }
.pmt-modal { background: #fff; color: var(--pmt-ink); border-radius: 16px; width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25); }
.pmt-modal.wide { width: min(960px, 100%); }
.pmt-modal header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 18px 22px 10px; }
.pmt-modal h2 { margin: 0; font-size: 19px; }
.pmt-modal .pmt-body { padding: 4px 22px 14px; overflow-y: auto; }
.pmt-modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px 18px; border-top: 1px solid #eef2f5; }
.pmt-x { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; }
.pmt-report-card { border: 1px solid var(--pmt-line); border-radius: 14px; padding: 16px; margin-bottom: 14px; break-inside: avoid; }
.pmt-report-card header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pmt-report-card h4 { margin: 0 0 4px; font-size: 17px; }
.pmt-report-card h5 { margin: 14px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: #475569; }
.pmt-report-card small { display: block; color: var(--pmt-mute); margin-top: 2px; }
.pmt-report-score { text-align: right; }
.pmt-report-score b { display: block; font-size: 28px; color: var(--pmt-teal); line-height: 1; }
.pmt-report-score span { font-size: 12px; color: var(--pmt-mute); }
.pmt-report-rec { margin: 12px 0 0; }
.pmt-report-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pmt-report-table th, .pmt-report-table td { border-bottom: 1px solid #eef2f5; padding: 8px 6px; text-align: left; vertical-align: top; }
.pmt-report-table th { color: #64748b; font-weight: 650; }
.pmt-report-notes { white-space: pre-wrap; background: #f8fafb; border-radius: 10px; padding: 10px 12px; margin: 0; font: inherit; }
.pmt-perf-btn { margin-left: 8px; }
.pf-detail-actions { display: grid; gap: 8px; margin-top: 14px; }
.pf-detail-actions .pf-rate-btn { width: 100%; justify-content: center; }
@media (max-width: 820px) {
  .pmt-card { grid-template-columns: 1fr; }
  .pmt-member-list { grid-template-columns: 1fr; }
}
@media print {
  body * { visibility: hidden !important; }
  #pmt-report-modal, #pmt-report-modal * { visibility: visible !important; }
  #pmt-report-modal { position: static !important; inset: auto !important; background: #fff !important; padding: 0 !important; display: block !important; }
  #pmt-report-modal .pmt-modal { box-shadow: none !important; max-height: none !important; width: 100% !important; }
  #pmt-report-modal footer, #pmt-report-modal .pmt-x { display: none !important; }
}
