/* Native HR request workspace; inherits TaskBook's controls and theme tokens. */
.hr-workspace-nav { flex: 0 0 auto; min-height: 48px; padding: 0; margin-bottom: 12px; }
#hr-leave-workspace { min-width: 0; padding-bottom: 12px; }
#hr-leave-workspace[hidden] { display: none; }
#hr-role-templates-workspace { margin-top: 0; }
.panel[data-section="hr-management"] .hr-directory-summary { margin-top: 0; }
.hr-workspace-nav a { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 44px; padding: .7rem 1rem; color: var(--text-primary); border-bottom: 3px solid transparent; text-decoration: none; }
.hr-workspace-nav a[aria-current="page"] { border-color: var(--accent); font-weight: 700; }
.hr-request-heading { margin: 0 0 .75rem; }
.hr-request-filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; }
.hr-request-filters label { flex: 1 1 130px; min-width: 0; }
.hr-request-filters input, .hr-request-filters select { width: 100%; }
.hr-request-columns { display: grid; grid-template-columns: minmax(260px, 36%) minmax(0, 1fr); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.hr-request-queue, .hr-request-detail { max-height: 65vh; overflow: auto; padding: 1rem; min-width: 0; }
.hr-request-queue { border-right: 1px solid var(--border); }
.hr-request-detail { background: var(--surface-elevated); container-type: inline-size; }
.hr-request-row { display: flex; align-items: start; gap: .5rem; border-bottom: 1px solid var(--border); }
.hr-request-row.is-selected { background: var(--accent-soft); box-shadow: inset 3px 0 var(--accent); }
.hr-request-row input { margin-top: 1rem; flex: none; }
.hr-request-open { display: flex; flex-direction: column; align-items: start; gap: .25rem; width: 100%; padding: 1rem .5rem; background: transparent; border: 0; text-align: left; color: var(--text-primary); overflow-wrap: anywhere; cursor: pointer; }
.hr-request-open:hover { background: var(--surface-muted); }
.hr-request-pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-top: 1rem; }
.hr-request-field { padding: .75rem 0; border-bottom: 1px solid var(--border); }
.hr-request-field h4 { margin: 0 0 .5rem; }
.hr-request-values { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hr-request-values p { white-space: pre-wrap; overflow-wrap: anywhere; }
.hr-request-detail textarea, .hr-request-bulk textarea { box-sizing: border-box; width: 100%; min-height: 5rem; }
.hr-request-bulk { padding: 1rem; margin-bottom: 1rem; border: 1px solid var(--border); border-radius: 8px; }
.hr-request-bulk > button { margin: .5rem; }
.hr-request-warning { padding: .75rem; border-left: 3px solid var(--accent); background: var(--surface-muted); }
/* The bell is a compact inbox, with only its content scrolling. */
.hr-notifications { position: fixed; z-index: 1500; left: 1rem; bottom: 5rem; box-sizing: border-box; width: min(420px, calc(100vw - 2rem)); max-height: min(640px, 80dvh); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-elevated, white); color: var(--text-primary, #17212b); box-shadow: 0 12px 40px #0003; font-size: .875rem; line-height: 1.45; }
.hr-notice-header { display: flex; align-items: center; gap: 4px; padding: 8px 8px 4px 20px; flex: none; }
.hr-notifications h2 { flex: 1; margin: 0; font-size: 1.0625rem; line-height: 1.4; letter-spacing: normal; }
.hr-notifications h2:focus { outline: none; }
.hr-notifications .hr-notice-control { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--text-secondary); font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer; box-shadow: none; }
.hr-notifications .hr-notice-control:hover:not([aria-disabled="true"]) { background: var(--surface-muted); color: var(--text-primary); }
.hr-notifications .hr-notice-control[aria-disabled="true"] { opacity: .5; cursor: default; }
.hr-notifications :is(button, a):focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.hr-notifications .hr-notice-icon { width: 44px; flex: 0 0 44px; padding: 12px; }
.hr-notice-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.hr-notice-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px 8px; border-bottom: 1px solid var(--border); flex: none; }
.hr-notice-filters { display: flex; gap: 2px; }
.hr-notifications .hr-notice-filters .hr-notice-control[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); }
.hr-notifications .hr-notice-read-all { color: var(--accent); font-size: .8125rem; }
.hr-notice-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.hr-notice-message { margin: 0; padding: 16px 20px; color: var(--text-secondary); }
.hr-notice-body:has(.hr-notice-list:empty) .hr-notice-message { min-height: 136px; display: grid; align-content: center; text-align: center; padding: 24px 32px; box-sizing: border-box; }
.hr-notice-section-heading { margin: 0; padding: 12px 20px 4px; color: var(--text-secondary); font-size: .75rem; font-weight: 600; line-height: 1.4; letter-spacing: normal; }
.hr-notice-section { border-bottom: 1px solid var(--border); }
.hr-notice-row { display: flex; align-items: center; padding-right: 8px; border-bottom: 1px solid var(--border); }
.hr-notice-row:last-child { border-bottom: 0; }
.hr-notice-row.is-unread { box-shadow: inset 3px 0 var(--accent); }
.hr-notice-link { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; padding: 16px 20px; color: var(--text-primary); text-decoration: none; overflow-wrap: anywhere; }
.hr-notice-row:hover { background: var(--surface-muted); }
.hr-notice-operation, .hr-notice-meta { color: var(--text-secondary); font-size: .8125rem; }
.hr-notice-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; font-size: .75rem; }
.hr-notice-unread { color: var(--accent); font-weight: 600; }
.hr-notice-pager { display: flex; flex: none; align-items: center; justify-content: space-between; padding: 4px 8px; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: .8125rem; }
.hr-notifications [hidden] { display: none !important; }
.hr-notice-badge { margin-left: .5rem; font-weight: 700; }
#hr-requests-workspace[hidden], #hr-employees-workspace[hidden], .hr-notifications[hidden], .hr-request-bulk[hidden] { display: none; }
@container (max-width: 360px) { .hr-request-values { grid-template-columns: 1fr; gap: .25rem; } }
@media (max-width: 850px) {
  .hr-request-columns { display: block; }
  .hr-request-queue, .hr-request-detail { max-height: none; overflow: visible; }
  .hr-request-queue { border: 0; }
  #hr-requests-workspace:not(.has-detail) .hr-request-detail, #hr-requests-workspace.has-detail .hr-request-queue { display: none; }
  #hr-requests-workspace.has-detail .hr-request-filters { display: none; }
  .hr-request-filters label { flex-basis: calc(50% - .75rem); }
  .hr-notifications { bottom: 1rem; max-height: calc(100dvh - 2rem); }
}
