/* Shared employee presentation. Native rules retain original specificity and print behavior. */
/* Desktop navigation and visual frame. Original records, forms and print papers keep their markup. */
:where(html.employee-shell-native) body.desktop-shell-active {
  --desktop-sidebar-width: 224px;
  --desktop-sidebar-surface: #fff;
  --desktop-topbar-surface: #fff;
  --desktop-sidebar-text: #10213d;
  --desktop-sidebar-muted: #64748b;
  --desktop-sidebar-line: #e2e8f0;
  --desktop-sidebar-hover: #f1f5f9;
  --desktop-accent: #dc2626;
  --desktop-active-surface: #fff1f2;
  --desktop-active-text: #b91c1c;
  --desktop-border: #d8e1ea;
  --desktop-muted: #697b8e;
  --desktop-canvas: #f4f7fb;
  --desktop-surface: #fff;
  --desktop-surface-muted: #f7f9fb;
  --desktop-text: #10213d;
  --desktop-content-primary: #10213d;
  --desktop-input-border: #cbd6e1;
  --desktop-button-border: #c2cfdd;
  background: var(--desktop-canvas);
  color: var(--desktop-text);
  direction: rtl;
  zoom: 1;
}

:where(html.employee-shell-native) body.desktop-shell-active.desktop-sidebar-open {
  overflow: hidden;
}

:where(html.employee-shell-native) .desktop-shell-active #app > .app-shell {
  min-height: 100vh;
  padding-right: var(--desktop-sidebar-width);
  background: var(--desktop-canvas);
  direction: rtl;
  --surface: var(--desktop-surface);
  --surface-solid: var(--desktop-surface);
  --surface-muted: var(--desktop-surface-muted);
  --text: var(--desktop-text);
  --text-main: var(--desktop-text);
  --text-soft: #516579;
  --text-muted: #697b8e;
  --primary: #1b56c4;
  --primary-dark: #103a87;
  --primary-soft: rgba(27, 86, 196, 0.06);
  --border: #d8e1ea;
  --border-strong: #b7c7d6;
  --radius-xl: 12px;
  --radius-lg: 10px;
  --radius-md: 9px;
  --radius-sm: 8px;
  --shadow-lg: 0 2px 5px rgba(6, 36, 65, 0.025);
  --shadow-md: 0 2px 5px rgba(6, 36, 65, 0.025);
}

:where(html.employee-shell-native) .desktop-shell-active #app > .app-shell > .topbar,
:where(html.employee-shell-native) .desktop-shell-active #app > .app-shell > .footer-dock {
  display: none;
}

:where(html.employee-shell-native) .desktop-shell-active .desktop-sidebar {
  position: fixed;
  z-index: 160;
  inset: 0 0 0 auto;
  width: var(--desktop-sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 0;
  color: var(--desktop-sidebar-text);
  background: var(--desktop-sidebar-surface);
  border-left: 1px solid var(--desktop-sidebar-line);
  direction: rtl;
}

:where(html.employee-shell-native) .desktop-shell-active .desktop-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  min-height: 60px;
  padding: 11px 16px;
  border-bottom: 2px solid var(--desktop-accent);
}

:where(html.employee-shell-native) .desktop-shell-active #app .desktop-sidebar-brand img {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}

:where(html.employee-shell-native) .desktop-shell-active .desktop-sidebar-brand strong {
  display: block;
  color: var(--desktop-sidebar-text);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 800;
}

:where(html.employee-shell-native) .desktop-shell-active .desktop-sidebar-brand small {
  display: block;
  color: var(--desktop-sidebar-muted);
  font-size: 11px;
  line-height: 1.65;
}

:where(html.employee-shell-native) .desktop-shell-active .desktop-sidebar-account {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 12px;
  margin: 0 12px;
  border-bottom: 1px solid var(--desktop-sidebar-line);
}

:where(html.employee-shell-native) .desktop-shell-active .desktop-sidebar-account strong,
:where(html.employee-shell-native) .desktop-shell-active .desktop-sidebar-user-name {
  display: block;
  color: var(--desktop-sidebar-text);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

:where(html.employee-shell-native) .desktop-shell-active .desktop-sidebar-role,
:where(html.employee-shell-native) .desktop-shell-active .desktop-sidebar-account small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--desktop-sidebar-muted);
}

:where(html.employee-shell-native) .desktop-shell-active .desktop-sidebar-account-icon {
  display: inline-flex;
  flex: 0 0 23px;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  color: var(--desktop-sidebar-muted);
}

:where(html.employee-shell-native) .desktop-shell-active .desktop-sidebar-account-icon svg {
  width: 22px;
  height: 22px;
}

:where(html.employee-shell-native) .desktop-shell-active #app .desktop-sidebar .desktop-sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b8c5d4 transparent;
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  order: 0;
  gap: 3px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

:where(html.employee-shell-native) .desktop-shell-active #app .desktop-sidebar .desktop-nav-item {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-inline-start-width: 3px;
  border-radius: 7px;
  color: var(--desktop-sidebar-text);
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-align: right;
  text-decoration: none;
  white-space: normal;
  margin-inline-start: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

:where(html.employee-shell-native) .desktop-shell-active #app .desktop-sidebar .desktop-nav-item:hover {
  color: var(--desktop-sidebar-text);
  background: var(--desktop-sidebar-hover);
  transform: none;
}

:where(html.employee-shell-native) .desktop-shell-active #app .desktop-sidebar .desktop-nav-item.is-active,
:where(html.employee-shell-native) .desktop-shell-active #app .desktop-sidebar .desktop-nav-item[aria-current="page"] {
  color: var(--desktop-active-text);
  border-inline-start-color: var(--desktop-accent);
  background: var(--desktop-active-surface);
  font-weight: 800;
}

:where(html.employee-shell-native) .desktop-shell-active #app .desktop-sidebar .desktop-nav-item:focus-visible {
  outline: 2px solid var(--desktop-accent);
  outline-offset: 2px;
  box-shadow: none;
}

:where(html.employee-shell-native) .desktop-shell-active .desktop-nav-item-icon,
:where(html.employee-shell-native) .desktop-shell-active .desktop-sidebar-account > svg {
  display: inline-flex;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

:where(html.employee-shell-native) .desktop-shell-active .desktop-nav-item-icon svg {
  width: 20px;
  height: 20px;
}

:where(html.employee-shell-native) .desktop-shell-active .desktop-nav-item-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

:where(html.employee-shell-native) .desktop-shell-active .desktop-sidebar-footer {
  flex: 0 0 auto;
  display: grid;
  gap: 8px;
  padding: 10px 11px 12px;
  border-top: 1px solid var(--desktop-sidebar-line);
}

:where(html.employee-shell-native) .desktop-shell-active #app .desktop-sidebar-footer .desktop-nav-item {
  min-height: 40px;
  color: var(--desktop-sidebar-text);
}

:where(html.employee-shell-native) .desktop-shell-active .desktop-sidebar-footer small,
:where(html.employee-shell-native) .desktop-shell-active .desktop-sidebar-hint {
  padding: 0 13px;
  color: var(--desktop-sidebar-muted);
  font-size: 10px;
}

:where(html.employee-shell-native) .desktop-shell-active .desktop-topbar {
  position: sticky;
  z-index: 80;
  top: 0;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 20px;
  color: var(--desktop-sidebar-text);
  background: var(--desktop-topbar-surface);
  border-bottom: 2px solid var(--desktop-accent);
}

:where(html.employee-shell-native) .desktop-shell-active .desktop-topbar-title {
  min-width: 0;
  margin: 0;
  color: var(--desktop-sidebar-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

:where(html.employee-shell-native) .desktop-shell-active .desktop-topbar-leading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

:where(html.employee-shell-native) .desktop-shell-active .desktop-topbar-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 13px;
  color: var(--desktop-sidebar-muted);
  font-size: 11px;
}

:where(html.employee-shell-native) .desktop-shell-active .desktop-topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

:where(html.employee-shell-native) .desktop-shell-active .desktop-topbar-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0f8b6d;
}

:where(html.employee-shell-native) .desktop-shell-active .desktop-menu-toggle,
:where(html.employee-shell-native) .desktop-shell-active .desktop-sidebar-close,
:where(html.employee-shell-native) .desktop-shell-active .desktop-sidebar-backdrop {
  display: none;
}

:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap {
  width: calc(100% - 36px);
  max-width: 1740px;
  margin: 0 auto;
  padding: 18px 0 36px;
  min-width: 0;
}

:where(html.employee-shell-native) .desktop-shell-active #app .page-shell.wide,
:where(html.employee-shell-native) .desktop-shell-active #app .page-shell.wide.is-job-console {
  width: 100%;
  max-width: none;
}

:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .card {
  border: 1px solid var(--desktop-border);
  border-radius: 11px;
  background: var(--desktop-surface);
  box-shadow: 0 2px 5px rgba(6, 36, 65, 0.025);
}

:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .card-inner {
  padding: 24px;
}

:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .hero-card::after {
  display: none;
}

:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .section-head h2,
:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .section-head-space h2 {
  color: var(--desktop-content-primary);
  font-size: 23px;
  line-height: 1.6;
}

:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .section-head h3 {
  color: var(--desktop-content-primary);
  font-size: 18px;
}

:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .section-head p,
:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .section-head-space p {
  color: var(--desktop-muted);
  line-height: 1.8;
}

:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .btn {
  border-radius: 8px;
  box-shadow: none;
  min-height: 44px;
  font-size: 13px;
}

:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .btn:hover {
  transform: none;
  box-shadow: none;
}

:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .btn-primary {
  color: #fff;
  border-color: #dc2626;
  background: #dc2626;
}

:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .btn-primary:hover {
  border-color: #b91c1c;
  background: #b91c1c;
  filter: none;
}

:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .btn-outline {
  border: 1px solid var(--desktop-button-border);
  color: var(--desktop-content-primary);
  background: var(--desktop-surface);
}

:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .btn-outline:hover {
  border-color: #859db5;
  color: var(--desktop-content-primary);
  background: var(--desktop-surface-muted);
}

:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .btn-secondary {
  background: var(--desktop-surface-muted);
  color: var(--desktop-content-primary);
}

:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .input,
:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .textarea,
:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .inline-field {
  border-radius: 8px;
  border-color: var(--desktop-input-border);
  background: var(--desktop-surface);
}

:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .input:focus,
:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .textarea:focus,
:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .inline-field:focus {
  border-color: #47738f;
  box-shadow: 0 0 0 3px rgba(6, 36, 65, 0.09);
  transform: none;
}

:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .input[readonly] {
  background: var(--desktop-surface-muted);
}

:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .pill {
  border-color: var(--desktop-border);
  background: var(--desktop-surface-muted);
  box-shadow: none;
}

:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .report-card {
  border-radius: 9px;
  box-shadow: none;
}

:where(html.employee-shell-native) .desktop-shell-active #app .flash-banner {
  top: auto;
  right: auto;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: max(24px, env(safe-area-inset-left));
  width: min(420px, calc(100vw - 48px));
}

:where(html.employee-shell-native) .desktop-shell-active #app .flash-banner .alert {
  border-radius: 11px;
  box-shadow: 0 5px 18px rgba(6, 36, 65, 0.12);
}

/* Compact the working screens with explicit sizes; keep document print sizes. */
@media screen {
  :where(html.employee-shell-native) .desktop-shell-active #app .page-wrap {
    font-size: 14px;
    line-height: 1.6;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .card-inner {
    padding: 16px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .section-head,
:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .section-head-space {
    gap: 12px;
    margin-bottom: 12px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .section-head > div:first-child {
    min-width: 0;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .section-head h2,
:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .section-head-space h2 {
    font-size: 20px;
    line-height: 1.45;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .section-head h3 {
    font-size: 16px;
    line-height: 1.5;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .section-head p,
:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .section-head-space p {
    font-size: 13px;
    line-height: 1.65;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .btn {
    min-height: 44px;
    padding: 7px 12px;
    font-size: 13px;
    line-height: 1.4;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .screen-nav .btn {
    min-height: 38px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .toolbar-actions {
    gap: 8px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .input,
:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .textarea {
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.6;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .input {
    min-height: 44px;
    min-width: 0;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .pill {
    min-height: 38px;
    padding: 7px 12px;
    font-size: 12px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .hero-card .search-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1.6fr);
    align-items: stretch;
    gap: 8px;
    padding: 10px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .hero-card .search-row > .input,
:where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .admin-report-search-control .input,
:where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .admin-report-category-multiselect .job-application-multiselect-trigger {
    min-height: 44px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .admin-report-category-multiselect .job-application-multiselect-trigger {
    padding: 7px 12px;
    gap: 2px;
    border-radius: 8px;
    line-height: 1.3;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .admin-report-category-multiselect .job-application-multiselect-trigger-label {
    font-size: 12px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .admin-report-category-multiselect .job-application-multiselect-trigger-value {
    font-size: 13px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .admin-report-search-control .btn {
    min-height: 44px;
    padding-inline: 14px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .admin-registration-period-filter {
    grid-template-columns: minmax(230px, 1.5fr) repeat(2, minmax(150px, 0.7fr)) auto;
    align-items: center;
    padding: 10px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .admin-registration-period-copy strong {
    font-size: 13px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .admin-registration-period-copy span,
:where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .admin-registration-date-field > span {
    font-size: 12px;
    line-height: 1.5;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .admin-registration-period-filter > .btn {
    min-height: 44px;
    align-self: end;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .report-grid:not(.branch-summary-grid) .report-card {
    min-height: 116px;
    padding: 12px 10px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .report-grid:not(.branch-summary-grid) .report-card-title {
    font-size: 13px;
    min-height: 28px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .report-grid:not(.branch-summary-grid) .report-value {
    font-size: 26px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .report-grid:not(.branch-summary-grid) .report-subtext {
    font-size: 12px;
  }
}

@media screen and (max-width: 1180px) {
  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .hero-card .search-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .admin-report-search-control {
    grid-column: 1 / -1;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .admin-registration-period-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .admin-registration-period-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1000px) {
  :where(html.employee-shell-native) .desktop-shell-active #app > .app-shell {
    padding-right: 0;
  }

  :where(html.employee-shell-native) .desktop-shell-active .desktop-sidebar {
    z-index: 220;
    width: min(290px, calc(100vw - 52px));
    transform: translateX(100%);
    visibility: hidden;
    /* Focus moves into the drawer in the same event that opens it. Keep
       visibility immediate so its close control is already focusable. */
    transition: transform 0.18s ease;
  }

  :where(html.employee-shell-native) .desktop-shell-active.desktop-sidebar-open .desktop-sidebar {
    transform: none;
    visibility: visible;
  }

  :where(html.employee-shell-native) .desktop-shell-active .desktop-menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    gap: 7px;
    border: 1px solid var(--desktop-input-border);
    border-radius: 6px;
    color: var(--desktop-sidebar-text);
    background: transparent;
  }

  :where(html.employee-shell-native) .desktop-shell-active .desktop-menu-toggle svg {
    width: 21px;
    height: 21px;
  }

  :where(html.employee-shell-native) .desktop-shell-active .desktop-sidebar-close {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: auto;
    padding: 0;
    color: var(--desktop-sidebar-text);
    background: transparent;
    border: 1px solid var(--desktop-input-border);
    border-radius: 5px;
    font-size: 20px;
    line-height: 1;
  }

  :where(html.employee-shell-native) .desktop-shell-active .desktop-menu-toggle:focus-visible,
:where(html.employee-shell-native) .desktop-shell-active .desktop-sidebar-close:focus-visible {
    outline: 2px solid var(--desktop-accent);
    outline-offset: 2px;
  }

  :where(html.employee-shell-native) .desktop-shell-active.desktop-sidebar-open .desktop-sidebar-backdrop {
    display: block;
    position: fixed;
    z-index: 210;
    inset: 0;
    padding: 0;
    border: 0;
    background: rgba(3, 27, 49, 0.45);
    cursor: default;
  }

  :where(html.employee-shell-native) .desktop-shell-active .desktop-topbar {
    min-height: 60px;
    gap: 12px;
    padding: 10px 20px;
  }

  :where(html.employee-shell-native) .desktop-shell-active .desktop-topbar-title {
    margin-left: auto;
    font-size: 14px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .page-wrap {
    width: calc(100% - 36px);
  }
}

html:where(.employee-shell-native)[data-theme="dark"] body.desktop-shell-active {
  --desktop-sidebar-surface: #18293b;
  --desktop-topbar-surface: #18293b;
  --desktop-sidebar-text: #e2eaf3;
  --desktop-sidebar-muted: #a2b4c7;
  --desktop-sidebar-line: #31455b;
  --desktop-sidebar-hover: #203449;
  --desktop-accent: #f87171;
  --desktop-active-surface: #40252c;
  --desktop-active-text: #fecaca;
  --desktop-canvas: #111d2b;
  --desktop-surface: #18293b;
  --desktop-surface-muted: #203449;
  --desktop-text: #e2eaf3;
  --desktop-content-primary: #e2eaf3;
  --desktop-muted: #a2b4c7;
  --desktop-border: #31455b;
  --desktop-input-border: #465c73;
  --desktop-button-border: #465c73;
}

html:where(.employee-shell-native)[data-theme="dark"] .desktop-shell-active #app > .app-shell {
  --text-soft: #b2c3d3;
  --text-muted: #a2b4c7;
  --border: #31455b;
  --border-strong: #465c73;
  --primary: #b8d0e8;
  --primary-dark: #dce9f6;
  --primary-soft: rgba(184, 208, 232, 0.08);
}

html:where(.employee-shell-native)[data-theme="dark"] .desktop-shell-active #app .desktop-sidebar .desktop-sidebar-nav {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* The original portal dark theme marks navigation colors important. Keep the
   school palette and active location legible in both themes. */
html:where(.employee-shell-native)[data-theme="dark"] .desktop-shell-active #app .desktop-sidebar .desktop-nav-item {
  color: var(--desktop-sidebar-text) !important;
  border-color: transparent !important;
  background: transparent !important;
}

html:where(.employee-shell-native)[data-theme="dark"] .desktop-shell-active #app .desktop-sidebar .desktop-nav-item:hover,
html:where(.employee-shell-native)[data-theme="dark"] .desktop-shell-active #app .desktop-sidebar .desktop-nav-item:focus-visible {
  color: var(--desktop-sidebar-text) !important;
  border-color: transparent !important;
  background: var(--desktop-sidebar-hover) !important;
}

html:where(.employee-shell-native)[data-theme="dark"] .desktop-shell-active #app .desktop-sidebar .desktop-nav-item.is-active,
html:where(.employee-shell-native)[data-theme="dark"] .desktop-shell-active #app .desktop-sidebar .desktop-nav-item[aria-current="page"] {
  color: var(--desktop-active-text) !important;
  border-color: transparent !important;
  border-inline-start-color: var(--desktop-accent) !important;
  background: var(--desktop-active-surface) !important;
}

@media (max-width: 640px) {
  :where(html.employee-shell-native) .desktop-shell-active .desktop-topbar {
    padding-right: 14px;
    padding-left: 14px;
  }

  :where(html.employee-shell-native) .desktop-shell-active .desktop-topbar-meta {
    gap: 8px;
    font-size: 10px;
  }

  :where(html.employee-shell-native) .desktop-shell-active .desktop-topbar-meta time {
    display: none;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .page-wrap {
    width: calc(100% - 24px);
    padding-top: 18px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .card-inner {
    padding: 18px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .section-head h2 {
    font-size: 20px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .flash-banner {
    left: max(16px, env(safe-area-inset-left));
    width: min(420px, calc(100vw - 32px));
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(html.employee-shell-native) .desktop-shell-active .desktop-sidebar,
:where(html.employee-shell-native) .desktop-shell-active .desktop-nav-item {
    transition: none;
  }
}

/* Committee polish belongs to the desktop working screens, not the papers. */
@media screen {
  html:where(.employee-shell-native):not([data-theme="dark"]) body.desktop-shell-active {
    --desktop-muted: #516579;
    --desktop-sidebar-muted: #516579;
  }

  html:where(.employee-shell-native):not([data-theme="dark"]) .desktop-shell-active .desktop-sidebar {
    --desktop-sidebar-surface: #26384b;
    --desktop-sidebar-text: #f1f5f9;
    --desktop-sidebar-muted: #bdcbd9;
    --desktop-sidebar-line: #4a6078;
    --desktop-sidebar-hover: #344b63;
    --desktop-accent: #fb7185;
    --desktop-active-surface: #445269;
    --desktop-active-text: #fff1f2;
  }

  html:where(.employee-shell-native):not([data-theme="dark"]) .desktop-shell-active #app > .app-shell {
    --text-soft: #516579;
    --text-muted: #516579;
  }

  :where(html.employee-shell-native) .desktop-shell-active .desktop-topbar {
    min-height: 52px;
    padding-block: 8px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .page-wrap {
    padding-top: 12px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .desktop-sidebar .desktop-sidebar-nav {
    gap: 6px;
    padding-block: 6px 10px;
  }

  :where(html.employee-shell-native) .desktop-shell-active .desktop-nav-group {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  :where(html.employee-shell-native) .desktop-shell-active .desktop-nav-group-title {
    margin: 6px 0 2px;
    padding: 0 13px;
    color: var(--desktop-sidebar-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .desktop-sidebar .desktop-nav-item {
    min-height: 42px;
    padding-block: 7px;
    font-size: 13px;
  }

  :where(html.employee-shell-native) .desktop-shell-active .desktop-sidebar-account {
    padding-block: 10px;
  }

  :where(html.employee-shell-native) .desktop-shell-active .desktop-sidebar-footer small {
    font-size: 11px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .muted,
:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .report-subtext,
:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .field-label,
:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .field > label,
:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .financial-report-filters label > span {
    color: var(--desktop-muted);
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .field-label,
:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .field > label {
    font-size: 13px;
    line-height: 1.5;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .input::placeholder,
:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .textarea::placeholder {
    color: var(--desktop-muted);
    opacity: 1;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .admin-table th,
:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .admin-table td,
:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .financial-report-screen .admin-table thead th {
    font-size: 13px;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .admin-table .btn:not(.btn-danger),
:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .btn[data-action^="print-"],
:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .btn[data-action^="download-"],
:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .btn[data-action^="export-"] {
    color: var(--desktop-content-primary);
    background: var(--desktop-surface);
    border: 1px solid var(--desktop-button-border);
    box-shadow: none;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .admin-table .btn:not(.btn-danger):hover,
:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .btn[data-action^="print-"]:hover,
:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .btn[data-action^="download-"]:hover,
:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .btn[data-action^="export-"]:hover {
    color: var(--desktop-content-primary);
    background: var(--desktop-surface-muted);
    border-color: #859db5;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .hero-card .section-head {
    margin-bottom: 8px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .hero-card .section-head p {
    margin-top: 4px;
    line-height: 1.5;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .desktop-dashboard-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin: 0 0 8px;
    width: 100%;
    max-width: none;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .desktop-dashboard-toolbar .btn,
:where(html.employee-shell-native) .desktop-shell-active #app .desktop-dashboard-toolbar .pill {
    min-height: 40px;
    margin: 0;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .hero-card .search-row {
    margin-top: 0;
    padding: 8px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .hero-card .card-inner > .muted {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .desktop-advanced-filters {
    margin-top: 8px;
    border: 1px solid var(--desktop-border);
    border-radius: 8px;
    background: var(--desktop-surface-muted);
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .desktop-advanced-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    min-height: 40px;
    padding: 7px 12px;
    color: var(--desktop-content-primary);
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .desktop-advanced-summary::-webkit-details-marker {
    display: none;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .desktop-advanced-summary::before {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border: solid currentColor;
    border-width: 0 0 1.5px 1.5px;
    transform: rotate(-45deg);
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .desktop-advanced-filters[open] > .desktop-advanced-summary::before {
    transform: rotate(135deg);
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .desktop-advanced-summary:focus-visible,
:where(html.employee-shell-native) .desktop-shell-active #app .desktop-row-more-summary:focus-visible {
    outline: 2px solid var(--desktop-accent);
    outline-offset: 2px;
    border-radius: 6px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .desktop-advanced-filters-title {
    font-weight: 700;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .desktop-filter-active-label {
    color: var(--desktop-muted);
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .desktop-advanced-filters.is-active .desktop-filter-active-label {
    padding: 2px 8px;
    border: 1px solid var(--desktop-button-border);
    border-radius: 6px;
    background: var(--desktop-surface);
    color: var(--desktop-content-primary);
    font-weight: 600;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .desktop-advanced-filters.is-invalid {
    border-color: var(--desktop-accent);
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .desktop-advanced-filters.is-invalid .desktop-filter-active-label {
    color: var(--desktop-active-text);
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .desktop-advanced-filters .admin-registration-period-filter {
    margin: 0;
    border: 0;
    border-top: 1px solid var(--desktop-border);
    border-radius: 0 0 8px 8px;
    background: var(--desktop-surface);
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .desktop-dashboard-overview {
    margin-top: 12px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .desktop-dashboard-summary-head {
    margin-bottom: 10px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .report-card {
    border-color: var(--desktop-border);
    background: var(--desktop-surface);
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .report-card::before {
    inset-block: 12px auto;
    inset-inline: auto 12px;
    width: 22px;
    height: 3px;
    border-radius: 2px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .report-value,
:where(html.employee-shell-native) .desktop-shell-active #app .page-wrap .report-card-value {
    color: var(--desktop-content-primary);
    font-variant-numeric: tabular-nums;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .report-grid:not(.branch-summary-grid) .report-card {
    display: grid;
    align-content: start;
    gap: 4px;
    padding: 14px 12px 12px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .report-grid:not(.branch-summary-grid) .report-card-cta {
    color: var(--desktop-content-primary);
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-financial-report .financial-report-filters label > span {
    font-size: 13px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-financial-report .financial-report-filters .input,
:where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-financial-report .financial-report-filters .select {
    min-height: 44px;
    font-size: 14px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .financial-report-metric {
    position: relative;
    background: var(--desktop-surface);
    border-color: var(--desktop-border);
    box-shadow: none;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .financial-report-metric > strong {
    color: var(--desktop-content-primary);
    font-size: clamp(18px, 1.5vw, 22px);
    line-height: 1.35;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .financial-report-metric > span,
:where(html.employee-shell-native) .desktop-shell-active #app .financial-report-metric > small {
    color: var(--desktop-muted);
    font-size: 12px;
    line-height: 1.5;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .financial-report-metric-primary::before,
:where(html.employee-shell-native) .desktop-shell-active #app .financial-report-metric-discount::before,
:where(html.employee-shell-native) .desktop-shell-active #app .financial-report-metric-addition::before {
    content: "";
    position: absolute;
    top: 0;
    right: 12px;
    width: 28px;
    height: 3px;
    border-radius: 0 0 2px 2px;
    background: var(--desktop-accent);
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .financial-report-metric-primary::before { background: #1b56c4; }
  :where(html.employee-shell-native) .desktop-shell-active #app .financial-report-metric-discount::before { background: #b45309; }
  :where(html.employee-shell-native) .desktop-shell-active #app .financial-report-metric-addition::before { background: #7c3aed; }

  :where(html.employee-shell-native) .desktop-shell-active #app .desktop-row-more {
    min-width: 0;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .desktop-row-more-summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 7px 10px;
    border: 1px solid var(--desktop-button-border);
    border-radius: 8px;
    background: var(--desktop-surface);
    color: var(--desktop-content-primary);
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .desktop-row-more-summary::-webkit-details-marker {
    display: none;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .desktop-row-more[open] > .desktop-row-more-summary {
    background: var(--desktop-surface-muted);
    margin-bottom: 6px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .desktop-row-more-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .desktop-notification-region {
    min-width: 0;
    margin: 0 0 12px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .desktop-notification-region:empty {
    display: none;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .flash-banner {
    position: static;
    inset: auto;
    width: auto;
    margin: 0 16px 12px;
    transform: none;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .desktop-notification-region .flash-banner {
    width: 100%;
    margin: 0;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .flash-banner .alert {
    padding: 9px 12px;
    border-radius: 8px;
    box-shadow: none;
    backdrop-filter: none;
    font-size: 13px;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .flash-banner-message {
    line-height: 1.5;
  }

  :where(html.employee-shell-native) .desktop-menu-present #app .login-head .brand-copy h1 {
    font-size: 22px;
    line-height: 1.5;
  }

  :where(html.employee-shell-native) .desktop-menu-present #app .login-head .brand-copy p {
    font-size: 13px;
    line-height: 1.6;
  }

  :where(html.employee-shell-native) .desktop-menu-present #app .login-card .input {
    min-height: 44px;
    font-size: 14px;
  }
}

@media screen and (min-width: 1001px) {
  :where(html.employee-shell-native) .desktop-shell-active .desktop-topbar {
    display: none;
  }

  :where(html.employee-shell-native) .desktop-shell-active.desktop-sidebar-collapsed #app > .app-shell {
    padding-right: 0;
  }

  :where(html.employee-shell-native) .desktop-shell-active.desktop-sidebar-collapsed .desktop-sidebar {
    visibility: hidden;
    transform: translateX(100%);
    pointer-events: none;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .report-grid:not(.report-grid-compact):not(.branch-summary-grid) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media screen and (max-width: 2100px) {
  :where(html.employee-shell-native) .desktop-shell-active #app .financial-report-breakdown-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media screen {
  /* The original hero isolates its descendants. Lift only the open category
     filter above later summary cards, below navigation and modal layers. */
  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .hero-card:has(.admin-report-category-multiselect-menu) {
    position: relative;
    z-index: 40;
    overflow: visible;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .app-screen-admin-dashboard .admin-report-category-multiselect-menu .job-application-multiselect-options {
    max-height: min(280px, 40dvh);
    overflow-y: auto;
    overscroll-behavior: contain;
    direction: rtl;
  }
}

@media screen and (max-width: 1500px) {
  :where(html.employee-shell-native) .desktop-shell-active #app .financial-report-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media screen and (max-width: 1000px) {
  :where(html.employee-shell-native) .desktop-shell-active #app .financial-report-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media print {
  :where(html.employee-shell-native) body.desktop-shell-active {
    background: #fff;
    zoom: 1;
  }

  :where(html.employee-shell-native) .desktop-shell-active .desktop-sidebar,
:where(html.employee-shell-native) .desktop-shell-active .desktop-topbar,
:where(html.employee-shell-native) .desktop-shell-active .desktop-sidebar-backdrop {
    display: none !important;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app > .app-shell {
    padding-right: 0;
    background: #fff;
  }

  :where(html.employee-shell-native) .desktop-shell-active #app .page-wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }
}

/* The system selector belongs only to the desktop application. */
@media screen {
  :where(html.employee-shell-native) .desktop-systems-hub,
:where(html.employee-shell-native) .desktop-systems-hub * {
    box-sizing: border-box;
  }

  :where(html.employee-shell-native) .desktop-systems-hub {
    --systems-text: #10213d;
    --systems-muted: #5f7187;
    --systems-line: #dce4ee;
    --systems-red: #dc2626;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--desktop-menu-height, 0px));
    min-height: calc(100dvh - var(--desktop-menu-height, 0px));
    width: 100%;
    background: #f4f7fb;
    color: var(--systems-text);
    font-size: 13px;
    line-height: 1.6;
    text-align: start;
    direction: rtl;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-systems-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    min-height: 72px;
    padding: 12px clamp(18px, 4vw, 48px);
    border-bottom: 1px solid var(--systems-line);
    background: #fff;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-systems-brand {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 0 12px;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-systems-brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-systems-brand > div {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-systems-brand strong {
    font-size: 15px;
    line-height: 1.5;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-systems-brand small {
    color: var(--systems-muted);
    font-size: 11px;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-systems-account {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-systems-account .btn {
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid var(--systems-line);
    border-radius: 8px;
    background: #fff;
    color: var(--systems-text);
    font: inherit;
    box-shadow: none;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-systems-account .btn:hover {
    border-color: #b7c7d8;
    background: #f7f9fc;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-systems-main {
    display: grid;
    flex: 1;
    place-items: center;
    width: 100%;
    min-width: 0;
    padding: 20px 24px;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-systems-panel {
    width: min(100%, 960px);
    min-width: 0;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-systems-intro {
    margin: 0 0 20px;
    text-align: center;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-systems-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--systems-red);
    font-size: 12px;
    font-weight: 700;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-systems-intro h1 {
    margin: 0;
    color: var(--systems-text);
    font-size: clamp(21px, 2vw, 25px);
    font-weight: 800;
    line-height: 1.5;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-systems-intro p {
    margin: 8px auto 0;
    max-width: 560px;
    color: var(--systems-muted);
    font-size: 13px;
    line-height: 1.7;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-systems-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-system-card {
    position: relative;
    display: grid;
    grid-column: span 2;
    grid-template-columns: minmax(0, 1fr) 20px;
    align-content: start;
    gap: 12px 8px;
    min-width: 0;
    min-height: 164px;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--systems-line);
    border-radius: 14px;
    background: #fff;
    color: var(--systems-text);
    font: inherit;
    text-align: start;
    box-shadow: 0 3px 12px rgba(16, 33, 61, 0.025);
    transition: border-color 140ms ease, box-shadow 140ms ease;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-system-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-system-card:nth-child(5) {
    grid-column: 4 / span 2;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-system-icon {
    display: inline-flex;
    grid-column: 1;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #e5ebf3;
    border-radius: 11px;
    background: #f5f8fc;
    color: #405a79;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-system-icon svg {
    width: 23px;
    height: 23px;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-system-copy {
    display: grid;
    grid-column: 1 / -1;
    gap: 4px;
    min-width: 0;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-system-copy strong {
    color: var(--systems-text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-system-copy small {
    color: var(--systems-muted);
    font-size: 12px;
    line-height: 1.65;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-system-status {
    grid-column: 1;
    justify-self: start;
    padding: 3px 9px;
    border-radius: 6px;
    background: #f0f4f8;
    color: var(--systems-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-system-arrow {
    grid-column: 2;
    grid-row: 3;
    align-self: center;
    width: 18px;
    height: 18px;
    color: #8a9aaf;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-system-card.is-available {
    border-color: #f2a5aa;
    box-shadow: 0 3px 14px rgba(185, 28, 28, 0.055);
    cursor: pointer;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-system-card.is-available .desktop-system-icon {
    border-color: #ffd6d9;
    background: #fff1f2;
    color: #b91c1c;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-system-card.is-available .desktop-system-status {
    background: #fff1f2;
    color: #b91c1c;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-system-card.is-available .desktop-system-arrow {
    color: var(--systems-red);
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-system-card.is-available:hover {
    border-color: var(--systems-red);
    box-shadow: 0 5px 18px rgba(185, 28, 28, 0.09);
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-system-card:disabled {
    opacity: 1;
    cursor: default;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-system-card:focus-visible,
:where(html.employee-shell-native) .desktop-systems-hub .desktop-systems-account .btn:focus-visible {
    outline: 3px solid var(--systems-red);
    outline-offset: 3px;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-systems-note {
    margin: 20px 0 0;
    color: var(--systems-muted);
    font-size: 12px;
    text-align: center;
    line-height: 1.7;
  }
}

@media screen and (max-width: 700px) {
  :where(html.employee-shell-native) .desktop-systems-hub .desktop-systems-main {
    padding: 24px 18px;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-systems-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-system-card,
:where(html.employee-shell-native) .desktop-systems-hub .desktop-system-card:nth-child(4) {
    grid-column: span 2;
    padding: 18px;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-system-card:nth-child(5) {
    grid-column: 2 / span 2;
  }
}

@media screen and (max-width: 460px) {
  :where(html.employee-shell-native) .desktop-systems-hub .desktop-systems-header {
    padding: 12px 18px;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-systems-account {
    justify-content: space-between;
    width: 100%;
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-systems-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  :where(html.employee-shell-native) .desktop-systems-hub .desktop-system-card,
:where(html.employee-shell-native) .desktop-systems-hub .desktop-system-card:nth-child(4),
:where(html.employee-shell-native) .desktop-systems-hub .desktop-system-card:nth-child(5) {
    grid-column: auto;
    min-height: 160px;
  }
}

@media screen and (max-height: 650px) {
  :where(html.employee-shell-native) .desktop-systems-hub .desktop-systems-main {
    align-items: start;
  }
}

@media screen and (prefers-reduced-motion: reduce) {
  :where(html.employee-shell-native) .desktop-systems-hub .desktop-system-card {
    transition: none;
  }
}


/* Website employee presentation is screen-only; public/login and printed documents retain their original styles. */
@media screen {
/* Desktop navigation and visual frame. Original records, forms and print papers keep their markup. */
:where(html.employee-shell-web) body.desktop-shell-active {
  --desktop-sidebar-width: 224px;
  --desktop-sidebar-surface: #fff;
  --desktop-topbar-surface: #fff;
  --desktop-sidebar-text: #10213d;
  --desktop-sidebar-muted: #64748b;
  --desktop-sidebar-line: #e2e8f0;
  --desktop-sidebar-hover: #f1f5f9;
  --desktop-accent: #dc2626;
  --desktop-active-surface: #fff1f2;
  --desktop-active-text: #b91c1c;
  --desktop-border: #d8e1ea;
  --desktop-muted: #697b8e;
  --desktop-canvas: #f4f7fb;
  --desktop-surface: #fff;
  --desktop-surface-muted: #f7f9fb;
  --desktop-text: #10213d;
  --desktop-content-primary: #10213d;
  --desktop-input-border: #cbd6e1;
  --desktop-button-border: #c2cfdd;
  background: var(--desktop-canvas);
  color: var(--desktop-text);
  direction: rtl;
  zoom: 1;
}

:where(html.employee-shell-web) body.desktop-shell-active.desktop-sidebar-open {
  overflow: hidden;
}

:where(html.employee-shell-web) .desktop-shell-active #app > .app-shell {
  min-height: 100vh;
  padding-right: var(--desktop-sidebar-width);
  background: var(--desktop-canvas);
  direction: rtl;
  --surface: var(--desktop-surface);
  --surface-solid: var(--desktop-surface);
  --surface-muted: var(--desktop-surface-muted);
  --text: var(--desktop-text);
  --text-main: var(--desktop-text);
  --text-soft: #516579;
  --text-muted: #697b8e;
  --primary: #1b56c4;
  --primary-dark: #103a87;
  --primary-soft: rgba(27, 86, 196, 0.06);
  --border: #d8e1ea;
  --border-strong: #b7c7d6;
  --radius-xl: 12px;
  --radius-lg: 10px;
  --radius-md: 9px;
  --radius-sm: 8px;
  --shadow-lg: 0 2px 5px rgba(6, 36, 65, 0.025);
  --shadow-md: 0 2px 5px rgba(6, 36, 65, 0.025);
}

:where(html.employee-shell-web) .desktop-shell-active #app > .app-shell > .topbar,
:where(html.employee-shell-web) .desktop-shell-active #app > .app-shell > .footer-dock {
  display: none;
}

:where(html.employee-shell-web) .desktop-shell-active .desktop-sidebar {
  position: fixed;
  z-index: 160;
  inset: 0 0 0 auto;
  width: var(--desktop-sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 0;
  color: var(--desktop-sidebar-text);
  background: var(--desktop-sidebar-surface);
  border-left: 1px solid var(--desktop-sidebar-line);
  direction: rtl;
}

:where(html.employee-shell-web) .desktop-shell-active .desktop-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  min-height: 60px;
  padding: 11px 16px;
  border-bottom: 2px solid var(--desktop-accent);
}

:where(html.employee-shell-web) .desktop-shell-active #app .desktop-sidebar-brand img {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}

:where(html.employee-shell-web) .desktop-shell-active .desktop-sidebar-brand strong {
  display: block;
  color: var(--desktop-sidebar-text);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 800;
}

:where(html.employee-shell-web) .desktop-shell-active .desktop-sidebar-brand small {
  display: block;
  color: var(--desktop-sidebar-muted);
  font-size: 11px;
  line-height: 1.65;
}

:where(html.employee-shell-web) .desktop-shell-active .desktop-sidebar-account {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 12px;
  margin: 0 12px;
  border-bottom: 1px solid var(--desktop-sidebar-line);
}

:where(html.employee-shell-web) .desktop-shell-active .desktop-sidebar-account strong,
:where(html.employee-shell-web) .desktop-shell-active .desktop-sidebar-user-name {
  display: block;
  color: var(--desktop-sidebar-text);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

:where(html.employee-shell-web) .desktop-shell-active .desktop-sidebar-role,
:where(html.employee-shell-web) .desktop-shell-active .desktop-sidebar-account small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--desktop-sidebar-muted);
}

:where(html.employee-shell-web) .desktop-shell-active .desktop-sidebar-account-icon {
  display: inline-flex;
  flex: 0 0 23px;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  color: var(--desktop-sidebar-muted);
}

:where(html.employee-shell-web) .desktop-shell-active .desktop-sidebar-account-icon svg {
  width: 22px;
  height: 22px;
}

:where(html.employee-shell-web) .desktop-shell-active #app .desktop-sidebar .desktop-sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b8c5d4 transparent;
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  order: 0;
  gap: 3px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

:where(html.employee-shell-web) .desktop-shell-active #app .desktop-sidebar .desktop-nav-item {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-inline-start-width: 3px;
  border-radius: 7px;
  color: var(--desktop-sidebar-text);
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-align: right;
  text-decoration: none;
  white-space: normal;
  margin-inline-start: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

:where(html.employee-shell-web) .desktop-shell-active #app .desktop-sidebar .desktop-nav-item:hover {
  color: var(--desktop-sidebar-text);
  background: var(--desktop-sidebar-hover);
  transform: none;
}

:where(html.employee-shell-web) .desktop-shell-active #app .desktop-sidebar .desktop-nav-item.is-active,
:where(html.employee-shell-web) .desktop-shell-active #app .desktop-sidebar .desktop-nav-item[aria-current="page"] {
  color: var(--desktop-active-text);
  border-inline-start-color: var(--desktop-accent);
  background: var(--desktop-active-surface);
  font-weight: 800;
}

:where(html.employee-shell-web) .desktop-shell-active #app .desktop-sidebar .desktop-nav-item:focus-visible {
  outline: 2px solid var(--desktop-accent);
  outline-offset: 2px;
  box-shadow: none;
}

:where(html.employee-shell-web) .desktop-shell-active .desktop-nav-item-icon,
:where(html.employee-shell-web) .desktop-shell-active .desktop-sidebar-account > svg {
  display: inline-flex;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

:where(html.employee-shell-web) .desktop-shell-active .desktop-nav-item-icon svg {
  width: 20px;
  height: 20px;
}

:where(html.employee-shell-web) .desktop-shell-active .desktop-nav-item-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

:where(html.employee-shell-web) .desktop-shell-active .desktop-sidebar-footer {
  flex: 0 0 auto;
  display: grid;
  gap: 8px;
  padding: 10px 11px 12px;
  border-top: 1px solid var(--desktop-sidebar-line);
}

:where(html.employee-shell-web) .desktop-shell-active #app .desktop-sidebar-footer .desktop-nav-item {
  min-height: 40px;
  color: var(--desktop-sidebar-text);
}

:where(html.employee-shell-web) .desktop-shell-active .desktop-sidebar-footer small,
:where(html.employee-shell-web) .desktop-shell-active .desktop-sidebar-hint {
  padding: 0 13px;
  color: var(--desktop-sidebar-muted);
  font-size: 10px;
}

:where(html.employee-shell-web) .desktop-shell-active .desktop-topbar {
  position: sticky;
  z-index: 80;
  top: 0;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 20px;
  color: var(--desktop-sidebar-text);
  background: var(--desktop-topbar-surface);
  border-bottom: 2px solid var(--desktop-accent);
}

:where(html.employee-shell-web) .desktop-shell-active .desktop-topbar-title {
  min-width: 0;
  margin: 0;
  color: var(--desktop-sidebar-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

:where(html.employee-shell-web) .desktop-shell-active .desktop-topbar-leading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

:where(html.employee-shell-web) .desktop-shell-active .desktop-topbar-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 13px;
  color: var(--desktop-sidebar-muted);
  font-size: 11px;
}

:where(html.employee-shell-web) .desktop-shell-active .desktop-topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

:where(html.employee-shell-web) .desktop-shell-active .desktop-topbar-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0f8b6d;
}

:where(html.employee-shell-web) .desktop-shell-active .desktop-menu-toggle,
:where(html.employee-shell-web) .desktop-shell-active .desktop-sidebar-close,
:where(html.employee-shell-web) .desktop-shell-active .desktop-sidebar-backdrop {
  display: none;
}

:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap {
  width: calc(100% - 36px);
  max-width: 1740px;
  margin: 0 auto;
  padding: 18px 0 36px;
  min-width: 0;
}

:where(html.employee-shell-web) .desktop-shell-active #app .page-shell.wide,
:where(html.employee-shell-web) .desktop-shell-active #app .page-shell.wide.is-job-console {
  width: 100%;
  max-width: none;
}

:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .card {
  border: 1px solid var(--desktop-border);
  border-radius: 11px;
  background: var(--desktop-surface);
  box-shadow: 0 2px 5px rgba(6, 36, 65, 0.025);
}

:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .card-inner {
  padding: 24px;
}

:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .hero-card::after {
  display: none;
}

:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .section-head h2,
:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .section-head-space h2 {
  color: var(--desktop-content-primary);
  font-size: 23px;
  line-height: 1.6;
}

:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .section-head h3 {
  color: var(--desktop-content-primary);
  font-size: 18px;
}

:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .section-head p,
:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .section-head-space p {
  color: var(--desktop-muted);
  line-height: 1.8;
}

:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .btn {
  border-radius: 8px;
  box-shadow: none;
  min-height: 44px;
  font-size: 13px;
}

:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .btn:hover {
  transform: none;
  box-shadow: none;
}

:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .btn-primary {
  color: #fff;
  border-color: #dc2626;
  background: #dc2626;
}

:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .btn-primary:hover {
  border-color: #b91c1c;
  background: #b91c1c;
  filter: none;
}

:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .btn-outline {
  border: 1px solid var(--desktop-button-border);
  color: var(--desktop-content-primary);
  background: var(--desktop-surface);
}

:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .btn-outline:hover {
  border-color: #859db5;
  color: var(--desktop-content-primary);
  background: var(--desktop-surface-muted);
}

:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .btn-secondary {
  background: var(--desktop-surface-muted);
  color: var(--desktop-content-primary);
}

:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .input,
:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .textarea,
:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .inline-field {
  border-radius: 8px;
  border-color: var(--desktop-input-border);
  background: var(--desktop-surface);
}

:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .input:focus,
:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .textarea:focus,
:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .inline-field:focus {
  border-color: #47738f;
  box-shadow: 0 0 0 3px rgba(6, 36, 65, 0.09);
  transform: none;
}

:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .input[readonly] {
  background: var(--desktop-surface-muted);
}

:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .pill {
  border-color: var(--desktop-border);
  background: var(--desktop-surface-muted);
  box-shadow: none;
}

:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .report-card {
  border-radius: 9px;
  box-shadow: none;
}

:where(html.employee-shell-web) .desktop-shell-active #app .flash-banner {
  top: auto;
  right: auto;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: max(24px, env(safe-area-inset-left));
  width: min(420px, calc(100vw - 48px));
}

:where(html.employee-shell-web) .desktop-shell-active #app .flash-banner .alert {
  border-radius: 11px;
  box-shadow: 0 5px 18px rgba(6, 36, 65, 0.12);
}

/* Compact the working screens with explicit sizes; keep document print sizes. */
@media screen {
  :where(html.employee-shell-web) .desktop-shell-active #app .page-wrap {
    font-size: 14px;
    line-height: 1.6;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .card-inner {
    padding: 16px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .section-head,
:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .section-head-space {
    gap: 12px;
    margin-bottom: 12px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .section-head > div:first-child {
    min-width: 0;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .section-head h2,
:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .section-head-space h2 {
    font-size: 20px;
    line-height: 1.45;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .section-head h3 {
    font-size: 16px;
    line-height: 1.5;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .section-head p,
:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .section-head-space p {
    font-size: 13px;
    line-height: 1.65;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .btn {
    min-height: 44px;
    padding: 7px 12px;
    font-size: 13px;
    line-height: 1.4;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .screen-nav .btn {
    min-height: 38px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .toolbar-actions {
    gap: 8px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .input,
:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .textarea {
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.6;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .input {
    min-height: 44px;
    min-width: 0;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .pill {
    min-height: 38px;
    padding: 7px 12px;
    font-size: 12px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .hero-card .search-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1.6fr);
    align-items: stretch;
    gap: 8px;
    padding: 10px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .hero-card .search-row > .input,
:where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .admin-report-search-control .input,
:where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .admin-report-category-multiselect .job-application-multiselect-trigger {
    min-height: 44px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .admin-report-category-multiselect .job-application-multiselect-trigger {
    padding: 7px 12px;
    gap: 2px;
    border-radius: 8px;
    line-height: 1.3;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .admin-report-category-multiselect .job-application-multiselect-trigger-label {
    font-size: 12px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .admin-report-category-multiselect .job-application-multiselect-trigger-value {
    font-size: 13px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .admin-report-search-control .btn {
    min-height: 44px;
    padding-inline: 14px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .admin-registration-period-filter {
    grid-template-columns: minmax(230px, 1.5fr) repeat(2, minmax(150px, 0.7fr)) auto;
    align-items: center;
    padding: 10px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .admin-registration-period-copy strong {
    font-size: 13px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .admin-registration-period-copy span,
:where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .admin-registration-date-field > span {
    font-size: 12px;
    line-height: 1.5;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .admin-registration-period-filter > .btn {
    min-height: 44px;
    align-self: end;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .report-grid:not(.branch-summary-grid) .report-card {
    min-height: 116px;
    padding: 12px 10px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .report-grid:not(.branch-summary-grid) .report-card-title {
    font-size: 13px;
    min-height: 28px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .report-grid:not(.branch-summary-grid) .report-value {
    font-size: 26px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .report-grid:not(.branch-summary-grid) .report-subtext {
    font-size: 12px;
  }
}

@media screen and (max-width: 1180px) {
  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .hero-card .search-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .admin-report-search-control {
    grid-column: 1 / -1;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .admin-registration-period-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .admin-registration-period-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1000px) {
  :where(html.employee-shell-web) .desktop-shell-active #app > .app-shell {
    padding-right: 0;
  }

  :where(html.employee-shell-web) .desktop-shell-active .desktop-sidebar {
    z-index: 220;
    width: min(290px, calc(100vw - 52px));
    transform: translateX(100%);
    visibility: hidden;
    /* Focus moves into the drawer in the same event that opens it. Keep
       visibility immediate so its close control is already focusable. */
    transition: transform 0.18s ease;
  }

  :where(html.employee-shell-web) .desktop-shell-active.desktop-sidebar-open .desktop-sidebar {
    transform: none;
    visibility: visible;
  }

  :where(html.employee-shell-web) .desktop-shell-active .desktop-menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    gap: 7px;
    border: 1px solid var(--desktop-input-border);
    border-radius: 6px;
    color: var(--desktop-sidebar-text);
    background: transparent;
  }

  :where(html.employee-shell-web) .desktop-shell-active .desktop-menu-toggle svg {
    width: 21px;
    height: 21px;
  }

  :where(html.employee-shell-web) .desktop-shell-active .desktop-sidebar-close {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: auto;
    padding: 0;
    color: var(--desktop-sidebar-text);
    background: transparent;
    border: 1px solid var(--desktop-input-border);
    border-radius: 5px;
    font-size: 20px;
    line-height: 1;
  }

  :where(html.employee-shell-web) .desktop-shell-active .desktop-menu-toggle:focus-visible,
:where(html.employee-shell-web) .desktop-shell-active .desktop-sidebar-close:focus-visible {
    outline: 2px solid var(--desktop-accent);
    outline-offset: 2px;
  }

  :where(html.employee-shell-web) .desktop-shell-active.desktop-sidebar-open .desktop-sidebar-backdrop {
    display: block;
    position: fixed;
    z-index: 210;
    inset: 0;
    padding: 0;
    border: 0;
    background: rgba(3, 27, 49, 0.45);
    cursor: default;
  }

  :where(html.employee-shell-web) .desktop-shell-active .desktop-topbar {
    min-height: 60px;
    gap: 12px;
    padding: 10px 20px;
  }

  :where(html.employee-shell-web) .desktop-shell-active .desktop-topbar-title {
    margin-left: auto;
    font-size: 14px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .page-wrap {
    width: calc(100% - 36px);
  }
}

html:where(.employee-shell-web)[data-theme="dark"] body.desktop-shell-active {
  --desktop-sidebar-surface: #18293b;
  --desktop-topbar-surface: #18293b;
  --desktop-sidebar-text: #e2eaf3;
  --desktop-sidebar-muted: #a2b4c7;
  --desktop-sidebar-line: #31455b;
  --desktop-sidebar-hover: #203449;
  --desktop-accent: #f87171;
  --desktop-active-surface: #40252c;
  --desktop-active-text: #fecaca;
  --desktop-canvas: #111d2b;
  --desktop-surface: #18293b;
  --desktop-surface-muted: #203449;
  --desktop-text: #e2eaf3;
  --desktop-content-primary: #e2eaf3;
  --desktop-muted: #a2b4c7;
  --desktop-border: #31455b;
  --desktop-input-border: #465c73;
  --desktop-button-border: #465c73;
}

html:where(.employee-shell-web)[data-theme="dark"] .desktop-shell-active #app > .app-shell {
  --text-soft: #b2c3d3;
  --text-muted: #a2b4c7;
  --border: #31455b;
  --border-strong: #465c73;
  --primary: #b8d0e8;
  --primary-dark: #dce9f6;
  --primary-soft: rgba(184, 208, 232, 0.08);
}

html:where(.employee-shell-web)[data-theme="dark"] .desktop-shell-active #app .desktop-sidebar .desktop-sidebar-nav {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* The original portal dark theme marks navigation colors important. Keep the
   school palette and active location legible in both themes. */
html:where(.employee-shell-web)[data-theme="dark"] .desktop-shell-active #app .desktop-sidebar .desktop-nav-item {
  color: var(--desktop-sidebar-text) !important;
  border-color: transparent !important;
  background: transparent !important;
}

html:where(.employee-shell-web)[data-theme="dark"] .desktop-shell-active #app .desktop-sidebar .desktop-nav-item:hover,
html:where(.employee-shell-web)[data-theme="dark"] .desktop-shell-active #app .desktop-sidebar .desktop-nav-item:focus-visible {
  color: var(--desktop-sidebar-text) !important;
  border-color: transparent !important;
  background: var(--desktop-sidebar-hover) !important;
}

html:where(.employee-shell-web)[data-theme="dark"] .desktop-shell-active #app .desktop-sidebar .desktop-nav-item.is-active,
html:where(.employee-shell-web)[data-theme="dark"] .desktop-shell-active #app .desktop-sidebar .desktop-nav-item[aria-current="page"] {
  color: var(--desktop-active-text) !important;
  border-color: transparent !important;
  border-inline-start-color: var(--desktop-accent) !important;
  background: var(--desktop-active-surface) !important;
}

@media (max-width: 640px) {
  :where(html.employee-shell-web) .desktop-shell-active .desktop-topbar {
    padding-right: 14px;
    padding-left: 14px;
  }

  :where(html.employee-shell-web) .desktop-shell-active .desktop-topbar-meta {
    gap: 8px;
    font-size: 10px;
  }

  :where(html.employee-shell-web) .desktop-shell-active .desktop-topbar-meta time {
    display: none;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .page-wrap {
    width: calc(100% - 24px);
    padding-top: 18px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .card-inner {
    padding: 18px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .section-head h2 {
    font-size: 20px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .flash-banner {
    left: max(16px, env(safe-area-inset-left));
    width: min(420px, calc(100vw - 32px));
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(html.employee-shell-web) .desktop-shell-active .desktop-sidebar,
:where(html.employee-shell-web) .desktop-shell-active .desktop-nav-item {
    transition: none;
  }
}

/* Committee polish belongs to the desktop working screens, not the papers. */
@media screen {
  html:where(.employee-shell-web):not([data-theme="dark"]) body.desktop-shell-active {
    --desktop-muted: #516579;
    --desktop-sidebar-muted: #516579;
  }

  html:where(.employee-shell-web):not([data-theme="dark"]) .desktop-shell-active .desktop-sidebar {
    --desktop-sidebar-surface: #26384b;
    --desktop-sidebar-text: #f1f5f9;
    --desktop-sidebar-muted: #bdcbd9;
    --desktop-sidebar-line: #4a6078;
    --desktop-sidebar-hover: #344b63;
    --desktop-accent: #fb7185;
    --desktop-active-surface: #445269;
    --desktop-active-text: #fff1f2;
  }

  html:where(.employee-shell-web):not([data-theme="dark"]) .desktop-shell-active #app > .app-shell {
    --text-soft: #516579;
    --text-muted: #516579;
  }

  :where(html.employee-shell-web) .desktop-shell-active .desktop-topbar {
    min-height: 52px;
    padding-block: 8px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .page-wrap {
    padding-top: 12px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .desktop-sidebar .desktop-sidebar-nav {
    gap: 6px;
    padding-block: 6px 10px;
  }

  :where(html.employee-shell-web) .desktop-shell-active .desktop-nav-group {
    display: grid;
    gap: 2px;
    min-width: 0;
  }

  :where(html.employee-shell-web) .desktop-shell-active .desktop-nav-group-title {
    margin: 6px 0 2px;
    padding: 0 13px;
    color: var(--desktop-sidebar-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .desktop-sidebar .desktop-nav-item {
    min-height: 42px;
    padding-block: 7px;
    font-size: 13px;
  }

  :where(html.employee-shell-web) .desktop-shell-active .desktop-sidebar-account {
    padding-block: 10px;
  }

  :where(html.employee-shell-web) .desktop-shell-active .desktop-sidebar-footer small {
    font-size: 11px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .muted,
:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .report-subtext,
:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .field-label,
:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .field > label,
:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .financial-report-filters label > span {
    color: var(--desktop-muted);
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .field-label,
:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .field > label {
    font-size: 13px;
    line-height: 1.5;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .input::placeholder,
:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .textarea::placeholder {
    color: var(--desktop-muted);
    opacity: 1;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .admin-table th,
:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .admin-table td,
:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .financial-report-screen .admin-table thead th {
    font-size: 13px;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .admin-table .btn:not(.btn-danger),
:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .btn[data-action^="print-"],
:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .btn[data-action^="download-"],
:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .btn[data-action^="export-"] {
    color: var(--desktop-content-primary);
    background: var(--desktop-surface);
    border: 1px solid var(--desktop-button-border);
    box-shadow: none;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .admin-table .btn:not(.btn-danger):hover,
:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .btn[data-action^="print-"]:hover,
:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .btn[data-action^="download-"]:hover,
:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .btn[data-action^="export-"]:hover {
    color: var(--desktop-content-primary);
    background: var(--desktop-surface-muted);
    border-color: #859db5;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .hero-card .section-head {
    margin-bottom: 8px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .hero-card .section-head p {
    margin-top: 4px;
    line-height: 1.5;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .desktop-dashboard-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin: 0 0 8px;
    width: 100%;
    max-width: none;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .desktop-dashboard-toolbar .btn,
:where(html.employee-shell-web) .desktop-shell-active #app .desktop-dashboard-toolbar .pill {
    min-height: 40px;
    margin: 0;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .hero-card .search-row {
    margin-top: 0;
    padding: 8px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .hero-card .card-inner > .muted {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .desktop-advanced-filters {
    margin-top: 8px;
    border: 1px solid var(--desktop-border);
    border-radius: 8px;
    background: var(--desktop-surface-muted);
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .desktop-advanced-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    min-height: 40px;
    padding: 7px 12px;
    color: var(--desktop-content-primary);
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .desktop-advanced-summary::-webkit-details-marker {
    display: none;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .desktop-advanced-summary::before {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border: solid currentColor;
    border-width: 0 0 1.5px 1.5px;
    transform: rotate(-45deg);
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .desktop-advanced-filters[open] > .desktop-advanced-summary::before {
    transform: rotate(135deg);
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .desktop-advanced-summary:focus-visible,
:where(html.employee-shell-web) .desktop-shell-active #app .desktop-row-more-summary:focus-visible {
    outline: 2px solid var(--desktop-accent);
    outline-offset: 2px;
    border-radius: 6px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .desktop-advanced-filters-title {
    font-weight: 700;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .desktop-filter-active-label {
    color: var(--desktop-muted);
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .desktop-advanced-filters.is-active .desktop-filter-active-label {
    padding: 2px 8px;
    border: 1px solid var(--desktop-button-border);
    border-radius: 6px;
    background: var(--desktop-surface);
    color: var(--desktop-content-primary);
    font-weight: 600;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .desktop-advanced-filters.is-invalid {
    border-color: var(--desktop-accent);
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .desktop-advanced-filters.is-invalid .desktop-filter-active-label {
    color: var(--desktop-active-text);
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .desktop-advanced-filters .admin-registration-period-filter {
    margin: 0;
    border: 0;
    border-top: 1px solid var(--desktop-border);
    border-radius: 0 0 8px 8px;
    background: var(--desktop-surface);
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .desktop-dashboard-overview {
    margin-top: 12px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .desktop-dashboard-summary-head {
    margin-bottom: 10px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .report-card {
    border-color: var(--desktop-border);
    background: var(--desktop-surface);
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .report-card::before {
    inset-block: 12px auto;
    inset-inline: auto 12px;
    width: 22px;
    height: 3px;
    border-radius: 2px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .report-value,
:where(html.employee-shell-web) .desktop-shell-active #app .page-wrap .report-card-value {
    color: var(--desktop-content-primary);
    font-variant-numeric: tabular-nums;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .report-grid:not(.branch-summary-grid) .report-card {
    display: grid;
    align-content: start;
    gap: 4px;
    padding: 14px 12px 12px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .report-grid:not(.branch-summary-grid) .report-card-cta {
    color: var(--desktop-content-primary);
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-financial-report .financial-report-filters label > span {
    font-size: 13px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-financial-report .financial-report-filters .input,
:where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-financial-report .financial-report-filters .select {
    min-height: 44px;
    font-size: 14px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .financial-report-metric {
    position: relative;
    background: var(--desktop-surface);
    border-color: var(--desktop-border);
    box-shadow: none;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .financial-report-metric > strong {
    color: var(--desktop-content-primary);
    font-size: clamp(18px, 1.5vw, 22px);
    line-height: 1.35;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .financial-report-metric > span,
:where(html.employee-shell-web) .desktop-shell-active #app .financial-report-metric > small {
    color: var(--desktop-muted);
    font-size: 12px;
    line-height: 1.5;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .financial-report-metric-primary::before,
:where(html.employee-shell-web) .desktop-shell-active #app .financial-report-metric-discount::before,
:where(html.employee-shell-web) .desktop-shell-active #app .financial-report-metric-addition::before {
    content: "";
    position: absolute;
    top: 0;
    right: 12px;
    width: 28px;
    height: 3px;
    border-radius: 0 0 2px 2px;
    background: var(--desktop-accent);
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .financial-report-metric-primary::before { background: #1b56c4; }
  :where(html.employee-shell-web) .desktop-shell-active #app .financial-report-metric-discount::before { background: #b45309; }
  :where(html.employee-shell-web) .desktop-shell-active #app .financial-report-metric-addition::before { background: #7c3aed; }

  :where(html.employee-shell-web) .desktop-shell-active #app .desktop-row-more {
    min-width: 0;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .desktop-row-more-summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 7px 10px;
    border: 1px solid var(--desktop-button-border);
    border-radius: 8px;
    background: var(--desktop-surface);
    color: var(--desktop-content-primary);
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .desktop-row-more-summary::-webkit-details-marker {
    display: none;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .desktop-row-more[open] > .desktop-row-more-summary {
    background: var(--desktop-surface-muted);
    margin-bottom: 6px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .desktop-row-more-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .desktop-notification-region {
    min-width: 0;
    margin: 0 0 12px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .desktop-notification-region:empty {
    display: none;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .flash-banner {
    position: static;
    inset: auto;
    width: auto;
    margin: 0 16px 12px;
    transform: none;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .desktop-notification-region .flash-banner {
    width: 100%;
    margin: 0;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .flash-banner .alert {
    padding: 9px 12px;
    border-radius: 8px;
    box-shadow: none;
    backdrop-filter: none;
    font-size: 13px;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .flash-banner-message {
    line-height: 1.5;
  }

  :where(html.employee-shell-web) .desktop-menu-present #app .login-head .brand-copy h1 {
    font-size: 22px;
    line-height: 1.5;
  }

  :where(html.employee-shell-web) .desktop-menu-present #app .login-head .brand-copy p {
    font-size: 13px;
    line-height: 1.6;
  }

  :where(html.employee-shell-web) .desktop-menu-present #app .login-card .input {
    min-height: 44px;
    font-size: 14px;
  }
}

@media screen and (min-width: 1001px) {
  :where(html.employee-shell-web) .desktop-shell-active .desktop-topbar {
    display: none;
  }

  :where(html.employee-shell-web) .desktop-shell-active.desktop-sidebar-collapsed #app > .app-shell {
    padding-right: 0;
  }

  :where(html.employee-shell-web) .desktop-shell-active.desktop-sidebar-collapsed .desktop-sidebar {
    visibility: hidden;
    transform: translateX(100%);
    pointer-events: none;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .report-grid:not(.report-grid-compact):not(.branch-summary-grid) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media screen and (max-width: 2100px) {
  :where(html.employee-shell-web) .desktop-shell-active #app .financial-report-breakdown-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media screen {
  /* The original hero isolates its descendants. Lift only the open category
     filter above later summary cards, below navigation and modal layers. */
  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .hero-card:has(.admin-report-category-multiselect-menu) {
    position: relative;
    z-index: 40;
    overflow: visible;
  }

  :where(html.employee-shell-web) .desktop-shell-active #app .app-screen-admin-dashboard .admin-report-category-multiselect-menu .job-application-multiselect-options {
    max-height: min(280px, 40dvh);
    overflow-y: auto;
    overscroll-behavior: contain;
    direction: rtl;
  }
}

@media screen and (max-width: 1500px) {
  :where(html.employee-shell-web) .desktop-shell-active #app .financial-report-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media screen and (max-width: 1000px) {
  :where(html.employee-shell-web) .desktop-shell-active #app .financial-report-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}




}

@media screen {
  :where(html.employee-shell-web) .desktop-shell-active .desktop-topbar,
  :where(html.employee-shell-web) .desktop-shell-active .desktop-menu-toggle { display: flex; }
  :where(html.employee-shell-web) .desktop-shell-active .desktop-menu-toggle { align-items: center; justify-content: center; gap: 7px; min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--desktop-input-border); border-radius: 6px; color: var(--desktop-sidebar-text); background: transparent; font: inherit; }
  .desktop-shell-active .desktop-topbar-leading,
  .desktop-shell-active .desktop-topbar-meta,
  .desktop-shell-active #app .page-wrap,
  .desktop-shell-active #app .page-shell { min-width: 0; }
  .desktop-shell-active .desktop-topbar-user { overflow-wrap: anywhere; }
  @media (max-width: 1000px) {
    .desktop-shell-active .desktop-menu-toggle,
    .desktop-shell-active .desktop-sidebar-close { min-width: 44px; min-height: 44px; height: 44px; }
    .desktop-shell-active #app .desktop-sidebar .desktop-nav-item { min-height: 44px; }
    .desktop-shell-active .desktop-sidebar { height: 100vh; height: 100dvh; padding-bottom: env(safe-area-inset-bottom, 0); }
  }
  @media (max-width: 640px) {
    .desktop-shell-active .desktop-topbar { gap: 8px; padding: 8px 12px; }
    .desktop-shell-active .desktop-topbar-leading { flex: 1 1 auto; }
    .desktop-shell-active .desktop-topbar-title { overflow-wrap: anywhere; }
    .desktop-shell-active .desktop-topbar-meta { flex: 0 1 35%; overflow-wrap: anywhere; }
  }
}
@media print {
  :where(html.employee-shell-web) .desktop-sidebar,
  :where(html.employee-shell-web) .desktop-topbar,
  :where(html.employee-shell-web) .desktop-sidebar-backdrop { display: none !important; }
}

/* Keep contact reminders clear of the mobile navigation and logout controls. */
body.desktop-sidebar-open .pcl-reminder-host,
body.desktop-sidebar-open .par-notification { visibility: hidden; pointer-events: none; }

@media (min-width: 1001px) {
  body.desktop-shell-active:not(.desktop-sidebar-collapsed) .par-notification { right: calc(var(--desktop-sidebar-width, 224px) + 16px); }
}
