/* Module-specific leave, attendance, and asset rules now live in leave.css, attendance.css, and assets.css. Keep this file for legacy/shared styles only. */

:root {
    --bg: var(--theme-bg);
    --bg-soft: var(--theme-bg-soft);
    --surface: var(--c142);
    --surface-strong: var(--theme-surface-strong);
    --surface-muted: var(--theme-surface-muted);
    --ink: var(--theme-ink);
    --muted: var(--theme-muted);
    --line: var(--theme-line);
    --line-strong: var(--theme-line-strong);
    --brand: var(--theme-brand);
    --brand-strong: var(--theme-brand-strong);
    --brand-soft: var(--c439);
    --blue-soft: var(--c440);
    --green: var(--c441);
    --green-soft: var(--c442);
    --amber: var(--c443);
    --amber-soft: var(--c444);
    --red: var(--c319);
    --red-soft: var(--c445);
    --shadow: 0 24px 60px var(--c446);
    --radius: 24px;
    --sidebar-width: 270px;
    --sidebar-collapsed-width: 92px;
    --shell-gap: 24px;
    --sidebar-transition: 220ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--theme-surface-strong);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: none;
    background-size: 24px 24px;
    mask-image: linear-gradient(180deg, var(--c452), transparent 70%);
}

h1,
h2,
h3,
h4,
strong {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

p,
a,
label,
small,
span,
td,
th,
input,
select,
textarea,
button {
    font-family: inherit;
}

p {
    margin: 0;
}

a {
    color: inherit;
}

.page-shell {
    min-height: 100vh;
    padding: var(--shell-gap);
}

.sidebar {
    width: var(--sidebar-width);
    position: fixed;
    top: var(--shell-gap);
    left: var(--shell-gap);
    z-index: 30;
    height: calc(100vh - (var(--shell-gap) * 2));
    overflow-y: auto;
    padding: 18px;
    border-radius: 28px;
    border: 1px solid var(--c453);
    background: var(--c453);
    box-shadow: var(--shadow);
scrollbar-width: none;
    -ms-overflow-style: none;
    transition: transform var(--sidebar-transition), opacity var(--sidebar-transition);
}

.sidebar::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 10px 16px;
    text-decoration: none;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: var(--theme-surface-strong);
    color: white;
    box-shadow: none;
    flex-shrink: 0;
}

.brand-mark svg {
    width: 22px;
    height: 22px;
}

.brand-mark img {
    display: block;
    width: 82%;
    height: 82%;
    object-fit: contain;
}

.login-brand .brand-mark {
    background: var(--theme-surface-strong) !important;
    border: 1px solid var(--theme-brand-mark-border) !important;
}

.brand-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.brand-copy strong {
    font-size: 1.06rem;
}

.brand-copy small {
    color: var(--muted);
    font-size: 0.87rem;
}

.sidebar-group {
    margin-top: 14px;
}

.sidebar-label {
    padding: 0 10px;
    margin-bottom: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.68rem;
    font-weight: 700;
}

.sidebar-nav {
    display: grid;
    gap: 6px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--c456);
    font-weight: 600;
    transition: background-color 180ms ease, color 180ms ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--c457);
    color: var(--brand-strong);
}


.employee-profile-full-grid {
    grid-template-columns: minmax(0, 1fr);
}

.employee-profile-full-grid .employee-dashboard-main {
    max-width: none;
}


.filter-bar {
    margin-bottom: 18px;
}

.pagination-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1rem;
    color: var(--c458);
    font-size: 0.86rem;
    font-weight: 800;
}

.filter-bar .form-control,
.filter-bar .form-select {
    max-width: 280px;
}

.responsive-table {
    width: 100%;
    overflow-x: auto;
}

.responsive-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.responsive-table th,
.responsive-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.responsive-table th {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.responsive-table td small {
    color: var(--muted);
}

.responsive-table th,
.responsive-table td,
.table-wrap th,
.table-wrap td {
    overflow-wrap: anywhere;
}

.field-error {
    color: var(--red);
    font-weight: 700;
}

.sidebar-logout-form {
    margin: 0;
}

.sidebar-logout-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: var(--c456);
    box-shadow: none;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
    transition: background-color 180ms ease, color 180ms ease;
}

.sidebar-logout-link:hover,
.sidebar-logout-link:focus-visible {
    background: var(--c457);
    color: var(--brand-strong);
    outline: 2px solid transparent;
}

.sidebar-logout-link:hover .nav-icon,
.sidebar-logout-link:focus-visible .nav-icon {
    background: var(--c459);
    color: var(--brand-strong);
    border-color: var(--c460);
}

.nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--c450);
    border: 1px solid var(--line);
    color: var(--muted);
    flex-shrink: 0;
}

.nav-icon svg {
    width: 16px;
    height: 16px;
}

.sidebar-nav a.active .nav-icon,
.sidebar-nav a:hover .nav-icon {
    background: var(--c459);
    color: var(--brand-strong);
    border-color: var(--c460);
}

.sidebar-promo {
    margin-top: 18px;
    padding: 18px;
    border-radius: 22px;
    background: var(--theme-surface-strong);
    color: white;
    transition: opacity var(--sidebar-transition), transform var(--sidebar-transition);
}

.sidebar-promo h3 {
    margin: 8px 0 6px;
    font-size: 1.12rem;
}

.sidebar-promo p:last-of-type {
    color: var(--c463);
    line-height: 1.6;
}

.sidebar-promo .sidebar-label {
    padding: 0;
    color: var(--c464);
}

.sidebar-promo-actions {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.sidebar-toggle {
    appearance: none;
    border: 1px solid var(--line);
    background: var(--c465);
    color: var(--c466);
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.sidebar-toggle:hover {
    transform: translateY(-1px);
    background: var(--c467);
    color: var(--brand-strong);
    border-color: var(--c460);
}

.sidebar-toggle svg {
    width: 18px;
    height: 18px;
}

.toolbar-toggle {
    display: none;
    width: 44px;
    padding: 0;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: var(--c468);
    opacity: 0;
    pointer-events: none;
    border: 0;
    z-index: 20;
    transition: opacity var(--sidebar-transition);
}

.main-panel {
    margin-left: calc(var(--sidebar-width) + var(--shell-gap));
    padding: 0 0 32px;
    transition: none;
}

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.topbar-copy {
    display: grid;
    gap: 8px;
}

.topbar h1 {
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    line-height: 1.15;
}

.topbar-tools {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.search-shell {
    min-width: 270px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--c171);
    color: var(--muted);
}

.search-shell span {
    font-size: 0.86rem;
    font-weight: 600;
}

.search-shell input {
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0;
    width: 100%;
    color: var(--ink);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.eyebrow {
    color: var(--c469);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 700;
}

.button,
.button.secondary,
button.button {
    appearance: none;
    border: 0;
    border-radius: 14px;
    padding: 12px 18px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button {
    background: var(--theme-surface-strong);
    color: white;
    box-shadow: none;
}

.button.secondary {
    background: var(--c471);
    color: var(--brand-strong);
}

.button.light-button {
    background: white;
    color: var(--brand-strong);
    box-shadow: none;
}

.button.button-small {
    padding: 10px 14px;
    font-size: 0.88rem;
}

.button:hover,
.text-link:hover,
.table-link:hover {
    transform: translateY(-1px);
}

.panel,
.stat-card,
.hero-card,
.mini-card {
    background: var(--surface);
    border: 1px solid var(--c137);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.soft-panel {
    background: var(--theme-surface-strong);
}

.panel,
.stat-card,
.mini-card {
    padding: 22px;
}

.dashboard-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.dashboard-intro h2 {
    margin: 10px 0 8px;
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    max-width: 18ch;
}

.hero-copy {
    max-width: 62ch;
    color: var(--muted);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.stats-grid,
.cards-grid,
.content-grid,
.dashboard-grid,
.feature-grid {
    display: grid;
    gap: 18px;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 22px;
}

.metric-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 132px;
}

.metric-card p {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.metric-card strong {
    display: block;
    margin: 12px 0 8px;
    font-size: 2rem;
}

.metric-card small {
    color: var(--muted);
    line-height: 1.45;
}

.metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
}

.metric-icon svg {
    width: 18px;
    height: 18px;
}

.metric-icon.sky {
    background: var(--c473);
    color: var(--c474);
}

.metric-icon.violet {
    background: var(--c475);
    color: var(--c476);
}

.metric-icon.green {
    background: var(--c477);
    color: var(--green);
}

.metric-icon.amber {
    background: var(--c478);
    color: var(--c479);
}

.dashboard-grid {
    grid-template-columns: minmax(0, 2.05fr) minmax(300px, 0.95fr);
    align-items: start;
}

.dashboard-main,
.dashboard-side {
    display: grid;
    gap: 18px;
}

.feature-grid {
    grid-template-columns: 1.02fr 1.3fr;
}

.highlight-panel {
    background: var(--theme-surface-strong);
    color: white;
}

.highlight-panel .eyebrow,
.highlight-panel p,
.highlight-panel span,
.highlight-panel .muted-note {
    color: var(--c171);
}

.no-border {
    margin-bottom: 0;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.panel-header h3 {
    font-size: 1.2rem;
}

.panel-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pill,
.pill-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.pill-soft {
    background: var(--c307);
    color: inherit;
}

.highlight-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0;
}

.highlight-metrics div {
    padding: 16px;
    border-radius: 18px;
    background: var(--c482);
}

.highlight-metrics span {
    display: block;
    margin-bottom: 10px;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.highlight-metrics strong {
    font-size: 1.8rem;
}

.highlight-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.highlight-footer p {
    max-width: 30ch;
    line-height: 1.6;
}

.chart-panel {
    background: var(--c148);
}

.muted-note {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.chart-stack {
    display: grid;
    gap: 16px;
}

.progress-row {
    display: grid;
    grid-template-columns: minmax(100px, 120px) minmax(0, 1fr) 54px;
    gap: 12px;
    align-items: center;
}

.progress-copy small,
.side-list-item small,
.person-cell small,
.metric-row span,
.mini-card p,
.empty-state {
    color: var(--muted);
}

.progress-copy strong,
.side-list-item strong {
    display: block;
    margin-bottom: 4px;
}

.progress-track {
    height: 10px;
    border-radius: 999px;
    background: var(--c483);
    overflow: hidden;
}

.progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.progress-fill.success {
    background: var(--theme-surface-strong);
}

.progress-fill.info {
    background: var(--theme-surface-strong);
}

.progress-fill.warning {
    background: var(--theme-surface-strong);
}

.progress-fill.danger {
    background: var(--theme-surface-strong);
}

.progress-value {
    color: var(--muted);
    font-weight: 700;
    text-align: right;
}

.table-panel {
    padding-bottom: 10px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

thead th {
    padding: 14px 16px;
    background: var(--surface-muted);
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

thead th:first-child {
    border-top-left-radius: 16px;
}

thead th:last-child {
    border-top-right-radius: 16px;
}

tbody td {
    padding: 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.person-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.person-cell span:last-child {
    display: grid;
    gap: 4px;
}

.avatar-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-surface-strong);
    color: var(--brand-strong);
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
}

.avatar-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-badge > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.text-link,
.table-link {
    color: var(--brand-strong);
    text-decoration: none;
    font-weight: 700;
}

.side-panel {
    padding: 20px;
}

.status-chip-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.status-chip {
    padding: 14px 12px;
    border-radius: 18px;
    display: grid;
    gap: 4px;
}

.status-chip strong {
    font-size: 1.25rem;
}

.status-chip span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.status-chip-success {
    background: var(--c489);
}

.status-chip-warning {
    background: var(--c490);
}

.status-chip-muted {
    background: var(--c491);
}

.side-list,
.list-stack {
    display: grid;
    gap: 12px;
}

.side-list-item,
.list-row,
.metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--surface-muted);
    border: 1px solid var(--line);
}

.side-list-link,
.list-row {
    text-decoration: none;
}

.side-list-item > div,
.list-row > div {
    display: grid;
    gap: 4px;
}

.pill {
    background: var(--c492);
    color: var(--c493);
}

.pill.pending {
    background: var(--amber-soft);
    color: var(--c494);
}

.pill.approved,
.pill.status-active {
    background: var(--green-soft);
    color: var(--c495);
}

.pill.rejected,
.pill.status-resigned {
    background: var(--red-soft);
    color: var(--c496);
}

.pill.cancelled {
    background: var(--c421);
    color: var(--theme-slate-muted);
}

.pill.status-on_leave {
    background: var(--c459);
    color: var(--brand-strong);
}

.cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.mini-card h4 {
    margin: 10px 0 8px;
}

.mini-card-link {
    display: block;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.mini-card-link:hover {
    transform: translateY(-2px);
    border-color: var(--c455);
    box-shadow: none;
}

.mini-meta,
.toolbar,
.form-actions,
.topbar-actions,
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.content-grid.two-up,
.content-grid.profile-layout,
.two-up,
.profile-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.detail-grid div {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 18px;
    background: var(--surface-muted);
    border: 1px solid var(--line);
}

.form-panel.narrow {
    max-width: 760px;
}

.grid-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
}

.grid-form.single-column {
    grid-template-columns: 1fr;
}

.field-group {
    display: grid;
    gap: 8px;
}

.field-group label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--c497);
}

.full-width,
.full-span {
    grid-column: 1 / -1;
}

.form-control,
.form-select,
textarea,
input,
select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: var(--theme-surface-strong);
    color: var(--ink);
    outline: 2px solid transparent;
}

.field-group input[type="file"] {
    min-height: 42px;
    padding: 8px 12px;
}

.field-group input[type="checkbox"] {
    width: auto;
    padding: 0;
}

.employee-basic-info-grid {
    align-items: start;
}

.employee-photo-field,
.employee-photo-upload-field {
    display: grid;
    gap: 8px;
    align-content: start;
}

.form-control:focus,
.form-select:focus,
textarea:focus,
input:focus,
select:focus {
    border-color: var(--c498);
    box-shadow: 0 0 0 4px var(--c471);
}

.messages {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.message {
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--c499);
    color: var(--brand-strong);
    border: 1px solid var(--c439);
}

.error-text {
    color: var(--red);
    font-size: 0.9rem;
}

.form-error-summary {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--c500);
    border-radius: 12px;
    background: var(--red-soft);
    color: var(--c501);
}

.form-error-summary span {
    color: var(--c501);
    font-size: 0.92rem;
}

.empty-state,
.empty-cell {
    color: var(--muted);
}

.empty-cell {
    padding: 22px;
    text-align: center;
}

.compact-toolbar {
    justify-content: flex-start;
}

.metric-row.stacked {
    align-items: flex-start;
    flex-direction: column;
}

body.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
    padding-inline: 12px;
}

body.sidebar-collapsed .sidebar-head {
    flex-direction: column;
    justify-content: center;
}

body.sidebar-collapsed .brand {
    justify-content: center;
    padding-inline: 0;
    padding-bottom: 8px;
}

body.sidebar-collapsed .brand-copy,
body.sidebar-collapsed .sidebar-label,
body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .sidebar-promo {
    display: none;
}

body.sidebar-collapsed .sidebar-toggle-inline {
    display: inline-flex;
}

body.sidebar-collapsed .sidebar-nav a {
    justify-content: center;
    padding-inline: 0;
}

body.sidebar-collapsed .main-panel {
    margin-left: calc(var(--sidebar-collapsed-width) + var(--shell-gap));
}

@media (max-width: 1380px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1180px) {
    .page-shell {
        padding: 18px;
    }

    .sidebar {
        left: 18px;
        top: 18px;
        height: calc(100vh - 36px);
        width: min(320px, calc(100vw - 36px));
    }

    .main-panel,
    body.sidebar-collapsed .main-panel {
        margin-left: 0;
        padding-top: 0;
    }

    body.sidebar-collapsed .sidebar {
        transform: translateX(calc(-100% - 22px));
        opacity: 0;
        pointer-events: none;
    }

    body:not(.sidebar-collapsed) .sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-toggle {
        display: inline-flex;
    }

    .topbar-tools {
        justify-content: space-between;
    }
}

@media (max-width: 900px) {
    .dashboard-intro,
    .highlight-footer,
    .toolbar,
    .form-actions,
    .topbar-actions,
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .search-shell {
        min-width: 0;
        width: 100%;
    }

    .highlight-metrics,
    .status-chip-row,
    .stats-grid,
    .content-grid.two-up,
    .content-grid.profile-layout,
    .two-up,
    .profile-layout,
    .detail-grid,
    .grid-form {
        grid-template-columns: 1fr;
    }

    .progress-row {
        grid-template-columns: 1fr;
    }

    .progress-value {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 14px;
    }

    .sidebar {
        left: 14px;
        top: 14px;
        width: calc(100vw - 28px);
        height: calc(100vh - 28px);
    }

    .panel,
    .stat-card,
    .mini-card,
    .side-panel,
    .sidebar {
        border-radius: 22px;
    }

    .toolbar-toggle {
        width: 44px;
        padding: 0;
    }

    .main-panel {
        padding-bottom: 20px;
    }

    .topbar h1 {
        font-size: 1.8rem;
    }
}


.department-page {
    display: grid;
    gap: 22px;
}

.department-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
    gap: 20px;
    align-items: stretch;
    padding: 28px;
    background: var(--theme-surface-strong);
}

.department-hero-copy h2 {
    margin: 10px 0 12px;
    font-size: clamp(2rem, 3vw, 2.8rem);
}

.department-hero-text {
    max-width: 56ch;
    color: var(--muted);
    line-height: 1.7;
    font-size: 1rem;
}

.department-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.department-stat-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 22px;
    border-radius: 24px;
    background: var(--theme-surface-strong);
    color: white;
    box-shadow: none;
}

.department-stat-card.compact {
    display: block;
}

.department-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--c283);
    flex-shrink: 0;
}

.department-stat-icon svg {
    width: 24px;
    height: 24px;
}

.department-stat-label {
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    color: var(--c171);
}

.department-stat-card strong {
    display: block;
    font-size: clamp(1.55rem, 2.4vw, 2.4rem);
    line-height: 1;
    margin-bottom: 8px;
    word-break: break-word;
}

.department-stat-card small {
    color: var(--c453);
    line-height: 1.6;
}

.department-roster-panel {
    padding: 24px;
}

.department-roster-header {
    align-items: end;
}

.department-roster-count {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.department-member-list {
    display: grid;
    gap: 16px;
}

.department-member-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--theme-surface-strong);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.department-member-card:hover {
    transform: translateY(-2px);
    border-color: var(--c506);
    box-shadow: none;
}

.department-member-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.department-member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-surface-strong);
    color: var(--brand-strong);
    font-weight: 800;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

.department-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.department-member-avatar > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.department-member-main h4 {
    margin: 0 0 6px;
    font-size: 1.08rem;
}

.department-member-main p {
    color: var(--muted);
}

.department-member-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.department-meta-chip {
    min-width: 180px;
    padding: 11px 14px;
    border-radius: 16px;
    background: var(--surface-muted);
    border: 1px solid var(--line);
}

.department-meta-chip span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.department-meta-chip strong {
    font-size: 0.95rem;
}

.department-empty-state {
    padding: 32px 24px;
    border-radius: 22px;
    border: 1px dashed var(--line-strong);
    background: var(--surface-muted);
}

.department-empty-state h3 {
    margin: 10px 0 8px;
}

.department-empty-state p:last-child {
    color: var(--muted);
}

@media (max-width: 1120px) {
    .department-hero,
    .department-member-card {
        grid-template-columns: 1fr;
    }

    .department-member-meta {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .department-hero,
    .department-roster-panel {
        padding: 20px;
    }

    .department-directory-card-bottom {
        grid-template-columns: 1fr;
    }

    .department-stat-card {
        align-items: flex-start;
    }

    .department-meta-chip {
        min-width: 0;
        width: 100%;
    }
}


.employee-photo-preview {
    width: 140px;
    height: 140px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-muted);
}

.employee-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee-photo-remove-button {
    appearance: none;
    width: fit-content;
    min-height: 38px;
    padding: 9px 13px;
    border: 1px solid var(--c509);
    border-radius: 8px;
    background: var(--c510);
    color: var(--c501);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
}

.employee-photo-remove-button:hover,
.employee-photo-remove-button:focus {
    background: var(--c501);
    border-color: var(--c501);
    color: var(--c511);
    outline: 2px solid transparent;
}

.employee-profile-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.employee-profile-photo {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-surface-strong);
    color: var(--brand-strong);
    font-weight: 800;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}

.employee-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.department-directory-page {
    display: grid;
    gap: 22px;
}

.department-directory-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
    gap: 22px;
    align-items: stretch;
    padding: 28px;
    background: var(--theme-surface-strong);
}

.department-directory-copy h2 {
    margin: 10px 0 12px;
    font-size: clamp(1.55rem, 2.8vw, 1.9rem);
    line-height: 1;
}

body:has(.department-directory-page) .topbar h1 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

body:has(.department-directory-page) .topbar .eyebrow {
    display: inline-block;
    justify-self: start;
    background: var(--mono-muted);
    color: var(--mono-muted-fg);
    line-height: 1;
    padding: 0.12rem 0.18rem;
}

.department-directory-text {
    max-width: 58ch;
    color: var(--muted);
    line-height: 1.7;
}

.department-directory-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-content: start;
}

.directory-stat-tile {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: var(--theme-surface-strong);
}

.directory-stat-tile.highlight {
    background: var(--theme-surface-strong);
    border-color: transparent;
    color: white;
    box-shadow: none;
}

.directory-stat-tile span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.directory-stat-tile.highlight span,
.directory-stat-tile.highlight small {
    color: var(--c453);
}

.directory-stat-tile strong {
    display: block;
    margin: 10px 0 6px;
    font-size: 2rem;
    line-height: 1;
}

.directory-stat-tile small {
    color: var(--muted);
    line-height: 1.5;
}

.department-directory-stats .button {
    grid-column: 1 / -1;
    justify-self: start;
}

.department-directory-panel {
    padding: 24px;
}

.department-directory-header {
    align-items: end;
}

.department-directory-note {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.department-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.department-directory-card {
    display: grid;
    gap: 14px;
    padding: 22px;
    border-radius: 0;
    text-decoration: none;
    border: 1px solid var(--mono-border);
    background: var(--mono-card);
    box-shadow: none;
    color: var(--mono-fg);
    transition: background-color 100ms linear, color 100ms linear;
}

.department-directory-card:hover {
    background: var(--mono-inverse);
    color: var(--mono-inverse-fg);
}

.department-directory-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.department-directory-icon {
    width: 42px;
    height: 42px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid currentColor;
    color: currentColor;
}

.department-directory-icon svg {
    width: 20px;
    height: 20px;
}

.department-directory-code {
    padding: 8px 12px;
    border-radius: 0;
    background: transparent;
    border: 1px solid currentColor;
    color: currentColor;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.department-directory-card h4 {
    margin: 0;
    font-size: 1.2rem;
}

.department-directory-card p {
    color: var(--mono-muted-fg);
    line-height: 1.65;
    min-height: 4.8em;
}

.department-directory-card-bottom {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 14px;
    padding-top: 8px;
    border-top: 1px solid var(--mono-border);
}

.department-directory-card-bottom span {
    display: block;
    color: var(--mono-muted-fg);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
}

.department-directory-card-bottom strong {
    display: block;
    font-size: 1rem;
    line-height: 1.35;
    word-break: break-word;
}

.department-directory-open {
    color: currentColor;
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 0;
}

.department-directory-card:hover p,
.department-directory-card:hover .department-directory-card-bottom span {
    color: var(--c463);
}

@media (max-width: 1120px) {
    .department-directory-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .department-directory-hero,
    .department-directory-panel {
        padding: 20px;
    }

    .department-directory-stats,
    .department-directory-grid {
        grid-template-columns: 1fr;
    }

    .department-directory-card-bottom {
        grid-template-columns: 1fr;
    }
}


.inline-form {
    margin: 0;
}

.ghost-button {
    background: var(--theme-surface-strong);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: none;
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-shell {
    width: min(100%, 960px);
}

.login-card {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 24px;
    padding: 32px;
    border-radius: 32px;
    background: var(--theme-surface-strong);
    border: 1px solid var(--c137);
    box-shadow: var(--shadow);
}

.login-brand {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.login-brand h1 {
    margin: 10px 0 12px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.login-copy {
    max-width: 34ch;
    color: var(--muted);
    line-height: 1.7;
}

.login-form {
    display: grid;
    gap: 16px;
    padding: 24px;
    border-radius: 24px;
    background: var(--c513);
    border: 1px solid var(--line);
    align-self: start;
}

.login-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: var(--theme-surface-strong);
}

.login-form input:focus {
    outline: 2px solid transparent;
    border-color: var(--c498);
    box-shadow: 0 0 0 4px var(--c471);
}

@media (max-width: 800px) {
    .login-card {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}

body {
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

.page-shell {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
}

.sidebar {
    overscroll-behavior: contain;
}

.main-panel {
    min-width: 0;
}

.table-wrap {
    -webkit-overflow-scrolling: touch;
}

.search-shell {
    min-height: 52px;
}

.search-shell input {
    min-width: 0;
    font-size: 16px;
}

.topbar-actions .button,
.topbar-actions .inline-form,
.topbar-actions .inline-form .button {
    width: 100%;
}

.inline-form .button {
    justify-content: center;
}

@media (max-width: 900px) {
    .topbar {
        gap: 18px;
    }

    .topbar-tools {
        width: 100%;
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 12px;
        align-items: stretch;
    }

    .toolbar-toggle {
        width: 52px;
        height: 52px;
    }

    .search-shell,
    .topbar-actions {
        grid-column: 1 / -1;
    }

    .topbar-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
    }

    .button,
    .button.secondary,
    button.button {
        min-height: 52px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .metric-card {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 14px 14px calc(env(safe-area-inset-bottom, 0px) + 16px);
    }

    .topbar {
        margin-bottom: 18px;
    }

    .topbar-copy {
        gap: 6px;
    }

    .topbar h1 {
        font-size: 1.7rem;
        line-height: 1.08;
    }

    .topbar-tools {
        grid-template-columns: 1fr;
    }

    .toolbar-toggle,
    .search-shell,
    .topbar-actions {
        grid-column: auto;
    }

    .toolbar-toggle {
        justify-self: start;
    }

    .topbar-actions {
        grid-template-columns: 1fr;
    }

    .panel,
    .stat-card,
    .mini-card,
    .side-panel {
        padding: 18px;
    }

    .metric-card {
        align-items: center;
    }

    .metric-card strong {
        font-size: 1.7rem;
    }

    .table-wrap {
        margin-inline: -6px;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

    .login-body {
        padding: 14px;
    }

    .login-card,
    .login-form {
        padding: 20px;
    }
}


@media (max-width: 1180px) {
    .page-shell {
        display: block;
    }

    .main-panel,
    body .main-panel,
    body.sidebar-collapsed .main-panel,
    body:not(.sidebar-collapsed) .main-panel {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        transform: none !important;
    }
}


.employee-workspace {
    display: grid;
    gap: 22px;
}

.employee-workspace-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 26px;
    background: var(--theme-surface-strong);
}

.employee-workspace-identity {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.employee-workspace-avatar {
    width: 78px;
    height: 78px;
    border-radius: 24px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-surface-strong);
    color: var(--brand-strong);
    font-size: 1.1rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: none;
}

.employee-workspace-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee-workspace-copy {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.employee-workspace-copy h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.employee-workspace-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.employee-workspace-meta span {
    display: inline-flex;
    align-items: center;
}

.employee-workspace-meta span:not(:last-child)::after {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--c514);
    margin-left: 10px;
}

.employee-workspace-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.employee-role-pill,
.employee-type-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.employee-role-pill {
    background: var(--c439);
    color: var(--brand-strong);
}

.employee-type-pill {
    background: var(--c440);
    color: var(--c515);
}

.employee-workspace-shell {
    display: grid;
    grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.employee-side-nav-panel {
    padding: 14px;
    position: sticky;
    top: 24px;
}

.employee-side-nav {
    display: grid;
    gap: 8px;
}

.employee-side-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--c497);
    font-weight: 700;
    transition: background-color 180ms ease, color 180ms ease;
}

.employee-side-nav a:hover,
.employee-side-nav a.active {
    background: var(--c457);
    color: var(--brand-strong);
}

.employee-workspace-main {
    display: grid;
    gap: 18px;
}

.employee-section-panel {
    padding: 24px;
}

.employee-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.employee-section-header h3 {
    margin-top: 6px;
    font-size: 1.4rem;
}

.employee-inline-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--theme-surface-strong);
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
}

.employee-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.employee-info-item {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--theme-surface-strong);
}

.employee-info-item span,
.employee-detail-row span,
.employee-snapshot-card span {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.employee-detail-rows {
    display: grid;
    gap: 2px;
}

.employee-detail-row {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 20px;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
}

.employee-detail-row:last-child {
    border-bottom: 0;
}

.employee-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.employee-snapshot-card {
    display: grid;
    gap: 8px;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: var(--theme-surface-strong);
}

.employee-snapshot-card.highlight {
    border-color: transparent;
    background: var(--theme-surface-strong);
    color: white;
    box-shadow: none;
}

.employee-snapshot-card.highlight span,
.employee-snapshot-card.highlight small {
    color: var(--c453);
}

.employee-snapshot-card strong {
    font-size: 2rem;
    line-height: 1.04;
}

.employee-snapshot-card small {
    color: var(--muted);
    line-height: 1.55;
}

.employee-activity-list {
    display: grid;
    gap: 12px;
}

.employee-activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-muted);
}

.employee-activity-item > div {
    display: grid;
    gap: 4px;
}

.employee-activity-item small {
    color: var(--muted);
}

@media (max-width: 1100px) {
    .employee-workspace-shell {
        grid-template-columns: 1fr;
    }

    .employee-side-nav-panel {
        position: static;
    }

    .employee-side-nav {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 760px) {
    .employee-workspace-hero,
    .employee-section-panel {
        padding: 18px;
    }

    .employee-workspace-hero,
    .employee-workspace-identity,
    .employee-section-header,
    .employee-activity-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .employee-info-grid,
    .employee-snapshot-grid,
    .employee-detail-row {
        grid-template-columns: 1fr;
    }

    .employee-side-nav {
        grid-template-columns: 1fr;
    }

    .employee-workspace-avatar {
        width: 68px;
        height: 68px;
        border-radius: 22px;
    }
}

.employee-placeholder-card,
.employee-form-note-block {
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px dashed var(--line-strong);
    background: var(--theme-surface-strong);
}

.employee-placeholder-card p,
.employee-form-note-block p {
    color: var(--muted);
    line-height: 1.7;
}

.employee-snapshot-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.employee-form-workspace .employee-workspace-hero {
    margin-bottom: 0;
}

.employee-workspace-avatar-form {
    background: var(--theme-surface-strong);
}

.employee-form-panel-shell {
    display: grid;
    gap: 18px;
}

.employee-structured-form {
    display: grid;
    gap: 18px;
}

.employee-form-section-block {
    display: grid;
    gap: 18px;
}

.employee-form-section-head {
    display: grid;
    gap: 6px;
}

.employee-form-section-head h4,
.employee-form-note-block h4 {
    margin: 0;
    font-size: 1.12rem;
}

.employee-form-section-head p {
    color: var(--muted);
    line-height: 1.6;
}

@media (max-width: 760px) {
    .employee-snapshot-grid-compact {
        grid-template-columns: 1fr;
    }
}

.employee-detail-rows-spaced {
    margin-top: 16px;
}

.qualifications-panel {
    background: var(--theme-surface-strong);
}

.qualification-hero-grid,
.qualification-detail-grid {
    display: grid;
    gap: 16px;
}

.qualification-hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.qualification-highlight-card,
.qualification-skill-card,
.qualification-detail-card {
    display: grid;
    gap: 12px;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: var(--theme-surface-strong);
}

.qualification-highlight-card {
    border-color: var(--c459);
    background: var(--theme-surface-strong);
}

.qualification-highlight-card span,
.qualification-skill-card span,
.qualification-detail-card span {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.qualification-highlight-card strong {
    font-size: 1.5rem;
    line-height: 1.2;
}

.qualification-highlight-card small {
    color: var(--muted);
    line-height: 1.6;
}

.qualification-skill-card {
    align-content: start;
}

.qualification-chip-list {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.qualification-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 999px;
    background: var(--c471);
    color: var(--brand-strong);
    font-size: 0.86rem;
    font-weight: 700;
}

.qualification-chip-list.muted .qualification-chip,
.qualification-chip.muted {
    background: var(--c522);
    color: var(--c523);
}

.qualification-detail-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
    margin-top: 16px;
}

.qualification-detail-card.summary p {
    margin: 0;
    color: var(--c497);
    line-height: 1.75;
}

@media (max-width: 760px) {
    .qualification-hero-grid,
    .qualification-detail-grid {
        grid-template-columns: 1fr;
    }
}

.qualification-copy-card {
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--c448);
    color: var(--brand-strong);
}

.qualification-copy-card.muted {
    background: var(--c522);
    color: var(--c523);
}

.qualification-copy-card p {
    margin: 0;
    line-height: 1.7;
    font-weight: 600;
}

.employee-profile-page-v2 {
    display: grid;
    gap: 22px;
}

.employee-hero-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px;
    background: var(--theme-surface-strong);
}

.employee-hero-main {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.employee-hero-avatar {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-surface-strong);
    color: var(--brand-strong);
    font-size: 1.15rem;
    font-weight: 800;
    box-shadow: none;
    flex-shrink: 0;
}

.employee-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee-hero-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.employee-hero-copy h2 {
    font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.employee-hero-meta,
.employee-hero-chips {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.employee-hero-meta {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.employee-hero-meta span:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 10px;
    border-radius: 50%;
    background: var(--c514);
    vertical-align: middle;
}

.employee-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--c471);
    color: var(--brand-strong);
    font-size: 0.82rem;
    font-weight: 700;
}

.employee-chip.muted {
    background: var(--c522);
    color: var(--c523);
}

.employee-page-grid {
    display: grid;
    grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.employee-section-nav-card {
    padding: 14px;
    position: sticky;
    top: 24px;
}

.employee-section-nav {
    display: grid;
    gap: 8px;
}

.employee-section-nav a {
    padding: 12px 14px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--c497);
    font-weight: 700;
    transition: background-color 180ms ease, color 180ms ease;
}

.employee-section-nav a:hover {
    background: var(--c457);
    color: var(--brand-strong);
}

.employee-section-stack {
    display: grid;
    gap: 18px;
}

.employee-detail-card,
.employee-form-card-v2 {
    padding: 24px;
}

.employee-card-head,
.employee-form-section-copy {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
}

.employee-card-head h3,
.employee-form-section-copy h4 {
    font-size: 1.35rem;
}

.employee-info-grid-v2,
.employee-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.employee-info-box,
.employee-summary-box,
.employee-document-card,
.employee-note-card,
.qualification-feature-card,
.qualification-feature-card.alt {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--theme-surface-strong);
}

.employee-info-box.full {
    grid-column: 1 / -1;
}

.employee-info-box span,
.employee-detail-row-v2 span,
.employee-summary-box span,
.employee-document-card span,
.qualification-feature-card span {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.employee-detail-rows-v2,
.employee-mini-list {
    display: grid;
    gap: 2px;
}

.employee-detail-row-v2,
.employee-mini-row {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 20px;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
}

.employee-detail-row-v2:last-child,
.employee-mini-row:last-child {
    border-bottom: 0;
}

.qualifications-card-v2 {
    background: var(--theme-surface-strong);
}

.qualification-grid-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.qualification-feature-card {
    border-color: var(--c460);
    background: var(--theme-surface-strong);
}

.qualification-feature-card.alt p,
.employee-document-card p,
.employee-note-card p {
    margin: 0;
    color: var(--c497);
    line-height: 1.7;
}

.employee-form-layout-v2 {
    display: grid;
    gap: 18px;
}

.employee-form-section-v2 {
    display: grid;
    gap: 18px;
    padding: 18px;
    border-radius: 22px;
    background: var(--theme-surface-strong);
    border: 1px solid var(--line);
    scroll-margin-top: 6rem;
}

@media (max-width: 1100px) {
    .employee-page-grid {
        grid-template-columns: 1fr;
    }

    .employee-section-nav-card {
        position: static;
    }

    .employee-section-nav {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

@media (max-width: 760px) {
    .employee-hero-card,
    .employee-hero-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .employee-info-grid-v2,
    .employee-summary-grid,
    .qualification-grid-v2,
    .employee-detail-row-v2,
    .employee-mini-row,
    .grid-form {
        grid-template-columns: 1fr;
    }

    .employee-section-nav {
        grid-template-columns: 1fr;
    }
}

.employee-profile-page-v3 {
    gap: 1.5rem;
}

.employee-hero-card-v3 {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.9fr);
}

.employee-hero-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
}

.employee-hero-facts {
    display: grid;
    gap: 0.9rem;
}

.employee-hero-facts div {
    border: 1px solid var(--c528);
    border-radius: 18px;
    background: var(--theme-surface-strong);
    padding: 1rem 1.1rem;
}

.employee-hero-facts span,
.employee-stat-card-v3 span,
.employee-callout-card-v3 span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.employee-hero-facts strong,
.employee-stat-card-v3 strong,
.employee-callout-card-v3 strong {
    display: block;
    margin-top: 0.45rem;
    font-size: 1.05rem;
}

.employee-page-grid-v3 {
    align-items: start;
}

.employee-section-card-v3 {
    display: grid;
    gap: 1.25rem;
}

.employee-rich-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.employee-rich-grid .employee-info-box {
    min-height: 108px;
}

.employee-detail-rows-v3 {
    gap: 0;
}

.employee-detail-rows-v3 .employee-detail-row-v2 {
    align-items: start;
}

.employee-detail-rows-v3 .employee-detail-row-v2 strong {
    line-height: 1.6;
}

.qualification-grid-v3 .qualification-feature-card p {
    margin: 0.55rem 0 0;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.6;
}

.employee-stat-grid-v3 {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.employee-stat-card-v3,
.employee-callout-card-v3,
.employee-document-card-v3,
.employee-note-card-v3 {
    border: 1px solid var(--c528);
    border-radius: 22px;
    background: var(--theme-surface-strong);
    padding: 1.15rem 1.2rem;
}

.employee-stat-card-v3 small,
.employee-callout-card-v3 p,
.employee-document-card-v3 p,
.employee-note-card-v3 p {
    display: block;
    margin: 0.45rem 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.employee-callout-grid-v3 {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.employee-document-card-v3,
.employee-note-card-v3 {
    padding: 1.3rem 1.35rem;
}

.employee-document-card-v3 strong {
    display: block;
    margin-top: 0.4rem;
    font-size: 1rem;
}

.employee-form-card-v3 {
    width: 100%;
    max-width: none;
}

.employee-form-header-v3 {
    margin-bottom: 1.25rem;
}

.employee-form-layout-v3 {
    gap: 1.25rem;
}

.employee-form-layout-v3 .employee-form-section-v2 {
    padding: 1.4rem;
}

@media (max-width: 1180px) {
    .employee-hero-card-v3,
    .employee-callout-grid-v3,
    .employee-stat-grid-v3,
    .employee-rich-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .employee-hero-card-v3,
    .employee-callout-grid-v3,
    .employee-stat-grid-v3,
    .employee-rich-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .employee-hero-aside {
        align-items: stretch;
    }
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 58px;
}

.checkbox-field label {
    margin: 0;
}

.checkbox-field .form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
}

.employee-detail-card-contrast {
    background: var(--theme-surface-strong);
}

.employee-card-head-inline {
    margin-bottom: 1rem;
}

.employee-fact-list {
    display: grid;
    border: 1px solid var(--c532);
    border-radius: 24px;
    background: var(--theme-surface-strong);
    overflow: hidden;
}

.employee-fact-row {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    align-items: start;
    gap: 1rem 1.5rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--c533);
}

.employee-fact-row:last-child {
    border-bottom: 0;
}

.employee-fact-label {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--c534);
    font-size: 0.95rem;
    font-weight: 600;
}

.employee-fact-label::before {
    content: '';
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 12px;
    border: 1px solid var(--c535);
    background: var(--theme-surface-strong);
    box-shadow: inset 0 1px 0 var(--c536);
    flex-shrink: 0;
}

.employee-fact-value {
    color: var(--c537);
    font-size: 0.97rem;
    font-weight: 700;
    line-height: 1.7;
    word-break: break-word;
}

.employee-fact-row-wide {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
}

@media (max-width: 780px) {
    .employee-fact-row,
    .employee-fact-row-wide {
        grid-template-columns: minmax(0, 1fr);
    }

    .employee-fact-value {
        padding-left: 2.9rem;
    }
}

.employee-profile-shell-alt {
    display: grid;
    gap: 1rem;
}

.employee-overview-bar,
.employee-tabs-panel,
.employee-data-card {
    padding: 1.2rem 1.3rem;
    background: var(--theme-surface-strong);
}

.employee-overview-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.employee-overview-bar h3,
.employee-data-head h3 {
    margin: 0;
    font-size: 1.28rem;
}

.employee-overview-bar p {
    margin: 0.45rem 0 0;
    color: var(--muted);
    line-height: 1.7;
    max-width: 60ch;
}

.employee-overview-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.employee-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: var(--c539);
    color: var(--c540);
    font-size: 0.82rem;
    font-weight: 700;
}

.employee-tabs-panel {
    overflow: hidden;
}

.employee-top-tabs {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
}

.employee-top-tabs a {
    flex: 0 0 auto;
    text-decoration: none;
    color: var(--c541);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.9rem 1rem;
    border-bottom: 2px solid transparent;
}

.employee-top-tabs a:hover {
    color: var(--c542);
    border-bottom-color: var(--c543);
}

.employee-data-card {
    display: grid;
    gap: 1rem;
}

.employee-data-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.employee-data-grid {
    display: grid;
    gap: 1rem 1.2rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 1.25rem;
    border: 1px solid var(--c544);
    border-radius: 22px;
    background: var(--theme-surface-strong);
}

.employee-data-item {
    display: grid;
    gap: 0.4rem;
    align-content: start;
    min-height: 3.9rem;
}

.employee-data-item span {
    color: var(--c545);
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    text-transform: none;
}

.employee-data-item strong {
    color: var(--c537);
    font-size: 0.98rem;
    line-height: 1.65;
    word-break: break-word;
}

.employee-data-item-wide {
    grid-column: span 3;
}

@media (max-width: 1100px) {
    .employee-data-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .employee-data-item-wide {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .employee-overview-bar,
    .employee-data-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .employee-data-grid {
        grid-template-columns: 1fr;
    }

    .employee-data-item-wide {
        grid-column: auto;
    }
}

html {
    scroll-behavior: smooth;
}

.employee-tabs-panel {
    position: sticky;
    top: 1rem;
    z-index: 4;
    box-shadow: none;
}

.employee-top-tabs {
    scrollbar-width: none;
}

.employee-top-tabs::-webkit-scrollbar {
    display: none;
}

.employee-top-tabs a {
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
    border-radius: 12px 12px 0 0;
}

.employee-top-tabs a.active {
    color: var(--c537);
    border-bottom-color: var(--c547);
    background: var(--theme-surface-strong);
}

.employee-data-card {
    scroll-margin-top: 6rem;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.employee-data-grid {
    min-height: 0;
}

.employee-data-item {
    transition: transform 180ms ease, background-color 180ms ease;
}

.employee-data-item:hover {
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .employee-top-tabs a,
    .employee-data-card,
    .employee-data-item {
        transition: none;
    }
}

@media (max-width: 760px) {
    .employee-tabs-panel {
        top: 0.5rem;
    }

    .employee-data-card {
        scroll-margin-top: 5rem;
    }
}


.employee-contact-groups {
    display: grid;
    gap: 1rem;
}

.employee-contact-group {
    display: grid;
    gap: 0.9rem;
    padding: 1.1rem;
    border: 1px solid var(--c544);
    border-radius: 22px;
    background: var(--theme-surface-strong);
}

.employee-contact-group-head {
    display: grid;
    gap: 0.2rem;
}

.employee-contact-group-head h4 {
    margin: 0;
    color: var(--c537);
    font-size: 1.05rem;
}

.employee-data-grid-compact {
    padding: 0;
    border: 0;
    border-radius: 0;
    min-height: 0;
}

.salary-history-timeline {
    position: relative;
    display: grid;
    gap: 1rem;
    padding: 0.25rem 0 0.1rem 1.35rem;
}

.salary-history-timeline::before {
    content: '';
    position: absolute;
    top: 0.7rem;
    bottom: 0.6rem;
    left: 0.42rem;
    width: 2px;
    background: var(--theme-surface-strong);
}

.salary-history-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 0.95rem minmax(0, 700px);
    gap: 0.85rem;
    align-items: start;
}

.salary-history-timeline-marker {
    position: relative;
    z-index: 1;
    width: 0.9rem;
    height: 0.9rem;
    margin-top: 0.55rem;
    border-radius: 999px;
    border: 2px solid var(--c142);
    background: var(--theme-surface-strong);
    box-shadow: 0 0 0 4px var(--c439);
}

.salary-history-entry {
    position: relative;
    display: grid;
    gap: 0.55rem;
    width: min(100%, 700px);
    justify-self: start;
    padding: 0.95rem 1rem 1rem 1.05rem;
    border: 1px solid var(--c544);
    border-radius: 18px;
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.salary-history-entry::before {
    content: '';
    position: absolute;
    top: 1rem;
    left: -0.68rem;
    width: 0.68rem;
    height: 2px;
    background: var(--c455);
}

.salary-history-entry-date {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.32rem 0.68rem;
    border-radius: 999px;
    background: var(--theme-surface-strong);
    color: var(--theme-surface-strong);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: none;
}

.salary-history-entry-head {
    display: block;
}

.salary-history-entry-head strong {
    color: var(--c537);
    font-size: 1rem;
}

.salary-history-entry-summary,
.salary-history-entry-text {
    color: var(--c554);
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 760px) {
    .salary-history-timeline {
        padding-left: 1.05rem;
    }

    .salary-history-timeline::before {
        left: 0.32rem;
    }

    .salary-history-timeline-item {
        grid-template-columns: 0.85rem minmax(0, 1fr);
        gap: 0.7rem;
    }

    .salary-history-entry {
        width: 100%;
        padding: 0.9rem 0.9rem 0.95rem 0.95rem;
    }

    .salary-history-entry::before {
        left: -0.55rem;
        width: 0.55rem;
    }
}

@media (min-width: 900px) {
    .employee-contact-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .employee-data-grid-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .employee-data-grid-compact .employee-data-item-wide {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .employee-contact-group {
        padding: 1rem;
    }

    .employee-data-grid-compact .employee-data-item-wide {
        grid-column: auto;
    }
}


.employee-identity-grid {
    column-gap: 1.25rem;
    row-gap: 1rem;
    align-items: start;
}

.employee-identity-grid .full-width {
    margin-top: 0.15rem;
}

/* Minimalist Monochrome Design System */
:root {
    --mono-bg: var(--theme-surface-strong);
    --mono-fg: var(--c254);
    --mono-muted: var(--c555);
    --mono-muted-fg: var(--c556);
    --mono-border: var(--c254);
    --mono-border-light: var(--c557);
    --mono-card: var(--theme-surface-strong);
    --mono-inverse: var(--c254);
    --mono-inverse-fg: var(--theme-surface-strong);
    --font-display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --font-mono: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --radius-sm: 0px;
    --radius-md: 0px;
    --radius-lg: 0px;
    --radius-xl: 0px;
    --shadow-soft: none;
}

html {
    background: var(--mono-bg);
}

body {
    position: relative;
    background: var(--mono-bg);
    color: var(--mono-fg);
    font-family: var(--font-body);
}

body::before,
body::after {
    content: "";
    inset: 0;
    pointer-events: none;
    position: fixed;
    z-index: 0;
}

body::before {
    background: none;
    opacity: 0;
}

body::after {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.025;
}

.page-shell,
.login-shell {
    position: relative;
    z-index: 1;
}

.main-panel {
    background: transparent;
}

.sidebar {
    background: var(--mono-inverse);
    border: 2px solid var(--mono-border);
    border-radius: 0;
    box-shadow: none;
    color: var(--mono-inverse-fg);
}

.sidebar-head,
.sidebar-group + .sidebar-group {
    border-color: var(--c307);
}

.brand-copy strong,
.brand-copy small,
.sidebar-label,
.sidebar-nav a {
    color: var(--mono-inverse-fg);
}

.brand-copy strong {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.brand-copy small,
.sidebar-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand-mark,
.sidebar-toggle,
.nav-icon {
    border-radius: 0;
    box-shadow: none;
}

.brand-mark {
    background: var(--mono-bg);
    color: var(--mono-fg);
}

.sidebar-toggle {
    border: 1px solid var(--c558);
    color: var(--mono-inverse-fg);
}

.sidebar-nav a {
    border: 1px solid transparent;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 100ms linear, color 100ms linear, border-color 100ms linear;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--mono-bg);
    border-color: var(--mono-bg);
    color: var(--mono-fg);
}

.sidebar-nav a:hover .nav-icon,
.sidebar-nav a.active .nav-icon {
    background: transparent;
    border-color: var(--mono-border);
    color: var(--mono-fg);
}

.nav-icon {
    background: transparent;
    border: 1px solid var(--c558);
    color: currentColor;
}

.topbar {
    align-items: end;
    border-bottom: 4px solid var(--mono-border);
    margin-bottom: 2.75rem;
    padding-bottom: 1.35rem;
}

.topbar h1,
.login-brand h1,
.employee-overview-bar h3,
.employee-data-head h3 {
    color: var(--mono-fg);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.05em;
}

.topbar h1 {
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    line-height: 1.15;
    max-width: none;
}

.topbar p,
.employee-overview-bar p,
.login-copy {
    color: var(--mono-muted-fg);
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.7;
}

.eyebrow,
.login-brand .eyebrow,
.employee-data-item span,
.salary-history-label {
    color: var(--mono-muted-fg);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.search-shell,
input,
select,
textarea {
    background: transparent;
    border: 0;
    border-bottom: 2px solid var(--mono-border);
    border-radius: 0;
    box-shadow: none;
    color: var(--mono-fg);
    font-family: var(--font-body);
}

.search-shell {
    padding: 0 0 0.85rem;
}

.search-shell svg,
.search-shell .button-icon {
    color: var(--mono-fg);
}

input::placeholder,
textarea::placeholder,
.search-shell input::placeholder {
    color: var(--mono-muted-fg);
    font-style: italic;
}

input:focus,
select:focus,
textarea:focus,
.search-shell:focus-within {
    border-bottom-width: 4px;
    outline: 2px solid transparent;
}

.button,
.button.secondary,
.button.ghost,
a.button,
button,
input[type="submit"] {
    border-radius: 0;
    box-shadow: none;
    font-family: var(--font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background-color 100ms linear, color 100ms linear, border-color 100ms linear;
}

.button,
a.button,
input[type="submit"] {
    background: var(--mono-inverse);
    border: 2px solid var(--mono-border);
    color: var(--mono-inverse-fg);
}

.button:hover,
.button:focus-visible,
a.button:hover,
a.button:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible {
    background: var(--mono-bg);
    color: var(--mono-fg);
}

.button.secondary,
.button.ghost {
    background: transparent;
    border: 2px solid var(--mono-border);
    color: var(--mono-fg);
}

.button.secondary:hover,
.button.secondary:focus-visible,
.button.ghost:hover,
.button.ghost:focus-visible {
    background: var(--mono-inverse);
    color: var(--mono-inverse-fg);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--mono-border);
    outline-offset: 3px;
}

.panel,
.stat-card,
.table-wrap,
.login-card,
.employee-overview-bar,
.employee-tabs-panel,
.employee-data-card,
.employee-contact-group,
.salary-history-entry {
    background: var(--mono-card);
    border: 1px solid var(--mono-border);
    border-radius: 0;
    box-shadow: none;
}

.panel,
.stat-card,
.table-wrap,
.login-card {
    padding: 1.75rem;
}

.table-wrap thead th {
    border-bottom: 2px solid var(--mono-border);
    color: var(--mono-fg);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.table-wrap tbody tr + tr td {
    border-top: 1px solid var(--mono-border-light);
}

.login-body {
    background: var(--mono-bg);
}

.login-shell {
    width: min(calc(100vw - 48px), 56rem);
}

.login-card {
    grid-template-columns: minmax(15rem, 0.9fr) minmax(18rem, 1fr);
    gap: clamp(1.25rem, 4vw, 2.25rem);
    max-width: none;
}

.login-brand {
    min-width: 0;
}

.login-brand h1 {
    font-size: clamp(2rem, 4.2vw, 3rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.login-form {
    min-width: 0;
}

.login-form input {
    background: var(--c440);
    border: 1px solid var(--mono-border-light);
    border-radius: 0.85rem;
}

.login-form input:focus {
    border-color: var(--c559);
    box-shadow: 0 0 0 4px var(--c560);
}

.employee-profile-shell-alt {
    gap: 1.8rem;
}

.employee-overview-bar,
.employee-tabs-panel,
.employee-data-card {
    padding: 1.7rem;
}

.employee-overview-bar {
    border-top: 4px solid var(--mono-border);
}

.employee-overview-bar h3,
.employee-data-head h3 {
    font-size: clamp(1rem, 2vw, 1.42rem);
    line-height: 1.05;
    margin-bottom: 0.75rem;
}

.employee-role-badge,
.employee-chip {
    background: var(--mono-inverse);
    border: 1px solid var(--mono-border);
    border-radius: 0;
    color: var(--mono-inverse-fg);
    font-family: var(--font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.employee-top-tabs {
    border-bottom: 2px solid var(--mono-border);
    gap: 0.8rem;
    padding-bottom: 0.85rem;
}

.employee-top-tabs a {
    border: 1px solid var(--mono-border);
    border-radius: 0;
    color: var(--mono-fg);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    padding: 0.8rem 1rem;
    text-transform: uppercase;
}

.employee-top-tabs a:hover,
.employee-top-tabs a.active {
    background: var(--mono-inverse);
    color: var(--mono-inverse-fg);
}

.employee-data-card {
    border-top-width: 4px;
}

.employee-data-grid,
.employee-data-grid-compact,
.employee-identity-grid {
    background: transparent;
    padding: 1.3rem;
}

.employee-data-item strong,
.employee-data-item a,
.employee-contact-group strong {
    color: var(--mono-fg);
    font-family: var(--font-body);
    font-size: 1.16rem;
    font-weight: 600;
    line-height: 1.55;
}

.employee-contact-group {
    padding: 1.25rem;
}

.employee-contact-group p,
.employee-data-item p,
.salary-history-entry-summary,
.salary-history-entry-text {
    color: var(--mono-muted-fg);
}

.salary-history {
    margin-top: 2.2rem;
}

.salary-history-timeline {
    padding-left: 1.75rem;
}

.salary-history-timeline::before {
    background: var(--mono-border);
    left: 0.35rem;
    opacity: 1;
    width: 1px;
}

.salary-history-timeline-item {
    gap: 1rem;
    grid-template-columns: 0.8rem minmax(0, 42rem);
}

.salary-history-dot {
    background: var(--mono-bg);
    border: 3px solid var(--mono-border);
    box-shadow: none;
    height: 0.9rem;
    width: 0.9rem;
}

.salary-history-entry {
    background: var(--mono-card);
    border: 1px solid var(--mono-border);
    border-top-width: 4px;
    border-radius: 0;
    max-width: 42rem;
    padding: 1.2rem 1.2rem 1.25rem;
}

.salary-history-entry::before {
    background: var(--mono-border);
    height: 1px;
    left: -0.9rem;
    top: 1.2rem;
    width: 0.9rem;
}

.salary-history-entry-date {
    background: var(--mono-inverse);
    border: 1px solid var(--mono-border);
    border-radius: 0;
    box-shadow: none;
    color: var(--mono-inverse-fg);
    display: inline-flex;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    padding: 0.45rem 0.7rem;
    text-transform: uppercase;
}

.salary-history-entry-head strong {
    color: var(--mono-fg);
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.salary-history-entry-summary {
    font-size: 1.02rem;
}

@media (max-width: 1024px) {
    .topbar h1 {
        font-size: clamp(1.3rem, 3.6vw, 1.65rem);
        max-width: none;
    }

    .sidebar {
        border-width: 0 2px 0 0;
    }
}

@media (max-width: 760px) {
    .login-shell {
        width: min(calc(100vw - 32px), 34rem);
    }

    .login-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }

    .login-brand h1 {
        font-size: clamp(1.85rem, 10vw, 2.65rem);
    }

    .topbar {
        margin-bottom: 2rem;
    }

    .employee-overview-bar h3,
    .employee-data-head h3 {
        font-size: clamp(0.95rem, 5.5vw, 1.07rem);
    }

    .topbar h1 {
        font-size: clamp(1.25rem, 6vw, 1.55rem);
    }

    .panel,
    .stat-card,
    .table-wrap,
    .login-card,
    .employee-overview-bar,
    .employee-tabs-panel,
    .employee-data-card,
    .employee-contact-group,
    .salary-history-entry {
        padding: 1.1rem;
    }

    .salary-history-timeline {
        padding-left: 1.15rem;
    }

    .salary-history-timeline::before {
        left: 0.26rem;
    }

    .salary-history-timeline-item {
        gap: 0.7rem;
        grid-template-columns: 0.55rem minmax(0, 1fr);
    }

    .salary-history-entry {
        max-width: 100%;
    }

    .salary-history-entry::before {
        left: -0.7rem;
        width: 0.7rem;
    }
}

/* Minimalist Monochrome Refinements */
.sidebar-toggle,
.sidebar-toggle-inline {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--mono-inverse-fg);
    padding: 0.25rem;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus-visible,
.sidebar-toggle-inline:hover,
.sidebar-toggle-inline:focus-visible {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--mono-inverse-fg);
    transform: none;
}

.employee-bullet-list {
    display: grid;
    gap: 0.45rem;
    list-style: disc;
    margin: 0.5rem 0 0 1.2rem;
    padding: 0;
}

.employee-bullet-list li {
    color: var(--mono-fg);
    font-family: var(--font-body);
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.5;
}

.employee-bullet-list li::marker {
    color: var(--mono-fg);
}

.stats-grid,
.dashboard-grid,
.dashboard-main,
.dashboard-side,
.department-page,
.department-member-list,
.cards-grid,
.content-grid,
.detail-grid,
.form-actions,
.toolbar {
    gap: 1rem;
}

.stats-grid,
.dashboard-stats {
    margin-bottom: 1.5rem;
}

.panel-header,
.department-roster-header {
    align-items: end;
    margin-bottom: 1rem;
}

.panel-header h3,
.department-roster-header h3,
.department-directory-header h2,
.department-directory-header h3,
.page-head h1,
.page-head h2,
.page-head h3 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    letter-spacing: -0.03em;
    line-height: 1;
}

.department-directory-header h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.metric-card,
.mini-card,
.side-list-item,
.department-member-card,
.department-meta-chip,
.detail-grid div,
.toolbar.compact-toolbar {
    background: var(--mono-card);
    border: 1px solid var(--mono-border);
    border-radius: 0;
    box-shadow: none;
}

.metric-card {
    align-items: flex-start;
    gap: 1rem;
    min-height: 0;
    padding: 1.5rem;
}

.metric-card p,
.department-stat-label,
.department-roster-count,
.mini-card p,
.detail-grid span,
.muted-note,
.compact-toolbar label,
.side-list-item small,
.person-cell small,
.department-meta-chip span {
    color: var(--mono-muted-fg);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.metric-card strong {
    display: block;
    margin: 0.45rem 0 0.3rem;
    font-size: 2.35rem;
    line-height: 1;
}

.metric-card small,
.department-hero-text,
.department-member-main p,
.hero-copy {
    color: var(--mono-muted-fg);
    line-height: 1.7;
}

.metric-icon,
.metric-icon.sky,
.metric-icon.violet,
.metric-icon.green,
.metric-icon.amber,
.department-stat-icon {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: currentColor;
    height: auto;
    justify-content: center;
    width: auto;
}

.metric-icon svg,
.department-stat-icon svg {
    width: 1.2rem;
    height: 1.2rem;
}

.text-link,
.table-link,
.side-list-link,
.mini-card-link {
    border-bottom: 1px solid var(--mono-border);
    color: var(--mono-fg);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    padding-bottom: 0.15rem;
    text-decoration: none;
    text-transform: uppercase;
}

.text-link:hover,
.table-link:hover,
.side-list-link:hover,
.mini-card-link:hover {
    color: var(--mono-fg);
}

.pill,
.pill-soft,
.pill.pending,
.pill.approved,
.pill.rejected,
.pill.status-active,
.pill.status-resigned,
.pill.status-on_leave,
.pill.status-draft,
.pill.status-finalized {
    background: var(--mono-card);
    border: 1px solid var(--mono-border);
    border-radius: 0;
    color: var(--mono-fg);
}

.avatar-badge,
.department-member-avatar {
    background: var(--mono-card);
    border: 1px solid var(--mono-border);
    border-radius: 0;
    color: var(--mono-fg);
}

.dashboard-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.92fr);
}

.table-panel,
.department-roster-panel,
.form-panel {
    padding: 1.5rem;
}

.table-wrap {
    border-radius: 0;
    padding: 0;
}

thead th {
    background: transparent;
}

.department-hero {
    background: var(--mono-card);
    border-radius: 0;
    box-shadow: inset 0 4px 0 var(--mono-border);
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr);
    padding: 1.75rem;
}

.department-hero-copy h2 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 4.4rem);
    letter-spacing: -0.05em;
    line-height: 0.94;
    margin: 0.65rem 0 1rem;
}

.department-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    background: var(--mono-inverse);
    border: 1px solid var(--mono-border);
    border-top-width: 4px;
    border-radius: 1.25rem;
}

.department-stat-card {
    background: transparent;
    border: 0;
    border-top: 1px solid var(--c561);
    border-radius: 0;
    box-shadow: none;
    color: var(--mono-inverse-fg);
    display: grid;
    grid-template-columns: 1.25rem minmax(0, 1fr);
    gap: 0.85rem 1rem;
    align-items: center;
    min-height: 7rem;
    padding: 1.35rem 1.5rem;
}

.department-stat-card:first-child {
    border-top: 0;
}

.department-stat-card.wide {
    grid-column: 1 / -1;
}

.department-stat-card.compact {
    grid-template-columns: minmax(4rem, auto) auto minmax(0, 1fr);
    align-items: center;
    min-height: 5.25rem;
}

.department-stat-card.compact + .department-stat-card.compact {
    border-left: 1px solid var(--c561);
}

.department-stat-card > div {
    display: grid;
    gap: 0.45rem;
}

.department-stat-card.compact .department-stat-label {
    margin: 0;
}

.department-stat-label,
.department-stat-card small {
    color: var(--c463);
}

.department-stat-card strong {
    font-size: clamp(1.55rem, 2.4vw, 2.3rem);
    line-height: 1;
    margin: 0;
}

.department-stat-card.compact strong {
    display: inline-block;
    margin-right: 0.75rem;
    vertical-align: middle;
}

.department-stat-card.compact small {
    display: inline-block;
    vertical-align: middle;
}

.department-member-card {
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1rem 1.15rem;
    transition: none;
}

.department-member-card:hover {
    border-color: var(--mono-border);
    box-shadow: none;
    transform: none;
}

.department-member-avatar {
    height: 3.25rem;
    width: 3.25rem;
}

.department-member-main h4 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1;
    margin: 0 0 0.25rem;
}

.department-member-meta {
    align-items: stretch;
    gap: 0.75rem;
}

.department-meta-chip {
    min-width: 160px;
    padding: 0.85rem 1rem;
}

.department-empty-state {
    background: var(--mono-card);
    border-radius: 0;
    border: 1px dashed var(--mono-border);
    padding: 1.5rem;
}

.toolbar.compact-toolbar {
    align-items: end;
    padding: 1rem 1.1rem;
}

.compact-toolbar input,
.compact-toolbar select {
    min-height: 3rem;
}

.content-grid.two-up {
    align-items: start;
}

.cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-card {
    min-height: 0;
    padding: 1rem 1.1rem;
}

.mini-card h4,
.detail-grid strong {
    color: var(--mono-fg);
    font-family: var(--font-body);
    font-size: 1.35rem;
    line-height: 1.25;
}

.detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-grid div {
    padding: 1rem 1.1rem;
}

.form-actions.full-span {
    border-top: 4px solid var(--mono-border);
    justify-content: flex-start;
    margin-top: 0.2rem;
    padding-top: 1rem;
}

@media (max-width: 1024px) {
    .dashboard-grid,
    .department-hero,
    .cards-grid,
    .detail-grid,
    .content-grid.two-up {
        grid-template-columns: 1fr;
    }

    .department-member-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .metric-card,
    .department-hero,
    .department-stat-card,
    .department-roster-panel,
    .department-member-card,
    .mini-card,
    .detail-grid div,
    .toolbar.compact-toolbar {
        padding: 1rem;
    }

    .department-member-meta {
        justify-content: flex-start;
    }

    .department-meta-chip {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 560px) {
    .department-stat-grid {
        grid-template-columns: 1fr;
    }

    .department-stat-card.compact {
        grid-template-columns: minmax(4rem, auto) auto minmax(0, 1fr);
    }

    .department-stat-card.compact + .department-stat-card.compact {
        border-left: 0;
    }
}

.department-hero .department-summary-grid {
    align-self: start;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
}

.department-hero .department-summary-card {
    align-content: start;
    background: var(--mono-inverse);
    border: 1px solid var(--mono-border);
    border-radius: 8px;
    color: var(--mono-inverse-fg);
    display: grid;
    gap: 0.55rem;
    min-height: 8.25rem;
    padding: 1.15rem;
}

.department-hero .department-summary-card:not(.compact) {
    grid-template-columns: 1.35rem minmax(0, 1fr);
}

.department-hero .department-summary-card.compact {
    min-height: 6.25rem;
}

.department-hero .department-summary-icon {
    align-items: center;
    color: var(--c465);
    display: inline-flex;
    height: 1.35rem;
    justify-content: center;
    margin-top: 1.75rem;
    width: 1.35rem;
}

.department-hero .department-summary-icon svg {
    height: 1.1rem;
    width: 1.1rem;
}

.department-hero .department-summary-card div {
    min-width: 0;
}

.department-hero .department-summary-card span {
    color: var(--c562);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.department-hero .department-summary-card strong {
    color: var(--c511);
    display: block;
    font-family: var(--font-body);
    font-size: clamp(1.8rem, 2.2vw, 2.25rem);
    line-height: 1;
    margin: 0.35rem 0;
    word-break: break-word;
}

.department-hero .department-summary-card strong.department-summary-money {
    font-size: clamp(1.5rem, 2vw, 2.05rem);
    overflow-wrap: normal;
    white-space: nowrap;
    word-break: normal;
}

.department-hero .department-summary-card small {
    color: var(--c463);
    display: block;
    font-size: 0.86rem;
    line-height: 1.4;
}

.department-hero .department-gender-split {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    margin-top: 0.75rem;
}

.department-hero .department-gender-split span {
    color: var(--c171);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

@media (max-width: 1024px) {
    .department-hero .department-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .department-hero .department-summary-card:not(.compact) {
        grid-template-columns: minmax(0, 1fr);
    }

    .department-hero .department-summary-icon {
        margin-top: 0;
    }
}

@media (max-width: 760px) {
    .department-hero .department-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .department-hero .department-summary-grid {
        grid-template-columns: 1fr;
    }
}

.department-page .department-hero.panel {
    display: block;
}

.department-page .department-hero-copy {
    margin-bottom: 1.4rem;
}

.department-page .department-hero .department-summary-grid {
    grid-template-columns: minmax(280px, 0.9fr) minmax(380px, 1.25fr);
}

.department-page .department-hero .department-summary-card,
.department-page .department-hero .department-summary-card:not(.compact) {
    grid-template-columns: minmax(0, 1fr);
    min-height: 7.5rem;
}

.department-page .department-hero .department-summary-card:nth-child(2) {
    min-width: 380px;
}

.department-page .department-hero .department-summary-icon {
    display: none;
}

.department-page .department-hero .department-summary-card strong {
    font-size: clamp(1.7rem, 2vw, 2.15rem);
}

.department-page .department-hero .department-summary-card strong.department-summary-money {
    font-size: clamp(1.35rem, 1.55vw, 1.7rem);
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .department-page .department-hero .department-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .department-page .department-hero .department-summary-card:nth-child(2) {
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .department-page .department-hero .department-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Career History Timeline */
.career-history {
    margin-top: 0.7rem;
}

.career-history .salary-history-timeline {
    padding-left: 1.55rem;
}

.career-history-entry {
    max-width: 100%;
}

.career-history-entry-date {
    color: var(--mono-inverse-fg) !important;
    margin-bottom: 0.85rem;
}

.career-history-entry-head strong {
    color: var(--mono-fg);
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.career-history-entry-text {
    color: var(--mono-fg);
    font-family: var(--font-body);
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 760px) {
    .career-history .salary-history-timeline {
        padding-left: 1.15rem;
    }
}



/* Contact Detail Layout Normalization */
.employee-contact-groups {
    align-items: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.employee-contact-group {
    align-content: start;
    grid-template-rows: auto 1fr;
    height: 100%;
}

.employee-data-grid-compact {
    align-content: start;
    display: grid;
    gap: 1.35rem 2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: 100%;
    min-height: 0;
}

.employee-data-grid-compact .employee-data-item,
.employee-data-grid-compact .employee-data-item-wide {
    min-width: 0;
}

.employee-data-grid-compact .employee-data-item-wide {
    grid-column: 1 / -1;
}

@media (max-width: 980px) {
    .employee-contact-groups {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .employee-data-grid-compact {
        grid-template-columns: 1fr;
    }
}

/* Employee dashboard profile layout */
body:has(.employee-dashboard) {
    background: var(--c563);
}

body:has(.employee-dashboard) .topbar {
    margin-bottom: 1.1rem;
}

.employee-dashboard {
    display: grid;
    gap: 1rem;
    color: var(--c564);
}

.employee-profile-topbar,
.employee-dashboard-tabs,
.employee-dashboard-card,
.employee-side-card {
    background: var(--theme-surface-strong);
    border: 1px solid var(--c565);
    border-radius: 8px;
    box-shadow: none;
}

.employee-profile-topbar {
    display: grid;
    grid-template-columns: minmax(15rem, 1.2fr) minmax(22rem, 1.5fr) auto;
    align-items: center;
    gap: 1.4rem;
    padding: 1.15rem 1.35rem;
}

.employee-profile-identity,
.employee-profile-actions,
.employee-profile-facts {
    display: flex;
    align-items: center;
    min-width: 0;
}

.employee-profile-identity {
    gap: 0.9rem;
}

.employee-icon-button {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid var(--c567);
    border-radius: 50%;
    background: var(--theme-surface-strong);
    color: var(--c568);
    text-decoration: none;
}

.employee-icon-button svg {
    width: 1.05rem;
    height: 1.05rem;
}

.employee-profile-avatar {
    width: 3.3rem;
    height: 3.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 50%;
    background: var(--c569);
    color: var(--c570);
    font-size: 1rem;
    font-weight: 800;
}

.employee-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee-profile-name {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
}

.employee-profile-name h2 {
    margin: 0;
    overflow: hidden;
    color: var(--c571);
    font-size: 1.15rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-status-pill {
    width: fit-content;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: var(--c572);
    color: var(--theme-surface-strong);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.employee-status-on_leave {
    background: var(--c573);
}

.employee-status-resigned {
    background: var(--c574);
}

.employee-profile-facts {
    justify-content: space-between;
    gap: 1rem;
}

.employee-profile-facts article {
    min-width: 0;
    padding-left: 1.35rem;
    border-left: 1px solid var(--c565);
}

.employee-profile-facts span,
.employee-detail-table span,
.employee-address-block span,
.employee-side-info-grid span,
.employee-notes-block > span,
.employee-stat-grid span {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--c575);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.employee-profile-facts strong {
    display: block;
    overflow: hidden;
    color: var(--c571);
    font-size: 0.86rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-profile-actions {
    justify-content: flex-end;
    gap: 0.65rem;
}

.employee-count {
    color: var(--c576);
    font-size: 0.86rem;
    white-space: nowrap;
}

.employee-send-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.45rem;
    padding: 0 0.9rem;
    border-radius: 7px;
    background: var(--c092);
    color: var(--theme-surface-strong);
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.employee-send-button svg {
    width: 1rem;
    height: 1rem;
}

.employee-dashboard-tabs {
    position: sticky;
    top: 0.75rem;
    z-index: 3;
    display: flex;
    gap: 1.6rem;
    overflow-x: auto;
    padding: 0 1.25rem;
    border-radius: 0;
    scrollbar-width: none;
}

.employee-dashboard-tabs::-webkit-scrollbar {
    display: none;
}

.employee-dashboard-tabs a,
.employee-dashboard-tabs a.active {
    flex: 0 0 auto;
    padding: 1rem 0 0.72rem;
    border: 0;
    box-shadow: inset 0 -3px 0 transparent;
    border-radius: 0;
    background: transparent;
    color: var(--c577);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none;
}

.employee-dashboard-tabs a:hover,
.employee-dashboard-tabs a.active {
    box-shadow: inset 0 -3px 0 var(--c578);
    color: var(--c579);
}

body:has(.employee-dashboard) .employee-dashboard-tabs a,
body:has(.employee-dashboard) .employee-dashboard-tabs a.active,
body:has(.employee-dashboard) .employee-dashboard-tabs a:hover,
body:has(.employee-dashboard) .employee-dashboard-tabs a:focus-visible {
    border-top: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: transparent;
    color: var(--c577);
    box-shadow: none;
    font-family: inherit;
    letter-spacing: 0;
    text-transform: none;
}

body:has(.employee-dashboard) .employee-dashboard-tabs a.active,
body:has(.employee-dashboard) .employee-dashboard-tabs a:hover,
body:has(.employee-dashboard) .employee-dashboard-tabs a:focus-visible {
    border-bottom-color: var(--c579);
    color: var(--c579);
}

.employee-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 23rem);
    gap: 1rem;
    align-items: start;
}

.employee-dashboard-main,
.employee-dashboard-side {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.employee-dashboard-side {
    position: sticky;
    top: 4.9rem;
}

.employee-dashboard-card,
.employee-side-card {
    display: grid;
    gap: 1.1rem;
    padding: 1.15rem;
    scroll-margin-top: 5rem;
}

.employee-dashboard-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.employee-dashboard-card-head h3 {
    display: flex;
    align-items: center;
    gap: 0.62rem;
    min-width: 0;
    margin: 0;
    color: var(--c580);
    font-family: inherit;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.25;
}

.employee-edit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex: 0 0 auto;
    min-height: 2.1rem;
    padding: 0 0.75rem;
    border: 1px solid var(--c565);
    border-radius: 7px;
    background: var(--theme-surface-strong);
    color: var(--c581);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.employee-edit-link svg {
    width: 0.95rem;
    height: 0.95rem;
}

.employee-detail-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--c582);
}

.employee-detail-table article {
    min-width: 0;
    padding: 1.05rem 1rem 1.05rem 0;
    border-bottom: 1px solid var(--c582);
}

.employee-detail-table article:nth-child(2n) {
    padding-left: 1rem;
}

.employee-detail-table article:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.employee-detail-table .sensitive-data-item {
    position: relative;
    padding-right: 3.4rem;
}

.sensitive-eye-button {
    position: absolute;
    top: 50%;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border: 1px solid var(--c583);
    border-radius: 999px;
    background: var(--c584);
    color: var(--c585);
    cursor: pointer;
    transform: translateY(-50%);
}

.sensitive-eye-button svg {
    width: 1rem;
    height: 1rem;
}

.sensitive-eye-button:hover,
.sensitive-eye-button.is-active {
    border-color: var(--c585);
    background: var(--c585);
    color: var(--theme-surface-strong);
}

.sensitive-data-item.is-restricted strong,
.sensitive-data-item [data-sensitive-value] {
    color: var(--theme-slate-muted);
}

.employee-detail-table strong,
.employee-address-block strong,
.employee-side-info-grid strong,
.employee-notes-block strong,
.employee-stat-grid strong {
    display: block;
    min-width: 0;
    color: var(--c586);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.employee-detail-wide {
    grid-column: 1 / -1;
}

.employee-address-block {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--c582);
}

.employee-address-block article {
    padding: 1rem 0;
    border-bottom: 1px solid var(--c582);
}

.employee-address-block article:last-child {
    border-bottom: 0;
}

.employee-side-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.05rem 1rem;
    padding-top: 0.2rem;
}

.employee-side-info-grid strong {
    color: var(--c033);
    font-size: 0.84rem;
}

.employee-side-link {
    width: fit-content;
    color: var(--c580);
    font-size: 0.84rem;
    font-weight: 800;
}

.employee-side-link.compact {
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--c587);
    border-radius: 999px;
    background: var(--c588);
    color: var(--c092);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.employee-side-kicker {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--theme-slate-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.employee-holiday-card .employee-dashboard-card-head {
    align-items: flex-start;
}

.employee-holiday-card .employee-dashboard-card-head h3 {
    font-size: clamp(1.55rem, 2.4vw, 2.05rem);
    line-height: 1.05;
}

.employee-holiday-list {
    display: grid;
    gap: 0.8rem;
}

.employee-holiday-item {
    display: grid;
    grid-template-columns: minmax(6.8rem, auto) minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid var(--c589);
    border-radius: 10px;
    background: var(--theme-surface-strong);
}

.employee-holiday-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0 0.7rem;
    border: 1px solid var(--c590);
    border-radius: 8px;
    background: var(--c591);
    color: var(--c592);
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-align: center;
}

.employee-holiday-copy {
    min-width: 0;
}

.employee-holiday-item strong,
.employee-holiday-item small {
    display: block;
}

.employee-holiday-item strong {
    color: var(--c580);
    font-size: 0.94rem;
    font-weight: 850;
    line-height: 1.25;
}

.employee-holiday-item small {
    margin-top: 0.35rem;
    color: var(--c593);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 620px) {
    .employee-holiday-item {
        grid-template-columns: 1fr;
    }

    .employee-holiday-date {
        justify-content: flex-start;
        width: fit-content;
    }
}

.employee-tag-box,
.employee-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.employee-tag-box {
    min-height: 6.3rem;
    align-content: flex-start;
    padding: 0.8rem;
    border: 1px solid var(--c565);
    border-radius: 7px;
}

.employee-tag-box span,
.employee-tag-list strong {
    display: inline-flex;
    align-items: center;
    min-height: 1.85rem;
    padding: 0 0.65rem;
    border-radius: 999px;
    background: var(--c594);
    color: var(--c092);
    font-size: 0.8rem;
    font-weight: 800;
}

.employee-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.employee-stat-grid article,
.employee-stat-card {
    min-width: 0;
    padding: 0.9rem;
    border: 1px solid var(--c565);
    border-radius: 7px;
    background: var(--c595);
}

.employee-stat-card {
    display: grid;
    gap: 0.5rem;
    color: inherit;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.employee-stat-card:hover,
.employee-stat-card:focus-visible {
    border-color: var(--c596);
    background: var(--c584);
    box-shadow: none;
    transform: translateY(-1px);
    outline: 2px solid transparent;
}

.employee-stat-grid strong {
    font-size: 1.4rem;
    line-height: 1;
}

.employee-notes-block {
    display: grid;
    gap: 0.8rem;
    padding-top: 0.2rem;
}

.employee-evaluation-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
    gap: 0.9rem;
    align-items: start;
}

.employee-evaluation-card {
    display: grid;
    gap: 0.75rem;
    align-content: start;
    min-width: 0;
    padding: 0.95rem;
    border: 1px solid var(--c565);
    border-radius: 8px;
    background: var(--c054);
}

.employee-evaluation-card h4 {
    margin: 0;
    color: var(--c580);
    font-size: 0.95rem;
    font-weight: 850;
    line-height: 1.25;
}

.employee-performance-stats {
    margin-bottom: 0.9rem;
}

.employee-performance-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.9rem;
    margin-top: 0.9rem;
}

.employee-performance-form-grid.employee-performance-form-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.employee-inline-performance-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    align-content: start;
}

.employee-inline-performance-form .full-width {
    grid-column: 1 / -1;
}

.employee-inline-performance-form .field-group {
    min-width: 0;
    align-content: start;
    gap: 0.35rem;
}

.employee-inline-performance-form label {
    color: var(--c593);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.employee-inline-performance-form input,
.employee-inline-performance-form select,
.employee-inline-performance-form textarea {
    min-height: 2.55rem;
    border: 1px solid var(--c597);
    border-radius: 7px;
    background: var(--theme-surface-strong);
    padding: 0.7rem 0.8rem;
    font-size: 0.85rem;
}

.employee-inline-performance-form textarea {
    min-height: 4.5rem;
    resize: vertical;
}

.employee-inline-performance-form .form-actions {
    justify-content: flex-end;
    padding-top: 0.2rem;
}


.employee-evaluation-table {
    display: grid;
    border: 1px solid var(--c597);
    border-radius: 8px;
    overflow: hidden;
    background: var(--theme-surface-strong);
}

.employee-evaluation-table.supervisor {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr);
}

.employee-evaluation-table.self {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.45fr) minmax(0, 1.25fr);
}

.employee-evaluation-table article {
    min-width: 0;
    min-height: 6.4rem;
    padding: 0.85rem;
    border-right: 1px solid var(--c597);
}

.employee-evaluation-table article:last-child {
    border-right: 0;
}

.employee-evaluation-table span {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--c593);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.employee-evaluation-table strong {
    display: block;
    color: var(--c586);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.employee-yearly-evaluation-block {
    display: grid;
    gap: 0.9rem;
    margin-top: 0.95rem;
}

.employee-yearly-evaluation-list {
    display: grid;
    gap: 0.8rem;
}

.employee-yearly-evaluation-card {
    display: grid;
    gap: 0.85rem;
    padding: 0.95rem;
    border: 1px solid var(--c565);
    border-radius: 8px;
    background: var(--theme-surface-strong);
}

.employee-yearly-evaluation-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--c598);
}

.employee-yearly-evaluation-card header div {
    display: grid;
    gap: 0.2rem;
}

.employee-yearly-evaluation-card small,
.employee-yearly-evaluation-grid span {
    color: var(--c593);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.employee-yearly-evaluation-card strong {
    color: var(--c580);
    font-size: 0.95rem;
}

.employee-yearly-evaluation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.employee-yearly-evaluation-grid section {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
    padding: 0.75rem;
    border: 1px solid var(--c598);
    border-radius: 7px;
    background: var(--c054);
}

.employee-yearly-evaluation-grid p {
    margin: 0;
    color: var(--c586);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.employee-career-list {
    display: grid;
    gap: 0.7rem;
}

.employee-career-list article {
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem;
    border: 1px solid var(--c565);
    border-radius: 7px;
    background: var(--c595);
}

.employee-career-list small {
    color: var(--c575);
    font-weight: 700;
}

.employee-career-list p {
    margin: 0;
    color: var(--c599);
    line-height: 1.6;
}

@media (max-width: 1240px) {
    .employee-profile-topbar {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .employee-profile-facts {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .employee-profile-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 1020px) {
    .employee-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .employee-dashboard-side {
        position: static;
    }
}

@media (max-width: 680px) {
    .employee-profile-topbar,
    .employee-dashboard-card,
    .employee-side-card {
        padding: 0.95rem;
    }

    .employee-profile-identity,
    .employee-profile-actions {
        flex-wrap: wrap;
    }

    .employee-profile-facts {
        display: grid;
        grid-template-columns: 1fr;
    }

    .employee-profile-facts article {
        padding: 0;
        border-left: 0;
    }

    .employee-detail-table,
    .employee-side-info-grid,
    .employee-stat-grid,
    .employee-evaluation-grid,
    .employee-performance-form-grid,
    .employee-inline-performance-form,
    .employee-yearly-evaluation-grid,
    .employee-evaluation-table.supervisor,
    .employee-evaluation-table.self {
        grid-template-columns: 1fr;
    }

    .employee-evaluation-table article {
        border-right: 0;
        border-bottom: 1px solid var(--c597);
    }

    .employee-evaluation-table article:last-child {
        border-bottom: 0;
    }

    .employee-detail-table article,
    .employee-detail-table article:nth-child(2n) {
        padding-left: 0;
        padding-right: 0;
    }

    .employee-detail-table article:nth-last-child(-n + 2) {
        border-bottom: 1px solid var(--c582);
    }

    .employee-detail-table article:last-child {
        border-bottom: 0;
    }
}

/* Organization chart */
.org-chart-page {
    display: grid;
    gap: 1.1rem;
}

.org-chart-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--c565);
    border-radius: 8px;
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.org-chart-toolbar h2 {
    margin: 0.2rem 0 0;
    color: var(--c600);
    font-size: 1.35rem;
    line-height: 1.2;
}

.org-chart-metrics {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.org-chart-metrics article {
    min-width: 7.5rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--c565);
    border-radius: 8px;
    background: var(--c595);
}

.org-chart-metrics span,
.org-person-card span,
.org-directory-list span {
    display: block;
    color: var(--c601);
    font-size: 0.78rem;
    font-weight: 600;
}

.org-chart-metrics strong {
    display: block;
    margin-top: 0.2rem;
    color: var(--c602);
    font-size: 1.35rem;
    line-height: 1;
}

.org-chart-canvas {
    position: relative;
    overflow-x: auto;
    min-height: 42rem;
    padding: 1.4rem 1.2rem 1.8rem;
    border: 1px solid var(--c565);
    border-radius: 8px;
    background: var(--c603);
    box-shadow: none;
}

.org-chart-grid-bg {
    position: absolute;
    inset: 0;
    background-image: none;
    background-size: 18px 18px;
    opacity: 0.7;
    pointer-events: none;
}

.org-chart-root,
.org-chart-lanes {
    position: relative;
    z-index: 1;
}

.org-chart-root {
    display: flex;
    justify-content: center;
    min-width: 82rem;
    padding-bottom: 2.15rem;
}

.org-chart-root::after {
    content: '';
    position: absolute;
    bottom: 0.4rem;
    left: 3rem;
    right: 3rem;
    height: 1px;
    background: var(--c605);
}

.org-chart-lanes {
    display: grid;
    grid-template-columns: repeat(11, 15rem);
    align-items: start;
    gap: 1.15rem;
    min-width: 82rem;
}

.org-lane {
    position: relative;
    display: grid;
    gap: 1rem;
}

.org-lane::before {
    content: '';
    position: absolute;
    top: -1.75rem;
    left: 50%;
    width: 1px;
    height: 1.75rem;
    background: var(--c605);
}

.org-lane h3 {
    margin: 0;
    padding: 0.58rem 0.65rem;
    border-radius: 8px;
    background: var(--c606);
    color: var(--theme-surface-strong);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.org-lane-slate h3 {
    background: var(--c607);
}

.org-lane-blue h3 {
    background: var(--c608);
}

.org-lane-green h3 {
    background: var(--c609);
}

.org-lane-amber h3 {
    background: var(--c610);
}

.org-lane-teal h3 {
    background: var(--c611);
}

.org-lane-indigo h3 {
    background: var(--c612);
}

.org-lane-rose h3 {
    background: var(--c613);
}

.org-lane-purple h3 {
    background: var(--c614);
}

.org-lane-orange h3 {
    background: var(--c615);
}

.org-lane-gray h3 {
    background: var(--c616);
}

.org-lane-cyan h3 {
    background: var(--c617);
}

.org-lane-people {
    display: grid;
    gap: 0.8rem;
}

.org-person-card {
    display: grid;
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    min-height: 4.15rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--c618);
    border-radius: 8px;
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.org-person-card-root {
    width: 17rem;
}

.org-avatar {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--c620);
    color: var(--c092);
    font-size: 0.8rem;
    font-weight: 900;
}

.org-person-card strong {
    display: block;
    overflow: hidden;
    color: var(--c621);
    font-size: 0.84rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.org-person-card span {
    margin-top: 0.18rem;
    line-height: 1.35;
}

.org-directory-panel {
    padding: 1.1rem;
    border: 1px solid var(--c565);
    border-radius: 8px;
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.org-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.org-directory-card {
    display: grid;
    gap: 0.85rem;
    min-width: 0;
    padding: 0.95rem;
    border: 1px solid var(--c565);
    border-radius: 8px;
    background: var(--c622);
}

.org-directory-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.org-directory-card-head h4 {
    margin: 0;
    color: var(--c568);
    font-size: 1rem;
}

.org-directory-card-head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--c623);
    color: var(--c624);
    font-weight: 900;
}

.org-directory-list {
    display: grid;
}

.org-directory-list div {
    display: grid;
    gap: 0.18rem;
    padding: 0.65rem 0;
    border-top: 1px solid var(--c625);
}

.org-directory-list strong {
    color: var(--c626);
    font-size: 0.86rem;
}

@media (max-width: 1100px) {
    .org-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .org-chart-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .org-chart-metrics {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .org-chart-metrics article {
        min-width: 0;
    }

    .org-directory-grid {
        grid-template-columns: 1fr;
    }
}

/* Organization structure editor */
body:has(.org-structure-app) {
    background: var(--c627);
}

body:has(.org-structure-app) .topbar {
    display: none;
}

body:has(.org-structure-app) .main-panel {
    padding-top: 0;
}

.org-structure-app {
    min-height: calc(100vh - 2rem);
    overflow: hidden;
    border: 1px solid var(--c628);
    border-radius: 10px;
    background: var(--theme-surface-cool);
    box-shadow: none;
}

.org-editor-topbar,
.org-editor-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--theme-surface-strong);
    border-bottom: 1px solid var(--c630);
}

.org-editor-topbar {
    min-height: 4.2rem;
    padding: 0.85rem 1.25rem;
}

.org-editor-title,
.org-editor-actions,
.org-status-left,
.org-status-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.org-editor-title > strong {
    padding-left: 1rem;
    border-left: 1px solid var(--c631);
    color: var(--c632);
    font-size: 0.9rem;
}

.org-back-button,
.org-round-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--c633);
    border-radius: 50%;
    background: var(--theme-surface-strong);
    color: var(--c634);
}

.org-back-button {
    width: 2.2rem;
    height: 2.2rem;
}

.org-back-button svg,
.org-round-button svg,
.org-mini-button svg,
.org-search-field svg {
    width: 1rem;
    height: 1rem;
}

.org-editor-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    color: var(--c635);
    font-size: 1.05rem;
    font-weight: 900;
}

.org-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 0.3rem;
    background: var(--c636);
    color: var(--c637);
    font-size: 0.55rem;
    font-weight: 900;
    text-transform: uppercase;
}

.org-editor-button,
.org-mini-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.2rem;
    padding: 0 1.25rem;
    border: 1px solid var(--c638);
    border-radius: 6px;
    background: var(--theme-surface-strong);
    color: var(--c635);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.org-editor-button-save {
    min-width: 6.8rem;
    border-color: var(--c639);
    background: var(--c639);
    color: var(--theme-surface-strong);
}

.org-editor-statusbar {
    min-height: 3.4rem;
    padding: 0.62rem 1rem;
}

.org-status-left span {
    color: var(--c640);
    font-size: 0.8rem;
    font-weight: 700;
}

.org-round-button {
    width: 2rem;
    height: 2rem;
}

.org-editor-shell {
    display: grid;
    grid-template-columns: 17rem minmax(0, 1fr);
    height: calc(100vh - 10.6rem);
    min-height: 38rem;
    background: var(--c641);
}

.org-editor-sidebar {
    overflow-y: auto;
    padding: 1rem;
    border-right: 1px solid var(--c642);
    background: var(--theme-surface-strong);
}

.org-search-field {
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    min-height: 2.35rem;
    padding: 0 0.75rem;
    border: 1px solid var(--c643);
    border-radius: 7px;
    color: var(--c644);
}

.org-search-field input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--c637);
    font-size: 0.82rem;
}

.org-tree-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.15rem;
}

.org-tree-group {
    display: grid;
    gap: 0.7rem;
}

.org-tree-group > a {
    display: grid;
    grid-template-columns: 0.8rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.45rem;
    color: var(--c637);
    text-decoration: none;
}

.org-tree-caret {
    color: var(--c645);
    font-size: 0.72rem;
    font-weight: 900;
}

.org-tree-group strong {
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.org-tree-group em {
    min-width: 1.25rem;
    padding: 0.16rem 0.35rem;
    border-radius: 0.35rem;
    background: var(--c646);
    color: var(--c645);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
    text-align: center;
}

.org-tree-people {
    display: grid;
    gap: 0.65rem;
    padding-left: 1rem;
}

.org-tree-people span {
    display: grid;
    grid-template-columns: 1.55rem minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    color: var(--c647);
    font-size: 0.8rem;
    font-weight: 700;
}

.org-tree-people i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    background: var(--c648);
    color: var(--c639);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
}

.org-editor-canvas {
    position: relative;
    overflow: auto;
    background: var(--c649);
}

.org-canvas-grid {
    position: absolute;
    inset: 0;
    min-width: 164rem;
    min-height: 78rem;
    background-image: none;
    background-size: 18px 18px;
    opacity: 0.78;
    pointer-events: none;
}

.org-canvas-content {
    position: relative;
    z-index: 1;
    width: 164rem;
    min-height: 78rem;
    padding: 0.5rem 2.2rem 4rem;
}

.org-root-row {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 0 0 4.6rem;
}

.org-root-row::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 1.5px;
    height: 4.25rem;
    background: var(--c651);
}

.org-department-network {
    position: relative;
    display: grid;
    grid-template-columns: repeat(11, 13rem);
    align-items: start;
    gap: 1.5rem;
}

.org-department-network::before {
    content: '';
    position: absolute;
    top: -2.25rem;
    left: 6.5rem;
    right: 6.5rem;
    height: 1.5px;
    background: var(--c651);
}

.org-network-column {
    position: relative;
    display: grid;
    gap: 3.3rem;
}

.org-network-column::before {
    content: '';
    position: absolute;
    top: -2.25rem;
    left: 50%;
    width: 1.5px;
    height: 2.25rem;
    background: var(--c651);
}

.org-team-branch {
    position: relative;
    display: grid;
    gap: 1.55rem;
}

.org-team-branch::before {
    content: '';
    position: absolute;
    top: -2.8rem;
    bottom: 2.5rem;
    left: 50%;
    width: 1.5px;
    background: var(--c652);
}

.org-team-branch .org-node-card {
    position: relative;
}

.org-team-branch .org-node-card::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -1.55rem;
    width: 1.5px;
    height: 1.55rem;
    background: var(--c652);
}

.org-node-card {
    position: relative;
    display: grid;
    grid-template-columns: 2.2rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0.55rem 0.7rem;
    min-height: 5rem;
    padding: 0.75rem 0.8rem 0.55rem;
    border: 1px solid var(--c653);
    border-radius: 8px;
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.org-node-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 0 0 8px 8px;
    background: var(--c651);
}

.org-node-card-primary::after,
.org-network-slate .org-node-card::after {
    background: var(--c655);
}

.org-network-blue .org-node-card::after,
.org-network-indigo .org-node-card::after,
.org-network-cyan .org-node-card::after {
    background: var(--c651);
}

.org-network-green .org-node-card::after,
.org-network-teal .org-node-card::after {
    background: var(--c656);
}

.org-network-amber .org-node-card::after,
.org-network-orange .org-node-card::after {
    background: var(--c657);
}

.org-network-rose .org-node-card::after,
.org-network-purple .org-node-card::after {
    background: var(--c658);
}

.org-node-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    background: var(--c659);
    color: var(--c639);
    font-size: 0.75rem;
    font-weight: 900;
}

.org-node-copy {
    min-width: 0;
}

.org-node-copy strong,
.org-node-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.org-node-copy strong {
    color: var(--c632);
    font-size: 0.78rem;
    line-height: 1.25;
}

.org-node-copy span {
    margin-top: 0.16rem;
    color: var(--c660);
    font-size: 0.7rem;
    font-weight: 700;
}

.org-node-tools {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.35rem;
    color: var(--c661);
    font-size: 0.62rem;
    font-weight: 900;
    text-align: center;
}

.org-node-tools:empty {
    display: none;
}

.org-node-tools a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.35rem;
    padding: 0 0.4rem;
    border-radius: 4px;
    background: var(--c662);
    color: var(--c663);
    font-size: 0.66rem;
    font-weight: 900;
    text-decoration: none;
}

.org-node-tools a:hover,
.org-node-tools a:focus-visible {
    background: var(--c664);
    color: var(--c665);
}

.org-node-add {
    position: absolute;
    left: 50%;
    bottom: -1.02rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    transform: translateX(-50%);
    border: 0;
    border-radius: 50%;
    background: var(--c666);
    color: var(--theme-surface-strong);
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

@media (max-width: 900px) {
    .org-editor-shell {
        grid-template-columns: 1fr;
        height: auto;
    }

    .org-editor-sidebar {
        max-height: 18rem;
        border-right: 0;
        border-bottom: 1px solid var(--c642);
    }

    .org-editor-canvas {
        min-height: 38rem;
    }
}

/* Circular visual organization tree */
body:has(.org-tree-page) {
    background: var(--c646);
}

body:has(.org-tree-page) .topbar {
    margin-bottom: 1rem;
}

.org-tree-page {
    display: grid;
    gap: 1rem;
}

.org-tree-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--c565);
    border-radius: 8px;
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.org-tree-header h2 {
    margin: 0.2rem 0 0;
    color: var(--c626);
    font-size: 1.35rem;
    line-height: 1.2;
}

.org-tree-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0 1rem;
    border-radius: 7px;
    background: var(--c092);
    color: var(--theme-surface-strong);
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.org-tree-canvas {
    overflow: auto;
    min-height: 44rem;
    padding: 2.2rem 2rem 3rem;
    border: 1px solid var(--c565);
    border-radius: 8px;
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.org-tree-root,
.org-tree-branches,
.org-tree-branch,
.org-tree-children {
    position: relative;
}

.org-tree-root {
    display: flex;
    justify-content: center;
    min-width: 78rem;
    padding-bottom: 4.2rem;
}

.org-tree-root::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 2px;
    height: 4rem;
    transform: translateX(-50%);
    background: var(--c667);
}

.org-tree-branches {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    min-width: 78rem;
    padding-top: 3rem;
}

.org-tree-branches::before {
    content: '';
    position: absolute;
    top: 0;
    left: 7rem;
    right: 7rem;
    height: 2px;
    background: var(--c667);
}

.org-tree-branch {
    display: grid;
    justify-items: center;
    gap: 3.2rem;
    width: 10.5rem;
}

.org-tree-branch::before {
    content: '';
    position: absolute;
    top: -3rem;
    left: 50%;
    width: 2px;
    height: 3rem;
    transform: translateX(-50%);
    background: var(--c667);
}

.org-tree-children {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1.1rem;
    width: max-content;
    max-width: 32rem;
    flex-wrap: wrap;
    padding-top: 2.7rem;
}

.org-tree-children::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.85rem;
    right: 1.85rem;
    height: 2px;
    background: var(--c667);
}

.org-tree-children::after {
    content: '';
    position: absolute;
    top: -3.2rem;
    left: 50%;
    width: 2px;
    height: 3.2rem;
    transform: translateX(-50%);
    background: var(--c667);
}

.org-tree-children .org-tree-person::before {
    content: '';
    position: absolute;
    top: -2.7rem;
    left: 50%;
    width: 2px;
    height: 2.7rem;
    transform: translateX(-50%);
    background: var(--c667);
}

.org-tree-person {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 0.35rem;
    width: 9.6rem;
    color: var(--c668);
    text-align: center;
}

.org-tree-avatar {
    position: relative;
    width: 5.5rem;
    height: 5.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0.35rem solid currentColor;
    border-radius: 50%;
    background: var(--theme-surface-strong);
    box-shadow:
        inset 0 0 0 0.35rem var(--c671),
        0 6px 14px var(--c672);
    color: transparent;
    overflow: hidden;
}

.org-tree-avatar::before {
    content: '';
    position: absolute;
    top: 1.1rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: var(--c669);
}

.org-tree-avatar::after {
    content: '';
    position: absolute;
    bottom: 0.95rem;
    width: 2.55rem;
    height: 2.2rem;
    border-radius: 1.4rem 1.4rem 0.4rem 0.4rem;
    background: var(--c673);
}

.org-tree-person strong {
    display: block;
    width: 100%;
    overflow: hidden;
    color: var(--c674);
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.org-tree-person small {
    display: block;
    width: 100%;
    overflow: hidden;
    color: var(--c675);
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.org-tree-person-small {
    width: 6.7rem;
}

.org-tree-person-small .org-tree-avatar {
    width: 3.9rem;
    height: 3.9rem;
    border-width: 0.24rem;
}

.org-tree-person-small .org-tree-avatar::before {
    top: 0.75rem;
    width: 0.8rem;
    height: 0.8rem;
}

.org-tree-person-small .org-tree-avatar::after {
    bottom: 0.66rem;
    width: 1.85rem;
    height: 1.5rem;
}

.org-tree-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 0.15rem;
    opacity: 0;
    transition: opacity 140ms ease;
}

.org-tree-person:hover .org-tree-links,
.org-tree-person:focus-within .org-tree-links {
    opacity: 1;
}

.org-tree-links a {
    display: inline-flex;
    align-items: center;
    min-height: 1.35rem;
    padding: 0 0.38rem;
    border-radius: 999px;
    background: var(--c676);
    color: var(--c677);
    font-size: 0.58rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.org-ring-root {
    color: var(--c678);
}

.org-ring-slate {
    color: var(--c679);
}

.org-ring-blue,
.org-ring-indigo,
.org-ring-cyan {
    color: var(--c680);
}

.org-ring-green,
.org-ring-teal {
    color: var(--c681);
}

.org-ring-amber,
.org-ring-orange {
    color: var(--c682);
}

.org-ring-rose,
.org-ring-purple {
    color: var(--c683);
}

.org-ring-gray {
    color: var(--c684);
}

@media (max-width: 900px) {
    .org-tree-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .org-tree-canvas {
        padding: 1.5rem 1rem 2rem;
    }
}

/* Department directory redesign */
body:has(.department-directory-page) {
    background: var(--c685);
}

body:has(.department-directory-page) .topbar {
    align-items: flex-start;
    margin-bottom: 1.4rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--c308);
}

body:has(.department-directory-page) .topbar h1 {
    color: var(--c686);
    font-family: inherit;
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: 0;
}

body:has(.department-directory-page) .topbar .eyebrow,
.department-directory-page .eyebrow {
    width: fit-content;
    padding: 0;
    background: transparent;
    color: var(--c687);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

body:has(.department-directory-page) .search-shell {
    border: 1px solid var(--c308);
    border-radius: 8px;
    background: var(--theme-surface-strong);
    padding: 0.8rem 0.95rem;
}

body:has(.department-directory-page) .button,
body:has(.department-directory-page) .button.secondary,
body:has(.department-directory-page) .ghost-button {
    border-radius: 8px;
    letter-spacing: 0.08em;
}

.department-directory-page {
    display: grid;
    gap: 1.1rem;
}

.department-directory-hero.panel,
.department-directory-panel.panel {
    border: 1px solid var(--c308);
    border-radius: 10px;
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.department-directory-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.82fr);
    gap: 2rem;
    align-items: center;
    padding: 1.35rem;
}

.department-directory-copy {
    display: grid;
    gap: 0.65rem;
}

.department-directory-copy h2 {
    margin: 0;
    color: var(--c686);
    font-family: inherit;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.1;
}

.department-directory-text {
    max-width: 42rem;
    margin: 0;
    color: var(--c593);
    font-size: 0.96rem;
    line-height: 1.65;
}

.department-directory-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.directory-stat-tile {
    min-height: 6.2rem;
    padding: 1rem;
    border: 1px solid var(--c308);
    border-radius: 10px;
    background: var(--c054);
    box-shadow: none;
}

.directory-stat-tile.highlight {
    border-color: var(--c688);
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.directory-stat-tile span {
    display: block;
    color: var(--c691);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.directory-stat-tile strong {
    display: block;
    margin: 0.45rem 0 0.35rem;
    color: var(--c686);
    font-size: 1.75rem;
    line-height: 1;
}

.directory-stat-tile small {
    color: var(--c593);
    font-size: 0.78rem;
    font-weight: 700;
}

.directory-stat-tile.highlight span,
.directory-stat-tile.highlight strong,
.directory-stat-tile.highlight small {
    color: var(--theme-surface-strong);
}

.department-add-button {
    grid-column: 1 / -1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.6rem;
    padding: 0 1.05rem;
    border: 1px solid var(--c092);
    border-radius: 8px;
    background: var(--c092);
    color: var(--theme-surface-strong);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: none;
    transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.department-add-button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: var(--c307);
    font-size: 0.95rem;
    line-height: 1;
}

.department-add-button:hover,
.department-add-button:focus-visible {
    background: var(--c093);
    border-color: var(--c093);
    color: var(--theme-surface-strong);
    box-shadow: none;
    transform: translateY(-1px);
}

.department-directory-panel {
    padding: 1.3rem;
}

.department-directory-header {
    align-items: center;
    margin-bottom: 1rem;
}

.department-directory-header h2 {
    margin: 0.15rem 0 0;
    color: var(--c686);
    font-family: inherit;
    font-size: 1.35rem;
    font-weight: 850;
    letter-spacing: 0;
}

.department-directory-note {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0 0.75rem;
    border-radius: 999px;
    background: var(--c584);
    color: var(--c693);
    font-size: 0.82rem;
    font-weight: 850;
}

.department-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
}

.department-directory-card {
    display: grid;
    gap: 0.95rem;
    min-height: 10.6rem;
    padding: 1rem;
    border: 1px solid var(--c308);
    border-radius: 10px;
    background: var(--theme-surface-strong);
    color: var(--c686);
    box-shadow: none;
    text-decoration: none;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.department-directory-card:hover,
.department-directory-card:focus-visible {
    border-color: var(--c694);
    background: var(--c054);
    box-shadow: none;
    color: var(--c686);
    transform: translateY(-1px);
}

body:has(.department-directory-page) .department-directory-card:hover,
body:has(.department-directory-page) .department-directory-card:focus-visible {
    background: var(--c054);
    color: var(--c686);
}

body:has(.department-directory-page) .department-directory-card:hover h4,
body:has(.department-directory-page) .department-directory-card:hover strong,
body:has(.department-directory-page) .department-directory-card:focus-visible h4,
body:has(.department-directory-page) .department-directory-card:focus-visible strong {
    color: var(--c686);
}

.department-directory-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.department-directory-icon {
    width: 2.1rem;
    height: 2.1rem;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--c695);
    border-radius: 8px;
    background: var(--c380);
    color: var(--c092);
    line-height: 1;
}

.department-directory-icon svg {
    width: 1rem;
    height: 1rem;
    display: block;
    margin: auto;
    place-self: center;
}

.department-directory-code {
    padding: 0.42rem 0.55rem;
    border: 1px solid var(--c695);
    border-radius: 7px;
    background: var(--theme-surface-strong);
    color: var(--c696);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.department-directory-card h4 {
    margin: 0;
    color: var(--c686);
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.25;
}

.department-directory-card-bottom {
    display: grid;
    grid-template-columns: 1.05fr 1.45fr 0.9fr auto;
    gap: 0.75rem;
    align-items: end;
    padding-top: 0.85rem;
    border-top: 1px solid var(--c308);
}

.department-directory-card-bottom span:not(.department-directory-open) {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--c697);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.department-directory-card-bottom strong {
    display: block;
    color: var(--c686);
    font-size: 0.82rem;
    font-weight: 850;
    line-height: 1.25;
}

.department-directory-open {
    color: var(--c092);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.department-directory-card:hover .department-directory-card-bottom span:not(.department-directory-open) {
    color: var(--c697);
}

@media (max-width: 1180px) {
    .department-directory-hero {
        grid-template-columns: 1fr;
    }

    .department-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .department-directory-hero.panel,
    .department-directory-panel.panel {
        padding: 1rem;
    }

    .department-directory-stats,
    .department-directory-grid,
    .department-directory-card-bottom {
        grid-template-columns: 1fr;
    }

    .department-directory-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Department detail redesign */
body:has(.department-page):not(:has(.department-directory-page)) {
    background: var(--c685);
}

body:has(.department-page):not(:has(.department-directory-page)) .topbar {
    align-items: flex-start;
    margin-bottom: 1.4rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--c308);
}

body:has(.department-page):not(:has(.department-directory-page)) .topbar h1 {
    color: var(--c686);
    font-family: inherit;
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: 0;
}

body:has(.department-page):not(:has(.department-directory-page)) .topbar .eyebrow,
.department-page .eyebrow {
    color: var(--c687);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

body:has(.department-page):not(:has(.department-directory-page)) .search-shell {
    border: 1px solid var(--c308);
    border-radius: 8px;
    background: var(--theme-surface-strong);
    padding: 0.8rem 0.95rem;
}

.department-page {
    display: grid;
    gap: 1.1rem;
}

.department-page .department-hero.panel,
.department-page .department-roster-panel.panel {
    border: 1px solid var(--c308);
    border-radius: 10px;
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.department-page .department-hero.panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(28rem, 0.9fr);
    align-items: center;
    gap: 2rem;
    padding: 1.35rem;
    border-top: 1px solid var(--c308);
}

.department-page .department-hero-copy {
    display: grid;
    gap: 0.65rem;
    margin: 0;
}

.department-page .department-hero-copy h2 {
    margin: 0;
    color: var(--c686);
    font-family: inherit;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.05;
}

.department-page .department-hero-text {
    max-width: 44rem;
    margin: 0;
    color: var(--c593);
    font-size: 0.96rem;
    line-height: 1.65;
}

.department-page .department-hero .department-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    width: 100%;
}

.department-page .department-hero .department-summary-card,
.department-page .department-hero .department-summary-card:not(.compact) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.8rem;
    min-height: 8rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--c308);
    border-radius: 10px;
    background: var(--c054);
    color: var(--c686);
}

.department-page .department-hero .department-summary-card:nth-child(2) {
    min-width: 0;
    border-color: var(--c698);
    background: var(--theme-surface-strong);
    box-shadow: none;
    color: var(--theme-surface-strong);
}

.department-page .department-hero .department-summary-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-grid;
    place-items: center;
    align-self: start;
    justify-self: center;
    margin: 0;
    padding: 0;
    border-radius: 9px;
    background: var(--c699);
    color: var(--c092);
    line-height: 1;
    position: relative;
}

.department-page .department-hero .department-summary-icon svg {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    margin: 0;
    transform: translate(-50%, -50%);
}

.department-page .department-hero .department-summary-card > div {
    display: grid;
    align-content: start;
}

.department-page .department-hero .department-summary-card:nth-child(2) .department-summary-icon {
    background: var(--c283);
    color: var(--theme-surface-strong);
}

.department-page .department-hero .department-summary-icon svg {
    width: 1.18rem;
    height: 1.18rem;
    display: block;
    stroke-width: 2.1;
    overflow: visible;
}

.department-page .department-hero .department-summary-icon svg * {
    vector-effect: non-scaling-stroke;
}

.department-page .department-hero .department-summary-card span {
    display: block;
    color: var(--c691);
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.department-page .department-hero .department-summary-card strong,
.department-page .department-hero .department-summary-card strong.department-summary-money {
    display: block;
    margin: 0.45rem 0 0.35rem;
    color: var(--c686);
    font-family: inherit;
    font-size: clamp(1.65rem, 2.4vw, 2.1rem);
    font-weight: 900;
    line-height: 1;
    white-space: normal;
}

.department-page .department-hero .department-summary-card:nth-child(2) span,
.department-page .department-hero .department-summary-card:nth-child(2) strong,
.department-page .department-hero .department-summary-card:nth-child(2) small {
    color: var(--theme-surface-strong);
}

.department-page .department-hero .department-summary-card small {
    color: var(--c593);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.45;
}

.department-page .department-hero .department-gender-split {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.65rem;
}

.department-page .department-hero .department-gender-split span {
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: var(--c700);
    color: var(--c701);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: none;
}

.department-page .department-roster-panel.panel {
    padding: 1.2rem;
}

.department-page .department-roster-header {
    align-items: center;
    margin-bottom: 1rem;
}

.department-page .department-roster-header h3 {
    margin: 0.15rem 0 0;
    color: var(--c686);
    font-family: inherit;
    font-size: 1.35rem;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.15;
}

.department-page .department-roster-count {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0 0.75rem;
    border-radius: 999px;
    background: var(--c584);
    color: var(--c693);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: none;
}

.department-page .department-member-list {
    display: grid;
    gap: 0.75rem;
}

.department-page .department-member-card {
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) minmax(0, auto);
    gap: 1rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border: 1px solid var(--c308);
    border-radius: 10px;
    background: var(--theme-surface-strong);
    box-shadow: none;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, background-color 140ms ease;
}

.department-page .department-member-card:hover,
.department-page .department-member-card:focus-within {
    border-color: var(--c694);
    background: var(--c054);
    box-shadow: none;
    transform: translateY(-1px);
}

.department-page .department-member-main {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.department-page .department-member-avatar {
    width: 3rem;
    height: 3rem;
    flex: 0 0 auto;
    overflow: hidden;
    border: 0;
    border-radius: 50%;
    background: var(--c620);
    color: var(--c092);
    font-weight: 900;
    letter-spacing: 0;
}

.department-page .department-member-main h4 {
    margin: 0 0 0.25rem;
    color: var(--c686);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.2;
}

.department-page .department-member-main p {
    margin: 0;
    color: var(--c593);
    font-size: 0.82rem;
    line-height: 1.35;
}

.department-page .table-link {
    border: 0;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    letter-spacing: 0;
    padding: 0;
    text-decoration: none;
    text-transform: none;
}

.department-page .table-link:hover {
    color: var(--c693);
}

.department-page .department-member-meta {
    display: grid;
    grid-template-columns: minmax(14rem, 18rem) minmax(8rem, 10rem) auto;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
}

.department-page .department-meta-chip {
    width: 100%;
    min-width: 0;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--c308);
    border-radius: 8px;
    background: var(--c054);
}

.department-page .department-meta-chip span {
    display: block;
    margin: 0 0 0.25rem;
    color: var(--c697);
    font-family: inherit;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.department-page .department-meta-chip strong {
    display: block;
    color: var(--c686);
    font-size: 0.76rem;
    font-weight: 850;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.department-page .pill {
    min-height: 2rem;
    padding: 0 0.7rem;
    border: 1px solid var(--c702);
    border-radius: 999px;
    background: var(--c591);
    color: var(--c703);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.department-page .pill.status-resigned {
    border-color: var(--c704);
    background: var(--c705);
    color: var(--c706);
}

.department-page .pill.status-on_leave {
    border-color: var(--c707);
    background: var(--c708);
    color: var(--c709);
}

@media (max-width: 1180px) {
    .department-page .department-hero.panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .department-page .department-member-card {
        grid-template-columns: 1fr;
    }

    .department-page .department-member-meta {
        grid-template-columns: minmax(0, 1fr) minmax(8rem, 10rem) auto;
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .department-page .department-hero .department-summary-grid {
        grid-template-columns: 1fr;
    }

    .department-page .department-roster-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .department-page .department-member-meta,
    .department-page .department-meta-chip {
        width: 100%;
    }

    .department-page .department-member-meta {
        grid-template-columns: 1fr;
    }
}

/* Sidebar refresh to match HRIS design reference */
.sidebar {
    border: 1px solid var(--c308);
    border-radius: 18px;
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.brand {
    padding: 0.75rem 0.7rem 1rem;
}

.brand-mark {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 10px;
    background: var(--c699);
    color: var(--c092);
    box-shadow: none;
}

.brand-copy strong {
    color: var(--c686);
    font-size: 1rem;
    line-height: 1.15;
}

.brand-copy small {
    color: var(--c593);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1.35;
    text-transform: uppercase;
}

.sidebar-toggle-inline {
    border: 1px solid var(--c308);
    border-radius: 8px;
    background: var(--c054);
    color: var(--c714);
}

.sidebar-group {
    margin-top: 0.95rem;
}

.sidebar-label {
    padding: 0 0.75rem;
    margin-bottom: 0.45rem;
    color: var(--c691);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.sidebar-nav {
    gap: 0.25rem;
}

.sidebar-nav a,
.sidebar-logout-link {
    min-height: 2.75rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--c715);
    font-weight: 850;
    letter-spacing: 0;
}

.sidebar-nav a:hover,
.sidebar-nav a.active,
.sidebar-logout-link:hover,
.sidebar-logout-link:focus-visible {
    border-color: var(--c308);
    background: var(--c380);
    color: var(--c686);
}

.sidebar-nav a.active {
    border-color: var(--c716);
    background: var(--c584);
    color: var(--c717);
}

.nav-icon {
    width: 2rem;
    height: 2rem;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--c308);
    border-radius: 8px;
    background: var(--theme-surface-strong);
    color: var(--c718);
}

.nav-icon svg {
    width: 1rem;
    height: 1rem;
    display: block;
    margin: auto;
}

.sidebar-nav a.active .nav-icon,
.sidebar-nav a:hover .nav-icon,
.sidebar-logout-link:hover .nav-icon,
.sidebar-logout-link:focus-visible .nav-icon {
    border-color: var(--c719);
    background: var(--theme-surface-strong);
    color: var(--c092);
}

.sidebar-subnav {
    display: grid;
    gap: 0.2rem;
    margin: -0.1rem 0 0.35rem 2.55rem;
    padding-left: 0.85rem;
    border-left: 1px solid var(--c308);
}

.sidebar-subnav a {
    min-height: 2rem;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    color: var(--c458);
    font-size: 0.78rem;
    font-weight: 850;
}

.sidebar-subnav a:hover,
.sidebar-subnav a.active {
    border-color: var(--c716);
    background: var(--c584);
    color: var(--c717);
}

body.sidebar-collapsed .sidebar-subnav {
    display: none;
}

.sidebar-logout-link {
    color: var(--c593);
}

/* Readability fixes for wide organization trees */
.org-tree-canvas {
    min-height: 48rem;
    padding: 2.4rem 2.4rem 3.4rem;
}

.org-tree-root {
    min-width: 192rem;
    padding-bottom: 4.4rem;
}

.org-tree-branches {
    display: grid;
    grid-template-columns: repeat(11, minmax(15.5rem, 1fr));
    gap: 2.4rem;
    min-width: 192rem;
}

.org-tree-branches::before {
    left: 7.75rem;
    right: 7.75rem;
}

.org-tree-branch {
    width: 100%;
    min-width: 15.5rem;
    gap: 3.4rem;
}

.org-tree-children {
    display: grid;
    grid-template-columns: repeat(3, minmax(5.8rem, 1fr));
    gap: 1.45rem 0.85rem;
    width: 100%;
    max-width: none;
    justify-items: center;
}

.org-tree-children::before {
    left: 2.9rem;
    right: 2.9rem;
}

.org-tree-person {
    width: 10.8rem;
}

.org-tree-person-small {
    width: 5.9rem;
}

.org-tree-person strong {
    font-size: 0.72rem;
    line-height: 1.2;
    white-space: normal;
}

.org-tree-person small {
    display: -webkit-box;
    min-height: 1.55rem;
    overflow: hidden;
    font-size: 0.58rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.org-tree-person-small strong {
    font-size: 0.58rem;
}

.org-tree-person-small small {
    font-size: 0.5rem;
}

.org-tree-avatar {
    width: 5.1rem;
    height: 5.1rem;
}

.org-tree-person-small .org-tree-avatar {
    width: 3.3rem;
    height: 3.3rem;
}

/* Employee document upload rows */
.employee-document-formset {
    display: grid;
    gap: 0.85rem;
}

.employee-document-form-row {
    display: grid;
    grid-template-columns: minmax(11rem, 0.8fr) minmax(12rem, 1fr) minmax(14rem, 1.1fr) minmax(10rem, 0.75fr);
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid var(--c212);
    border-radius: 10px;
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.employee-document-upload-field {
    display: grid;
    gap: 0.4rem;
}

.document-current-file {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 1.8rem;
    padding: 0 0.65rem;
    border: 1px solid var(--c720);
    border-radius: 999px;
    background: var(--c584);
    color: var(--c717);
    font-size: 0.72rem;
    font-weight: 900;
    text-decoration: none;
}

.document-current-file:hover,
.document-current-file:focus-visible {
    border-color: var(--c721);
    background: var(--c722);
}

.document-delete-field {
    align-items: flex-start;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.document-remove-action {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    min-height: 2.15rem;
    padding: 0 0.8rem;
    border: 1px solid var(--c723);
    border-radius: 999px;
    background: var(--c724);
    color: var(--c725);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.document-remove-action input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.document-remove-action:hover,
.document-remove-action:focus-within {
    border-color: var(--c726);
    background: var(--c727);
}

.document-remove-action:has(input:checked) {
    border-color: var(--c728);
    background: var(--c729);
    color: var(--c730);
}

.document-remove-action:has(input:checked) span::after {
    content: " selected";
}

.employee-document-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 0.75rem;
    width: 100%;
}

.employee-document-card-v3 {
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem;
    border: 1px solid var(--c212);
    border-radius: 10px;
    background: var(--theme-surface-strong);
    color: var(--c686);
    text-decoration: none;
    box-shadow: none;
}

.employee-document-card-v3:hover,
.employee-document-card-v3:focus-visible {
    border-color: var(--c731);
    background: var(--c054);
}

.employee-document-card-v3 span {
    color: var(--c732);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.employee-document-card-v3 strong {
    overflow-wrap: anywhere;
    color: var(--c686);
    font-size: 0.9rem;
    font-weight: 900;
}

.employee-document-card-v3 small {
    color: var(--c593);
    font-size: 0.76rem;
    font-weight: 800;
}

@media (max-width: 1060px) {
    .employee-document-form-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .employee-document-form-row {
        grid-template-columns: 1fr;
    }
}

/* Final organization structure tree with inline editing */
body:has(.org-final-structure) {
    background: var(--c685);
    overflow-x: hidden;
}

body:has(.org-final-structure) .topbar {
    border-bottom: 1px solid var(--c212);
}

.org-final-structure {
    display: grid;
    gap: 1rem;
    min-width: 0;
    max-width: 100%;
}

.org-final-header {
    align-items: center;
    min-width: 0;
    border: 1px solid var(--c212);
    border-radius: 10px;
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.org-final-header h2 {
    color: var(--c686);
    letter-spacing: 0;
}

.org-final-header p:not(.eyebrow) {
    max-width: 46rem;
    margin: 0.35rem 0 0;
    color: var(--c593);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.55;
}

.org-final-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
}

.org-save-status {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0 0.7rem;
    border: 1px solid var(--c212);
    border-radius: 999px;
    background: var(--c054);
    color: var(--c593);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.org-save-status[data-tone="saving"] {
    border-color: var(--c707);
    background: var(--c708);
    color: var(--c709);
}

.org-save-status[data-tone="saved"] {
    border-color: var(--c702);
    background: var(--c591);
    color: var(--c703);
}

.org-save-status[data-tone="error"] {
    border-color: var(--c723);
    background: var(--c724);
    color: var(--c725);
}

.org-final-canvas {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 54rem;
    overflow: auto;
    padding: 2rem;
    border: 1px solid var(--c212);
    border-radius: 10px;
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.org-final-tree {
    display: flex;
    width: max-content;
    min-width: 100%;
    max-width: none;
    justify-content: center;
    gap: 3rem;
    padding: 1rem 1.5rem 2.5rem;
}

.org-final-node-wrap {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 2.55rem;
}

.org-final-children {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    width: max-content;
    padding-top: 2.45rem;
}

.org-final-children::before {
    content: "";
    position: absolute;
    top: 0;
    left: 5.5rem;
    right: 5.5rem;
    height: 2px;
    background: var(--c733);
}

.org-final-children::after {
    content: "";
    position: absolute;
    top: -2.55rem;
    left: 50%;
    width: 2px;
    height: 2.55rem;
    transform: translateX(-50%);
    background: var(--c733);
}

.org-final-children > .org-final-node-wrap::before {
    content: "";
    position: absolute;
    top: -2.45rem;
    left: 50%;
    width: 2px;
    height: 2.45rem;
    transform: translateX(-50%);
    background: var(--c733);
}

.org-final-node {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    width: 10.8rem;
    color: var(--c682);
    text-align: center;
}

.org-final-node-root {
    width: 15rem;
    color: var(--c734);
}

.org-final-avatar {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 4.9rem;
    height: 4.9rem;
    border: 0.38rem solid currentColor;
    border-radius: 50%;
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.org-final-avatar span {
    position: relative;
    display: block;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 50% 50% 45% 45%;
    background: currentColor;
}

.org-final-avatar span::before {
    content: "";
    position: absolute;
    top: -0.62rem;
    left: 50%;
    width: 1.2rem;
    height: 1.2rem;
    transform: translateX(-50%);
    border-radius: 50%;
    background: currentColor;
}

.org-final-card {
    display: grid;
    gap: 0.12rem;
    min-width: 9rem;
    max-width: 15rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: var(--c736);
    color: var(--c737);
    box-shadow: inset 0 -1px 0 var(--c340);
}

.org-final-node-root .org-final-card {
    min-width: 14rem;
}

.org-final-card strong,
.org-final-card span,
.org-final-card em {
    display: block;
    min-width: 2rem;
    outline: 0;
    overflow-wrap: anywhere;
    color: var(--c737);
    font-style: normal;
    line-height: 1.18;
}

.org-final-card strong {
    font-size: 0.72rem;
    font-weight: 900;
}

.org-final-card span {
    font-size: 0.66rem;
    font-weight: 800;
}

.org-final-card em {
    color: var(--c738);
    font-size: 0.58rem;
    font-weight: 800;
}

.org-final-editable[contenteditable="true"] {
    cursor: text;
    border-radius: 6px;
    padding: 0.05rem 0.2rem;
}

.org-final-editable[contenteditable="true"]:focus {
    background: var(--theme-surface-strong);
    box-shadow: 0 0 0 2px var(--c276);
}

.org-final-empty-field {
    color: var(--c739) !important;
}

.org-final-tools {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    opacity: 0;
    transition: opacity 140ms ease;
}

.org-final-node:hover .org-final-tools,
.org-final-node:focus-within .org-final-tools {
    opacity: 1;
}

.org-final-tools form {
    margin: 0;
}

.org-final-tools a,
.org-final-tools button {
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    padding: 0 0.45rem;
    border: 1px solid var(--c212);
    border-radius: 999px;
    background: var(--theme-surface-strong);
    color: var(--c715);
    font-size: 0.58rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.org-final-tools button {
    border-color: var(--c723);
    background: var(--c724);
    color: var(--c725);
    cursor: pointer;
    font-family: inherit;
}

.org-final-tools button:hover,
.org-final-tools button:focus-visible {
    border-color: var(--c726);
    background: var(--c727);
}

.org-final-collapse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.55rem;
    padding: 0 0.55rem;
    border: 1px solid var(--c720);
    border-radius: 999px;
    background: var(--c584);
    color: var(--c717);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.org-final-collapse:hover,
.org-final-collapse:focus-visible {
    border-color: var(--c721);
    background: var(--c722);
}

.org-final-node-wrap.is-collapsed {
    gap: 0;
}

.org-final-node-wrap.is-collapsed > .org-final-children {
    display: none;
}

.org-final-node-wrap.is-collapsed > .org-final-node .org-final-collapse {
    border-color: var(--c702);
    background: var(--c591);
    color: var(--c703);
}

.org-final-node.is-dragging {
    opacity: 0.45;
}

[data-org-drag-handle] {
    cursor: grab;
}

[data-org-drag-handle]:active {
    cursor: grabbing;
}

.org-final-node.is-drop-target .org-final-avatar {
    box-shadow: none;
}

.org-final-node.is-drop-target .org-final-card {
    background: var(--c699);
    color: var(--c092);
}

.org-final-tone-root,
.org-final-tone-purple,
.org-final-tone-indigo {
    color: var(--c734);
}

.org-final-tone-rose {
    color: var(--c740);
}

.org-final-tone-amber,
.org-final-tone-orange,
.org-final-tone-slate {
    color: var(--c682);
}

.org-final-tone-green,
.org-final-tone-teal {
    color: var(--c741);
}

.org-final-tone-blue,
.org-final-tone-cyan {
    color: var(--c680);
}

.org-final-tone-gray {
    color: var(--c742);
}

.org-final-note {
    display: grid;
    gap: 0.7rem;
    width: min(36rem, 100%);
    margin: 2rem auto 0;
    padding: 1rem 1.25rem;
    border: 1px solid var(--c733);
    background: var(--c736);
    color: var(--c743);
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
}

.org-final-note span {
    display: block;
}

@media (max-width: 900px) {
    .org-final-header,
    .org-final-actions {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .org-final-canvas {
        padding: 1rem;
    }
}

/* Salary history delete controls */
.salary-history-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.salary-history-title-row > span {
    margin: 0;
}

.salary-history-title-row form,
.salary-history-entry-head form {
    margin: 0;
}

.salary-history-entry-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.salary-history-eye-button.sensitive-eye-button {
    position: static;
    width: 1.8rem;
    height: 1.8rem;
    transform: none;
}

.salary-history-eye-button.sensitive-eye-button svg {
    width: 0.95rem;
    height: 0.95rem;
}

.salary-history-entry-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.salary-history-clear-button,
.salary-history-delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.8rem;
    padding: 0 0.65rem;
    border: 1px solid var(--c723);
    border-radius: 999px;
    background: var(--c724);
    color: var(--c725);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.salary-history-clear-button:hover,
.salary-history-clear-button:focus-visible,
.salary-history-delete-button:hover,
.salary-history-delete-button:focus-visible {
    border-color: var(--c726);
    background: var(--c727);
}

.salary-increment-quick-form {
    display: grid;
    gap: 1rem;
    margin: 1rem 0 1.25rem;
    padding: 1rem;
    border: 1px solid var(--c744);
    border-radius: 8px;
    background: var(--c054);
}

.salary-increment-quick-form-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.salary-increment-quick-form-head h4 {
    margin: 0;
    color: var(--c745);
    font-size: 0.95rem;
}

.salary-increment-quick-form-head span {
    color: var(--theme-slate-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.salary-increment-quick-fields {
    display: grid;
    grid-template-columns: minmax(9rem, 0.8fr) minmax(9rem, 0.8fr) minmax(14rem, 1.4fr) auto;
    gap: 0.75rem;
    align-items: end;
}

.salary-increment-quick-fields .field-group {
    margin: 0;
}

.salary-increment-quick-fields input {
    min-height: 2.75rem;
}

.salary-increment-save-button {
    min-height: 2.75rem;
    white-space: nowrap;
}

@media (max-width: 1050px) {
    .salary-increment-quick-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .salary-increment-reason-field {
        grid-column: 1 / -1;
    }

    .salary-increment-save-button {
        grid-column: 1 / -1;
        justify-self: end;
    }
}

@media (max-width: 640px) {
    .salary-increment-quick-form-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .salary-increment-quick-fields {
        grid-template-columns: 1fr;
    }

    .salary-increment-reason-field,
    .salary-increment-save-button {
        grid-column: auto;
    }

    .salary-increment-save-button {
        justify-self: stretch;
    }
}

.employee-section-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0 0.75rem;
    border: 1px solid var(--c702);
    border-radius: 999px;
    background: var(--c591);
    color: var(--c092);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
}

.employee-section-action:hover,
.employee-section-action:focus-visible {
    border-color: var(--c590);
    background: var(--c746);
}

.pro-module-page {
    display: grid;
    gap: 1.25rem;
}

.pro-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.pro-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pro-card-list {
    display: grid;
    gap: 0.85rem;
}

.pro-list-card {
    display: grid;
    gap: 0.55rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--c463);
}

.pro-list-card h4,
.pro-list-card p {
    margin: 0;
}

.pro-list-card p {
    color: var(--muted);
    line-height: 1.55;
}

.org-insight-grid {
    margin-top: 1.25rem;
}

.org-inactive-panel {
    margin-top: 1.25rem;
}

.button-link {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.org-vacant-badge {
    display: inline-flex;
    width: fit-content;
    margin-top: 0.35rem;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    background: var(--c747);
    color: var(--c010);
    font-size: 0.72rem;
    font-weight: 700;
}

/* Professional org chart presentation */
.org-final-header {
    display: grid;
    grid-template-columns: minmax(18rem, 1fr) auto auto;
    gap: 1rem;
    padding: 1.1rem;
}

.org-final-header-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(6.5rem, 1fr));
    gap: 0.7rem;
    align-items: stretch;
}

.org-final-header-metrics article {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--c565);
    border-radius: 8px;
    background: var(--c054);
}

.org-final-header-metrics span {
    color: var(--c593);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.org-final-header-metrics strong {
    color: var(--c580);
    font-size: 1.45rem;
    line-height: 1;
}

.org-final-canvas {
    min-height: 38rem;
    padding: 1rem;
    background: var(--theme-surface-strong);
    background-size: auto, 18px 18px;
}

.org-final-canvas:has(.org-final-tree) {
    cursor: grab;
}

.org-final-canvas.is-panning {
    cursor: grabbing;
    user-select: none;
}

.org-final-canvas .org-final-node,
.org-final-canvas .org-chart-toolbar-v2,
.org-final-canvas .org-final-note {
    cursor: auto;
}

.org-chart-toolbar-v2 {
    position: sticky;
    left: 0;
    z-index: 6;
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-width: min(64rem, max-content);
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--c565);
    border-radius: 8px;
    background: var(--c137);
    box-shadow: none;
}

.org-chart-toolbar-v2 strong,
.org-chart-toolbar-v2 span {
    display: block;
}

.org-chart-toolbar-v2 strong {
    color: var(--c580);
    font-size: 0.98rem;
}

.org-chart-toolbar-v2 span {
    color: var(--c593);
    font-size: 0.78rem;
    font-weight: 700;
}

.org-chart-legend {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.org-chart-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.org-final-structure .org-chart-collapse-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.15rem;
    padding: 0 0.95rem;
    border: 1px solid var(--c590);
    border-radius: 8px;
    background: var(--c591);
    color: var(--c092);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    line-height: 1;
    box-shadow: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.org-final-structure .org-chart-collapse-all:hover,
.org-final-structure .org-chart-collapse-all:focus-visible {
    border-color: var(--c750);
    background: var(--c746);
    color: var(--c592);
    outline: 3px solid var(--c751);
    outline-offset: 2px;
    transform: translateY(-1px);
}

.org-final-structure .org-chart-collapse-all.is-active {
    border-color: var(--c752);
    background: var(--c753);
    color: var(--c033);
}

.org-final-structure .org-chart-collapse-all:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
}

.org-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--c754);
    font-size: 0.76rem;
    font-weight: 850;
}

.org-chart-legend i {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    display: inline-block;
}

.legend-active {
    background: var(--c033);
}

.legend-vacant {
    background: var(--c755);
}

.legend-linked {
    background: var(--c703);
}

.org-final-tree {
    --org-node-width: 13.6rem;
    --org-branch-gap: 1.35rem;
    align-items: flex-start;
    gap: 2.4rem;
    padding: 0.75rem 1.5rem 2rem;
}

.org-final-node-wrap {
    width: max-content;
    gap: 2rem;
    justify-items: center;
}

.org-final-children {
    gap: var(--org-branch-gap);
    padding-top: 2rem;
}

.org-final-children::before,
.org-final-children::after,
.org-final-children > .org-final-node-wrap::before {
    background: var(--c756);
}

.org-final-children::before {
    left: calc(var(--org-node-width) / 2);
    right: calc(var(--org-node-width) / 2);
}

.org-final-children::after {
    top: -2rem;
    height: 2rem;
}

.org-final-children > .org-final-node-wrap::before {
    top: -2rem;
    height: 2rem;
}

.org-final-node,
.org-final-node-root {
    width: var(--org-node-width);
    gap: 0.55rem;
    justify-items: center;
}

.org-final-avatar {
    width: 3.6rem;
    height: 3.6rem;
    border: 3px solid currentColor;
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.org-final-avatar img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.org-final-avatar > span,
.org-final-avatar span::before {
    position: static;
    width: auto;
    height: auto;
    transform: none;
    border-radius: 0;
    background: transparent;
}

.org-final-avatar-initials {
    color: currentColor;
    font-size: 0.9rem;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.org-final-card {
    position: relative;
    gap: 0.35rem;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 0.85rem 0.9rem 0.9rem;
    border: 1px solid var(--c565);
    border-radius: 8px;
    background: var(--theme-surface-strong);
    color: var(--c580);
    box-shadow: none;
    justify-items: center;
    text-align: center;
}

.org-final-node-root .org-final-card {
    min-width: 0;
}

.org-final-card strong,
.org-final-card span,
.org-final-card em {
    color: var(--c580);
}

.org-final-card strong {
    font-size: 0.88rem;
    line-height: 1.25;
}

.org-final-card span {
    color: var(--c754);
    font-size: 0.76rem;
    line-height: 1.35;
}

.org-final-card em {
    color: var(--c593);
    font-size: 0.7rem;
}

.org-vacant-badge {
    align-self: center;
    margin-top: 0.1rem;
    border: 1px solid var(--c759);
    border-radius: 999px;
    background: var(--c047);
    color: var(--c010);
}

.org-role-badge-filled {
    border-color: var(--c760);
    background: var(--c591);
    color: var(--c703);
}

.org-final-node-vacant .org-final-card {
    background: var(--c761);
}

.org-final-tools {
    opacity: 1;
    width: 100%;
    justify-content: center;
}

.org-final-tools a,
.org-final-tools button,
.org-final-collapse {
    min-height: 1.75rem;
    border-radius: 7px;
    font-size: 0.62rem;
}

.org-final-collapse {
    justify-self: center;
}

.org-final-note {
    position: sticky;
    left: 0;
    width: min(42rem, 100%);
    margin-top: 1rem;
    border-color: var(--c565);
    border-radius: 8px;
    background: var(--theme-surface-strong);
    color: var(--c754);
    font-size: 0.86rem;
    box-shadow: none;
}

@media (max-width: 1180px) {
    .org-final-header {
        grid-template-columns: 1fr;
    }

    .org-final-header-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .org-final-header-metrics,
    .org-chart-toolbar-v2 {
        grid-template-columns: 1fr;
        display: grid;
    }

    .org-chart-toolbar-actions {
        justify-content: flex-start;
    }

    .org-chart-legend {
        align-items: flex-start;
    }
}

@media (max-width: 980px) {
    .pro-two-column,
    .pro-form-grid {
        grid-template-columns: 1fr;
    }
}

.employee-profile-form-page {
    display: grid;
    gap: 1.1rem;
}

.employee-form-hero-v4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.15rem;
    border-radius: 8px;
    background: var(--theme-surface-strong);
}

.employee-form-hero-main {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 1rem;
}

.employee-form-hero-avatar {
    width: 4.6rem;
    height: 4.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 8px;
    background: var(--theme-surface-strong);
    color: var(--c033);
    font-size: 1.55rem;
    font-weight: 900;
    box-shadow: none;
}

.employee-form-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee-form-hero-copy {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.employee-form-hero-copy h2 {
    margin: 0;
    color: var(--c580);
    font-size: clamp(1.55rem, 2.2vw, 2.05rem);
    line-height: 1.1;
}

.employee-form-hero-meta,
.employee-form-hero-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.employee-form-hero-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    padding: 0 0.7rem;
    border: 1px solid var(--c565);
    border-radius: 999px;
    background: var(--theme-surface-strong);
    color: var(--c599);
    font-size: 0.82rem;
    font-weight: 800;
}

.employee-form-workbench {
    display: grid;
    grid-template-columns: minmax(13rem, 15rem) minmax(0, 1fr);
    gap: 1.1rem;
    align-items: start;
}

.employee-form-nav-v4 {
    position: sticky;
    top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
}

.employee-form-nav-v4 .employee-top-tabs {
    display: grid;
    gap: 0.45rem;
}

.employee-form-nav-v4 .employee-top-tabs a {
    justify-content: flex-start;
    width: 100%;
    min-height: 2.55rem;
    padding: 0.65rem 0.75rem;
    border-radius: 7px;
    border: 1px solid transparent;
    color: var(--c754);
    background: transparent;
    font-size: 0.82rem;
    font-weight: 850;
}

.employee-form-nav-v4 .employee-top-tabs a:hover,
.employee-form-nav-v4 .employee-top-tabs a:focus {
    border-color: var(--c597);
    background: var(--c595);
    color: var(--c033);
}

.employee-form-card-v4 {
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
}

.employee-form-card-v4 .employee-form-header-v3 {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--c565);
    background: var(--theme-surface-strong);
}

.employee-form-layout-v4 {
    gap: 0;
}

.employee-form-required-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid var(--c565);
    background: var(--c030);
}

.employee-form-required-strip strong,
.employee-form-required-strip span,
.section-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.65rem;
    padding: 0 0.55rem;
    border: 1px solid var(--c014);
    border-radius: 999px;
    background: var(--theme-surface-strong);
    color: var(--c765);
    font-size: 0.72rem;
    font-weight: 850;
}

.employee-form-required-strip strong {
    border-color: var(--c002);
    background: var(--c766);
    color: var(--c004);
}

.section-badge {
    margin-left: 0.4rem;
    vertical-align: middle;
}

.employee-form-layout-v4 .employee-form-section-v2 {
    margin: 0;
    padding: 1.15rem;
    border: 0;
    border-bottom: 1px solid var(--c582);
    border-radius: 0;
    background: var(--theme-surface-strong);
}

.employee-form-layout-v4 .employee-form-section-v2:nth-of-type(even) {
    background: var(--c603);
}

.employee-form-layout-v4 .employee-form-section-copy {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.95rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--c598);
}

.employee-form-layout-v4 .employee-form-section-copy h4 {
    margin: 0;
    color: var(--c580);
    font-size: 1.05rem;
    line-height: 1.2;
}

.employee-form-layout-v4 .grid-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.employee-form-layout-v4 .employee-basic-info-grid + .employee-identity-grid {
    margin-top: 1.45rem;
}

.employee-form-layout-v4 .employee-identity-grid {
    padding: 0;
}

.employee-form-layout-v4 .employee-citizenship-field {
    grid-column: span 2;
}

.employee-form-layout-v4 .grid-form.single-column {
    grid-template-columns: 1fr;
}

.employee-form-layout-v4 .full-width {
    grid-column: 1 / -1;
}

.employee-form-layout-v4 .field-group {
    min-width: 0;
    gap: 0.45rem;
}

.employee-form-layout-v4 .field-group label {
    color: var(--c767);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.employee-form-layout-v4 .field-group:has(input[required]) label::after,
.employee-form-layout-v4 .field-group:has(select[required]) label::after,
.employee-form-layout-v4 .field-group:has(textarea[required]) label::after {
    content: " *";
    color: var(--theme-danger);
}

.employee-form-layout-v4 .field-group input:not([type="checkbox"]),
.employee-form-layout-v4 .field-group select,
.employee-form-layout-v4 .field-group textarea {
    min-height: 2.75rem;
    border: 1px solid var(--c597);
    border-radius: 7px;
    background: var(--theme-surface-strong);
    color: var(--c580);
}

.employee-form-layout-v4 #id_employee_code {
    text-align: center !important;
    font-variant-numeric: tabular-nums !important;
    font-feature-settings: "tnum" 1 !important;
}

.employee-form-layout-v4 .field-group textarea {
    min-height: 6.5rem;
    resize: vertical;
}

.employee-form-layout-v4 .field-group input:focus,
.employee-form-layout-v4 .field-group select:focus,
.employee-form-layout-v4 .field-group textarea:focus {
    border-color: var(--c033);
    box-shadow: 0 0 0 3px var(--c034);
}

.employee-form-layout-v4 .checkbox-field {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.75rem;
    border: 1px solid var(--c597);
    border-radius: 7px;
    background: var(--c595);
}

.employee-form-layout-v4 .checkbox-field label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: 0;
    text-transform: none;
}

.employee-form-layout-v4 .document-delete-field {
    align-items: flex-start;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.employee-form-layout-v4 .document-delete-field label::after {
    content: none;
}

.employee-document-form-row {
    border-radius: 8px;
}

.photo-preview-group {
    margin: 1rem 1.15rem 0;
    padding: 1rem;
    border: 1px solid var(--c565);
    border-radius: 8px;
    background: var(--c054);
}

@media (max-width: 1180px) {
    .employee-form-workbench {
        grid-template-columns: 1fr;
    }

    .employee-form-nav-v4 {
        position: static;
    }

    .employee-form-nav-v4 .employee-top-tabs {
        display: flex;
        overflow-x: auto;
    }

    .employee-form-nav-v4 .employee-top-tabs a {
        width: auto;
        white-space: nowrap;
    }
}

@media (max-width: 860px) {
    .employee-form-hero-v4,
    .employee-form-layout-v4 .employee-form-section-copy {
        align-items: flex-start;
        flex-direction: column;
    }

    .employee-form-hero-actions {
        width: 100%;
    }

    .employee-form-hero-actions .button {
        flex: 1 1 10rem;
    }

    .employee-form-layout-v4 .grid-form {
        grid-template-columns: 1fr;
    }
}

.employee-form-workbench {
    grid-template-columns: 1fr;
}

.employee-form-nav-v4 {
    position: static;
    padding: 0.65rem;
}

.employee-form-nav-v4 .employee-top-tabs {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
}

.employee-form-nav-v4 .employee-top-tabs a {
    width: auto;
    min-height: 2.4rem;
    flex: 0 0 auto;
    justify-content: center;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--c597);
    border-radius: 7px;
    background: var(--theme-surface-strong);
    color: var(--c754);
    white-space: nowrap;
}

.employee-form-nav-v4 .employee-top-tabs a:hover,
.employee-form-nav-v4 .employee-top-tabs a:focus {
    background: var(--c595);
    color: var(--c033);
}

/* Design.md visual system override */
/* Shared accessibility utility for controls that need programmatic labels. */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/*
 * Legacy HRIS page styles.
 * Ownership note: app shell, sidebar, topbar, shared forms, shared tables,
 * empty states, messages, modals, print, and accessibility guardrails now
 * belong to foundation.css. New rules in this file must be page-scoped.
 */

:root {
    --design-bg: var(--c380);
    --design-surface: var(--theme-surface-strong);
    --design-surface-soft: var(--c054);
    --design-line: var(--c212);
    --design-line-soft: var(--c768);
    --design-ink: var(--c745);
    --design-muted: var(--theme-slate-muted);
    --design-primary: var(--c441);
    --design-primary-dark: var(--c037);
    --design-blue: var(--c033);
    --design-shadow: 0 14px 34px var(--c324);
    --design-radius: 14px;
}

body:not(.login-body) {
    background: var(--theme-surface-strong);
    color: var(--design-ink);
}

body:not(.login-body)::before {
    background-image: none;
}

.sidebar {
    border: 1px solid var(--c772);
    border-radius: 24px;
    background: var(--c671);
    box-shadow: var(--design-shadow);
    color: var(--design-ink);
}

.brand-mark,
.nav-icon,
.sidebar-toggle,
.icon-tile {
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--design-line);
    border-radius: 12px;
    background: var(--c753);
    color: var(--design-blue);
}

.brand-copy strong,
.sidebar-nav a,
.topbar h1,
.panel h1,
.panel h2,
.panel h3,
.metric-card strong,
.stat-card strong {
    color: var(--design-ink);
}

.brand-copy span,
.sidebar-label,
.muted,
.helper-text,
.metric-card small,
.stat-card small,
.empty-cell {
    color: var(--design-muted);
}

.sidebar-nav a {
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a:focus,
.sidebar-nav a.active {
    background: var(--c261);
    border-color: var(--c587);
    color: var(--design-primary-dark);
}

.sidebar-nav a:hover .nav-icon,
.sidebar-nav a:focus .nav-icon,
.sidebar-nav a.active .nav-icon {
    background: var(--c773);
    border-color: var(--c774);
    color: var(--design-primary-dark);
}

.topbar {
    border-bottom: 1px solid var(--design-line);
    box-shadow: none;
}

.eyebrow,
.panel .eyebrow,
.field-group label,
th {
    color: var(--c216);
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.search-shell,
.field-group input:not([type="checkbox"]),
.field-group select,
.field-group textarea,
input.form-control,
select.form-select,
textarea.form-control {
    border: 1px solid var(--design-line);
    border-radius: 12px;
    background: var(--design-surface);
    color: var(--design-ink);
    box-shadow: inset 0 1px 0 var(--c671);
}

.search-shell:focus-within,
.field-group input:not([type="checkbox"]):focus,
.field-group select:focus,
.field-group textarea:focus,
input.form-control:focus,
select.form-select:focus,
textarea.form-control:focus {
    border-color: var(--c775);
    box-shadow: 0 0 0 4px var(--c776);
    outline: 0;
}

.button,
a.button,
button.button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid var(--design-primary);
    border-radius: 12px;
    background: var(--design-primary);
    color: var(--theme-surface-strong);
    box-shadow: none;
    letter-spacing: 0.08em;
}

.button:hover,
a.button:hover,
button.button:hover,
input[type="submit"]:hover {
    background: var(--design-primary-dark);
    border-color: var(--design-primary-dark);
    color: var(--theme-surface-strong);
    transform: translateY(-1px);
}

.topbar-actions .button:not(.secondary):not(.ghost)::before,
.pro-module-page .form-actions .button:not(.secondary):not(.ghost)::before,
.holiday-import-form .button:not(.secondary):not(.ghost)::before {
    content: "+";
    display: inline-grid;
    width: 1.15rem;
    height: 1.15rem;
    place-items: center;
    border-radius: 999px;
    background: var(--c778);
    color: var(--theme-surface-strong);
    font-weight: 900;
    line-height: 1;
}

.topbar-actions .button.danger::before,
.topbar-actions button.button.danger::before,
.pro-module-page .form-actions .button.danger::before,
.pro-module-page .form-actions button.button.danger::before,
.holiday-import-form .button.danger::before,
.holiday-import-form button.button.danger::before {
    display: none !important;
    content: none !important;
}

.button.secondary,
.button.ghost,
a.button.secondary,
a.button.ghost,
button.button.secondary,
button.button.ghost {
    border-color: var(--design-line);
    background: var(--design-surface);
    color: var(--design-ink);
    box-shadow: none;
}

.button.secondary:hover,
.button.ghost:hover,
a.button.secondary:hover,
a.button.ghost:hover,
button.button.secondary:hover,
button.button.ghost:hover {
    border-color: var(--c752);
    background: var(--c753);
    color: var(--design-blue);
}

.panel,
.stat-card,
.metric-card,
.table-wrap,
.table-panel,
.form-panel,
.side-panel,
.employee-tabs-panel,
.employee-form-card-v4,
.employee-form-nav-v4 {
    border: 1px solid var(--design-line);
    border-radius: var(--design-radius);
    background: var(--design-surface);
    box-shadow: var(--design-shadow);
}

.stat-card,
.metric-card {
    overflow: hidden;
}

.dashboard-stats .metric-card:first-child,
.metric-card.highlight {
    border-color: var(--c779);
    background: var(--theme-surface-strong);
    color: var(--theme-surface-strong);
}

.dashboard-stats .metric-card:first-child p,
.dashboard-stats .metric-card:first-child strong,
.dashboard-stats .metric-card:first-child small,
.metric-card.highlight p,
.metric-card.highlight strong,
.metric-card.highlight small {
    color: var(--theme-surface-strong);
}

.panel-header {
    border-bottom-color: var(--design-line-soft);
}

.table-wrap {
    overflow: hidden;
}

table {
    border-color: var(--design-line);
    background: var(--design-surface);
}

thead th {
    background: var(--c782);
    border-bottom: 1px solid var(--design-line);
    color: var(--c783);
}

tbody td {
    border-bottom: 1px solid var(--design-line-soft);
}

tbody tr:hover {
    background: var(--c054);
}

.pro-module-page {
    color: var(--design-ink);
}

.pro-module-page .stats-grid {
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pro-module-page .metric-card {
    min-height: 7rem;
    padding: 1.15rem;
}

.pro-module-page .panel {
    padding: 1.25rem;
}

.pro-module-page .panel-header {
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 0;
    border-bottom: 0;
}

.pro-module-page .panel-header h3 {
    margin-top: 0.1rem;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    line-height: 1.1;
}

.celebrations-page {
    --celebrations-ink: var(--c424);
    --celebrations-muted: var(--theme-slate-muted);
    --celebrations-line: var(--theme-border);
    --celebrations-navy: var(--c784);
    --celebrations-canvas: var(--c785);
    color: var(--celebrations-ink);
}

.celebrations-page .celebrations-stats {
    grid-template-columns: repeat(2, minmax(220px, 324px));
    align-items: stretch;
    gap: 1.25rem;
    margin-bottom: 3.6rem;
}

.celebrations-page .metric-card,
.celebrations-page .dashboard-stats .metric-card:first-child,
.celebrations-page .metric-card.highlight {
    min-height: 9.5rem;
    padding: 1.45rem 1.55rem;
    border: 1px solid var(--celebrations-line);
    border-radius: 8px;
    background: var(--theme-surface-strong);
    box-shadow: none;
    color: var(--celebrations-ink);
}

.celebrations-page .metric-card::after,
.celebrations-page .dashboard-stats .metric-card:first-child::after {
    display: none;
}

.celebrations-page .dashboard-stats .metric-card:first-child {
    border-color: var(--celebrations-navy);
    background: var(--celebrations-navy);
}

.celebrations-page .metric-card p,
.celebrations-page .dashboard-stats .metric-card:first-child p {
    margin: 0 0 0.8rem;
    color: var(--celebrations-muted);
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.celebrations-page .metric-card strong,
.celebrations-page .dashboard-stats .metric-card:first-child strong {
    color: var(--celebrations-ink);
    font-size: 2.65rem;
    line-height: 1;
}

.celebrations-page .metric-card small,
.celebrations-page .dashboard-stats .metric-card:first-child small {
    margin-top: 0.8rem;
    color: var(--celebrations-muted);
    font-size: 0.98rem;
    font-weight: 700;
}

.celebrations-page .dashboard-stats .metric-card:first-child p,
.celebrations-page .dashboard-stats .metric-card:first-child strong,
.celebrations-page .dashboard-stats .metric-card:first-child small {
    color: var(--theme-surface-strong);
}

.celebrations-page .celebrations-grid {
    gap: 1.25rem;
}

.celebrations-page .celebrations-panel {
    padding: 1.55rem;
    border: 1px solid var(--celebrations-line);
    border-radius: 8px;
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.celebrations-page .panel-header {
    margin-bottom: 1.45rem;
}

.celebrations-page .panel-header .eyebrow {
    color: var(--celebrations-muted);
}

.celebrations-page .panel-header h3 {
    color: var(--celebrations-ink);
    font-size: clamp(1.5rem, 2vw, 2rem);
}

.celebrations-page .side-list {
    gap: 0.9rem;
}

.celebrations-page .side-list-item {
    min-height: 5.5rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--celebrations-line);
    border-radius: 6px;
    background: var(--theme-surface-strong);
    box-shadow: none;
    color: var(--celebrations-ink);
    text-decoration: none;
}

.celebrations-page .side-list-item:hover,
.celebrations-page .side-list-item:focus {
    border-color: var(--celebrations-navy);
    background: var(--celebrations-canvas);
}

.celebrations-page .side-list-item strong {
    color: var(--celebrations-ink);
    font-size: 1.02rem;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.celebrations-page .side-list-item small {
    margin-top: 0.35rem;
    color: var(--c786);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.celebrations-page .empty-state {
    border: 1px solid var(--celebrations-line);
    border-radius: 6px;
    background: var(--celebrations-canvas);
    color: var(--celebrations-muted);
    box-shadow: none;
}

.pro-module-page .form-grid {
    gap: 0.85rem;
}

.pro-module-page .field-group {
    gap: 0.38rem;
}

.pro-module-page .field-group textarea {
    min-height: 6rem;
}

.pro-module-page .field-group input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--design-primary);
}

.pro-module-page .field-group:has(input[type="checkbox"]) {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    min-height: 2.8rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--design-line);
    border-radius: 12px;
    background: var(--design-surface-soft);
}

.pro-module-page .field-group:has(input[type="checkbox"]) label {
    grid-column: 2;
    grid-row: 1;
    letter-spacing: 0;
    text-transform: none;
}

.pro-module-page .field-group:has(input[type="checkbox"]) input {
    grid-column: 1;
    grid-row: 1;
}

.pro-module-page .form-actions {
    align-items: center;
    justify-content: flex-start;
    padding-top: 0.35rem;
}

.employee-form-nav-v4 .employee-top-tabs a {
    border-color: var(--design-line);
    border-radius: 12px;
    background: var(--design-surface);
    color: var(--design-muted);
}

.employee-form-nav-v4 .employee-top-tabs a:hover,
.employee-form-nav-v4 .employee-top-tabs a:focus,
.employee-form-nav-v4 .employee-top-tabs a.active {
    background: var(--c261);
    border-color: var(--c587);
    color: var(--design-primary-dark);
}

@media (max-width: 900px) {
    .pro-two-column,
    .pro-form-grid,
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .pro-module-page .panel {
        padding: 1rem;
    }
}

.holiday-import-strip {
    display: grid;
    grid-template-columns: minmax(18rem, 0.72fr) minmax(38rem, 1.28fr);
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.15rem 1.25rem;
    background: var(--theme-surface-strong);
}

.holiday-import-strip h3 {
    margin: 0.15rem 0 0.35rem;
    color: var(--design-ink);
    font-size: clamp(1.15rem, 1.8vw, 1.55rem);
    line-height: 1.1;
}

.holiday-import-copy .muted {
    max-width: 33rem;
    margin: 0;
}

.holiday-import-form {
    display: grid;
    grid-template-columns: minmax(20rem, 1fr) minmax(13rem, 14rem);
    align-items: end;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
    padding: 0.65rem;
    border: 1px solid var(--design-line-soft);
    border-radius: 14px;
    background: var(--c171);
}

.holiday-import-form .field-group {
    min-width: 0;
    gap: 0.3rem;
}

.holiday-import-form .button {
    min-height: 2.8rem;
    white-space: nowrap;
}

.holiday-import-form .button.secondary {
    color: var(--design-blue);
    background: var(--c787);
}

.holiday-import-button-stack {
    display: grid;
    gap: 0.55rem;
}

.holiday-import-button-stack .button {
    width: 100%;
}

.holiday-import-form input[type="file"] {
    width: 100%;
    min-height: 2.9rem;
    border: 1px solid var(--design-line);
    border-radius: 12px;
    background: var(--design-surface);
    color: var(--design-muted);
    font-size: 0.82rem;
}

.holiday-import-form input[type="file"]::file-selector-button {
    margin-right: 0.8rem;
    min-height: 2.8rem;
    padding: 0 0.95rem;
    border: 0;
    border-right: 1px solid var(--design-line);
    background: var(--c753);
    color: var(--design-blue);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.holiday-calendar-page {
    display: grid;
    gap: 1.6rem;
}

.holiday-calendar-page .dashboard-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    width: 100%;
}

.holiday-calendar-page .metric-card {
    min-height: 6.6rem;
}

.holiday-calendar-page .pro-two-column {
    align-items: start;
    gap: 1rem;
    margin-top: 0;
}

.holiday-calendar-page .holiday-import-strip {
    margin-bottom: 0;
}

.holiday-calendar-page .panel {
    min-width: 0;
}

.holiday-calendar-page .table-panel {
    padding-bottom: 1rem;
}

.holiday-calendar-page .table-wrap {
    margin-top: 0.15rem;
}

@media (max-width: 1100px) {
    .holiday-import-strip,
    .holiday-import-form {
        grid-template-columns: 1fr;
    }

    .holiday-import-form .button {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .holiday-calendar-page .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

/* App-wide Design.md alignment pass */
:root {
    --design-bg: var(--theme-bg-app);
    --design-surface: var(--theme-surface-strong);
    --design-surface-soft: var(--c030);
    --design-line: var(--c014);
    --design-line-soft: var(--c160);
    --design-ink: var(--theme-ink-strong);
    --design-muted: var(--theme-slate-muted);
    --design-primary: var(--theme-success-strong);
    --design-primary-dark: var(--c031);
    --design-blue: var(--c092);
    --design-radius: 18px;
    --design-radius-sm: 13px;
    --design-shadow: 0 8px 24px var(--c015);
    --design-shadow-hover: 0 10px 28px var(--c123);
}

html {
    background: var(--design-bg);
}

body:not(.login-body) {
    min-height: 100vh;
    background: var(--design-bg);
    color: var(--design-ink);
}

.page-shell {
    gap: clamp(1rem, 1.5vw, 1.5rem);
}

.main-panel {
    min-width: 0;
    padding: clamp(1rem, 1.8vw, 1.5rem);
}

.topbar {
    align-items: center;
    gap: 1rem;
    margin-bottom: clamp(1.25rem, 2vw, 2rem);
    padding: 0 0 1rem;
    border-bottom: 1px solid var(--design-line);
}

.topbar-tools {
    align-items: center;
    gap: 0.75rem;
}

.topbar h1 {
    margin: 0;
    color: var(--design-ink);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0;
}

.eyebrow,
.sidebar-label,
.field-group label,
.form-group label,
.input-group label,
.panel .eyebrow,
th {
    margin-bottom: 0.35rem;
    color: var(--design-muted);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.muted,
.helper-text,
.empty-cell,
.card-copy p,
.panel p,
.stat-card small,
.metric-card small {
    color: var(--design-muted);
}

.sidebar,
.panel,
.stat-card,
.metric-card,
.table-wrap,
.table-panel,
.form-panel,
.side-panel,
.employee-tabs-panel,
.employee-form-card-v4,
.employee-form-nav-v4,
.employee-directory-card,
.department-card,
.report-card,
.announcement-card,
.leave-card,
.attendance-card,
.detail-card,
.timeline-card,
.employee-profile-card,
.employee-section-card,
.org-node-card,
.role-card {
    border: 1px solid var(--design-line);
    border-radius: var(--design-radius);
    background: var(--design-surface);
    box-shadow: var(--design-shadow);
}

.panel,
.table-panel,
.form-panel,
.side-panel,
.employee-tabs-panel,
.employee-directory-card,
.department-card,
.report-card,
.announcement-card,
.leave-card,
.attendance-card,
.detail-card,
.timeline-card,
.employee-profile-card,
.employee-section-card {
    padding: clamp(1rem, 1.6vw, 1.75rem);
}

.panel:hover,
.employee-directory-card:hover,
.department-card:hover,
.report-card:hover,
.announcement-card:hover,
.leave-card:hover,
.attendance-card:hover,
.detail-card:hover,
.timeline-card:hover,
.employee-profile-card:hover,
.employee-section-card:hover {
    border-color: var(--c005);
    background: var(--c030);
    box-shadow: var(--design-shadow-hover);
}

.panel-header,
.card-header,
.section-header,
.table-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.panel h2,
.panel h3,
.card-header h2,
.card-header h3,
.section-header h2,
.section-header h3 {
    margin: 0;
    color: var(--design-ink);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0;
}

.dashboard-stats,
.stats-grid,
.summary-grid,
.cards-grid,
.reports-grid,
.department-grid,
.employee-grid,
.metrics-grid {
    gap: 1rem;
}

.stat-card,
.metric-card {
    min-width: 0;
    min-height: 6.5rem;
    padding: 1.15rem 1.2rem;
}

.stat-card p,
.metric-card p {
    margin: 0 0 0.45rem;
    color: var(--design-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat-card strong,
.metric-card strong {
    color: var(--design-ink);
    font-size: clamp(1.75rem, 2.3vw, 2.25rem);
    line-height: 1;
}

.dashboard-stats .metric-card:first-child,
.stats-grid .metric-card.highlight,
.metric-card.highlight {
    border-color: transparent;
    background: var(--theme-surface-strong);
    color: var(--theme-surface-strong);
}

.dashboard-stats .metric-card:first-child p,
.dashboard-stats .metric-card:first-child strong,
.dashboard-stats .metric-card:first-child small,
.metric-card.highlight p,
.metric-card.highlight strong,
.metric-card.highlight small {
    color: var(--theme-surface-strong);
}

.form-grid,
.grid-form,
.pro-form-grid,
form .field-grid {
    gap: 1rem;
}

.field-group,
.form-group,
.input-group {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
    margin: 0;
}

.field-group input:not([type="checkbox"]):not([type="radio"]),
.field-group select,
.field-group textarea,
.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea,
.input-group input:not([type="checkbox"]):not([type="radio"]),
.input-group select,
.input-group textarea,
.search-shell,
input.form-control,
select.form-select,
textarea.form-control {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--c026);
    border-radius: var(--design-radius-sm);
    background: var(--theme-surface-strong);
    color: var(--design-ink);
    font-size: 0.9rem;
    line-height: 1.4;
}

.field-group textarea,
.form-group textarea,
.input-group textarea,
textarea.form-control {
    min-height: 6rem;
    resize: vertical;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus,
.search-shell:focus-within,
input.form-control:focus,
select.form-select:focus,
textarea.form-control:focus {
    border-color: var(--c027);
    box-shadow: 0 0 0 3px var(--c028);
    outline: 0;
}

.checkbox-field,
.checkbox-row,
.check-row,
.form-check,
.field-group:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    margin-top: 0.15rem;
    border: 1px solid var(--c029);
    border-radius: var(--design-radius-sm);
    background: var(--c030);
}

.checkbox-field label,
.checkbox-row label,
.check-row label,
.form-check label,
.field-group:has(input[type="checkbox"]) label {
    margin: 0;
    color: var(--c073);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--design-primary);
}

.form-actions,
.button-row,
.actions-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.4rem;
}

.button,
a.button,
button.button,
input[type="submit"] {
    min-height: 2.75rem;
    padding: 0 1.15rem;
    border: 1px solid var(--design-primary);
    border-radius: 999px;
    background: var(--design-primary);
    color: var(--theme-surface-strong);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: none;
}

.button:hover,
a.button:hover,
button.button:hover,
input[type="submit"]:hover {
    border-color: var(--design-primary-dark);
    background: var(--design-primary-dark);
    color: var(--theme-surface-strong);
    box-shadow: none;
}

.button.secondary,
.button.ghost,
a.button.secondary,
a.button.ghost,
button.button.secondary,
button.button.ghost {
    border-color: var(--design-line);
    background: var(--theme-surface-strong);
    color: var(--design-ink);
    box-shadow: none;
}

.button.secondary:hover,
.button.ghost:hover,
a.button.secondary:hover,
a.button.ghost:hover,
button.button.secondary:hover,
button.button.ghost:hover {
    border-color: var(--c005);
    background: var(--c030);
    color: var(--design-blue);
}

.table-wrap {
    padding: 0;
    overflow: hidden;
}

table {
    width: 100%;
    border-color: var(--design-line);
    border-collapse: separate;
    border-spacing: 0;
    background: var(--theme-surface-strong);
}

thead {
    background: var(--theme-surface-cool);
}

thead th {
    border-bottom: 1px solid var(--design-line);
    background: var(--theme-surface-cool);
    color: var(--theme-slate);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
}

tbody td {
    border-top: 1px solid var(--theme-border);
    border-bottom: 0;
    color: var(--theme-ink-muted);
}

tbody tr:hover {
    background: var(--c030);
}

.message {
    border: 1px solid var(--design-line);
    border-radius: var(--design-radius-sm);
    box-shadow: var(--design-shadow);
}

.status-active,
.badge-success,
.active-badge {
    background: var(--c789);
    color: var(--c004);
}

.status-pending,
.badge-warning,
.pending-badge {
    background: var(--c790);
    color: var(--c010);
}

.status-inactive,
.badge-danger,
.inactive-badge {
    background: var(--c791);
    color: var(--c024);
}

.icon-tile,
.nav-icon,
.brand-mark {
    width: 2.625rem;
    height: 2.625rem;
    display: grid;
    place-items: center;
    border-radius: 12px;
}

.icon-tile svg,
.nav-icon svg,
.brand-mark svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
}

.pro-module-page,
.dashboard-page,
.employee-detail-page,
.employee-directory-page,
.department-page,
.reports-page,
.performance-page {
    display: grid;
    gap: clamp(1rem, 1.5vw, 1.5rem);
}

.pro-two-column {
    gap: 1rem;
}

.holiday-calendar-page {
    gap: 1.5rem;
}

.holiday-calendar-page .holiday-import-strip,
.holiday-calendar-page .panel,
.holiday-calendar-page .metric-card {
    border-radius: var(--design-radius);
}

.holiday-import-strip {
    padding: clamp(1rem, 1.4vw, 1.4rem);
}

.holiday-import-form {
    border-radius: var(--design-radius);
}

.holiday-import-button-stack {
    align-self: stretch;
}

.holiday-import-button-stack .button {
    min-height: 2.65rem;
}

@media (max-width: 1180px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-tools {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .search-shell {
        flex: 1 1 18rem;
    }
}

@media (max-width: 760px) {
    .main-panel {
        padding: 0.85rem;
    }

    .panel-header,
    .card-header,
    .section-header,
    .table-header {
        flex-direction: column;
    }

    .button,
    a.button,
    button.button,
    input[type="submit"] {
        width: 100%;
    }
}

/* Header hamburger cleanup */
.toolbar-toggle {
    display: none !important;
}

@media (max-width: 760px) {
    .toolbar-toggle {
        display: inline-grid !important;
        place-items: center;
        width: 2.75rem;
        height: 2.75rem;
        padding: 0;
    }

    .topbar-tools {
        display: grid;
        grid-template-columns: 2.75rem minmax(0, 1fr);
        align-items: center;
        gap: 0.75rem;
        width: 100%;
    }

    .topbar-tools .search-shell {
        grid-column: 2;
        width: 100%;
    }

    .topbar-actions {
        grid-column: 1 / -1;
        width: 100%;
    }
}

/* Form rhythm fix: keep labels and inputs from touching */
.form-grid,
.grid-form,
.pro-form-grid,
.employee-inline-performance-form,
.employee-form-layout-v4 .grid-form {
    row-gap: 1.2rem !important;
    column-gap: 1rem;
}

.panel-header {
    margin-bottom: 1.25rem !important;
}

.field-group,
.form-group,
.input-group,
.pro-module-page .field-group,
.holiday-import-form .field-group,
.employee-inline-performance-form .field-group,
.employee-form-layout-v4 .field-group {
    gap: 0.68rem !important;
}

.field-group label,
.form-group label,
.input-group label,
.pro-module-page .field-group label,
.employee-inline-performance-form label,
.employee-form-layout-v4 .field-group label {
    display: block;
    margin: 0 !important;
    line-height: 1.2;
}

.field-group input:not([type="checkbox"]):not([type="radio"]),
.field-group select,
.field-group textarea,
.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea,
.input-group input:not([type="checkbox"]):not([type="radio"]),
.input-group select,
.input-group textarea {
    display: block;
}

.field-group:has(textarea),
.employee-inline-performance-form .field-group:has(textarea),
.pro-module-page .field-group:has(textarea) {
    gap: 0.72rem !important;
}

/* Definitive HRIS form layout rule */
.form-grid,
.pro-form-grid,
.grid-form,
.employee-inline-performance-form,
.employee-form-layout-v4 .grid-form {
    display: grid !important;
    align-items: start;
    row-gap: 1.45rem !important;
    column-gap: 1rem !important;
}

.field-group,
.form-group,
.input-group,
.pro-module-page .field-group,
.employee-inline-performance-form .field-group,
.employee-form-layout-v4 .field-group {
    margin: 0 !important;
    padding: 0 !important;
}

.field-group + .field-group,
.form-group + .form-group,
.input-group + .input-group {
    margin-top: 1.1rem !important;
}

.field-group label,
.form-group label,
.input-group label {
    margin-bottom: 0.28rem !important;
}

.field-group:has(textarea),
.form-group:has(textarea),
.input-group:has(textarea) {
    margin-bottom: 0.35rem !important;
}

.field-group:has(textarea) + .field-group,
.field-group:has(textarea) + .checkbox-field,
.form-group:has(textarea) + .form-group,
.input-group:has(textarea) + .input-group {
    margin-top: 1.45rem !important;
}

.form-actions,
.button-row,
.actions-row {
    margin-top: 1rem !important;
    padding-bottom: 0.25rem;
}

/* Grid forms should use row-gap, not sibling top margins. */
.form-grid > .field-group + .field-group,
.pro-form-grid > .field-group + .field-group,
.grid-form > .field-group + .field-group,
.employee-inline-performance-form > .field-group + .field-group,
.employee-form-layout-v4 .grid-form > .field-group + .field-group {
    margin-top: 0 !important;
}

.form-grid > .field-group:has(textarea) + .field-group,
.pro-form-grid > .field-group:has(textarea) + .field-group,
.grid-form > .field-group:has(textarea) + .field-group,
.employee-inline-performance-form > .field-group:has(textarea) + .field-group {
    margin-top: 0 !important;
}

/* Sidebar icon color standard */
.sidebar .brand-mark,
.sidebar .nav-icon,
.sidebar .sidebar-toggle {
    border-color: var(--c014);
    background: var(--c030);
    color: var(--c055);
}

.sidebar .brand-mark svg,
.sidebar .nav-icon svg,
.sidebar .sidebar-toggle svg {
    color: currentColor;
    stroke: currentColor;
}

.sidebar-nav a:hover .nav-icon,
.sidebar-nav a:focus .nav-icon,
.sidebar-nav a.active .nav-icon,
.sidebar-logout-link:hover .nav-icon,
.sidebar-logout-link:focus-visible .nav-icon {
    border-color: var(--c014);
    background: var(--theme-surface-strong);
    color: var(--c055);
}

.sidebar-nav a:hover,
.sidebar-nav a:focus,
.sidebar-nav a.active {
    background: var(--c792);
    color: var(--c055);
}

/* Sticky topbar without horizontal divider */
.topbar {
    position: static;
    top: 0;
    z-index: 30;
    border-bottom: 0 !important;
    background: transparent;
}

.topbar::after {
    display: none !important;
    content: none !important;
}

.search-shell input,
.search-shell input:focus,
.search-shell input:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.search-shell:focus-within {
    border-color: var(--c005) !important;
    box-shadow: 0 0 0 3px var(--c028) !important;
}

/* Announcements page form layout */
.announcements-page .pro-two-column {
    grid-template-columns: minmax(28rem, 1.1fr) minmax(22rem, 0.9fr);
    gap: 1.2rem;
}

.announcement-form-panel {
    padding: clamp(1.35rem, 2vw, 2rem);
}

.announcement-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.35rem !important;
}

.announcement-form-grid .field-group.full-width {
    grid-column: 1 / -1;
}

.announcement-form-grid textarea {
    min-height: 8rem;
}

.announcement-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    align-self: end;
}

.announcement-check-grid .checkbox-field {
    min-height: 2.75rem !important;
    height: 2.75rem;
    margin: 0 !important;
    padding: 0.45rem 0.75rem !important;
    gap: 0.5rem;
    border-radius: 12px;
}

.announcement-check-grid .checkbox-field input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    appearance: none;
    display: inline-grid;
    place-items: center;
    margin: 0;
    border: 1px solid var(--c793);
    border-radius: 3px;
    background: var(--theme-surface-strong);
    outline: 0;
    box-shadow: none;
}

.announcement-check-grid .checkbox-field input[type="checkbox"]:checked {
    border-color: var(--theme-success-strong);
    background: var(--theme-success-strong);
}

.announcement-check-grid .checkbox-field input[type="checkbox"]:checked::after {
    content: "";
    width: 0.35rem;
    height: 0.62rem;
    border: solid var(--theme-surface-strong);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

.announcement-check-grid .checkbox-field input[type="checkbox"]:focus-visible {
    box-shadow: 0 0 0 3px var(--c028);
}

/* Cleaner announcement checkbox: avoid native browser artifacts */
.announcement-check-grid .checkbox-field {
    position: relative;
}

.announcement-check-grid .checkbox-field input[type="checkbox"] {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    width: 1rem;
    height: 1rem;
    margin: 0;
    opacity: 0;
    transform: translateY(-50%);
}

.announcement-check-grid .checkbox-field label {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 1rem;
    padding-left: 1.55rem;
}

.announcement-check-grid .checkbox-field label::before {
    content: "";
    position: absolute;
    left: 0;
    width: 0.95rem;
    height: 0.95rem;
    border: 1px solid var(--c793);
    border-radius: 3px;
    background: var(--theme-surface-strong);
}

.announcement-check-grid .checkbox-field input[type="checkbox"]:checked + label::before {
    border-color: var(--theme-success-strong);
    background: var(--theme-success-strong);
}

.announcement-check-grid .checkbox-field input[type="checkbox"]:checked + label::after {
    content: "";
    position: absolute;
    left: 0.32rem;
    top: 50%;
    width: 0.25rem;
    height: 0.5rem;
    border: solid var(--theme-surface-strong);
    border-width: 0 2px 2px 0;
    transform: translateY(-60%) rotate(45deg);
}

.announcement-check-grid .checkbox-field input[type="checkbox"]:focus-visible + label::before {
    box-shadow: 0 0 0 3px var(--c028);
}

.announcement-check-grid .checkbox-field label {
    font-size: 0.82rem;
    line-height: 1.2;
}

.announcement-form-grid .form-actions {
    margin-top: 0.35rem !important;
}

@media (max-width: 1180px) {
    .announcements-page .pro-two-column,
    .announcement-form-grid,
    .announcement-check-grid {
        grid-template-columns: 1fr;
    }
}

/* Announcements page final layout polish */
body:has(.announcements-page) .main-panel > .announcements-page {
    display: grid !important;
    gap: 0.9rem !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body:has(.announcements-page) .announcement-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(12rem, 1fr)) !important;
    gap: 0.75rem !important;
    margin: 0 !important;
    max-width: 48rem !important;
}

body:has(.announcements-page) .announcement-stats .metric-card,
body:has(.announcements-page) .announcement-stats .metric-card:first-child {
    min-height: 5.9rem !important;
    padding: 1rem !important;
    border: 1px solid var(--c051) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body:has(.announcements-page) .announcements-workspace {
    display: grid !important;
    grid-template-columns: minmax(34rem, 1.15fr) minmax(24rem, 0.85fr) !important;
    gap: 0.85rem !important;
    align-items: start !important;
}

body:has(.announcements-page) .announcement-form-panel,
body:has(.announcements-page) .announcement-notice-panel {
    overflow: hidden !important;
    padding: 0 !important;
    border: 1px solid var(--c051) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body:has(.announcements-page) .announcement-form-panel .panel-header,
body:has(.announcements-page) .announcement-notice-panel .panel-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    margin: 0 !important;
    padding: 1rem 1.05rem !important;
    border-bottom: 1px solid var(--c016) !important;
    background: var(--c012) !important;
}

body:has(.announcements-page) .announcement-form-panel .eyebrow,
body:has(.announcements-page) .announcement-notice-panel .eyebrow {
    margin: 0 0 0.28rem !important;
    color: var(--c332) !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.09em !important;
}

body:has(.announcements-page) .announcement-form-panel h3,
body:has(.announcements-page) .announcement-notice-panel h3 {
    margin: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 1.02rem !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
}

body:has(.announcements-page) .announcement-form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    padding: 1.05rem !important;
}

body:has(.announcements-page) .announcement-form-grid .field-group {
    gap: 0.42rem !important;
}

body:has(.announcements-page) .announcement-form-grid input,
body:has(.announcements-page) .announcement-form-grid select,
body:has(.announcements-page) .announcement-form-grid textarea {
    border-radius: 7px !important;
    box-shadow: none !important;
}

body:has(.announcements-page) .announcement-form-grid textarea {
    min-height: 7.25rem !important;
    resize: vertical !important;
}

body:has(.announcements-page) .announcement-check-grid {
    align-self: end !important;
}

body:has(.announcements-page) .announcement-list-limit {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 1.8rem !important;
    padding: 0 0.65rem !important;
    border: 1px solid var(--c293) !important;
    border-radius: 999px !important;
    background: var(--c030) !important;
    color: var(--c794) !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
}

body:has(.announcements-page) .announcement-notice-list {
    display: grid !important;
    gap: 0.6rem !important;
    max-height: min(42rem, calc(100vh - 15.5rem)) !important;
    overflow-y: auto !important;
    padding: 0.85rem !important;
    overscroll-behavior: contain !important;
}

body:has(.announcements-page) .announcement-notice-card {
    display: grid !important;
    gap: 0.45rem !important;
    margin: 0 !important;
    padding: 0.85rem !important;
    border: 1px solid var(--c795) !important;
    border-radius: 7px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body:has(.announcements-page) .announcement-card-meta {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
}

body:has(.announcements-page) .announcement-notice-card h4 {
    margin: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 0.91rem !important;
    font-weight: 650 !important;
    line-height: 1.3 !important;
}

body:has(.announcements-page) .announcement-notice-card p {
    margin: 0 !important;
    max-width: 72ch !important;
    color: var(--theme-ink-muted) !important;
    font-size: 0.84rem !important;
    font-weight: 450 !important;
    line-height: 1.5 !important;
}

body:has(.announcements-page) .announcement-notice-card small {
    color: var(--theme-slate-muted) !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
}

body:has(.announcements-page) .announcement-notice-list .empty-state {
    margin: 0 !important;
    min-height: 7rem !important;
    display: grid !important;
    place-items: center !important;
    border: 1px dashed var(--c013) !important;
    border-radius: 7px !important;
    background: var(--theme-surface-cool) !important;
    color: var(--theme-slate-muted) !important;
}

@media (max-width: 1180px) {
    body:has(.announcements-page) .announcements-workspace,
    body:has(.announcements-page) .announcement-form-grid,
    body:has(.announcements-page) .announcement-check-grid {
        grid-template-columns: 1fr !important;
    }

    body:has(.announcements-page) .announcement-notice-list {
        max-height: 34rem !important;
    }
}

@media (max-width: 640px) {
    body:has(.announcements-page) .announcement-stats {
        grid-template-columns: 1fr !important;
        max-width: none !important;
    }

    body:has(.announcements-page) .announcement-form-panel .panel-header,
    body:has(.announcements-page) .announcement-notice-panel .panel-header {
        align-items: flex-start !important;
        flex-direction: column !important;
    }
}

/* Succession planning page polish */
body:has(.succession-page) .main-panel > .succession-page {
    display: grid !important;
    gap: 0.9rem !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body:has(.succession-page) .succession-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(14rem, 1fr)) !important;
    gap: 0.75rem !important;
    max-width: 68rem !important;
    margin: 0 !important;
}

body:has(.succession-page) .succession-stats .metric-card,
body:has(.succession-page) .succession-stats .metric-card:first-child {
    min-height: 6.35rem !important;
    padding: 1rem 1.1rem !important;
    border: 1px solid var(--c051) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body:has(.succession-page) .succession-stats .metric-card p {
    margin-bottom: 0.45rem !important;
    color: var(--c332) !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
}

body:has(.succession-page) .succession-stats .metric-card strong {
    color: var(--theme-ink-strong) !important;
    font-size: 1.8rem !important;
    font-weight: 750 !important;
    line-height: 1 !important;
}

body:has(.succession-page) .succession-stats .metric-card small {
    margin-top: 0.55rem !important;
    color: var(--c796) !important;
    font-size: 0.8rem !important;
    font-weight: 550 !important;
}

body:has(.succession-page) .succession-workspace {
    display: grid !important;
    grid-template-columns: minmax(28rem, 0.98fr) minmax(25rem, 1.02fr) !important;
    gap: 0.9rem !important;
    align-items: start !important;
}

body:has(.succession-page) .succession-form-panel,
body:has(.succession-page) .succession-map-panel {
    overflow: hidden !important;
    padding: 0 !important;
    border: 1px solid var(--c051) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body:has(.succession-page) .succession-form-panel .panel-header,
body:has(.succession-page) .succession-map-panel .panel-header {
    margin: 0 !important;
    padding: 1rem 1.05rem !important;
    border-bottom: 1px solid var(--c016) !important;
    background: var(--c012) !important;
}

body:has(.succession-page) .succession-form-panel .eyebrow,
body:has(.succession-page) .succession-map-panel .eyebrow {
    margin: 0 0 0.28rem !important;
    color: var(--c332) !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.09em !important;
}

body:has(.succession-page) .succession-form-panel h3,
body:has(.succession-page) .succession-map-panel h3 {
    margin: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 1.05rem !important;
    font-weight: 650 !important;
}

body:has(.succession-page) .succession-form {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    padding: 1.05rem !important;
}

body:has(.succession-page) .succession-form input,
body:has(.succession-page) .succession-form select,
body:has(.succession-page) .succession-form textarea {
    border-radius: 7px !important;
    box-shadow: none !important;
}

body:has(.succession-page) .succession-form textarea {
    min-height: 6.2rem !important;
    resize: vertical !important;
}

body:has(.succession-page) .succession-plan-list {
    display: grid !important;
    gap: 0.65rem !important;
    max-height: min(34rem, calc(100vh - 20rem)) !important;
    overflow-y: auto !important;
    padding: 0.85rem !important;
    overscroll-behavior: contain !important;
}

body:has(.succession-page) .succession-plan-card {
    display: block !important;
    min-height: 0 !important;
    padding: 0.95rem !important;
    border: 1px solid var(--c795) !important;
    border-radius: 7px !important;
    background: var(--theme-surface-strong) !important;
    color: var(--theme-ink-strong) !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

body:has(.succession-page) .succession-plan-card:hover,
body:has(.succession-page) .succession-plan-card:focus-visible {
    border-color: var(--c797) !important;
    background: var(--c030) !important;
    outline: 2px solid transparent !important;
}

body:has(.succession-page) .succession-plan-card strong {
    display: block !important;
    margin: 0 0 0.55rem !important;
    color: var(--theme-ink-strong) !important;
    font-size: 0.96rem !important;
    font-weight: 700 !important;
}

body:has(.succession-page) .succession-plan-card small {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.38rem !important;
    color: var(--c783) !important;
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
}

body:has(.succession-page) .succession-plan-card small span {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 1.55rem !important;
    padding: 0 0.5rem !important;
    border: 1px solid var(--c798) !important;
    border-radius: 999px !important;
    background: var(--c030) !important;
    color: var(--c794) !important;
}

body:has(.succession-page) .succession-plan-list .empty-state {
    margin: 0 !important;
    min-height: 7rem !important;
    display: grid !important;
    place-items: center !important;
    border: 1px dashed var(--c013) !important;
    border-radius: 7px !important;
    background: var(--theme-surface-cool) !important;
    color: var(--theme-slate-muted) !important;
}

@media (max-width: 1080px) {
    body:has(.succession-page) .succession-workspace,
    body:has(.succession-page) .succession-form {
        grid-template-columns: 1fr !important;
    }

    body:has(.succession-page) .succession-plan-list {
        max-height: 30rem !important;
    }
}

@media (max-width: 760px) {
    body:has(.succession-page) .succession-stats {
        grid-template-columns: 1fr !important;
        max-width: none !important;
    }
}

/* Employee form tabs: sticky and no underline */
.employee-profile-form-page .employee-form-nav-v4 {
    position: sticky;
    top: 5.25rem;
    z-index: 25;
    padding: 0.9rem 1rem;
    border-bottom: 0 !important;
    background: var(--c671);
}

.employee-profile-form-page .employee-top-tabs {
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.employee-profile-form-page .employee-top-tabs::after {
    display: none !important;
    content: none !important;
}

.employee-profile-form-page .employee-top-tabs a {
    border-bottom: 1px solid var(--design-line) !important;
}

.employee-profile-form-page .employee-top-tabs a:hover,
.employee-profile-form-page .employee-top-tabs a:focus,
.employee-profile-form-page .employee-top-tabs a.active {
    border-bottom-color: var(--c587) !important;
}

@media (max-width: 860px) {
    .employee-profile-form-page .employee-form-nav-v4 {
        top: 0.75rem;
    }
}

.error-page {
    display: grid;
    min-height: min(34rem, 70vh);
    place-items: center;
    padding: 2rem 0;
}

.error-status-page .error-page {
    align-items: center;
    min-height: calc(100vh - 4rem);
    padding: clamp(1rem, 4vh, 2rem) 0;
}

.suppress-sidebar-active .sidebar-nav a.active,
.suppress-sidebar-active .sidebar-subnav a.active {
    border-color: var(--c079);
    background: transparent;
    color: var(--c799);
    box-shadow: none;
}

.suppress-sidebar-active .sidebar-nav a.active .nav-icon {
    background: transparent;
    color: inherit;
}

.error-card {
    width: min(46rem, 100%);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 1.2rem;
    padding: clamp(1.35rem, 3vw, 2rem);
    border: 1px solid var(--hris-line);
    border-radius: 12px;
    background: var(--theme-surface-strong);
    box-shadow: none;
    text-align: left;
}

.error-code {
    display: inline-grid;
    width: 4.5rem;
    height: 4.5rem;
    place-items: center;
    border: 1px solid var(--hris-line-strong);
    border-radius: 12px;
    background: var(--c030);
    color: var(--theme-brand-teal);
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    box-shadow: none;
}

.error-card .eyebrow {
    margin: 0 0 0.45rem;
    color: var(--theme-slate-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.error-card h1,
.error-card h2 {
    max-width: 18ch;
    margin: 0;
    color: var(--theme-ink-strong);
    font-size: 2.4rem;
    font-weight: 850;
    line-height: 1.02;
    letter-spacing: 0;
    text-wrap: balance;
}

.error-card p:not(.eyebrow) {
    max-width: 36rem;
    margin: 0.8rem 0 0;
    color: var(--theme-ink-muted);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.55;
    text-wrap: pretty;
}

.error-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    max-width: 34rem;
    margin: 1.25rem 0 0;
    padding: 0;
    border: 1px solid var(--hris-line);
    border-radius: 10px;
    background: var(--theme-surface-cool);
    overflow: hidden;
}

.error-meta div {
    display: grid;
    gap: 0.18rem;
    padding: 0.78rem 0.9rem;
}

.error-meta div + div {
    border-left: 1px solid var(--hris-line);
}

.error-meta dt,
.error-meta dd {
    margin: 0;
}

.error-meta dt {
    color: var(--theme-slate-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.error-meta dd {
    color: var(--theme-ink-strong);
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.3;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.error-actions .button {
    min-width: 7.5rem;
    min-height: 2.55rem;
    padding: 0.62rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 650;
    letter-spacing: 0;
    line-height: 1.1;
    text-transform: none;
}

.error-actions .secondary-button {
    border-color: var(--hris-line-strong);
    background: var(--theme-surface-strong);
    color: var(--theme-ink-muted);
    box-shadow: none;
}

.error-actions .secondary-button:hover,
.error-actions .secondary-button:focus-visible {
    border-color: var(--hris-primary);
    background: var(--theme-surface-cool);
    color: var(--hris-primary);
}

.standalone-error-shell {
    min-height: 100vh;
    display: grid;
    padding: 2rem;
    background: var(--theme-bg-app);
}

.error-403-page .standalone-error-shell {
    align-items: center;
}

@media (max-width: 700px) {
    .standalone-error-shell {
        padding: 1rem;
    }

    .error-status-page .error-page {
        min-height: calc(100vh - 2rem);
    }

    .error-card {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.2rem;
        border-radius: 10px;
    }

    .error-code {
        width: 3.9rem;
        height: 3.9rem;
        border-radius: 10px;
        font-size: 1.05rem;
    }

    .error-card h1,
    .error-card h2 {
        max-width: none;
        font-size: 1.9rem;
    }

    .error-meta {
        grid-template-columns: 1fr;
    }

    .error-meta div + div {
        border-top: 1px solid var(--hris-line);
        border-left: 0;
    }

    .error-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .error-actions .button {
        width: 100%;
    }
}
/* Department workspace polish */
.sidebar {
    width: 300px;
}

.main-panel {
    margin-left: calc(var(--sidebar-width) + var(--shell-gap));
}

body.sidebar-collapsed .main-panel {
    margin-left: calc(var(--sidebar-collapsed-width) + var(--shell-gap));
}

.sidebar-head {
    gap: 0.65rem;
}

.brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.75rem;
    padding-right: 0.2rem;
}

.brand-copy strong {
    max-width: 8.2rem;
    font-size: 0.96rem;
}

.brand-copy small {
    max-width: 10.5rem;
    overflow: hidden;
    color: var(--c718);
    font-size: 0.67rem;
    letter-spacing: 0.1em;
    line-height: 1.25;
}

.sidebar-toggle-inline {
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.35rem;
}

.topbar-tools {
    flex: 0 1 42rem;
    justify-content: flex-end;
    min-width: 0;
}

.search-shell {
    width: clamp(22rem, 28vw, 30rem);
    max-width: 100%;
    min-width: 18rem;
    flex: 0 1 auto;
}

.search-shell input {
    min-width: 0;
}

.department-page {
    max-width: 100%;
}

.department-page .department-hero.panel {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding: 1.45rem 1.55rem;
}

.department-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.department-title-row h2 {
    min-width: 0;
}

.department-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.department-actions form {
    margin: 0;
}

.button.danger,
button.button.danger {
    border-color: var(--c022);
    background: var(--c023);
    color: var(--c247);
}

.button.danger:hover,
button.button.danger:hover,
.button.danger:focus-visible,
button.button.danger:focus-visible {
    border-color: var(--c090);
    background: var(--c791);
    color: var(--c024);
}

.department-page .department-hero-copy h2 {
    font-size: clamp(2rem, 3.2vw, 2.85rem);
}

.department-page .department-hero .department-summary-grid {
    width: min(100%, 48rem);
    margin-top: 1.1rem;
    grid-template-columns: minmax(13rem, 1fr) minmax(15rem, 1.1fr);
    gap: 0.8rem;
}

.department-page .department-hero .department-summary-card,
.department-page .department-hero .department-summary-card:not(.compact) {
    min-height: 7.25rem;
    padding: 0.9rem 1rem;
    gap: 0.75rem;
}

.department-page .department-hero .department-summary-card span {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    line-height: 1.25;
}

.department-page .department-hero .department-summary-card strong,
.department-page .department-hero .department-summary-card strong.department-summary-money {
    font-size: clamp(1.55rem, 2vw, 1.95rem);
    line-height: 1.08;
}

.department-page .department-hero .department-summary-card strong.department-summary-money {
    white-space: nowrap;
}

.department-page .department-hero .department-summary-card small {
    font-size: 0.75rem;
}

.department-page .department-roster-panel.panel {
    padding: 1.1rem 1.25rem;
}

.department-page .department-member-card {
    grid-template-columns: minmax(14rem, 1fr) minmax(26rem, 0.95fr);
    padding: 0.8rem 0.95rem;
}

.department-page .department-member-meta {
    grid-template-columns: minmax(12rem, 1.55fr) minmax(8rem, 0.85fr) auto;
}

.department-page .department-meta-chip {
    min-height: 3.5rem;
    padding: 0.6rem 0.7rem;
}

@media (max-width: 1280px) {
    .department-page .department-hero.panel {
        grid-template-columns: 1fr;
    }

    .department-page .department-member-card,
    .department-page .department-member-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1180px) {
    .sidebar {
        width: var(--sidebar-width);
    }

    .main-panel,
    body.sidebar-collapsed .main-panel {
        margin-left: calc(var(--sidebar-width) + var(--shell-gap));
    }
}

@media (max-width: 760px) {
    .search-shell {
        width: 100%;
        min-width: 0;
    }

    .department-title-row,
    .department-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .department-actions {
        justify-content: flex-start;
    }

    .department-actions .button {
        width: 100%;
    }

    .department-page .department-hero .department-summary-grid {
        grid-template-columns: 1fr;
    }

    .department-page .department-hero .department-summary-card strong.department-summary-money {
        white-space: normal;
    }
}

/* Department detail action/header refinements */
.department-page .department-hero.panel {
    min-height: 0;
}

.department-page .department-hero-copy {
    display: grid;
    gap: 0.95rem;
    max-width: 58rem;
}

.department-page .department-title-row {
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
}

.department-page .department-title-row h2 {
    margin: 0;
    line-height: 1.05;
}

.department-page .department-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding-top: 0.18rem;
}

.department-page .department-actions .button,
.department-page .department-actions button.button {
    min-height: 2.65rem;
    border: 1px solid var(--c811);
    border-radius: 8px;
    box-shadow: none;
    padding: 0 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.department-page .department-actions .button.secondary {
    background: var(--theme-surface-strong);
    color: var(--c060);
}

.department-page .department-actions .button.secondary:hover,
.department-page .department-actions .button.secondary:focus-visible {
    border-color: var(--c812);
    background: var(--c068);
}

.department-page .department-actions .button.danger,
.department-page .department-actions button.button.danger {
    border-color: var(--c813);
    background: var(--c814);
    color: var(--c237);
}

.department-page .department-actions .button.danger:hover,
.department-page .department-actions button.button.danger:hover,
.department-page .department-actions .button.danger:focus-visible,
.department-page .department-actions button.button.danger:focus-visible {
    border-color: var(--c815);
    background: var(--c816);
    color: var(--c817);
}

.department-page .department-hero-text {
    margin: 0;
}

.department-page .department-hero .department-summary-grid {
    width: min(100%, 51rem);
    margin-top: 0.15rem;
}

@media (max-width: 760px) {
    .department-page .department-title-row {
        align-items: stretch;
        flex-direction: column;
    }

    .department-page .department-actions {
        justify-content: flex-start;
        padding-top: 0;
    }

    .department-page .department-actions .button,
    .department-page .department-actions button.button {
        width: 100%;
    }
}

/* Employee profile polish from design.md */
body:has(.employee-dashboard) {
    background: var(--theme-bg-app);
}

body:has(.employee-dashboard) .topbar {
    align-items: flex-start;
    margin-bottom: 1.4rem;
}

body:has(.employee-dashboard) .topbar h1 {
    color: var(--theme-ink-strong);
    font-size: clamp(1.85rem, 2.7vw, 2.35rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0;
}

.employee-dashboard {
    display: grid;
    gap: 1.25rem;
    width: 100%;
    min-width: 0;
}

.employee-profile-topbar,
.employee-dashboard-tabs,
.employee-dashboard-card,
.employee-side-card {
    border: 1px solid var(--c014);
    border-radius: 18px;
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.employee-profile-topbar {
    grid-template-columns: minmax(16rem, 1.1fr) minmax(20rem, 1.25fr) minmax(14rem, auto);
    gap: 1.25rem;
    padding: 1.35rem 1.55rem;
}

.employee-profile-name h2 {
    color: var(--theme-ink-strong);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 800;
}

.employee-status-pill,
.employee-dashboard .pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 1.85rem;
    padding: 0 0.65rem;
    border: 1px solid var(--c002);
    border-radius: 999px;
    background: var(--c789);
    color: var(--c004);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
}

.employee-status-on_leave,
.employee-dashboard .pill.status-on_leave {
    border-color: var(--c008);
    background: var(--c790);
    color: var(--c010);
}

.employee-status-resigned,
.employee-dashboard .pill.status-resigned {
    border-color: var(--c022);
    background: var(--c791);
    color: var(--c024);
}

.employee-profile-facts article {
    padding-left: 1rem;
    border-left: 1px solid var(--theme-border);
}

.employee-profile-facts span,
.employee-detail-table span,
.employee-address-block span,
.employee-side-info-grid span,
.employee-notes-block > span,
.employee-stat-grid span,
.employee-evaluation-table span,
.employee-yearly-evaluation-grid span,
.employee-career-list small {
    color: var(--theme-slate-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.25;
    text-transform: uppercase;
}

.employee-profile-facts strong,
.employee-detail-table strong,
.employee-address-block strong,
.employee-side-info-grid strong,
.employee-notes-block strong,
.employee-stat-grid strong {
    color: var(--theme-ink-strong);
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.employee-dashboard-tabs {
    position: sticky;
    top: 0.6rem;
    z-index: 4;
    gap: 0.35rem;
    padding: 0.45rem;
    border-radius: 18px;
    background: var(--c142);
}

body:has(.employee-dashboard) .employee-dashboard-tabs a,
body:has(.employee-dashboard) .employee-dashboard-tabs a.active,
body:has(.employee-dashboard) .employee-dashboard-tabs a:hover,
body:has(.employee-dashboard) .employee-dashboard-tabs a:focus-visible {
    min-height: 2.25rem;
    padding: 0.55rem 0.8rem;
    border: 0;
    border-radius: 999px;
    color: var(--theme-slate);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

body:has(.employee-dashboard) .employee-dashboard-tabs a.active,
body:has(.employee-dashboard) .employee-dashboard-tabs a:hover,
body:has(.employee-dashboard) .employee-dashboard-tabs a:focus-visible {
    background: var(--c584);
    color: var(--theme-ink-strong);
}

.employee-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 28rem);
    gap: 1.25rem;
    align-items: start;
    width: 100%;
    min-width: 0;
}

.employee-dashboard-main,
.employee-dashboard-side {
    width: 100%;
    min-width: 0;
}

.employee-dashboard-side {
    position: static;
    z-index: auto;
}

.employee-dashboard-card,
.employee-side-card {
    min-width: 0;
    padding: 1.55rem;
    overflow: hidden;
    scroll-margin-top: 6rem;
}

.employee-dashboard-card-head {
    align-items: flex-start;
    gap: 0.9rem;
    padding-bottom: 0.15rem;
}

.employee-dashboard-card-head h3 {
    color: var(--theme-ink-strong);
    font-size: clamp(1.1rem, 1.4vw, 1.28rem);
    font-weight: 800;
    line-height: 1.2;
}

.employee-detail-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--theme-border);
}

.employee-detail-table article {
    padding: 1.05rem 1rem 1.05rem 0;
    border-bottom: 1px solid var(--theme-border);
}

.employee-detail-table article:nth-child(2n) {
    padding-left: 1rem;
}

.employee-side-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
}

.employee-side-info-grid strong {
    color: var(--c818);
    font-size: 0.88rem;
}

.employee-side-link,
.employee-section-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 2.15rem;
    padding: 0 0.8rem;
    border: 1px solid var(--c005);
    border-radius: 999px;
    background: var(--c006);
    color: var(--c007);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.employee-side-link:hover,
.employee-section-action:hover,
.employee-section-action:active,
.employee-section-action.active,
.employee-section-action:focus-visible {
    background: var(--c025);
    color: var(--c250);
    box-shadow: none;
}

.employee-holiday-card .employee-dashboard-card-head h3 {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.employee-holiday-item {
    grid-template-columns: minmax(5.8rem, auto) minmax(0, 1fr);
    border-radius: 14px;
}

.employee-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.employee-stat-grid article,
.employee-stat-card,
.employee-evaluation-card,
.employee-yearly-evaluation-card,
.employee-career-list article,
.employee-tag-box,
.department-meta-chip {
    border: 1px solid var(--c014);
    border-radius: 14px;
    background: var(--c030);
}

.employee-evaluation-grid,
.employee-performance-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.employee-evaluation-table.supervisor,
.employee-evaluation-table.self {
    grid-template-columns: 1fr;
}

.employee-evaluation-table article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--theme-border);
}

.employee-evaluation-table article:last-child {
    border-bottom: 0;
}

.employee-inline-performance-form {
    row-gap: 1.15rem;
    column-gap: 1rem;
}

.employee-inline-performance-form .field-group {
    gap: 0.55rem;
}

.employee-inline-performance-form input,
.employee-inline-performance-form select,
.employee-inline-performance-form textarea {
    min-height: 2.75rem;
    border: 1px solid var(--c026);
    border-radius: 13px;
}

@media (max-width: 1320px) {
    .employee-dashboard-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .employee-dashboard-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .employee-profile-topbar,
    .employee-dashboard-side,
    .employee-evaluation-grid,
    .employee-performance-form-grid {
        grid-template-columns: 1fr;
    }

    .employee-profile-facts {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .employee-profile-topbar,
    .employee-dashboard-card,
    .employee-side-card {
        padding: 1rem;
    }

    .employee-detail-table,
    .employee-side-info-grid,
    .employee-stat-grid,
    .employee-inline-performance-form,
    .employee-yearly-evaluation-grid {
        grid-template-columns: 1fr;
    }

    .employee-detail-table article,
    .employee-detail-table article:nth-child(2n) {
        padding-left: 0;
        padding-right: 0;
    }

    .employee-dashboard-tabs {
        position: static;
    }
}

/* Holiday calendar employee/admin view */
.holiday-calendar-page {
    display: grid;
    gap: 1.2rem;
}

.holiday-upcoming-panel {
    padding: 1.55rem;
}

.holiday-calendar-toolbar {
    align-items: center;
}

.holiday-month-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
}

.holiday-month-nav > strong {
    min-width: 6.5rem;
    color: var(--theme-ink-strong);
    font-size: 1rem;
    font-weight: 900;
    text-align: center;
}

.holiday-month-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
    gap: 1rem;
}

.holiday-month-card {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--c014);
    border-radius: 18px;
    background: var(--c030);
}

.holiday-single-month {
    padding: 1.1rem;
}

.holiday-month-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.holiday-month-card header span,
.holiday-weekday-row span {
    color: var(--theme-slate-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.holiday-month-card header strong {
    color: var(--theme-ink-strong);
    font-size: 1.15rem;
    font-weight: 850;
}

.holiday-weekday-row,
.holiday-calendar-board {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.holiday-weekday-row {
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.holiday-weekday-row span {
    padding: 0.4rem 0;
    text-align: center;
}

.holiday-calendar-board {
    gap: 0.35rem;
}

.holiday-day-cell {
    min-width: 0;
    min-height: 7.2rem;
    padding: 0.45rem;
    border: 1px solid var(--c014);
    border-radius: 12px;
    background: var(--theme-surface-strong);
}

.holiday-day-cell.has-holiday {
    border-color: var(--c005);
    background: var(--c006);
}

.holiday-day-cell.is-today {
    border-color: var(--theme-success-strong);
    background: var(--c003);
    box-shadow: inset 0 0 0 2px var(--c819);
}

.holiday-day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    color: var(--theme-ink-muted);
    font-size: 0.78rem;
    font-weight: 850;
}

.holiday-day-cell.has-holiday .holiday-day-number {
    background: var(--c092);
    color: var(--theme-surface-strong);
}

.holiday-day-cell.is-today .holiday-day-number {
    background: var(--theme-success-strong);
    color: var(--theme-surface-strong);
}

.holiday-day-event {
    display: grid;
    gap: 0.25rem;
    margin-top: 0.35rem;
    padding: 0.45rem;
    border-radius: 10px;
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.holiday-day-event strong {
    color: var(--theme-ink-strong);
    font-size: 0.76rem;
    font-weight: 850;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.holiday-day-event small {
    color: var(--theme-slate-muted);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.25;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.holiday-event-list-panel {
    padding: 1.35rem 1.55rem;
}

.holiday-event-list {
    display: grid;
    gap: 0.75rem;
}

.holiday-event-row {
    display: grid;
    grid-template-columns: minmax(7.5rem, auto) minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
    min-width: 0;
    padding: 0.9rem;
    border: 1px solid var(--c014);
    border-radius: 14px;
    background: var(--c030);
}

.holiday-event-row time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0 0.75rem;
    border: 1px solid var(--c005);
    border-radius: 12px;
    background: var(--c006);
    color: var(--c007);
    font-size: 0.82rem;
    font-weight: 900;
}

.holiday-event-row strong,
.holiday-event-row span,
.holiday-event-row p {
    display: block;
    min-width: 0;
}

.holiday-event-row strong {
    color: var(--theme-ink-strong);
    font-size: 0.98rem;
    font-weight: 850;
}

.holiday-event-row span {
    margin-top: 0.25rem;
    color: var(--theme-slate-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.holiday-event-row p {
    margin: 0.4rem 0 0;
    color: var(--theme-slate);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.45;
}

@media (max-width: 760px) {
    .holiday-month-grid {
        grid-template-columns: 1fr;
    }

    .holiday-month-card {
        overflow-x: auto;
    }

    .holiday-weekday-row,
    .holiday-calendar-board {
        min-width: 42rem;
    }

    .holiday-calendar-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .holiday-month-nav {
        justify-content: flex-start;
    }

    .holiday-event-row {
        grid-template-columns: 1fr;
    }

    .holiday-event-row time {
        width: fit-content;
    }
}

/* Holiday calendar: office events list polish */
.holiday-calendar-page .holiday-event-list-panel {
    padding: 1.25rem 1.35rem !important;
    border: 1px solid var(--c212) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

.holiday-calendar-page .holiday-event-list-panel .panel-header {
    margin: 0 0 1rem !important;
    padding-bottom: 0.85rem !important;
    border-bottom: 1px solid var(--c820) !important;
}

.holiday-calendar-page .holiday-event-list-panel .eyebrow {
    margin: 0 0 0.45rem !important;
    color: var(--c073) !important;
    font-size: 0.72rem !important;
    font-weight: 720 !important;
    letter-spacing: 0.08em !important;
}

.holiday-calendar-page .holiday-event-list-panel h3 {
    margin: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 1.15rem !important;
    font-weight: 680 !important;
    line-height: 1.25 !important;
}

.holiday-calendar-page .holiday-event-list {
    display: grid !important;
    gap: 0.7rem !important;
}

.holiday-calendar-page .holiday-event-row {
    display: grid !important;
    grid-template-columns: 8.5rem minmax(0, 1fr) !important;
    gap: 0.95rem !important;
    align-items: center !important;
    min-height: 4.7rem !important;
    padding: 0.85rem 0.95rem !important;
    border: 1px solid var(--c014) !important;
    border-radius: 8px !important;
    background: var(--c012) !important;
    box-shadow: none !important;
}

.holiday-calendar-page .holiday-event-row time {
    min-height: 2.55rem !important;
    border-radius: 8px !important;
    font-size: 0.78rem !important;
    font-weight: 720 !important;
}

.holiday-calendar-page .holiday-event-row strong {
    font-size: 0.92rem !important;
    font-weight: 680 !important;
}

.holiday-calendar-page .holiday-event-row span {
    color: var(--c073) !important;
    font-size: 0.72rem !important;
    font-weight: 650 !important;
    letter-spacing: 0.04em !important;
}

.holiday-calendar-page .holiday-event-row p {
    color: var(--theme-slate) !important;
    font-size: 0.84rem !important;
    font-weight: 500 !important;
}

.holiday-calendar-page .holiday-event-list > .empty-state {
    display: grid !important;
    min-height: 5.6rem !important;
    place-items: center !important;
    padding: 1.1rem !important;
    border: 1px dashed var(--c821) !important;
    border-radius: 8px !important;
    background: var(--c030) !important;
    color: var(--c073) !important;
    font-size: 0.95rem !important;
    font-weight: 620 !important;
    line-height: 1.35 !important;
    text-align: center !important;
}

/* Holiday setup: keep boolean fields as compact checkboxes, not blue input panels. */
.holiday-calendar-page .pro-form-grid > .field-group:has(input[type="checkbox"]) {
    display: inline-flex !important;
    width: fit-content !important;
    min-height: 2.4rem !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.55rem !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.holiday-calendar-page .pro-form-grid > .field-group:has(input[type="checkbox"]) label {
    order: 2 !important;
    grid-column: auto !important;
    grid-row: auto !important;
    margin: 0 !important;
    color: var(--theme-ink-muted) !important;
    font-size: 0.84rem !important;
    font-weight: 620 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.holiday-calendar-page .pro-form-grid > .field-group:has(input[type="checkbox"]) input[type="checkbox"] {
    order: 1 !important;
    grid-column: auto !important;
    grid-row: auto !important;
    width: 1.05rem !important;
    height: 1.05rem !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
}

@media (max-width: 760px) {
    .holiday-calendar-page .holiday-event-list-panel {
        padding: 1rem !important;
    }

    .holiday-calendar-page .holiday-event-row {
        grid-template-columns: 1fr !important;
        align-items: start !important;
    }

    .holiday-calendar-page .holiday-event-row time {
        width: fit-content !important;
    }
}

/* Full-width HRIS workspace */
.main-panel {
    box-sizing: border-box;
    --workspace-gutter: clamp(1.5rem, 3.2vw, 4rem);
    margin-left: calc(300px + var(--workspace-gutter));
    width: calc(100vw - 300px - (var(--workspace-gutter) * 2));
    max-width: none;
}

body.sidebar-collapsed .main-panel {
    margin-left: calc(var(--sidebar-collapsed-width) + var(--workspace-gutter));
    width: calc(100vw - var(--sidebar-collapsed-width) - (var(--workspace-gutter) * 2));
}


.topbar-copy .eyebrow:empty {
    display: none;
}


.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tag-cloud span {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--c014);
    border-radius: 8px;
    background: var(--c030);
    color: var(--theme-ink-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

/* Keep document delete as a compact action, not a checkbox input panel. */
.employee-form-layout-v4 .employee-document-form-row .document-delete-field {
    grid-column: 1 / -1;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.employee-form-layout-v4 .employee-document-form-row .document-remove-action {
    width: fit-content !important;
    margin: 0 !important;
}

@media (max-width: 1180px) {
    .main-panel,
    body.sidebar-collapsed .main-panel {
        margin-left: 0;
        width: 100%;
    }
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    overflow-wrap: anywhere;
}

.message::before {
    content: '';
    width: 0.62rem;
    height: 0.62rem;
    flex: 0 0 auto;
    margin-top: 0.42rem;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.75;
}

form.is-submitting {
    opacity: 0.82;
}

button[aria-busy='true'] {
    cursor: wait;
}

button[disabled],
.button[disabled] {
    opacity: 0.68;
    pointer-events: none;
}

.import-error-list {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
}

.import-error-list p {
    margin: 0;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--c822);
    border-radius: 10px;
    background: var(--red-soft);
    color: var(--c823);
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.4;
    overflow-wrap: anywhere;
}


/* Final department workspace action placement */
body:has(.department-page) .department-page .department-title-row {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 1.25rem !important;
}

body:has(.department-page) .department-page .department-title-row h2 {
    flex: 1 1 auto;
    min-width: 0;
}

body:has(.department-page) .department-page .department-actions {
    display: flex !important;
    flex: 0 0 auto;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0.65rem !important;
    min-width: 11.5rem;
    margin-top: 0.15rem;
}

body:has(.department-page) .department-page .department-actions form {
    display: contents;
    margin: 0 !important;
}

body:has(.department-page) .department-page .department-actions .button,
body:has(.department-page) .department-page .department-actions button.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 5.15rem;
    min-height: 2.45rem !important;
    border: 1px solid var(--c824) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    padding: 0 1rem !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    transform: none !important;
}

body:has(.department-page) .department-page .department-actions .button.secondary {
    background: var(--theme-surface-strong) !important;
    color: var(--c060) !important;
}

body:has(.department-page) .department-page .department-actions button.button.danger {
    border-color: var(--c825) !important;
    background: var(--c814) !important;
    color: var(--c237) !important;
}

body:has(.department-page) .department-page .department-actions button.button.danger:hover,
body:has(.department-page) .department-page .department-actions button.button.danger:focus-visible {
    border-color: var(--c815) !important;
    background: var(--c826) !important;
    color: var(--c817) !important;
}

@media (max-width: 760px) {
    body:has(.department-page) .department-page .department-title-row {
        flex-direction: column !important;
    }

    body:has(.department-page) .department-page .department-actions {
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        min-width: 0;
    }
}


.calendar-paper::before {
    width: 1.75rem;
    height: 0.18rem;
    top: 0.62rem;
    background: var(--c359);
}


.sidebar-nav a[data-subnav-trigger] {
    position: relative;
    padding-right: 2.15rem;
}

.sidebar-nav a[data-subnav-trigger]::after {
    content: "";
    position: absolute;
    right: 0.75rem;
    top: 50%;
    width: 0.42rem;
    height: 0.42rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: 0.62;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 160ms ease, opacity 160ms ease;
}

.sidebar-nav a[data-subnav-trigger].has-open-subnav::after {
    opacity: 0.9;
    transform: translateY(-35%) rotate(225deg);
}

.sidebar-nav a[data-subnav-trigger].has-open-subnav {
    border-color: var(--c587);
    background: var(--c792);
    color: var(--c055);
}

.sidebar-subnav[hidden] {
    display: none !important;
}

.sidebar-subnav {
    padding-top: 0.2rem;
    padding-bottom: 0.35rem;
}

.sidebar-subnav a {
    position: relative;
}

.sidebar-subnav a::before {
    content: "";
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.35;
}

body.sidebar-collapsed .sidebar-nav a[data-subnav-trigger] {
    padding-right: 0;
}

body.sidebar-collapsed .sidebar-nav a[data-subnav-trigger]::after {
    display: none;
}


/* Contracts & Probation page */
.contract-probation-page {
    display: grid;
    gap: 1rem;
}

.contract-probation-page .panel {
    border: 1px solid var(--c110);
    border-radius: 10px;
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.contract-probation-page .panel-header {
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 0;
    border-bottom: 0;
}

.contract-probation-page .eyebrow {
    margin-bottom: 0.4rem;
    color: var(--theme-slate-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contract-probation-page .panel-header h3 {
    margin: 0;
    color: var(--theme-ink-strong);
    font-size: 1.16rem;
    line-height: 1.25;
}

.contract-review-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    align-items: start;
}

.contract-review-form .field-group {
    min-width: 0;
    gap: 0.45rem;
    margin: 0 !important;
}

.contract-review-form .field-group.full-width,
.contract-review-form .form-actions.full-width {
    grid-column: 1 / -1;
}

.contract-review-form .field-group label {
    color: var(--theme-slate-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contract-review-form input:not([type="checkbox"]):not([type="radio"]),
.contract-review-form select,
.contract-review-form textarea {
    min-height: 2.75rem;
    border: 1px solid var(--c110);
    border-radius: 8px;
    background: var(--theme-surface-strong);
    color: var(--theme-ink-strong);
    box-shadow: none;
}

.contract-review-form textarea {
    min-height: 6.5rem;
    resize: vertical;
}

.contract-review-form .form-actions {
    justify-content: flex-start;
    margin-top: 0.35rem !important;
    padding-top: 1rem;
    border-top: 1px solid var(--theme-border);
}

.contract-review-form .button {
    min-height: 2.75rem;
    border-radius: 8px;
    background: var(--theme-success-strong);
    color: var(--theme-surface-strong);
}

.contract-probation-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(14rem, 22rem));
    gap: 0.9rem;
}

.contract-probation-stats .stat-card {
    min-height: 7rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--c110);
    border-radius: 10px;
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.contract-probation-stats .stat-card span {
    color: var(--theme-ink-strong);
    font-size: 0.95rem;
    font-weight: 750;
}

.contract-probation-stats .stat-card strong {
    color: var(--theme-ink-strong);
    font-size: 2rem;
    line-height: 1;
}

.contract-probation-stats .stat-card small {
    color: var(--theme-slate-muted);
    font-size: 0.78rem;
    font-weight: 850;
}

.contract-probation-table-panel .table-wrap {
    margin: 0;
    border: 1px solid var(--c014);
    border-radius: 8px;
    overflow: hidden;
}

.contract-probation-table-panel table {
    margin: 0;
}

.contract-probation-table-panel th {
    background: var(--theme-surface-cool);
    color: var(--theme-slate-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contract-probation-table-panel td {
    color: var(--theme-ink-strong);
    font-size: 0.86rem;
    font-weight: 750;
    vertical-align: middle;
}

.contract-probation-table-panel .empty-cell {
    padding: 1.35rem;
    color: var(--theme-slate-muted);
    font-weight: 850;
    text-align: center;
}

@media (max-width: 900px) {
    .contract-review-form,
    .contract-probation-stats {
        grid-template-columns: 1fr;
    }
}


.table-link.danger {
    color: var(--c237);
}


/* Sidebar state clarity: selected page is not the same thing as an expanded group. */
.sidebar-nav a {
    border: 1px solid transparent;
}

.sidebar-nav a.active:not([data-subnav-trigger]),
.sidebar-subnav a.active {
    border-color: var(--c827);
    background: var(--c094);
    color: var(--c095);
}

.sidebar-nav a[data-subnav-trigger].has-open-subnav,
.sidebar-nav a[data-subnav-trigger].has-open-subnav.active {
    border-color: var(--c014);
    background: var(--theme-surface-strong);
    color: var(--theme-ink-strong);
}

.sidebar-nav a[data-subnav-trigger].has-open-subnav:hover,
.sidebar-nav a[data-subnav-trigger].has-open-subnav.active:hover {
    border-color: var(--c005);
    background: var(--c030);
    color: var(--theme-ink-strong);
}

.sidebar-nav a[data-subnav-trigger].active:not(.has-open-subnav) {
    border-color: var(--c827);
    background: var(--c094);
    color: var(--c095);
}

.sidebar-subnav a {
    border-radius: 10px;
}

.employee-add-document-button {
    justify-self: start;
    margin-top: 0.2rem;
}

.employee-document-form-row[hidden] {
    display: none !important;
}

.employee-profile-name h2 {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    overflow: visible;
    padding-right: 0.35rem;
}

.employee-status-dot {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 999px;
    background: var(--theme-slate-soft);
    box-shadow: 0 0 0 3px var(--c039);
    flex: 0 0 auto;
    display: inline-block;
    margin-left: 0.05rem;
}

.employee-status-dot.employee-status-active {
    background: var(--theme-success-strong);
    box-shadow: 0 0 0 3px var(--c159);
}

.employee-status-dot.employee-status-on_leave {
    background: var(--theme-warning);
    box-shadow: 0 0 0 3px var(--c828);
}

.employee-status-dot.employee-status-resigned {
    background: var(--theme-danger-soft);
    box-shadow: 0 0 0 3px var(--c829);
}

/* Sidebar final polish: clean HR/admin navigation rhythm. */
:root {
    --sidebar-width: 292px;
}

.sidebar {
    width: var(--sidebar-width);
    padding: 1.05rem;
    border: 1px solid var(--c830);
    border-radius: 20px;
    background: var(--c012);
    box-shadow: none;
}

.main-panel {
    margin-left: calc(var(--sidebar-width) + var(--shell-gap));
}

.sidebar-head {
    align-items: center;
    gap: 0.75rem;
    padding: 0.2rem 0.1rem 0.65rem;
}

.brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0.85rem;
    padding: 0.45rem 0.35rem;
}

.brand-mark {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 12px;
    background: var(--c832);
    border: 1px solid var(--c833);
    color: var(--c834);
    box-shadow: none;
}

.brand-copy {
    min-width: 0;
    gap: 0.18rem;
}

.brand-copy strong {
    max-width: none;
    color: var(--c835);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
}

.brand-copy small {
    max-width: none;
    overflow: visible;
    color: var(--c836);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.25;
    text-transform: uppercase;
}

.sidebar-toggle-inline {
    align-self: center;
    flex: 0 0 2.35rem;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    background: var(--theme-surface-strong);
    border-color: var(--c830);
}

.sidebar-group {
    margin-top: 1.05rem;
}

.sidebar-group + .sidebar-group {
    margin-top: 1.25rem;
}

.sidebar-label {
    padding: 0 0.55rem;
    margin: 0 0 0.55rem;
    color: var(--c837);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    line-height: 1.2;
    text-transform: uppercase;
}

.sidebar-nav {
    gap: 0.38rem;
}

.sidebar-nav a,
.sidebar-logout-link {
    display: flex;
    align-items: center;
    min-height: 3.05rem;
    gap: 0.8rem;
    padding: 0.48rem 0.72rem;
    border: 1px solid transparent;
    border-radius: 13px;
    color: var(--c838);
    font-size: 0.91rem;
    font-weight: 650;
    line-height: 1.2;
}

.nav-icon {
    flex: 0 0 2.15rem;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 11px;
    border: 1px solid var(--c830);
    background: var(--theme-surface-strong);
    color: var(--c839);
}

.nav-icon svg {
    width: 1.02rem;
    height: 1.02rem;
}

.nav-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-nav a:hover,
.sidebar-logout-link:hover,
.sidebar-logout-link:focus-visible {
    border-color: var(--c830);
    background: var(--c380);
    color: var(--c835);
}

.sidebar-nav a.active:not([data-subnav-trigger]),
.sidebar-nav a[data-subnav-trigger].active:not(.has-open-subnav),
.sidebar-subnav a.active {
    border-color: var(--c840);
    background: var(--c225);
    color: var(--c095);
}

.sidebar-nav a.active .nav-icon,
.sidebar-nav a:hover .nav-icon,
.sidebar-logout-link:hover .nav-icon,
.sidebar-logout-link:focus-visible .nav-icon {
    border-color: var(--c840);
    background: var(--theme-surface-strong);
    color: var(--c004);
}

.sidebar-nav a[data-subnav-trigger] {
    padding-right: 2.35rem;
}

.sidebar-nav a[data-subnav-trigger]::after {
    right: 0.95rem;
    width: 0.42rem;
    height: 0.42rem;
    opacity: 0.55;
}

.sidebar-nav a[data-subnav-trigger].has-open-subnav,
.sidebar-nav a[data-subnav-trigger].has-open-subnav.active {
    border-color: var(--c830);
    background: var(--theme-surface-strong);
    color: var(--c835);
}

.sidebar-subnav {
    display: grid;
    gap: 0.35rem;
    margin: 0.15rem 0 0.6rem 2.35rem;
    padding: 0.2rem 0 0.25rem 0.85rem;
    border-left: 1px solid var(--c841);
}

.sidebar-subnav a {
    min-height: 2rem;
    gap: 0.5rem;
    padding: 0.34rem 0.55rem;
    border-radius: 9px;
    color: var(--c842);
    font-size: 0.77rem;
    font-weight: 600;
}

.sidebar-subnav a::before {
    flex: 0 0 0.22rem;
    width: 0.22rem;
    height: 0.22rem;
    opacity: 0.28;
}

body.sidebar-collapsed .sidebar {
    width: var(--sidebar-collapsed-width);
    padding-inline: 0.82rem;
}

body.sidebar-collapsed .main-panel {
    margin-left: calc(var(--sidebar-collapsed-width) + var(--shell-gap));
}

body.sidebar-collapsed .brand,
body.sidebar-collapsed .sidebar-head,
body.sidebar-collapsed .sidebar-nav a,
body.sidebar-collapsed .sidebar-logout-link {
    justify-content: center;
}

body.sidebar-collapsed .sidebar-head {
    flex-direction: column;
    gap: 0.55rem;
    padding-bottom: 0.9rem;
}

body.sidebar-collapsed .brand-copy,
body.sidebar-collapsed .sidebar-label,
body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .sidebar-subnav,
body.sidebar-collapsed .sidebar-nav a[data-subnav-trigger]::after {
    display: none !important;
}

body.sidebar-collapsed .sidebar-toggle-inline {
    display: inline-flex;
    width: 2.45rem;
    height: 2.45rem;
    margin: 0 auto;
}

body.sidebar-collapsed .sidebar-nav a,
body.sidebar-collapsed .sidebar-logout-link {
    min-height: 3rem;
    padding-inline: 0;
}

/* Employee profile header polish */
body:has(.employee-dashboard) .topbar,
body:has(.employee-dashboard) .employee-dashboard {
    max-width: 1180px;
    margin-inline: auto;
}

body:has(.employee-dashboard) .search-shell {
    width: clamp(16rem, 22vw, 24rem);
    min-width: 15rem;
}

.employee-profile-topbar {
    display: grid;
    grid-template-columns: minmax(20rem, 1fr) minmax(17rem, auto);
    align-items: center;
    gap: 1.35rem;
    padding: 1.25rem 1.35rem;
    overflow: visible;
}

.employee-profile-identity {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.employee-profile-avatar {
    width: 3.45rem;
    height: 3.45rem;
}

.employee-profile-name {
    min-width: 0;
    overflow: visible;
}

.employee-profile-name h2 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    margin: 0;
    overflow: visible;
    color: var(--theme-ink-strong);
    font-size: clamp(1.25rem, 1.7vw, 1.65rem);
    font-weight: 800;
    line-height: 1.18;
    text-overflow: clip;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
}

.employee-status-dot {
    flex: 0 0 auto;
    margin-left: 0;
}

.employee-profile-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(6.2rem, 1fr));
    align-items: stretch;
    gap: 0;
    min-width: 0;
}

.employee-profile-facts article {
    display: grid;
    align-content: center;
    gap: 0.32rem;
    min-width: 0;
    padding: 0.15rem 1rem;
    border-left: 1px solid var(--theme-border);
}

.employee-profile-facts article:first-child {
    border-left: 0;
    padding-left: 0;
}

.employee-profile-facts span {
    margin: 0;
    color: var(--theme-slate-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.25;
    text-transform: uppercase;
}

.employee-profile-facts strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--theme-ink-strong);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-profile-actions {
    display: grid;
    gap: 0.7rem;
    justify-items: end;
    min-width: 0;
}

.employee-profile-nav-actions,
.employee-profile-primary-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    min-width: 0;
}

.employee-profile-nav-actions .employee-icon-button {
    width: 2.25rem;
    height: 2.25rem;
    border-color: var(--c856);
    background: var(--theme-surface-cool);
    color: var(--c124);
}

.employee-count {
    color: var(--theme-slate-muted);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.employee-edit-link,
.employee-send-button {
    min-height: 2.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0 0.95rem;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.employee-edit-link {
    border: 1px solid var(--c857);
    background: var(--theme-surface-strong);
    color: var(--theme-ink-muted);
}

.employee-send-button {
    border: 1px solid var(--c092);
    background: var(--c092);
    color: var(--theme-surface-strong);
}

.employee-edit-link svg,
.employee-send-button svg {
    width: 1rem;
    height: 1rem;
}

.employee-dashboard-tabs {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.employee-dashboard-tabs::-webkit-scrollbar {
    display: none;
}

body:has(.employee-dashboard) .employee-dashboard-tabs a,
body:has(.employee-dashboard) .employee-dashboard-tabs a.active,
body:has(.employee-dashboard) .employee-dashboard-tabs a:hover,
body:has(.employee-dashboard) .employee-dashboard-tabs a:focus-visible {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 2.35rem;
    padding: 0.56rem 0.85rem;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .employee-profile-topbar {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .employee-profile-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .employee-profile-actions {
        justify-items: start;
    }

    .employee-profile-nav-actions,
    .employee-profile-primary-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 760px) {
    body:has(.employee-dashboard) .search-shell {
        width: 100%;
    }

    .employee-profile-topbar {
        padding: 1rem;
        gap: 1rem;
    }

    .employee-profile-identity {
        grid-template-columns: auto auto minmax(0, 1fr);
        gap: 0.7rem;
    }

    .employee-profile-avatar {
        width: 3rem;
        height: 3rem;
    }

    .employee-profile-name h2 {
        font-size: 1.18rem;
    }

    .employee-profile-facts {
        grid-template-columns: 1fr;
        border-top: 1px solid var(--theme-border);
        border-bottom: 1px solid var(--theme-border);
    }

    .employee-profile-facts article,
    .employee-profile-facts article:first-child {
        padding: 0.75rem 0;
        border-left: 0;
        border-top: 1px solid var(--theme-border);
    }

    .employee-profile-facts article:first-child {
        border-top: 0;
    }

    .employee-profile-primary-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .employee-edit-link,
    .employee-send-button {
        width: 100%;
    }

    .employee-dashboard-tabs {
        position: static;
        margin-inline: -0.15rem;
        padding: 0.45rem;
    }
}

/* Full employee profile compact dashboard polish */
body:has(.employee-dashboard) .main-panel {
    padding-bottom: 2rem;
}

.employee-dashboard {
    gap: 0.95rem;
}

.employee-profile-topbar,
.employee-dashboard-tabs,
.employee-dashboard-card,
.employee-side-card,
.employee-evaluation-card,
.employee-yearly-evaluation-card,
.employee-career-list article,
.employee-stat-grid article,
.employee-document-card-v3,
.employee-tag-box {
    border-color: var(--c858);
    border-radius: 16px;
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.employee-dashboard-card,
.employee-side-card {
    padding: 1.1rem;
    overflow: hidden;
    scroll-margin-top: 5.5rem;
}

.employee-dashboard-grid,
.employee-profile-full-grid {
    gap: 1rem;
}

.employee-dashboard-main,
.employee-dashboard-side {
    display: grid;
    gap: 1rem;
}

.employee-dashboard-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.85rem;
}

.employee-dashboard-card-head h3 {
    color: var(--theme-ink-strong);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.2;
}

.employee-dashboard-card-head small {
    display: block;
    margin-top: 0.2rem;
    color: var(--c405);
    font-size: 0.8rem;
    line-height: 1.45;
}

.employee-detail-table,
.employee-side-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    border-top: 0;
}

.employee-detail-table article,
.employee-detail-table article:nth-child(2n),
.employee-address-block article,
.employee-side-info-grid article {
    min-width: 0;
    padding: 0.72rem 0.78rem;
    border: 1px solid var(--c115);
    border-radius: 12px;
    background: var(--c851);
}

.employee-detail-table article.employee-detail-wide {
    grid-column: 1 / -1;
}

.employee-detail-table span,
.employee-address-block span,
.employee-side-info-grid span,
.employee-notes-block > span,
.employee-stat-grid span,
.employee-evaluation-table span,
.employee-yearly-evaluation-grid span,
.employee-career-list small {
    display: block;
    margin-bottom: 0.28rem;
    color: var(--c405);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.075em;
    line-height: 1.25;
    text-transform: uppercase;
}

.employee-detail-table strong,
.employee-address-block strong,
.employee-side-info-grid strong,
.employee-notes-block strong,
.employee-stat-grid strong,
.employee-evaluation-table strong {
    color: var(--c859);
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.45;
}

.employee-address-block {
    display: grid;
    gap: 0.6rem;
}

.employee-tag-box {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    min-height: 0;
    padding: 0.75rem;
    box-shadow: none;
}

.employee-tag-box span {
    min-height: 1.7rem;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.62rem;
    border: 1px solid var(--c187);
    border-radius: 999px;
    background: var(--c860);
    color: var(--c007);
    font-size: 0.76rem;
    font-weight: 750;
}

.employee-side-link,
.employee-section-action {
    min-height: 2.1rem;
    padding: 0 0.72rem;
    border-radius: 999px;
    font-size: 0.75rem;
}

.employee-dashboard .button:not(.secondary):not(.button-secondary),
.employee-dashboard button.button:not(.secondary):not(.button-secondary) {
    background: var(--c092);
    color: var(--theme-surface-strong);
    box-shadow: none;
}

.employee-dashboard .button.secondary,
.employee-dashboard .button.button-secondary,
.timeline-filter-row .button.button-secondary {
    border: 1px solid var(--c861);
    background: var(--c054);
    color: var(--theme-ink-muted);
    box-shadow: none;
}

.employee-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.employee-stat-grid article {
    min-height: 5.4rem;
    display: grid;
    align-content: center;
    gap: 0.25rem;
    padding: 0.85rem;
    background: var(--theme-surface-strong);
}

.employee-stat-grid strong {
    color: var(--theme-ink-strong);
    font-size: 1.1rem;
}

.employee-evaluation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: stretch;
}

.employee-evaluation-card {
    display: grid;
    gap: 0.75rem;
    min-height: 0;
    padding: 0.95rem;
    box-shadow: none;
}

.employee-evaluation-card h4,
.employee-evaluation-card h5 {
    color: var(--theme-ink-strong);
    font-size: 0.98rem;
    font-weight: 800;
}

.employee-evaluation-table {
    display: grid;
    gap: 0.55rem;
}

.employee-evaluation-table.supervisor,
.employee-evaluation-table.self {
    grid-template-columns: 1fr;
}

.employee-evaluation-table article,
.employee-evaluation-table article:last-child {
    min-height: 0;
    padding: 0.72rem;
    border: 1px solid var(--c115);
    border-radius: 12px;
    background: var(--c851);
}

.employee-yearly-evaluation-block {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--c115);
}

.employee-yearly-evaluation-list,
.employee-career-list {
    display: grid;
    gap: 0.65rem;
}

.employee-career-list article {
    padding: 0.78rem;
    background: var(--c851);
    box-shadow: none;
}

.employee-goal-summary {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.employee-completed-goals {
    scroll-margin-top: 5.5rem;
}

.employee-completed-goals .employee-career-list article {
    background: var(--c862);
    border-color: var(--c863);
}

.employee-cancelled-goals .employee-career-list article {
    background: var(--c249);
    border-color: var(--c864);
}

.employee-goal-card-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--c115);
}

.employee-goal-card-actions form {
    margin: 0;
}

.employee-goal-card-actions a,
.employee-goal-card-actions button {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--c092);
    cursor: pointer;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 850;
    text-decoration: none;
}

.employee-goal-card-actions button {
    color: var(--c725);
}

.employee-goal-card-actions a:hover,
.employee-goal-card-actions a:focus-visible,
.employee-goal-card-actions button:hover,
.employee-goal-card-actions button:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.pro-module-page .table-panel td .employee-section-action {
    min-height: 2rem;
    padding-inline: 0.65rem;
    white-space: nowrap;
}

.employee-goal-status-form {
    display: grid;
    gap: 0.4rem;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--c865);
}

.employee-goal-status-form label {
    color: var(--c405);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.075em;
    line-height: 1.25;
    text-transform: uppercase;
}

.employee-goal-status-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.employee-goal-status-controls select {
    min-width: 0;
    min-height: 2.35rem;
    flex: 1 1 auto;
    padding: 0.45rem 2rem 0.45rem 0.7rem;
    border: 1px solid var(--c866);
    border-radius: 10px;
    background: var(--theme-surface-strong);
    color: var(--c859);
    font: inherit;
}

.employee-goal-status-controls select:focus-visible {
    border-color: var(--c027);
    box-shadow: 0 0 0 3px var(--c028);
    outline: 2px solid transparent;
}

.employee-goal-status-controls .button {
    min-height: 2.35rem;
    padding: 0.45rem 0.8rem;
    white-space: nowrap;
}

.employee-inline-performance-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.employee-inline-performance-form .field-group,
.employee-performance-form-grid .field-group {
    gap: 0.35rem;
}

.employee-inline-performance-form input,
.employee-inline-performance-form select,
.employee-inline-performance-form textarea,
.employee-performance-form-grid input,
.employee-performance-form-grid select,
.employee-performance-form-grid textarea {
    min-height: 2.5rem;
    border-radius: 10px;
}

.employee-inline-performance-form textarea,
.employee-performance-form-grid textarea {
    min-height: 5.25rem;
}

.employee-inline-performance-form .form-actions,
.employee-performance-form-grid .form-actions {
    align-self: end;
    justify-content: flex-end;
}

.salary-history-timeline {
    position: relative;
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-left: 1.35rem;
}

.salary-history-timeline::before {
    content: "";
    position: absolute;
    top: 0.25rem;
    bottom: 0.25rem;
    left: 0.28rem;
    width: 1px;
    background: var(--c858);
}

.salary-history-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 0.75rem minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    max-width: calc(42rem + 1.55rem);
    min-width: 0;
}

.salary-history-timeline-marker {
    position: relative;
    z-index: 1;
    width: 0.5rem;
    height: 0.5rem;
    margin-top: 1rem;
    border: 2px solid var(--theme-surface-strong);
    border-radius: 999px;
    background: var(--theme-slate-muted);
    box-shadow: 0 0 0 1px var(--theme-border-muted);
}

.salary-history-timeline .salary-history-entry {
    width: 100%;
    max-width: 42rem;
    min-width: 0;
}

#timeline .timeline-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.75rem 0;
}

#timeline .timeline-filter-row .button {
    min-height: 2rem;
    padding: 0 0.72rem;
    border-radius: 999px;
    font-size: 0.74rem;
}

#timeline .timeline-filter-row .button.active {
    border-color: var(--c002);
    background: var(--c003);
    color: var(--c004);
}

#timeline .timeline-filter-row .button,
#timeline .timeline-filter-row .button.button-secondary {
    min-height: 2.75rem;
    padding: 0 0.9rem;
    border: 1px solid var(--c861);
    border-radius: 999px;
    background: var(--c054);
    color: var(--theme-slate);
    box-shadow: none;
    font-size: 0.74rem;
    font-weight: 750;
}

#timeline .timeline-filter-row .button.active,
#timeline .timeline-filter-row .button.button-secondary.active {
    border-color: var(--c840);
    background: var(--c225);
    color: var(--c095);
    box-shadow: none;
}

.employee-timeline-list {
    position: relative;
    display: grid;
    gap: 0.75rem;
    margin-top: 0.85rem;
    padding-left: 1.25rem;
}

.employee-timeline-form-disclosure {
    margin: 0.9rem 0 1rem;
    border: 1px solid var(--c212);
    border-radius: 13px;
    background: var(--c054);
}

.employee-timeline-form-disclosure summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    color: var(--c867);
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

.employee-timeline-form-disclosure summary::-webkit-details-marker {
    display: none;
}

.employee-timeline-form-disclosure summary::after {
    content: "+";
    display: grid;
    flex: 0 0 1.75rem;
    width: 1.75rem;
    height: 1.75rem;
    place-items: center;
    border: 1px solid var(--c868);
    border-radius: 999px;
    background: var(--theme-surface-strong);
    color: var(--c092);
    font-size: 1rem;
}

.employee-timeline-form-disclosure[open] summary::after {
    content: "-";
}

.employee-timeline-form-disclosure summary small {
    margin-left: auto;
    color: var(--theme-slate-muted);
    font-size: 0.76rem;
    font-weight: 600;
}

.employee-timeline-form-disclosure summary:focus-visible {
    outline: 3px solid var(--c869);
    outline-offset: 2px;
}

.employee-timeline-event-form {
    margin: 0;
    padding: 0 1rem 1rem;
    border: 0;
    background: transparent;
}

.employee-effective-record-form {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--c212);
    border-radius: 10px;
    background: var(--c054);
}

.employee-timeline-event-form .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0;
}

.employee-effective-record-form .form-actions {
    margin-top: 0;
}

.employee-timeline-list::before {
    content: "";
    position: absolute;
    top: 0.45rem;
    bottom: 0.45rem;
    left: 0.34rem;
    width: 1px;
    background: var(--c830);
}

.employee-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
}

.employee-timeline-item[hidden] {
    display: none !important;
}

.employee-timeline-item.is-filter-hidden {
    display: none !important;
}

.employee-timeline-dot {
    position: absolute;
    top: 1rem;
    left: -1.08rem;
    z-index: 1;
    width: 0.5rem;
    height: 0.5rem;
    border: 2px solid var(--theme-surface-strong);
    border-radius: 999px;
    background: var(--c870);
    box-shadow: 0 0 0 1px var(--c871);
}

.employee-timeline-card {
    display: grid;
    gap: 0.35rem;
    width: 100%;
    min-width: 0;
    padding: 0.82rem 0.95rem;
    border: 1px solid var(--c872);
    border-radius: 13px;
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.employee-timeline-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.employee-timeline-eye-button.sensitive-eye-button {
    position: static;
    width: 1.9rem;
    height: 1.9rem;
    flex: 0 0 1.9rem;
    transform: none;
}

.employee-timeline-eye-button.sensitive-eye-button svg {
    width: 0.95rem;
    height: 0.95rem;
}

.employee-timeline-card-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 0.25rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--c115);
}

.employee-timeline-card-actions a,
.employee-timeline-card-actions button {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 0.35rem;
    border: 0;
    background: transparent;
    color: var(--c092);
    cursor: pointer;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
}

.employee-timeline-card-actions button {
    color: var(--c725);
}

.employee-timeline-card-actions a:hover,
.employee-timeline-card-actions a:focus-visible,
.employee-timeline-card-actions button:hover,
.employee-timeline-card-actions button:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.timeline-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.timeline-pagination span {
    color: var(--theme-slate-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

@media (max-width: 640px) {
    .employee-timeline-form-disclosure summary {
        align-items: flex-start;
    }

    .employee-timeline-form-disclosure summary small {
        display: none;
    }

    .timeline-pagination {
        justify-content: space-between;
    }
}

.employee-timeline-badge {
    width: fit-content;
    max-width: 100%;
    padding: 0.26rem 0.55rem;
    border: 1px solid var(--c830);
    border-radius: 999px;
    background: var(--c068);
    color: var(--c124);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.employee-timeline-card strong {
    color: var(--theme-ink-strong);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.3;
}

.employee-timeline-card p {
    color: var(--c854);
    font-size: 0.86rem;
    line-height: 1.5;
}

.employee-timeline-empty-filter {
    padding: 0.8rem 0.95rem;
    border: 1px dashed var(--c857);
    border-radius: 12px;
    background: var(--theme-surface-cool);
    color: var(--theme-slate-muted);
    font-size: 0.86rem;
    font-weight: 650;
}

#timeline .salary-history-timeline-item small {
    color: var(--theme-slate-muted);
    font-size: 0.74rem;
    font-weight: 750;
}

#timeline .salary-history-timeline-item strong {
    display: block;
    margin-top: 0.22rem;
    color: var(--theme-ink-strong);
    font-size: 0.92rem;
}

#timeline .salary-history-timeline-item p {
    margin-top: 0.28rem;
    color: var(--c854);
    line-height: 1.45;
}


.employee-document-card-v3 {
    display: grid;
    gap: 0.25rem;
    min-height: 0;
    padding: 0.78rem;
    text-decoration: none;
    box-shadow: none;
}

.employee-document-card-v3 span {
    color: var(--theme-slate-muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.employee-document-card-v3 strong {
    color: var(--theme-ink-strong);
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.employee-document-card-v3 small {
    color: var(--c405);
    font-size: 0.78rem;
    line-height: 1.35;
}

.sensitive-data-item strong {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.sensitive-eye-button {
    width: 1.9rem;
    height: 1.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid var(--c014);
    border-radius: 999px;
    background: var(--theme-surface-strong);
    color: var(--theme-slate-muted);
}

.empty-state {
    color: var(--c405);
}

@media (max-width: 980px) {
    .employee-detail-table,
    .employee-side-info-grid,
    .employee-evaluation-grid,
    .employee-inline-performance-form,
    .employee-performance-form-grid {
        grid-template-columns: 1fr;
    }

    .employee-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .employee-dashboard-card,
    .employee-side-card {
        padding: 0.9rem;
    }

    .employee-stat-grid {
        grid-template-columns: 1fr;
    }

    .employee-dashboard-card-head {
        display: grid;
    }

    .employee-dashboard-card-head .employee-section-action,
    .employee-dashboard-card-head .button {
        width: 100%;
    }

    .employee-goal-status-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .employee-goal-status-controls .button {
        width: 100%;
    }
}

/* Topbar notification menu */
.notification-menu {
    position: relative;
    z-index: 60;
}

.topbar-actions:empty {
    display: none;
}

.notification-menu-button {
    position: relative;
    width: 2.45rem;
    height: 2.45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--c873);
    border-radius: 10px;
    background: var(--theme-surface-strong);
    color: var(--c126);
    cursor: pointer;
    box-shadow: none;
}

.notification-menu-button:hover,
.notification-menu-button:focus-visible,
.notification-menu.is-open .notification-menu-button {
    border-color: var(--c874);
    background: var(--theme-surface-cool);
    color: var(--c055);
    outline: 2px solid transparent;
}

.notification-menu-button svg {
    width: 1.1rem;
    height: 1.1rem;
}

.notification-menu-button > svg {
    display: none;
}

.notification-menu-button::before {
    content: "";
    width: 1.12rem;
    height: 1.12rem;
    display: block;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 22a2.4 2.4 0 0 0 2.28-1.65H9.72A2.4 2.4 0 0 0 12 22Zm7-6.2V11a7 7 0 0 0-5.25-6.78V3a1.75 1.75 0 0 0-3.5 0v1.22A7 7 0 0 0 5 11v4.8l-1.45 1.45A1 1 0 0 0 4.25 19h15.5a1 1 0 0 0 .7-1.75L19 15.8ZM7 17v-6a5 5 0 0 1 10 0v6H7Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 22a2.4 2.4 0 0 0 2.28-1.65H9.72A2.4 2.4 0 0 0 12 22Zm7-6.2V11a7 7 0 0 0-5.25-6.78V3a1.75 1.75 0 0 0-3.5 0v1.22A7 7 0 0 0 5 11v4.8l-1.45 1.45A1 1 0 0 0 4.25 19h15.5a1 1 0 0 0 .7-1.75L19 15.8ZM7 17v-6a5 5 0 0 1 10 0v6H7Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.notification-status-dot {
    position: absolute;
    right: -0.1rem;
    bottom: -0.1rem;
    width: 0.62rem;
    height: 0.62rem;
    border: 2px solid var(--theme-surface-strong);
    border-radius: 999px;
    background: var(--c304);
}

.notification-popover {
    position: absolute;
    top: calc(100% + 0.72rem);
    right: 0;
    width: min(23.5rem, calc(100vw - 2rem));
    max-height: min(42rem, calc(100vh - 6rem));
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid var(--c875);
    border-radius: 14px;
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.notification-popover::before {
    content: "";
    position: absolute;
    top: -0.46rem;
    right: 1rem;
    width: 0.9rem;
    height: 0.9rem;
    border-top: 1px solid var(--c875);
    border-left: 1px solid var(--c875);
    background: var(--theme-surface-strong);
    transform: rotate(45deg);
}

.notification-popover-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.notification-popover-head h2 {
    margin: 0;
    color: var(--c055);
    font-size: 0.94rem;
    font-weight: 800;
    letter-spacing: 0;
}

.notification-view-all {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.3rem 0.55rem;
    border-radius: 7px;
    color: var(--c876);
    font-size: 0.75rem;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
}

.notification-view-all:hover,
.notification-view-all:focus-visible {
    background: var(--c011);
    color: var(--c877);
    outline: 2px solid transparent;
}

.notification-view-all:focus-visible {
    box-shadow: 0 0 0 3px var(--c878);
}

.notification-phone-toggle {
    gap: 0.35rem;
    border: 1px solid var(--theme-border-muted);
    background: var(--theme-surface-strong);
    white-space: nowrap;
}

.notification-phone-toggle strong {
    min-width: 2.25rem;
    padding: 0.22rem 0.4rem;
    border-radius: 999px;
    background: var(--theme-surface-cool);
    color: var(--theme-ink-strong);
    text-align: center;
}

.notification-phone-toggle[aria-pressed="true"] strong {
    background: var(--theme-success-strong);
    color: var(--theme-surface-strong);
}

.notification-phone-toggle small {
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 0.16rem;
}

.notification-head-actions {
    display: flex;
    align-items: center;
    gap: 0.38rem;
}

.notification-head-actions a {
    width: 1.8rem;
    height: 1.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--c879);
    text-decoration: none;
}

.notification-head-actions a:hover,
.notification-head-actions a:focus-visible {
    background: var(--c670);
    color: var(--c055);
}

.notification-head-actions svg {
    width: 0.95rem;
    height: 0.95rem;
}

.notification-list {
    display: grid;
}

.notification-item {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.72rem;
    padding: 0.9rem 0;
    border-top: 1px dashed var(--c880);
}

.notification-item.unread::after {
    content: "";
    position: absolute;
    top: 1rem;
    right: 0.05rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--c304);
}

.notification-avatar {
    position: relative;
    width: 2.32rem;
    height: 2.32rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--c881);
    color: var(--theme-surface-strong);
    font-size: 0.78rem;
    font-weight: 900;
}

.notification-avatar::after {
    content: "";
    position: absolute;
    right: -0.05rem;
    bottom: -0.02rem;
    width: 0.58rem;
    height: 0.58rem;
    border: 2px solid var(--theme-surface-strong);
    border-radius: 999px;
    background: var(--c882);
}

.notification-avatar-photo {
    background: var(--c883);
}

.notification-avatar-warm {
    background: var(--c884);
}

.notification-avatar-teal {
    background: var(--c885);
}

.notification-avatar-dark {
    background: var(--c886);
}

.notification-body {
    min-width: 0;
    padding-right: 0.85rem;
}

.notification-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    color: var(--c887);
    font-size: 0.82rem;
    line-height: 1.35;
}

.notification-line strong {
    color: var(--c055);
    font-weight: 800;
}

.notification-project {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.18rem 0.42rem;
    border: 1px solid var(--c875);
    border-radius: 6px;
    background: var(--theme-surface-strong);
    color: var(--c055);
    font-weight: 800;
    text-decoration: none;
}

.notification-project::before {
    content: "";
    width: 0.66rem;
    height: 0.66rem;
    border: 2px solid var(--c127);
    border-radius: 2px;
    box-shadow: inset 3px 0 0 var(--c888);
}

.notification-project.green::before {
    border-color: var(--c889);
    box-shadow: inset 3px 0 0 var(--c890);
}

.notification-project.pink::before {
    border-color: var(--c891);
    box-shadow: inset 3px 0 0 var(--c892);
    transform: rotate(45deg);
}

.notification-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 0.22rem;
    color: var(--c879);
    font-size: 0.74rem;
}

.notification-meta a {
    color: var(--c055);
    font-weight: 800;
    text-decoration: none;
}

.notification-meta a:hover,
.notification-open-inline-form button:hover {
    text-decoration: underline;
}

.notification-open-form {
    margin: 0;
}

.notification-open-form .side-list-item {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.notification-open-form .side-list-item:focus-visible {
    outline: 2px solid var(--c007);
    outline-offset: 2px;
}

.notification-open-inline-form {
    margin: 0;
}

.notification-open-inline-form button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--c055);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.notification-open-inline-form button:focus-visible {
    outline: 2px solid var(--c007);
    outline-offset: 2px;
}

.notification-comment {
    margin: 0.62rem 0 0;
    padding: 0.72rem 0.82rem;
    border: 1px solid var(--c893);
    border-radius: 9px;
    background: var(--c894);
    color: var(--c055);
    font-size: 0.82rem;
    line-height: 1.4;
}

.notification-choice-row {
    display: flex;
    align-items: center;
    gap: 0.46rem;
    margin-top: 0.7rem;
}

.notification-choice-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.9rem;
    padding: 0.38rem 0.72rem;
    border: 1px solid var(--c880);
    border-radius: 7px;
    background: var(--theme-surface-strong);
    color: var(--c055);
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
}

.notification-choice-row a.accept {
    border-color: var(--c895);
    background: var(--c895);
    color: var(--theme-surface-strong);
}

.notification-file-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.62rem;
    padding: 0.62rem;
    border: 1px solid var(--c893);
    border-radius: 9px;
    background: var(--c894);
    color: var(--c055);
    text-decoration: none;
}

.notification-file-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--c896);
    color: var(--c897);
    font-size: 0.62rem;
    font-weight: 900;
}

.notification-file-card strong,
.notification-file-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-file-card strong {
    font-size: 0.82rem;
}

.notification-file-card small {
    margin-top: 0.1rem;
    color: var(--c879);
    font-size: 0.74rem;
}

.notification-file-card svg {
    width: 1rem;
    height: 1rem;
    color: var(--c898);
}

@media (max-width: 760px) {
    .notification-menu {
        margin-left: auto;
    }

    .notification-popover {
        position: fixed;
        top: 4.25rem;
        right: 1rem;
        left: 1rem;
        width: auto;
        max-height: calc(100vh - 5.25rem);
    }

    .notification-popover::before {
        right: 1.15rem;
    }
}

/* Keep sticky/top menu surfaces solid; no gradients here. */
.topbar,
.notification-menu,
.notification-menu-button,
.notification-popover,
.notification-comment,
.notification-file-card,
.notification-file-icon,
.notification-project,
.notification-choice-row a {
    background-image: none !important;
}

.topbar {
    background-color: transparent !important;
}

.notification-menu-button,
.notification-popover,
.notification-comment,
.notification-file-card,
.notification-project,
.notification-choice-row a {
    background-color: var(--theme-surface-strong) !important;
}

.notification-file-icon {
    background-color: var(--theme-surface-cool) !important;
}

/* LEGACY SHELL OVERRIDE: kept temporarily for visual compatibility.
   Do not add new topbar rules here; foundation.css is the owner. */
/* Stable topbar columns: search, page actions, notification. */
.topbar .topbar-tools,
body:has(.dashboard-home-page) .topbar .topbar-tools,
body:has(.employee-dashboard) .topbar .topbar-tools {
    width: auto !important;
    max-width: min(100%, 52rem) !important;
    display: grid !important;
    grid-template-columns: minmax(16rem, 24rem) minmax(0, auto) 3rem !important;
    align-items: center !important;
    justify-content: end !important;
    gap: 0.75rem !important;
    flex: 0 1 auto !important;
    margin-left: auto !important;
}

.topbar .search-shell,
body:has(.dashboard-home-page) .topbar .search-shell,
body:has(.employee-dashboard) .topbar .search-shell {
    grid-column: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
}

.topbar .topbar-actions {
    grid-column: 2 !important;
    width: auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: end !important;
    flex-wrap: wrap !important;
    gap: 0.65rem !important;
}

.topbar .topbar-actions:empty {
    display: block !important;
}

.topbar .topbar-actions .button,
.topbar .topbar-actions .inline-form,
.topbar .topbar-actions .inline-form .button {
    width: auto !important;
    white-space: nowrap !important;
}

.topbar .notification-menu {
    grid-column: 3 !important;
    justify-self: end !important;
    align-self: center !important;
    margin-left: 0 !important;
}

@media (max-width: 900px) {
    .topbar .topbar-tools,
    body:has(.dashboard-home-page) .topbar .topbar-tools,
    body:has(.employee-dashboard) .topbar .topbar-tools {
        width: 100% !important;
        max-width: none !important;
        grid-template-columns: minmax(0, 1fr) 3rem !important;
        justify-content: stretch !important;
    }

    .topbar .search-shell,
    body:has(.dashboard-home-page) .topbar .search-shell,
    body:has(.employee-dashboard) .topbar .search-shell {
        grid-column: 1 !important;
    }

    .topbar .topbar-actions {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        justify-content: stretch !important;
    }

    .topbar .topbar-actions:empty {
        display: none !important;
    }

    .topbar .topbar-actions .button,
    .topbar .topbar-actions .inline-form,
    .topbar .topbar-actions .inline-form .button {
        width: 100% !important;
    }

    .topbar .notification-menu {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }
}

/* Advanced reports page */
body:has(.reports-page),
body:has(.reports-page) .main-panel,
body:has(.reports-page) .topbar,
.reports-page {
    background: var(--c785) !important;
    background-image: none !important;
    box-shadow: none !important;
}

body:has(.reports-page) .topbar h1 {
    color: var(--c424) !important;
}

body:has(.reports-page) .topbar .eyebrow,
body:has(.reports-page) .search-shell span,
body:has(.reports-page) .search-shell input::placeholder {
    color: var(--theme-slate-muted) !important;
}

body:has(.reports-page) .search-shell,
body:has(.reports-page) .notification-menu-button,
.reports-page .panel,
.reports-page .metric-card,
.reports-page .metric-card:first-child,
.reports-page .table-wrap,
.reports-page .side-list-item {
    border: 1px solid var(--theme-border) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    background-image: none !important;
    box-shadow: none !important;
}

.reports-page {
    display: grid !important;
    gap: 0.78rem !important;
    color: var(--c424) !important;
}

.reports-page .panel,
.reports-page .table-panel {
    padding: 0 !important;
}

.reports-page .panel-header {
    align-items: center !important;
    margin: 0 !important;
    padding: 0.84rem 1rem 0.72rem !important;
    border-bottom: 1px solid var(--c084) !important;
}

.reports-page .eyebrow,
.reports-page .metric-card p,
.reports-page .metric-card:first-child p,
.reports-page table th {
    color: var(--theme-slate-muted) !important;
    font-size: 0.72rem !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.reports-page .panel-header h3 {
    margin-top: 4px !important;
    color: var(--c424) !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.25 !important;
}

.reports-export-panel {
    display: grid !important;
    gap: 4px !important;
}

.reports-export-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.reports-export-actions .button.secondary {
    min-height: 2.16rem !important;
    padding: 0.42rem 0.72rem !important;
    border: 1px solid var(--c110) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    color: var(--c784) !important;
    box-shadow: none !important;
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.reports-export-actions .button.secondary:hover,
.reports-export-actions .button.secondary:focus-visible {
    border-color: var(--c899) !important;
    background: var(--theme-surface-cool) !important;
    color: var(--c424) !important;
}

.reports-stats {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(180px, 1fr)) !important;
    gap: 14px !important;
    margin: 0 !important;
}

.reports-page .metric-card,
.reports-page .metric-card:first-child {
    display: grid !important;
    min-height: 4.7rem !important;
    padding: 0.82rem 0.95rem !important;
    color: var(--c424) !important;
}

.reports-page .metric-card::after,
.reports-page .metric-card:first-child::after {
    display: none !important;
}

.reports-page .metric-card strong,
.reports-page .metric-card:first-child strong {
    display: block !important;
    margin: 0 !important;
    color: var(--c424) !important;
    font-size: 1.24rem !important;
    font-weight: 500 !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
    overflow-wrap: anywhere !important;
}

.reports-page .metric-card small,
.reports-page .metric-card:first-child small {
    display: block !important;
    margin-top: 8px !important;
    color: var(--theme-slate-muted) !important;
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
}

.reports-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr) !important;
    gap: 14px !important;
}

.reports-page .table-wrap {
    overflow: hidden !important;
}

.reports-page table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: var(--theme-surface-strong) !important;
}

.reports-page thead th {
    padding: 12px 14px !important;
    border-bottom: 1px solid var(--c900) !important;
    text-align: left !important;
}

.reports-page tbody td {
    padding: 13px 14px !important;
    border-bottom: 1px solid var(--c109) !important;
    color: var(--theme-ink-muted) !important;
    font-size: 0.86rem !important;
    font-weight: 400 !important;
}

.reports-page tbody tr:last-child td {
    border-bottom: 0 !important;
}

.reports-page tbody tr:hover td {
    background: var(--theme-surface-cool) !important;
}

.reports-signals-panel .side-list {
    display: grid !important;
    gap: 10px !important;
}

.reports-page .side-list-item {
    min-height: 58px !important;
    padding: 13px 14px !important;
    color: var(--c424) !important;
}

.reports-page .side-list-item strong,
.reports-page .side-list-item span {
    color: var(--c424) !important;
    font-size: 0.88rem !important;
    font-weight: 400 !important;
}

.reports-page .pill,
.reports-page .pill-soft {
    min-width: 34px !important;
    min-height: 28px !important;
    padding: 0 10px !important;
    border: 1px solid var(--c110) !important;
    border-radius: 999px !important;
    background: var(--theme-surface-cool) !important;
    color: var(--c784) !important;
    box-shadow: none !important;
    font-size: 0.74rem !important;
    font-weight: 400 !important;
}

.reports-page .empty-cell {
    padding: 24px !important;
    color: var(--theme-slate-muted) !important;
    font-weight: 400 !important;
    text-align: center !important;
}

@media (max-width: 1180px) {
    .reports-stats {
        grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
    }

    .reports-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 700px) {
    .reports-page {
        gap: 16px !important;
    }

    .reports-page .panel,
    .reports-page .table-panel,
    .reports-page .metric-card,
    .reports-page .metric-card:first-child {
        padding: 16px !important;
    }

    .reports-stats {
        grid-template-columns: 1fr !important;
    }

    .reports-export-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .reports-export-actions .button.secondary {
        width: 100% !important;
    }

    .reports-page .table-wrap {
        margin-inline: -16px !important;
        width: calc(100% + 32px) !important;
        overflow-x: auto !important;
        border-right: 0 !important;
        border-left: 0 !important;
        border-radius: 0 !important;
    }

    .reports-page table {
        min-width: 620px !important;
    }
}

/* Shared polish for remaining HRIS workspace pages */
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) {
    background: var(--c785) !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .main-panel,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .topbar {
    background: var(--c785) !important;
    background-image: none !important;
    box-shadow: none !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .topbar {
    border-bottom: 1px solid var(--theme-border) !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .topbar h1 {
    color: var(--c424) !important;
    letter-spacing: 0 !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .topbar .eyebrow,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .search-shell span,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .search-shell input::placeholder {
    color: var(--theme-slate-muted) !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .search-shell,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .notification-menu-button {
    min-height: 44px !important;
    border: 1px solid var(--theme-border) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    background-image: none !important;
    box-shadow: none !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .search-shell input {
    color: var(--c424) !important;
}


body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .pro-module-page,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .employee-dashboard-grid {
    gap: 18px !important;
}


body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .panel,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .stat-card,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .metric-card,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .employee-dashboard-card,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .table-wrap,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .side-list-item,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .pro-list-card,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .employee-directory-table-wrap {
    border: 1px solid var(--theme-border) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    background-image: none !important;
    box-shadow: none !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .panel,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .employee-dashboard-card {
    padding: 20px !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .panel::before,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .panel::after,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .stat-card::after,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .metric-card::after,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .employee-dashboard-card::before,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .employee-dashboard-card::after {
    display: none !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .panel:hover,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .employee-dashboard-card:hover,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .stat-card:hover,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .metric-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .panel-header,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .employee-dashboard-card-head,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .page-toolbar {
    align-items: center !important;
    margin-bottom: 16px !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .panel-header h2,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .panel-header h3,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .employee-dashboard-card-head h2,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .employee-dashboard-card-head h3,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .page-toolbar h2,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .page-toolbar h3 {
    margin-top: 4px !important;
    color: var(--c424) !important;
    font-size: 1.12rem !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .eyebrow,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .panel .eyebrow,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .stat-card p,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .metric-card p,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) table th,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .field-group label {
    color: var(--theme-slate-muted) !important;
    font-size: 0.72rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .stats-grid,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .dashboard-stats {
    gap: 14px !important;
    margin: 0 !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .stat-card,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .metric-card {
    min-height: 112px !important;
    padding: 18px 20px !important;
    color: var(--c424) !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .stat-card strong,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .metric-card strong {
    display: block !important;
    color: var(--c424) !important;
    font-size: clamp(1.45rem, 2vw, 1.95rem) !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
    overflow-wrap: anywhere !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .stat-card small,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .metric-card small,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .muted-note,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .side-list-item small,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .pro-list-card p,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .pro-list-card small {
    color: var(--theme-slate-muted) !important;
    font-weight: 700 !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .table-wrap,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .employee-directory-table-wrap {
    overflow: hidden !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: var(--theme-surface-strong) !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) thead th {
    padding: 12px 14px !important;
    border-bottom: 1px solid var(--c900) !important;
    text-align: left !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) tbody td {
    padding: 13px 14px !important;
    border-bottom: 1px solid var(--c109) !important;
    color: var(--theme-ink-muted) !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) tbody tr:last-child td {
    border-bottom: 0 !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) tbody tr:hover td,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .side-list-item:hover,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .side-list-item:focus {
    background: var(--theme-surface-cool) !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .side-list {
    display: grid !important;
    gap: 10px !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .side-list-item {
    min-height: 58px !important;
    padding: 13px 14px !important;
    color: var(--c424) !important;
    text-decoration: none !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .side-list-item strong,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .pro-list-card h4 {
    color: var(--c424) !important;
    font-size: 0.9rem !important;
    font-weight: 900 !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .pill,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .pill-soft,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .status-pill {
    min-height: 28px !important;
    padding: 0 10px !important;
    border: 1px solid var(--c110) !important;
    border-radius: 999px !important;
    background: var(--theme-surface-cool) !important;
    background-image: none !important;
    color: var(--c784) !important;
    box-shadow: none !important;
    font-size: 0.74rem !important;
    font-weight: 900 !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .button,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .button.secondary,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .button.ghost,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .ghost-button,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .employee-section-action {
    min-height: 40px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-size: 0.74rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.07em !important;
    text-transform: uppercase !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .button.secondary,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .button.ghost,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .ghost-button,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .employee-section-action {
    border: 1px solid var(--c110) !important;
    background: var(--theme-surface-strong) !important;
    color: var(--c784) !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .button.secondary:hover,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .button.secondary:focus-visible,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .button.ghost:hover,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .button.ghost:focus-visible,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .ghost-button:hover,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .ghost-button:focus-visible,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .employee-section-action:hover,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .employee-section-action:focus-visible {
    border-color: var(--c899) !important;
    background: var(--theme-surface-cool) !important;
    color: var(--c424) !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .field-group input:not([type="checkbox"]):not([type="radio"]),
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .field-group select,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .field-group textarea {
    min-height: 42px !important;
    border: 1px solid var(--c110) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    color: var(--c424) !important;
    box-shadow: none !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .field-group input:not([type="checkbox"]):not([type="radio"]):focus,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .field-group select:focus,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .field-group textarea:focus {
    border-color: var(--theme-slate-soft) !important;
    outline: 3px solid var(--c901) !important;
}

body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .empty-state,
body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .empty-cell {
    border: 1px solid var(--theme-border) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-cool) !important;
    background-image: none !important;
    box-shadow: none !important;
    color: var(--theme-slate-muted) !important;
    font-weight: 700 !important;
    text-align: center !important;
}

@media (max-width: 1180px) {
    body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .pro-two-column,
    body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .employee-dashboard-grid,
    body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .department-grid {
        grid-template-columns: 1fr !important;
    }

    body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .stats-grid,
    body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .dashboard-stats {
        grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
    }
}

@media (max-width: 700px) {
    body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .panel,
    body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .employee-dashboard-card,
    body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .stat-card,
    body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .metric-card {
        padding: 16px !important;
    }

    body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .panel-header,
    body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .employee-dashboard-card-head,
    body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .page-toolbar {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .stats-grid,
    body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .dashboard-stats {
        grid-template-columns: 1fr !important;
    }

    body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .table-wrap,
    body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) .employee-directory-table-wrap {
        margin-inline: -16px !important;
        width: calc(100% + 32px) !important;
        overflow-x: auto !important;
        border-right: 0 !important;
        border-left: 0 !important;
        border-radius: 0 !important;
    }

    body:not(.employee-list-page-body):not(:has(.dashboard-home-page)):not(:has(.employee-dashboard)):not(:has(.employee-completeness-page)) table {
        min-width: 620px !important;
    }
}

.helpdesk-page {
    display: grid !important;
    gap: 28px !important;
    max-width: 1280px !important;
    margin-inline: auto !important;
}

.helpdesk-summary {
    display: grid !important;
    grid-template-columns: minmax(280px, 360px) !important;
}

.helpdesk-stat-card {
    min-height: 132px !important;
    padding: 28px 30px !important;
}

.helpdesk-request-panel,
.helpdesk-tickets-panel {
    padding: 34px !important;
}

.helpdesk-request-panel .panel-header,
.helpdesk-tickets-panel .panel-header {
    margin-bottom: 28px !important;
    padding-bottom: 18px !important;
    border-bottom: 1px solid var(--c057) !important;
}

.helpdesk-form {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px 32px !important;
}

.helpdesk-field-subject,
.helpdesk-field-description,
.helpdesk-form-actions {
    grid-column: 1 / -1 !important;
}

.helpdesk-field-subject {
    max-width: calc(50% - 16px) !important;
}

.helpdesk-form input,
.helpdesk-form select,
.helpdesk-form textarea {
    min-height: 52px !important;
    padding-inline: 18px !important;
}

.helpdesk-form textarea {
    min-height: 180px !important;
    padding-block: 16px !important;
    resize: vertical;
}

.helpdesk-form-actions {
    margin-top: 8px !important;
    padding-top: 8px !important;
}

.helpdesk-form-actions .button {
    min-width: 172px !important;
    min-height: 50px !important;
}

.helpdesk-tickets-panel .table-wrap {
    margin-top: 0 !important;
    border-radius: 10px !important;
}

.helpdesk-tickets-panel table th,
.helpdesk-tickets-panel table td {
    padding: 18px 20px !important;
}

@media (max-width: 760px) {
    .helpdesk-page {
        max-width: none !important;
        gap: 18px !important;
    }

    .helpdesk-summary,
    .helpdesk-form {
        grid-template-columns: 1fr !important;
    }

    .helpdesk-field-subject {
        max-width: none !important;
    }

    .helpdesk-request-panel,
    .helpdesk-tickets-panel {
        padding: 22px !important;
    }
}

.celebrations-page {
    display: grid !important;
    gap: 16px !important;
    width: min(100%, 72rem) !important;
    max-width: 72rem !important;
    margin-inline: auto !important;
}

.celebrations-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.8rem !important;
    width: 100% !important;
    margin: 0 !important;
}

.celebrations-stats .metric-card,
.celebrations-stats .metric-card:first-child {
    min-height: 7rem !important;
    padding: 1rem 1.15rem !important;
    border-radius: 8px !important;
}

.celebrations-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.05rem !important;
    align-items: stretch !important;
    width: 100% !important;
}

.celebrations-panel {
    min-height: 21.5rem !important;
    padding: 1.15rem !important;
    border-radius: 8px !important;
}

.celebrations-panel .panel-header {
    margin-bottom: 0.9rem !important;
    padding-bottom: 0.85rem !important;
    border-bottom: 1px solid var(--theme-border) !important;
}

.celebrations-panel .side-list {
    display: grid !important;
    gap: 0.65rem !important;
}

.celebrations-panel .side-list-item {
    display: flex !important;
    align-items: center !important;
    min-height: 4.5rem !important;
    padding: 0.85rem 0.95rem !important;
    border-radius: 8px !important;
    text-decoration: none !important;
}

.celebrations-panel .side-list-item strong {
    display: block !important;
    margin-bottom: 0.45rem !important;
    text-decoration: none !important;
}

.celebrations-panel .side-list-item small {
    line-height: 1.35 !important;
    white-space: normal !important;
    text-decoration: none !important;
}

@media (max-width: 900px) {
    .celebrations-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 700px) {
    .celebrations-page {
        max-width: none !important;
        gap: 18px !important;
    }

    .celebrations-stats {
        grid-template-columns: 1fr !important;
    }

    .celebrations-panel {
        min-height: 0 !important;
        padding: 22px !important;
    }
}

.identity-security-page {
    gap: 20px;
}

.identity-security-page .identity-security-stats {
    grid-template-columns: repeat(2, minmax(260px, 356px));
    align-items: stretch;
    justify-content: start;
    gap: 14px;
}

.identity-security-page .identity-security-metric {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: 118px;
    padding: 20px;
}

.identity-security-icon {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--c902);
    border-radius: 8px;
    background: var(--c068);
    color: var(--c903);
    font-size: 0.68rem;
    font-weight: 900;
}

.identity-security-page .identity-security-layout {
    grid-template-columns: minmax(520px, 0.9fr) minmax(360px, 1.1fr);
    align-items: start;
    gap: 16px;
}

.identity-security-form-panel,
.identity-security-providers-panel {
    padding: 20px;
}

.identity-security-note {
    margin: 6px 0 18px;
    padding: 12px 14px;
    border: 1px solid var(--c902);
    border-radius: 8px;
    background: var(--theme-surface-cool);
    color: var(--c904);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.45;
}

.identity-security-form {
    gap: 18px 16px;
}

.identity-security-form .field-group label {
    color: var(--c904);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.identity-security-form .field-group input:not([type="checkbox"]),
.identity-security-form .field-group select,
.identity-security-form .field-group textarea {
    min-height: 44px;
    border-radius: 8px;
}

.identity-security-form .field-group textarea {
    min-height: 84px;
    resize: vertical;
}

.identity-security-form .identity-security-check {
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 12px 14px;
    border: 1px solid var(--c902);
    border-radius: 8px;
    background: var(--theme-surface-cool);
}

.identity-security-form .identity-security-check label {
    grid-column: 2;
    grid-row: 1;
    line-height: 1.2;
}

.identity-security-form .identity-security-check input[type="checkbox"] {
    grid-column: 1;
    grid-row: 1;
    width: 16px;
    height: 16px;
    accent-color: var(--theme-success-strong);
}

.identity-security-actions {
    justify-content: start;
    padding-top: 8px;
}

.identity-security-actions .button {
    min-height: 40px;
    border-radius: 8px;
    box-shadow: none;
}

.identity-security-provider-list {
    gap: 10px;
}

.identity-security-provider {
    grid-template-columns: 10px minmax(0, 1fr);
    align-items: center;
    min-height: 54px;
    padding: 13px 14px;
    border-radius: 8px;
}

.identity-security-status {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--theme-slate-soft);
}

.identity-security-status.is-active {
    background: var(--theme-success-strong);
    box-shadow: 0 0 0 4px var(--c422);
}

.identity-security-empty {
    display: grid;
    min-height: 74px;
    place-items: center;
    margin: 0;
    border-style: dashed;
    color: var(--c904);
    font-weight: 800;
}

@media (max-width: 960px) {
    .identity-security-page .identity-security-stats,
    .identity-security-page .identity-security-layout {
        grid-template-columns: 1fr;
    }
}

/* Shared layout stability layer.
   Keep this last so page-specific additions cannot reintroduce clipped content. */
.page-shell,
.main-panel,
.main-panel > *,
.topbar,
.topbar-copy,
.topbar-tools,
.panel,
.panel-header,
.page-toolbar,
.form-grid,
.pro-form-grid,
.field-group,
.table-wrap {
    min-width: 0;
}

.main-panel {
    width: auto !important;
    margin-left: calc(var(--sidebar-width) + var(--shell-gap)) !important;
}

body.sidebar-collapsed .main-panel {
    width: auto !important;
    margin-left: calc(var(--sidebar-collapsed-width) + var(--shell-gap)) !important;
}

.main-panel > *,
.pro-module-page,
.employee-dashboard,
.employee-dashboard-grid,
.department-page,
.employee-directory-page,
.dashboard-home-page {
    width: 100%;
    max-width: 100%;
}

.panel-header,
.page-toolbar,
.form-actions,
.toolbar,
.hero-actions {
    flex-wrap: wrap;
}

.panel-header > *,
.page-toolbar > *,
.form-actions > *,
.toolbar > * {
    min-width: 0;
}

.field-group input:not([type="checkbox"]):not([type="radio"]),
.field-group select,
.field-group textarea,
.form-control,
.form-select {
    max-width: 100%;
}

.table-wrap,
.responsive-table,
.employee-directory-table-wrap {
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

.table-wrap table,
.responsive-table table,
.employee-directory-table-wrap table {
    width: 100%;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

@media (max-width: 1180px) {
    .main-panel,
    body.sidebar-collapsed .main-panel {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .topbar {
        width: 100% !important;
        max-width: none !important;
    }
}

@media (max-width: 760px) {
    .page-shell {
        width: 100%;
        padding: 14px;
    }

    .main-panel {
        padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 18px) !important;
    }

    .topbar {
        gap: 14px;
        padding-bottom: 14px !important;
    }

    .topbar-copy,
    .topbar-tools,
    .search-shell,
    .topbar-actions,
    .topbar-actions .inline-form {
        width: 100% !important;
        max-width: none !important;
    }

    .panel-header,
    .page-toolbar {
        align-items: flex-start !important;
    }

    .form-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        width: 100%;
    }

    .form-actions .button,
    .form-actions .inline-form,
    .form-actions .inline-form .button {
        width: 100% !important;
    }
}

@media (max-width: 520px) {
    .form-actions {
        grid-template-columns: 1fr !important;
    }
}

/* Final celebrations layout override. Keep after the global stability layer. */
body:has(.celebrations-page) .main-panel > .celebrations-page {
    display: grid !important;
    gap: 1rem !important;
    width: min(100%, 72rem) !important;
    max-width: 72rem !important;
    margin-inline: auto !important;
}

body:has(.celebrations-page) .celebrations-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.85rem !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body:has(.celebrations-page) .celebrations-stats .metric-card,
body:has(.celebrations-page) .celebrations-stats .metric-card:first-child {
    min-height: 6.9rem !important;
    padding: 1rem 1.15rem !important;
    border-radius: 8px !important;
}

body:has(.celebrations-page) .celebrations-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body:has(.celebrations-page) .celebrations-panel {
    min-height: 21rem !important;
    padding: 1.15rem !important;
    border-radius: 8px !important;
}

body:has(.celebrations-page) .celebrations-panel .panel-header {
    margin-bottom: 0.9rem !important;
    padding-bottom: 0.8rem !important;
}

body:has(.celebrations-page) .celebrations-panel .side-list {
    display: grid !important;
    gap: 0.65rem !important;
}

body:has(.celebrations-page) .celebrations-panel .side-list-item {
    display: flex !important;
    align-items: center !important;
    min-height: 4.45rem !important;
    padding: 0.8rem 0.95rem !important;
    border-radius: 8px !important;
    text-decoration: none !important;
}

body:has(.celebrations-page) .celebrations-panel .side-list-item *,
body:has(.celebrations-page) .celebrations-panel .side-list-item strong,
body:has(.celebrations-page) .celebrations-panel .side-list-item small,
body:has(.celebrations-page) .celebrations-panel .side-list-item:hover *,
body:has(.celebrations-page) .celebrations-panel .side-list-item:focus * {
    text-decoration: none !important;
}

body:has(.celebrations-page) .celebrations-panel .side-list-item strong {
    margin-bottom: 0.45rem !important;
}

@media (max-width: 900px) {
    body:has(.celebrations-page) .celebrations-grid,
    body:has(.celebrations-page) .celebrations-stats {
        grid-template-columns: 1fr !important;
    }
}

/* Organization structure final polish */
body:has(.org-tree-page) .main-panel > .org-tree-page {
    display: grid !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body:has(.org-tree-page) .org-final-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1.15rem 1.25rem !important;
    border: 1px solid var(--c905) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body:has(.org-tree-page) .org-final-header .eyebrow {
    margin-bottom: 0.35rem !important;
    color: var(--theme-slate-muted) !important;
    font-size: 0.72rem !important;
    font-weight: 650 !important;
    letter-spacing: 0.1em !important;
}

body:has(.org-tree-page) .org-final-header h2 {
    margin: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 1.35rem !important;
    font-weight: 650 !important;
    line-height: 1.15 !important;
}

body:has(.org-tree-page) .org-final-header p:not(.eyebrow) {
    max-width: 65ch !important;
    margin: 0.45rem 0 0 !important;
    color: var(--c073) !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
}

body:has(.org-tree-page) .org-final-header-metrics {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(8rem, 1fr)) !important;
    gap: 0.65rem !important;
}

body:has(.org-tree-page) .org-final-header-metrics article {
    min-height: 4.9rem !important;
    padding: 0.8rem 0.9rem !important;
    border: 1px solid var(--c014) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-cool) !important;
    box-shadow: none !important;
}

body:has(.org-tree-page) .org-final-header-metrics span {
    color: var(--theme-slate-muted) !important;
    font-size: 0.72rem !important;
    font-weight: 650 !important;
    letter-spacing: 0.1em !important;
}

body:has(.org-tree-page) .org-final-header-metrics strong {
    display: block !important;
    margin-top: 0.45rem !important;
    color: var(--theme-ink-strong) !important;
    font-size: 1.55rem !important;
    font-weight: 650 !important;
    line-height: 1 !important;
}

body:has(.org-tree-page) .org-final-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
}

body:has(.org-tree-page) .org-save-status {
    color: var(--c004) !important;
    font-size: 0.74rem !important;
    font-weight: 650 !important;
}

body:has(.org-tree-page) .org-tree-action {
    display: inline-flex !important;
    min-height: 2.55rem !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.65rem 1rem !important;
    border: 1px solid var(--c408) !important;
    border-radius: 8px !important;
    background: var(--theme-success-strong) !important;
    color: var(--theme-surface-strong) !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
}

body:has(.org-tree-page) .org-final-canvas {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    min-height: 34rem !important;
    padding: 1.1rem !important;
    border: 1px solid var(--c905) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
    overflow: auto !important;
}

body:has(.org-tree-page) .org-chart-toolbar-v2 {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 8 !important;
    display: grid !important;
    grid-template-columns: minmax(16rem, 1fr) auto !important;
    align-items: center !important;
    gap: 0.85rem !important;
    min-width: min(58rem, max-content) !important;
    margin: 0 0 1rem !important;
    padding: 0.85rem 0.95rem !important;
    border: 1px solid var(--c014) !important;
    border-radius: 8px !important;
    background: var(--c144) !important;
    box-shadow: none !important;
}

body:has(.org-tree-page) .org-chart-toolbar-v2 strong {
    color: var(--theme-ink-strong) !important;
    font-size: 1rem !important;
    font-weight: 650 !important;
}

body:has(.org-tree-page) .org-chart-toolbar-v2 span {
    color: var(--c073) !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
}

body:has(.org-tree-page) .org-chart-toolbar-actions {
    gap: 0.8rem !important;
}

body:has(.org-tree-page) .org-chart-collapse-all {
    min-height: 2.45rem !important;
    padding: 0.55rem 0.9rem !important;
    border: 1px solid var(--c013) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    color: var(--c427) !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    box-shadow: none !important;
}

body:has(.org-tree-page) .org-chart-collapse-all:hover,
body:has(.org-tree-page) .org-chart-collapse-all:focus-visible {
    border-color: var(--c038) !important;
    background: var(--c030) !important;
    color: var(--c007) !important;
    outline: 2px solid transparent !important;
    transform: none !important;
}

body:has(.org-tree-page) .org-chart-legend {
    gap: 0.75rem !important;
}

body:has(.org-tree-page) .org-chart-legend span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.38rem !important;
    color: var(--theme-slate) !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
}

body:has(.org-tree-page) .org-final-tree {
    --org-node-width: 13rem;
    --org-branch-gap: 1.2rem;
    display: block !important;
    width: max-content !important;
    min-width: max-content !important;
    margin: 1.5rem auto 2rem !important;
    padding: 0 1.5rem !important;
}

body:has(.org-tree-page) .org-final-tree > .org-final-node-wrap {
    margin-inline: auto !important;
}

body:has(.org-tree-page) .org-final-node {
    width: var(--org-node-width) !important;
    gap: 0.5rem !important;
}

body:has(.org-tree-page) .org-final-avatar {
    width: 3.25rem !important;
    height: 3.25rem !important;
    border-width: 2px !important;
    box-shadow: none !important;
}

body:has(.org-tree-page) .org-final-card {
    padding: 0.8rem 0.85rem !important;
    border: 1px solid var(--c014) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

body:has(.org-tree-page) .org-final-card strong {
    color: var(--theme-ink-strong) !important;
    font-size: 0.9rem !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
}

body:has(.org-tree-page) .org-final-card span {
    color: var(--theme-ink-muted) !important;
    font-size: 0.78rem !important;
    font-weight: 550 !important;
    line-height: 1.35 !important;
}

body:has(.org-tree-page) .org-final-card em {
    color: var(--theme-slate-muted) !important;
    font-size: 0.72rem !important;
    font-style: normal !important;
    font-weight: 500 !important;
}

body:has(.org-tree-page) .org-vacant-badge {
    padding: 0.18rem 0.52rem !important;
    border-radius: 999px !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
}

body:has(.org-tree-page) .org-role-badge-linked {
    border-color: var(--c168) !important;
    background: var(--c094) !important;
    color: var(--c004) !important;
}

body:has(.org-tree-page) .org-final-tools {
    gap: 0.4rem !important;
}

body:has(.org-tree-page) .org-final-tools a,
body:has(.org-tree-page) .org-final-tools button,
body:has(.org-tree-page) .org-final-collapse {
    min-height: 1.9rem !important;
    padding: 0.35rem 0.55rem !important;
    border-radius: 7px !important;
    font-size: 0.66rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

body:has(.org-tree-page) .org-final-note {
    width: min(44rem, 100%) !important;
    margin: 0 auto !important;
    padding: 0.85rem 0.95rem !important;
    border: 1px solid var(--c014) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-cool) !important;
    color: var(--c073) !important;
    font-size: 0.84rem !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    text-align: center !important;
}

body:has(.org-tree-page) .org-final-note strong {
    color: var(--theme-ink-strong) !important;
    font-weight: 650 !important;
}

body:has(.org-tree-page) .department-empty-state {
    border: 1px dashed var(--c013) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-cool) !important;
}

/* Notification center operations inbox refinement */
body:has(.notification-center-page) .main-panel > .notification-center-page {
    display: grid !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-bottom: 2rem !important;
}

body:has(.notification-center-page) .notification-center-stats {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.85rem !important;
    margin: 0 !important;
}

body:has(.notification-center-page) .notification-center-stats .metric-card,
body:has(.notification-center-page) .notification-center-stats .metric-card:first-child {
    min-height: 5.25rem !important;
    padding: 0.9rem 1rem !important;
    border: 1px solid var(--c014) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body:has(.notification-center-page) .notification-center-stats .metric-card p,
body:has(.notification-center-page) .notification-center-stats .metric-card:first-child p {
    margin: 0 0 0.35rem !important;
    color: var(--theme-slate-muted) !important;
    font-size: 0.69rem !important;
    font-weight: 650 !important;
    letter-spacing: 0.09em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body:has(.notification-center-page) .notification-center-stats .metric-card strong,
body:has(.notification-center-page) .notification-center-stats .metric-card:first-child strong {
    display: block !important;
    margin: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: clamp(1.35rem, 1.7vw, 1.8rem) !important;
    font-weight: 650 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}

body:has(.notification-center-page) .notification-center-stats .metric-card small,
body:has(.notification-center-page) .notification-center-stats .metric-card:first-child small {
    display: block !important;
    margin-top: 0.4rem !important;
    color: var(--c073) !important;
    font-size: 0.76rem !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
}

body:has(.notification-center-page) .notification-center-grid {
    display: grid !important;
    grid-template-columns: minmax(24rem, 0.95fr) minmax(28rem, 1.35fr) !important;
    gap: 1rem !important;
    align-items: start !important;
    margin: 0 !important;
}

body:has(.notification-center-page) .messages {
    margin: 0 0 0.9rem !important;
}

body:has(.notification-center-page) .message {
    padding: 0.72rem 0.85rem !important;
    border: 1px solid var(--c075) !important;
    border-radius: 8px !important;
    background: var(--c030) !important;
    color: var(--c426) !important;
    font-size: 0.8rem !important;
    font-weight: 650 !important;
    box-shadow: none !important;
}

body:has(.notification-center-page) .message.success {
    border-color: var(--c907) !important;
    background: var(--c908) !important;
    color: var(--c004) !important;
}

body:has(.notification-center-page) .notification-section-card {
    min-height: 0 !important;
    padding: 1rem !important;
    border: 1px solid var(--c014) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body:has(.notification-center-page) .notification-section-card .panel-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    margin: 0 0 0.8rem !important;
    padding: 0 0 0.75rem !important;
    border-bottom: 1px solid var(--c084) !important;
}

body:has(.notification-center-page) .notification-section-card .panel-header .eyebrow {
    margin: 0 0 0.24rem !important;
    color: var(--theme-slate-muted) !important;
    font-size: 0.68rem !important;
    font-weight: 650 !important;
    letter-spacing: 0.09em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body:has(.notification-center-page) .notification-section-card .panel-header h3 {
    margin: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 0.98rem !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
}

body:has(.notification-center-page) .notification-section-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.55rem !important;
    flex: 0 0 auto !important;
}

body:has(.notification-center-page) .notification-section-actions form {
    margin: 0 !important;
}

body:has(.notification-center-page) .notification-mark-all-button,
body:has(.notification-center-page) .notification-section-actions .notification-mark-all-button {
    min-height: 1.9rem !important;
    padding: 0 0.65rem !important;
    border: 1px solid var(--c075) !important;
    border-radius: 7px !important;
    background: var(--theme-surface-strong) !important;
    color: var(--c427) !important;
    font-size: 0.68rem !important;
    font-weight: 750 !important;
    letter-spacing: 0.04em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

body:has(.notification-center-page) .notification-mark-all-button:hover,
body:has(.notification-center-page) .notification-mark-all-button:focus-visible {
    border-color: var(--c038) !important;
    background: var(--c030) !important;
    color: var(--c909) !important;
}

body:has(.notification-center-page) .notification-alert-filter {
    display: grid !important;
    grid-template-columns: minmax(12rem, 1fr) minmax(10rem, 14rem) auto auto !important;
    gap: 0.55rem !important;
    align-items: end !important;
    margin: 0 0 0.75rem !important;
    padding: 0.7rem !important;
    border: 1px solid var(--c014) !important;
    border-radius: 8px !important;
    background: var(--c030) !important;
}

body:has(.notification-center-page) .notification-alert-filter label {
    display: grid !important;
    gap: 0.28rem !important;
    min-width: 0 !important;
}

body:has(.notification-center-page) .notification-alert-filter label span {
    color: var(--c073) !important;
    font-size: 0.66rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

body:has(.notification-center-page) .notification-alert-filter input,
body:has(.notification-center-page) .notification-alert-filter select {
    width: 100% !important;
    min-height: 2.25rem !important;
    border: 1px solid var(--c075) !important;
    border-radius: 7px !important;
    background: var(--theme-surface-strong) !important;
    color: var(--theme-ink-strong) !important;
    font-size: 0.78rem !important;
}

body:has(.notification-center-page) .notification-filter-button,
body:has(.notification-center-page) .notification-filter-clear {
    min-height: 2.25rem !important;
    padding: 0 0.72rem !important;
    border-radius: 7px !important;
    font-size: 0.68rem !important;
    font-weight: 750 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}

body:has(.notification-center-page) .notification-section-card .pill,
body:has(.notification-center-page) .notification-section-card .pill-soft {
    display: inline-flex !important;
    min-width: 1.9rem !important;
    min-height: 1.9rem !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.18rem 0.58rem !important;
    border: 1px solid var(--c075) !important;
    border-radius: 999px !important;
    background: var(--c030) !important;
    color: var(--c426) !important;
    font-size: 0.74rem !important;
    font-weight: 650 !important;
}

body:has(.notification-center-page) .notification-section-card .side-list {
    display: grid !important;
    gap: 0.45rem !important;
    max-height: 20rem !important;
    overflow-y: auto !important;
    padding-right: 0.15rem !important;
}

body:has(.notification-center-page) .notification-section-attendance {
    grid-row: span 2 !important;
}

body:has(.notification-center-page) .notification-section-attendance .side-list {
    max-height: 30rem !important;
}

body:has(.notification-center-page) .notification-open-form {
    margin: 0 !important;
}

body:has(.notification-center-page) .notification-row,
body:has(.notification-center-page) .notification-section-card .side-list-item.notification-row {
    display: grid !important;
    grid-template-columns: 2rem minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 0.65rem !important;
    min-height: 3.55rem !important;
    width: 100% !important;
    padding: 0.62rem 0.7rem !important;
    border: 1px solid var(--c014) !important;
    border-radius: 8px !important;
    background: var(--c012) !important;
    color: var(--theme-ink-strong) !important;
    text-align: left !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: border-color 150ms ease, background-color 150ms ease !important;
}

body:has(.notification-center-page) .notification-row.unread {
    border-color: var(--c005) !important;
    background: var(--c006) !important;
}

body:has(.notification-center-page) .notification-row:hover,
body:has(.notification-center-page) .notification-row:focus-visible {
    border-color: var(--c038) !important;
    background: var(--c030) !important;
    box-shadow: none !important;
    outline: 2px solid transparent !important;
    transform: none !important;
}

body:has(.notification-center-page) .notification-row-icon {
    display: grid !important;
    width: 2rem !important;
    height: 2rem !important;
    place-items: center !important;
    border: 1px solid var(--c013) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    color: var(--c007) !important;
    font-size: 0.74rem !important;
    font-weight: 650 !important;
}

body:has(.notification-center-page) .notification-row-copy {
    display: grid !important;
    gap: 0.12rem !important;
    min-width: 0 !important;
}

body:has(.notification-center-page) .notification-row-copy strong {
    color: var(--theme-ink-strong) !important;
    font-size: 0.78rem !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
    overflow: hidden !important;
    text-decoration: none !important;
    text-overflow: ellipsis !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

body:has(.notification-center-page) .notification-row-copy small {
    color: var(--c073) !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

body:has(.notification-center-page) .notification-row-action {
    color: var(--c427) !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
}

body:has(.notification-center-page) .notification-row-actions {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.45rem !important;
}

body:has(.notification-center-page) .notification-row-actions form {
    margin: 0 !important;
}

body:has(.notification-center-page) .notification-row-actions .notification-row-action {
    display: inline-flex !important;
    min-height: 1.8rem !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 0.48rem !important;
    border: 1px solid var(--c075) !important;
    border-radius: 7px !important;
    background: var(--theme-surface-strong) !important;
    color: var(--c427) !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

body:has(.notification-center-page) .notification-row-actions .notification-row-action:hover,
body:has(.notification-center-page) .notification-row-actions .notification-row-action:focus-visible {
    border-color: var(--c038) !important;
    background: var(--c006) !important;
    outline: 2px solid transparent !important;
}

body:has(.notification-center-page) .notification-mark-read-button {
    cursor: pointer !important;
}

body:has(.notification-center-page) .notification-mark-read-form.is-submitting .notification-mark-read-button,
body:has(.notification-center-page) .notification-section-actions form.is-submitting .notification-mark-all-button {
    opacity: 0.62 !important;
    pointer-events: none !important;
}

body:has(.notification-center-page) .notification-row.is-marking-read,
body:has(.notification-center-page) form.notification-open-form.is-marking-read {
    opacity: 0 !important;
    transform: translateY(-4px) !important;
    transition: opacity 160ms ease, transform 160ms ease !important;
}

body:has(.notification-center-page) .notification-empty-state,
body:has(.notification-center-page) .notification-section-card .empty-state.notification-empty-state {
    display: grid !important;
    min-height: 3.9rem !important;
    place-items: center !important;
    padding: 0.9rem !important;
    border: 1px dashed var(--c013) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-cool) !important;
    color: var(--theme-slate-muted) !important;
    text-align: center !important;
}

body:has(.notification-center-page) .notification-empty-state strong {
    color: var(--theme-ink-strong) !important;
    font-size: 0.84rem !important;
    font-weight: 650 !important;
}

body:has(.notification-center-page) .notification-empty-state span,
body:has(.notification-center-page) .notification-section-footnote {
    color: var(--theme-slate-muted) !important;
    font-size: 0.76rem !important;
    font-weight: 500 !important;
}

body:has(.notification-center-page) .notification-section-footnote {
    margin: 0.75rem 0 0 !important;
    padding-top: 0.7rem !important;
    border-top: 1px solid var(--c049) !important;
}

@media (max-width: 1240px) {
    body:has(.notification-center-page) .notification-center-stats,
    body:has(.notification-center-page) .notification-center-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    body:has(.notification-center-page) .notification-center-stats,
    body:has(.notification-center-page) .notification-center-grid {
        grid-template-columns: 1fr !important;
    }

    body:has(.notification-center-page) .notification-section-card,
    body:has(.notification-center-page) .notification-center-stats .metric-card,
    body:has(.notification-center-page) .notification-center-stats .metric-card:first-child {
        padding: 0.9rem !important;
    }

    body:has(.notification-center-page) .notification-row,
    body:has(.notification-center-page) .notification-section-card .side-list-item.notification-row {
        grid-template-columns: 2rem minmax(0, 1fr) !important;
    }

    body:has(.notification-center-page) .notification-alert-filter {
        grid-template-columns: 1fr !important;
    }

    body:has(.notification-center-page) .notification-section-actions {
        align-items: flex-end !important;
        flex-direction: column-reverse !important;
        gap: 0.35rem !important;
    }

    body:has(.notification-center-page) .notification-row-with-actions,
    body:has(.notification-center-page) .notification-section-card .side-list-item.notification-row-with-actions {
        grid-template-columns: 2rem minmax(0, 1fr) !important;
    }

    body:has(.notification-center-page) .notification-row-actions {
        grid-column: 2 !important;
        justify-content: flex-start !important;
        margin-top: 0.35rem !important;
    }

    body:has(.notification-center-page) .notification-row > .notification-row-action {
        display: none !important;
    }

    body:has(.notification-center-page) .notification-row-actions .notification-row-action {
        display: inline-flex !important;
    }
}

@media (max-width: 1180px) {
    body:has(.org-tree-page) .org-final-header {
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
    }

    body:has(.org-tree-page) .org-final-header-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    body:has(.org-tree-page) .org-final-header,
    body:has(.org-tree-page) .org-final-canvas {
        padding: 0.9rem !important;
    }

    body:has(.org-tree-page) .org-final-header-metrics,
    body:has(.org-tree-page) .org-chart-toolbar-v2 {
        grid-template-columns: 1fr !important;
    }

    body:has(.org-tree-page) .org-chart-toolbar-actions {
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }
}


/* Holiday calendar today marker: flat ring, no glow */
body:has(.holiday-calendar-page) .holiday-day-cell.is-today {
    border-color: var(--theme-success-strong) !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body:has(.holiday-calendar-page) .holiday-day-cell.is-today .holiday-day-number {
    width: 3.1rem !important;
    height: 3.1rem !important;
    border: 2px solid var(--theme-success-strong) !important;
    background: transparent !important;
    color: var(--c095) !important;
    outline: 2px solid transparent !important;
    box-shadow: none !important;
}

/* Employee evaluation detail final polish */
body.employee-evaluation-view-page .employee-evaluation-view {
    display: grid !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body.employee-evaluation-view-page .employee-evaluation-view-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 1.25rem !important;
    min-height: 6.5rem !important;
    padding: 1.05rem 1.25rem !important;
    border: 1px solid var(--c014) !important;
    border-radius: 12px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body.employee-evaluation-view-page .employee-evaluation-back-link {
    display: inline-flex !important;
    width: fit-content !important;
    min-height: 1.35rem !important;
    align-items: center !important;
    margin: 0 0 0.3rem !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--c910) !important;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.055em !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
}

body.employee-evaluation-view-page .employee-evaluation-back-link:hover,
body.employee-evaluation-view-page .employee-evaluation-back-link:focus-visible {
    color: var(--c911) !important;
    text-decoration: underline !important;
    text-underline-offset: 0.18rem !important;
}

body.employee-evaluation-view-page .employee-evaluation-view-hero h2 {
    margin: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 1.42rem !important;
    font-weight: 850 !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
}

body.employee-evaluation-view-page .employee-evaluation-view-hero p {
    margin: 0.5rem 0 0 !important;
    color: var(--c101) !important;
    font-size: 0.86rem !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
}

body.employee-evaluation-view-page .employee-evaluation-view-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.55rem !important;
    justify-items: end !important;
}

body.employee-evaluation-view-page .employee-evaluation-status-strip,
body.employee-evaluation-view-page .employee-evaluation-command-strip {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.5rem !important;
}

body.employee-evaluation-view-page .employee-evaluation-command-strip {
    gap: 0.55rem !important;
}

body.employee-evaluation-view-page .employee-evaluation-view-actions form {
    margin: 0 !important;
}

body.employee-evaluation-view-page .employee-evaluation-rating-pill,
body.employee-evaluation-view-page .employee-evaluation-score-pill,
body.employee-evaluation-view-page .employee-evaluation-view-actions .pill {
    display: inline-flex !important;
    min-height: 1.95rem !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.32rem 0.72rem !important;
    border: 1px solid var(--c075) !important;
    border-radius: 999px !important;
    background: var(--c030) !important;
    color: var(--c426) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

body.employee-evaluation-view-page .employee-evaluation-score-pill {
    background: var(--c030) !important;
    color: var(--c430) !important;
}

body.employee-evaluation-view-page .employee-evaluation-score-pill strong {
    margin-left: 0.16rem !important;
    color: var(--theme-ink-strong) !important;
    font-weight: 850 !important;
}

body.employee-evaluation-view-page .employee-evaluation-view-actions .pill {
    border-color: var(--c002) !important;
    background: var(--c003) !important;
    color: var(--c004) !important;
}

body.employee-evaluation-view-page .employee-evaluation-view-actions .employee-section-action {
    display: inline-flex !important;
    min-height: 2.35rem !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 0.9rem !important;
    border: 1px solid var(--c091) !important;
    border-radius: 9px !important;
    background: var(--theme-surface-strong) !important;
    color: var(--c912) !important;
    font-size: 0.7rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.04em !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease !important;
}

body.employee-evaluation-view-page .employee-evaluation-view-actions .employee-section-action:hover,
body.employee-evaluation-view-page .employee-evaluation-view-actions .employee-section-action:focus-visible {
    border-color: var(--c038) !important;
    background: var(--c006) !important;
    color: var(--c007) !important;
    outline: 2px solid transparent !important;
}

body.employee-evaluation-view-page .employee-evaluation-view-actions .employee-section-action:active {
    transform: scale(0.98) !important;
}

body.employee-evaluation-view-page .employee-evaluation-view-actions .employee-evaluation-delete-action {
    border-color: var(--c022) !important;
    background: var(--c249) !important;
    color: var(--c237) !important;
}

body.employee-evaluation-view-page .employee-evaluation-view-actions .employee-evaluation-delete-action:hover,
body.employee-evaluation-view-page .employee-evaluation-view-actions .employee-evaluation-delete-action:focus-visible {
    border-color: var(--c090) !important;
    background: var(--c116) !important;
    color: var(--c024) !important;
}

body.employee-evaluation-view-page .employee-evaluation-view-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    align-items: start !important;
}

body.employee-evaluation-view-page .employee-evaluation-summary-panel,
body.employee-evaluation-view-page .employee-evaluation-content-panel {
    border: 1px solid var(--c014) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

body.employee-evaluation-view-page .employee-evaluation-summary-panel {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    position: static !important;
}

body.employee-evaluation-view-page .employee-evaluation-summary-panel div {
    display: grid !important;
    gap: 0.32rem !important;
    padding: 0.85rem 0.95rem !important;
    border-bottom: 1px solid var(--c084) !important;
    border-right: 1px solid var(--c084) !important;
}

body.employee-evaluation-view-page .employee-evaluation-summary-panel div:last-child {
    border-bottom: 0 !important;
    border-right: 0 !important;
}

body.employee-evaluation-view-page .employee-evaluation-summary-panel span,
body.employee-evaluation-view-page .employee-evaluation-content-panel article > span {
    display: block !important;
    margin: 0 !important;
    color: var(--theme-slate-muted) !important;
    font-size: 0.68rem !important;
    font-weight: 650 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.25 !important;
    text-transform: uppercase !important;
}

body.employee-evaluation-view-page .employee-evaluation-summary-panel strong {
    color: var(--theme-ink-strong) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

body.employee-evaluation-view-page .employee-evaluation-content-panel {
    display: grid !important;
    gap: 0 !important;
}

body.employee-evaluation-view-page .employee-evaluation-content-panel article {
    display: grid !important;
    gap: 0.55rem !important;
    padding: 1rem 1.15rem !important;
    border-bottom: 1px solid var(--c084) !important;
    background: var(--theme-surface-strong) !important;
}

body.employee-evaluation-view-page .employee-evaluation-content-panel article:nth-child(even):not(.employee-evaluation-section-heading) {
    background: var(--c012) !important;
}

body.employee-evaluation-view-page .employee-evaluation-content-panel article:last-child {
    border-bottom: 0 !important;
}

body.employee-evaluation-view-page .employee-evaluation-section-heading {
    padding: 1rem 1.15rem !important;
    background: var(--theme-surface-cool) !important;
}

body.employee-evaluation-view-page .employee-evaluation-section-heading h3 {
    margin: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 1.02rem !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
}

body.employee-evaluation-view-page .employee-evaluation-section-heading p {
    margin: 0.2rem 0 0 !important;
    color: var(--c073) !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

body.employee-evaluation-view-page .employee-evaluation-content-panel p {
    max-width: 82ch !important;
    margin: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
}

body.employee-evaluation-view-page .employee-evaluation-score-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)) !important;
    gap: 0.5rem !important;
    margin-top: 0.15rem !important;
}

body.employee-evaluation-view-page .employee-evaluation-score-list div {
    padding: 0.62rem 0.72rem !important;
    border: 1px solid var(--c014) !important;
    border-radius: 8px !important;
    background: var(--c012) !important;
    color: var(--theme-ink-strong) !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
}

@media (max-width: 1080px) {
    body.employee-evaluation-view-page .employee-evaluation-view-hero,
    body.employee-evaluation-view-page .employee-evaluation-view-grid {
        grid-template-columns: 1fr !important;
    }

    body.employee-evaluation-view-page .employee-evaluation-summary-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.employee-evaluation-view-page .employee-evaluation-view-actions {
        justify-content: flex-start !important;
    }
}

@media (max-width: 680px) {
    body.employee-evaluation-view-page .employee-evaluation-view-hero,
    body.employee-evaluation-view-page .employee-evaluation-content-panel article,
    body.employee-evaluation-view-page .employee-evaluation-section-heading {
        padding: 0.9rem !important;
    }

    body.employee-evaluation-view-page .employee-evaluation-view-actions,
    body.employee-evaluation-view-page .employee-evaluation-view-actions .employee-section-action,
    body.employee-evaluation-view-page .employee-evaluation-view-actions form {
        width: 100% !important;
    }

    body.employee-evaluation-view-page .employee-evaluation-summary-panel {
        grid-template-columns: 1fr !important;
    }

    body.employee-evaluation-view-page .employee-evaluation-summary-panel div {
        border-right: 0 !important;
    }
}

/* Supervisor evaluation edit page */
body.supervisor-evaluation-edit-page:not(.auth-page):not(.login-page) .main-panel {
    background: var(--c068) !important;
}

body.supervisor-evaluation-edit-page:not(.auth-page):not(.login-page) .main-panel > .topbar {
    min-height: 92px !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1.05rem 1.25rem !important;
    overflow: hidden !important;
    border: 1px solid var(--c071) !important;
    border-radius: 12px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body.supervisor-evaluation-edit-page:not(.auth-page):not(.login-page) .main-panel > .topbar h1 {
    color: var(--theme-ink-strong) !important;
    font-size: 1.34rem !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    line-height: 1.08 !important;
}

body.supervisor-evaluation-edit-page:not(.auth-page):not(.login-page) .main-panel > .topbar .topbar-tools {
    min-width: 0 !important;
}

body.supervisor-evaluation-edit-page:not(.auth-page):not(.login-page) .main-panel > .topbar .button {
    flex: 0 1 auto !important;
    min-height: 2.35rem !important;
    max-width: 100% !important;
    padding: 0 0.9rem !important;
    border-radius: 9px !important;
    font-size: 0.7rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.04em !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

body.supervisor-evaluation-edit-page .supervisor-evaluation-workspace {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body.supervisor-evaluation-edit-page .employee-dashboard-main,
body.supervisor-evaluation-edit-page .supervisor-evaluation-form {
    display: grid !important;
    gap: 1rem !important;
    width: 100% !important;
}

body.supervisor-evaluation-edit-page .supervisor-form-card {
    overflow: hidden !important;
    padding: 0 !important;
    border: 1px solid var(--c071) !important;
    border-radius: 12px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body.supervisor-evaluation-edit-page .supervisor-form-card > .employee-dashboard-card-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    margin: 0 !important;
    padding: 1rem 1.15rem !important;
    border-bottom: 1px solid var(--c072) !important;
    background: var(--theme-surface-strong) !important;
}

body.supervisor-evaluation-edit-page .supervisor-form-card > .employee-dashboard-card-head h3 {
    margin: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 1.04rem !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
}

body.supervisor-evaluation-edit-page .supervisor-form-card > .employee-dashboard-card-head p {
    margin: 0.3rem 0 0 !important;
    color: var(--c101) !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

body.supervisor-evaluation-edit-page .supervisor-edit-summary-card .employee-section-action,
body.supervisor-evaluation-edit-page .supervisor-section-actions .employee-section-action,
body.supervisor-evaluation-edit-page .supervisor-section-actions .button {
    display: inline-flex !important;
    min-height: 2.35rem !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 0.9rem !important;
    border-radius: 9px !important;
    font-size: 0.7rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.04em !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease !important;
}

body.supervisor-evaluation-edit-page .supervisor-edit-summary-card .employee-section-action:active,
body.supervisor-evaluation-edit-page .supervisor-section-actions .employee-section-action:active,
body.supervisor-evaluation-edit-page .supervisor-section-actions .button:active {
    transform: scale(0.98) !important;
}

body.supervisor-evaluation-edit-page .supervisor-info-grid,
body.supervisor-evaluation-edit-page .supervisor-section-b-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.95rem 1rem !important;
    padding: 1.05rem 1.15rem !important;
}

body.supervisor-evaluation-edit-page .supervisor-info-grid .full-width,
body.supervisor-evaluation-edit-page .supervisor-section-b-grid .full-width,
body.supervisor-evaluation-edit-page .supervisor-share-field {
    grid-column: 1 / -1 !important;
}

body.supervisor-evaluation-edit-page .supervisor-info-grid label,
body.supervisor-evaluation-edit-page .supervisor-section-b-grid label {
    display: grid !important;
    gap: 0.42rem !important;
    margin: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 0.86rem !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
}

body.supervisor-evaluation-edit-page .supervisor-info-grid label > span,
body.supervisor-evaluation-edit-page .supervisor-section-b-grid label > span {
    color: var(--c073) !important;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.075em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.supervisor-evaluation-edit-page .supervisor-info-grid input,
body.supervisor-evaluation-edit-page .supervisor-info-grid select,
body.supervisor-evaluation-edit-page .supervisor-info-grid textarea,
body.supervisor-evaluation-edit-page .supervisor-section-b-grid input,
body.supervisor-evaluation-edit-page .supervisor-section-b-grid select,
body.supervisor-evaluation-edit-page .supervisor-section-b-grid textarea,
body.supervisor-evaluation-edit-page .supervisor-comment-cell textarea {
    width: 100% !important;
    min-height: 2.55rem !important;
    padding: 0.6rem 0.78rem !important;
    border: 1px solid var(--c026) !important;
    border-radius: 9px !important;
    background: var(--theme-surface-strong) !important;
    color: var(--theme-ink-strong) !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
}

body.supervisor-evaluation-edit-page .supervisor-section-b-grid textarea {
    min-height: 5.7rem !important;
    resize: vertical !important;
}

body.supervisor-evaluation-edit-page .supervisor-comment-cell textarea {
    min-height: 4.6rem !important;
    resize: vertical !important;
}

body.supervisor-evaluation-edit-page .supervisor-info-grid input:focus,
body.supervisor-evaluation-edit-page .supervisor-info-grid select:focus,
body.supervisor-evaluation-edit-page .supervisor-info-grid textarea:focus,
body.supervisor-evaluation-edit-page .supervisor-section-b-grid input:focus,
body.supervisor-evaluation-edit-page .supervisor-section-b-grid select:focus,
body.supervisor-evaluation-edit-page .supervisor-section-b-grid textarea:focus,
body.supervisor-evaluation-edit-page .supervisor-comment-cell textarea:focus {
    border-color: var(--c027) !important;
    box-shadow: 0 0 0 3px var(--c913) !important;
    outline: 2px solid transparent !important;
}

body.supervisor-evaluation-edit-page div.supervisor-share-options {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.65rem !important;
}

body.supervisor-evaluation-edit-page div.supervisor-share-options > div {
    margin: 0 !important;
}

body.supervisor-evaluation-edit-page div.supervisor-share-options label {
    display: inline-flex !important;
    min-height: 2.15rem !important;
    align-items: center !important;
    gap: 0.45rem !important;
    padding: 0.42rem 0.65rem !important;
    border: 1px solid var(--c026) !important;
    border-radius: 999px !important;
    background: var(--c030) !important;
    color: var(--c867) !important;
    font-size: 0.78rem !important;
    font-weight: 750 !important;
}

body.supervisor-evaluation-edit-page .supervisor-assessment-card .table-wrap {
    margin: 1.05rem 1.15rem 1.15rem !important;
    border: 1px solid var(--c079) !important;
    border-radius: 12px !important;
    background: var(--theme-surface-strong) !important;
    overflow: auto !important;
}

body.supervisor-evaluation-edit-page .supervisor-assessment-table {
    width: 100% !important;
    min-width: 72rem !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

body.supervisor-evaluation-edit-page .supervisor-assessment-table th:nth-child(1),
body.supervisor-evaluation-edit-page .supervisor-assessment-table td:nth-child(1) {
    width: 38% !important;
}

body.supervisor-evaluation-edit-page .supervisor-assessment-table th:nth-child(2),
body.supervisor-evaluation-edit-page .supervisor-assessment-table td:nth-child(2) {
    width: 34% !important;
}

body.supervisor-evaluation-edit-page .supervisor-assessment-table th:nth-child(3),
body.supervisor-evaluation-edit-page .supervisor-assessment-table td:nth-child(3) {
    width: 28% !important;
}

body.supervisor-evaluation-edit-page .supervisor-assessment-table thead th {
    padding: 0.72rem 0.85rem !important;
    border-bottom: 1px solid var(--c071) !important;
    background: var(--theme-surface-cool) !important;
    color: var(--c073) !important;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.075em !important;
    line-height: 1.2 !important;
    text-align: left !important;
    text-transform: uppercase !important;
}

body.supervisor-evaluation-edit-page .supervisor-assessment-table tbody td {
    padding: 0.95rem 0.85rem !important;
    border-bottom: 1px solid var(--c018) !important;
    color: var(--theme-ink-strong) !important;
    line-height: 1.4 !important;
    vertical-align: middle !important;
}

body.supervisor-evaluation-edit-page .supervisor-assessment-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

body.supervisor-evaluation-edit-page .supervisor-criteria-cell strong {
    display: block !important;
    margin: 0 0 0.24rem !important;
    color: var(--theme-ink-strong) !important;
    font-size: 0.88rem !important;
    font-weight: 850 !important;
    line-height: 1.25 !important;
}

body.supervisor-evaluation-edit-page .supervisor-criteria-cell small {
    display: block !important;
    max-width: 62ch !important;
    color: var(--c101) !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
}

body.supervisor-evaluation-edit-page div.supervisor-score-options {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(5.1rem, 1fr)) !important;
    gap: 0.4rem !important;
}

body.supervisor-evaluation-edit-page div.supervisor-score-options > div {
    min-width: 0 !important;
    margin: 0 !important;
}

body.supervisor-evaluation-edit-page div.supervisor-score-options label {
    position: relative !important;
    display: flex !important;
    min-height: 3.05rem !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 0.55rem 0.75rem !important;
    border: 1px solid var(--c079) !important;
    border-radius: 10px !important;
    background: var(--c012) !important;
    color: var(--c867) !important;
    cursor: pointer !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

body.supervisor-evaluation-edit-page div.supervisor-score-options label:has(input:checked) {
    border-color: var(--theme-success) !important;
    background: var(--c003) !important;
    color: var(--c004) !important;
}

body.supervisor-evaluation-edit-page div.supervisor-score-options label:has(input:disabled) {
    cursor: not-allowed !important;
    opacity: 0.55 !important;
}

body.supervisor-evaluation-edit-page div.supervisor-score-options input[type="radio"],
body.supervisor-evaluation-edit-page div.supervisor-share-options input[type="radio"] {
    width: 0.9rem !important;
    height: 0.9rem !important;
    min-width: 0.9rem !important;
    min-height: 0.9rem !important;
    margin: 0 !important;
    accent-color: var(--theme-success-strong) !important;
}

body.supervisor-evaluation-edit-page div.supervisor-score-options input[type="radio"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer !important;
    opacity: 0 !important;
}

body.supervisor-evaluation-edit-page div.supervisor-score-options input[type="radio"]:focus,
body.supervisor-evaluation-edit-page div.supervisor-score-options input[type="radio"]:focus-visible {
    outline: 2px solid transparent !important;
    box-shadow: none !important;
}

body.supervisor-evaluation-edit-page div.supervisor-score-options label:has(input:focus-visible) {
    box-shadow: 0 0 0 3px var(--c914) !important;
}

body.supervisor-evaluation-edit-page .supervisor-management-row td {
    padding: 0.65rem 0.85rem !important;
    background: var(--c047) !important;
    color: var(--c048) !important;
    font-size: 0.75rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.045em !important;
    text-transform: uppercase !important;
}

body.supervisor-evaluation-edit-page .supervisor-total-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
    padding: 1.05rem 1.15rem !important;
}

body.supervisor-evaluation-edit-page .supervisor-total-grid article {
    min-height: 5rem !important;
    padding: 0.85rem !important;
    border: 1px solid var(--c079) !important;
    border-radius: 11px !important;
    background: var(--c012) !important;
}

body.supervisor-evaluation-edit-page .supervisor-total-grid span {
    display: block !important;
    margin: 0 0 0.32rem !important;
    color: var(--c073) !important;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.075em !important;
    text-transform: uppercase !important;
}

body.supervisor-evaluation-edit-page .supervisor-total-grid strong {
    display: block !important;
    color: var(--theme-ink-strong) !important;
    font-size: 1.32rem !important;
    font-weight: 850 !important;
    line-height: 1.05 !important;
}

body.supervisor-evaluation-edit-page .supervisor-total-grid small {
    display: block !important;
    margin-top: 0.38rem !important;
    color: var(--c073) !important;
    font-size: 0.74rem !important;
    font-weight: 550 !important;
    line-height: 1.35 !important;
}

body.supervisor-evaluation-edit-page .supervisor-rating-scale {
    margin: 0 1.15rem 1.15rem !important;
    border: 1px solid var(--c079) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

body.supervisor-evaluation-edit-page .supervisor-rating-scale table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

body.supervisor-evaluation-edit-page .supervisor-rating-scale th,
body.supervisor-evaluation-edit-page .supervisor-rating-scale td {
    padding: 0.75rem 0.9rem !important;
    border-bottom: 1px solid var(--c018) !important;
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
    text-align: left !important;
}

body.supervisor-evaluation-edit-page .supervisor-rating-scale tr:last-child th,
body.supervisor-evaluation-edit-page .supervisor-rating-scale tr:last-child td {
    border-bottom: 0 !important;
}

body.supervisor-evaluation-edit-page .supervisor-rating-scale th {
    width: 15rem !important;
    background: var(--theme-surface-cool) !important;
    color: var(--c073) !important;
    font-size: 0.7rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}

body.supervisor-evaluation-edit-page .supervisor-section-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.6rem !important;
    margin: 0 !important;
    padding: 1rem 1.15rem !important;
    border-top: 1px solid var(--c072) !important;
    background: var(--c030) !important;
}

body.supervisor-evaluation-edit-page .supervisor-section-actions .button:not(.button-secondary) {
    border-color: var(--c031) !important;
    background: var(--c031) !important;
    color: var(--theme-surface-strong) !important;
}

body.supervisor-evaluation-edit-page .form-error {
    color: var(--c237) !important;
    font-size: 0.76rem !important;
    font-weight: 650 !important;
}

@media (max-width: 1180px) {
    body.supervisor-evaluation-edit-page .supervisor-evaluation-workspace {
        max-width: none !important;
    }

    body.supervisor-evaluation-edit-page div.supervisor-score-options {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    body.supervisor-evaluation-edit-page:not(.auth-page):not(.login-page) .main-panel > .topbar {
        min-height: 0 !important;
        align-items: stretch !important;
        padding: 1rem !important;
    }

    body.supervisor-evaluation-edit-page .supervisor-form-card > .employee-dashboard-card-head,
    body.supervisor-evaluation-edit-page .supervisor-section-actions {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    body.supervisor-evaluation-edit-page .supervisor-info-grid,
    body.supervisor-evaluation-edit-page .supervisor-section-b-grid,
    body.supervisor-evaluation-edit-page .supervisor-total-grid {
        grid-template-columns: 1fr !important;
    }

    body.supervisor-evaluation-edit-page div.supervisor-score-options {
        grid-template-columns: 1fr !important;
    }

    body.supervisor-evaluation-edit-page .supervisor-section-actions .button,
    body.supervisor-evaluation-edit-page .supervisor-section-actions .employee-section-action,
    body.supervisor-evaluation-edit-page .supervisor-edit-summary-card .employee-section-action {
        width: 100% !important;
    }
}

/* Self evaluation edit/submission final polish */
body.self-evaluation-page .self-evaluation-workspace {
    display: grid !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body.self-evaluation-page .self-evaluation-card {
    border: 1px solid var(--c014) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

body.self-evaluation-page .self-evaluation-card-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    padding: 1rem 1.15rem !important;
    border-bottom: 1px solid var(--c084) !important;
    background: var(--theme-surface-strong) !important;
}

body.self-evaluation-page .self-evaluation-card-head h3 {
    margin: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 1.12rem !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
}

body.self-evaluation-page .self-evaluation-card-head p {
    max-width: 78ch !important;
    margin: 0.3rem 0 0 !important;
    color: var(--c073) !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
}

body.self-evaluation-page .self-evaluation-info-grid {
    display: grid !important;
    grid-template-columns: minmax(14rem, 0.9fr) minmax(14rem, 0.9fr) minmax(16rem, 1fr) minmax(14rem, 1fr) !important;
    gap: 0.85rem !important;
    padding: 0.95rem 1.15rem !important;
    border-bottom: 1px solid var(--c084) !important;
    background: var(--c012) !important;
}

body.self-evaluation-page .self-evaluation-info-grid label {
    display: grid !important;
    align-content: start !important;
    gap: 0.35rem !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body.self-evaluation-page .self-evaluation-result-grid span,
body.self-evaluation-page label span {
    display: block !important;
    margin: 0 !important;
    color: var(--theme-slate-muted) !important;
    font-size: 0.68rem !important;
    font-weight: 650 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.self-evaluation-page .self-evaluation-info-grid strong {
    display: flex !important;
    min-height: 2.55rem !important;
    align-items: center !important;
    padding: 0.62rem 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere !important;
}

body.self-evaluation-page .self-evaluation-info-grid input,
body.self-evaluation-page .self-evaluation-info-grid select,
body.self-evaluation-page .self-evaluation-question textarea {
    width: 100% !important;
    border: 1px solid var(--c091) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    color: var(--theme-ink-strong) !important;
    font: inherit !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

body.self-evaluation-page .self-evaluation-info-grid input,
body.self-evaluation-page .self-evaluation-info-grid select {
    min-height: 2.55rem !important;
    padding: 0.62rem 0.75rem !important;
}

body.self-evaluation-page .self-evaluation-card-head .employee-section-action {
    flex: 0 0 auto !important;
    min-width: 8.8rem !important;
}

body.self-evaluation-page .self-evaluation-info-grid input:focus,
body.self-evaluation-page .self-evaluation-info-grid select:focus,
body.self-evaluation-page .self-evaluation-question textarea:focus {
    border-color: var(--c038) !important;
    outline: 3px solid var(--c425) !important;
    outline-offset: 0 !important;
}

body.self-evaluation-page .self-evaluation-question-list {
    display: grid !important;
    gap: 0 !important;
    padding: 0 !important;
}

body.self-evaluation-page .self-evaluation-question {
    display: grid !important;
    grid-template-columns: minmax(16rem, 0.34fr) minmax(0, 1fr) !important;
    gap: 1rem !important;
    align-items: start !important;
    padding: 1rem 1.15rem !important;
    border-top: 0 !important;
    border-bottom: 1px solid var(--c084) !important;
    background: var(--theme-surface-strong) !important;
}

body.self-evaluation-page .self-evaluation-question:nth-child(even) {
    background: var(--c012) !important;
}

body.self-evaluation-page .self-evaluation-question-label {
    color: var(--theme-ink-muted) !important;
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
}

body.self-evaluation-page .self-evaluation-question textarea {
    min-height: 6rem !important;
    padding: 0.75rem 0.85rem !important;
    line-height: 1.5 !important;
    resize: vertical !important;
}

body.self-evaluation-page .self-evaluation-submit-bar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1rem 1.15rem !important;
    border-top: 0 !important;
    background: var(--theme-surface-cool) !important;
}

body.self-evaluation-page .self-evaluation-declaration {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
    min-width: 0 !important;
    padding: 0 !important;
    color: var(--theme-ink-muted) !important;
    cursor: pointer !important;
}

body.self-evaluation-page .self-evaluation-declaration input[type="checkbox"] {
    flex: 0 0 auto !important;
    display: grid !important;
    width: 1.05rem !important;
    height: 1.05rem !important;
    min-width: 1.05rem !important;
    min-height: 1.05rem !important;
    margin: 0.12rem 0 0 !important;
    place-items: center !important;
    border: 1.5px solid var(--c915) !important;
    border-radius: 4px !important;
    background: var(--theme-surface-strong) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

body.self-evaluation-page .self-evaluation-declaration input[type="checkbox"]:checked {
    border-color: var(--theme-success-strong) !important;
    background: var(--theme-success-strong) !important;
}

body.self-evaluation-page .self-evaluation-declaration input[type="checkbox"]:checked::after {
    content: "" !important;
    width: 0.28rem !important;
    height: 0.5rem !important;
    margin-top: -0.08rem !important;
    border: solid var(--theme-surface-strong) !important;
    border-width: 0 2px 2px 0 !important;
    transform: rotate(45deg) !important;
}

body.self-evaluation-page .self-evaluation-declaration > span {
    color: var(--c073) !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1.45 !important;
    text-transform: none !important;
}

body.self-evaluation-page .self-evaluation-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 0.65rem !important;
}

body.self-evaluation-page .self-evaluation-actions .button,
body.self-evaluation-page .self-evaluation-actions .employee-section-action,
body.self-evaluation-page .self-evaluation-card-head .employee-section-action {
    display: inline-flex !important;
    min-height: 2.4rem !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.58rem 0.9rem !important;
    border-radius: 8px !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    transform: none !important;
}

body.self-evaluation-page .form-error,
body.self-evaluation-page .form-errors {
    color: var(--c247) !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
}

@media (max-width: 1180px) {
    body.self-evaluation-page .self-evaluation-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 820px) {
    body.self-evaluation-page .self-evaluation-card-head,
    body.self-evaluation-page .self-evaluation-question,
    body.self-evaluation-page .self-evaluation-submit-bar {
        grid-template-columns: 1fr !important;
    }

    body.self-evaluation-page .self-evaluation-card-head {
        display: grid !important;
    }
}

@media (max-width: 640px) {
body.self-evaluation-page .self-evaluation-info-grid {
        grid-template-columns: 1fr !important;
    }

    body.self-evaluation-page .self-evaluation-actions,
    body.self-evaluation-page .self-evaluation-actions .button,
    body.self-evaluation-page .self-evaluation-actions .employee-section-action,
    body.self-evaluation-page .self-evaluation-card-head .employee-section-action {
        width: 100% !important;
    }
}

/* Evaluation category comments readability */
body.employee-evaluation-view-page .employee-evaluation-category-comments {
    gap: 0.75rem !important;
}

body.employee-evaluation-view-page .employee-evaluation-comment-list {
    display: grid !important;
    gap: 0.55rem !important;
    min-width: 0 !important;
}

body.employee-evaluation-view-page .employee-evaluation-comment-list > div {
    display: grid !important;
    grid-template-columns: minmax(13rem, 0.34fr) minmax(0, 1fr) !important;
    gap: 0.85rem !important;
    align-items: start !important;
    padding: 0.72rem 0.85rem !important;
    border: 1px solid var(--c014) !important;
    border-radius: 8px !important;
    background: var(--c012) !important;
}

body.employee-evaluation-view-page .employee-evaluation-comment-list strong {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.45rem !important;
    align-items: center !important;
    color: var(--theme-ink-muted) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

body.employee-evaluation-view-page .employee-evaluation-comment-list strong span {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 1.45rem !important;
    padding: 0.16rem 0.48rem !important;
    border: 1px solid var(--c243) !important;
    border-radius: 999px !important;
    background: var(--c030) !important;
    color: var(--theme-ink-strong) !important;
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
}

body.employee-evaluation-view-page .employee-evaluation-comment-list p {
    margin: 0 !important;
    color: var(--c060) !important;
    font-size: 0.86rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
}

@media (max-width: 760px) {
    body.employee-evaluation-view-page .employee-evaluation-comment-list > div {
        grid-template-columns: 1fr !important;
        gap: 0.35rem !important;
    }
}

/* Evaluation submission tracker */
.evaluation-tracker-page {
    display: grid !important;
    gap: 1rem !important;
}

.evaluation-tracker-panel .panel-header {
    align-items: center !important;
}

.evaluation-tracker-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.55rem !important;
    justify-content: flex-end !important;
}

.evaluation-tracker-filter {
    display: grid !important;
    grid-template-columns: minmax(16rem, 1fr) minmax(13rem, 0.28fr) auto !important;
    gap: 0.75rem !important;
    align-items: end !important;
    padding: 0.9rem !important;
    margin-bottom: 0.9rem !important;
    border: 1px solid var(--c014) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-cool) !important;
}

.evaluation-tracker-filter label {
    display: grid !important;
    gap: 0.35rem !important;
}

.evaluation-tracker-filter span {
    color: var(--c073) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

.evaluation-tracker-filter input,
.evaluation-tracker-filter select {
    width: 100% !important;
    min-height: 2.55rem !important;
    padding: 0.6rem 0.75rem !important;
    border: 1px solid var(--c032) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
}

.evaluation-tracker-table td {
    vertical-align: top !important;
}

.evaluation-tracker-table td small {
    display: block !important;
    margin-top: 0.28rem !important;
    color: var(--theme-slate-muted) !important;
    font-size: 0.74rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.evaluation-status-pill {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 1.65rem !important;
    padding: 0.2rem 0.6rem !important;
    border-radius: 999px !important;
    border: 1px solid var(--c916) !important;
    background: var(--c030) !important;
    color: var(--theme-ink-muted) !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
}

.evaluation-status-pill.submitted {
    border-color: var(--c002) !important;
    background: var(--c003) !important;
    color: var(--c004) !important;
}

.evaluation-status-pill.missing {
    border-color: var(--c022) !important;
    background: var(--c086) !important;
    color: var(--c024) !important;
}

@media (max-width: 920px) {
    .evaluation-tracker-filter {
        grid-template-columns: 1fr !important;
    }

    .evaluation-tracker-actions,
    .evaluation-tracker-actions .employee-section-action {
        width: 100% !important;
    }
}

/* Submission tracker final page polish */
body.evaluation-submission-tracker-page .evaluation-tracker-page {
    gap: 1.05rem !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.85rem !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-stats .metric-card {
    min-height: 6.6rem !important;
    padding: 1rem 1.1rem !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-stats .metric-card p {
    margin-bottom: 0.35rem !important;
    color: var(--c073) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-stats .metric-card strong {
    color: var(--theme-ink-strong) !important;
    font-size: 1.65rem !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-stats .metric-card small {
    margin-top: 0.45rem !important;
    color: var(--c073) !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-panel {
    padding: 1.05rem 1.15rem 1.25rem !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-panel .panel-header {
    display: flex !important;
    gap: 1rem !important;
    padding-bottom: 0.85rem !important;
    margin-bottom: 0.85rem !important;
    border-bottom: 1px solid var(--c917) !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-panel .panel-header h3 {
    color: var(--theme-ink-strong) !important;
    font-size: 1rem !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-actions .employee-section-action {
    min-height: 2.2rem !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px !important;
    color: var(--c912) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-decoration: none !important;
    transform: none !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-filter {
    grid-template-columns: minmax(18rem, 1fr) minmax(8rem, 0.2fr) minmax(13rem, 0.28fr) auto !important;
    padding: 0.75rem !important;
    margin-bottom: 0.9rem !important;
    border-color: var(--c014) !important;
    background: var(--c012) !important;
    box-shadow: none !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-filter input,
body.evaluation-submission-tracker-page .evaluation-tracker-filter select {
    min-height: 2.35rem !important;
    border-color: var(--c032) !important;
    color: var(--theme-ink-strong) !important;
    font-size: 0.84rem !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-filter input::placeholder {
    color: var(--theme-slate-muted) !important;
    opacity: 1 !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-filter .button {
    min-height: 2.35rem !important;
    padding-inline: 1rem !important;
    border-radius: 8px !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.05em !important;
    transform: none !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-table {
    border: 1px solid var(--c014) !important;
    border-radius: 8px !important;
    overflow: auto !important;
    background: var(--theme-surface-strong) !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-table table {
    min-width: 66rem !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-table thead th {
    padding: 0.72rem 0.8rem !important;
    border-bottom: 1px solid var(--c918) !important;
    background: var(--theme-surface-cool) !important;
    color: var(--c073) !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.25 !important;
    text-transform: uppercase !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-table tbody td {
    padding: 0.82rem 0.8rem !important;
    border-bottom: 1px solid var(--c115) !important;
    color: var(--c060) !important;
    font-size: 0.84rem !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    text-transform: none !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-table tbody tr:hover td {
    background: var(--c012) !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-table .table-link {
    display: block !important;
    justify-self: start !important;
    width: 100% !important;
    max-width: 100% !important;
    border: 0 !important;
    border-bottom: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    text-transform: none !important;
    text-align: left !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-table .table-link:hover {
    color: var(--c919) !important;
    text-decoration: underline !important;
    text-underline-offset: 0.18rem !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-employee-cell {
    display: grid !important;
    justify-items: start !important;
    gap: 0.18rem !important;
    width: 100% !important;
    min-width: 0 !important;
    text-align: left !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-table td small {
    display: block !important;
    justify-self: start !important;
    width: 100% !important;
    color: var(--c073) !important;
    font-size: 0.74rem !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    text-align: left !important;
}

body.evaluation-submission-tracker-page .evaluation-status-pill {
    min-height: 1.5rem !important;
    padding: 0.16rem 0.52rem !important;
    border-radius: 999px !important;
    font-size: 0.7rem !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-table .employee-section-action {
    min-height: 2.1rem !important;
    padding: 0.46rem 0.72rem !important;
    border-radius: 8px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    transform: none !important;
}

@media (max-width: 1180px) {
    body.evaluation-submission-tracker-page .evaluation-tracker-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    body.evaluation-submission-tracker-page .evaluation-tracker-stats,
    body.evaluation-submission-tracker-page .evaluation-tracker-filter {
        grid-template-columns: 1fr !important;
    }

    body.evaluation-submission-tracker-page .evaluation-tracker-panel .panel-header {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    body.evaluation-submission-tracker-page .evaluation-tracker-actions,
    body.evaluation-submission-tracker-page .evaluation-tracker-actions .employee-section-action {
        width: 100% !important;
    }
}

/* Performance center final table polish */
body.performance-center-page-body .performance-center-page {
    gap: 1rem !important;
}

body.performance-center-page-body .performance-center-page .table-panel {
    padding: 1rem !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

body.performance-center-page-body .performance-center-page .table-panel .panel-header {
    padding-bottom: 0.75rem !important;
    margin-bottom: 0.75rem !important;
    border-bottom: 1px solid var(--c917) !important;
}

body.performance-center-page-body .performance-center-page .table-panel .panel-header h3 {
    color: var(--theme-ink-strong) !important;
    font-size: 1rem !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
}

body.performance-center-page-body .performance-center-page .table-wrap {
    border: 1px solid var(--c014) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    overflow: auto !important;
}

body.performance-center-page-body .performance-center-page table {
    min-width: 48rem !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

body.performance-center-page-body .performance-center-page th {
    padding: 0.7rem 0.75rem !important;
    border-bottom: 1px solid var(--c918) !important;
    background: var(--theme-surface-cool) !important;
    color: var(--c073) !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.25 !important;
    text-transform: uppercase !important;
}

body.performance-center-page-body .performance-center-page td {
    padding: 0.78rem 0.75rem !important;
    border-bottom: 1px solid var(--c115) !important;
    color: var(--c060) !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    vertical-align: top !important;
}

body.performance-center-page-body .performance-center-page tbody tr:last-child td {
    border-bottom: 0 !important;
}

body.performance-center-page-body .performance-center-page tbody tr:hover td {
    background: var(--c012) !important;
}

body.performance-center-page-body .performance-center-page .table-link {
    display: inline !important;
    width: auto !important;
    max-width: max-content !important;
    border: 0 !important;
    border-bottom: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 0.82rem !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    text-transform: none !important;
}

body.performance-center-page-body .performance-center-page .table-link:hover,
body.performance-center-page-body .performance-center-page .table-link:focus-visible {
    color: var(--c919) !important;
    text-decoration: underline !important;
    text-underline-offset: 0.18rem !important;
}

body.performance-center-page-body .performance-center-page td small {
    display: block !important;
    margin-top: 0.22rem !important;
    color: var(--c073) !important;
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
    text-transform: none !important;
}

body.performance-center-page-body .performance-center-page .pill {
    min-height: 1.5rem !important;
    padding: 0.16rem 0.52rem !important;
    border-radius: 999px !important;
    font-size: 0.7rem !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
    line-height: 1.1 !important;
}

body.performance-center-page-body .performance-center-page .employee-section-action {
    min-height: 2.05rem !important;
    padding: 0.44rem 0.7rem !important;
    border-radius: 8px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    line-height: 1 !important;
    transform: none !important;
}

@media (max-width: 1180px) {
    body.performance-center-page-body .performance-center-page .pro-two-column {
        grid-template-columns: 1fr !important;
    }
}

/* Final mobile drawer stack: when open, the sidebar owns the screen on every page. */
@media (max-width: 1180px) {
    body:not(.sidebar-collapsed) .sidebar {
        z-index: 1400 !important;
    }

    body:not(.sidebar-collapsed) .sidebar-overlay {
        z-index: 1300 !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    body:not(.sidebar-collapsed) .main-panel > .topbar,
    body:not(.sidebar-collapsed) .main-panel > .topbar .topbar-tools,
    body:not(.sidebar-collapsed) .main-panel > .topbar .notification-menu,
    body:not(.sidebar-collapsed) .main-panel > .topbar .notification-menu-button,
    body:not(.sidebar-collapsed) .main-panel > .topbar .notification-popover {
        z-index: 1 !important;
    }

    body:not(.sidebar-collapsed) .main-panel > .topbar .notification-menu {
        pointer-events: none !important;
    }

    body:not(.sidebar-collapsed) .main-panel > .topbar .notification-popover {
        display: none !important;
    }
}

/* Social feed upload selection polish */
.social-feed-page .social-upload-box {
    grid-template-columns: minmax(7rem, auto) minmax(0, 1fr) auto !important;
}

.social-feed-page .social-upload-status {
    grid-column: 2 / 3 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    color: var(--c073) !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 560 !important;
    line-height: 1.35 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.social-feed-page .social-upload-preview {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)) !important;
    gap: 10px !important;
}

.social-feed-page .social-upload-preview-item {
    position: relative !important;
    display: grid !important;
    gap: 7px !important;
    min-width: 0 !important;
    padding: 8px !important;
    border: 1px solid var(--c001) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
}

.social-feed-page .social-upload-preview-item img {
    width: 100% !important;
    aspect-ratio: 1.15 !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: var(--theme-surface-cool) !important;
    object-fit: cover !important;
}

.social-feed-page .social-upload-preview-meta {
    min-width: 0 !important;
    overflow: hidden !important;
    color: var(--c920) !important;
    font-size: 12px !important;
    font-weight: 620 !important;
    line-height: 1.25 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.social-feed-page .social-upload-remove {
    min-height: 30px !important;
    padding: 0 10px !important;
    border: 1px solid var(--c001) !important;
    border-radius: 7px !important;
    background: var(--theme-surface-cool) !important;
    color: var(--theme-ink-muted) !important;
    cursor: pointer !important;
    font-size: 11px !important;
    font-weight: 740 !important;
    letter-spacing: 0.02em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

.social-feed-page .social-upload-remove:hover,
.social-feed-page .social-upload-remove:focus-visible {
    border-color: var(--c921) !important;
    background: var(--c724) !important;
    color: var(--c024) !important;
    outline: 0 !important;
}

@media (max-width: 640px) {
    .social-feed-page .social-upload-box {
        grid-template-columns: 1fr !important;
    }

    .social-feed-page .social-upload-box::after,
    .social-feed-page .social-upload-status {
        grid-column: auto !important;
        width: 100% !important;
    }

    .social-feed-page .social-upload-box small,
    .social-feed-page .social-upload-status {
        text-align: left !important;
        white-space: normal !important;
    }
}


/* Manual punch B.S. date selector */
.manual-punch-date-field {
    position: relative;
    z-index: 2;
}

.manual-punch-date-control {
    position: relative;
}

.manual-punch-date-control > input {
    padding-right: 3.25rem !important;
}

.manual-punch-calendar-toggle {
    position: absolute;
    top: 50%;
    right: 0.4rem;
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--c073);
    cursor: pointer;
}

.manual-punch-calendar-toggle:hover,
.manual-punch-calendar-toggle[aria-expanded="true"] {
    background: var(--c438);
    color: var(--c430);
}

.manual-punch-calendar-toggle:focus-visible,
.manual-punch-calendar button:focus-visible {
    outline: 3px solid var(--c922);
    outline-offset: 2px;
}

.manual-punch-calendar-toggle svg,
.manual-punch-calendar-head svg {
    width: 1.15rem;
    height: 1.15rem;
}

.manual-punch-calendar {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 20;
    width: min(21rem, calc(100vw - 3rem));
    padding: 0.8rem;
    border: 1px solid var(--c026);
    border-radius: 8px;
    background: var(--theme-surface-strong);
    box-shadow: none;
}

.manual-punch-calendar[hidden] {
    display: none;
}

.manual-punch-calendar-head,
.manual-punch-calendar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.manual-punch-calendar-head {
    margin-bottom: 0.65rem;
}

.manual-punch-calendar-head strong {
    color: var(--theme-ink-strong);
    font-size: 0.88rem;
}

.manual-punch-calendar-head button {
    display: grid;
    width: 2rem;
    height: 2rem;
    padding: 0;
    place-items: center;
    border: 1px solid var(--c014);
    border-radius: 6px;
    background: var(--theme-surface-strong);
    color: var(--theme-ink-muted);
    cursor: pointer;
}

.manual-punch-calendar-head button:hover:not(:disabled) {
    background: var(--c337);
    border-color: var(--c923);
}

.manual-punch-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
}

.manual-punch-weekday {
    display: grid;
    min-height: 1.75rem;
    place-items: center;
    color: var(--theme-slate-muted);
    font-size: 0.68rem;
    font-weight: 700;
}

.manual-punch-calendar-spacer,
.manual-punch-calendar-grid button {
    aspect-ratio: 1;
    min-width: 0;
}

.manual-punch-calendar-grid button {
    display: grid;
    padding: 0;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--c215);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 650;
    cursor: pointer;
}

.manual-punch-calendar-grid button:hover:not(:disabled) {
    border-color: var(--c026);
    background: var(--c337);
}

.manual-punch-calendar-grid button.is-selected {
    border-color: var(--c092);
    background: var(--c092);
    color: var(--theme-surface-strong);
}

.manual-punch-calendar-grid button.is-today:not(.is-selected) {
    border-color: var(--theme-success-strong);
    color: var(--c004);
}

.manual-punch-calendar button:disabled {
    color: var(--c435);
    cursor: not-allowed;
    opacity: 0.55;
}

.manual-punch-calendar-footer {
    margin-top: 0.7rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--theme-border);
    color: var(--theme-slate-muted);
    font-size: 0.72rem;
    font-weight: 650;
}

.manual-punch-calendar-footer button {
    min-height: 2rem;
    padding: 0 0.7rem;
    border: 1px solid var(--c436);
    border-radius: 6px;
    background: var(--theme-surface-strong);
    color: var(--c430);
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.manual-punch-calendar-footer button:hover:not(:disabled) {
    background: var(--c438);
}

.manual-punch-date-field .field-help {
    color: var(--c073);
    font-size: 0.78rem;
    line-height: 1.45;
}

@media (max-width: 520px) {
    .manual-punch-calendar {
        right: auto;
        left: 0;
        width: min(21rem, calc(100vw - 2.5rem));
    }
}

/* Keep supervisor review employee names aligned with Submission Tracker */
body.supervisor-evaluation-page .supervisor-review-table .supervisor-review-employee .table-link,
body.supervisor-evaluation-page .supervisor-review-table tbody td:first-child .table-link {
    color: var(--theme-ink-strong) !important;
    font-size: 0.84rem !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-thickness: 0 !important;
    text-underline-offset: 0 !important;
    text-transform: none !important;
}

body.supervisor-evaluation-page .supervisor-review-table .supervisor-review-employee .table-link:hover,
body.supervisor-evaluation-page .supervisor-review-table .supervisor-review-employee .table-link:focus-visible,
body.supervisor-evaluation-page .supervisor-review-table tbody td:first-child .table-link:hover,
body.supervisor-evaluation-page .supervisor-review-table tbody td:first-child .table-link:focus-visible {
    color: var(--c919) !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-thickness: 0 !important;
    text-underline-offset: 0 !important;
}

body.supervisor-evaluation-page .supervisor-review-table .supervisor-review-employee small {
    color: var(--c073) !important;
    font-size: 0.74rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* Performance Center aligned to tracker/reviews reference */
body.performance-center-page-body .main-panel > .topbar {
    min-height: 92px !important;
    padding: 1.1rem 1.25rem !important;
    border: 1px solid var(--c071) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

body.performance-center-page-body .main-panel > .topbar .topbar-copy .eyebrow {
    color: var(--c073) !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
}

body.performance-center-page-body .main-panel > .topbar h1 {
    margin-top: 0.25rem !important;
    color: var(--c055) !important;
    font-size: 1.32rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

body.performance-center-page-body .performance-center-page {
    display: grid !important;
    gap: 1rem !important;
}

body.performance-center-page-body .performance-center-page .dashboard-stats {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.9rem !important;
    margin: 0 !important;
}

body.performance-center-page-body .performance-center-page .metric-card {
    min-height: 6.6rem !important;
    padding: 1.05rem 1.15rem !important;
    border: 1px solid var(--c014) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body.performance-center-page-body .performance-center-page .metric-card p {
    margin: 0 0 0.35rem !important;
    color: var(--c073) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.performance-center-page-body .performance-center-page .metric-card strong {
    display: block !important;
    color: var(--c082) !important;
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.05 !important;
}

body.performance-center-page-body .performance-center-page .metric-card small {
    display: block !important;
    margin-top: 0.5rem !important;
    color: var(--c426) !important;
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
}

body.performance-center-page-body .performance-center-workflow-grid {
    grid-template-columns: minmax(27rem, 0.92fr) minmax(24rem, 1.08fr) !important;
    gap: 1rem !important;
}

body.performance-center-page-body .performance-center-table-grid {
    grid-template-columns: minmax(35rem, 1fr) minmax(35rem, 1fr) !important;
    align-items: start !important;
    gap: 1rem !important;
}

body.performance-center-page-body .performance-center-single-table-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
}

body.performance-center-page-body .performance-center-page .panel {
    border: 1px solid var(--c014) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body.performance-center-page-body .performance-center-form-panel,
body.performance-center-page-body .performance-center-workflow-panel {
    padding: 1.25rem !important;
}

body.performance-center-page-body .performance-center-page .panel-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    margin: 0 0 0.9rem !important;
    padding: 0 0 0.85rem !important;
    border-bottom: 1px solid var(--c917) !important;
}

body.performance-center-page-body .performance-center-page .panel-header .eyebrow {
    margin: 0 0 0.35rem !important;
    color: var(--c073) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.performance-center-page-body .performance-center-page .panel-header h3 {
    margin: 0 !important;
    color: var(--c082) !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
}

body.performance-center-page-body .performance-center-page .pro-form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.9rem !important;
}

body.performance-center-page-body .performance-center-page .field-group {
    display: grid !important;
    gap: 0.4rem !important;
}

body.performance-center-page-body .performance-center-page .field-group label {
    color: var(--c073) !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.performance-center-page-body .performance-center-page .field-group input,
body.performance-center-page-body .performance-center-page .field-group select,
body.performance-center-page-body .performance-center-page .field-group textarea {
    width: 100% !important;
    min-height: 2.35rem !important;
    border: 1px solid var(--c032) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    color: var(--theme-ink-strong) !important;
    font-size: 0.84rem !important;
}

body.performance-center-page-body .performance-center-page .field-group textarea {
    min-height: 5.8rem !important;
    resize: vertical !important;
}

body.performance-center-page-body .performance-center-page .form-actions .button {
    min-height: 2.35rem !important;
    padding-inline: 1rem !important;
    border-radius: 8px !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
    transform: none !important;
}

body.performance-center-page-body .performance-center-workflow-panel .side-list {
    display: grid !important;
    gap: 0.65rem !important;
}

body.performance-center-page-body .performance-center-workflow-panel .side-list-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 0.85rem !important;
    padding: 0.8rem 0.9rem !important;
    border: 1px solid var(--c014) !important;
    border-radius: 8px !important;
    background: var(--c012) !important;
    color: var(--theme-ink-strong) !important;
    text-decoration: none !important;
    transform: none !important;
}

body.performance-center-page-body .performance-center-workflow-panel .side-list-item:hover,
body.performance-center-page-body .performance-center-workflow-panel .side-list-item:focus-visible {
    border-color: var(--c924) !important;
    background: var(--theme-surface-cool) !important;
    box-shadow: none !important;
}

body.performance-center-page-body .performance-center-workflow-panel .side-list-item strong {
    color: var(--theme-ink-strong) !important;
    font-size: 0.88rem !important;
    font-weight: 750 !important;
    letter-spacing: 0 !important;
}

body.performance-center-page-body .performance-center-workflow-panel .side-list-item small {
    display: block !important;
    margin-top: 0.22rem !important;
    color: var(--c073) !important;
    font-size: 0.76rem !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
}

body.performance-center-page-body .performance-center-page .table-panel {
    padding: 1.25rem !important;
}

body.performance-center-page-body .performance-center-page .table-wrap {
    border: 1px solid var(--c014) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    overflow: auto !important;
}

body.performance-center-page-body .performance-center-page table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

body.performance-center-page-body .performance-center-goals-panel th:nth-child(1),
body.performance-center-page-body .performance-center-goals-panel td:nth-child(1) {
    width: 19% !important;
}

body.performance-center-page-body .performance-center-goals-panel th:nth-child(2),
body.performance-center-page-body .performance-center-goals-panel td:nth-child(2) {
    width: 42% !important;
}

body.performance-center-page-body .performance-center-goals-panel th:nth-child(3),
body.performance-center-page-body .performance-center-goals-panel td:nth-child(3) {
    width: 13% !important;
}

body.performance-center-page-body .performance-center-goals-panel th:nth-child(4),
body.performance-center-page-body .performance-center-goals-panel td:nth-child(4),
body.performance-center-page-body .performance-center-goals-panel th:nth-child(5),
body.performance-center-page-body .performance-center-goals-panel td:nth-child(5),
body.performance-center-page-body .performance-center-goals-panel th:nth-child(6),
body.performance-center-page-body .performance-center-goals-panel td:nth-child(6) {
    width: 8.6% !important;
}

body.performance-center-page-body .performance-center-reviews-panel th:nth-child(1),
body.performance-center-page-body .performance-center-reviews-panel td:nth-child(1) {
    width: 24% !important;
}

body.performance-center-page-body .performance-center-reviews-panel th:nth-child(2),
body.performance-center-page-body .performance-center-reviews-panel td:nth-child(2) {
    width: 28% !important;
}

body.performance-center-page-body .performance-center-reviews-panel th:nth-child(3),
body.performance-center-page-body .performance-center-reviews-panel td:nth-child(3) {
    width: 15% !important;
}

body.performance-center-page-body .performance-center-reviews-panel th:nth-child(4),
body.performance-center-page-body .performance-center-reviews-panel td:nth-child(4) {
    width: 22% !important;
}

body.performance-center-page-body .performance-center-reviews-panel th:nth-child(5),
body.performance-center-page-body .performance-center-reviews-panel td:nth-child(5) {
    width: 11% !important;
}

body.performance-center-page-body .performance-center-page th {
    padding: 0.72rem 0.8rem !important;
    border-bottom: 1px solid var(--c918) !important;
    background: var(--theme-surface-cool) !important;
    color: var(--c073) !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.25 !important;
    text-transform: uppercase !important;
}

body.performance-center-page-body .performance-center-page td {
    padding: 0.82rem 0.8rem !important;
    border-bottom: 1px solid var(--c115) !important;
    color: var(--c060) !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    vertical-align: middle !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}

body.performance-center-page-body .performance-center-page .table-link,
body.performance-center-page-body .performance-center-page .table-link:hover,
body.performance-center-page-body .performance-center-page .table-link:focus-visible {
    border: 0 !important;
    border-bottom: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 0.84rem !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    text-transform: none !important;
}

body.performance-center-page-body .performance-center-page .table-link:hover,
body.performance-center-page-body .performance-center-page .table-link:focus-visible {
    color: var(--c919) !important;
}

body.performance-center-page-body .performance-center-page td small {
    display: block !important;
    margin-top: 0.22rem !important;
    color: var(--c073) !important;
    font-size: 0.72rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
    text-transform: none !important;
}

body.performance-center-page-body .performance-center-page .pill {
    display: inline-flex !important;
    min-height: 1.5rem !important;
    align-items: center !important;
    padding: 0.16rem 0.52rem !important;
    border: 1px solid var(--c026) !important;
    border-radius: 999px !important;
    background: var(--c157) !important;
    color: var(--c925) !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.1 !important;
    white-space: normal !important;
}

body.performance-center-page-body .performance-center-page .employee-section-action {
    display: inline-flex !important;
    min-height: 2.1rem !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.46rem 0.72rem !important;
    border-radius: 8px !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transform: none !important;
}

@media (max-width: 1280px) {
    body.performance-center-page-body .performance-center-table-grid,
    body.performance-center-page-body .performance-center-workflow-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 1180px) {
    body.performance-center-page-body .performance-center-page .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    body.performance-center-page-body .performance-center-page .dashboard-stats,
    body.performance-center-page-body .performance-center-page .pro-form-grid {
        grid-template-columns: 1fr !important;
    }

    body.performance-center-page-body .performance-center-page .panel-header {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    body.performance-center-page-body .performance-center-page table {
        min-width: 42rem !important;
    }
}


/* Manual punch queue: compact approval table with clear row actions. */
body:has(.manual-punch-page) .main-panel > .manual-punch-page,
body:has(.manual-punch-page) .messages {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
}

.manual-punch-page {
    width: 100% !important;
    padding: 22px 24px !important;
    border: 1px solid var(--c014) !important;
    border-radius: 14px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

.manual-punch-page .panel-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 18px !important;
    margin-bottom: 20px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid var(--theme-border) !important;
}

.manual-punch-page .panel-header .eyebrow {
    margin: 0 0 7px !important;
    color: var(--c088) !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.07em !important;
    line-height: 1.25 !important;
    text-transform: uppercase !important;
}

.manual-punch-page .panel-header h3 {
    color: var(--theme-ink-strong) !important;
    font-size: 1.08rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
}

.manual-punch-page .button-row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 10px !important;
}

.manual-punch-page .button-row .button,
.manual-punch-page .button-row .pill {
    min-height: 40px !important;
    align-items: center !important;
    border-radius: 8px !important;
    padding: 0.62rem 1.08rem !important;
    font-size: 0.72rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.04em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

.manual-punch-page .button-row .pill {
    display: inline-flex !important;
    border: 1px solid var(--c008) !important;
    background: var(--c009) !important;
    color: var(--c010) !important;
}

.manual-punch-page .table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    border: 1px solid var(--c014) !important;
    border-radius: 12px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

.manual-punch-empty-note {
    margin: -6px 0 16px !important;
    color: var(--c088) !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
}

.manual-punch-history-list {
    margin-top: 18px !important;
}

.manual-punch-table {
    width: 100% !important;
    min-width: 940px !important;
    border-collapse: collapse !important;
}

.manual-punch-table th,
.manual-punch-table td {
    padding: 0.9rem 0.95rem !important;
    border-bottom: 1px solid var(--c016) !important;
    color: var(--theme-ink-strong) !important;
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    text-align: left !important;
    vertical-align: middle !important;
}

.manual-punch-table th {
    background: var(--theme-surface-cool) !important;
    color: var(--c088) !important;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.07em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

.manual-punch-table tbody tr {
    transition: background-color 180ms ease;
}

.manual-punch-table tbody tr:hover {
    background: var(--c030);
}

.manual-punch-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.manual-punch-table td strong {
    color: var(--theme-ink-strong) !important;
    font-size: 0.84rem !important;
    font-weight: 800 !important;
}

.manual-punch-status,
.manual-punch-time {
    display: inline-grid !important;
    gap: 5px !important;
    min-width: 0;
}

.manual-punch-status {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 7px !important;
}

.manual-punch-status .pill {
    min-height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.35rem 0.66rem !important;
    border: 1px solid var(--c002) !important;
    border-radius: 999px !important;
    background: var(--c003) !important;
    color: var(--c004) !important;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.manual-punch-status .muted-copy,
.manual-punch-table .muted-copy,
.manual-punch-time-note {
    color: var(--c073) !important;
    font-size: 0.78rem !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
}

.manual-punch-time > span:first-child:not(.manual-punch-time-note) {
    color: var(--theme-ink-strong) !important;
    font-weight: 800 !important;
}

.manual-punch-actions {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
}

.manual-punch-actions .employee-section-action,
.manual-punch-actions .manual-punch-action-state,
.manual-punch-actions .table-link,
.manual-punch-actions .button-link {
    min-height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0.46rem 0.72rem !important;
    border: 1px solid var(--c026) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    color: var(--c087) !important;
    box-shadow: none !important;
    cursor: pointer;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.05em !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
}

.manual-punch-actions .manual-punch-action-state {
    border-color: var(--c002) !important;
    background: var(--c003) !important;
    color: var(--c004) !important;
    cursor: default !important;
}

.manual-punch-actions .employee-section-action:hover,
.manual-punch-actions .employee-section-action:focus-visible,
.manual-punch-actions .table-link:hover,
.manual-punch-actions .table-link:focus-visible,
.manual-punch-actions .button-link:hover,
.manual-punch-actions .button-link:focus-visible {
    border-color: var(--c038) !important;
    background: var(--c006) !important;
    color: var(--c007) !important;
    outline: 2px solid transparent !important;
}

.manual-punch-actions form {
    margin: 0 !important;
}

.manual-punch-table .empty-cell {
    padding: 1.35rem !important;
    background: var(--c030) !important;
    color: var(--c088) !important;
    font-size: 0.84rem !important;
    font-weight: 750 !important;
    text-align: center !important;
}

@media (max-width: 760px) {
    .manual-punch-page {
        padding: 18px !important;
    }

    .manual-punch-page .panel-header {
        display: grid !important;
    }

    .manual-punch-page .button-row {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        justify-content: stretch !important;
    }

    .manual-punch-page .button-row .button,
    .manual-punch-page .button-row .pill {
        width: 100%;
        justify-content: center !important;
    }

}

@media (max-width: 560px) {
    .manual-punch-page .button-row {
        grid-template-columns: 1fr !important;
    }
}

/* Manual punch queue final repair: explicit states and primary accept action. */
.manual-punch-table {
    table-layout: fixed !important;
}

.manual-punch-table th:nth-child(1),
.manual-punch-table td:nth-child(1) {
    width: 17%;
}

.manual-punch-table th:nth-child(2),
.manual-punch-table td:nth-child(2) {
    width: 9.5rem;
}

.manual-punch-table th:nth-child(3),
.manual-punch-table td:nth-child(3) {
    width: 13%;
}

.manual-punch-table th:nth-child(4),
.manual-punch-table td:nth-child(4) {
    width: 22%;
}

.manual-punch-table th:nth-child(5),
.manual-punch-table td:nth-child(5) {
    width: 16%;
}

.manual-punch-table th:nth-child(6),
.manual-punch-table td:nth-child(6) {
    width: 22%;
}

.manual-punch-row td:first-child strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manual-punch-status .pill.status-pending {
    border-color: var(--c008) !important;
    background: var(--c009) !important;
    color: var(--c010) !important;
}

.manual-punch-status .pill.status-approved {
    border-color: var(--c002) !important;
    background: var(--c003) !important;
    color: var(--c004) !important;
}

.manual-punch-status .pill.status-rejected,
.manual-punch-status .pill.status-cancelled,
.manual-punch-status .pill.status-voided {
    border-color: var(--c022) !important;
    background: var(--c023) !important;
    color: var(--c024) !important;
}

.manual-punch-actions .manual-punch-action-accept {
    border-color: var(--c058) !important;
    background: var(--c058) !important;
    color: var(--theme-surface-strong) !important;
}

.manual-punch-actions .manual-punch-action-accept:hover,
.manual-punch-actions .manual-punch-action-accept:focus-visible {
    border-color: var(--c926) !important;
    background: var(--c926) !important;
    color: var(--theme-surface-strong) !important;
}

.manual-punch-row-pending {
    background: var(--c286);
}

.manual-punch-row-pending:hover {
    background: var(--c927) !important;
}

/* Manual punch queue action polish: badge accepted state and stable row rhythm. */
body:has(.manual-punch-page) .manual-punch-table th,
body:has(.manual-punch-page) .manual-punch-table td {
    padding: 0.82rem 0.9rem !important;
}

body:has(.manual-punch-page) .manual-punch-status {
    width: max-content !important;
    min-width: 82px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    align-items: center !important;
    gap: 6px !important;
}

body:has(.manual-punch-page) .manual-punch-status .muted-copy {
    display: block !important;
    max-width: 7rem !important;
    padding-left: 0 !important;
    color: var(--c928) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

body:has(.manual-punch-page) .manual-punch-status .pill {
    min-width: 72px !important;
    min-height: 30px !important;
    padding: 0.38rem 0.68rem !important;
    border-radius: 999px !important;
    font-size: 0.7rem !important;
    font-weight: 850 !important;
    line-height: 1 !important;
}

body:has(.manual-punch-page) .manual-punch-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    min-width: 0 !important;
}

body:has(.manual-punch-page) .manual-punch-actions .employee-section-action,
body:has(.manual-punch-page) .manual-punch-actions .manual-punch-action-state,
body:has(.manual-punch-page) .manual-punch-actions .table-link,
body:has(.manual-punch-page) .manual-punch-actions .button-link {
    min-height: 36px !important;
    flex: 0 0 auto !important;
    border-radius: 8px !important;
    padding: 0.52rem 0.72rem !important;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.04em !important;
}

body:has(.manual-punch-page) .manual-punch-actions .manual-punch-action-state,
body:has(.manual-punch-page) .manual-punch-actions .pill.manual-punch-action-state {
    border-color: var(--c002) !important;
    background: var(--c003) !important;
    color: var(--c004) !important;
    text-transform: uppercase !important;
}

body:has(.manual-punch-page) .manual-punch-row-approved .manual-punch-actions {
    grid-template-columns: auto auto auto auto !important;
}

@media (max-width: 1180px) {
    body:has(.manual-punch-page) .manual-punch-actions {
        flex-wrap: wrap !important;
    }
}


/* Manual punch history: make the audit record readable as a task surface. */
body:has(.manual-punch-history-page) .main-panel > .manual-punch-history-page,
body:has(.manual-punch-history-page) .messages {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
}

.manual-punch-history-page {
    display: grid !important;
    gap: 18px !important;
    padding: 0 0 48px !important;
}

.manual-punch-history-page .panel {
    width: 100% !important;
    padding: 22px 24px !important;
    border: 1px solid var(--c014) !important;
    border-radius: 14px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

.manual-punch-history-page .panel-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 18px !important;
    margin-bottom: 20px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid var(--theme-border) !important;
}

.manual-punch-history-page .panel-header .eyebrow {
    margin: 0 0 7px !important;
    color: var(--c088) !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.07em !important;
    line-height: 1.25 !important;
    text-transform: uppercase !important;
}

.manual-punch-history-page .panel-header h3 {
    color: var(--theme-ink-strong) !important;
    font-size: 1.08rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
    text-wrap: balance;
}

.manual-punch-history-title h3 span {
    color: var(--theme-slate) !important;
    font-weight: 750 !important;
}

.manual-punch-history-actions {
    display: flex !important;
    flex: 0 0 auto;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 12px !important;
}

.manual-punch-history-actions .button {
    min-height: 40px !important;
    align-items: center !important;
    border-radius: 8px !important;
    padding: 0.64rem 1.08rem !important;
    font-size: 0.72rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.04em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

.manual-punch-history-actions .button:not(.button-secondary):not(.secondary) {
    border-color: var(--c058) !important;
    background: var(--c058) !important;
    color: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

.manual-punch-history-actions .button:not(.button-secondary):not(.secondary):hover,
.manual-punch-history-actions .button:not(.button-secondary):not(.secondary):focus-visible {
    border-color: var(--c926) !important;
    background: var(--c926) !important;
}

.manual-punch-history-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.manual-punch-history-grid article {
    min-width: 0;
    min-height: 104px;
    display: grid !important;
    align-content: start !important;
    gap: 8px !important;
    padding: 16px !important;
    border: 1px solid var(--c014) !important;
    border-radius: 12px !important;
    background: var(--c030) !important;
}

.manual-punch-history-grid article > span {
    color: var(--c088) !important;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.07em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

.manual-punch-history-grid article > strong {
    min-width: 0;
    color: var(--theme-ink-strong) !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere;
}

.manual-punch-history-grid article > small {
    color: var(--c073) !important;
    font-size: 0.78rem !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
}

.manual-punch-history-status {
    border-color: var(--c002) !important;
    background: var(--c003) !important;
}

.manual-punch-history-status strong {
    color: var(--c004) !important;
}

.manual-punch-history-wide {
    grid-column: span 2;
}

.manual-punch-history-audit .panel-header {
    margin-bottom: 18px !important;
}

.manual-punch-history-audit .table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    border: 1px solid var(--c014) !important;
    border-radius: 12px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

.manual-punch-history-table {
    width: 100% !important;
    min-width: 1080px !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
}

.manual-punch-history-table th:nth-child(1),
.manual-punch-history-table td:nth-child(1) {
    width: 88px;
}

.manual-punch-history-table th:nth-child(2),
.manual-punch-history-table td:nth-child(2) {
    width: 92px;
}

.manual-punch-history-table th:nth-child(3),
.manual-punch-history-table td:nth-child(3) {
    width: 76px;
}

.manual-punch-history-table th:nth-child(4),
.manual-punch-history-table td:nth-child(4) {
    width: 88px;
}

.manual-punch-history-table th:nth-child(5),
.manual-punch-history-table td:nth-child(5),
.manual-punch-history-table th:nth-child(6),
.manual-punch-history-table td:nth-child(6) {
    width: calc((100% - 344px) / 2);
}

.manual-punch-history-table th,
.manual-punch-history-table td {
    padding: 0.8rem 0.9rem !important;
    border-bottom: 1px solid var(--c016) !important;
    color: var(--theme-ink-strong) !important;
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    text-align: left !important;
    vertical-align: top !important;
}

.manual-punch-history-table th {
    background: var(--theme-surface-cool) !important;
    color: var(--c088) !important;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.07em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

.manual-punch-history-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.manual-punch-audit-snapshot {
    display: grid;
    gap: 6px;
    min-width: 0;
    margin: 0;
    padding: 0.65rem;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background: var(--theme-surface-cool);
}

.manual-punch-audit-snapshot div {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
}

.manual-punch-audit-snapshot dt,
.manual-punch-audit-snapshot dd {
    min-width: 0;
    margin: 0;
    line-height: 1.35;
}

.manual-punch-audit-snapshot dt {
    color: var(--c088);
    font-size: 0.66rem;
    font-weight: 850;
    text-transform: uppercase;
}

.manual-punch-audit-snapshot dd {
    color: var(--theme-ink-muted);
    font-size: 0.76rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.manual-punch-history-table .empty-cell {
    padding: 1.35rem !important;
    background: var(--c030) !important;
    color: var(--c088) !important;
    font-size: 0.84rem !important;
    font-weight: 750 !important;
    text-align: center !important;
}

@media (max-width: 980px) {
    .manual-punch-history-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .manual-punch-history-page .panel {
        padding: 18px !important;
    }

    .manual-punch-history-page .panel-header {
        display: grid !important;
    }

    .manual-punch-history-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        justify-content: stretch !important;
    }

    .manual-punch-history-actions .button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .manual-punch-history-grid,
    .manual-punch-history-actions {
        grid-template-columns: 1fr !important;
    }

    .manual-punch-history-wide {
        grid-column: auto;
    }

    .manual-punch-audit-snapshot div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

/* Manual punch history audit polish: readable comparison ledger. */
body:has(.manual-punch-history-page) .manual-punch-history-audit {
    padding: 20px !important;
}

body:has(.manual-punch-history-page) .manual-punch-history-audit .table-wrap {
    overflow-x: auto !important;
    border-radius: 12px !important;
}

body:has(.manual-punch-history-page) .manual-punch-history-table {
    min-width: 1180px !important;
    table-layout: fixed !important;
}

body:has(.manual-punch-history-page) .manual-punch-history-table th,
body:has(.manual-punch-history-page) .manual-punch-history-table td {
    padding: 0.82rem 0.9rem !important;
    vertical-align: top !important;
}

body:has(.manual-punch-history-page) .manual-punch-history-table th:nth-child(1),
body:has(.manual-punch-history-page) .manual-punch-history-table td:nth-child(1) {
    width: 88px !important;
}

body:has(.manual-punch-history-page) .manual-punch-history-table th:nth-child(2),
body:has(.manual-punch-history-page) .manual-punch-history-table td:nth-child(2) {
    width: 92px !important;
}

body:has(.manual-punch-history-page) .manual-punch-history-table th:nth-child(3),
body:has(.manual-punch-history-page) .manual-punch-history-table td:nth-child(3) {
    width: 76px !important;
}

body:has(.manual-punch-history-page) .manual-punch-history-table th:nth-child(4),
body:has(.manual-punch-history-page) .manual-punch-history-table td:nth-child(4) {
    width: 92px !important;
}

body:has(.manual-punch-history-page) .manual-punch-history-table th:nth-child(5),
body:has(.manual-punch-history-page) .manual-punch-history-table td:nth-child(5),
body:has(.manual-punch-history-page) .manual-punch-history-table th:nth-child(6),
body:has(.manual-punch-history-page) .manual-punch-history-table td:nth-child(6) {
    width: calc((100% - 348px) / 2) !important;
}

body:has(.manual-punch-history-page) .manual-punch-history-table td:nth-child(1),
body:has(.manual-punch-history-page) .manual-punch-history-table td:nth-child(3),
body:has(.manual-punch-history-page) .manual-punch-history-table td:nth-child(4) {
    color: var(--theme-ink-strong) !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere !important;
}

body:has(.manual-punch-history-page) .manual-punch-history-table .pill {
    min-height: 28px !important;
    padding: 0.34rem 0.64rem !important;
    border-radius: 999px !important;
    border: 1px solid var(--c075) !important;
    background: var(--c030) !important;
    color: var(--c087) !important;
    font-size: 0.66rem !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body:has(.manual-punch-history-page) .manual-punch-audit-snapshot {
    min-height: 0 !important;
    gap: 7px !important;
    padding: 0.72rem 0.78rem !important;
    border: 1px solid var(--c014) !important;
    border-radius: 9px !important;
    background: var(--c030) !important;
}

body:has(.manual-punch-history-page) .manual-punch-audit-snapshot div {
    grid-template-columns: 88px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
}

body:has(.manual-punch-history-page) .manual-punch-audit-snapshot dt {
    color: var(--c088) !important;
    font-size: 0.62rem !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
}

body:has(.manual-punch-history-page) .manual-punch-audit-snapshot dd {
    color: var(--theme-ink-strong) !important;
    font-size: 0.76rem !important;
    font-weight: 750 !important;
    line-height: 1.4 !important;
    overflow-wrap: anywhere !important;
}

body:has(.manual-punch-history-page) .manual-punch-history-table tbody tr + tr td {
    border-top: 1px solid var(--c016) !important;
}

@media (max-width: 760px) {
    body:has(.manual-punch-history-page) .manual-punch-history-audit {
        padding: 16px !important;
    }

    body:has(.manual-punch-history-page) .manual-punch-history-table {
        min-width: 1020px !important;
    }

    body:has(.manual-punch-history-page) .manual-punch-audit-snapshot div {
        grid-template-columns: 1fr !important;
        gap: 2px !important;
    }
}

/* Cascade stabilization: one late contract for shared HRIS workspace pages. */
body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel {
    width: auto !important;
    max-width: none !important;
    margin-left: calc(var(--sidebar-width) + var(--shell-gap)) !important;
    margin-right: var(--shell-gap) !important;
    padding: 0 !important;
}

body.sidebar-collapsed:not(.auth-page):not(.login-page) .main-panel {
    margin-left: calc(var(--sidebar-collapsed-width) + var(--shell-gap)) !important;
}

body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar,
body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .dashboard-home-page,
body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .employee-directory-page,
body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .department-page,
body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .employee-dashboard,
body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .pro-module-page {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-inline: 0 !important;
}

body:not(.auth-page):not(.login-page) .main-panel > .department-directory-page {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-inline: 0 !important;
}

body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar {
    min-height: 86px !important;
    display: grid !important;
    grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr) !important;
    align-items: center !important;
    gap: 18px !important;
    margin-bottom: 24px !important;
    padding: 20px 24px !important;
    border: 1px solid var(--c014) !important;
    border-radius: 18px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar h1 {
    font-size: 1.85rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.08 !important;
}

body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar .topbar-tools {
    display: grid !important;
    grid-template-columns: minmax(220px, 1fr) auto auto !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
}

body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar .search-shell,
body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar .search-shell input {
    min-width: 0 !important;
    max-width: none !important;
}

body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar .topbar-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    min-width: max-content !important;
}

body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar .topbar-actions:empty {
    display: none !important;
}

body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar .topbar-actions form,
body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar .topbar-actions .inline-form {
    display: contents !important;
    margin: 0 !important;
}

body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar .topbar-actions .button,
body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar .topbar-actions button.button {
    width: auto !important;
    min-width: max-content !important;
    white-space: nowrap !important;
}

body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .button.danger,
body:not(.employee-list-page-body):not(.auth-page):not(.login-page) button.button.danger {
    border-color: var(--c825) !important;
    background: var(--c814) !important;
    color: var(--c237) !important;
}

body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .button.danger:hover,
body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .button.danger:focus-visible,
body:not(.employee-list-page-body):not(.auth-page):not(.login-page) button.button.danger:hover,
body:not(.employee-list-page-body):not(.auth-page):not(.login-page) button.button.danger:focus-visible {
    border-color: var(--c815) !important;
    background: var(--c826) !important;
    color: var(--c817) !important;
}

.department-page {
    display: grid !important;
    gap: 24px !important;
    padding-bottom: 48px !important;
}

.department-page .department-hero.panel {
    display: block !important;
    min-height: 0 !important;
    padding: 24px !important;
    border: 1px solid var(--c014) !important;
    border-radius: 14px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

.department-page .department-hero-copy {
    display: grid !important;
    gap: 12px !important;
    max-width: none !important;
    margin: 0 !important;
}

.department-page .department-hero-copy h2 {
    margin: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
}

.department-page .department-hero-text {
    max-width: 72ch !important;
    margin: 0 !important;
    color: var(--c073) !important;
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
}

.department-page .department-summary-grid {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin-top: 8px !important;
}

.department-page .department-summary-card,
.department-page .department-summary-card:not(.compact) {
    min-width: 0 !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: start !important;
    padding: 18px !important;
    border: 1px solid var(--c014) !important;
    border-radius: 12px !important;
    background: var(--c030) !important;
    color: var(--theme-ink-strong) !important;
    box-shadow: none !important;
}

.department-page .department-summary-card:nth-child(2) {
    border-color: var(--c014) !important;
    background: var(--theme-surface-strong) !important;
    color: var(--theme-ink-strong) !important;
    box-shadow: none !important;
}

.department-page .department-summary-card:nth-child(2) span,
.department-page .department-summary-card:nth-child(2) strong,
.department-page .department-summary-card:nth-child(2) small {
    color: inherit !important;
}

.department-page .department-summary-icon {
    width: 44px !important;
    height: 44px !important;
    display: inline-grid !important;
    place-items: center !important;
    border: 1px solid var(--c014) !important;
    border-radius: 12px !important;
    background: var(--c584) !important;
    color: var(--c092) !important;
}

.department-page .department-summary-icon svg {
    width: 18px !important;
    height: 18px !important;
    position: static !important;
    transform: none !important;
}

.department-page .department-summary-card strong,
.department-page .department-summary-card strong.department-summary-money {
    color: var(--theme-ink-strong) !important;
    font-size: 1.65rem !important;
    font-weight: 800 !important;
    line-height: 1.05 !important;
    white-space: normal !important;
}

.department-page .table-link {
    border: 0 !important;
    padding: 0 !important;
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    letter-spacing: 0 !important;
    line-height: inherit !important;
    text-decoration: none !important;
    text-transform: none !important;
}

.department-page .table-link:hover,
.department-page .table-link:focus-visible {
    color: var(--c103) !important;
}

@media (max-width: 1180px) {
    body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel,
    body.sidebar-collapsed:not(.auth-page):not(.login-page) .main-panel {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar {
        grid-template-columns: 1fr !important;
    }

    body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar .topbar-tools {
        grid-template-columns: minmax(0, 1fr) auto !important;
    }

    body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar .topbar-actions {
        grid-column: 1 / -1 !important;
        justify-content: flex-start !important;
        min-width: 0 !important;
    }

    .department-page .department-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar {
        padding: 16px !important;
    }

    body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar .topbar-tools,
    body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar .topbar-actions,
    .department-page .department-summary-grid {
        grid-template-columns: 1fr !important;
    }

    body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar .topbar-actions .button,
    body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar .topbar-actions button.button {
        width: 100% !important;
    }
}

/* LEGACY SHELL OVERRIDE: final guardrail kept temporarily.
   Future cleanup should move needed behavior to foundation.css first. */
/* Final guardrail: topbars never draw stray lines or allow content overlap. */
body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar {
    position: relative !important;
    overflow: visible !important;
    isolation: isolate !important;
    border-bottom-color: var(--c014) !important;
}

body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar::before,
body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar::after,
body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar .topbar-copy::before,
body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar .topbar-copy::after,
body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar h1::before,
body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar h1::after {
    display: none !important;
    content: none !important;
}

body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar h1,
body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar h1 a,
body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar .topbar-copy,
body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar .topbar-copy * {
    border: 0 !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    box-shadow: none !important;
}

body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar + .pro-module-page,
body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar + .department-page,
body:not(.employee-list-page-body):not(.auth-page):not(.login-page) .main-panel > .topbar + .employee-directory-page {
    position: relative !important;
    z-index: 0 !important;
    margin-top: 0 !important;
}

/* Performance Center final polish */
body.performance-center-page-body:not(.auth-page):not(.login-page) .main-panel {
    background: var(--theme-surface-strong);
}

body.performance-center-page-body:not(.auth-page):not(.login-page) .main-panel > .topbar {
    min-height: 104px !important;
    padding: 22px 26px !important;
    border-color: var(--c930) !important;
    border-radius: 18px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body.performance-center-page-body:not(.auth-page):not(.login-page) .main-panel > .topbar .eyebrow {
    color: var(--c073) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
}

body.performance-center-page-body:not(.auth-page):not(.login-page) .main-panel > .topbar h1 {
    margin-top: 0.35rem !important;
    color: var(--theme-ink-strong) !important;
    font-size: 1.75rem !important;
    font-weight: 850 !important;
    line-height: 1.08 !important;
}

body.performance-center-page-body .performance-center-primary-action,
body.performance-center-page-body .performance-center-save-goal-button {
    min-height: 42px !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 16px !important;
    border: 1px solid var(--c031) !important;
    border-radius: 999px !important;
    background: var(--theme-success-strong) !important;
    color: var(--theme-surface-strong) !important;
    font-size: 0.76rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.035em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    box-shadow: none !important;
}

body.performance-center-page-body .performance-center-primary-action:hover,
body.performance-center-page-body .performance-center-primary-action:focus-visible,
body.performance-center-page-body .performance-center-save-goal-button:hover,
body.performance-center-page-body .performance-center-save-goal-button:focus-visible {
    border-color: var(--c004) !important;
    background: var(--c031) !important;
    color: var(--theme-surface-strong) !important;
}

body.performance-center-page-body .performance-center-page {
    display: grid !important;
    gap: 20px !important;
    padding-bottom: 48px !important;
}

body.performance-center-page-body .performance-center-add-goal-panel {
    scroll-margin-top: 108px !important;
    padding: 20px 22px !important;
    border: 1px solid var(--c930) !important;
    border-radius: 16px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body.performance-center-page-body .performance-center-add-goal-panel .performance-center-add-goal-head {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin: 0 0 16px !important;
    padding: 0 0 13px !important;
    border-bottom: 1px solid var(--c072) !important;
}

body.performance-center-page-body .performance-center-add-goal-panel .eyebrow {
    margin: 0 0 0.3rem !important;
    color: var(--c073) !important;
    font-size: 0.7rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.075em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.performance-center-page-body .performance-center-add-goal-panel h3 {
    margin: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 1.02rem !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
}

body.performance-center-page-body .performance-center-goal-form {
    display: grid !important;
    grid-template-columns: minmax(15rem, 1.1fr) minmax(18rem, 1.4fr) repeat(2, minmax(8rem, 0.8fr)) !important;
    gap: 14px 16px !important;
}

body.performance-center-page-body .performance-center-goal-form .full-width {
    grid-column: 1 / -1 !important;
}

body.performance-center-page-body .performance-center-goal-form .field-group {
    display: grid !important;
    gap: 7px !important;
    margin: 0 !important;
}

body.performance-center-page-body .performance-center-goal-form .field-group label {
    margin: 0 !important;
    color: var(--c073) !important;
    font-size: 0.7rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.075em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.performance-center-page-body .performance-center-goal-form input,
body.performance-center-page-body .performance-center-goal-form select,
body.performance-center-page-body .performance-center-goal-form textarea {
    width: 100% !important;
    min-height: 42px !important;
    padding: 10px 13px !important;
    border: 1px solid var(--c026) !important;
    border-radius: 12px !important;
    background: var(--theme-surface-strong) !important;
    color: var(--theme-ink-strong) !important;
    font-size: 0.88rem !important;
    line-height: 1.35 !important;
}

body.performance-center-page-body .performance-center-goal-form textarea {
    min-height: 78px !important;
    resize: vertical !important;
}

body.performance-center-page-body .performance-center-goal-form input:focus,
body.performance-center-page-body .performance-center-goal-form select:focus,
body.performance-center-page-body .performance-center-goal-form textarea:focus {
    border-color: var(--c027) !important;
    box-shadow: 0 0 0 3px var(--c028) !important;
    outline: 2px solid transparent !important;
}

body.performance-center-page-body .performance-center-goal-form .form-actions {
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: 4px !important;
}

body.performance-center-page-body .performance-center-page .dashboard-stats {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin: 0 !important;
}

body.performance-center-page-body .performance-center-page .performance-metric {
    position: relative !important;
    min-height: 112px !important;
    overflow: hidden !important;
    padding: 19px 20px !important;
    border: 1px solid var(--c079) !important;
    border-radius: 14px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body.performance-center-page-body .performance-center-page .performance-metric::after {
    position: absolute !important;
    right: 18px !important;
    top: 18px !important;
    width: 9px !important;
    height: 9px !important;
    border-radius: 999px !important;
    background: var(--theme-slate-soft) !important;
    content: "" !important;
}

body.performance-center-page-body .performance-center-page .performance-metric-total::after {
    background: var(--c092) !important;
}

body.performance-center-page-body .performance-center-page .performance-metric-open::after {
    background: var(--c931) !important;
}

body.performance-center-page-body .performance-center-page .performance-metric-risk::after {
    background: var(--c932) !important;
}

body.performance-center-page-body .performance-center-page .performance-metric-rating::after {
    background: var(--theme-slate) !important;
}

body.performance-center-page-body .performance-center-page .performance-metric p {
    margin: 0 1.25rem 0.5rem 0 !important;
    color: var(--c073) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.075em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.performance-center-page-body .performance-center-page .performance-metric strong {
    display: block !important;
    color: var(--c082) !important;
    font-size: 1.9rem !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
}

body.performance-center-page-body .performance-center-page .performance-metric small {
    display: block !important;
    margin-top: 0.65rem !important;
    color: var(--c101) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

body.performance-center-page-body .performance-center-table-grid,
body.performance-center-page-body .performance-center-single-table-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
}

body.performance-center-page-body .performance-center-page .performance-center-goals-panel {
    overflow: hidden !important;
    padding: 22px !important;
    border: 1px solid var(--c930) !important;
    border-radius: 16px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body.performance-center-page-body .performance-center-page .performance-center-goals-panel .panel-header {
    display: flex !important;
    align-items: end !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin: 0 0 14px !important;
    padding: 0 0 16px !important;
    border-bottom: 1px solid var(--c072) !important;
}

body.performance-center-page-body .performance-center-page .performance-center-goals-panel .panel-header .eyebrow {
    margin: 0 0 0.35rem !important;
    color: var(--c073) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.075em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.performance-center-page-body .performance-center-page .performance-center-goals-panel .panel-header h3 {
    margin: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 1.08rem !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
}

body.performance-center-page-body .performance-center-page .performance-center-goals-panel .table-wrap {
    border: 1px solid var(--c079) !important;
    border-radius: 14px !important;
    background: var(--theme-surface-strong) !important;
    overflow: auto !important;
}

body.performance-center-page-body .performance-center-page .performance-center-goals-panel table {
    width: 100% !important;
    min-width: 880px !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

body.performance-center-page-body .performance-center-goals-panel th:nth-child(1),
body.performance-center-page-body .performance-center-goals-panel td:nth-child(1) {
    width: 18% !important;
}

body.performance-center-page-body .performance-center-goals-panel th:nth-child(2),
body.performance-center-page-body .performance-center-goals-panel td:nth-child(2) {
    width: 42% !important;
}

body.performance-center-page-body .performance-center-goals-panel th:nth-child(3),
body.performance-center-page-body .performance-center-goals-panel td:nth-child(3) {
    width: 13% !important;
}

body.performance-center-page-body .performance-center-goals-panel th:nth-child(4),
body.performance-center-page-body .performance-center-goals-panel td:nth-child(4) {
    width: 10% !important;
}

body.performance-center-page-body .performance-center-goals-panel th:nth-child(5),
body.performance-center-page-body .performance-center-goals-panel td:nth-child(5),
body.performance-center-page-body .performance-center-goals-panel th:nth-child(6),
body.performance-center-page-body .performance-center-goals-panel td:nth-child(6) {
    width: 8.5% !important;
}

body.performance-center-page-body .performance-center-page .performance-center-goals-panel th {
    padding: 14px 16px !important;
    border-bottom: 1px solid var(--c079) !important;
    background: var(--theme-surface-cool) !important;
    color: var(--c073) !important;
    font-size: 0.7rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.075em !important;
    line-height: 1.2 !important;
    text-align: left !important;
    text-transform: uppercase !important;
}

body.performance-center-page-body .performance-center-page .performance-center-goals-panel td {
    padding: 16px !important;
    border-bottom: 1px solid var(--c018) !important;
    color: var(--c060) !important;
    font-size: 0.86rem !important;
    font-weight: 650 !important;
    line-height: 1.4 !important;
    vertical-align: middle !important;
}

body.performance-center-page-body .performance-center-page .performance-center-goals-panel tbody tr:last-child td {
    border-bottom: 0 !important;
}

body.performance-center-page-body .performance-center-page .performance-center-goals-panel tbody tr {
    transition: background-color 160ms ease, box-shadow 160ms ease !important;
}

body.performance-center-page-body .performance-center-page .performance-center-goals-panel tbody tr:hover td {
    background: var(--c030) !important;
}

body.performance-center-page-body .performance-center-page .performance-center-goals-panel .table-link,
body.performance-center-page-body .performance-center-page .performance-center-goals-panel .table-link:hover,
body.performance-center-page-body .performance-center-page .performance-center-goals-panel .table-link:focus-visible {
    border: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 0.88rem !important;
    font-weight: 750 !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    text-transform: none !important;
}

body.performance-center-page-body .performance-center-page .performance-center-goals-panel .table-link:hover,
body.performance-center-page-body .performance-center-page .performance-center-goals-panel .table-link:focus-visible {
    color: var(--c919) !important;
}

body.performance-center-page-body .performance-center-page .performance-center-goals-panel td small {
    display: block !important;
    max-width: 68ch !important;
    margin-top: 0.25rem !important;
    color: var(--c074) !important;
    font-size: 0.76rem !important;
    font-weight: 550 !important;
    line-height: 1.35 !important;
}

body.performance-center-page-body .performance-center-page .performance-status {
    display: inline-flex !important;
    min-height: 1.65rem !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.22rem 0.62rem !important;
    border-radius: 999px !important;
    border: 1px solid var(--c026) !important;
    background: var(--c157) !important;
    color: var(--c925) !important;
    font-size: 0.7rem !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}

body.performance-center-page-body .performance-center-page .performance-status-not_started {
    border-color: var(--theme-border-muted) !important;
    background: var(--theme-surface-cool) !important;
    color: var(--theme-ink-muted) !important;
}

body.performance-center-page-body .performance-center-page .performance-status-in_progress {
    border-color: var(--c005) !important;
    background: var(--c006) !important;
    color: var(--c007) !important;
}

body.performance-center-page-body .performance-center-page .performance-status-at_risk {
    border-color: var(--c046) !important;
    background: var(--c047) !important;
    color: var(--c048) !important;
}

body.performance-center-page-body .performance-center-page .performance-center-goals-panel .employee-section-action {
    min-height: 2.2rem !important;
    padding: 0.5rem 0.75rem !important;
    border: 1px solid var(--c026) !important;
    border-radius: 10px !important;
    background: var(--theme-surface-strong) !important;
    color: var(--c021) !important;
    font-size: 0.7rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.035em !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease !important;
}

body.performance-center-page-body .performance-center-page .performance-center-goals-panel .employee-section-action:hover,
body.performance-center-page-body .performance-center-page .performance-center-goals-panel .employee-section-action:focus-visible {
    border-color: var(--c038) !important;
    background: var(--c006) !important;
    color: var(--c007) !important;
}

body.performance-center-page-body .performance-center-page .empty-cell {
    padding: 34px 16px !important;
    color: var(--c073) !important;
    text-align: center !important;
}

@media (max-width: 1180px) {
    body.performance-center-page-body .performance-center-page .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.performance-center-page-body .performance-center-goal-form {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    body.performance-center-page-body:not(.auth-page):not(.login-page) .main-panel > .topbar {
        min-height: 0 !important;
        padding: 18px !important;
    }

    body.performance-center-page-body .performance-center-page {
        gap: 16px !important;
        padding-bottom: 32px !important;
    }

    body.performance-center-page-body .performance-center-page .dashboard-stats {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    body.performance-center-page-body .performance-center-add-goal-panel {
        padding: 16px !important;
    }

    body.performance-center-page-body .performance-center-goal-form {
        grid-template-columns: 1fr !important;
    }

    body.performance-center-page-body .performance-center-goal-form .form-actions,
    body.performance-center-page-body .performance-center-save-goal-button {
        width: 100% !important;
    }

    body.performance-center-page-body .performance-center-page .performance-metric,
    body.performance-center-page-body .performance-center-page .performance-center-goals-panel {
        border-radius: 14px !important;
        padding: 16px !important;
    }

    body.performance-center-page-body .performance-center-page .performance-center-goals-panel .panel-header {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    body.performance-center-page-body .performance-center-page .performance-center-goals-panel table {
        min-width: 780px !important;
    }
}

/* Dedicated employee goals workspace */
body.employee-goals-page-body:not(.auth-page):not(.login-page) .main-panel > .topbar {
    min-height: 96px !important;
    padding: 20px 24px !important;
    border-color: var(--c930) !important;
    border-radius: 18px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body.employee-goals-page-body:not(.auth-page):not(.login-page) .main-panel > .topbar h1 {
    color: var(--theme-ink-strong) !important;
    font-size: 1.62rem !important;
    font-weight: 850 !important;
    line-height: 1.08 !important;
}

body.employee-goals-page-body .employee-goals-page {
    display: grid !important;
    gap: 18px !important;
    padding-bottom: 46px !important;
}

body.employee-goals-page-body .employee-goals-form-section,
body.employee-goals-page-body .employee-evaluation-grid {
    display: grid !important;
    gap: 16px !important;
}

body.employee-goals-page-body .employee-evaluation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start !important;
}

body.employee-goals-page-body .employee-goals-list-card.employee-cancelled-goals {
    grid-column: 1 / -1 !important;
}

body.employee-goals-page-body .employee-goals-form-card,
body.employee-goals-page-body .employee-goals-list-card {
    min-height: 0 !important;
    padding: 18px !important;
    border: 1px solid var(--c079) !important;
    border-radius: 16px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body.employee-goals-page-body .employee-goals-form-card {
    padding: 18px 20px 20px !important;
}

body.employee-goals-page-body .employee-goals-card-head {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin: 0 0 16px !important;
    padding-bottom: 13px !important;
    border-bottom: 1px solid var(--c072) !important;
}

body.employee-goals-page-body .employee-goals-card-head .eyebrow {
    margin: 0 0 0.3rem !important;
    color: var(--c073) !important;
    font-size: 0.7rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.075em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.employee-goals-page-body .employee-goals-card-head h4 {
    margin: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 1.02rem !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
}

body.employee-goals-page-body .employee-inline-performance-form {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 16px !important;
}

body.employee-goals-page-body .employee-inline-performance-form .full-width {
    grid-column: 1 / -1 !important;
}

body.employee-goals-page-body .employee-inline-performance-form .field-group {
    display: grid !important;
    gap: 7px !important;
    margin: 0 !important;
}

body.employee-goals-page-body .employee-inline-performance-form label {
    margin: 0 !important;
    color: var(--c073) !important;
    font-size: 0.72rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.075em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.employee-goals-page-body .employee-inline-performance-form input,
body.employee-goals-page-body .employee-inline-performance-form select,
body.employee-goals-page-body .employee-inline-performance-form textarea {
    width: 100% !important;
    min-height: 44px !important;
    padding: 10px 14px !important;
    border: 1px solid var(--c026) !important;
    border-radius: 12px !important;
    background: var(--theme-surface-strong) !important;
    color: var(--theme-ink-strong) !important;
    font-size: 0.9rem !important;
    line-height: 1.35 !important;
}

body.employee-goals-page-body .employee-inline-performance-form textarea {
    min-height: 86px !important;
    resize: vertical !important;
}

body.employee-goals-page-body .employee-inline-performance-form input:focus,
body.employee-goals-page-body .employee-inline-performance-form select:focus,
body.employee-goals-page-body .employee-inline-performance-form textarea:focus {
    border-color: var(--c027) !important;
    box-shadow: 0 0 0 3px var(--c028) !important;
    outline: 2px solid transparent !important;
}

body.employee-goals-page-body .employee-inline-performance-form .form-actions {
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: 6px !important;
}

body.employee-goals-page-body .employee-inline-performance-form .form-actions .button {
    min-height: 40px !important;
    padding: 0 16px !important;
    border-radius: 9px !important;
    font-size: 0.76rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.035em !important;
}

body.employee-goals-page-body .employee-career-list {
    display: grid !important;
    gap: 12px !important;
}

body.employee-goals-page-body .employee-goal-card,
body.employee-goals-page-body .employee-career-list > article {
    display: grid !important;
    gap: 12px !important;
    padding: 14px !important;
    border: 1px solid var(--c079) !important;
    border-radius: 14px !important;
    background: var(--c012) !important;
    box-shadow: none !important;
}

body.employee-goals-page-body .employee-goal-card-completed,
body.employee-goals-page-body .employee-completed-goals .employee-career-list > article {
    border-color: var(--c933) !important;
    background: var(--c862) !important;
}

body.employee-goals-page-body .employee-goal-card-cancelled,
body.employee-goals-page-body .employee-cancelled-goals .employee-career-list > article {
    border-color: var(--c934) !important;
    background: var(--c249) !important;
}

body.employee-goals-page-body .employee-goal-summary {
    display: grid !important;
    gap: 5px !important;
}

body.employee-goals-page-body .employee-goal-summary small {
    width: fit-content !important;
    max-width: 100% !important;
    padding: 0.24rem 0.55rem !important;
    border: 1px solid var(--c026) !important;
    border-radius: 999px !important;
    background: var(--c030) !important;
    color: var(--c935) !important;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.045em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.employee-goals-page-body .employee-goal-summary strong {
    color: var(--theme-ink-strong) !important;
    font-size: 0.98rem !important;
    font-weight: 850 !important;
    line-height: 1.3 !important;
}

body.employee-goals-page-body .employee-goal-summary p {
    margin: 0 !important;
    color: var(--c074) !important;
    font-size: 0.84rem !important;
    line-height: 1.45 !important;
}

body.employee-goals-page-body .employee-goal-card-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding-top: 10px !important;
    border-top: 1px solid var(--c160) !important;
}

body.employee-goals-page-body .employee-goal-card-actions form {
    margin: 0 !important;
}

body.employee-goals-page-body .employee-goal-card-actions a,
body.employee-goals-page-body .employee-goal-card-actions button {
    min-height: 30px !important;
    padding: 0 6px !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--c931) !important;
    cursor: pointer !important;
    font: inherit !important;
    font-size: 0.74rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.035em !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
}

body.employee-goals-page-body .employee-goal-card-actions button {
    color: var(--c237) !important;
}

body.employee-goals-page-body .employee-goal-card-actions a:hover,
body.employee-goals-page-body .employee-goal-card-actions a:focus-visible,
body.employee-goals-page-body .employee-goal-card-actions button:hover,
body.employee-goals-page-body .employee-goal-card-actions button:focus-visible {
    text-decoration: underline !important;
    text-underline-offset: 0.18em !important;
    outline: 2px solid transparent !important;
}

body.employee-goals-page-body .employee-goal-status-form {
    display: grid !important;
    gap: 8px !important;
    margin: 0 !important;
    padding-top: 10px !important;
    border-top: 1px solid var(--c160) !important;
}

body.employee-goals-page-body .employee-goal-status-form label {
    margin: 0 !important;
    color: var(--c073) !important;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.075em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.employee-goals-page-body .employee-goal-status-controls {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
    align-items: center !important;
}

body.employee-goals-page-body .employee-goal-status-controls select {
    min-width: 0 !important;
    min-height: 38px !important;
    padding: 0.45rem 2rem 0.45rem 0.72rem !important;
    border: 1px solid var(--c026) !important;
    border-radius: 10px !important;
    background: var(--theme-surface-strong) !important;
    color: var(--theme-ink-strong) !important;
    font-size: 0.84rem !important;
}

body.employee-goals-page-body .employee-goal-status-controls .button {
    min-height: 38px !important;
    padding: 0 12px !important;
    border-radius: 9px !important;
    font-size: 0.72rem !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
}

body.employee-goals-page-body .empty-state,
body.employee-goals-page-body .employee-career-list > strong {
    display: block !important;
    padding: 16px !important;
    border: 1px dashed var(--c026) !important;
    border-radius: 13px !important;
    background: var(--c030) !important;
    color: var(--c073) !important;
    font-size: 0.86rem !important;
    font-weight: 650 !important;
}

@media (max-width: 1180px) {
    body.employee-goals-page-body .employee-evaluation-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 760px) {
    body.employee-goals-page-body .employee-goals-page {
        gap: 14px !important;
        padding-bottom: 32px !important;
    }

    body.employee-goals-page-body .employee-goals-form-card,
    body.employee-goals-page-body .employee-goals-list-card {
        padding: 15px !important;
        border-radius: 14px !important;
    }

    body.employee-goals-page-body .employee-inline-performance-form,
    body.employee-goals-page-body .employee-goal-status-controls {
        grid-template-columns: 1fr !important;
    }

    body.employee-goals-page-body .employee-inline-performance-form .form-actions,
    body.employee-goals-page-body .employee-inline-performance-form .form-actions .button,
body.employee-goals-page-body .employee-goal-status-controls .button {
        width: 100% !important;
    }
}

/* Supervisor reviews list polish */
body.supervisor-evaluation-page:not(.auth-page):not(.login-page) .main-panel {
    background: var(--c068) !important;
}

body.supervisor-evaluation-page:not(.auth-page):not(.login-page) .main-panel > .topbar {
    min-height: 92px !important;
    padding: 1.1rem 1.25rem !important;
    border: 1px solid var(--c071) !important;
    border-radius: 12px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body.supervisor-evaluation-page:not(.auth-page):not(.login-page) .main-panel > .topbar h1 {
    margin-top: 0.25rem !important;
    color: var(--c055) !important;
    font-size: 1.34rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.08 !important;
}

body.supervisor-evaluation-page .supervisor-review-page {
    display: grid !important;
    gap: 1rem !important;
    padding-bottom: 2.5rem !important;
}

body.supervisor-evaluation-page .supervisor-review-page .employee-dashboard-main {
    display: grid !important;
    gap: 1rem !important;
}

body.supervisor-evaluation-page .supervisor-review-stats {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
    margin: 0 !important;
}

body.supervisor-evaluation-page .supervisor-review-stats .metric-card {
    position: relative !important;
    min-height: 5.8rem !important;
    overflow: hidden !important;
    padding: 0.9rem 1rem 0.95rem !important;
    border: 1px solid var(--c079) !important;
    border-radius: 12px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body.supervisor-evaluation-page .supervisor-review-stats .metric-card::before {
    position: absolute !important;
    inset: 0 auto 0 0 !important;
    width: 3px !important;
    background: var(--c092) !important;
    content: "" !important;
}

body.supervisor-evaluation-page .supervisor-review-stats .metric-card:nth-child(2)::before {
    background: var(--theme-success-strong) !important;
}

body.supervisor-evaluation-page .supervisor-review-stats .metric-card:nth-child(3)::before {
    background: var(--c931) !important;
}

body.supervisor-evaluation-page .supervisor-review-stats .metric-card:nth-child(4)::before {
    background: var(--c932) !important;
}

body.supervisor-evaluation-page .supervisor-review-stats .metric-card p {
    margin: 0 0 0.3rem !important;
    color: var(--c073) !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.075em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.supervisor-evaluation-page .supervisor-review-stats .metric-card strong {
    display: block !important;
    color: var(--c082) !important;
    font-size: 1.55rem !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
}

body.supervisor-evaluation-page .supervisor-review-stats .metric-card small {
    display: block !important;
    margin-top: 0.42rem !important;
    color: var(--c073) !important;
    font-size: 0.76rem !important;
    font-weight: 550 !important;
    line-height: 1.35 !important;
}

body.supervisor-evaluation-page .supervisor-review-panel {
    overflow: hidden !important;
    padding: 0.95rem !important;
    border: 1px solid var(--c071) !important;
    border-radius: 12px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body.supervisor-evaluation-page .supervisor-review-list-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    margin: 0 0 0.75rem !important;
    padding: 0 0 0.75rem !important;
    border-bottom: 1px solid var(--c072) !important;
}

body.supervisor-evaluation-page .supervisor-review-list-head .eyebrow {
    margin: 0 0 0.3rem !important;
    color: var(--c073) !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.075em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.supervisor-evaluation-page .supervisor-review-list-head h3 {
    margin: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 1.04rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
}

body.supervisor-evaluation-page .supervisor-review-list-head p:not(.eyebrow) {
    margin: 0.22rem 0 0 !important;
    color: var(--c073) !important;
    font-size: 0.84rem !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
}

body.supervisor-evaluation-page .supervisor-review-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.55rem !important;
}

body.supervisor-evaluation-page .supervisor-review-actions .employee-section-action,
body.supervisor-evaluation-page .supervisor-review-table .employee-section-action,
body.supervisor-evaluation-page .supervisor-review-filter .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 2.25rem !important;
    padding: 0 0.8rem !important;
    border: 1px solid var(--c026) !important;
    border-radius: 9px !important;
    background: var(--theme-surface-strong) !important;
    color: var(--c912) !important;
    cursor: pointer !important;
    font-size: 0.7rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.04em !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease !important;
}

body.supervisor-evaluation-page .supervisor-review-actions .employee-section-action:hover,
body.supervisor-evaluation-page .supervisor-review-actions .employee-section-action:focus-visible,
body.supervisor-evaluation-page .supervisor-review-table .employee-section-action:hover,
body.supervisor-evaluation-page .supervisor-review-table .employee-section-action:focus-visible,
body.supervisor-evaluation-page .supervisor-review-filter .button:hover,
body.supervisor-evaluation-page .supervisor-review-filter .button:focus-visible {
    border-color: var(--c038) !important;
    background: var(--c006) !important;
    color: var(--c007) !important;
    outline: 2px solid transparent !important;
}

body.supervisor-evaluation-page .supervisor-review-actions .employee-section-action:active,
body.supervisor-evaluation-page .supervisor-review-table .employee-section-action:active,
body.supervisor-evaluation-page .supervisor-review-filter .button:active {
    transform: scale(0.98) !important;
}

body.supervisor-evaluation-page .supervisor-review-filter {
    display: grid !important;
    grid-template-columns: minmax(18rem, 1fr) minmax(12rem, 0.28fr) auto !important;
    gap: 0.65rem !important;
    align-items: end !important;
    margin: 0 0 0.8rem !important;
    padding: 0.65rem !important;
    border: 1px solid var(--c079) !important;
    border-radius: 12px !important;
    background: var(--c012) !important;
    box-shadow: none !important;
}

body.supervisor-evaluation-page .supervisor-review-filter label {
    display: grid !important;
    gap: 0.4rem !important;
    margin: 0 !important;
}

body.supervisor-evaluation-page .supervisor-review-filter span {
    color: var(--c073) !important;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.075em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.supervisor-evaluation-page .supervisor-review-filter input,
body.supervisor-evaluation-page .supervisor-review-filter select {
    width: 100% !important;
    min-height: 2.35rem !important;
    padding: 0.55rem 0.75rem !important;
    border: 1px solid var(--c026) !important;
    border-radius: 9px !important;
    background: var(--theme-surface-strong) !important;
    color: var(--theme-ink-strong) !important;
    font-size: 0.84rem !important;
    line-height: 1.3 !important;
}

body.supervisor-evaluation-page .supervisor-review-filter input::placeholder {
    color: var(--theme-slate-muted) !important;
    opacity: 1 !important;
}

body.supervisor-evaluation-page .supervisor-review-filter input:focus,
body.supervisor-evaluation-page .supervisor-review-filter select:focus {
    border-color: var(--c027) !important;
    box-shadow: 0 0 0 3px var(--c913) !important;
    outline: 2px solid transparent !important;
}

body.supervisor-evaluation-page .supervisor-review-filter .button {
    background: var(--theme-ink-strong) !important;
    border-color: var(--theme-ink-strong) !important;
    color: var(--theme-surface-strong) !important;
}

body.supervisor-evaluation-page .supervisor-review-filter .button:hover,
body.supervisor-evaluation-page .supervisor-review-filter .button:focus-visible {
    background: var(--c936) !important;
    border-color: var(--c936) !important;
    color: var(--theme-surface-strong) !important;
}

body.supervisor-evaluation-page .supervisor-review-table {
    border: 1px solid var(--c079) !important;
    border-radius: 12px !important;
    background: var(--theme-surface-strong) !important;
    overflow: auto !important;
}

body.supervisor-evaluation-page .supervisor-review-table table {
    width: 100% !important;
    min-width: 68rem !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

body.supervisor-evaluation-page .supervisor-review-table th:nth-child(1),
body.supervisor-evaluation-page .supervisor-review-table td:nth-child(1) {
    width: 22% !important;
}

body.supervisor-evaluation-page .supervisor-review-table th:nth-child(2),
body.supervisor-evaluation-page .supervisor-review-table td:nth-child(2) {
    width: 18% !important;
}

body.supervisor-evaluation-page .supervisor-review-table th:nth-child(3),
body.supervisor-evaluation-page .supervisor-review-table td:nth-child(3) {
    width: 13% !important;
}

body.supervisor-evaluation-page .supervisor-review-table th:nth-child(4),
body.supervisor-evaluation-page .supervisor-review-table td:nth-child(4) {
    width: 21% !important;
}

body.supervisor-evaluation-page .supervisor-review-table th:nth-child(5),
body.supervisor-evaluation-page .supervisor-review-table td:nth-child(5),
body.supervisor-evaluation-page .supervisor-review-table th:nth-child(6),
body.supervisor-evaluation-page .supervisor-review-table td:nth-child(6) {
    width: 7% !important;
}

body.supervisor-evaluation-page .supervisor-review-table th:nth-child(7),
body.supervisor-evaluation-page .supervisor-review-table td:nth-child(7) {
    width: 12% !important;
}

body.supervisor-evaluation-page .supervisor-review-table thead th {
    padding: 0.62rem 0.82rem !important;
    border-bottom: 1px solid var(--c071) !important;
    background: var(--theme-surface-cool) !important;
    color: var(--c073) !important;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.075em !important;
    line-height: 1.2 !important;
    text-align: left !important;
    text-transform: uppercase !important;
}

body.supervisor-evaluation-page .supervisor-review-table tbody td {
    padding: 0.72rem 0.82rem !important;
    border-bottom: 1px solid var(--c018) !important;
    color: var(--c060) !important;
    font-size: 0.84rem !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    text-align: left !important;
    vertical-align: middle !important;
}

body.supervisor-evaluation-page .supervisor-review-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

body.supervisor-evaluation-page .supervisor-review-table tbody tr:hover td {
    background: var(--c030) !important;
}

body.supervisor-evaluation-page .supervisor-review-table .supervisor-review-employee {
    display: grid !important;
    justify-items: start !important;
    text-align: left !important;
    gap: 0.24rem !important;
}

body.supervisor-evaluation-page .supervisor-review-table .supervisor-review-employee .table-link,
body.supervisor-evaluation-page .supervisor-review-table tbody td:first-child .table-link,
body.supervisor-evaluation-page .supervisor-review-table .supervisor-review-employee-link {
    display: inline-block !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--theme-ink-strong) !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    text-transform: none !important;
}

body.supervisor-evaluation-page .supervisor-review-table .supervisor-review-employee .table-link:hover,
body.supervisor-evaluation-page .supervisor-review-table .supervisor-review-employee .table-link:focus-visible,
body.supervisor-evaluation-page .supervisor-review-table .supervisor-review-employee-link:hover,
body.supervisor-evaluation-page .supervisor-review-table .supervisor-review-employee-link:focus-visible {
    color: var(--c919) !important;
}

body.supervisor-evaluation-page .supervisor-review-table .supervisor-review-employee small,
body.supervisor-evaluation-page .supervisor-review-table td small {
    display: block !important;
    margin-top: 0.25rem !important;
    color: var(--c073) !important;
    font-size: 0.74rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
    text-transform: none !important;
}

body.supervisor-evaluation-page .supervisor-review-rating-cell {
    display: inline-grid !important;
    min-width: min(100%, 12.5rem) !important;
    justify-items: start !important;
    gap: 0.34rem !important;
    text-align: left !important;
}

body.supervisor-evaluation-page .supervisor-review-rating-cell small {
    margin: 0 !important;
    color: var(--c073) !important;
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
}

body.supervisor-evaluation-page .supervisor-review-table .evaluation-status-pill {
    min-height: 1.45rem !important;
    max-width: 100% !important;
    padding: 0.16rem 0.55rem !important;
    border-radius: 999px !important;
    border-color: var(--c243) !important;
    background: var(--c030) !important;
    color: var(--c430) !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.1 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.supervisor-evaluation-page .supervisor-review-rating-cell .evaluation-status-pill {
    justify-content: flex-start !important;
    width: fit-content !important;
    max-width: 12.5rem !important;
}

body.supervisor-evaluation-page .supervisor-review-table .evaluation-status-pill.submitted {
    border-color: var(--c002) !important;
    background: var(--c003) !important;
    color: var(--c004) !important;
}

body.supervisor-evaluation-page .supervisor-review-table .evaluation-status-pill.missing {
    border-color: var(--c046) !important;
    background: var(--c047) !important;
    color: var(--c048) !important;
}

body.supervisor-evaluation-page .supervisor-review-table td:last-child {
    white-space: nowrap !important;
}

body.supervisor-evaluation-page .supervisor-review-table td:last-child .employee-section-action + .employee-section-action {
    margin-left: 0.35rem !important;
}

body.supervisor-evaluation-page .supervisor-review-table .empty-cell {
    padding: 2.2rem 1rem !important;
    color: var(--c073) !important;
    font-weight: 650 !important;
    text-align: center !important;
}

body.supervisor-evaluation-page .supervisor-review-table tbody tr {
    transition: background-color 140ms ease !important;
}

@media (max-width: 1180px) {
    body.supervisor-evaluation-page .supervisor-review-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    body.supervisor-evaluation-page:not(.auth-page):not(.login-page) .main-panel > .topbar {
        min-height: 0 !important;
        padding: 1rem !important;
    }

    body.supervisor-evaluation-page .supervisor-review-stats,
    body.supervisor-evaluation-page .supervisor-review-filter {
        grid-template-columns: 1fr !important;
    }

    body.supervisor-evaluation-page .supervisor-review-panel {
        padding: 0.85rem !important;
    }

    body.supervisor-evaluation-page .supervisor-review-list-head {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    body.supervisor-evaluation-page .supervisor-review-actions,
    body.supervisor-evaluation-page .supervisor-review-actions .employee-section-action,
    body.supervisor-evaluation-page .supervisor-review-filter .button {
        width: 100% !important;
    }

    body.supervisor-evaluation-page .supervisor-review-table table {
        min-width: 62rem !important;
    }
}

.social-post-card,
.social-post-card * {
    text-decoration-thickness: auto;
}

.social-post-card > p {
    margin: 0 0 16px !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.form-honeypot,
.form-honeypot *,
[name="_company_website"],
[name="company_website"] {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    min-height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.form-honeypot {
    display: none !important;
}

/* Announcements page product polish */
body.announcements-page-body:not(.auth-page):not(.login-page) .main-panel {
    background: var(--c068) !important;
}

body.announcements-page-body:not(.auth-page):not(.login-page) .main-panel > .topbar {
    min-height: 92px !important;
    padding: 1.05rem 1.25rem !important;
    border: 1px solid var(--c071) !important;
    border-radius: 12px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body.announcements-page-body:not(.auth-page):not(.login-page) .main-panel > .topbar h1 {
    color: var(--theme-ink-strong) !important;
    font-size: 1.38rem !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    line-height: 1.08 !important;
}

body.announcements-page-body .announcements-page {
    display: grid !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-bottom: 2.5rem !important;
}

body.announcements-page-body .announcement-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.85rem !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body.announcements-page-body .announcement-stats .metric-card {
    min-height: 5.8rem !important;
    padding: 0.95rem 1rem !important;
    border: 1px solid var(--c079) !important;
    border-radius: 12px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body.announcements-page-body .announcement-stats .metric-card p {
    margin: 0 0 0.3rem !important;
    color: var(--c073) !important;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.075em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.announcements-page-body .announcement-stats .metric-card strong {
    display: block !important;
    color: var(--c082) !important;
    font-size: 1.6rem !important;
    font-weight: 850 !important;
    line-height: 1 !important;
}

body.announcements-page-body .announcement-stats .metric-card small {
    display: block !important;
    margin-top: 0.45rem !important;
    color: var(--c101) !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

body.announcements-page-body .announcements-workspace {
    display: grid !important;
    grid-template-columns: minmax(34rem, 1.2fr) minmax(26rem, 0.8fr) !important;
    gap: 1rem !important;
    align-items: start !important;
}

body.announcements-page-body .announcement-form-panel,
body.announcements-page-body .announcement-notice-panel {
    overflow: hidden !important;
    padding: 0 !important;
    border: 1px solid var(--c071) !important;
    border-radius: 12px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body.announcements-page-body .announcement-form-panel .panel-header,
body.announcements-page-body .announcement-notice-panel .panel-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    margin: 0 !important;
    padding: 1rem 1.15rem !important;
    border-bottom: 1px solid var(--c072) !important;
    background: var(--theme-surface-strong) !important;
}

body.announcements-page-body .announcement-form-panel .eyebrow,
body.announcements-page-body .announcement-notice-panel .eyebrow {
    margin: 0 0 0.28rem !important;
    color: var(--c073) !important;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.075em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.announcements-page-body .announcement-form-panel h3,
body.announcements-page-body .announcement-notice-panel h3 {
    margin: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 1.04rem !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
}

body.announcements-page-body .announcement-form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.95rem 1rem !important;
    padding: 1.05rem 1.15rem 1.15rem !important;
}

body.announcements-page-body .announcement-form-grid .full-width {
    grid-column: 1 / -1 !important;
}

body.announcements-page-body .announcement-form-grid .field-group {
    display: grid !important;
    gap: 0.42rem !important;
    margin: 0 !important;
}

body.announcements-page-body .announcement-form-grid label,
body.announcements-page-body .announcement-check-grid .checkbox-field label {
    color: var(--c073) !important;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.075em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.announcements-page-body .announcement-form-grid input,
body.announcements-page-body .announcement-form-grid select,
body.announcements-page-body .announcement-form-grid textarea {
    width: 100% !important;
    min-height: 2.55rem !important;
    padding: 0.6rem 0.78rem !important;
    border: 1px solid var(--c026) !important;
    border-radius: 9px !important;
    background: var(--theme-surface-strong) !important;
    color: var(--theme-ink-strong) !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
}

body.announcements-page-body .announcement-form-grid textarea {
    min-height: 6.8rem !important;
    resize: vertical !important;
}

body.announcements-page-body .announcement-form-grid input:focus,
body.announcements-page-body .announcement-form-grid select:focus,
body.announcements-page-body .announcement-form-grid textarea:focus {
    border-color: var(--c027) !important;
    box-shadow: 0 0 0 3px var(--c913) !important;
    outline: 2px solid transparent !important;
}

body.announcements-page-body .announcement-check-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.8rem !important;
    align-self: end !important;
}

body.announcements-page-body .announcement-check-grid .checkbox-field {
    position: relative !important;
    display: flex !important;
    min-height: 2.55rem !important;
    align-items: center !important;
    gap: 0.55rem !important;
    margin: 0 !important;
    padding: 0.55rem 0.75rem !important;
    border: 1px solid var(--c079) !important;
    border-radius: 9px !important;
    background: var(--c012) !important;
}

body.announcements-page-body .announcement-check-grid .checkbox-field input[type="checkbox"] {
    position: static !important;
    flex: 0 0 auto !important;
    width: 0.95rem !important;
    height: 0.95rem !important;
    min-width: 0.95rem !important;
    min-height: 0.95rem !important;
    margin: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    accent-color: var(--theme-success-strong) !important;
}

body.announcements-page-body .announcement-check-grid .checkbox-field label {
    min-height: 0 !important;
    padding: 0 !important;
    color: var(--c867) !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.announcements-page-body .announcement-check-grid .checkbox-field label::before,
body.announcements-page-body .announcement-check-grid .checkbox-field label::after {
    display: none !important;
    content: none !important;
}

body.announcements-page-body .announcement-form-grid .form-actions {
    display: flex !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding-top: 0.15rem !important;
}

body.announcements-page-body .announcement-form-grid .button {
    min-height: 2.4rem !important;
    padding: 0 0.95rem !important;
    border-radius: 9px !important;
    font-size: 0.7rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.04em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease !important;
}

body.announcements-page-body .announcement-form-grid .button:active {
    transform: scale(0.98) !important;
}

body.announcements-page-body .announcement-list-limit {
    display: inline-flex !important;
    min-height: 1.65rem !important;
    align-items: center !important;
    padding: 0 0.58rem !important;
    border: 1px solid var(--c026) !important;
    border-radius: 999px !important;
    background: var(--c030) !important;
    color: var(--c101) !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

body.announcements-page-body .announcement-notice-list {
    display: grid !important;
    gap: 0.65rem !important;
    max-height: min(39rem, calc(100vh - 16rem)) !important;
    padding: 0.9rem 1rem 1rem !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    scrollbar-gutter: stable !important;
}

body.announcements-page-body .announcement-notice-card {
    display: grid !important;
    gap: 0.45rem !important;
    margin: 0 !important;
    padding: 0.85rem !important;
    border: 1px solid var(--c079) !important;
    border-radius: 10px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body.announcements-page-body .announcement-card-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
    align-items: center !important;
}

body.announcements-page-body .announcement-card-topline {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
}

body.announcements-page-body .announcement-delete-form {
    flex: 0 0 auto !important;
    margin: 0 !important;
}

body.announcements-page-body .announcement-delete-button {
    width: 2rem !important;
    height: 2rem !important;
    display: inline-grid !important;
    place-items: center !important;
    margin: 0 !important;
    border: 1px solid var(--c022) !important;
    border-radius: 8px !important;
    background: var(--c086) !important;
    color: var(--c247) !important;
    cursor: pointer !important;
}

body.announcements-page-body .announcement-delete-button:hover,
body.announcements-page-body .announcement-delete-button:focus-visible {
    border-color: var(--c090) !important;
    background: var(--c791) !important;
    color: var(--c024) !important;
    outline: 2px solid transparent !important;
}

body.announcements-page-body .announcement-delete-button svg {
    width: 1rem !important;
    height: 1rem !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

body.announcements-page-body .announcement-notice-card .pill {
    min-height: 1.45rem !important;
    padding: 0.16rem 0.52rem !important;
    border: 1px solid var(--c026) !important;
    border-radius: 999px !important;
    background: var(--c030) !important;
    color: var(--c430) !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
}

body.announcements-page-body .announcement-notice-card .pill-soft {
    border-color: var(--c002) !important;
    background: var(--c003) !important;
    color: var(--c004) !important;
}

body.announcements-page-body .announcement-notice-card h4 {
    margin: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 0.9rem !important;
    font-weight: 850 !important;
    line-height: 1.3 !important;
}

body.announcements-page-body .announcement-notice-card p {
    max-width: 72ch !important;
    margin: 0 !important;
    color: var(--c101) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
}

body.announcements-page-body .announcement-notice-card small {
    color: var(--c073) !important;
    font-size: 0.72rem !important;
    font-weight: 650 !important;
}

body.announcements-page-body .announcement-notice-list .empty-state {
    min-height: 7rem !important;
    display: grid !important;
    place-items: center !important;
    margin: 0 !important;
    border: 1px dashed var(--c026) !important;
    border-radius: 10px !important;
    background: var(--c030) !important;
    color: var(--c073) !important;
    font-size: 0.86rem !important;
    font-weight: 650 !important;
}

@media (max-width: 1180px) {
    body.announcements-page-body .announcements-workspace,
    body.announcements-page-body .announcement-form-grid,
    body.announcements-page-body .announcement-check-grid {
        grid-template-columns: 1fr !important;
    }

    body.announcements-page-body .announcement-notice-list {
        max-height: 34rem !important;
    }
}

@media (max-width: 760px) {
    body.announcements-page-body:not(.auth-page):not(.login-page) .main-panel > .topbar {
        min-height: 0 !important;
        padding: 1rem !important;
    }

    body.announcements-page-body .announcement-stats {
        grid-template-columns: 1fr !important;
    }

    body.announcements-page-body .announcement-form-panel .panel-header,
    body.announcements-page-body .announcement-notice-panel .panel-header {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

body.announcements-page-body .announcement-form-grid .button {
        width: 100% !important;
    }
}

/* Announcements page refreshed polish */
body.announcements-page-body .announcements-page {
    display: grid !important;
    gap: 1.15rem !important;
    width: 100% !important;
    max-width: none !important;
}

body.announcements-page-body .announcement-stats {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(14rem, 1fr)) !important;
    gap: 1rem !important;
    margin: 0 !important;
    max-width: none !important;
}

body.announcements-page-body .announcement-stats .metric-card,
body.announcements-page-body .announcement-stats .metric-card:first-child {
    min-height: 6.25rem !important;
    padding: 1.15rem 1.25rem !important;
    border: 1px solid var(--c051) !important;
    border-radius: 13px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body.announcements-page-body .announcement-stats .metric-card p {
    margin: 0 0 0.35rem !important;
    color: var(--c017) !important;
    font-size: 0.72rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.075em !important;
    text-transform: uppercase !important;
}

body.announcements-page-body .announcement-stats .metric-card strong {
    display: block !important;
    margin: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 1.65rem !important;
    line-height: 1 !important;
}

body.announcements-page-body .announcement-stats .metric-card small {
    display: block !important;
    margin-top: 0.55rem !important;
    color: var(--c101) !important;
    font-size: 0.82rem !important;
    font-weight: 650 !important;
}

body.announcements-page-body .announcements-workspace {
    display: grid !important;
    grid-template-columns: minmax(32rem, 1.12fr) minmax(25rem, 0.88fr) !important;
    gap: 1rem !important;
    align-items: start !important;
}

body.announcements-page-body .announcement-form-panel,
body.announcements-page-body .announcement-notice-panel {
    overflow: hidden !important;
    padding: 0 !important;
    border: 1px solid var(--c051) !important;
    border-radius: 13px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body.announcements-page-body .announcement-form-panel .panel-header,
body.announcements-page-body .announcement-notice-panel .panel-header {
    padding: 1.25rem 1.35rem !important;
    border-bottom: 1px solid var(--c072) !important;
    background: var(--theme-surface-strong) !important;
}

body.announcements-page-body .announcement-form-grid {
    gap: 1rem !important;
    padding: 1.25rem 1.35rem 1.35rem !important;
}

body.announcements-page-body .announcement-form-grid .field-group {
    gap: 0.55rem !important;
}

body.announcements-page-body .announcement-form-grid input:not([type="checkbox"]),
body.announcements-page-body .announcement-form-grid select,
body.announcements-page-body .announcement-form-grid textarea {
    min-height: 2.7rem !important;
    border-radius: 10px !important;
}

body.announcements-page-body .announcement-form-grid textarea {
    min-height: 7.9rem !important;
}

body.announcements-page-body .announcement-check-grid {
    gap: 0.75rem !important;
}

body.announcements-page-body .announcement-check-grid .checkbox-field {
    min-height: 2.75rem !important;
    padding: 0.7rem 0.85rem !important;
    border-radius: 10px !important;
    background: var(--c030) !important;
}

body.announcements-page-body .announcement-check-grid .checkbox-field input[type="checkbox"] {
    appearance: auto !important;
    width: 1rem !important;
    height: 1rem !important;
    min-width: 1rem !important;
    min-height: 1rem !important;
    padding: 0 !important;
    box-shadow: none !important;
}

body.announcements-page-body .announcement-form-grid .form-actions {
    padding-top: 0.35rem !important;
}

body.announcements-page-body .announcement-form-grid .button {
    min-height: 2.55rem !important;
    border-radius: 9px !important;
    padding: 0 1.05rem !important;
}

body.announcements-page-body .announcement-list-limit {
    min-height: 1.8rem !important;
    padding: 0 0.65rem !important;
    border-color: var(--c005) !important;
    background: var(--c006) !important;
    color: var(--c007) !important;
}

body.announcements-page-body .announcement-notice-list {
    gap: 0.75rem !important;
    padding: 1rem 1.15rem 1.15rem !important;
}

body.announcements-page-body .announcement-notice-card {
    gap: 0.55rem !important;
    padding: 0.95rem !important;
    border-radius: 11px !important;
    background: var(--theme-surface-strong) !important;
    transition: border-color 150ms ease, background-color 150ms ease !important;
}

body.announcements-page-body .announcement-notice-card:hover {
    border-color: var(--c005) !important;
    background: var(--c012) !important;
}

@media (max-width: 1180px) {
    body.announcements-page-body .announcements-workspace {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 760px) {
    body.announcements-page-body .announcement-stats,
    body.announcements-page-body .announcement-form-grid,
    body.announcements-page-body .announcement-check-grid {
        grid-template-columns: 1fr !important;
    }

    body.announcements-page-body .announcement-form-panel .panel-header,
    body.announcements-page-body .announcement-notice-panel .panel-header,
    body.announcements-page-body .announcement-form-grid,
    body.announcements-page-body .announcement-notice-list {
        padding-inline: 1rem !important;
    }
}

/* Social feed product polish */
body.social-feed-page-body:not(.auth-page):not(.login-page) .main-panel {
    background: var(--c068) !important;
}

body.social-feed-page-body:not(.auth-page):not(.login-page) .main-panel > .topbar {
    min-height: 92px !important;
    padding: 1.05rem 1.25rem !important;
    border: 1px solid var(--c071) !important;
    border-radius: 12px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body.social-feed-page-body:not(.auth-page):not(.login-page) .main-panel > .topbar h1 {
    color: var(--theme-ink-strong) !important;
    font-size: 1.38rem !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    line-height: 1.08 !important;
}

body.social-feed-page-body .social-feed-page {
    display: grid !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-bottom: 2.5rem !important;
}

body.social-feed-page-body .social-composer-card,
body.social-feed-page-body .social-post-card,
body.social-feed-page-body .social-empty-state {
    overflow: hidden !important;
    padding: 0 !important;
    border: 1px solid var(--c071) !important;
    border-radius: 12px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body.social-feed-page-body .social-composer-card .panel-header,
body.social-feed-page-body .social-post-card .panel-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    margin: 0 !important;
    padding: 1rem 1.15rem !important;
    border-bottom: 1px solid var(--c072) !important;
    background: var(--theme-surface-strong) !important;
}

body.social-feed-page-body .social-composer-card .eyebrow,
body.social-feed-page-body .social-post-card .eyebrow {
    margin: 0 0 0.28rem !important;
    color: var(--c073) !important;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.075em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.social-feed-page-body .social-composer-card h3,
body.social-feed-page-body .social-post-card h3 {
    margin: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 1.04rem !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
}

body.social-feed-page-body .social-composer-form {
    display: grid !important;
    gap: 0.9rem !important;
    padding: 1.05rem 1.15rem 1.15rem !important;
}

body.social-feed-page-body .social-composer-fields {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.95rem !important;
}

body.social-feed-page-body .social-composer-form .field-group {
    display: grid !important;
    gap: 0.42rem !important;
    margin: 0 !important;
}

body.social-feed-page-body .social-composer-form label:not(.social-upload-box) {
    color: var(--c073) !important;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.075em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.social-feed-page-body .social-composer-form input[type="text"],
body.social-feed-page-body .social-composer-form textarea {
    width: 100% !important;
    min-height: 2.55rem !important;
    padding: 0.6rem 0.78rem !important;
    border: 1px solid var(--c026) !important;
    border-radius: 9px !important;
    background: var(--theme-surface-strong) !important;
    color: var(--theme-ink-strong) !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
}

body.social-feed-page-body .social-composer-form textarea {
    min-height: 5.6rem !important;
    resize: vertical !important;
}

body.social-feed-page-body .social-composer-form input[type="text"]:focus,
body.social-feed-page-body .social-composer-form textarea:focus {
    border-color: var(--c027) !important;
    box-shadow: 0 0 0 3px var(--c913) !important;
    outline: 2px solid transparent !important;
}

body.social-feed-page-body .social-upload-row {
    display: grid !important;
    gap: 0.35rem !important;
}

body.social-feed-page-body .social-upload-box {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 0.25rem 0.9rem !important;
    align-items: center !important;
    min-height: 4.7rem !important;
    padding: 0.85rem 1rem !important;
    border: 1px dashed var(--c937) !important;
    border-radius: 12px !important;
    background: var(--c012) !important;
    cursor: pointer !important;
    transition: background-color 150ms ease, border-color 150ms ease !important;
}

body.social-feed-page-body .social-upload-box:hover,
body.social-feed-page-body .social-upload-box:focus-within {
    border-color: var(--c038) !important;
    background: var(--c030) !important;
}

body.social-feed-page-body .social-upload-box > span {
    grid-column: 1 / -1 !important;
    color: var(--c073) !important;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.075em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.social-feed-page-body .social-upload-box strong {
    color: var(--theme-ink-strong) !important;
    font-size: 0.95rem !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
}

body.social-feed-page-body .social-upload-box small {
    color: var(--c101) !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

body.social-feed-page-body .social-upload-status {
    justify-self: end !important;
    max-width: 18rem !important;
    padding: 0.22rem 0.55rem !important;
    border: 1px solid var(--c079) !important;
    border-radius: 999px !important;
    background: var(--theme-surface-strong) !important;
    color: var(--c073) !important;
    font-size: 0.72rem !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

body.social-feed-page-body .social-upload-box input[type="file"] {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
}

body.social-feed-page-body .social-upload-preview {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)) !important;
    gap: 0.65rem !important;
}

body.social-feed-page-body .social-upload-preview:empty {
    display: none !important;
}

body.social-feed-page-body .social-composer-actions {
    display: flex !important;
    justify-content: flex-start !important;
}

body.social-feed-page-body .social-composer-actions .button,
body.social-feed-page-body .social-empty-state .button,
body.social-feed-page-body .social-feed-filters .button {
    display: inline-flex !important;
    min-height: 2.4rem !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 0.95rem !important;
    border-radius: 9px !important;
    font-size: 0.7rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.04em !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease !important;
}

body.social-feed-page-body .social-composer-actions .button:active,
body.social-feed-page-body .social-empty-state .button:active,
body.social-feed-page-body .social-feed-filters .button:active {
    transform: scale(0.98) !important;
}

body.social-feed-page-body .social-feed-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.55rem !important;
    align-items: center !important;
}

body.social-feed-page-body .social-feed-filters .button {
    border: 1px solid var(--c026) !important;
    background: var(--theme-surface-strong) !important;
    color: var(--c912) !important;
}

body.social-feed-page-body .social-feed-filters .button.active,
body.social-feed-page-body .social-feed-filters .button[aria-current="page"] {
    border-color: var(--c038) !important;
    background: var(--c006) !important;
    color: var(--c007) !important;
}

body.social-feed-page-body .social-feed-list {
    display: grid !important;
    gap: 1rem !important;
}

body.social-feed-page-body .social-post-card > p {
    max-width: 78ch !important;
    margin: 0 !important;
    padding: 1rem 1.15rem !important;
    color: var(--c060) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
}

body.social-feed-page-body .social-post-card .pill {
    min-height: 1.45rem !important;
    padding: 0.16rem 0.52rem !important;
    border: 1px solid var(--c002) !important;
    border-radius: 999px !important;
    background: var(--c003) !important;
    color: var(--c004) !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
}

body.social-feed-page-body .social-photo-grid {
    display: grid !important;
    gap: 0.55rem !important;
    padding: 0 1.15rem 1rem !important;
}

body.social-feed-page-body .social-photo-grid a {
    display: block !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    background: var(--theme-surface-cool) !important;
}

body.social-feed-page-body .social-photo-grid img {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    object-fit: cover !important;
}

body.social-feed-page-body .social-actions-region {
    display: grid !important;
    gap: 0.65rem !important;
    padding: 0.85rem 1.15rem !important;
    border-top: 1px solid var(--c072) !important;
    background: var(--c012) !important;
}

body.social-feed-page-body .social-engagement-summary {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.8rem !important;
    color: var(--c073) !important;
    font-size: 0.78rem !important;
    font-weight: 650 !important;
}

body.social-feed-page-body .social-engagement-summary a {
    color: var(--c910) !important;
    text-decoration: none !important;
}

body.social-feed-page-body .social-facebook-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    align-items: center !important;
}

body.social-feed-page-body .social-admin-action-form,
body.social-feed-page-body .social-like-control > form {
    margin: 0 !important;
}

body.social-feed-page-body .social-action-button {
    display: inline-flex !important;
    min-height: 2.2rem !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    padding: 0 0.75rem !important;
    border: 1px solid var(--c026) !important;
    border-radius: 9px !important;
    background: var(--theme-surface-strong) !important;
    color: var(--c912) !important;
    cursor: pointer !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease !important;
}

body.social-feed-page-body .social-action-button svg {
    width: 1rem !important;
    height: 1rem !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
}

body.social-feed-page-body .social-action-button:hover,
body.social-feed-page-body .social-action-button:focus-visible {
    border-color: var(--c038) !important;
    background: var(--c006) !important;
    color: var(--c007) !important;
    outline: 2px solid transparent !important;
}

body.social-feed-page-body .social-action-button:active {
    transform: scale(0.98) !important;
}

body.social-feed-page-body .social-delete-action {
    border-color: var(--c022) !important;
    background: var(--c249) !important;
    color: var(--c237) !important;
}

body.social-feed-page-body .social-empty-state {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    min-height: 7rem !important;
    padding: 1rem 1.15rem !important;
}

body.social-feed-page-body .social-empty-state h3 {
    margin: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 1rem !important;
    font-weight: 850 !important;
    line-height: 1.25 !important;
}

body.social-feed-page-body .social-empty-state p {
    margin: 0.28rem 0 0 !important;
    color: var(--c073) !important;
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

@media (max-width: 760px) {
    body.social-feed-page-body:not(.auth-page):not(.login-page) .main-panel > .topbar {
        min-height: 0 !important;
        padding: 1rem !important;
    }

    body.social-feed-page-body .social-upload-box,
    body.social-feed-page-body .social-empty-state {
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
    }

    body.social-feed-page-body .social-upload-status {
        justify-self: start !important;
        max-width: 100% !important;
    }

    body.social-feed-page-body .social-composer-actions .button,
    body.social-feed-page-body .social-empty-state .button,
body.social-feed-page-body .social-feed-filters .button {
        width: 100% !important;
    }
}

/* Social feed refreshed layout polish */
body.social-feed-page-body .social-feed-page {
    gap: 1.15rem !important;
    padding-bottom: 2rem !important;
}

body.social-feed-page-body .social-composer-card,
body.social-feed-page-body .social-empty-state {
    border-radius: 14px !important;
    box-shadow: none !important;
}

body.social-feed-page-body .social-composer-card .panel-header {
    padding: 1.3rem 1.45rem 1.15rem !important;
}

body.social-feed-page-body .social-composer-form {
    gap: 1rem !important;
    padding: 1.25rem 1.45rem 1.45rem !important;
}

body.social-feed-page-body .social-composer-form .field-group {
    gap: 0.55rem !important;
}

body.social-feed-page-body .social-composer-form input[type="text"] {
    min-height: 2.75rem !important;
    border-radius: 10px !important;
}

body.social-feed-page-body .social-composer-form textarea {
    min-height: 7rem !important;
    border-radius: 10px !important;
}

body.social-feed-page-body .social-upload-box {
    min-height: 6.3rem !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 0.3rem 1rem !important;
    padding: 1rem 1.1rem !important;
    border: 1px dashed var(--c938) !important;
    border-radius: 12px !important;
    background: var(--c012) !important;
}

body.social-feed-page-body .social-upload-box strong {
    font-size: 1rem !important;
}

body.social-feed-page-body .social-upload-box small {
    justify-self: end !important;
    max-width: 34rem !important;
    text-align: right !important;
}

body.social-feed-page-body .social-upload-status {
    align-self: center !important;
    justify-self: end !important;
    min-height: 1.85rem !important;
    padding: 0 0.7rem !important;
    background: var(--theme-surface-strong) !important;
}

body.social-feed-page-body .social-composer-actions {
    padding-top: 0.1rem !important;
}

body.social-feed-page-body .social-composer-actions .button {
    min-height: 2.65rem !important;
    border-radius: 10px !important;
    padding: 0 1.2rem !important;
}

body.social-feed-page-body .social-feed-filters {
    gap: 0.6rem !important;
    margin: 0 !important;
}

body.social-feed-page-body .social-feed-filters .button {
    min-width: 5.8rem !important;
    border-radius: 10px !important;
}

body.social-feed-page-body .social-empty-state {
    min-height: 6.6rem !important;
    padding: 1.35rem 1.45rem !important;
}

@media (max-width: 760px) {
    body.social-feed-page-body .social-composer-card .panel-header,
    body.social-feed-page-body .social-composer-form,
    body.social-feed-page-body .social-empty-state {
        padding-inline: 1rem !important;
    }

    body.social-feed-page-body .social-upload-box small,
    body.social-feed-page-body .social-upload-status {
        justify-self: start !important;
        text-align: left !important;
    }
}

/* Celebrations page product polish */
body.celebrations-page-body:not(.auth-page):not(.login-page) .main-panel {
    background: var(--c068) !important;
}

body.celebrations-page-body:not(.auth-page):not(.login-page) .main-panel > .topbar {
    min-height: 92px !important;
    padding: 1.05rem 1.25rem !important;
    border: 1px solid var(--c071) !important;
    border-radius: 12px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body.celebrations-page-body:not(.auth-page):not(.login-page) .main-panel > .topbar h1 {
    color: var(--theme-ink-strong) !important;
    font-size: 1.38rem !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    line-height: 1.08 !important;
}

body.celebrations-page-body .celebrations-page {
    display: grid !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-bottom: 2.5rem !important;
}

body.celebrations-page-body .celebrations-stats,
body.celebrations-page-body .celebrations-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    margin: 0 !important;
}

body.celebrations-page-body .celebrations-stats .metric-card {
    min-height: 5.8rem !important;
    padding: 0.95rem 1rem !important;
    border: 1px solid var(--c079) !important;
    border-radius: 12px !important;
    background: var(--theme-surface-strong) !important;
    color: var(--theme-ink-strong) !important;
    box-shadow: none !important;
}

body.celebrations-page-body .celebrations-stats .metric-card p {
    margin: 0 0 0.3rem !important;
    color: var(--c073) !important;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.075em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.celebrations-page-body .celebrations-stats .metric-card strong {
    display: block !important;
    color: var(--c082) !important;
    font-size: 1.6rem !important;
    font-weight: 850 !important;
    line-height: 1 !important;
}

body.celebrations-page-body .celebrations-stats .metric-card small {
    display: block !important;
    margin-top: 0.45rem !important;
    color: var(--c101) !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

body.celebrations-page-body .celebrations-panel {
    overflow: hidden !important;
    min-height: 16rem !important;
    padding: 0 !important;
    border: 1px solid var(--c071) !important;
    border-radius: 12px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body.celebrations-page-body .celebrations-panel .panel-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    margin: 0 !important;
    padding: 1rem 1.15rem !important;
    border-bottom: 1px solid var(--c072) !important;
    background: var(--theme-surface-strong) !important;
}

body.celebrations-page-body .celebrations-panel .eyebrow {
    margin: 0 0 0.28rem !important;
    color: var(--c073) !important;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.075em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.celebrations-page-body .celebrations-panel h3 {
    margin: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 1.04rem !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
}

body.celebrations-page-body .celebrations-panel .side-list {
    display: grid !important;
    gap: 0.65rem !important;
    padding: 1rem 1.15rem !important;
}

body.celebrations-page-body .celebrations-panel .side-list-item {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.28rem !important;
    min-height: 4rem !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0.85rem 0.95rem !important;
    border: 1px solid var(--c079) !important;
    border-radius: 10px !important;
    background: var(--theme-surface-strong) !important;
    color: var(--theme-ink-strong) !important;
    text-align: left !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease !important;
}

body.celebrations-page-body .celebrations-panel .side-list-item:hover,
body.celebrations-page-body .celebrations-panel .side-list-item:focus-visible {
    border-color: var(--c038) !important;
    background: var(--c030) !important;
    outline: 2px solid transparent !important;
}

body.celebrations-page-body .celebrations-panel .side-list-item:active {
    transform: scale(0.995) !important;
}

body.celebrations-page-body .celebrations-panel .side-list-item > div {
    display: grid !important;
    gap: 0.3rem !important;
    min-width: 0 !important;
}

body.celebrations-page-body .celebrations-panel .side-list-item strong {
    margin: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 0.9rem !important;
    font-weight: 850 !important;
    line-height: 1.25 !important;
    text-align: left !important;
}

body.celebrations-page-body .celebrations-panel .side-list-item small {
    margin: 0 !important;
    color: var(--c101) !important;
    font-size: 0.72rem !important;
    font-weight: 750 !important;
    letter-spacing: 0.055em !important;
    line-height: 1.35 !important;
    text-align: left !important;
    text-transform: uppercase !important;
}

body.celebrations-page-body .celebration-avatar {
    display: none !important;
}

body.celebrations-page-body .celebration-empty-state {
    display: grid !important;
    gap: 0.25rem !important;
    min-height: 7rem !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 1rem !important;
    border: 1px dashed var(--c026) !important;
    border-radius: 10px !important;
    background: var(--c030) !important;
    color: var(--c073) !important;
    text-align: center !important;
}

body.celebrations-page-body .celebration-empty-state strong {
    color: var(--theme-ink-strong) !important;
    font-size: 0.92rem !important;
    font-weight: 850 !important;
}

body.celebrations-page-body .celebration-empty-state span {
    color: var(--c073) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
}

@media (max-width: 920px) {
    body.celebrations-page-body .celebrations-stats,
    body.celebrations-page-body .celebrations-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 760px) {
    body.celebrations-page-body:not(.auth-page):not(.login-page) .main-panel > .topbar {
        min-height: 0 !important;
        padding: 1rem !important;
    }
}

/* Celebrations refreshed layout polish */
body.celebrations-page-body .celebrations-page {
    gap: 1.15rem !important;
    padding-bottom: 2rem !important;
}

body.celebrations-page-body .celebrations-stats,
body.celebrations-page-body .celebrations-grid {
    gap: 1rem !important;
}

body.celebrations-page-body .celebrations-stats .metric-card {
    min-height: 6.35rem !important;
    padding: 1.15rem 1.25rem !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

body.celebrations-page-body .celebrations-stats .metric-card strong {
    font-size: 1.75rem !important;
}

body.celebrations-page-body .celebrations-panel {
    min-height: 20.5rem !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

body.celebrations-page-body .celebrations-panel .panel-header {
    padding: 1.3rem 1.45rem 1.05rem !important;
}

body.celebrations-page-body .celebrations-panel .side-list {
    gap: 0.8rem !important;
    padding: 1.1rem 1.45rem 1.45rem !important;
}

body.celebrations-page-body .celebrations-panel .side-list-item {
    min-height: 4.75rem !important;
    padding: 0.95rem 1rem !important;
    border-radius: 11px !important;
    background: var(--theme-surface-strong) !important;
}

body.celebrations-page-body .celebrations-panel .side-list-item strong {
    font-size: 0.95rem !important;
}

body.celebrations-page-body .celebrations-panel .side-list-item small {
    color: var(--c939) !important;
    letter-spacing: 0.04em !important;
}

body.celebrations-page-body .celebration-empty-state {
    border-radius: 11px !important;
}

@media (max-width: 760px) {
    body.celebrations-page-body .celebrations-panel .panel-header,
    body.celebrations-page-body .celebrations-panel .side-list {
        padding-inline: 1rem !important;
    }

    body.celebrations-page-body .celebrations-panel {
        min-height: 0 !important;
    }
}


/* Supervisor reviews table color normalization */
body.supervisor-evaluation-page .supervisor-review-table,
body.supervisor-evaluation-page .supervisor-review-table table,
body.supervisor-evaluation-page .supervisor-review-table thead,
body.supervisor-evaluation-page .supervisor-review-table tbody,
body.supervisor-evaluation-page .supervisor-review-table tr {
    background: var(--theme-surface-strong) !important;
}

body.supervisor-evaluation-page .supervisor-review-table thead th {
    background: var(--theme-surface-strong) !important;
    box-shadow: inset 0 -1px 0 var(--c079) !important;
}

body.supervisor-evaluation-page .supervisor-review-table tbody td {
    background: var(--theme-surface-strong) !important;
    box-shadow: inset 0 -1px 0 var(--c084) !important;
}

body.supervisor-evaluation-page .supervisor-review-table tbody tr:last-child td {
    box-shadow: none !important;
}

@media (hover: hover) and (pointer: fine) {
    body.supervisor-evaluation-page .supervisor-review-table tbody tr:hover td {
        background: var(--c012) !important;
    }
}

/* Submission tracker employee cell final alignment */
body.evaluation-submission-tracker-page .evaluation-tracker-table th:first-child,
body.evaluation-submission-tracker-page .evaluation-tracker-table td:first-child {
    text-align: left !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-table td:first-child {
    padding-left: 0.8rem !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-employee-cell {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: start !important;
    align-items: start !important;
    gap: 0.32rem !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-employee-link,
body.evaluation-submission-tracker-page .evaluation-tracker-employee-cell small {
    display: block !important;
    justify-self: start !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: left !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-employee-link,
body.evaluation-submission-tracker-page .evaluation-tracker-employee-link:link,
body.evaluation-submission-tracker-page .evaluation-tracker-employee-link:visited {
    color: var(--theme-ink-strong) !important;
    font-family: inherit !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
    text-transform: none !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-employee-link:hover,
body.evaluation-submission-tracker-page .evaluation-tracker-employee-link:focus-visible {
    color: var(--c919) !important;
    outline: 2px solid transparent !important;
    text-decoration: none !important;
}

body.evaluation-submission-tracker-page .evaluation-tracker-employee-cell small {
    color: var(--c073) !important;
    font-size: 0.74rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
    text-transform: none !important;
}

/* HR Helpdesk product polish */
body.helpdesk-page-body:not(.auth-page):not(.login-page) .main-panel {
    background: var(--c068) !important;
}

body.helpdesk-page-body:not(.auth-page):not(.login-page) .main-panel > .topbar {
    min-height: 92px !important;
    padding: 1.05rem 1.25rem !important;
    border: 1px solid var(--c071) !important;
    border-radius: 12px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body.helpdesk-page-body:not(.auth-page):not(.login-page) .main-panel > .topbar h1 {
    margin: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 1.45rem !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    line-height: 1.08 !important;
}

body.helpdesk-page-body .helpdesk-page {
    display: grid !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body.helpdesk-page-body .helpdesk-summary {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)) !important;
    gap: 0.9rem !important;
    width: 100% !important;
}

body.helpdesk-page-body .helpdesk-stat-card {
    min-height: 7.2rem !important;
    display: grid !important;
    align-content: center !important;
    gap: 0.25rem !important;
    padding: 1.1rem 1.25rem !important;
    border: 1px solid var(--c071) !important;
    border-radius: 12px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body.helpdesk-page-body .helpdesk-stat-card span,
body.helpdesk-page-body .helpdesk-stat-card small {
    color: var(--c073) !important;
    font-size: 0.78rem !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
}

body.helpdesk-page-body .helpdesk-stat-card strong {
    color: var(--theme-ink-strong) !important;
    font-size: 2rem !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
}

body.helpdesk-page-body .helpdesk-request-panel,
body.helpdesk-page-body .helpdesk-tickets-panel,
body.helpdesk-page-body .helpdesk-detail-panel,
body.helpdesk-page-body .helpdesk-review-panel {
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid var(--c071) !important;
    border-radius: 12px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

body.helpdesk-page-body .helpdesk-request-panel .panel-header,
body.helpdesk-page-body .helpdesk-tickets-panel .panel-header,
body.helpdesk-page-body .helpdesk-detail-panel .panel-header,
body.helpdesk-page-body .helpdesk-review-panel .panel-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    margin: 0 !important;
    padding: 1rem 1.25rem !important;
    border-bottom: 1px solid var(--c057) !important;
    background: var(--c012) !important;
}

body.helpdesk-page-body .helpdesk-request-panel .eyebrow,
body.helpdesk-page-body .helpdesk-tickets-panel .eyebrow,
body.helpdesk-page-body .helpdesk-detail-panel .eyebrow,
body.helpdesk-page-body .helpdesk-review-panel .eyebrow {
    margin: 0 0 0.25rem !important;
    color: var(--c073) !important;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.075em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.helpdesk-page-body .helpdesk-request-panel h3,
body.helpdesk-page-body .helpdesk-tickets-panel h3,
body.helpdesk-page-body .helpdesk-detail-panel h3,
body.helpdesk-page-body .helpdesk-review-panel h3 {
    margin: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 1.04rem !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    text-wrap: balance !important;
}

body.helpdesk-page-body .helpdesk-form {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.1rem 1.25rem !important;
    padding: 1.25rem !important;
}

body.helpdesk-page-body .helpdesk-form .field-group,
body.helpdesk-page-body .helpdesk-review-panel .field-group {
    display: grid !important;
    gap: 0.55rem !important;
    margin: 0 !important;
}

body.helpdesk-page-body .helpdesk-field-subject,
body.helpdesk-page-body .helpdesk-field-description,
body.helpdesk-page-body .helpdesk-form-actions {
    grid-column: 1 / -1 !important;
    max-width: none !important;
}

body.helpdesk-page-body .helpdesk-field-subject {
    max-width: min(100%, 38rem) !important;
}

body.helpdesk-page-body .helpdesk-form label,
body.helpdesk-page-body .helpdesk-review-panel label {
    margin: 0 !important;
    color: var(--c073) !important;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.075em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

body.helpdesk-page-body .helpdesk-form input,
body.helpdesk-page-body .helpdesk-form select,
body.helpdesk-page-body .helpdesk-form textarea,
body.helpdesk-page-body .helpdesk-review-panel input,
body.helpdesk-page-body .helpdesk-review-panel select,
body.helpdesk-page-body .helpdesk-review-panel textarea {
    width: 100% !important;
    min-height: 2.85rem !important;
    padding: 0.75rem 0.9rem !important;
    border: 1px solid var(--c026) !important;
    border-radius: 10px !important;
    background: var(--theme-surface-strong) !important;
    color: var(--theme-ink-strong) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease !important;
}

body.helpdesk-page-body .helpdesk-form textarea,
body.helpdesk-page-body .helpdesk-review-panel textarea {
    min-height: 8.25rem !important;
    resize: vertical !important;
}

body.helpdesk-page-body .helpdesk-form input:focus,
body.helpdesk-page-body .helpdesk-form select:focus,
body.helpdesk-page-body .helpdesk-form textarea:focus,
body.helpdesk-page-body .helpdesk-review-panel input:focus,
body.helpdesk-page-body .helpdesk-review-panel select:focus,
body.helpdesk-page-body .helpdesk-review-panel textarea:focus {
    border-color: var(--c027) !important;
    box-shadow: 0 0 0 3px var(--c028) !important;
    outline: 2px solid transparent !important;
}

body.helpdesk-page-body .helpdesk-form-actions,
body.helpdesk-page-body .helpdesk-review-panel .form-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.7rem !important;
    align-items: center !important;
    margin: 0 !important;
    padding-top: 0.25rem !important;
}

body.helpdesk-page-body .helpdesk-form-actions .button,
body.helpdesk-page-body .helpdesk-review-panel .form-actions .button {
    width: fit-content !important;
    min-width: 0 !important;
    min-height: 2.75rem !important;
    padding: 0 1.05rem !important;
    border-radius: 999px !important;
}

body.helpdesk-page-body .helpdesk-tickets-panel .table-wrap {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.helpdesk-page-body .helpdesk-tickets-panel table {
    min-width: 52rem !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

body.helpdesk-page-body .helpdesk-tickets-panel table th {
    padding: 0.78rem 1rem !important;
    border-bottom: 1px solid var(--c057) !important;
    background: var(--theme-surface-cool) !important;
    color: var(--c073) !important;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.075em !important;
    text-transform: uppercase !important;
}

body.helpdesk-page-body .helpdesk-tickets-panel table td {
    padding: 0.9rem 1rem !important;
    border-top: 0 !important;
    border-bottom: 1px solid var(--c253) !important;
    color: var(--c101) !important;
    font-size: 0.84rem !important;
    font-weight: 650 !important;
    vertical-align: middle !important;
}

body.helpdesk-page-body .helpdesk-tickets-panel tbody tr:hover td {
    background: var(--c030) !important;
}

body.helpdesk-page-body .helpdesk-tickets-panel tbody tr:last-child td {
    border-bottom: 0 !important;
}

body.helpdesk-page-body .helpdesk-tickets-panel td strong {
    color: var(--theme-ink-strong) !important;
    font-size: 0.9rem !important;
    font-weight: 850 !important;
    line-height: 1.25 !important;
}

body.helpdesk-page-body .helpdesk-tickets-panel .muted-copy {
    display: inline-block !important;
    margin-top: 0.2rem !important;
    color: var(--theme-slate-muted) !important;
    font-size: 0.74rem !important;
    font-weight: 650 !important;
}

body.helpdesk-page-body .pill {
    min-height: 1.55rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.16rem 0.55rem !important;
    border: 1px solid var(--c026) !important;
    border-radius: 999px !important;
    background: var(--c030) !important;
    color: var(--c430) !important;
    font-size: 0.7rem !important;
    font-weight: 850 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}

body.helpdesk-page-body .pill.priority-high,
body.helpdesk-page-body .pill.priority-urgent {
    border-color: var(--c022) !important;
    background: var(--c086) !important;
    color: var(--c024) !important;
}

body.helpdesk-page-body .pill.priority-low,
body.helpdesk-page-body .pill.status-resolved,
body.helpdesk-page-body .pill.status-closed {
    border-color: var(--c002) !important;
    background: var(--c003) !important;
    color: var(--c004) !important;
}

body.helpdesk-page-body .pill.status-in_progress,
body.helpdesk-page-body .pill.status-waiting {
    border-color: var(--c008) !important;
    background: var(--c009) !important;
    color: var(--c010) !important;
}

body.helpdesk-page-body .employee-section-action {
    min-height: 2rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.35rem 0.75rem !important;
    border: 1px solid var(--c026) !important;
    border-radius: 999px !important;
    background: var(--theme-surface-strong) !important;
    color: var(--c430) !important;
    font-size: 0.78rem !important;
    font-weight: 850 !important;
    text-decoration: none !important;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease !important;
}

body.helpdesk-page-body .employee-section-action:hover,
body.helpdesk-page-body .employee-section-action:focus-visible {
    border-color: var(--c038) !important;
    background: var(--c006) !important;
    color: var(--c007) !important;
    outline: 2px solid transparent !important;
}

body.helpdesk-page-body .helpdesk-empty-cell {
    height: 8rem !important;
    padding: 1.25rem !important;
    background: var(--c012) !important;
    text-align: center !important;
}

body.helpdesk-page-body .helpdesk-empty-cell strong,
body.helpdesk-page-body .helpdesk-empty-cell span {
    display: block !important;
}

body.helpdesk-page-body .helpdesk-empty-cell strong {
    color: var(--theme-ink-strong) !important;
    font-size: 0.92rem !important;
    font-weight: 850 !important;
}

body.helpdesk-page-body .helpdesk-empty-cell span {
    margin-top: 0.3rem !important;
    color: var(--c073) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
}

body.helpdesk-page-body .helpdesk-detail-page {
    gap: 1rem !important;
}

body.helpdesk-page-body .helpdesk-detail-panel .employee-detail-table {
    margin: 0 !important;
}

body.helpdesk-page-body .helpdesk-detail-panel .employee-detail-table th,
body.helpdesk-page-body .helpdesk-detail-panel .employee-detail-table td {
    padding: 0.95rem 1.25rem !important;
    border-bottom: 1px solid var(--c253) !important;
    vertical-align: top !important;
}

body.helpdesk-page-body .helpdesk-detail-panel .employee-detail-table th {
    width: 12rem !important;
    background: var(--c012) !important;
    color: var(--c073) !important;
    font-size: 0.68rem !important;
    font-weight: 850 !important;
    letter-spacing: 0.075em !important;
    text-transform: uppercase !important;
}

body.helpdesk-page-body .helpdesk-detail-panel .employee-detail-table td {
    color: var(--c101) !important;
    font-size: 0.9rem !important;
    font-weight: 650 !important;
    line-height: 1.5 !important;
}

body.helpdesk-page-body .helpdesk-detail-panel .employee-detail-table tr:last-child th,
body.helpdesk-page-body .helpdesk-detail-panel .employee-detail-table tr:last-child td {
    border-bottom: 0 !important;
}

body.helpdesk-page-body .helpdesk-review-panel {
    max-width: 42rem !important;
}

body.helpdesk-page-body .helpdesk-review-panel form {
    display: grid !important;
    gap: 1rem !important;
    padding: 1.25rem !important;
}

@media (max-width: 920px) {
    body.helpdesk-page-body .helpdesk-form {
        grid-template-columns: 1fr !important;
    }

    body.helpdesk-page-body .helpdesk-field-subject {
        max-width: none !important;
    }
}

@media (max-width: 760px) {
    body.helpdesk-page-body:not(.auth-page):not(.login-page) .main-panel > .topbar {
        min-height: 0 !important;
        padding: 1rem !important;
    }

    body.helpdesk-page-body .helpdesk-request-panel .panel-header,
    body.helpdesk-page-body .helpdesk-tickets-panel .panel-header,
    body.helpdesk-page-body .helpdesk-detail-panel .panel-header,
    body.helpdesk-page-body .helpdesk-review-panel .panel-header {
        align-items: flex-start !important;
        flex-direction: column !important;
        padding: 1rem !important;
    }

    body.helpdesk-page-body .helpdesk-form,
    body.helpdesk-page-body .helpdesk-review-panel form {
        padding: 1rem !important;
    }

    body.helpdesk-page-body .helpdesk-detail-panel .employee-detail-table th,
    body.helpdesk-page-body .helpdesk-detail-panel .employee-detail-table td {
        display: block !important;
        width: 100% !important;
        padding: 0.85rem 1rem !important;
    }

body.helpdesk-page-body .helpdesk-detail-panel .employee-detail-table th {
        padding-bottom: 0.25rem !important;
        border-bottom: 0 !important;
    }
}

/* Project-wide table background repair: make table headers fill rounded wrappers. */
body:not(.auth-page):not(.login-page) .table-wrap,
body:not(.auth-page):not(.login-page) .responsive-table {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    background: var(--theme-surface-strong) !important;
    scrollbar-gutter: auto !important;
}

body:not(.auth-page):not(.login-page) .table-wrap table,
body:not(.auth-page):not(.login-page) .responsive-table table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: var(--theme-surface-strong) !important;
}

body:not(.auth-page):not(.login-page) .table-wrap thead,
body:not(.auth-page):not(.login-page) .responsive-table thead,
body:not(.auth-page):not(.login-page) .table-wrap thead tr,
body:not(.auth-page):not(.login-page) .responsive-table thead tr {
    background: var(--theme-surface-cool) !important;
}

body:not(.auth-page):not(.login-page) .table-wrap thead th,
body:not(.auth-page):not(.login-page) .responsive-table thead th {
    background: var(--theme-surface-cool) !important;
    background-clip: padding-box !important;
}

body:not(.auth-page):not(.login-page) .table-wrap thead th:first-child,
body:not(.auth-page):not(.login-page) .responsive-table thead th:first-child {
    border-top-left-radius: inherit !important;
}

body:not(.auth-page):not(.login-page) .table-wrap thead th:last-child,
body:not(.auth-page):not(.login-page) .responsive-table thead th:last-child {
    border-top-right-radius: inherit !important;
}

/* Add Employee workspace polish */
body.employee-add-page-body .employee-profile-form-page {
    display: grid !important;
    gap: 0.85rem !important;
}

body.employee-add-page-body:not(.auth-page):not(.login-page) .main-panel > .topbar {
    align-items: center !important;
    min-height: 0 !important;
    margin-bottom: 1rem !important;
    padding: 1rem 1.15rem !important;
    border: 1px solid var(--design-line) !important;
    border-radius: 8px !important;
    background: var(--design-surface) !important;
    box-shadow: none !important;
}

body.employee-add-page-body .topbar-copy {
    gap: 0.35rem !important;
}

body.employee-add-page-body .topbar h1 {
    font-size: clamp(1.35rem, 2vw, 1.75rem) !important;
}

body.employee-add-page-body .employee-form-hero-v4 {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    min-height: 0 !important;
    padding: 1rem 1.15rem !important;
    border: 1px solid var(--design-line) !important;
    border-radius: 8px !important;
    background: var(--design-surface) !important;
    box-shadow: none !important;
}

body.employee-add-page-body .employee-form-hero-main {
    align-items: center !important;
    gap: 0.85rem !important;
}

body.employee-add-page-body .employee-form-hero-avatar {
    width: 2.75rem !important;
    height: 2.75rem !important;
    border: 1px solid var(--c587) !important;
    border-radius: 8px !important;
    background: var(--c261) !important;
    color: var(--design-primary-dark) !important;
    font-size: 1.15rem !important;
}

body.employee-add-page-body .employee-form-hero-copy {
    gap: 0.28rem !important;
}

body.employee-add-page-body .employee-form-hero-copy h2 {
    font-size: clamp(1.25rem, 2vw, 1.75rem) !important;
    line-height: 1.12 !important;
}

body.employee-add-page-body .employee-form-hero-meta {
    gap: 0.45rem !important;
}

body.employee-add-page-body .employee-form-hero-meta span {
    min-height: 1.55rem !important;
    padding: 0 0.55rem !important;
    border-color: var(--design-line) !important;
    border-radius: 999px !important;
    background: var(--c030) !important;
    color: var(--design-muted) !important;
    font-size: 0.74rem !important;
    font-weight: 750 !important;
}

body.employee-add-page-body .employee-form-hero-actions {
    gap: 0.65rem !important;
}

body.employee-add-page-body .employee-form-hero-actions .button {
    min-height: 2.5rem !important;
    padding: 0 0.95rem !important;
    border-radius: 8px !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.04em !important;
}

body.employee-add-page-body .employee-form-workbench {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
    align-items: start !important;
}

body.employee-add-page-body .employee-form-nav-v4 {
    position: sticky !important;
    top: 0.75rem !important;
    z-index: 8 !important;
    padding: 0.55rem !important;
    border: 1px solid var(--design-line) !important;
    border-radius: 8px !important;
    background: var(--design-surface) !important;
    box-shadow: none !important;
}

body.employee-add-page-body .employee-form-nav-v4 .employee-top-tabs {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    overflow-x: auto !important;
    padding: 0 !important;
}

body.employee-add-page-body .employee-form-nav-v4 .employee-top-tabs a {
    flex: 0 0 auto !important;
    min-height: 2.25rem !important;
    padding: 0.52rem 0.8rem !important;
    border: 1px solid var(--design-line) !important;
    border-radius: 8px !important;
    background: var(--design-surface) !important;
    color: var(--design-muted) !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

body.employee-add-page-body .employee-form-nav-v4 .employee-top-tabs a:first-child {
    border-color: var(--c587) !important;
    background: var(--c261) !important;
    color: var(--design-primary-dark) !important;
}

body.employee-add-page-body .employee-form-card-v4 {
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.employee-add-page-body .employee-form-layout-v4 {
    display: grid !important;
    gap: 0.85rem !important;
}

body.employee-add-page-body .employee-form-required-strip {
    gap: 0.4rem !important;
    padding: 0.75rem 0.85rem !important;
    border: 1px solid var(--design-line) !important;
    border-radius: 8px !important;
    background: var(--c030) !important;
}

body.employee-add-page-body .employee-form-required-strip strong,
body.employee-add-page-body .employee-form-required-strip span,
body.employee-add-page-body .section-badge {
    min-height: 1.45rem !important;
    padding: 0 0.45rem !important;
    font-size: 0.68rem !important;
    font-weight: 750 !important;
}

body.employee-add-page-body .employee-form-layout-v4 .employee-form-section-v2 {
    padding: 1rem !important;
    border: 1px solid var(--design-line) !important;
    border-radius: 8px !important;
    background: var(--design-surface) !important;
    box-shadow: none !important;
}

body.employee-add-page-body .employee-form-layout-v4 .employee-form-section-v2:nth-of-type(even) {
    background: var(--design-surface) !important;
}

body.employee-add-page-body .employee-form-layout-v4 .employee-form-section-copy {
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0.3rem !important;
    margin-bottom: 0.85rem !important;
    padding-bottom: 0.65rem !important;
    border-bottom: 1px solid var(--design-line-soft) !important;
}

body.employee-add-page-body .employee-form-layout-v4 .employee-form-section-copy h4 {
    font-size: 1rem !important;
    line-height: 1.2 !important;
}

body.employee-add-page-body .employee-form-layout-v4 .grid-form {
    grid-template-columns: repeat(3, minmax(12rem, 1fr)) !important;
    gap: 0.8rem !important;
}

body.employee-add-page-body .employee-form-layout-v4 .field-group {
    gap: 0.35rem !important;
}

body.employee-add-page-body .employee-form-layout-v4 .field-group label {
    color: var(--design-ink) !important;
    font-size: 0.78rem !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.employee-add-page-body .employee-form-layout-v4 .field-group input:not([type="checkbox"]),
body.employee-add-page-body .employee-form-layout-v4 .field-group select,
body.employee-add-page-body .employee-form-layout-v4 .field-group textarea {
    min-height: 2.55rem !important;
    border: 1px solid var(--design-line) !important;
    border-radius: 8px !important;
    background: var(--design-surface) !important;
}

body.employee-add-page-body .employee-form-layout-v4 .checkbox-field {
    min-height: 2.55rem !important;
    border-radius: 8px !important;
    background: var(--c030) !important;
}

@media (max-width: 980px) {
    body.employee-add-page-body .employee-form-hero-v4,
    body.employee-add-page-body:not(.auth-page):not(.login-page) .main-panel > .topbar {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    body.employee-add-page-body .employee-form-hero-actions {
        width: 100% !important;
    }

    body.employee-add-page-body .employee-form-hero-actions .button {
        flex: 1 1 10rem !important;
    }

    body.employee-add-page-body .employee-form-layout-v4 .grid-form {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 680px) {
    body.employee-add-page-body .employee-form-layout-v4 .grid-form {
        grid-template-columns: 1fr !important;
    }
}

/* My Payroll self-service page final polish. */
html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .main-panel {
    background: var(--theme-bg) !important;
}

html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .main-panel > .topbar {
    min-height: 5.4rem !important;
    margin: 0 0 1rem !important;
    padding: 1.05rem 1.25rem !important;
    border: 1px solid var(--c014) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .topbar-copy .eyebrow,
html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .panel-header .eyebrow,
html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .metric-card p {
    color: var(--theme-ink-muted) !important;
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
    text-transform: none !important;
}

html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .main-panel > .topbar h1 {
    margin: 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 1.55rem !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    line-height: 1.15 !important;
}

html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .my-payroll-page {
    display: grid !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: none !important;
}

html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .my-payroll-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.9rem !important;
    margin: 0 !important;
}

html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .my-payroll-stats .metric-card {
    min-height: 6.1rem !important;
    padding: 1rem 1.1rem !important;
    border: 1px solid var(--c014) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .my-payroll-stats .metric-card strong {
    display: block !important;
    margin-top: 0.42rem !important;
    color: var(--theme-ink-strong) !important;
    font-size: 1.42rem !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    line-height: 1.1 !important;
}

html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .my-payroll-stats .metric-card small {
    display: block !important;
    margin-top: 0.52rem !important;
    color: var(--theme-ink-muted) !important;
    font-size: 0.82rem !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
}

html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .my-payroll-table-panel {
    width: min(100%, 68rem) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid var(--c014) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
}

html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .my-payroll-table-panel .panel-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    margin: 0 !important;
    padding: 1rem 1.15rem !important;
    border-bottom: 1px solid var(--c084) !important;
}

html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .my-payroll-table-panel h3 {
    margin: 0.2rem 0 0 !important;
    color: var(--theme-ink-strong) !important;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
}

html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .my-payroll-table-panel .muted-note {
    max-width: 22rem !important;
    color: var(--theme-ink-muted) !important;
    font-size: 0.82rem !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
    text-align: right !important;
}

html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .my-payroll-table-panel .table-wrap {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow-x: auto !important;
}

html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .my-payroll-table-panel table {
    width: 100% !important;
    min-width: 58rem !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: fixed !important;
}

html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .my-payroll-table-panel th,
html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .my-payroll-table-panel td {
    height: 3.9rem !important;
    padding: 0.78rem 0.9rem !important;
    border-bottom: 1px solid var(--c084) !important;
    color: var(--theme-ink) !important;
    font-size: 0.86rem !important;
    letter-spacing: 0 !important;
    line-height: 1.35 !important;
    vertical-align: middle !important;
}

html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .my-payroll-table-panel th {
    height: 2.65rem !important;
    background: var(--theme-surface-cool) !important;
    color: var(--theme-ink-muted) !important;
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    text-transform: none !important;
}

html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .my-payroll-table-panel tbody tr:last-child td {
    border-bottom: 0 !important;
}

html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .my-payroll-table-panel td,
html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .my-payroll-table-panel td strong {
    font-weight: 500 !important;
}

html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .my-payroll-table-panel td small {
    display: inline-flex !important;
    min-height: 1.35rem !important;
    align-items: center !important;
    margin-left: 0.42rem !important;
    padding: 0 0.45rem !important;
    border: 1px solid var(--c026) !important;
    border-radius: 999px !important;
    background: var(--theme-surface-cool) !important;
    color: var(--c103) !important;
    font-size: 0.72rem !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .my-payroll-table-panel .employee-section-action,
html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .my-payroll-table-panel .employee-section-action:hover,
html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .my-payroll-table-panel .employee-section-action:focus-visible {
    display: inline-flex !important;
    min-width: 4.6rem !important;
    height: 2.35rem !important;
    min-height: 2.35rem !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 0.8rem !important;
    border: 1px solid var(--c026) !important;
    border-radius: 8px !important;
    background: var(--theme-surface-strong) !important;
    box-shadow: none !important;
    color: var(--theme-brand-teal) !important;
    font-size: 0.82rem !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    text-transform: none !important;
    transform: none !important;
    transition: none !important;
}

@media (max-width: 980px) {
    html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .my-payroll-stats {
        grid-template-columns: 1fr !important;
    }

    html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .my-payroll-table-panel {
        width: 100% !important;
    }
}

@media (max-width: 720px) {
    html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .my-payroll-table-panel .panel-header {
        display: grid !important;
    }

    html body.payroll-page.my-payroll-body:not(.auth-page):not(.login-page) .my-payroll-table-panel .muted-note {
        max-width: none !important;
        text-align: left !important;
    }
}





