﻿.pa-editor { display: grid; gap: 8px; margin-top: 6px; }
.pa-editor h4 { margin: 14px 0 0; font-size: 0.9rem; color: #0f172a; }
.pa-muted { margin: 0; color: #64748b; font-size: 0.8rem; font-weight: 500; }
.pa-err { margin: 0; color: #b91c1c; font-size: 0.84rem; min-height: 1em; }
.pa-ms { position: relative; }
.pa-ms-btn { width: 100%; min-height: 42px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; text-align: left; border: 1px solid #d5e3e8; border-radius: 10px; background: #fff; padding: 6px 34px 6px 10px; cursor: pointer; position: relative; font: inherit; }
.pa-caret { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #64748b; }
.pa-chip { background: #e6f4f1; color: #0f766e; border-radius: 999px; padding: 3px 10px; font-size: 0.78rem; font-weight: 700; }
.pa-menu { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14); padding: 6px; display: grid; gap: 2px; max-height: min(420px, 55vh); overflow: auto; }
.pa-menu label { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 8px; cursor: pointer; font-weight: 500; }
.pa-menu label:hover { background: #f1f5f9; }
.pa-menu label.off { opacity: 0.5; cursor: not-allowed; }
.pa-menu input { margin-top: 3px; width: auto !important; }
.pa-menu span { display: grid; }
.pa-menu small { color: #64748b; }
.pa-portal { border: 1px solid #dbe7ea; border-radius: 12px; padding: 12px; background: #fbfdfd; display: grid; gap: 8px; }
.pa-portal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pa-portal-head small { display: block; color: #64748b; font-size: 0.75rem; }
.pa-toggle { display: flex !important; align-items: center; gap: 6px; font-weight: 700; color: #334155; }
.pa-toggle input { width: auto !important; }
.pa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pa-grid label, .pa-sign label { display: grid; gap: 4px; font-size: 0.76rem; font-weight: 700; color: #475569; }
.pa-grid input, .pa-sign input[name="signer"], .pa-asset-bar input { width: 100%; box-sizing: border-box; border: 1px solid #d5e3e8; border-radius: 9px; padding: 8px 10px; font: inherit; font-weight: 500; }
.pa-row { display: flex; gap: 6px; align-items: center; }
.pa-row input { flex: 1; min-width: 0; }
.pa-link { border: 0; background: none; color: #0f766e; font-weight: 800; cursor: pointer; padding: 2px 4px; white-space: nowrap; font-size: 0.8rem; }
.pa-perms { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.pa-perms th { text-align: left; color: #475569; font-size: 0.74rem; padding: 6px; background: #f1f5f9; }
.pa-perms td { padding: 4px 6px; border-bottom: 1px solid #eef2f6; }
.pa-perms select { border: 1px solid #d5e3e8; border-radius: 8px; padding: 5px 8px; font: inherit; background: #fff; }
.pa-asset-bar { display: flex; gap: 10px; align-items: center; }
.pa-asset-list { max-height: 260px; overflow: auto; border: 1px solid #e2e8f0; border-radius: 12px; padding: 6px; display: grid; gap: 4px; }
.pa-asset { display: flex !important; gap: 10px; align-items: center; padding: 8px; border-radius: 9px; cursor: pointer; font-weight: 500; }
.pa-asset:hover { background: #f8fafc; }
.pa-asset.on { background: #ecfdf5; }
.pa-asset input { width: auto !important; }
.pa-asset span { display: grid; flex: 1; min-width: 0; }
.pa-asset small { color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-asset em { font-style: normal; font-size: 0.72rem; font-weight: 800; color: #0f766e; }
.pa-asset em.free { color: #64748b; }
.pa-agreements { display: grid; gap: 6px; margin-top: 4px; }
.pa-agreement { display: flex; justify-content: space-between; gap: 10px; align-items: center; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 10px; background: #fff; }
.pa-agreement.pending { border-color: #fcd34d; background: #fffbeb; }
.pa-agreement small { display: block; color: #64748b; font-size: 0.75rem; }
.pa-agreement-actions { display: flex; gap: 6px; align-items: center; flex: none; }
.pa-pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; }
.pa-pill.ok { background: #dcfce7; color: #166534; }
.pa-pill.warn { background: #fef3c7; color: #92400e; }
.pa-btn { border: 1px solid #d5e3e8; background: #fff; border-radius: 10px; padding: 9px 16px; font-weight: 800; cursor: pointer; font: inherit; font-weight: 800; }
.pa-btn.primary { background: #0f766e; border-color: #0f766e; color: #fff; }
.pa-btn.sm { padding: 6px 12px; font-size: 0.8rem; }
.pa-btn:disabled { opacity: 0.6; }
.pa-backdrop { position: fixed; inset: 0; z-index: 10000; background: rgba(15, 42, 61, 0.5); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pa-card { width: min(620px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 16px; padding: 18px 20px; box-shadow: 0 24px 64px rgba(15, 42, 61, 0.28); display: grid; gap: 10px; font-family: "DM Sans", "Segoe UI", sans-serif; color: #0f172a; }
.pa-card header { display: flex; justify-content: space-between; gap: 10px; }
.pa-card h3 { margin: 0; }
.pa-card header p { margin: 2px 0 0; color: #64748b; font-size: 0.82rem; }
.pa-x { border: 0; background: #f1f5f9; width: 32px; height: 32px; border-radius: 9px; font-size: 1.2rem; cursor: pointer; }
.pa-card footer { display: flex; justify-content: flex-end; gap: 10px; }
.pa-mine { margin: 14px 0; background: #fff; border: 1px solid #e6eef1; border-radius: 16px; padding: 14px; display: grid; gap: 8px; }
.pa-mine h3 { margin: 0; font-size: 1rem; }
.pa-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #ede9fe; color: #6d28d9; font-size: 0.66rem; font-weight: 800; vertical-align: middle; }
.pa-summary { margin: 2px 0 0; font-size: 0.8rem; color: #334155; background: #f1f5f9; border-radius: 8px; padding: 6px 10px; }
.pa-save-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.pa-save-status { font-size: 0.82rem; font-weight: 700; color: #64748b; }
.pa-save-status.dirty { color: #b45309; }
.pa-save-status.ok { color: #15803d; }
.pa-save-status.error { color: #b91c1c; }
.pa-denied { position: fixed; z-index: 10001; left: 50%; bottom: 24px; transform: translateX(-50%); background: #0f172a; color: #fff; padding: 10px 16px; border-radius: 10px; font: 600 0.88rem "DM Sans", "Segoe UI", sans-serif; box-shadow: 0 12px 30px rgba(15, 23, 42, 0.3); }
.pa-block { position: fixed; inset: 0; z-index: 10002; background: #f4f8f8; display: flex; align-items: center; justify-content: center; padding: 20px; font-family: "DM Sans", "Segoe UI", sans-serif; }
.pa-block-card { max-width: 440px; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 28px; text-align: center; box-shadow: 0 20px 50px rgba(15, 42, 61, 0.12); display: grid; gap: 12px; justify-items: center; }
.pa-block-card h2 { margin: 0; font-size: 1.2rem; color: #0f172a; }
.pa-block-card p { margin: 0; color: #475569; font-size: 0.9rem; }
.pa-block-card a { text-decoration: none; }
.aea-main.pa-hrp-on .aea-content { display: none; }
.aea-shell.pa-hrp-on .aea-nav .is-active:not([data-pa-hrp]) { background: transparent; color: rgba(244, 255, 252, 0.92); }
.pa-hrp { padding: 0; }
.pa-hrp-frame { display: block; width: 100%; height: calc(100vh - 72px); border: 0; background: #f4f8f8; }
/* Embedded self HR workspace (CRM / Ops / Care iframe) — hide People Management chrome */
html.pa-embed .hrms-sidebar,
html.pa-embed aside.hrms-sidebar,
html.pa-embed .hrms-topbar,
html.pa-embed .mobile-bottom-nav,
html.pa-embed .hrms-backdrop,
html.pa-embed .hrms-sidebar[hidden] { display: none !important; width: 0 !important; min-width: 0 !important; padding: 0 !important; border: 0 !important; }
html.pa-embed .hrms-main-wrap { margin-left: 0 !important; min-height: 0 !important; width: 100% !important; max-width: 100% !important; }
html.pa-embed .hrms-app { min-height: 0 !important; display: block !important; }
html.pa-embed .hrms-content { max-width: 1120px; margin: 0 auto; }
.pa-branches { border: 1px solid #dbe7ea; border-radius: 10px; background: #fff; padding: 10px 12px; display: grid; gap: 8px; }
.pa-branches-head { display: grid; gap: 2px; }
.pa-branches-head small { color: #475569; font-size: 0.78rem; }
.pa-branch-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pa-branch { display: inline-flex !important; align-items: center; gap: 6px; border: 1px solid #d5e3e8; border-radius: 999px; padding: 6px 12px; font-size: 0.84rem; font-weight: 600; cursor: pointer; background: #fff; }
.pa-branch.on { border-color: #0f766e; background: #e6f4f1; color: #0f766e; }
.pa-branch input { width: auto !important; margin: 0; }
.pa-branch small { color: #64748b; font-weight: 500; }
.mp2-page.pa-ws-on > :not(.pa-ws) { display: none !important; }
.pa-ws-frame { display: block; width: 100%; min-height: 480px; border: 0; border-radius: 14px; background: #f4f8f8; }
/* Legacy embed pill nav removed — shared Profile page tabs are the only self-HR chrome. */
.pa-embed-tabs { display: none !important; }
@media (max-width: 760px) { .pa-grid { grid-template-columns: 1fr; } .pa-agreement { flex-direction: column; align-items: flex-start; } }
