/* Shared presentation for the existing portal components. Geometry for the
   roster, map, sticky tables and native form controls stays with each screen. */
:root {
  --vega-bg: #edf1f5;
  --vega-surface: #f4f6f9;
  --vega-card: var(--vg-role-surface);
  --vega-dark: #172b45;
  --vega-panel-soft: #f8fafc;
  --vega-row-hover: #f3f7fe;
  --vega-text: #1c2b40;
  --vega-muted: #566477;
  --vega-placeholder: #59697d;
  --vega-border: #bcc6d2;
  --vega-border-light: #dce2e9;
  --vega-hairline: #e8ecf1;
  --vega-accent: var(--ds-background-brand-bold);
  --vega-on-accent: var(--ds-text-inverse);
  --vega-selected-surface: var(--ds-background-selected);
  --ink-inverse-muted: #a2acb9;
  --vega-accent-hover: var(--ds-background-brand-bold-hovered);
  --vega-link: var(--ds-text-information);
  --vega-coral: var(--vega-link);
  --vega-coral-deep: var(--ds-background-brand-bold-pressed);
  --accent-tint: #f4f8ff;
  --accent-soft: var(--ds-background-selected);
  --accent-ink: var(--ds-text-information);
  --focus-color: var(--ds-border-focused);
  --accent: var(--vega-link);
  --line: var(--vega-border-light);
  --success: #326742;
  --success-bg: #e5f4e9;
  --success-tint: #f5fbf6;
  --success-border: #b9ddc4;
  --warning: var(--ds-text-warning);
  --warning-bg: var(--ds-background-warning);
  --danger: var(--ds-text-danger);
  --danger-bg: var(--ds-background-danger);
  --disabled-ink: #536274;
  --disabled-bg: #e9edf2;
  --font: var(--vg-font-body);
  --radius-sm: var(--ds-radius-large);
  --radius-card: var(--ds-radius-xlarge);
  --shadow-card: 0 2px 5px #162a4107;
  --shadow-card-hover: 0 5px 18px #18325114;
  --motion-fast: var(--ds-duration-short);
  --motion-base: var(--ds-duration-medium);
  --motion-ease: cubic-bezier(.22,.75,.26,1);
  --sidebar-width: 230px;
  --topbar-height: 64px;
  --page-gutter: clamp(20px, 2.35vw, 40px);
  --panel-inline-padding: 20px;
}
body { font-family: var(--font); }
::selection { color: #123a70; background: var(--ds-background-selected-hovered); }
.atlas-icon { display: inline-block; width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.skip-link { background: var(--vega-dark); border-radius: var(--radius-sm); }
:is(.sidebar, .content-area, .topbar, .entry-frame) :focus-visible { outline-color: var(--focus-color); }

/* Navigation */
.sidebar { background: white; border-right: 1px solid var(--vega-border-light); color: var(--vega-text); box-shadow: none; }
.brand-panel { justify-content: center; gap: 14px; padding-inline: 16px; background: white; border: 0; border-bottom: 1px solid var(--vega-hairline); }
.brand-panel img { width: 104px; height: auto; }
/* Надпись «Вега» в фирменном SVG расположена чуть ниже центра знака. */
.brand-context { border-inline-start: 1px solid var(--vega-border-light); padding-inline-start: 14px; color: var(--vega-muted); font-size: 13px; line-height: 22px; transform: translateY(3px); }
.sidebar-nav { padding: 14px 12px; gap: 2px; scrollbar-color: #c3ccd7 transparent; }
.sidebar-nav .nav-section { margin: 0; padding: 16px 12px 6px; color: var(--vega-muted); font-size: .8125rem; line-height: 1.3; font-weight: 650; letter-spacing: .01em; text-transform: none; }
.sidebar-nav .nav-item { min-height: 35px; padding: 7px 11px; gap: 10px; color: #3b485a; font-size: .9375rem; line-height: 1.35; font-weight: 520; border: 1px solid transparent; border-radius: 8px; }
.sidebar-nav .nav-item svg { width: 18px; height: 18px; flex-basis: 18px; color: #657388; stroke-width: 1.65; }
.sidebar-nav .nav-item:hover { color: var(--vega-text); background: #f0f3f7; }
.sidebar-nav .nav-item[aria-current], .sidebar-nav .nav-item[aria-current]:hover { color: var(--ds-text-information); background: var(--accent-soft); border-color: transparent; animation: none; font-weight: 650; }
.sidebar-nav .nav-item[aria-current] svg { color: var(--ds-icon-brand); }
.sidebar-nav .nav-item[aria-current]::before { left: -1px; width: 3px; height: 16px; border-radius: 4px; background: var(--vega-accent); }
.nav-count { min-width: 20px; padding: 1px 6px; color: #45546a; background: #e9edf2; font-size: .75rem; line-height: 1.5; }
.nav-item[aria-current] .nav-count { color: var(--accent-ink); background: var(--ds-background-selected-hovered); }
.sidebar-close { color: var(--vega-text); background: var(--vega-surface); }
.sidebar > noscript, .topbar > noscript { display: none; }
.portal-header { display: block; position: sticky; top: 0; z-index: 30; min-height: 0; background: #fff; padding: 0; border: 0; }
.portal-header .topbar { position: static; min-height: var(--topbar-height); padding: 8px var(--page-gutter); gap: 18px; color: var(--vega-text); background: white; border: 0; border-bottom: 1px solid var(--vega-border-light); }
.portal-crumbs { min-width: 0; flex: 1; font-size: 13px; }
.portal-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin: 0; padding: 0; list-style: none; }
.portal-crumbs li { display: flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.portal-crumbs a { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; min-width: 0; color: var(--vega-muted); }
.portal-crumbs a:is(:hover, :focus-visible) { color: var(--vega-link); text-decoration: underline; }
.portal-crumbs a .atlas-icon { width: 16px; height: 16px; }
.portal-crumbs li > .atlas-icon { width: 12px; height: 12px; color: var(--vega-muted); }
.portal-crumbs [aria-current="page"] { font-weight: 550; }
.topbar-actions { margin-inline-start: auto; gap: 14px; }
.global-search { width: clamp(156px, 18vw, 260px); }
.global-search input { height: 36px; padding-right: 35px; border-color: var(--vega-border-light); background: #f6f8fa; font-size: 13px; }
.global-search kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 20px; height: 21px; display: grid; place-items: center; border: 1px solid var(--vega-border-light); border-radius: 4px; background: white; color: var(--vega-muted); font: 12px/1 var(--font); pointer-events: none; }
.global-search:focus-within kbd, .global-search:has(input:not(:placeholder-shown)) kbd { visibility: hidden; }
.global-search input:focus, .form-control:focus, .form-field :is(input, select, textarea):focus, .login-form input:focus { border-color: var(--vega-accent); background-color: white; box-shadow: 0 0 0 3px #1868db17; }
.bell { border-color: transparent; background: transparent; color: #4f5e72; }
.bell:hover, .mobile-menu:hover { color: var(--vega-link); background: var(--accent-soft); border-color: transparent; }
.bell-count { background: var(--ds-background-danger-bold); color: white; }
.user-menu { min-width: auto; padding-inline-start: 14px; gap: 9px; }
.user-avatar, .comment-avatar, .colleague-avatar, .account-avatar-large, .cabinet-avatar { background: #dce9fc; color: #214e91; }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; font-size: 15px; font-weight: 650; }
.account-menu-content, .action-menu-content { border-color: var(--vega-border-light); border-radius: 12px; box-shadow: 0 12px 36px #192c4926; }
.content-area { max-width: 1680px; padding: var(--ds-space-300) var(--page-gutter) 48px; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: var(--ds-space-300); }
.workspace-heading h1 { margin: 0; min-width: 0; font-size: clamp(28px, 2.5vw, 39px); line-height: 1.14; font-weight: 650; letter-spacing: -.045em; overflow-wrap: anywhere; }
.workspace-heading time { display: inline-flex; align-items: center; flex: none; gap: 7px; color: var(--vega-muted); font-size: 12px; }
.workspace-heading time .atlas-icon { width: 15px; height: 15px; }

/* Forms, registers and detail pages */
.panel, .kpi-card, .alert-card, .site-card, .form-section, .employee-filter-panel { border-color: var(--vega-border-light); border-radius: var(--radius-card); }
.panel, .site-card { box-shadow: var(--shadow-card); }
.panel:hover { border-color: var(--vega-border-light); box-shadow: var(--shadow-card); }
.panel-header { min-height: 58px; padding: 15px var(--panel-inline-padding); color: var(--vega-text); border-color: var(--vega-hairline); background: white; }
.panel-header h2, .section-heading h2, .form-section-header h2 { font-weight: 640; letter-spacing: -.025em; }
.panel-note, .cell-note, .list-meta { color: var(--vega-muted); }
.page-toolbar { border: 1px solid var(--vega-border-light); border-radius: var(--radius-card); padding: 16px; background: var(--vega-card); }
.page-toolbar > .action-group, .page-actions > .action-group { flex-wrap: wrap; max-width: 100%; min-width: 0; }
.toolbar-summary { margin: 0; }
.button { border-radius: var(--radius-sm); font-weight: 600; line-height: 1.25; }
.button.primary, .button.primary:hover { color: white; background: var(--vega-accent); border-color: var(--vega-accent); box-shadow: none; }
.button.primary:hover { background: var(--vega-accent-hover); border-color: var(--vega-accent-hover); }
.button.primary:active { background: var(--ds-background-brand-bold-pressed); }
.button.secondary { color: #334459; border-color: #cbd4df; background: white; }
.button.secondary:hover { color: var(--vega-text); border-color: #9eafc4; background: var(--vega-panel-soft); box-shadow: none; }
.button.danger, .button.secondary.danger-text { color: var(--danger); border-color: var(--danger-border); background: var(--danger-tint); }
.button:disabled, .button:disabled:hover { color: var(--disabled-ink); background: var(--disabled-bg); border-color: var(--vega-border-light); box-shadow: none; transform: none; }
.button .atlas-icon, .text-link .atlas-icon { width: 16px; height: 16px; }
.text-link, .back-link, .row-link:hover, .dark-link:hover { color: var(--vega-link); }
.form-control, .form-field input:not([type="checkbox"]):not([type="file"]), .form-field select, .form-field textarea, .login-form input, .content-area input[type="file"] { border-color: #a3afbe; border-radius: var(--radius-sm); color: var(--vega-text); }
.form-control[aria-invalid="true"], .form-field :is(input:not([type="checkbox"]):not([type="file"]), select, textarea)[aria-invalid="true"], .login-form input[aria-invalid="true"] { border-color: var(--danger); }
.form-navigation a:hover { color: var(--vega-link); border-color: var(--ds-background-selected-hovered); }
.data-table thead th { color: #516176; background: #f3f6fa; border-color: var(--vega-border-light); font-size: 11.5px; font-weight: 650; }
.data-table td { border-color: var(--vega-hairline); }
.data-table tbody tr:hover td { background-color: var(--vega-row-hover); }
.directory-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.directory-person > div { min-width: 0; }
.directory-initial { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #325c80; background: #e8f1f7; font-weight: 600; }
.register-ticket .ticket-reference { display: inline-block; margin-right: 3px; padding: 1px 5px; color: #4c617b; background: #edf1f6; border-radius: 4px; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; vertical-align: .08em; }
.search-page-form { max-width: 880px; align-items: stretch; padding: 12px; background: white; border: 1px solid var(--vega-border-light); border-radius: var(--radius-card); }
.search-entry { position: relative; display: flex; flex: 1; min-width: 0; }
.search-entry .atlas-icon { position: absolute; top: 50%; left: 12px; width: 17px; height: 17px; transform: translateY(-50%); pointer-events: none; color: var(--vega-muted); }
.search-entry .form-control { min-width: 0; width: 100%; padding-inline-start: 38px; }
.search-result-item .atlas-icon { width: 15px; height: 15px; margin-inline-start: auto; color: var(--vega-muted); }
.status, .priority { min-height: 22px; border-radius: 5px; padding: 2px 7px; line-height: 1.35; }
.status-new, .status-uploaded { color: var(--accent-ink); background: var(--accent-soft); border-color: #cadaf1; }
.status-published, .status-completed, .status-ok { color: var(--success); background: var(--success-bg); border-color: var(--success-border); }
.view-tabs { gap: 4px; padding-bottom: 0; border-bottom: 1px solid #ccd5e0; }
.view-tab { padding: 9px 14px; border: 0; border-bottom: 3px solid transparent; border-radius: 7px 7px 0 0; color: #47576b; background: transparent; font-size: 14px; font-weight: 550; line-height: 1.4; }
.view-tab:hover { border-color: transparent; color: var(--vega-text); background: #e9edf3; }
.view-tab.active, .view-tab[aria-current="page"] { color: var(--vega-selected-ink); background: var(--vega-selected-surface); border-bottom-color: var(--ds-border-selected); font-weight: 680; }
.view-tab:focus-visible { outline: 2px solid var(--ds-border-focused); outline-offset: -3px; }
.view-tab-count { background: #e3e8ef; line-height: 1.35; }
.view-tab.active .view-tab-count { color: var(--accent-ink); background: var(--ds-background-selected-hovered); }
.hiring-statuses .button.active, .chip.active, .cabinet-queues [aria-current], .queue-disclosure .queue-link.active { color: var(--accent-ink); border-color: #b7cff2; background: var(--accent-soft); }
.day-item:hover, .attention-item:hover, .statement-item:hover { background-color: var(--vega-row-hover); }
.day-section { color: var(--vega-link); }
.empty-panel-copy { display: flex; align-items: center; gap: 16px; min-width: 0; }
.empty-panel-icon, .site-pin, .home-panel-icon { flex: none; width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; background: #edf3fb; color: #3868a0; }
.empty-panel-copy h2 { margin: 0; }
.empty-panel-copy p { color: var(--vega-muted); }

/* Object directory and other specialist workspaces */
.site-view-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 20px; }
.site-view-bar .text-link, .site-card-link { display: inline-flex; align-items: center; gap: 7px; }
.view-switch { display: inline-flex; width: fit-content; gap: 3px; padding: 3px; margin: 0; border: 1px solid var(--vega-border-light); border-radius: 9px; background: #e9edf3; }
.view-switch .button.secondary { min-height: 32px; padding: 6px 11px; border: 1px solid transparent; border-radius: 6px; color: var(--vega-muted); background: transparent; transform: none; }
.view-switch .button[aria-pressed="true"] { color: var(--vega-link); background: white; border-color: #d1dae5; box-shadow: 0 1px 3px #142e4e0e; }
.site-group-title { display: flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 620; letter-spacing: -.03em; }
.site-group-title span { color: var(--vega-muted); background: #e6ebf1; border-radius: 20px; padding: 2px 8px; font-size: 12px; letter-spacing: normal; }
.site-card-grid { gap: 14px; }
.site-card { padding: 19px; gap: 16px; }
.site-card header { align-items: center; }
.site-card h2 { margin: 0; font-size: 21px; line-height: 1.2; letter-spacing: -.03em; }
.site-card:hover { border-color: #a4bfe3; box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.site-card-stats { gap: 12px; }
.site-card-stats dt { color: var(--vega-muted); font-size: 12px; line-height: 1.35; letter-spacing: 0; text-transform: none; }
.site-card-stats dd { font-size: 14px; line-height: 1.35; }
.site-card-link { gap: 8px; padding-top: 11px; border-top: 1px solid var(--vega-hairline); font-weight: 600; }
.site-card-link .atlas-icon { width: 15px; height: 15px; }
.sites-list-view .site-card-grid { padding: 0 14px; background: white; border: 1px solid var(--vega-border-light); border-radius: var(--radius-card); }
.sites-list-view .site-card { box-shadow: none; }
.sites-list-view .site-card:last-child { border-bottom: 0; }
.sites-list-view .site-pin { display: none; }
.sites-list-view .site-card-link { padding: 0; border: 0; }
.sites-list-view .site-card:hover { background: var(--vega-row-hover); }
.admin-hint, .picker-option[aria-selected="true"], .picker-option:hover { background: var(--accent-tint); border-color: #c5d9f3; }
.payment-summary .payment-balance { background: #183556; }
.payment-balance span, .payment-balance small { color: #d7e7fc; }
.person-topics { background: var(--accent-tint); }
.person-hero, .cabinet-identity, .employee-profile-header { background: linear-gradient(100deg, #edf4ff, white 72%); }
.employee-profile-header .profile-avatar, .person-portrait, .cabinet-avatar { color: #28527e; background: #dbe9fa; border-radius: 12px; }
.crm-col { background: #eef2f7; border-color: var(--vega-border-light); }
.crm-col.drag-over { background: var(--accent-soft); border-color: var(--vega-accent); }
.crm-card:hover { border-color: #b0c7e5; }
.org-viewport { background-color: var(--vega-panel-soft); background-image: radial-gradient(#cbd4e0 .8px, transparent .8px); }
.cabinet-identity, .people-search, .ticket-brief, .ticket-overview { border-top-color: var(--vega-accent); }
.site-overview-context, .form-section-header { border-color: var(--vega-hairline); }
.site-atlas { border-color: var(--vega-border-light); border-radius: var(--radius-card); }

/* The anonymous entry uses the unmarked still life from the brand archive. */
.login-body { display: grid; place-items: center; min-height: 100svh; padding: clamp(16px, 5vw, 72px); background: #edf1f6; }
.entry-frame { width: min(1060px, 100%); min-height: min(590px, 85vh); display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #d6dee8; border-radius: 22px; overflow: hidden; background: white; box-shadow: 0 20px 64px #20345113; }
.login-card { display: flex; flex-direction: column; justify-content: center; width: 100%; min-width: 0; padding: clamp(30px, 5.4vw, 76px); border: 0; border-radius: 0; box-shadow: none; background: white; animation: none; }
.login-card .login-mark { width: 47px; height: 47px; color: var(--ds-icon-brand); background: var(--accent-soft); border-radius: 13px; margin: 0 0 23px; }
.login-form { gap: 0; }
.login-form h1 { margin: 0 0 7px; font-size: clamp(32px, 3.3vw, 48px); font-weight: 650; letter-spacing: -.052em; line-height: 1.1; }
.login-form p.muted { margin: 0 0 24px; color: var(--vega-muted); }
.login-form > label { margin: 12px 0 6px; color: var(--vega-text); font-size: 13px; font-weight: 600; }
.login-form input { min-height: 46px; width: 100%; background: var(--vega-panel-soft); }
.login-form .button { justify-content: space-between; margin-top: 24px; border-radius: 8px; padding-inline: 17px; min-height: 46px; }
.entry-photo { min-height: 100%; background: #5d605f url("assets/hero.webp") 60% center / cover no-repeat; }

@keyframes atlas-panel-in {
  from { opacity: .3; translate: 0 5px; }
  to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .workspace-heading, .entry-frame, .action-menu[open] > .action-menu-content, dialog[open] { animation: atlas-panel-in var(--motion-base) var(--motion-ease); }
  .site-card-link .atlas-icon, .hero-action .atlas-icon { transition: transform var(--motion-fast) var(--motion-ease); }
  .site-card:hover .site-card-link .atlas-icon { transform: translateX(3px); }
}
@media (min-width: 901px) and (min-height: 920px) {
  .sidebar-nav .nav-item { min-height: 39px; }
}
@media (max-width: 1100px) {
  .topbar-actions { gap: 8px; }
}
@media (min-width: 901px) and (max-width: 1020px) {
  .employee-filter-grid.primary-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .employee-filter-grid.primary-filters .filter-search { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --page-gutter: 20px; --topbar-height: 58px; }
  .brand-panel { justify-content: flex-start; padding-inline: 23px 62px; }
  .sidebar-nav .nav-item { min-height: 44px; }
  .portal-crumbs { flex: 0 0 100%; order: 1; }
  .portal-header .topbar { flex-wrap: wrap; gap: 2px 10px; padding-block: 6px; }
  .mobile-menu { border-color: transparent; }
  /* При включённом JS содержимое noscript — текст. Показываем только распознанные ссылки. */
  .sidebar > noscript:has(> .sidebar-fallback-close),
  .topbar > noscript:has(> .sidebar-fallback-open) { display: contents; }
  .sidebar:has(.sidebar-fallback-close) button.sidebar-close,
  .topbar:has(.sidebar-fallback-open) button.mobile-menu { display: none; }
  .sidebar:has(.sidebar-fallback-close):not(:target) { visibility: hidden; }
  .sidebar:has(.sidebar-fallback-close):target { transform: translateX(0); }
}
@media (max-width: 680px) {
  :root { --page-gutter: 14px; --panel-inline-padding: 15px; }
  .content-area { padding-top: 16px; }
  .workspace-heading { margin-bottom: 16px; }
  .workspace-heading h1 { font-size: 28px; }
  .workspace-heading time { display: none; }
  .portal-header .topbar { padding: 5px var(--page-gutter); gap: 6px; }
  .topbar-actions { gap: 3px; }
  .account-menu > .user-menu { min-width: 44px; min-height: 44px; justify-content: center; padding: 0; }
  .account-menu .user-avatar { min-width: 34px; width: 34px; height: 34px; }
  .page-toolbar { padding: 12px; }
  .site-view-bar { margin-bottom: 16px; }
  .view-tabs { margin-inline: calc(-1 * var(--page-gutter)); padding-inline: var(--page-gutter); }
  .employee-engagement-tabs { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); margin-inline: 0; padding-inline: 0; }
  .employee-engagement-tabs .view-tab { min-width: 0; justify-content: center; padding-inline: 5px; white-space: normal; text-align: center; }
  .site-view-bar .text-link, .view-switch .button.secondary { min-height: 40px; }
  .site-card { padding: 16px; }
  .sites-list-view .site-card-grid { padding-inline: 10px; }
  .site-card-stats { gap: 10px 16px; }
  .empty-panel-copy { gap: 10px; }
  .login-body { padding: 16px; }
  .entry-frame { max-width: 440px; min-height: 0; grid-template-columns: 1fr; }
  .entry-photo { grid-row: 1; height: clamp(70px, 16svh, 130px); background-position: 55% 40%; }
  .login-card { padding: 24px clamp(20px, 6vw, 34px) 30px; }
  .login-card .login-mark { margin-bottom: 14px; width: 38px; height: 38px; }
  .login-form p.muted { margin-bottom: 12px; }
}
.employee-filter-panel { margin-bottom: 10px; padding: 12px 15px; }
.employee-filter-panel.filters-collapsible .filter-toggle { display: inline-flex; align-self: end; justify-content: center; gap: 7px; min-width: 100px; }
.employee-filter-panel.filters-collapsible:not(.filters-open) [data-filter-extra],
.employee-filter-panel.filters-collapsible:not(.filters-open) .secondary-filters,
.employee-filter-panel.filters-collapsible:not(.filters-open) .filter-actions { display: none; }
.employee-filter-panel.filters-collapsible .primary-filters { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.employee-filter-panel.filters-collapsible .primary-filters .filter-search { grid-column: 1; }
.employee-filter-panel.filters-open .primary-filters > [data-filter-extra] { grid-column: auto; }
.employee-filter-panel .form-control { width: 100%; min-width: 0; }
.employee-filter-panel .filter-actions:not(:has(:not([hidden]))) { display: none; }
.employee-register-tools, .employee-register-actions, .employee-applied { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.employee-register-tools { justify-content: space-between; gap: 6px 16px; }
.employee-register-tools .employee-engagement-tabs { margin: 0; }
.employee-tools-menu .action-menu-content { z-index: 55; }
.employee-table .doc-issue-link {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  max-width: 100%;
  color: var(--vega-text);
  font-weight: 600;
  text-decoration: none;
}
.employee-table .doc-issue-link:is(:hover, :focus-visible) { text-decoration: underline; }
.employee-table .doc-issue-link .status { white-space: normal; text-wrap: balance; }
.employee-form input[type="date"] { scroll-margin-block-start: 2rem; }
.employee-applied { margin-top: 8px; gap: 6px 10px; }
.employee-filter-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 3px 8px; border: 1px solid #b9cde7; border-radius: 5px; background: #edf4ff; color: #173e70; font-size: 12px; }
.employee-filter-chip:hover { background: #dfeaff; }
.employee-filter-chip span { font-size: 16px; line-height: 1; }
.employee-roster-info { margin-block: 12px; color: var(--vega-muted); font-size: 13px; }
.employee-roster-info summary { width: fit-content; cursor: pointer; }
.employee-roster-info p { margin: 4px 0; }
.rotation-filter-bar .range-date { flex: 0 1 auto; }
.rotation-filter-bar .range-date input { min-width: 0; width: 142px; }
@media (max-width: 680px) {
  .employee-filter-panel { padding: 10px 12px; }
  .employee-filter-panel .primary-filters { gap: 8px; }
  .employee-filter-panel.filters-open .primary-filters > [data-filter-extra] { grid-column: 1 / -1; }
  .employee-register-tools .employee-engagement-tabs { width: 100%; }
  .employee-register-actions { justify-content: space-between; width: 100%; }
  .employee-register-actions .button { min-height: 39px; }
  .employee-applied { gap: 4px 8px; }
  .employee-filter-chip, .employee-applied .text-link { min-height: 32px; }
  .rotation-filter-bar .range-date { width: 100%; }
  .rotation-filter-bar .range-date input { width: auto; flex: 1; }
}
@media (forced-colors: active) {
  .sidebar-nav .nav-item[aria-current], .view-switch .button[aria-pressed="true"] { outline: 1px solid Highlight; }
}
@media print {
  .portal-header, .workspace-heading time, .entry-photo { display: none; }
  .workspace-heading { margin-bottom: 10px; }
  .workspace-heading h1 { font-size: 20pt; }
  .content-area { max-width: none; padding: 0; }
  .page-toolbar, .panel { box-shadow: none; }
}
