.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-branches input[data-pa-collect-search] { flex: 1; min-width: 200px; max-width: 420px; padding: 8px 10px; border: 1px solid #d5e3e8; border-radius: 8px; font-size: 0.88rem; background: #fff; }
.pa-collect-list { display: flex; flex-wrap: wrap; gap: 8px; max-height: 260px; overflow-y: auto; padding: 2px; }
.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; }
.pa-labtech-types { display: grid !important; grid-template-columns: 1fr; gap: 8px; }
.pa-labtech-types .pa-branch { display: flex !important; align-items: flex-start; border-radius: 10px; padding: 10px 12px; width: 100%; box-sizing: border-box; }
.pa-labtech-types .pa-branch span { display: grid; gap: 2px; }
.pa-labtech-types .pa-branch small { display: block; }
.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; }
.layout-labtech .lt-avatar { overflow: hidden; padding: 0; }
.layout-labtech .lt-avatar img.lt-avatar-img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; display: block; }
.po-split.is-open { grid-template-columns: minmax(0, 1fr) !important; }
.po-split.is-open::before { content: ""; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.48); z-index: 60; }
html.po-review-open, html.po-review-open body { overflow: hidden !important; }
.po-split.is-open .po-workspace {
  position: fixed;
  z-index: 70;
  top: 24px;
  right: 24px;
  bottom: 24px;
  left: max(24px, calc(var(--lt-sidebar-width, 260px) + 24px));
  margin: 0;
  padding: 14px 16px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  align-content: stretch;
  align-items: stretch;
}
.po-split.is-open .po-ws-tabs { grid-column: 1 / -1; grid-row: 1; position: static; padding-right: 84px; background: #fff; }
.po-split.is-open .po-preview-tools { grid-column: 1; grid-row: 2; margin: 0; }
.po-split.is-open .po-preview-frame,
.po-split.is-open .po-details,
.po-split.is-open .po-history {
  grid-column: 1;
  grid-row: 3;
  min-height: 0;
  height: auto !important;
  max-height: none !important;
  overflow: auto !important;
  overscroll-behavior: contain;
  background: #f8fafc;
  border: 1px solid #e5edf0;
  border-radius: 12px;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 transparent;
}
.po-split.is-open .po-details,
.po-split.is-open .po-history { grid-row: 2 / span 2; }
.po-split.is-open .po-preview-frame::-webkit-scrollbar,
.po-split.is-open .po-remarks::-webkit-scrollbar { width: 10px; }
.po-split.is-open .po-preview-frame::-webkit-scrollbar-thumb,
.po-split.is-open .po-remarks::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; border: 2px solid #fff; }
.po-split.is-open .po-preview-frame::-webkit-scrollbar-thumb:hover,
.po-split.is-open .po-remarks::-webkit-scrollbar-thumb:hover { background: #0f766e; }
.po-split.is-open .po-preview-frame iframe { min-height: 0 !important; overflow: hidden !important; display: block; border-radius: 10px; scrollbar-width: none; }
.po-split.is-open .po-remarks {
  grid-column: 2;
  grid-row: 2 / span 2;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0;
  border: 1px solid #e5edf0;
  border-radius: 12px;
  background: #fff;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 transparent;
}
.po-split.is-open .po-remarks textarea { min-height: 110px; }
.po-split.is-open .po-library-list { max-height: none; overflow: visible; }
.po-split.is-open .po-remarks .po-actions { position: sticky; bottom: 0; background: #fff; padding-top: 8px; }
.po-modal { z-index: 90; }
.po-pop-x {
  position: fixed;
  z-index: 75;
  top: 34px;
  right: 40px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #dbe4ea;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
@media (max-width: 900px) {
  .po-split.is-open .po-workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr) minmax(200px, 36%);
  }
  .po-split.is-open .po-remarks { grid-column: 1; grid-row: 4; }
  .po-split.is-open .po-details,
  .po-split.is-open .po-history { grid-row: 2 / span 2; }
}
@media (max-width: 768px) {
  .po-split.is-open .po-workspace { left: 10px; right: 10px; top: 10px; bottom: 10px; }
  .po-pop-x { top: 18px; right: 18px; }
}
.abp-edit { margin-top: 8px; border: 1px solid #99d5cc; background: #f0fdfa; color: #0f766e; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 0.75rem; font-weight: 800; cursor: pointer; }
.abp-editor { position: fixed; inset: 0; z-index: 80; background: rgba(15, 23, 42, 0.45); display: flex; justify-content: flex-end; }
.abp-card { width: min(420px, 100%); height: 100%; margin: 0; background: #fff; padding: 22px 18px; box-sizing: border-box; display: grid; align-content: start; gap: 10px; overflow: auto; }
.abp-card h3 { margin: 0; font-size: 1.05rem; color: #0f172a; }
.abp-note, .abp-status { margin: 0; color: #64748b; font-size: 0.8rem; }
.abp-card label { display: grid; gap: 4px; font-size: 0.75rem; font-weight: 700; color: #475569; }
.abp-card input, .abp-card select { height: 40px; border: 1px solid #d5e3e8; border-radius: 10px; padding: 0 10px; font: inherit; font-weight: 600; color: #0f172a; background: #fff; }
.abp-age { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.abp-err { margin: 0; min-height: 1em; color: #b91c1c; font-size: 0.8rem; }
.abp-actions { display: flex; justify-content: flex-end; gap: 8px; }
.abp-actions button { height: 40px; border-radius: 10px; padding: 0 14px; font: inherit; font-weight: 800; cursor: pointer; }
.abp-cancel { border: 1px solid #dbe4ea; background: #fff; color: #334155; }
.abp-save { border: 0; background: #0f766e; color: #fff; }
.abp-save:disabled { opacity: 0.6; cursor: wait; }
.pa-embed-tabs { display: none !important; }
.re2-numtext {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
}
.re2-numtext .re2-input.is-result {
  flex: 0 0 88px;
  max-width: 110px;
}
.re2-numtext .re2-input.is-wide {
  flex: 1 1 auto;
  min-width: 0;
}
@media (max-width: 760px) { .pa-grid { grid-template-columns: 1fr; } .pa-agreement { flex-direction: column; align-items: flex-start; } }
