:root {
    --bg: #f6f7f8;
    --white: #fff;
    --ink: #20302e;
    --muted: #77817f;
    --line: #e8edeb;
    --green: #196b52;
    --green-dark: #10513d;
    --green-soft: #eaf3ee;
    --sidebar: 244px;
    --radius: 14px;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--ink);
    font-size: 14px;
    font-synthesis: none;
}
.employee-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    margin: 0;
    width: min(540px, 100vw);
    height: 100dvh;
    max-height: 100dvh;
    max-width: 100vw;
    border: 0;
    border-radius: 0;
    padding: 24px;
    overflow-y: auto;
    color: var(--ink);
    box-shadow: -12px 0 60px #20302e22;
}
.employee-drawer::backdrop,
.global-search-dialog::backdrop {
    background: #122c2655;
}
body:has(dialog[open]) {
    overflow: hidden;
}
.drawer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.quick-editor h2 {
    font-size: 25px;
    margin: 8px 0;
}
.quick-editor > p {
    color: var(--muted);
    margin-bottom: 24px;
}
.quick-editor .field {
    margin-bottom: 18px;
}
.quick-feedback:not(:empty) {
    margin: 12px 0;
    padding: 12px;
    background: var(--green-soft);
    border-radius: 8px;
}
.quick-history {
    border-top: 1px solid var(--line);
    margin-top: 24px;
    padding-top: 16px;
}
.quick-history small,
.operator-people small,
.global-results small {
    display: block;
    color: var(--muted);
}
.quick-save {
    position: sticky;
    bottom: -24px;
    background: white;
    padding: 16px 0;
    z-index: 1;
}
.global-search-dialog {
    width: min(660px, 94vw);
    max-height: 85dvh;
    border: 0;
    border-radius: 16px;
    padding: 24px;
    color: var(--ink);
}
.global-results a {
    display: block;
    padding: 12px;
    border-radius: 8px;
    margin: 4px 0;
}
.global-results a:hover,
.global-results a:focus {
    background: var(--green-soft);
    outline: 2px solid var(--green);
}
.global-results h3,
.global-results h2 {
    margin: 20px 12px 6px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.operator-people {
    padding: 0;
    list-style: none;
}
.operator-people li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.planning-undo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    margin-bottom: 12px;
    background: var(--green-soft);
    border-radius: 8px;
}
.duplicate-warning {
    display: block;
    padding: 8px;
    margin-top: 8px;
    background: #fff5dc;
    font-size: 12px;
    border-radius: 7px;
    white-space: normal;
}
.duplicate-warning select {
    width: 100%;
    margin-top: 6px;
    min-width: 160px;
    font-size: 12px;
}
.planning-bulk-bar {
    flex-wrap: wrap;
}
[data-check-person] .field-error {
    max-width: 540px;
    white-space: pre-line;
}
[data-plan-new][hidden],
[data-plan-existing][hidden] {
    display: none;
}
@media (max-width: 600px) {
    .employee-drawer {
        padding: 18px;
    }
    .quick-save {
        bottom: -18px;
    }
    .global-search-trigger kbd {
        display: none;
    }
    .planning-bulk-bar .actions {
        width: 100%;
        flex-wrap: wrap;
    }
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--bg);
    line-height: 1.5;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
select,
textarea {
    font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
    -webkit-tap-highlight-color: transparent;
}
button {
    cursor: pointer;
}
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    vertical-align: middle;
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1 {
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -1.1px;
    font-weight: 650;
    margin-bottom: 10px;
}
h2 {
    font-size: 18px;
    font-weight: 620;
    letter-spacing: -0.35px;
    margin-bottom: 12px;
}
h3 {
    font-size: 16px;
}
p {
    line-height: 1.7;
}
input,
select,
textarea {
    background: #fff;
    border: 1px solid #dbe3df;
    border-radius: 8px;
    min-height: 44px;
    padding: 11px 13px;
    color: var(--ink);
    width: 100%;
    outline: none;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}
input:focus,
select:focus,
textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px #196b5218;
}
input::placeholder,
textarea::placeholder {
    color: #909995;
}
select {
    padding-right: 28px;
}
textarea {
    resize: vertical;
    line-height: 1.65;
}
input[type="checkbox"] {
    width: 19px;
    min-height: 19px;
    accent-color: var(--green);
}
:focus-visible {
    outline: 3px solid #53a48b;
    outline-offset: 4px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 0;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: fixed;
    top: -50px;
    left: 20px;
    background: var(--green);
    color: #fff;
    padding: 12px;
    z-index: 100;
}
.skip-link:focus {
    top: 10px;
}
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar);
    background: #fff;
    border-right: 1px solid var(--line);
    padding: 34px 22px 0;
    display: flex;
    flex-direction: column;
    z-index: 20;
}
.brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 16px;
    margin-bottom: 52px;
}
.brand-mark {
    font-size: 43px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: -5px;
    color: var(--green-dark);
}
.brand-mark span {
    color: #51a57f;
}
.brand-caption {
    font-size: 10px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 12px;
}
.nav-label {
    padding: 0 15px;
    margin-bottom: 17px;
    color: #a1aaa5;
    font-size: 9px;
    letter-spacing: 1.7px;
    font-weight: 700;
}
.nav-item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 13px 16px;
    color: #6e7b75;
    border-radius: 9px;
    margin: 5px 0;
    font-weight: 550;
    font-size: 13px;
}
.nav-item:hover {
    background: #f7f9f7;
    color: var(--green);
}
.nav-item.active {
    color: var(--green);
    background: var(--green-soft);
    font-weight: 650;
}
.nav-dot {
    width: 5px;
    height: 5px;
    background: var(--green);
    border-radius: 50%;
    margin-left: auto;
}
.sidebar-bottom {
    margin-top: auto;
    padding-top: 70px;
}
.workspace-note {
    font-size: 11px;
    font-weight: 600;
    padding: 18px 13px 10px;
    line-height: 1.7;
}
.workspace-note p {
    color: #96a09a;
    font-weight: 400;
    font-size: 11px;
    margin: 9px 0 20px;
}
.status-dot {
    width: 6px;
    height: 6px;
    display: inline-block;
    background: #69b38f;
    border-radius: 100%;
    margin-right: 6px;
}
.legacy-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    font-size: 11px;
    color: #7b8880;
    border-top: 1px solid var(--line);
}
.legacy-link svg {
    width: 14px;
}
.user-panel {
    border-top: 1px solid var(--line);
    margin: 15px -22px 0;
    padding: 20px 17px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-panel strong {
    font-size: 11px;
    display: block;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-panel small {
    font-size: 10px;
    color: var(--muted);
}
.user-panel form {
    margin-left: auto;
}
.avatar {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--green-soft);
    color: var(--green);
    border-radius: 11px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}
.avatar.soft {
    background: #f0f2ef;
    font-size: 10px;
}
.avatar.large {
    width: 76px;
    height: 76px;
    font-size: 25px;
    border-radius: 22px;
    background: #fff;
}
.app {
    margin-left: var(--sidebar);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.topbar {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.breadcrumb {
    font-size: 11px;
    color: #98a09b;
    display: flex;
    gap: 14px;
    align-items: center;
}
.breadcrumb a {
    color: #526259;
}
.breadcrumb span {
    color: #ccd3ce;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}
.environment {
    background: #fff6e4;
    color: #8e6b21;
    padding: 5px 9px;
    border-radius: 5px;
    font-size: 10px;
}
.date-label {
    font-size: 11px;
    color: #89928c;
}
.mobile-menu {
    display: none !important;
}
main {
    padding: 38px 40px 46px;
    max-width: 1700px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
    outline: none;
}
.app-footer {
    padding: 18px 40px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    color: #a0a9a2;
    font-size: 10px;
}
.page-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-bottom: 32px;
}
.page-heading p {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 0;
}
.eyebrow {
    font-size: 9px;
    letter-spacing: 1.8px;
    font-weight: 700;
    color: #83918a;
    margin-bottom: 10px;
}
.count-pill {
    display: inline-flex;
    vertical-align: middle;
    padding: 5px 10px;
    background: #e7eee8;
    color: #718075;
    line-height: 1;
    font-size: 12px;
    border-radius: 7px;
    margin-left: 13px;
    letter-spacing: 0;
}
.actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 11px 16px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
    min-height: 42px;
    transition:
        background 0.15s,
        transform 0.15s;
}
.button svg {
    width: 15px;
    height: 15px;
}
.button.primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 2px 3px #20372a0a;
}
.button.primary:hover {
    background: var(--green-dark);
}
.button.secondary {
    background: #fff;
    border-color: #e0e6e2;
    color: #526157;
}
.button.secondary:hover {
    border-color: #aabdaf;
    background: #f9fbf9;
}
.button.small {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 10px;
}
.button.full {
    width: 100%;
}
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    width: 36px;
    height: 36px;
    color: #7d8b80;
    border-radius: 7px;
}
.icon-button:hover {
    background: var(--green-soft);
    color: var(--green);
}
.icon-button svg {
    width: 17px;
    height: 17px;
}
.intro-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #edf4ef;
    border: 1px solid #e3ece5;
    border-radius: var(--radius);
    margin-bottom: 26px;
}
.intro-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #deece2;
    color: #42745a;
    display: flex;
    align-items: center;
    justify-content: center;
}
.intro-strip strong {
    font-size: 12px;
    font-weight: 600;
}
.intro-strip p {
    font-size: 11px;
    color: #7e9081;
    margin: 4px 0 0;
}
.intro-strip > a {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #537b60;
    font-size: 10px;
    font-weight: 600;
}
.intro-strip > a svg {
    width: 14px;
}
.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 2px 3px #314b3b02;
}
.filter-bar {
    display: flex;
    gap: 12px;
    padding: 21px 24px;
    border-bottom: 1px solid var(--line);
    align-items: center;
}
.search-field {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 420px;
    flex: 1;
}
.search-field svg {
    position: absolute;
    left: 13px;
    width: 17px;
    color: #99a59c;
}
.search-field input {
    padding-left: 40px;
    font-size: 11px;
    background: #fbfcfb;
    min-height: 40px;
}
.filter-bar select {
    max-width: 250px;
    font-size: 11px;
    min-height: 40px;
}
.filter-bar .year-filter {
    max-width: 92px;
    font-size: 11px;
    min-height: 40px;
}
.filter-bar .button {
    min-height: 40px;
}
.table-scroll {
    overflow-x: auto;
    border-radius: inherit;
}
table {
    border-collapse: collapse;
    width: 100%;
    text-align: left;
    font-size: 12px;
}
th {
    font-size: 9px;
    color: #92a096;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 15px 24px;
    background: #fdfefd;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
td {
    padding: 19px 24px;
    border-bottom: 1px solid #f0f3f0;
    vertical-align: middle;
    color: #647267;
    font-size: 11px;
}
tbody tr:last-child td {
    border-bottom: 0;
}
tbody tr:hover {
    background: #fbfcfa;
}
td:first-child {
    max-width: 410px;
    min-width: 230px;
}
td:nth-child(2) {
    max-width: 360px;
}
td:last-child {
    width: 42px;
    padding-left: 8px;
}
td small {
    display: block;
    font-size: 10px;
    color: #98a29a;
    margin-top: 5px;
}
td .record-name {
    font-size: 12px;
    color: #3a4a3e;
    font-weight: 600;
    line-height: 1.7;
}
.record-name:hover {
    color: var(--green);
    text-decoration: underline;
}
.number-value {
    font-size: 14px;
    font-weight: 600;
    color: #586b59;
}
.badge {
    display: inline-block;
    border-radius: 5px;
    padding: 5px 9px;
    white-space: nowrap;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.6;
}
.badge.green {
    background: #ebf5ed;
    color: #44875a;
}
.badge.neutral {
    background: #f0f3ef;
    color: #85907f;
}
.badge.amber {
    background: #fff5e7;
    color: #a87d42;
}
.badge-row {
    display: flex;
    gap: 8px;
    margin: 15px 0 20px;
}
.row-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border: 1px solid #e9eee8;
    border-radius: 7px;
    color: #99a895;
    background: #fff;
}
.row-arrow:hover {
    border-color: var(--green);
    color: var(--green);
}
.row-arrow svg {
    width: 13px;
    height: 13px;
}
.pagination {
    border-top: 1px solid var(--line);
    padding: 17px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #939e95;
    font-size: 10px;
}
.pagination nav {
    display: flex;
    align-items: center;
    gap: 13px;
}
.page-number {
    padding: 0 3px;
    font-size: 10px;
}
.person {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tabular {
    font-variant-numeric: tabular-nums;
}
.text-link {
    font-size: 11px;
    font-weight: 600;
    color: var(--green);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.text-link svg {
    width: 14px;
}
.text-link:hover {
    text-decoration: underline;
}
.text-button {
    border: 0;
    background: transparent;
    padding: 6px 0;
    font-size: 10px;
    font-weight: 600;
}
.danger {
    color: #b7665d;
}
.muted {
    color: var(--muted);
}
.back-link {
    display: inline-block;
    color: #7f8e82;
    font-size: 11px;
    margin-bottom: 22px;
}
.detail-title {
    font-size: 27px;
    line-height: 1.35;
    max-width: 820px;
}
.dot-separator {
    padding: 0 8px;
    color: #bac3ba;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 34px;
}
.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 21px 24px;
}
.stat > span {
    color: #8a968c;
    font-size: 10px;
}
.stat strong {
    display: block;
    font-size: 29px;
    color: #3c5142;
    margin-top: 9px;
    font-weight: 550;
    letter-spacing: -0.5px;
}
.stat strong small {
    font-size: 11px;
    font-weight: 400;
    color: #99a296;
    letter-spacing: 0;
}
.stat .stat-text {
    font-size: 18px;
    letter-spacing: -0.2px;
    padding-top: 7px;
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 26px 0 16px;
}
.section-heading h2 {
    margin: 0;
}
.section-heading > .muted {
    font-size: 10px;
}
.section-heading > svg {
    color: #8a9d8d;
}
.sub-count {
    font-size: 11px;
    color: #9aaa9a;
    margin-left: 8px;
}
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.padded {
    padding: 25px;
}
.padded .section-heading {
    margin-top: 0;
}
.add-participants {
    margin-top: 24px;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #68766b;
    font-size: 11px;
    font-weight: 550;
    margin-bottom: 19px;
    min-width: 0;
}
.field input,
.field select,
.field textarea {
    font-size: 12px;
    font-weight: 400;
}
.required {
    color: #5a9c77;
}
.hint {
    font-size: 10px;
    color: #99a294;
    margin: 12px 0 0;
}
.issue-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: #eaf2ec;
    border: 1px solid #dfe9e1;
    padding: 27px 29px;
    border-radius: var(--radius);
    margin-top: 26px;
}
.issue-panel h2 {
    margin: 0 0 8px;
}
.issue-panel p {
    margin: 0;
    color: #768b79;
    font-size: 11px;
}
.inline-form {
    display: flex;
    align-items: center;
    gap: 5px;
}
.inline-form select {
    font-size: 10px;
    min-height: 34px;
    padding: 7px;
    max-width: 225px;
}
.warning-text {
    color: #b07b36 !important;
}
.preline {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.topic-list {
    display: grid;
    gap: 16px;
}
.topic {
    display: flex;
    gap: 24px;
    padding: 27px;
}
.topic-number {
    font-size: 14px;
    color: #5c8a6d;
    background: #edf4ee;
    border-radius: 9px;
    align-self: flex-start;
    min-width: 39px;
    padding: 9px;
    text-align: center;
}
.topic-content {
    flex: 1;
    min-width: 0;
}
.topic-content > p {
    font-size: 12px;
    color: #5b6b5f;
    line-height: 1.9;
    margin-bottom: 20px;
}
.topic-meta {
    display: flex;
    gap: 25px;
    font-size: 10px;
    color: #97a08f;
}
.topic-meta strong {
    color: #67846b;
    margin-left: 7px;
}
.topic-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    border-radius: 9px;
    margin-bottom: 25px;
    font-size: 12px;
}
.notice.success {
    background: #e8f5ec;
    color: #367849;
    border: 1px solid #d2e9d8;
}
.notice.error {
    background: #fff0ed;
    color: #a45143;
    border: 1px solid #f0d2ca;
    flex-wrap: wrap;
}
.notice.info {
    background: #eef2f1;
    color: #788c7e;
    font-size: 11px;
    margin-top: 24px;
}
.notice-close {
    margin-left: auto;
    border: 0;
    background: none;
    font-size: 20px;
    color: inherit;
    cursor: pointer;
}
.notice svg {
    width: 17px;
}
.record-form {
    max-width: 1100px;
}
.form-section {
    display: grid;
    grid-template-columns: 240px 1fr;
    padding: 28px;
    margin-bottom: 22px;
    gap: 34px;
}
.section-intro h2 {
    font-size: 15px;
}
.section-intro p {
    font-size: 11px;
    color: #94a08f;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 22px;
}
.field.wide {
    grid-column: 1/-1;
}
.checkbox-field {
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
}
.invalid input,
.invalid textarea,
.invalid select {
    border-color: #cf8f7f;
}
.field-error {
    color: #b76c59;
    font-size: 10px;
}
.form-save-bar {
    position: sticky;
    bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px 24px;
    box-shadow: 0 5px 30px #31453412;
    z-index: 10;
}
.form-save-bar > span {
    font-size: 10px;
    color: #8c9989;
}
.details-list {
    display: grid;
    grid-template-columns: 115px 1fr;
    gap: 15px;
    font-size: 12px;
    margin: 22px 0 0;
}
.details-list dt {
    color: #97a28f;
    font-size: 11px;
}
.details-list dd {
    margin: 0;
    color: #54674f;
    overflow-wrap: anywhere;
}
.account-details {
    margin-top: 25px;
}
.account-details summary {
    font-size: 13px;
    font-weight: 600;
    color: #687c60;
    cursor: pointer;
}
.account-details > p {
    margin-top: 25px;
}
.profile-summary {
    padding: 30px;
    background: #edf4ef;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 27px;
}
.profile-summary strong {
    font-size: 45px;
    line-height: 1.2;
    font-weight: 500;
    color: #497257;
    display: block;
}
.profile-summary p {
    font-size: 12px;
    color: #8c9d89;
    margin: 8px 0;
}
.empty-state {
    text-align: center;
    padding: 65px 30px;
    color: #738570;
}
.empty-state > svg {
    width: 35px;
    height: 35px;
    margin-bottom: 20px;
    color: #a7bc9f;
}
.empty-state h2 {
    font-size: 18px;
}
.empty-state p {
    font-size: 12px;
    color: #97a490;
    margin-bottom: 24px;
}
.empty-state.compact {
    padding: 32px 15px;
}
.empty-state.compact p {
    margin-bottom: 0;
}
.error-card {
    background: #fff;
    padding: 45px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    max-width: 850px;
}
.error-card h1 {
    font-size: 26px;
}
.login-app {
    margin-left: 0;
    justify-content: center;
    background: radial-gradient(ellipse at 0% 0%, #e3efe4, transparent 65%), #f6f8f5;
}
.login-app main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 30px;
}
.login-card {
    max-width: 440px;
    width: 100%;
    background: #fff;
    border: 1px solid #e2ebe0;
    border-radius: 20px;
    padding: 42px;
    box-shadow: 0 15px 60px #32543308;
}
.login-card .brand {
    padding: 0;
    margin-bottom: 36px;
}
.login-card h1 {
    font-size: 27px;
}
.login-card > .muted {
    font-size: 12px;
    margin-bottom: 25px;
}
.demo-note {
    font-size: 10px;
    color: #9da796;
    text-align: center;
    margin: 20px 0 0;
}
.autocomplete {
    position: relative;
}
.autocomplete ul {
    position: absolute;
    z-index: 15;
    left: 0;
    right: 0;
    top: 100%;
    margin: 5px 0 0;
    list-style: none;
    padding: 6px;
    background: #fff;
    border: 1px solid #d5e2d1;
    border-radius: 9px;
    box-shadow: 0 8px 30px #28442c1c;
    max-height: 280px;
    overflow: auto;
}
.autocomplete li {
    padding: 11px;
    font-size: 11px;
    border-radius: 5px;
    cursor: pointer;
}
.autocomplete li:hover,
.autocomplete li[aria-selected="true"] {
    background: var(--green-soft);
}
dialog {
    border: 1px solid #d7e3d3;
    border-radius: 16px;
    padding: 30px;
    width: min(480px, 90vw);
    color: var(--ink);
    box-shadow: 0 25px 90px #142e2a25;
}
dialog::backdrop {
    background: #162f285c;
    backdrop-filter: blur(3px);
}
dialog p {
    color: #7c8b73;
    font-size: 13px;
}
dialog .actions {
    justify-content: flex-end;
    margin-top: 28px;
}
@media (min-width: 1600px) {
    main {
        padding-top: 48px;
    }
    .page-heading {
        margin-bottom: 38px;
    }
    td {
        padding-top: 23px;
        padding-bottom: 23px;
    }
}
@media (max-width: 1200px) {
    :root {
        --sidebar: 210px;
    }
    .sidebar {
        padding-left: 16px;
        padding-right: 16px;
    }
    .user-panel {
        margin-left: -16px;
        margin-right: -16px;
    }
    .topbar {
        padding: 0 26px;
    }
    main {
        padding: 28px 26px;
    }
    th,
    td {
        padding-left: 18px;
        padding-right: 18px;
    }
    .page-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .page-heading .actions {
        gap: 8px;
    }
    .form-section {
        grid-template-columns: 190px 1fr;
        gap: 20px;
    }
    .issue-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}
@media (max-width: 900px) {
    :root {
        --sidebar: 190px;
    }
    .sidebar {
        padding: 26px 12px 0;
    }
    .nav-item {
        padding: 13px 11px;
        gap: 10px;
    }
    .brand {
        padding-left: 12px;
    }
    .two-column {
        grid-template-columns: 1fr;
    }
    .form-section {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .form-section .section-intro p {
        margin-bottom: 5px;
    }
    .sidebar-bottom .workspace-note {
        display: none;
    }
    .stats-grid {
        gap: 10px;
    }
    .stat {
        padding: 18px;
    }
    .stat .stat-text {
        font-size: 14px;
    }
    .filter-bar {
        flex-wrap: wrap;
        padding: 16px;
    }
    .search-field {
        min-width: 190px;
    }
    .topbar-right .date-label {
        display: none;
    }
    .intro-strip > a {
        display: none;
    }
    .topic {
        gap: 15px;
        padding: 20px;
    }
    .topic-actions {
        min-width: 70px;
    }
    .page-heading p {
        max-width: 600px;
    }
    .topbar {
        padding: 0 22px;
    }
    main {
        padding: 28px 22px;
    }
}
@media (max-width: 680px) {
    :root {
        --sidebar: 244px;
    }
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s;
    }
    .menu-open .sidebar {
        transform: translateX(0);
        box-shadow: 20px 0 80px #1e3b2930;
    }
    .app {
        margin-left: 0;
    }
    .mobile-menu {
        display: inline-flex !important;
    }
    .topbar {
        height: 64px;
        padding: 0 18px;
        gap: 12px;
    }
    .breadcrumb {
        margin-right: auto;
        gap: 10px;
        font-size: 10px;
    }
    .environment {
        font-size: 8px;
    }
    .topbar-right {
        gap: 0;
    }
    main {
        padding: 25px 17px 35px;
    }
    h1 {
        font-size: 27px;
    }
    .page-heading {
        gap: 18px;
        margin-bottom: 24px;
    }
    .page-heading .actions {
        width: 100%;
    }
    .button {
        padding: 10px 13px;
    }
    .intro-strip {
        padding: 16px;
        gap: 12px;
        margin-bottom: 20px;
    }
    .intro-strip p {
        font-size: 10px;
    }
    .filter-bar {
        gap: 9px;
    }
    .search-field {
        max-width: none;
        flex-basis: 100%;
    }
    .filter-bar select {
        max-width: 100%;
        flex: 1;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        margin-bottom: 22px;
    }
    .stat:last-child {
        grid-column: 1/-1;
    }
    .stat strong {
        font-size: 24px;
    }
    .section-heading {
        align-items: flex-start;
    }
    .section-heading > .muted {
        max-width: 145px;
        font-size: 9px;
        text-align: right;
    }
    .topic {
        flex-wrap: wrap;
    }
    .topic-content {
        flex-basis: calc(100% - 60px);
    }
    .topic-actions {
        flex-direction: row;
        width: 100%;
        justify-content: flex-end;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-section {
        padding: 22px;
    }
    .form-save-bar {
        bottom: 6px;
        padding: 13px;
        flex-wrap: wrap;
        gap: 10px;
    }
    .form-save-bar > span {
        display: none;
    }
    .form-save-bar > .actions {
        width: 100%;
        justify-content: flex-end;
    }
    .detail-title {
        font-size: 23px;
    }
    .padded {
        padding: 22px;
    }
    .pagination {
        padding: 14px;
        font-size: 9px;
        gap: 10px;
    }
    .pagination nav {
        gap: 6px;
    }
    .pagination .button {
        padding: 6px 8px;
        font-size: 9px;
    }
    .app-footer {
        padding: 15px 18px;
        font-size: 8px;
    }
    .issue-panel {
        padding: 23px;
    }
    .issue-panel .button {
        white-space: normal;
    }
    .login-card {
        padding: 30px 25px;
    }
    .login-app main {
        padding: 20px;
    }
    .back-link {
        margin-bottom: 15px;
    }
    .error-card {
        padding: 26px;
    }
    .topic-meta {
        gap: 16px;
    }
    .inline-form select {
        max-width: 165px;
    }
    .account-details summary {
        font-size: 12px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* Keep operational text readable on both office displays and phones. */
:root {
    --muted: #596b63;
}
.nav-item {
    font-size: 14px;
}
.page-heading p {
    font-size: 14px;
}
td {
    font-size: 14px;
}
td .record-name {
    font-size: 14px;
}
td small {
    font-size: 12px;
    color: #64736a;
}
th {
    font-size: 12px;
    color: #52665b;
}
.badge {
    font-size: 12px;
}
.badge.neutral {
    color: #5f705f;
}
.badge.green {
    color: #326d45;
}
.field {
    font-size: 13px;
}
.field input,
.field select,
.field textarea {
    font-size: 14px;
}
.button {
    font-size: 14px;
}
.button.small {
    font-size: 13px;
    min-height: 38px;
}
.topic-content > p {
    font-size: 14px;
}
.section-heading > .muted {
    font-size: 11px;
}
.inline-form select {
    font-size: 12px;
}
.hint {
    font-size: 12px;
    color: #596b63;
}
.details-list {
    font-size: 14px;
}
.details-list dt {
    font-size: 12px;
    color: #6a7c69;
}
.pagination {
    font-size: 13px;
    color: #596b63;
}
.search-field input {
    font-size: 14px;
}
.topic-meta {
    font-size: 12px;
    color: #6d7c64;
}
.stat > span {
    font-size: 12px;
    color: #697c6b;
}
.stat strong small {
    color: #6e7f67;
}
.text-button {
    font-size: 12px;
}
.breadcrumb {
    color: #6f7e72;
}
.eyebrow {
    color: #6d8071;
}
.profile-summary p {
    color: #617862;
}
.issue-panel p {
    font-size: 12px;
    color: #617a65;
}
.intro-strip strong {
    font-size: 13px;
}
.intro-strip p {
    font-size: 12px;
    color: #657d6a;
}
/* Shared form and list ergonomics. */
.page-heading {
    margin-bottom: 24px;
}
.section-intro h2 {
    font-size: 17px;
}
.section-intro p {
    font-size: 13px;
    color: var(--muted);
}
.field-error {
    font-size: 12px;
    color: #9f392b;
}
.notice {
    font-size: 14px;
}
.back-link {
    font-size: 13px;
}
.form-save-bar > span {
    font-size: 13px;
    color: var(--muted);
}
.optional-form-section {
    margin-bottom: 18px;
}
.optional-form-section > summary {
    cursor: pointer;
    padding: 20px 28px;
    font-size: 16px;
    font-weight: 600;
}
.optional-label {
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
    margin-left: 12px;
}
.optional-form-section .form-section {
    margin: 0;
    padding-top: 8px;
}
.optional-form-section .section-intro h2 {
    display: none;
}
.optional-form-section:not([open]):hover {
    border-color: #aec5b9;
}
.record-form .field input::placeholder {
    font-size: 13px;
}
.list-panel > .table-scroll {
    max-height: 68vh;
    border-radius: 0;
    scroll-padding-top: 48px;
}
.list-panel th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f4f7f5;
}
.list-panel td {
    padding-top: 14px;
    padding-bottom: 14px;
}
.list-panel tr:focus-within {
    background: #eef5f1;
}
.sort-heading {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}
.sort-heading:hover {
    color: var(--green);
}
.sort-heading span {
    color: #73877b;
    font-size: 15px;
}
th[aria-sort="ascending"],
th[aria-sort="descending"] {
    color: var(--green);
}
.active-filter-summary {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 24px;
    background: #eef6f1;
    font-size: 13px;
}
.active-filter-summary > span {
    overflow-wrap: anywhere;
    min-width: 0;
}
.active-filter-summary > a {
    flex-shrink: 0;
}
.filter-bar .search-field {
    max-width: 580px;
}
.filter-bar .year-filter,
.filter-bar select {
    font-size: 14px;
}
@media (max-width: 560px) {
    .optional-form-section > summary {
        padding: 18px 16px;
    }
    .optional-label {
        display: block;
        margin: 4px 0 0 17px;
    }
    .active-filter-summary {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .record-form .form-save-bar {
        gap: 12px;
    }
}
/* Search controls preserve the established saved-search workflow. */
.company-picker {
    position: relative;
    width: 100%;
    min-width: 0;
}
.company-picker-native {
    display: none !important;
}
.company-picker > input {
    width: 100%;
    min-width: 0;
}
.company-picker ul {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    z-index: 20;
    list-style: none;
    padding: 6px;
    margin: 0;
    max-height: 270px;
    overflow: auto;
    background: #fff;
    border: 1px solid #cddcd5;
    border-radius: 10px;
    box-shadow: 0 14px 32px #12372b26;
}
.company-picker li {
    cursor: pointer;
    padding: 11px 12px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.company-picker li:hover,
.company-picker li[aria-selected="true"] {
    background: #e9f3ee;
    color: #174f3f;
}
.company-picker ul[hidden] {
    display: none;
}
.company-search-status {
    display: block;
    font-size: 12px;
}
.company-search-status:empty {
    display: none;
}
.filter-bar > .company-picker {
    flex: 1;
    max-width: 330px;
}
.filter-workspace {
    overflow: visible;
}
@media (max-width: 560px) {
    .filter-bar > .company-picker {
        flex-basis: 100%;
        max-width: none;
    }
}
.table-scroll {
    position: relative;
}
.employee-batch-panel {
    margin-bottom: 28px;
}
.employee-batch-heading {
    padding: 22px 24px 0;
    display: flex;
    gap: 16px;
    align-items: start;
    justify-content: space-between;
}
.employee-batch-heading h2 {
    margin: 0 0 6px;
    font-size: 18px;
}
.employee-batch-heading p {
    margin: 0;
    font-size: 13px;
    color: #6c7772;
}
.batch-shared-fields {
    display: flex;
    align-items: end;
    gap: 24px;
    padding: 22px 24px;
}
.batch-shared-fields .field {
    flex: 1;
    max-width: 380px;
}
.batch-shared-fields .hint {
    flex: 1;
    max-width: 400px;
}
.batch-paste-panel {
    margin: 0 24px 20px;
    border: 1px solid #e4eae7;
    border-radius: 10px;
    padding: 12px 16px;
}
.batch-paste-panel summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #225e4e;
}
.batch-paste-panel p {
    font-size: 13px;
    max-width: 850px;
}
.batch-paste-panel textarea {
    font-family: inherit;
}
.batch-paste-panel button {
    margin-top: 12px;
}
.employee-entry-table {
    min-width: 760px;
    table-layout: fixed;
}
.employee-entry-table th:first-child,
.employee-entry-table td:first-child {
    width: 46px;
    padding-left: 16px;
}
.employee-entry-table th:last-child,
.employee-entry-table td:last-child {
    width: 44px;
    padding: 8px;
}
.employee-entry-table th:nth-child(4) {
    width: 146px;
}
.employee-entry-table th:nth-child(5) {
    width: 225px;
}
.employee-entry-table td {
    padding: 10px 7px;
    vertical-align: top;
}
.employee-entry-table th {
    padding: 12px 7px;
}
.employee-entry-table input,
.employee-entry-table select {
    width: 100%;
    min-width: 0;
    padding: 10px 9px;
    font-size: 14px;
    min-height: 42px;
}
.employee-entry-table [aria-invalid="true"] {
    border-color: #bd4b3a;
    background: #fff8f6;
}
.employee-entry-table .batch-row-number {
    padding-top: 23px;
    font-size: 12px;
    color: #7d8982;
}
.batch-remove {
    border: 0;
    background: transparent;
    color: #9b5146;
    font-size: 23px;
    padding: 8px;
    cursor: pointer;
}
.batch-save-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
    padding: 18px 24px;
    background: #f8faf9;
    border-top: 1px solid #e4eae7;
    border-radius: 0 0 16px 16px;
    position: sticky;
    bottom: 0;
    z-index: 3;
}
.batch-save-bar .hint {
    font-size: 12px;
}
.employee-batch-panel .notice {
    margin: 20px 24px;
}
@media (max-width: 900px) {
    .batch-shared-fields {
        flex-wrap: wrap;
        gap: 16px;
    }
    .batch-save-bar {
        flex-wrap: wrap;
    }
    .batch-save-bar .hint {
        order: 3;
        flex-basis: 100%;
    }
    .employee-batch-heading {
        flex-direction: column;
    }
}
@media (max-width: 560px) {
    .batch-shared-fields {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }
    .batch-shared-fields .field {
        max-width: none;
    }
    .batch-save-bar {
        padding: 14px 16px;
        position: static;
    }
    .batch-save-bar > button {
        width: 100%;
    }
    .employee-batch-heading {
        padding: 18px 16px 0;
    }
    .batch-paste-panel {
        margin: 0 16px 16px;
    }
}
.batch-shared-fields {
    gap: 20px;
    padding-top: 18px;
    padding-bottom: 20px;
}
.batch-shared-fields .field {
    margin-bottom: 0;
    max-width: 460px;
}
.batch-shared-fields .hint {
    margin: 0 0 6px;
}
.batch-table-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 24px 14px;
}
.batch-table-heading h3 {
    margin: 0;
    font-size: 15px;
}
.batch-table-heading .hint {
    margin: 0;
}
kbd {
    font: inherit;
    font-size: 11px;
    padding: 2px 5px;
    border: 1px solid #d7e2db;
    border-bottom-width: 2px;
    border-radius: 4px;
    background: #f7faf8;
}
.batch-table-scroll {
    max-height: 52vh;
    border-radius: 0;
    scroll-padding-top: 52px;
}
.employee-entry-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f1f6f3;
}
.employee-entry-table td:first-child {
    min-width: 0;
}
.employee-entry-table tr:focus-within {
    background: #edf5f0;
}
.employee-entry-table .batch-row-filled .batch-row-number {
    color: var(--green);
    font-weight: 600;
}
.employee-entry-table tr {
    scroll-margin-top: 52px;
}
.batch-mobile-label {
    display: none;
}
.batch-remove {
    border-radius: 6px;
    min-width: 32px;
}
.batch-remove:hover {
    background: #fcebe7;
    color: #9d2d1d;
}
.batch-save-bar {
    padding-top: 14px;
    padding-bottom: 14px;
}
.batch-save-bar .batch-progress {
    margin: 0;
    color: var(--green);
}
.batch-progress.has-incomplete {
    color: #915410;
}
@media (max-width: 1100px) {
    .batch-shared-fields .hint {
        flex-basis: 100%;
        max-width: none;
    }
    .batch-shared-fields {
        flex-wrap: wrap;
    }
}
@media (max-width: 760px) {
    .batch-table-heading {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 16px 14px;
    }
    .batch-table-heading .hint {
        display: none;
    }
    .batch-table-scroll {
        max-height: none;
        overflow: visible;
    }
    .employee-entry-table {
        display: block;
        min-width: 0;
    }
    .employee-entry-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
    .employee-entry-table tbody {
        display: grid;
        gap: 14px;
        padding: 0 16px 16px;
    }
    .employee-entry-table tr {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 12px;
        border: 1px solid #dce7e0;
        border-radius: 10px;
        padding: 14px;
    }
    .employee-entry-table td {
        display: block;
        border: 0;
        min-width: 0;
        max-width: none;
        padding: 0;
    }
    .employee-entry-table td.batch-row-number {
        grid-column: 1 / -1;
        padding: 0 0 6px;
        width: auto;
        font-size: 13px;
    }
    .employee-entry-table .batch-row-number::before {
        content: "Osoba ";
    }
    .employee-entry-table td:nth-child(5) {
        grid-column: 1 / -1;
    }
    .employee-entry-table td:last-child {
        position: absolute;
        top: 4px;
        right: 4px;
        width: auto;
        padding: 0;
    }
    .employee-entry-table input,
    .employee-entry-table select {
        font-size: 16px;
        min-height: 44px;
    }
    .batch-mobile-label {
        display: block;
        font-size: 12px;
        color: var(--muted);
        margin-bottom: 6px;
    }
    .batch-save-bar .actions {
        flex-wrap: nowrap;
    }
    .batch-save-bar .batch-progress {
        order: 0;
        flex-basis: 100%;
    }
}
.filter-workspace {
    border-bottom: 1px solid #e4eae7;
}
.saved-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    background: #f8faf9;
    border-radius: 16px 16px 0 0;
}
.saved-filter-loader {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}
.saved-filter-loader label {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.saved-filter-loader select {
    max-width: 380px;
    flex: 1;
    min-width: 120px;
}
.filter-workspace .filter-bar {
    border-bottom: 0;
}
.advanced-filters,
.save-filter-details {
    margin: 0 24px;
}
.advanced-filters summary,
.save-filter-details summary {
    cursor: pointer;
    padding: 11px 0;
    font-size: 14px;
    font-weight: 600;
    color: #225e4e;
}
.advanced-filters summary .count-pill {
    margin-left: 6px;
    font-size: 11px;
}
.advanced-filter-content {
    padding: 12px 0 18px;
}
.filter-options {
    display: grid;
    grid-template-columns: 1.3fr 1.3fr 1fr 0.8fr;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e4eae7;
    margin-bottom: 20px;
}
.filter-options .field,
.filter-condition .field {
    gap: 6px;
    font-size: 12px;
}
.filter-condition {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1.3fr auto;
    gap: 12px;
    align-items: end;
    margin: 12px 0;
}
.filter-condition .condition-remove {
    margin-bottom: 3px;
}
.filter-condition-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-top: 18px;
}
.filter-condition-actions > :last-child {
    margin-left: auto;
}
.save-filter-details {
    border-top: 1px solid #e4eae7;
}
.save-filter-content {
    padding: 4px 0 20px;
}
.save-filter-form {
    display: flex;
    align-items: end;
    gap: 12px;
    margin-bottom: 14px;
}
.save-filter-form .field {
    max-width: 400px;
    flex: 1;
}
.save-filter-form button {
    margin-bottom: 3px;
}
.filter-error {
    background: #fff2ed;
    color: #9f382a;
    margin: 16px 24px;
    padding: 14px;
    border-radius: 8px;
}
.danger-link {
    color: #a84739;
    border: 0;
    background: none;
    cursor: pointer;
    padding: 8px 0;
}
@media (max-width: 900px) {
    .saved-filter-bar {
        align-items: stretch;
        flex-direction: column;
    }
    .filter-options {
        grid-template-columns: 1fr 1fr;
    }
    .filter-condition {
        grid-template-columns: 1fr 1fr;
        background: #f8faf9;
        padding: 12px;
        border-radius: 10px;
    }
    .save-filter-form {
        flex-wrap: wrap;
    }
    .save-filter-form .field {
        flex-basis: 100%;
        max-width: none;
    }
}
@media (max-width: 560px) {
    .saved-filter-bar {
        padding: 16px;
    }
    .saved-filter-loader {
        flex-wrap: wrap;
    }
    .saved-filter-loader label {
        flex-basis: 100%;
    }
    .advanced-filters,
    .save-filter-details {
        margin: 0 16px;
    }
    .filter-options,
    .filter-condition {
        grid-template-columns: 1fr;
    }
    .condition-remove {
        justify-self: start;
    }
    .filter-condition-actions {
        flex-wrap: wrap;
    }
    .filter-condition-actions .hint {
        display: none;
    }
}

/* Training planning dashboard */
.dashboard-heading {
    margin-bottom: 15px;
}
.dashboard-totals {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 25px;
    margin-bottom: 28px;
    color: #596b65;
    font-size: 13px;
}
.dashboard-totals strong {
    color: var(--ink);
    font-weight: 650;
}
.dashboard-totals a:hover {
    color: var(--green);
}
.dashboard-filters {
    display: grid;
    grid-template-columns: minmax(230px, 1.3fr) minmax(155px, 0.7fr) minmax(200px, 1fr) auto;
    gap: 16px;
    padding: 20px;
    align-items: end;
    margin-bottom: 24px;
}
.dashboard-filters .field {
    margin: 0;
    min-width: 0;
}
.dashboard-filters .field > span {
    font-size: 12px;
}
.dashboard-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.dashboard-stat {
    position: relative;
    padding: 22px;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}
.dashboard-stat > span:first-child {
    color: #52645d;
    font-size: 13px;
    font-weight: 550;
}
.dashboard-stat strong {
    font-size: 35px;
    margin: 6px 0 8px;
    line-height: 1.2;
}
.dashboard-stat > small {
    display: block;
    color: #61736b;
    font-size: 12px;
}
.dashboard-stat .stat-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #708578;
    font-size: 19px;
}
.dashboard-stat:hover,
.dashboard-stat.selected {
    border-color: #5f9d81;
    box-shadow: 0 3px 16px #19392b0a;
}
.dashboard-stat.overdue strong {
    color: #b83e36;
}
.dashboard-stat.due strong {
    color: #946115;
}
.dashboard-stat.review strong {
    color: #4d6d8d;
}
.dashboard-upcoming {
    margin-bottom: 32px;
}
.dashboard-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 25px 26px 20px;
    border-bottom: 1px solid var(--line);
}
.dashboard-section-head .eyebrow {
    font-size: 10px;
    margin-bottom: 5px;
}
.dashboard-section-head h2 {
    margin: 0 0 5px;
    font-size: 20px;
}
.dashboard-section-head p,
.dashboard-subtitle {
    color: #62746b;
    margin: 0;
    font-size: 13px;
}
.count-label {
    color: #6b8173;
    font-weight: 450;
    font-size: 17px;
    margin-left: 7px;
}
.upcoming-course {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 26px;
    border-bottom: 1px solid var(--line);
}
.upcoming-course:last-child {
    border-bottom: 0;
}
.course-day {
    flex: 0 0 61px;
    padding: 6px;
    text-align: center;
    border: 1px solid #dce9e1;
    border-radius: 9px;
    color: #255c45;
    background: #f3f8f4;
}
.course-day strong {
    display: block;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.3;
}
.course-day span {
    font-size: 10px;
}
.upcoming-course-info {
    flex: 1;
    min-width: 0;
}
.upcoming-course-info a {
    font-size: 14px;
}
.upcoming-course-info p {
    font-size: 12px;
    margin: 4px 0 0;
    color: #65736d;
}
.upcoming-course-info p > span {
    margin: 0 5px;
}
.upcoming-course-meta {
    text-align: right;
    min-width: 120px;
}
.upcoming-course-meta small {
    display: block;
    font-size: 12px;
    margin-top: 5px;
    color: #65736d;
}
.dashboard-more {
    border-top: 1px solid var(--line);
    padding: 16px 26px;
}
.dashboard-more summary {
    color: var(--green);
    cursor: pointer;
    font-size: 13px;
}
.dashboard-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}
.dashboard-tabs a {
    border: 1px solid #dde5df;
    border-radius: 7px;
    padding: 8px 12px;
    font-size: 12px;
    background: #fff;
    color: #56675d;
}
.dashboard-tabs a span {
    color: #637a6b;
    margin-left: 5px;
}
.dashboard-tabs a:hover {
    border-color: #82a38d;
}
.dashboard-tabs a[aria-current] {
    background: var(--green);
    color: white;
    border-color: var(--green);
}
.dashboard-tabs a[aria-current] span {
    color: #d6e9df;
}
.renewals-table {
    min-width: 900px;
}
.renewals-table td {
    vertical-align: top;
    padding-top: 19px;
    padding-bottom: 19px;
    white-space: normal;
}
.renewals-table td:first-child {
    min-width: 175px;
}
.renewals-table td:nth-child(2) {
    min-width: 165px;
}
.renewals-table td:nth-child(4) {
    min-width: 185px;
    max-width: 270px;
}
.renewals-table td:nth-child(5) {
    min-width: 145px;
    max-width: 230px;
}
.renewals-table td:last-child {
    white-space: nowrap;
}
.renewals-table small,
.dashboard-explanation td small {
    display: block;
    font-size: 12px;
    color: #63736b;
    margin-top: 5px;
    line-height: 1.5;
}
.renewal-date {
    display: block;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    margin-bottom: 7px;
}
.deadline-label {
    display: inline-block;
    border-radius: 5px;
    padding: 2px 7px;
    background: #f0f3f1;
    color: #56695d;
    font-size: 11px;
    line-height: 1.6;
}
.deadline-label.overdue {
    color: #a13a30;
    background: #fff0ed;
}
.deadline-label.due {
    color: #855912;
    background: #fff6e4;
}
.deadline-label.review {
    color: #466886;
    background: #edf3fa;
}
.renewal-date.overdue {
    color: #a13a30;
}
.booking-link {
    color: var(--green);
    font-weight: 550;
}
.dashboard-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 23px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: #65766d;
}
.dashboard-footnote {
    margin: 14px 0 28px;
    color: #65766d;
    font-size: 12px;
    line-height: 1.65;
    max-width: 1000px;
}
.dashboard-explanation {
    margin: 16px 0;
}
.dashboard-explanation > summary {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 550;
    font-size: 14px;
}
.dashboard-explanation[open] > summary {
    border-bottom: 1px solid var(--line);
}
.dashboard-explanation .padded > p {
    font-size: 13px;
    color: #53675a;
    max-width: 1100px;
}
.dashboard-explanation td {
    white-space: normal;
    vertical-align: top;
    font-size: 13px;
}
.dashboard-explanation td:first-child {
    min-width: 160px;
}
.dashboard-explanation td:nth-child(2) {
    min-width: 170px;
}
.dashboard-link-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    max-height: 380px;
    overflow: auto;
}
.dashboard-link-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}
.dashboard-link-list a {
    color: var(--green);
}
.dashboard-link-list small {
    display: block;
    color: #65766d;
}
.renewal-policy-note {
    margin-bottom: 22px;
}
.renewal-policy-note p {
    font-size: 13px;
    color: #5b7162;
    margin: 7px 0 12px;
}
#upcoming,
#renewals {
    scroll-margin-top: 85px;
}
@media (max-width: 1250px) {
    .dashboard-filters {
        grid-template-columns: 1fr 1fr;
    }
    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .dashboard-heading {
        align-items: flex-start;
    }
    .dashboard-totals {
        gap: 8px 16px;
        font-size: 12px;
        margin-bottom: 20px;
    }
    .dashboard-filters {
        grid-template-columns: 1fr;
        padding: 17px;
    }
    .dashboard-stats {
        gap: 10px;
    }
    .dashboard-stat {
        padding: 17px 14px;
    }
    .dashboard-stat > span:first-child {
        font-size: 12px;
    }
    .dashboard-stat strong {
        font-size: 29px;
    }
    .dashboard-stat > small {
        font-size: 11px;
    }
    .dashboard-stat .stat-arrow {
        display: none;
    }
    .dashboard-section-head {
        padding: 20px 17px;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
    .upcoming-course {
        display: grid;
        grid-template-columns: 54px minmax(0, 1fr);
        padding: 16px 17px;
        gap: 12px;
    }
    .course-day {
        width: 54px;
    }
    .upcoming-course-meta {
        grid-column: 2;
        min-width: 0;
        text-align: left;
    }
    .upcoming-course > .button {
        grid-column: 2;
        justify-self: start;
    }
    .dashboard-pagination {
        padding: 16px;
        flex-wrap: wrap;
    }
    .dashboard-explanation > summary {
        padding: 17px;
    }
    .dashboard-explanation .padded {
        padding: 17px;
    }
}

/* Company planning and reversible employee status changes. */
.renewals-toolbar,
.planning-bulk-bar,
.renewal-company-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.renewals-toolbar {
    margin-bottom: 14px;
}
.renewals-view-switch {
    display: flex;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 9px;
    padding: 4px;
    gap: 4px;
}
.renewals-view-switch a {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    color: #52665b;
}
.renewals-view-switch a[aria-current] {
    background: #e5f0e9;
    color: var(--green);
    font-weight: 600;
}
.renewals-page-size,
.renewals-page-size label {
    display: flex;
    gap: 9px;
    align-items: center;
    font-size: 12px;
    color: #63736b;
}
.renewals-page-size select {
    padding: 7px 9px;
    min-height: 34px;
}
.planning-bulk-bar {
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
    background: #f8faf9;
    border-radius: 14px 14px 0 0;
}
.planning-bulk-bar > div {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 12px;
}
.planning-select-all,
.planning-company-select {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.planning-bulk-bar [data-planning-count] {
    color: #667b6d;
}
.planning-form input[type="checkbox"] {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    margin: 3px 0;
}
.renewals-table .renewal-company-group td {
    background: #edf4ef;
    padding: 15px 22px;
    border-top: 1px solid #d9e6dc;
}
.renewal-company-heading strong {
    font-size: 14px;
    color: #214d39;
    overflow-wrap: anywhere;
}
.renewal-company-heading small {
    margin-left: 27px;
    font-size: 11px;
}
.planning-person {
    display: flex;
    gap: 11px;
    align-items: flex-start;
}
.planning-person > div {
    min-width: 0;
}
.renewals-table td:first-child {
    min-width: 230px;
}
.planning-row-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}
.planning-row-actions .text-button {
    font-size: 12px;
    white-space: normal;
    text-align: left;
    color: #596e60;
}
.planning-selected td {
    background: #f1f8f3;
}
.upcoming-companies {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.upcoming-companies a {
    background: #edf4ef;
    color: #325b43;
    border-radius: 5px;
    padding: 3px 7px;
    font-size: 11px;
}
#renewals {
    scroll-margin-top: 20px;
}
@media (max-width: 600px) {
    .renewals-toolbar,
    .planning-bulk-bar {
        align-items: stretch;
        flex-direction: column;
    }
    .renewals-view-switch a {
        flex: 1;
        text-align: center;
    }
    .renewals-page-size {
        justify-content: space-between;
    }
    .planning-bulk-bar {
        padding: 14px 16px;
    }
    .planning-bulk-bar .button {
        white-space: normal;
    }
}
.renewals-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}
.renewals-table th:first-child {
    width: 29%;
}
.renewals-table th:nth-child(2) {
    width: 24%;
}
.renewals-table th:nth-child(3) {
    width: 26%;
}
.renewals-table th:nth-child(4) {
    width: 21%;
}
.renewals-table td:first-child,
.renewals-table td:nth-child(2),
.renewals-table td:nth-child(4),
.renewals-table td:nth-child(5) {
    min-width: 0;
    max-width: none;
}
.renewals-table td,
.renewals-table td:last-child {
    width: auto;
    white-space: normal;
    overflow-wrap: anywhere;
}
.planning-row-actions {
    margin-top: 14px;
    margin-left: 28px;
    gap: 9px;
}
.planning-last-course {
    margin-top: 14px;
    font-size: 12px;
}
.planning-last-course small:first-child {
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.03em;
}
@media (max-width: 760px) {
    .renewals-table,
    .renewals-table tbody {
        display: block;
    }
    .renewals-table thead {
        display: none;
    }
    .renewals-table [data-planning-row] {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        border-bottom: 1px solid var(--line);
        padding: 4px 4px 12px;
    }
    .renewals-table [data-planning-row] td {
        display: block;
        padding: 12px;
        border: 0;
    }
    .renewals-table [data-planning-row] td:first-child,
    .renewals-table [data-planning-row] td:last-child {
        grid-column: 1 / -1;
    }
    .renewals-table [data-planning-row] td:not(:first-child)::before {
        content: attr(data-label);
        display: block;
        font-size: 10px;
        text-transform: uppercase;
        color: #6b7c71;
        letter-spacing: 0.04em;
        margin-bottom: 9px;
    }
    .renewals-table .renewal-company-group,
    .renewals-table .renewal-company-group td {
        display: block;
    }
    .renewals-table .renewal-company-group td {
        padding: 14px 16px;
    }
    .planning-row-actions {
        flex-direction: row;
        gap: 18px;
    }
}
.company-cooperation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 22px;
    margin-bottom: 24px;
}
.planning-feedback {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    max-width: min(430px, calc(100vw - 40px));
    padding: 14px 18px;
    background: #214d39;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 22px #173b2926;
    font-size: 13px;
    pointer-events: none;
}
.planning-feedback.error {
    background: #873d30;
}
[data-supplement-suffix][hidden] {
    display: none;
}
.company-cooperation p {
    margin: 10px 0 0;
    color: #63736b;
    font-size: 13px;
}
.company-cooperation form {
    flex-shrink: 0;
}
@media (max-width: 760px) {
    .company-cooperation {
        flex-direction: column;
        align-items: flex-start;
    }
}
