/* Domaselo admin — Profile & Settings, Users & Access, Team (WP7, spec § 6). Prefix .pf- plus shared classes; § 1.4 tokens only. */

/* ---------- the anchored Profile sheet (400 px, right of the dock) ---------- */
.pf-sheet .sheet-body { padding: 4px 16px 18px; }
.pf-main, .pf-pay, .pf-appearance, .pf-help, .pf-avail, .pf-access, .pf-invite { display: flex; flex-direction: column; }

/* header (no card) */
.pf-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 6px 0 18px; }
.pf-av { box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 28%, transparent); margin-bottom: 8px; }
.pf-name-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; max-width: 100%; }
.pf-name { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: 0.35px; overflow-wrap: anywhere; }
.pf-line { font-size: 15px; color: var(--label-2); }
.pf-id { font-size: 13px; color: var(--label-2); }
.pf-handle { font-size: 15px; color: var(--label-2); overflow-wrap: anywhere; }
/* the photo button (addendum B.5): the avatar with a small "Edit" label */
.pf-av-btn { position: relative; display: inline-grid; place-items: center; border-radius: 18px; margin-bottom: 8px; }
.pf-av-btn .pf-av { margin-bottom: 0; }
.pf-av-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pf-av-edit {
  position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); height: 20px; padding: 0 8px; border-radius: 10px;
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; color: var(--label); background: var(--pop-fill); box-shadow: var(--glass-rim);
}
.pf-legal .pf-detail { max-width: 60%; }
.pf-edit { display: flex; flex-direction: column; }
.pf-at-row { display: flex; align-items: center; gap: 6px; }
.pf-at { font-size: 17px; color: var(--label-2); }
.pf-at-row .field-input { flex: 1; min-width: 0; }
.pf-ulegal, .pf-uhandle { font-size: 13px; color: var(--label-2); }
.pf-copy-link { flex: none; }
.pf-demo { margin-top: 6px; height: 22px; padding: 0 10px; border-radius: 11px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; color: var(--label-2); background: var(--fill); }
.pf-head-skel { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 60%; }
.pf-head-skel .skel-b { width: 100%; }

/* RolePill */
.pf-pill { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; flex: none; }
.pf-pill.admin { color: color-mix(in srgb, var(--accent) 70%, white); background: color-mix(in srgb, var(--accent) 15%, transparent); }
.pf-pill.owner { color: color-mix(in srgb, var(--purple) 55%, white); background: color-mix(in srgb, var(--purple) 20%, transparent); }
.pf-pill.employee { color: var(--label-2); background: var(--fill); }
:root[data-theme="light"] .pf-pill.admin { color: color-mix(in srgb, var(--accent) 82%, black); }
:root[data-theme="light"] .pf-pill.owner { color: color-mix(in srgb, var(--purple) 72%, black); background: color-mix(in srgb, var(--purple) 14%, transparent); }

/* inset-grouped rows */
.pf-card { background: var(--card); border-radius: 16px; overflow: hidden; }
.pf-card + .pf-card, .pf-gap { margin-top: 18px; }
.pf-card > * { position: relative; }
.pf-card > * + *::before { content: ""; position: absolute; left: var(--pf-inset, 58px); right: 0; top: 0; height: 0.5px; background: var(--sep); pointer-events: none; z-index: 1; }
.pf-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 14px; text-align: left; font-size: 17px; color: var(--label); transition: background-color 160ms ease; }
button.pf-row:hover { background: var(--fill-subtle); }
.pf-row:focus-visible { outline-offset: -3px; border-radius: 16px; }
.pf-row-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pf-row-t { font-size: 17px; }
.pf-row-s { font-size: 13px; color: var(--label-2); }
.pf-detail { flex: none; font-size: 17px; color: var(--label-2); white-space: nowrap; }
.pf-chev { width: 13px; height: 13px; color: var(--label-3); flex: none; transition: transform 420ms var(--spring); }
.pf-chev.open { transform: rotate(90deg); }
.pf-grp-t { padding: 18px 14px 7px; font-size: 13px; font-weight: 600; color: var(--label-2); text-transform: uppercase; letter-spacing: 0.3px; }
.pf-foot { margin: 7px 14px 0; font-size: 13px; line-height: 18px; color: var(--label-2); }
.pf-foot + .pf-card, .pf-foot + .pf-gap { margin-top: 18px; } /* a footnote never touches the next group */
.pf-sub { margin: 0 4px 14px; font-size: 15px; line-height: 20px; color: var(--label-2); text-align: center; }
.pf-signout { width: 100%; min-height: 52px; font-size: 17px; color: var(--red); text-align: center; transition: background-color 160ms ease; }
.pf-signout:hover { background: color-mix(in srgb, var(--red) 10%, transparent); }
.pf-footer { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--label-2); }
.pf-info { padding: 12px 14px 14px 58px; font-size: 15px; line-height: 20px; color: var(--label-2); }
.pf-info strong { color: var(--label); font-weight: 600; }
.pf-phone { color: var(--label); font-weight: 600; user-select: text; -webkit-user-select: text; font-variant-numeric: tabular-nums; }
.pf-tel { margin-left: 8px; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.pf-tel:hover { text-decoration: underline; }
.pf-empty { padding: 16px 14px; font-size: 15px; color: var(--label-2); }
.pf-sp { flex: 1; }

/* Pay & Tax and pay stubs */
.pf-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px; border-radius: 16px; background: var(--card); }
.pf-hero-l, .pf-hero-s { font-size: 15px; color: var(--label-2); }
.pf-amt { font-size: 34px; line-height: 40px; font-weight: 700; letter-spacing: 0.37px; font-variant-numeric: tabular-nums; color: var(--label); }
.pf-stub { --pf-inset: 14px; }
.pf-stub .pf-detail { font-size: 17px; }
.pf-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.pf-chip.paid { color: var(--green); background: color-mix(in srgb, var(--green) 18%, transparent); }
.pf-chip.live { color: var(--accent-text); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.pf-line-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 0 14px; font-size: 17px; --pf-inset: 14px; }
.pf-line-row span:last-child { color: var(--label-2); }
.pf-line-row.strong span { font-weight: 600; color: var(--label); }

/* Appearance */
.pf-theme { --pf-inset: 14px; }
.pf-check { width: 17px; height: 17px; color: var(--accent-text); flex: none; }

/* Availability */
.pf-avrow { padding: 10px 14px; --pf-inset: 14px; }
.pf-avhead { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.pf-avday { font-size: 17px; }
.pf-avlbl { font-size: 13px; color: var(--label-2); }
.pf-avtimes { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.pf-avsel { flex: 1; }
.pf-avsel .field-input { min-height: 34px; font-size: 14px; }
.pf-avto { font-size: 13px; color: var(--label-2); }
.pf-save { align-self: center; margin-top: 18px; }

/* ---------- wide modal sheets (Users & Access 720, Team 860) ---------- */
.pf-hbtn svg { width: 13px; height: 13px; }
.pf-wide .sheet-hdr-r { gap: 10px; }
.pf-wide .sheet-body { padding: 4px 20px 22px; }

/* Users & Access */
.pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.pf-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 18px; background: var(--card); }
.pf-stat-n { font-size: 24px; line-height: 29px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pf-stat-t { font-size: 13px; font-weight: 500; color: var(--label-2); }
.pf-stat.green .pf-stat-n { color: var(--green); }
.pf-stat.orange .pf-stat-n { color: var(--orange); }
.pf-stat.muted .pf-stat-n { color: var(--label-2); }
.pf-invite-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px; text-align: left; transition: background-color 160ms ease; }
.pf-invite-row:hover { filter: brightness(1.06); }
.pf-urow { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; --pf-inset: 64px; }
.pf-urow.revoked > .av, .pf-urow.revoked > .pf-utx { filter: grayscale(0.45); opacity: 0.45; }
.pf-utx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pf-uname { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 17px; font-weight: 600; }
.pf-ucontact { font-size: 15px; color: var(--label-2); }
.pf-ustat { font-size: 13px; font-weight: 500; color: var(--label-2); }
.pf-ustat.warn { color: var(--orange); }
.pf-you { font-size: 15px; color: var(--label-2); flex: none; }
.pf-restore { flex: none; height: 30px; padding: 0 13px; border-radius: 15px; font-size: 13px; font-weight: 600; color: var(--accent-text); box-shadow: inset 0 0 0 1.5px var(--accent); }
.pf-restore:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.pf-more { width: 32px; height: 32px; border-radius: 16px; }
.pf-more svg { width: 15px; height: 15px; }

/* Invite People */
.pf-invite { max-width: 480px; width: 100%; margin: 0 auto; }
.pf-form { display: flex; flex-direction: column; gap: 14px; }
.pf-form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf-hint { margin: 14px 2px 0; min-height: 18px; font-size: 13px; line-height: 18px; color: var(--label-2); }
.pf-hint.error { color: var(--red); }
.pf-send { align-self: center; margin-top: 18px; }

/* Team: the table needs ~890 px, so the sheet grows past its 860 px class where the window allows (it still
   stops 16 px from each edge); with the member panel open, Location and Availability give way */
.sheet:has(.pf-team) { width: 1080px; }
.pf-team.has-panel .pf-tbl th:nth-child(3), .pf-team.has-panel .pf-tbl th:nth-child(4),
.pf-team.has-panel .pf-trow td:nth-child(3), .pf-team.has-panel .pf-trow td:nth-child(4) { display: none; }
.pf-team.has-panel .pf-tbl { min-width: 0; }
.pf-team-page .sheet-body { overflow: hidden; display: flex; flex-direction: column; }
.pf-team { flex: 1; min-height: 0; display: flex; gap: 14px; align-items: stretch; }
.pf-tbl-wrap { flex: 1; min-width: 0; min-height: 0; overflow: auto; border-radius: 16px; background: var(--card); scrollbar-width: thin; scrollbar-color: var(--fill-strong) transparent; }
.pf-tnote { padding: 8px 14px; font-size: 13px; color: var(--label-2); }
.pf-tbl { width: 100%; min-width: 700px; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.pf-tbl th { position: sticky; top: 0; z-index: 2; text-align: left; padding: 10px 10px; font-size: 12px; font-weight: 600; color: var(--label-2); white-space: nowrap; background: var(--bar-solid); box-shadow: inset 0 -0.5px 0 var(--sep); }
.pf-tbl td { padding: 9px 10px; box-shadow: inset 0 -0.5px 0 var(--sep); vertical-align: middle; white-space: nowrap; max-width: 200px; }
.pf-tbl th:first-child, .pf-tbl td:first-child { padding-left: 14px; }
.pf-tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.pf-trow { cursor: pointer; transition: background-color 160ms ease; }
.pf-trow:hover { background: var(--fill-subtle); }
.pf-trow.sel { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.pf-trow:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pf-trow.invited td { color: var(--label-2); }
.pf-tperson { display: flex; align-items: center; gap: 9px; min-width: 0; max-width: 240px; font-weight: 600; color: var(--label); }
.pf-tc-av { color: var(--label-2); }
.pf-tc-more { width: 44px; text-align: right; }
.pf-tc-more .round.sm { width: 28px; height: 28px; }
.pf-tgroup td { padding: 14px 14px 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; color: var(--label-2); cursor: default; }
.pf-job { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 600; white-space: nowrap;
  color: var(--c); background: color-mix(in srgb, var(--c) 20%, transparent); }
:root[data-theme="light"] .pf-job { color: color-mix(in srgb, var(--c) 78%, black); background: color-mix(in srgb, var(--c) 16%, transparent); }
.pf-ot { display: inline-flex; align-items: center; height: 18px; margin-left: 6px; padding: 0 6px; border-radius: 9px; font-size: 11px; font-weight: 700; color: var(--orange); background: color-mix(in srgb, var(--orange) 18%, transparent); vertical-align: 1px; }
.pf-src { display: inline-flex; align-items: center; height: 18px; margin-left: 6px; padding: 0 6px; border-radius: 9px; font-size: 11px; font-weight: 600; color: var(--label-2); background: var(--fill); vertical-align: 1px; }

/* member panel (slides in at the right of the modal) */
.pf-panel { width: 340px; flex: none; min-height: 0; overflow: auto; border-radius: 16px; background: var(--card); padding: 14px; animation: pfPanelIn 460ms var(--spring) both; scrollbar-width: thin; scrollbar-color: var(--fill-strong) transparent; }
@keyframes pfPanelIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.pf-panel-hdr { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pf-panel-tx { flex: 1; min-width: 0; }
.pf-panel-name { font-size: 17px; font-weight: 600; }
.pf-panel-sub { font-size: 13px; color: var(--label-2); }
.pf-panel-body { display: flex; flex-direction: column; }
.pf-panel .pf-save { align-self: stretch; justify-content: center; margin-top: 16px; }
.pf-panel-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.pf-act { justify-content: center; height: 40px; border-radius: 20px; font-size: 14px; }
.pf-act svg { width: 15px; height: 15px; }
.pf-note { margin: 14px 0 0; font-size: 13px; color: var(--label-2); }
.pf-rate-note { font-size: 13px; color: var(--label-2); }
.pf-rate-row { display: flex; align-items: center; gap: 6px; }
.pf-rate-row .field-input { flex: 1; min-width: 0; text-align: right; font-variant-numeric: tabular-nums; }
.pf-dollar, .pf-per { font-size: 15px; color: var(--label-2); flex: none; }
.pf-rate-reset { align-self: flex-start; font-size: 13px; }
.pf-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; margin: 0; font-size: 14px; }
.pf-facts dt { color: var(--label-2); }
.pf-facts dd { margin: 0; overflow-wrap: anywhere; }

/* role rates */
.pf-rrow { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; --pf-inset: 14px; }
.pf-rrow .pf-rate-row { width: 160px; }
