/* My Personal Data Sheet */
.pds-page{max-width:1100px}
.pds-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:8px 0 12px;background:var(--bg)}
.pds-head h1{margin:0 0 4px;font-size:24px}
.pds-lead{margin:0;color:var(--muted);max-width:640px;font-size:13.5px}
.pds-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pds-status{font-size:12.5px;color:var(--muted)}
.pds-toc{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 14px}
.pds-toc-item{padding:5px 10px;border:1px solid var(--border);border-radius:999px;background:var(--card);color:var(--slate);font-size:12px;font-weight:650;text-decoration:none}
.pds-toc-item:hover,.pds-toc-item:focus-visible{border-color:var(--blue);color:var(--blue)}
.pds-toc-item.is-filled::before{content:'✓ ';color:#16a34a}
.pds-section{margin:0 0 16px;padding:16px 18px;min-width:0;scroll-margin-top:110px}
.pds-section legend{float:left;width:100%;margin:0 0 10px;padding:0;font-size:15.5px;font-weight:800;color:var(--slate)}
.pds-note{clear:both;margin:0 0 10px;color:var(--muted);font-size:13px}
.pds-grid{clear:both;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px 14px}
.pds-field{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:12px;font-weight:650;color:var(--muted)}
.pds-field input,.pds-field select,.pds-field textarea,.pds-q-details input{box-sizing:border-box;width:100%;min-height:40px;padding:8px 10px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--slate);font:inherit;font-weight:500;font-size:14px}
.pds-req{font-style:normal;color:var(--red,#b91c1c)}
.pds-rows{clear:both;list-style:none;margin:0 0 10px;padding:0;display:flex;flex-direction:column;gap:10px}
.pds-row{padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:var(--bg)}
.pds-row-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:12.5px;font-weight:750;color:var(--slate)}
.pds-remove{min-height:32px;padding:4px 10px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--red,#b91c1c);font:inherit;font-size:12.5px;font-weight:650;cursor:pointer}
.pds-remove:hover,.pds-remove:focus-visible{border-color:currentColor}
.pds-add{clear:both}
.pds-muted{color:var(--muted);font-size:13px}
.pds-error{color:var(--red,#b91c1c)}
.pds-questions{clear:both;margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px}
.pds-q p{margin:0 0 6px;font-size:13.5px;color:var(--slate);line-height:1.45}
.pds-q-answer{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap}
.pds-q-answer>label{display:flex;align-items:center;gap:6px;min-height:36px;font-size:13.5px;font-weight:650;color:var(--slate)}
.pds-q-details{flex:1 1 240px;flex-direction:column;align-items:stretch!important;gap:3px!important;font-size:12px!important;font-weight:600!important;color:var(--muted)!important}
.pds-foot{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 24px}
@media (max-width:700px){.pds-section{padding:12px}.pds-grid{grid-template-columns:1fr}}

/* On-screen reading of someone's sheet */
.pds-readonly table{width:100%;border-collapse:collapse;font-size:13px}
.pds-readonly th,.pds-readonly td{border:1px solid var(--border);padding:4px 6px;vertical-align:top;text-align:left;overflow-wrap:anywhere}
.pds-readonly h2{margin:14px 0 6px;font-size:15px}

/* Employees' sheets (HR, System Administrator, Head/OIC) and review state */
.pds-views{display:inline-flex;gap:4px;padding:4px;margin:0 0 12px;border:1px solid var(--border);border-radius:12px;background:var(--card)}
.pds-views[hidden]{display:none}
.pds-view-btn{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:6px 14px;border:0;border-radius:9px;background:transparent;color:var(--slate);font:inherit;font-size:13.5px;font-weight:700;cursor:pointer}
.pds-view-btn.is-active{background:var(--blue);color:#fff}
.pds-count{min-width:20px;padding:1px 6px;border-radius:999px;background:#dc2626;color:#fff;font-size:11.5px;text-align:center}
.pds-count[hidden]{display:none}
.pds-review-note{margin:0 0 12px;padding:8px 12px;border-radius:10px;font-size:13px}
.pds-review-note[hidden]{display:none}
.pds-review-note.is-reviewed{background:rgba(22,163,74,.12);color:var(--slate)}
.pds-review-note.is-pending{background:rgba(245,158,11,.14);color:var(--slate)}
.pds-field.is-locked input{background:var(--bg);color:var(--muted)}
.pds-field small{font-weight:500;color:var(--blue)}
.pds-staff-card{padding:14px 16px}
.pds-staff-tools{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.pds-staff-tools input,.pds-staff-tools select{min-height:40px;padding:8px 10px;border:1px solid var(--border);border-radius:8px;background:var(--card);color:var(--slate);font:inherit}
.pds-staff-search{flex:1 1 240px}.pds-staff-search input{box-sizing:border-box;width:100%}
.pds-staff-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.pds-staff-item{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--card);color:var(--slate);font:inherit;text-align:left;cursor:pointer}
.pds-staff-item:hover:not(:disabled),.pds-staff-item:focus-visible{border-color:var(--blue);background:var(--blue-lt)}
.pds-staff-item:disabled{cursor:default;opacity:.7}
.pds-staff-name{font-weight:700}
.pds-staff-meta{font-size:12.5px;color:var(--muted)}
.pds-state{font-size:12px;font-weight:700}
.pds-state-needs_review{color:#b45309}.pds-state-reviewed{color:#15803d}.pds-state-none{color:var(--muted)}
html[data-theme="dark"] .pds-state-needs_review{color:#fcd34d}
html[data-theme="dark"] .pds-state-reviewed{color:#86efac}
.pds-sheet-head{padding:14px 16px;margin-bottom:12px}
.pds-sheet-head h2{margin:6px 0 2px;font-size:19px}
.pds-readonly{padding:14px 16px;overflow-x:auto}
.pds-readonly header{text-align:center}.pds-readonly header p{margin:0;font-size:11px;font-style:italic;text-align:left;color:var(--muted)}
.pds-readonly h1{margin:4px 0 10px;font-size:18px;letter-spacing:.06em}
.pds-readonly h2{margin:14px 0 0;padding:4px 8px;background:var(--blue-lt);color:var(--slate);font-size:13px}
.pds-readonly table{width:100%;border-collapse:collapse;font-size:13px}
.pds-readonly th,.pds-readonly td{border:1px solid var(--border);padding:5px 8px;vertical-align:top;text-align:left}
.pds-readonly .pds-p-fields th{width:38%;font-weight:600;color:var(--muted);background:var(--bg)}
.pds-readonly .pds-p-table th{font-weight:600;color:var(--muted);background:var(--bg);font-size:12px}
.pds-readonly footer{margin-top:12px;font-size:12px;color:var(--muted)}
.pds-readonly .pds-p-sign{display:none}

/* Hidden parts of this page stay hidden whatever their button or layout style. */
#tab-pds [hidden]{display:none!important}

/* HR editing an employee's sheet; the summary shown from EDMS */
.pds-edit-banner{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 12px;padding:14px 16px;border-left:4px solid var(--blue)}
.pds-edit-banner[hidden]{display:none}
.pds-edit-banner p{margin:4px 0 0}
.pds-summary{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px 16px;margin:10px 0}
.pds-summary div{min-width:0}.pds-summary dt{font-size:11.5px;color:var(--muted);font-weight:650}.pds-summary dd{margin:2px 0 0;font-size:13.5px;color:var(--slate);overflow-wrap:anywhere}
