:root {
    --eh-bg: #F5F7FA;
    --eh-surface: #ffffff;
    --eh-surface-soft: #f8fafc;
    --eh-border: #E5EAF0;
    --eh-border-strong: #cbd5e1;
    --eh-text: #334155;
    --eh-text-strong: #0F172A;
    --eh-muted: #64748B;
    --eh-primary: #0895DD;
    --eh-primary-rgb: 8, 149, 221;
    --eh-primary-600: #047CC0;
    --eh-primary-700: #075F91;
    --eh-primary-soft: rgba(var(--eh-primary-rgb), 0.10);
    --eh-secondary: #27B7E7;
    --eh-secondary-rgb: 39, 183, 231;
    --eh-accent-blue: #0B4D74;
    --eh-info: #38BDF8;
    --eh-success: #22C55E;
    --eh-success-soft: rgba(34, 197, 94, 0.12);
    --eh-warning: #F59E0B;
    --eh-warning-soft: rgba(245, 158, 11, 0.12);
    --eh-danger: #EF4444;
    --eh-danger-soft: rgba(239, 68, 68, 0.10);
    --eh-radius-sm: 8px;
    --eh-radius: 10px;
    --eh-radius-lg: 14px;
    --eh-shadow-sm: 0 8px 18px rgba(15, 23, 42, 0.045);
    --eh-shadow: 0 16px 36px rgba(15, 23, 42, 0.075);
    --eh-shadow-primary: 0 12px 24px rgba(var(--eh-primary-rgb), 0.16);
    --eh-focus: 0 0 0 4px rgba(var(--eh-primary-rgb), 0.16);
    --eh-control-height: 46px;
    --eh-control-padding-x: 14px;
    --eh-control-font-size: 14px;
    --eh-label-font-size: 12px;
    --eh-meta-font-size: 12px;
    --eh-z-content: 1;
    --eh-z-sticky: 100;
    --eh-z-header: 800;
    --eh-z-dropdown: 1200;
    --eh-z-mobile-overlay: 900;
    --eh-z-mobile-nav: 950;
    --eh-z-modal: 2000;
    --eh-z-auth-overlay: 99999;
}

[data-theme="dark"] {
    --eh-bg: #0b1220;
    --eh-surface: #111827;
    --eh-surface-soft: #172033;
    --eh-border: #253044;
    --eh-border-strong: #334155;
    --eh-text: #cbd5e1;
    --eh-text-strong: #f8fafc;
    --eh-muted: #94a3b8;
    --eh-primary: #38BDF8;
    --eh-primary-rgb: 56, 189, 248;
    --eh-primary-600: #7DD3FC;
    --eh-primary-700: #BAE6FD;
    --eh-primary-soft: rgba(var(--eh-primary-rgb), 0.16);
    --eh-secondary: #0EA5E9;
    --eh-secondary-rgb: 14, 165, 233;
    --eh-accent-blue: #7DD3FC;
    --eh-shadow-sm: 0 8px 18px rgba(0, 0, 0, 0.18);
    --eh-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.eh-material-request-layout {
    display: grid;
    grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
    gap: 18px;
    align-items: start;
}

.eh-material-request-form-card {
    max-width: none;
}

.eh-material-request-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.eh-material-request-tabs .eh-tab {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--eh-border);
    border-radius: 8px;
    background: #fff;
    color: var(--eh-text);
    font-weight: 800;
    cursor: pointer;
}

.eh-material-request-tabs .eh-tab.is-active {
    border-color: var(--eh-primary);
    background: var(--eh-primary-soft);
    color: var(--eh-primary-600);
}

.eh-material-request-list {
    display: grid;
    gap: 8px;
}

.eh-material-request-list-table {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--eh-border);
    border-radius: 8px;
    background: #fff;
}

.eh-material-request-list-header,
.eh-material-request-list-row {
    display: grid;
    grid-template-columns: 118px minmax(220px, 1.6fr) minmax(150px, .95fr) 104px 88px;
    gap: 6px;
    align-items: center;
    min-width: 0;
}

.eh-material-request-list-header {
    padding: 7px 9px;
    border-bottom: 1px solid var(--eh-border);
    background: var(--eh-surface-soft);
    color: var(--eh-muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.eh-material-request-list-row {
    min-height: 48px;
    padding: 5px 9px;
    border-top: 1px solid var(--eh-border);
    border-radius: 0;
    background: #fff;
}

.eh-material-request-list-header + .eh-material-request-list-row {
    border-top: 0;
}

.eh-material-request-list-row:hover {
    background: #f8fafc;
}

.eh-material-request-list-row.is-active {
    border-color: var(--eh-primary);
    box-shadow: 0 0 0 2px rgba(var(--eh-primary-rgb), .12);
}

.eh-material-request-list-cell {
    min-width: 0;
    color: var(--eh-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: break-word;
}

.eh-material-request-preview-cell {
    font-weight: 650;
    color: var(--eh-text-strong);
}

.eh-material-request-preview-cell span,
.eh-material-request-reference-cell span,
.eh-material-request-person-cell span {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
}

.eh-material-request-preview-cell span {
    -webkit-line-clamp: 2;
}

.eh-material-request-reference-cell span,
.eh-material-request-person-cell span {
    -webkit-line-clamp: 1;
}

.eh-material-request-status-cell {
    display: flex;
    justify-content: center;
}

.eh-material-request-status-cell .eh-badge {
    justify-content: center;
    min-width: 92px;
    padding-block: 3px;
}

.eh-material-request-date-cell {
    color: var(--eh-text-strong);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.eh-material-request-action-cell {
    display: flex;
    justify-content: flex-end;
}

.eh-material-request-action-btn.eh-btn {
    min-height: 28px;
    height: 28px;
    min-width: 0;
    padding: 0 9px;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.eh-material-request-workflow-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.eh-material-request-workflow-actions .eh-btn {
    min-height: 32px;
    padding: 5px 10px;
    white-space: nowrap;
}

.eh-material-request-items,
.eh-material-request-items-header {
    display: grid;
    gap: 8px;
}

.eh-material-request-items-header {
    grid-template-columns: minmax(200px, 1.4fr) minmax(110px, .65fr) minmax(110px, .6fr) minmax(190px, 1fr) minmax(96px, auto);
    padding: 0 10px;
    color: var(--eh-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.eh-material-request-item-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.35fr) minmax(116px, .65fr) minmax(112px, .58fr) minmax(180px, 1fr) 44px;
    gap: 8px;
    align-items: end;
    padding: 8px 10px;
    border: 1px solid var(--eh-border);
    border-radius: 8px;
    background: #fff;
}

.eh-material-request-item-row .eh-field {
    gap: 3px;
    min-width: 0;
}

.eh-material-request-item-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

.eh-material-request-remove-cell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.eh-material-request-remove-cell .eh-btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    font-size: 18px;
    line-height: 1;
}

.eh-material-request-add-row {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.eh-material-request-add-row .eh-btn {
    flex: 0 0 auto;
    min-width: 44px;
}

.eh-material-request-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--eh-border);
    border-radius: 8px;
    background: #fff;
    min-width: 0;
}

.eh-material-request-card.is-active {
    border-color: var(--eh-primary);
    box-shadow: 0 0 0 2px rgba(var(--eh-primary-rgb), .12);
}

.eh-material-request-card-main {
    display: grid;
    gap: 3px;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.eh-material-request-card-main strong,
.eh-material-request-card-main span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.eh-material-request-number {
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.eh-material-request-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--eh-muted);
    font-size: 12px;
}

.eh-material-request-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.eh-material-request-project-preview {
    border: 1px solid var(--eh-border);
    border-radius: 8px;
    background: var(--eh-surface-soft);
    color: var(--eh-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    padding: 10px 12px;
    overflow-wrap: anywhere;
}

.eh-material-request-project-status {
    display: grid;
    gap: 6px;
}

.eh-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.eh-select-sm {
    min-height: 36px;
    height: 36px;
    padding-block: 6px;
    font-size: 13px;
}

.eh-material-request-items-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    max-width: 100%;
}

.eh-card-header-compact {
    padding: 0;
    border-bottom: 0;
}

.eh-card-title-sm {
    font-size: 16px;
}

.eh-material-request-form-actions {
    gap: 10px;
    justify-content: flex-end;
}

@media (max-width: 980px) {
    .eh-material-request-items-header {
        display: none;
    }

    .eh-material-request-item-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) 44px;
        align-items: end;
    }

    .eh-material-request-item-row .eh-field:first-child,
    .eh-material-request-item-row .eh-field:nth-child(4) {
        grid-column: 1 / -1;
    }

    .eh-material-request-item-label {
        display: block;
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
        font-size: 11px;
    }
}

@media (max-width: 700px) {
    .eh-material-request-item-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 10px;
        background: var(--eh-surface-soft);
    }
    .eh-material-request-remove-cell {
        justify-content: flex-end;
    }
}

@media (max-width: 820px) {
    .eh-material-request-layout {
        grid-template-columns: 1fr;
    }
    .eh-material-request-list-header {
        display: none;
    }
    .eh-material-request-list-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 10px;
    }
    .eh-material-request-list-cell {
        display: grid;
        grid-template-columns: minmax(82px, .34fr) minmax(0, 1fr);
        gap: 8px;
        align-items: center;
    }
    .eh-material-request-list-cell::before {
        content: attr(data-label);
        color: var(--eh-muted);
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
    }
    .eh-material-request-action-cell {
        justify-content: stretch;
    }
    .eh-material-request-action-cell .eh-btn {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .eh-material-request-card {
        padding: 12px;
    }
    .eh-material-request-form-actions,
    .eh-material-request-form-actions .eh-btn,
    .eh-material-request-card-actions .eh-btn,
    .eh-material-request-project-status .eh-btn,
    .eh-material-request-project-status .eh-select,
    .eh-material-request-tabs .eh-tab {
        width: 100%;
    }
    .eh-material-request-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .eh-material-request-list-cell {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .eh-material-request-add-row .eh-btn {
        width: 44px;
    }
}

/* Phase 6.5: operational appointment lists use task-list behavior, not its checkbox column. */
.eh-appointments-page .eh-filter-toolbar {
    align-items: end;
}

.eh-appointments-page .eh-filter-toolbar .eh-field {
    min-width: min(180px, 100%);
}

.eh-appointments-page .eh-appointment-filter-search {
    min-width: min(240px, 100%);
}

.eh-appointments-page .eh-btn,
.eh-appointments-page .eh-input,
.eh-appointments-page .eh-select {
    min-height: 44px;
}

.eh-appointments-page .eh-appointment-item {
    grid-template-columns: minmax(116px, 144px) minmax(0, 1fr) auto;
    grid-template-areas: "date main actions";
    align-items: center;
}

.eh-appointments-page .eh-appointment-item > .eh-project-appointment-date {
    grid-area: date;
    min-width: 0;
}

.eh-appointments-page .eh-appointment-item > .eh-task-ui-main {
    grid-area: main;
}

.eh-appointments-page .eh-appointment-item > .eh-task-ui-actions {
    grid-area: actions;
}

@media (max-width: 768px) {
    .eh-appointments-page .eh-filter-toolbar,
    .eh-appointments-page .eh-filter-toolbar .eh-field,
    .eh-appointments-page .eh-filter-toolbar .eh-btn {
        width: 100%;
    }

    .eh-appointments-page .eh-appointment-item {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "date actions"
            "main actions";
        align-items: start;
    }

    .eh-appointments-page .eh-appointment-item > .eh-project-appointment-date {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 8px;
        align-items: baseline;
    }

    .eh-appointments-page .eh-appointment-item > .eh-task-ui-actions {
        align-self: stretch;
        justify-content: flex-start;
    }
}

@media (max-width: 430px) {
    .eh-appointments-page .eh-appointment-item {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "date"
            "main"
            "actions";
    }

    .eh-appointments-page .eh-appointment-item > .eh-task-ui-actions {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }
}

/* Global project appointments overview */
.eh-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin-bottom: 10px;
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 750;
}

.eh-breadcrumb a {
    color: var(--eh-primary-600);
    text-decoration: none;
}

.eh-breadcrumb a:hover,
.eh-breadcrumb a:focus-visible {
    text-decoration: underline;
}

.eh-project-appointments-workspace,
.eh-project-appointments-workspace .eh-card-body {
    min-width: 0;
}

.eh-project-appointments-workspace .eh-card-body {
    display: grid;
    gap: 14px;
}

.eh-project-appointments-page .eh-page-header .eh-btn,
.eh-project-appointments-page .eh-page-header .eh-actions > a,
.eh-project-appointment-filter-reset {
    min-height: 44px;
}

.eh-project-appointment-filter-reset {
    white-space: nowrap;
}

.eh-project-appointment-project-filter {
    min-width: min(280px, 34vw);
}

.eh-project-appointments-workspace .eh-task-status:empty {
    display: none;
}

.eh-project-appointments-page .eh-project-appointment-row {
    grid-template-columns: minmax(112px, 138px) minmax(0, 1fr) auto;
}

.eh-project-appointment-date {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 12px;
    align-self: stretch;
    align-content: center;
    border-right: 1px solid var(--eh-border);
    background: #fbfcfe;
}

.eh-project-appointment-date strong {
    color: var(--eh-text-strong);
    font-size: 13px;
    line-height: 1.3;
}

.eh-project-appointment-date span {
    color: var(--eh-muted);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.35;
}

.eh-project-appointment-title-line,
.eh-project-appointment-project {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
}

.eh-project-appointment-title-line {
    gap: 6px;
}

.eh-project-appointment-project {
    gap: 4px 8px;
    color: var(--eh-text);
    font-size: 12px;
    line-height: 1.35;
}

.eh-project-appointment-project-number {
    color: var(--eh-primary-600);
    font-weight: 900;
}

.eh-project-appointment-project-title {
    min-width: 0;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.eh-project-appointments-page #project-appointments-reload .eh-lucide-icon,
.eh-project-appointments-page #project-appointment-create .eh-lucide-icon,
.eh-project-appointment-row .eh-task-ui-action .eh-lucide-icon {
    width: 17px;
    height: 17px;
}

.eh-project-appointment-row .eh-task-ui-action {
    flex: 0 0 44px;
}

@media (max-width: 1100px) {
    .eh-project-appointment-project-filter {
        min-width: 220px;
    }
}

@media (max-width: 768px) {
    .eh-project-appointments-workspace .eh-card-body {
        gap: 12px;
    }

    .eh-project-appointment-project-filter {
        min-width: 0;
    }

    .eh-project-appointments-page .eh-project-appointment-row {
        grid-template-columns: 112px minmax(0, 1fr) 44px;
    }
}

@media (max-width: 520px) {
    .eh-project-appointments-page .eh-page-header .eh-actions,
    .eh-project-appointments-page .eh-page-header .eh-btn,
    .eh-project-appointments-page .eh-page-header .eh-actions > a {
        width: 100%;
    }

    .eh-project-appointments-page .eh-project-appointment-row {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

    .eh-project-appointment-date {
        display: flex;
        grid-column: 1;
        align-items: baseline;
        gap: 8px;
        padding: 10px 12px 0;
        border-right: 0;
        background: transparent;
    }

    .eh-project-appointment-row .eh-task-ui-main {
        grid-column: 1;
        padding: 8px 12px;
    }

    .eh-project-appointment-row .eh-task-ui-actions {
        grid-column: 1;
        flex-direction: row;
        justify-content: flex-end;
        padding: 0 8px 8px;
    }

    .eh-project-appointment-title-line,
    .eh-project-appointment-project,
    .eh-project-appointment-row .eh-task-ui-meta {
        display: grid;
        gap: 3px;
    }
}

[hidden] {
    display: none !important;
}

.eh-timesheet-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 16px 0;
}

.eh-timesheet-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 8px;
    margin-top: 14px;
}

.eh-timesheet-tabs .eh-tab {
    flex: 0 0 auto;
    border: 1px solid var(--eh-border);
    border-radius: 999px;
    background: var(--eh-surface);
    color: var(--eh-text);
    font-weight: 800;
    padding: 9px 14px;
}

.eh-timesheet-tabs .eh-tab.is-active {
    border-color: rgba(33, 82, 255, .28);
    background: var(--eh-primary-soft);
    color: var(--eh-primary);
}

.eh-timesheet-day-card {
    margin-bottom: 14px;
}

.eh-timesheet-day-summary {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    padding: 0 18px 18px;
}

@media (max-width: 640px) {
    .eh-timesheet-admin-page .eh-table-wrap {
        overflow: visible;
    }

    .eh-timesheet-admin-page .eh-timesheet-table {
        min-width: 0;
    }

    .eh-timesheet-admin-page .eh-timesheet-table thead {
        display: none;
    }

    .eh-timesheet-admin-page .eh-timesheet-table,
    .eh-timesheet-admin-page .eh-timesheet-table tbody,
    .eh-timesheet-admin-page .eh-timesheet-table tr,
    .eh-timesheet-admin-page .eh-timesheet-table td {
        display: block;
        width: 100%;
    }

    .eh-timesheet-admin-page .eh-timesheet-table tr {
        border-bottom: 1px solid var(--eh-border);
        padding: 10px 0;
    }

    .eh-timesheet-admin-page .eh-timesheet-table tr:last-child {
        border-bottom: 0;
    }

    .eh-timesheet-admin-page .eh-timesheet-table td {
        border-bottom: 0;
        padding: 7px 14px;
    }

    .eh-timesheet-admin-page .eh-timesheet-table td::before {
        content: attr(data-label);
        display: block;
        color: var(--eh-muted);
        font-size: .72rem;
        font-weight: 800;
        letter-spacing: .02em;
        margin-bottom: 3px;
        text-transform: uppercase;
    }
}

.eh-timesheet-day-pill {
    min-width: 0;
    border: 1px solid var(--eh-border);
    border-radius: 10px;
    background: var(--eh-surface-soft);
    padding: 10px;
}

.eh-timesheet-day-pill strong,
.eh-timesheet-day-pill span,
.eh-timesheet-day-pill em {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eh-timesheet-day-pill strong {
    color: var(--eh-text-strong);
    font-size: .82rem;
}

.eh-timesheet-day-pill span {
    color: var(--eh-muted);
    font-size: .78rem;
}

.eh-timesheet-day-pill em {
    margin-top: 4px;
    color: var(--eh-text-strong);
    font-size: .82rem;
    font-style: normal;
    font-weight: 900;
}

.eh-timesheet-day-pill.is-positive em {
    color: var(--eh-success);
}

.eh-timesheet-day-pill.is-negative em {
    color: var(--eh-danger);
}

.eh-timesheet-hints {
    margin-bottom: 14px;
}

.eh-timesheet-absence-hint {
    border: 1px solid var(--eh-warning-soft);
    border-radius: 10px;
    background: var(--eh-warning-soft);
    padding: 10px 12px;
}

.eh-timesheet-summary-grid .eh-kpi-card {
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid var(--eh-border);
    border-radius: 14px;
    background: var(--eh-surface);
    box-shadow: var(--eh-shadow-sm);
}

.eh-timesheet-summary-grid .eh-kpi-card span {
    display: block;
    margin-bottom: 6px;
    color: var(--eh-muted);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.eh-timesheet-summary-grid .eh-kpi-card strong {
    display: block;
    color: var(--eh-text-strong);
    font-size: 1.05rem;
    line-height: 1.25;
}

.eh-timesheet-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .85fr);
    align-items: start;
}

.eh-timesheet-entry-list {
    display: grid;
    gap: 10px;
}

.eh-timesheet-pause-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    min-width: 0;
}

.eh-timesheet-pause-option {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-xs);
    background: var(--eh-surface-soft);
    color: var(--eh-text);
    font-size: 13px;
    font-weight: 800;
}

.eh-timesheet-pause-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 auto;
}

.eh-timesheet-pause-option span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.eh-timesheet-net-summary {
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 900;
}

.eh-timesheet-entry-card {
    display: grid;
    grid-template-columns: minmax(120px, .75fr) minmax(0, 1.75fr) minmax(120px, .65fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--eh-border, #d0d5dd);
    border-radius: 8px;
    background: var(--eh-surface, #fff);
}

.eh-timesheet-entry-card strong,
.eh-timesheet-entry-card span {
    display: block;
    min-width: 0;
}

.eh-timesheet-entry-card span {
    color: var(--eh-muted, #667085);
    font-size: .88rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eh-timesheet-source {
    display: inline-block !important;
    margin-top: 4px;
    color: var(--eh-muted);
    font-size: .76rem !important;
    font-weight: 800;
    text-transform: uppercase;
}

.eh-my-calendar-actual {
    margin-top: 6px;
    color: var(--eh-success);
    font-size: .8rem;
    font-weight: 900;
}

.eh-timesheet-table .eh-actions,
.eh-timesheet-entry-card .eh-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.eh-timesheet-admin-page .eh-timesheet-table th,
.eh-timesheet-admin-page .eh-timesheet-table td {
    padding-top: 7px;
    padding-bottom: 7px;
    line-height: 1.25;
    vertical-align: middle;
}

.eh-timesheet-status-cell {
    text-align: center;
}

.eh-timesheet-status-cell .eh-badge {
    justify-content: center;
    min-width: 96px;
}

.eh-timesheet-hour-cell {
    color: var(--eh-text-strong);
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.eh-timesheet-action-cell {
    width: 1%;
    white-space: nowrap;
}

.eh-timesheet-admin-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.eh-timesheet-table .eh-timesheet-admin-actions,
.eh-timesheet-admin-actions {
    flex-wrap: nowrap;
}

.eh-timesheet-admin-actions .eh-btn {
    min-width: 0;
    min-height: 30px;
    padding: 4px 9px;
    justify-content: center;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .eh-timesheet-admin-page .eh-timesheet-hour-cell,
    .eh-timesheet-admin-page .eh-timesheet-status-cell,
    .eh-timesheet-admin-page .eh-timesheet-action-cell {
        text-align: left;
        width: auto;
        white-space: normal;
    }

    .eh-timesheet-admin-page .eh-timesheet-admin-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .eh-timesheet-admin-page .eh-timesheet-action-btn {
        flex: 0 1 auto;
    }
}

.eh-timesheet-review-detail[hidden] {
    display: none;
}

.eh-timesheet-row-openable {
    cursor: pointer;
}

.eh-timesheet-row-openable:hover {
    background: var(--eh-surface-soft);
}

@media (max-width: 720px) {
    .eh-timesheet-summary-grid,
    .eh-timesheet-layout {
        grid-template-columns: 1fr;
    }

    .eh-timesheet-day-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eh-timesheet-entry-card {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .eh-timesheet-entry-card .eh-actions {
        justify-content: flex-start;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-width: 320px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: var(--eh-bg);
    color: var(--eh-text);
    letter-spacing: 0;
}

a { color: inherit; }

.app-shell {
    display: flex;
    min-height: 100vh;
    background: var(--eh-bg);
}

.app-sidebar {
    width: 264px;
    padding: 0;
    flex: 0 0 264px;
    background: rgba(255, 255, 255, 0.96);
    border-right: 1px solid var(--eh-border);
}

.app-sidebar-inner {
    position: sticky;
    top: 0;
    min-height: 100vh;
    padding: 16px 14px 18px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.app-brand {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 4px 10px 18px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--eh-border);
    text-align: center;
}

.app-brand-logo {
    display: block;
    width: min(150px, 100%);
    max-height: 116px;
    height: auto;
    object-fit: contain;
}

.app-brand-icon {
    display: block;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.app-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--eh-primary), var(--eh-secondary));
    box-shadow: var(--eh-shadow-primary);
}

.app-brand-title {
    font-size: 15px;
    font-weight: 900;
    color: var(--eh-text-strong);
    line-height: 1.2;
}

.app-brand-subtitle {
    margin-top: 2px;
    font-size: 12px;
    color: var(--eh-muted);
}

.app-brand-subtitle--logo {
    margin-top: 0;
    color: var(--eh-text);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: center;
}

.app-mobile-header,
.app-mobile-nav-overlay,
.app-mobile-nav-close {
    display: none;
}

.app-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.app-mobile-brand .app-brand-mark {
    flex: 0 0 auto;
}

.app-mobile-brand .app-brand-icon {
    flex: 0 0 auto;
}

.app-mobile-page-label {
    margin-top: 2px;
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-mobile-menu-btn,
.app-mobile-nav-close {
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid rgba(var(--eh-primary-rgb), 0.2);
    border-radius: 10px;
    background: var(--eh-primary-soft);
    color: var(--eh-primary-600);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.app-mobile-menu-btn {
    display: none;
    flex: 0 0 auto;
    padding: 0 14px;
}

.app-mobile-nav-close {
    margin-left: auto;
    padding: 0 12px;
}

.eh-sidebar-link,
.app-nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 38px;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 5px;
    border-radius: 8px;
    color: var(--eh-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 760;
    line-height: 1.3;
    position: relative;
    transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.eh-sidebar-link::before,
.app-nav-link::before {
    content: none;
}

.eh-sidebar-link {
    width: 100%;
    border: 0;
    background: transparent;
    appearance: none;
    text-align: left;
    cursor: pointer;
}

.eh-sidebar-link-label {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.app-nav-link:hover,
.eh-sidebar-link:hover {
    background: rgba(var(--eh-primary-rgb), 0.07);
    color: var(--eh-text-strong);
}

.app-nav-link.active,
.eh-sidebar-link--active,
.eh-sidebar-link.active {
    background: linear-gradient(90deg, rgba(var(--eh-primary-rgb), 0.14), rgba(var(--eh-secondary-rgb), 0.08));
    color: var(--eh-primary-600);
    box-shadow: inset 3px 0 0 var(--eh-primary);
}

.eh-sidebar-link--level-2.active,
.eh-sidebar-link--level-2.eh-sidebar-link--active {
    color: var(--eh-primary-600);
    font-weight: 800;
}

.app-nav-link.active::before,
.eh-sidebar-link--active::before,
.eh-sidebar-link--parent-active::before,
.eh-sidebar-link.active::before {
    content: none;
}

.eh-lucide-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.eh-sidebar-icon {
    color: currentColor;
    opacity: .95;
}

.eh-sidebar-group {
    margin-bottom: 2px;
}

.eh-sidebar-group-panel,
.eh-sidebar-submenu {
    display: grid;
}

.eh-sidebar-link--level-1 {
    font-size: 13px;
    font-weight: 700;
}

.eh-sidebar-link--level-2 {
    min-height: 36px;
    padding: 7px 10px 7px 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--eh-muted);
}

.eh-sidebar-link--level-2::before {
    content: none;
}

.eh-sidebar-link--level-3 {
    min-height: 34px;
    padding: 6px 10px 6px 26px;
    font-size: 12px;
    font-weight: 600;
}

.eh-sidebar-link--parent-active {
    color: var(--eh-text-strong);
    background: rgba(var(--eh-primary-rgb), 0.08);
}

.app-nav-collapsible-toggle,
.eh-sidebar-group-toggle,
.eh-sidebar-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.eh-sidebar-chevron {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin-left: auto;
    position: relative;
}

.eh-settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.eh-settings-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--eh-border);
    background: var(--eh-surface);
    color: var(--eh-muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--eh-shadow-sm);
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.eh-settings-tab:hover {
    color: var(--eh-text-strong);
    border-color: rgba(129, 145, 173, 0.32);
}

.eh-settings-tab--active {
    color: var(--eh-primary);
    border-color: rgba(33, 82, 255, 0.18);
    background: var(--eh-primary-soft);
}

.eh-sidebar-chevron::before {
    content: "";
    position: absolute;
    inset: 3px 4px 3px 3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 160ms ease;
}

.app-nav-collapsible.is-collapsed .eh-sidebar-chevron::before {
    transform: rotate(-45deg);
}

.app-nav-collapsible.is-collapsed .app-nav-panel {
    display: none;
}

.app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 0 22px 24px;
}

.app-topbar {
    position: relative;
    z-index: var(--eh-z-header);
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 22px;
    margin: 0 -22px 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 0;
    border-bottom: 1px solid var(--eh-border);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: blur(16px);
}

.app-page-title {
    color: var(--eh-text-strong);
    font-size: 15px;
    font-weight: 800;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--eh-muted);
    font-size: 14px;
    margin-left: auto;
}

.topbar-action-icon {
    width: 18px;
    height: 18px;
}

.topbar-profile-link,
.eh-topbar-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--eh-text-strong);
    font-weight: 800;
    text-decoration: none;
    min-width: 0;
    max-width: 320px;
    padding: 4px 8px 4px 4px;
    border-radius: 10px;
    transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.topbar-profile-link span:last-child,
.eh-topbar-user span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-profile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(var(--eh-primary-rgb), 0.18);
    background: linear-gradient(135deg, rgba(var(--eh-primary-rgb), 0.14), rgba(56, 189, 248, 0.12));
    color: var(--eh-primary-600);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(var(--eh-primary-rgb), 0.10);
}

.topbar-profile-link:hover {
    color: var(--eh-primary-600);
    background: var(--eh-primary-soft);
    box-shadow: 0 8px 18px rgba(var(--eh-primary-rgb), .08);
}

.eh-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    font-style: normal;
    line-height: 1;
}

.eh-icon::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 900;
    line-height: 1;
}

.eh-icon.fa-bell {
    position: relative;
}

.eh-icon.fa-bell::before {
    content: "";
    width: .62em;
    height: .72em;
    border: .13em solid currentColor;
    border-bottom: 0;
    border-radius: .55em .55em .18em .18em;
    transform: translateY(-.06em);
}

.eh-icon.fa-bell::after {
    content: "";
    position: absolute;
    bottom: .05em;
    left: 50%;
    width: .62em;
    height: .13em;
    border-radius: 999px;
    background: currentColor;
    transform: translateX(-50%);
}

.eh-icon.fa-comments,
.eh-icon.fa-envelope,
.eh-icon.fa-list-check {
    position: relative;
}

.eh-icon.fa-comments::before,
.eh-icon.fa-envelope::before {
    content: "";
    width: .78em;
    height: .56em;
    border: .12em solid currentColor;
    border-radius: .2em;
    background: transparent;
}

.eh-icon.fa-comments::after {
    content: "";
    position: absolute;
    left: .16em;
    bottom: .12em;
    width: .26em;
    height: .26em;
    border-left: .12em solid currentColor;
    border-bottom: .12em solid currentColor;
    transform: rotate(-38deg);
    background: transparent;
}

.eh-icon.fa-list-check::before {
    content: "";
    width: .78em;
    height: .62em;
    border-top: .12em solid currentColor;
    border-bottom: .12em solid currentColor;
    background: linear-gradient(currentColor, currentColor) 0 50% / 100% .12em no-repeat;
    opacity: .86;
}

.eh-icon.fa-list-check::after {
    content: "";
    position: absolute;
    right: -.02em;
    bottom: .02em;
    width: .36em;
    height: .2em;
    border-left: .12em solid currentColor;
    border-bottom: .12em solid currentColor;
    transform: rotate(-45deg);
    background: transparent;
}

.eh-icon.fa-tasks::before,
.eh-icon.fa-info-circle::before,
.eh-icon.fa-exclamation-triangle::before,
.eh-icon.fa-check-circle::before,
.eh-icon.fa-times-circle::before {
    content: "";
    width: .72em;
    height: .72em;
    border-radius: 999px;
    background: currentColor;
    opacity: .72;
}

.topbar-notifications {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.topbar-activity-channel {
    position: relative;
}

.topbar-activity-channel.is-open {
    z-index: var(--eh-z-dropdown);
}

.topbar-notification-button {
    position: relative;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--eh-border);
    border-radius: 10px;
    background: #fff;
    color: var(--eh-accent-blue);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.035);
    transition: transform .16s ease, box-shadow .16s ease, color .16s ease, background .16s ease, border-color .16s ease;
}

.topbar-notification-button:hover {
    color: var(--eh-primary-600);
    background: var(--eh-primary-soft);
    border-color: rgba(var(--eh-primary-rgb), 0.22);
    transform: translateY(-1px);
    box-shadow: var(--eh-shadow-sm);
}

.topbar-activity-channel.is-open .topbar-notification-button {
    color: var(--eh-primary-600);
    background: var(--eh-primary-soft);
    border-color: rgba(var(--eh-primary-rgb), 0.26);
    box-shadow: var(--eh-shadow-sm);
}

.topbar-notification-svg {
    width: 19px;
    height: 19px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.topbar-notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--eh-warning);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    line-height: 18px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, .96);
    box-shadow: 0 6px 14px rgba(20, 31, 63, .16);
}

.topbar-notification-badge.is-critical {
    background: var(--eh-danger);
}

.topbar-notification-badge.is-warning {
    background: var(--eh-warning);
}

.topbar-notification-badge--communication {
    background: var(--eh-info);
    box-shadow: 0 8px 18px rgba(56, 189, 248, .24);
}

.topbar-notification-badge--tasks,
.topbar-notification-badge.is-critical {
    background: var(--eh-danger);
    box-shadow: 0 8px 18px rgba(239, 68, 68, .24);
}

.topbar-notification-badge.is-pulse {
    animation: eh-notification-pulse 1.8s ease-in-out infinite;
}

@keyframes eh-notification-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.topbar-notification-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: var(--eh-z-dropdown);
    width: min(420px, calc(100vw - 32px));
    max-height: min(560px, calc(100vh - 110px));
    overflow-y: auto;
    padding: 14px;
    border: 1px solid var(--eh-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--eh-shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(.98);
    transform-origin: top right;
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.topbar-activity-channel.is-open .topbar-notification-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.topbar-notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.topbar-notification-header a {
    color: var(--eh-primary-600);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.topbar-notification-section {
    display: grid;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--eh-border);
}

.topbar-notification-section + .topbar-notification-section {
    margin-top: 10px;
}

.topbar-notification-section-title {
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.topbar-notification-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--eh-text);
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.topbar-notification-item:hover {
    background: var(--eh-primary-soft);
    border-color: rgba(33, 82, 255, .14);
    transform: translateY(-1px);
}

.topbar-notification-item .topbar-notification-item-icon,
.eh-notification-item-icon,
.eh-dashboard-notification-icon,
.eh-empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--eh-primary-soft);
    color: var(--eh-primary-600);
    flex: 0 0 auto;
}

.topbar-notification-item--warning .topbar-notification-item-icon,
.eh-notification-item--warning .eh-notification-item-icon {
    background: rgba(251, 99, 64, .12);
    color: var(--eh-warning);
}

.topbar-notification-item--danger .topbar-notification-item-icon,
.eh-notification-item--danger .eh-notification-item-icon,
.eh-notification-summary-pill--danger {
    background: rgba(245, 54, 92, .12);
    color: var(--eh-danger);
}

.topbar-notification-item--success .topbar-notification-item-icon,
.eh-notification-item--success .eh-notification-item-icon,
.eh-notification-summary-pill--success {
    background: rgba(45, 206, 137, .12);
    color: var(--eh-success);
}

.topbar-notification-item-body,
.eh-notification-item-content {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.topbar-notification-item strong {
    color: var(--eh-text-strong);
    font-size: 13px;
    line-height: 1.25;
}

.topbar-notification-item span,
.topbar-notification-item small,
.topbar-notification-empty {
    color: var(--eh-muted);
    font-size: 12px;
}

.topbar-notification-item-meta {
    justify-self: end;
    max-width: 92px;
    text-align: right;
    white-space: nowrap;
}

.topbar-notification-empty,
.eh-empty-state-card {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 22px 14px;
    border: 1px dashed var(--eh-border);
    border-radius: 14px;
    background: rgba(248, 249, 250, .72);
    text-align: center;
}

.topbar-notification-empty strong,
.eh-empty-state-card strong {
    color: var(--eh-text-strong);
    font-size: 13px;
}

.topbar-notification-empty span,
.eh-empty-state-card span {
    color: var(--eh-muted);
    font-size: 12px;
}

.eh-notification-row {
    align-items: flex-start;
    gap: 14px;
}

.eh-notification-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--eh-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(20, 31, 63, .04);
}

.eh-notification-item + .eh-notification-item {
    margin-top: 10px;
}

.eh-notification-item.is-unread {
    background: var(--eh-primary-soft);
}

.eh-notification-item-content strong {
    color: var(--eh-text-strong);
    font-size: 14px;
    line-height: 1.25;
}

.eh-notification-item-content span,
.eh-notification-item-content small {
    color: var(--eh-muted);
    font-size: 12px;
    line-height: 1.45;
}

.eh-notification-item-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.eh-notifications-page {
    gap: 18px;
}

.eh-notification-channel-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.eh-notification-channel-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius);
    background: var(--eh-surface);
    color: var(--eh-text);
    text-decoration: none;
    box-shadow: var(--eh-shadow-sm);
}

.eh-notification-channel-chip span {
    min-width: 0;
    color: var(--eh-muted);
    font-size: 13px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eh-notification-channel-chip strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--eh-primary-soft);
    color: var(--eh-primary-600);
    font-size: 14px;
    font-weight: 900;
}

.eh-notification-channel-chip.is-active {
    border-color: var(--eh-primary);
    box-shadow: 0 0 0 3px var(--eh-primary-soft);
}

.eh-notification-channel-chip--all {
    background: #fff;
}

.eh-notification-channel-chip--communication strong {
    background: rgba(23, 193, 232, 0.12);
    color: #0e7490;
}

.eh-notification-channel-chip--tasks strong {
    background: var(--eh-danger-soft);
    color: #b42318;
}

.eh-notification-channel-stack,
.eh-notification-task-list,
.eh-communication-list,
.eh-system-feed {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.eh-notification-channel-card {
    scroll-margin-top: 16px;
}

.eh-notification-overview-card {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.eh-notification-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.eh-notification-read-filter {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    padding: 4px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: var(--eh-surface-soft);
}

.eh-segmented-control-option {
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: calc(var(--eh-radius-sm) - 4px);
    background: transparent;
    color: var(--eh-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.eh-segmented-control-option.is-active {
    background: #fff;
    color: var(--eh-primary-700);
    box-shadow: var(--eh-shadow-sm);
}

.eh-notification-page-size {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--eh-muted);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.eh-notification-page-size select {
    min-height: 36px;
    padding: 0 34px 0 10px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: #fff;
    color: var(--eh-text);
    font: inherit;
    font-size: 13px;
}

.eh-notification-pager {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.eh-notification-pager span {
    color: var(--eh-muted);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.eh-notification-list-summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.eh-notifications-table {
    display: grid;
    gap: 0;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius);
    background: #fff;
}

.eh-notifications-table-head,
.eh-notification-compact-row {
    display: grid;
    grid-template-columns: 28px minmax(150px, 1fr) minmax(220px, 1.35fr) minmax(104px, .55fr) minmax(92px, .48fr) minmax(98px, .52fr) minmax(178px, auto);
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.eh-notifications-table-head {
    padding: 10px 14px;
    border-bottom: 1px solid var(--eh-border);
    background: var(--eh-surface-soft);
    color: var(--eh-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.eh-notification-compact-list {
    display: grid;
    min-width: 0;
}

.eh-notification-compact-row {
    padding: 12px 14px;
    border-bottom: 1px solid var(--eh-border);
    background: #fff;
}

.eh-notification-compact-row:last-child {
    border-bottom: 0;
}

.eh-notification-compact-row.is-unread {
    background: linear-gradient(90deg, rgba(13, 110, 253, .08), #fff 36%);
}

.eh-notification-compact-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: transparent;
}

.eh-notification-compact-row.is-unread .eh-notification-compact-dot {
    background: var(--eh-primary);
    box-shadow: 0 0 0 4px var(--eh-primary-soft);
}

.eh-notification-compact-title,
.eh-notification-compact-message,
.eh-notification-compact-area,
.eh-notification-compact-time,
.eh-notification-compact-status {
    min-width: 0;
    color: var(--eh-text);
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.eh-notification-compact-title strong {
    color: var(--eh-text);
    font-size: 13px;
    font-weight: 800;
}

.eh-notification-compact-row.is-unread .eh-notification-compact-title strong {
    color: var(--eh-text-strong);
    font-weight: 950;
}

.eh-notification-compact-message,
.eh-notification-compact-time {
    color: var(--eh-muted);
}

.eh-notification-compact-actions {
    display: inline-flex;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.eh-notification-compact-actions .eh-btn {
    min-height: 34px;
    padding: 0 10px;
    white-space: nowrap;
}

.eh-notification-task-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 15px;
    border: 1px solid rgba(215, 222, 234, 0.9);
    border-radius: 16px;
    background: linear-gradient(180deg, #fff, #fbfcfe);
}

.eh-notification-task-card.is-overdue {
    border-color: rgba(234, 6, 6, 0.18);
    background: linear-gradient(180deg, #fff, #fff7f7);
}

.eh-notification-task-main {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.eh-notification-task-main strong,
.eh-communication-head strong,
.eh-system-feed-head strong {
    color: var(--eh-text-strong);
    font-size: 14px;
    line-height: 1.3;
}

.eh-notification-task-main p,
.eh-communication-bubble p,
.eh-system-feed-body p {
    margin: 0;
    color: var(--eh-text);
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.eh-notification-task-main small,
.eh-communication-head small,
.eh-system-feed-head small {
    color: var(--eh-muted);
    font-size: 12px;
    line-height: 1.35;
}

.eh-notification-task-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.eh-communication-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.eh-communication-avatar {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(23, 193, 232, 0.12);
    color: #0e7490;
    font-size: 13px;
    font-weight: 900;
}

.eh-communication-bubble {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid rgba(23, 193, 232, 0.16);
    border-radius: 16px;
    background: #fff;
}

.eh-communication-item.is-unread .eh-communication-bubble {
    background: rgba(238, 251, 253, 0.86);
    border-color: rgba(23, 193, 232, 0.26);
}

.eh-communication-head,
.eh-system-feed-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.eh-communication-head strong,
.eh-system-feed-head strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.eh-communication-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.eh-system-feed-item {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid var(--eh-border);
}

.eh-system-feed-item:first-child {
    padding-top: 0;
}

.eh-system-feed-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.eh-system-feed-dot {
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 999px;
    background: var(--eh-primary);
}

.eh-system-feed-dot--warning {
    background: var(--eh-warning);
}

.eh-system-feed-dot--danger {
    background: var(--eh-danger);
}

.eh-system-feed-dot--success {
    background: var(--eh-success);
}

.eh-system-feed-body {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.eh-actions-compact {
    align-items: center;
    flex-wrap: nowrap;
}

.content {
    flex: 1;
    min-width: 0;
}

.eh-page { display: flex; flex-direction: column; gap: 18px; }

.eh-stack {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.eh-stack > * {
    min-width: 0;
}

.eh-form {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
}

.eh-page form,
.eh-page fieldset,
.eh-page input,
.eh-page select,
.eh-page textarea,
.eh-page button,
.eh-form-grid,
.eh-form-grid > *,
.eh-list-form,
.eh-list-form > *,
.eh-list-form-row,
.eh-list-form-row > *,
.eh-field,
.eh-card-body,
.eh-card-body > *,
.eh-toolbar-grid,
.eh-toolbar-grid > *,
.eh-filter-row,
.eh-filter-row > * {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}

.eh-page-header,
.eh-card,
.eh-toolbar,
.eh-stat,
.auth-overlay-card {
    background: var(--eh-surface);
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-lg);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
}

.eh-page-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding: 22px;
}

.eh-page-kicker {
    display: none;
}

.eh-page-title {
    margin: 0;
    color: var(--eh-text-strong);
    font-size: 27px;
    font-weight: 900;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.eh-page-subtitle {
    margin: 9px 0 0;
    color: var(--eh-muted);
    max-width: 760px;
    font-size: 14px;
    line-height: 1.55;
}

.eh-page-subtitle:empty {
    display: none;
}

.eh-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

.eh-btn,
.logout-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--eh-border);
    border-radius: 8px;
    background: var(--eh-surface);
    color: var(--eh-text);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.eh-btn .eh-lucide-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.eh-btn:hover,
.logout-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--eh-shadow-sm);
}

.logout-btn {
    border-color: var(--eh-border);
    background: #fff;
    color: var(--eh-text-strong);
    border-radius: 10px;
}

.logout-btn:hover {
    border-color: rgba(239, 68, 68, .22);
    background: var(--eh-danger-soft);
    color: #b91c1c;
}

.topbar-help-button {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--eh-border);
    border-radius: 10px;
    background: #fff;
    color: var(--eh-accent-blue);
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.topbar-help-button:hover {
    border-color: rgba(var(--eh-primary-rgb), 0.22);
    background: var(--eh-primary-soft);
    color: var(--eh-primary-600);
    transform: translateY(-1px);
    box-shadow: var(--eh-shadow-sm);
}

.eh-btn:disabled,
.logout-btn:disabled {
    cursor: not-allowed;
    opacity: .58;
    transform: none;
    box-shadow: none;
}

.eh-btn:focus,
.logout-btn:focus,
.eh-input:focus,
.eh-select:focus,
.eh-date:focus,
.eh-textarea:focus {
    outline: none;
    border-color: var(--eh-primary);
    box-shadow: var(--eh-focus);
}

.eh-btn-primary {
    border-color: var(--eh-primary);
    background: linear-gradient(135deg, var(--eh-primary), var(--eh-secondary));
    color: #fff;
    box-shadow: var(--eh-shadow-primary);
}

.eh-btn-soft {
    border-color: rgba(var(--eh-primary-rgb), 0.16);
    background: var(--eh-primary-soft);
    color: var(--eh-primary-600);
}

.eh-btn-danger {
    border-color: #f8caca;
    background: var(--eh-danger-soft);
    color: #b42318;
}

.eh-btn-warning {
    border-color: #f2d37b;
    background: var(--eh-warning-soft);
    color: #8a5a00;
}

.eh-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.eh-toolbar-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.6fr) minmax(200px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.eh-filter-row {
    display: grid;
    grid-template-columns: minmax(260px, 1.7fr) minmax(180px, 1fr);
    align-items: end;
    gap: 12px;
    min-width: 0;
}

.eh-questions-filter-toolbar {
    margin-bottom: 16px;
}

.eh-questions-filter-row {
    grid-template-columns: minmax(180px, 260px);
}

.eh-settings-model-table th,
.eh-settings-model-table td {
    vertical-align: middle;
}

.eh-settings-model-summary {
    display: grid;
    gap: 3px;
}

.eh-settings-model-summary strong {
    color: var(--eh-text-strong);
    font-size: 14px;
    line-height: 1.25;
}

.eh-settings-model-summary span {
    color: var(--eh-muted);
    font-size: 12px;
    line-height: 1.3;
}

.eh-settings-model-actions {
    display: flex;
    justify-content: flex-end;
}

.eh-field,
.eh-filter-row .eh-field {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.eh-filter-row .eh-label,
.eh-filter-row .eh-field label {
    min-height: 16px;
}

.eh-toolbar-status {
    min-height: var(--eh-control-height);
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
}

.eh-field label,
.eh-label {
    display: block;
    margin-bottom: 7px;
    color: var(--eh-text);
    font-size: var(--eh-label-font-size);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .02em;
}

.eh-input,
.eh-select,
.eh-date,
.eh-textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: var(--eh-control-height);
    padding: 11px var(--eh-control-padding-x);
    border: 1px solid var(--eh-border-strong);
    border-radius: var(--eh-radius-sm);
    background: var(--eh-surface);
    color: var(--eh-text-strong);
    font: inherit;
    font-size: var(--eh-control-font-size);
    line-height: 1.35;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.eh-input,
.eh-select,
.eh-date {
    overflow: hidden;
    text-overflow: ellipsis;
}

.eh-field.is-readonly .eh-label {
    color: var(--eh-muted);
}

.eh-input.eh-readonly,
.eh-textarea.eh-readonly {
    border-color: var(--eh-border);
    background: #f4f7fb;
    color: var(--eh-muted);
    cursor: not-allowed;
    box-shadow: none;
}

.eh-input.eh-readonly:focus,
.eh-textarea.eh-readonly:focus {
    border-color: var(--eh-border);
    outline: none;
    box-shadow: none;
}

.eh-select,
.eh-date {
    appearance: none;
    -webkit-appearance: none;
}

.eh-select {
    padding-right: 42px;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--eh-muted) 50%),
        linear-gradient(135deg, var(--eh-muted) 50%, transparent 50%);
    background-position:
        calc(100% - 20px) calc(50% - 1px),
        calc(100% - 14px) calc(50% - 1px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.eh-select option:disabled {
    color: var(--eh-muted);
    background: #f8fafc;
}

.eh-select[multiple] {
    height: auto;
    overflow: auto;
    padding-right: var(--eh-control-padding-x);
    background-image: none;
    appearance: auto;
    -webkit-appearance: listbox;
}

.eh-select[multiple] option {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eh-textarea {
    min-height: 118px;
    resize: vertical;
}

.eh-help,
.eh-muted,
.eh-status {
    color: var(--eh-muted);
    font-size: 13px;
    line-height: 1.45;
}
.eh-help-spaced { margin-top: 8px; }

.eh-hidden { display: none !important; }

.eh-divider {
    height: 1px;
    margin: 18px 0;
    background: var(--eh-border);
}

.eh-card { overflow: hidden; }

.eh-card-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    border-bottom: 1px solid var(--eh-border);
}

.eh-card-title {
    margin: 0;
    color: var(--eh-text-strong);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.eh-card-note {
    margin: 5px 0 0;
    color: var(--eh-muted);
    font-size: 13px;
    line-height: 1.45;
}

.eh-card-body { padding: 18px; }
.eh-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    padding: 18px;
    border-top: 1px solid var(--eh-border);
    background: var(--eh-surface-soft);
}

.eh-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 12px;
}

.eh-stat { padding: 16px; }
.eh-stat-label { color: var(--eh-muted); font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.eh-stat-value { color: var(--eh-text-strong); font-size: 26px; font-weight: 900; }

.eh-table-wrap {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
.eh-table { width: 100%; min-width: 920px; border-collapse: collapse; }
.eh-table th {
    text-align: left;
    padding: 12px 14px;
    color: var(--eh-muted);
    background: var(--eh-surface-soft);
    border-bottom: 1px solid var(--eh-border);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.eh-table td {
    padding: 14px;
    border-bottom: 1px solid var(--eh-border);
    vertical-align: middle;
    color: var(--eh-text);
    font-size: 14px;
    line-height: 1.45;
}
.eh-table tr:hover td { background: #fbfdff; }
.eh-table tr.eh-clickable-row {
    cursor: pointer;
}
.eh-table tr.eh-clickable-row:focus-visible td {
    outline: 2px solid rgba(var(--eh-primary-rgb), .45);
    outline-offset: -2px;
}
.eh-work-report-overview-table .eh-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
}
.eh-work-report-overview-table .eh-icon-btn {
    width: 32px;
    height: 32px;
}

.eh-mobile-card-list {
    display: none;
}

.eh-mobile-card {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--eh-border);
    border-radius: 12px;
    background: var(--eh-surface);
    box-shadow: var(--eh-shadow-sm);
}

.eh-mobile-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.eh-mobile-card-head > div {
    min-width: 0;
}

.eh-mobile-card-kicker {
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.eh-mobile-card h3 {
    margin: 3px 0 0;
    color: var(--eh-text-strong);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.eh-mobile-card-text {
    color: var(--eh-text);
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.eh-mobile-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.eh-mobile-card-meta div {
    min-width: 0;
}

.eh-mobile-card-meta > div > span {
    display: block;
    color: var(--eh-muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.eh-mobile-card-meta strong,
.eh-mobile-card-value {
    display: block;
    margin-top: 3px;
    color: var(--eh-text-strong);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.eh-mobile-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}

.eh-mobile-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid rgba(33, 82, 255, 0.16);
    border-radius: 999px;
    background: var(--eh-primary-soft);
    color: var(--eh-primary-600);
    font-size: 12px;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.eh-mobile-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.eh-calendar-matrix {
    min-width: 1320px;
    table-layout: fixed;
}

.eh-calendar-matrix th,
.eh-calendar-matrix td {
    vertical-align: top;
}

.eh-calendar-weekband {
    background: #f2f6fd;
    color: var(--eh-text-strong);
    font-size: 12px;
    font-weight: 800;
}

.eh-calendar-weekband th {
    padding: 12px 14px;
    border-bottom: 1px solid var(--eh-border);
}

.eh-calendar-sticky-col {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--eh-surface);
    box-shadow: 8px 0 18px rgba(37, 50, 75, 0.04);
}

.eh-calendar-weekband .eh-calendar-sticky-col,
.eh-calendar-dayhead .eh-calendar-sticky-col {
    z-index: 3;
}

.eh-calendar-dayhead th {
    padding: 14px;
    border-bottom: 1px solid var(--eh-border);
    background: #fbfcfe;
    color: var(--eh-text-strong);
    font-size: 13px;
    font-weight: 800;
}

.eh-calendar-employee-cell {
    min-width: 220px;
    padding: 14px;
    border-bottom: 1px solid var(--eh-border);
}

.eh-calendar-cell-wrap {
    padding: 10px;
    border-bottom: 1px solid var(--eh-border);
}

.eh-calendar-cell {
    min-height: 124px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--eh-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.eh-calendar-cell:hover {
    transform: translateY(-1px);
    box-shadow: var(--eh-shadow-sm);
    border-color: var(--eh-border-strong);
}

.eh-calendar-cell-empty {
    background: #fbfcff;
    border-style: dashed;
    color: var(--eh-muted);
}

.eh-calendar-cell--normal { background: #fff; }
.eh-calendar-cell--feiertag { background: #fff4de; border-color: #f2d08c; }
.eh-calendar-cell--betriebsferien { background: #e4fbf7; border-color: #9bded0; }
.eh-calendar-cell--krank { background: #fff0f2; border-color: #f4b7c0; }
.eh-calendar-cell--urlaub { background: #edf4ff; border-color: #bfd4ff; }

.eh-calendar-cell-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    min-width: 0;
}

.eh-calendar-cell-status {
    font-size: 12px;
    font-weight: 800;
    color: var(--eh-text-strong);
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eh-calendar-cell-hours {
    margin-top: auto;
    align-self: flex-end;
    font-size: 12px;
    font-weight: 800;
    color: var(--eh-muted);
    white-space: nowrap;
}

.eh-calendar-cell-sites {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 46px;
}

.eh-calendar-cell-site {
    font-size: 12px;
    line-height: 1.35;
    color: var(--eh-text);
    word-break: break-word;
}

.eh-calendar-cell-note {
    margin-top: auto;
    font-size: 11px;
    font-weight: 700;
    color: var(--eh-muted);
}

.eh-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eh-calendar-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--eh-border);
    border-radius: 999px;
    background: #fbfcfe;
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 700;
}

.eh-calendar-legend-swatch {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(37, 50, 75, 0.12);
}

.eh-calendar-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--eh-muted);
    font-size: 13px;
}

.eh-calendar-toolbar-grid {
    display: grid;
    grid-template-columns: minmax(180px, 0.85fr) minmax(180px, 0.85fr) minmax(260px, 1.4fr) auto minmax(220px, 1fr);
    gap: 12px;
    align-items: end;
    min-width: 0;
}

.eh-calendar-toolbar-summary {
    min-height: var(--eh-control-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 0 6px;
    min-width: 0;
}

.eh-calendar-summary-line {
    color: var(--eh-text-strong);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.eh-calendar-nav-buttons {
    min-height: var(--eh-control-height);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.eh-calendar-nav-buttons .eh-btn {
    min-width: 0;
}

@media (max-width: 1180px) {
    .eh-calendar-toolbar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }
    .eh-calendar-toolbar-grid .eh-field:nth-child(3),
    .eh-calendar-nav-buttons,
    .eh-calendar-toolbar-summary {
        grid-column: 1 / -1;
    }
    .eh-calendar-nav-buttons {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
        align-items: stretch;
        gap: 8px;
    }
    .eh-calendar-nav-buttons .eh-btn {
        width: 100%;
    }
}

.eh-calendar-matrix-shell {
    overflow: auto;
    max-width: 100%;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
}

.eh-calendar-week-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.eh-calendar-week-block {
    border: 1px solid var(--eh-border);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.eh-calendar-week-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--eh-border);
    background: #fbfcfe;
}

.eh-calendar-week-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--eh-text-strong);
}

.eh-calendar-week-meta {
    font-size: 12px;
    font-weight: 800;
    color: var(--eh-muted);
}

.eh-calendar-empty {
    padding: 18px 14px;
    color: var(--eh-muted);
    font-size: 14px;
}

.eh-calendar-matrix {
    --eh-calendar-date-width: 170px;
    --eh-calendar-employee-width: 180px;
    --eh-calendar-header-min-height: 124px;
    --eh-calendar-row-min-height: 124px;
    min-width: max-content;
    width: max-content;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.eh-calendar-matrix th,
.eh-calendar-matrix td {
    padding: 0;
    vertical-align: top;
}

.eh-calendar-corner,
.eh-calendar-employee-head {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fbfcfe;
}

.eh-calendar-corner {
    display: table-cell;
    left: 0;
    min-width: var(--eh-calendar-date-width);
    width: var(--eh-calendar-date-width);
    padding: 0;
    border-bottom: 1px solid var(--eh-border);
    border-right: 1px solid var(--eh-border);
    color: var(--eh-text-strong);
    box-shadow: 10px 0 18px rgba(37, 50, 75, 0.05);
    z-index: 7;
    text-align: center;
    vertical-align: middle;
    height: var(--eh-calendar-header-min-height);
}

.eh-calendar-date-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-height: var(--eh-calendar-header-min-height);
    height: 100%;
    padding: 12px;
}

.eh-calendar-employee-head {
    min-width: var(--eh-calendar-employee-width);
    width: var(--eh-calendar-employee-width);
    padding: 0;
    border-left: 1px solid var(--eh-border);
    border-bottom: 1px solid var(--eh-border);
    color: var(--eh-text-strong);
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.35;
    text-align: center;
    vertical-align: middle;
    height: auto;
}

.eh-calendar-employee-head-link {
    width: 100%;
    min-height: var(--eh-calendar-header-min-height);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 10px 10px;
    color: inherit;
    text-decoration: none;
}

.eh-calendar-employee-head-link:hover {
    background: rgba(243, 247, 255, 0.95);
}

.eh-calendar-employee-weeks {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
    align-items: stretch;
}

.eh-calendar-employee-week-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    min-width: 64px;
    padding: 0 8px;
    border-radius: 6px;
    background: rgba(243, 247, 255, 0.95);
    border: 1px solid rgba(57, 103, 255, 0.18);
    color: var(--eh-text-strong);
    font-size: 12px;
    font-weight: 700;
}

.eh-week-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    min-width: 84px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.eh-week-status--ok {
    background: #eaf8ee;
    border-color: #b7dfc1;
    color: #206934;
}

.eh-week-status--under {
    background: #fff0f2;
    border-color: #efb5bf;
    color: #a43145;
}

.eh-calendar-employee-id {
    font-size: 11px;
    font-weight: 900;
    color: var(--eh-primary-600);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.eh-calendar-employee-name {
    margin-top: 5px;
    font-size: 17px;
    font-weight: 800;
    color: var(--eh-text-strong);
    letter-spacing: 0;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.eh-calendar-employee-meta {
    margin-top: 4px;
    font-size: 11px;
    color: var(--eh-muted);
}

.eh-calendar-day-sticky {
    position: sticky;
    left: 0;
    z-index: 4;
    min-width: 170px;
    width: 170px;
    padding: 0;
    background: var(--eh-surface);
    border-right: 1px solid var(--eh-border);
    border-bottom: 1px solid var(--eh-border);
    box-shadow: 10px 0 18px rgba(37, 50, 75, 0.05);
    vertical-align: top;
    text-align: left;
}

.eh-calendar-date-cell {
    cursor: pointer;
    position: sticky;
}

.eh-calendar-date-cell > * {
    pointer-events: none;
}

.eh-calendar-clickable-cell {
    cursor: pointer;
}

.eh-calendar-clickable-cell:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(33, 82, 255, 0.35);
}

.eh-calendar-day-label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    min-height: 0;
}

.eh-calendar-day-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-height: var(--eh-calendar-row-min-height);
    height: 100%;
    color: inherit;
    text-decoration: none;
    padding: 12px;
    cursor: pointer;
}

.eh-calendar-date-cell .eh-calendar-day-link,
.eh-calendar-date-cell .eh-calendar-day-label,
.eh-calendar-date-cell .eh-calendar-day-primary,
.eh-calendar-date-cell .eh-calendar-day-secondary,
.eh-calendar-date-cell .eh-calendar-week-badge {
    pointer-events: none;
}

.eh-calendar-day-link:hover {
    background: rgba(243, 247, 255, 0.95);
}

.eh-calendar-day-primary {
    color: var(--eh-text-strong);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    white-space: nowrap;
}

.eh-calendar-day-secondary {
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.eh-calendar-week-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--eh-primary-soft);
    color: var(--eh-primary-600);
    font-size: 11px;
    font-weight: 800;
}

.eh-calendar-matrix tbody tr.is-weekend .eh-calendar-day-sticky {
    background: #f9fbfe;
}

.eh-calendar-grid-cell {
    width: var(--eh-calendar-employee-width);
    min-width: var(--eh-calendar-employee-width);
    padding: 0;
    border-bottom: 1px solid var(--eh-border);
    border-left: 1px solid var(--eh-border);
    background: #fff;
    vertical-align: top;
}

.eh-calendar-grid-link {
    width: 100%;
    box-sizing: border-box;
    min-height: var(--eh-calendar-row-min-height);
    max-height: var(--eh-calendar-row-min-height);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: var(--eh-text);
    text-decoration: none;
    transition: background-color 160ms ease, box-shadow 160ms ease;
    overflow: hidden;
}

.eh-calendar-grid-link:hover {
    box-shadow: inset 0 0 0 2px rgba(33, 82, 255, 0.22);
}

.eh-calendar-grid-link[aria-disabled="true"],
.eh-calendar-grid-link--locked {
    cursor: not-allowed;
    opacity: 1;
    box-shadow: none;
}

.eh-calendar-grid-link--locked {
    background: #eef2f7;
    box-shadow: inset 0 0 0 1px #b9c4d3;
    color: #506072;
}

.eh-calendar-grid-cell--locked {
    background: #eef2f7;
}

.eh-calendar-grid-link--empty {
    background: #fff;
    box-shadow: none;
    min-height: var(--eh-calendar-row-min-height);
}

.eh-calendar-grid-cell--empty {
    background: #fff;
}

.eh-calendar-grid-link--partial {
    background: #fff6e6;
    box-shadow: inset 0 0 0 1px #dbe4f0;
}

.eh-calendar-grid-cell--partial {
    background: #fff6e6;
}

.eh-calendar-grid-link--full {
    background: #edf9ef;
    box-shadow: inset 0 0 0 1px #bfe2c6;
}

.eh-calendar-grid-cell--full {
    background: #edf9ef;
}

.eh-calendar-grid-link--over {
    background: #fff1f1;
    box-shadow: inset 0 0 0 1px #ecb9b9;
}

.eh-calendar-grid-cell--over {
    background: #fff1f1;
}

.eh-calendar-grid-link--feiertag {
    background: #fff4de;
    box-shadow: inset 0 0 0 1px #f0cf88;
}

.eh-calendar-grid-cell--feiertag {
    background: #fff4de;
}

.eh-calendar-grid-link--betriebsferien {
    background: #e5faf6;
    box-shadow: inset 0 0 0 1px #98ddcf;
}

.eh-calendar-grid-cell--betriebsferien {
    background: #e5faf6;
}

.eh-calendar-grid-link--krank {
    background: #fff0f2;
    box-shadow: inset 0 0 0 1px #efbac2;
}

.eh-calendar-grid-cell--krank {
    background: #fff0f2;
}

.eh-calendar-grid-link--urlaub {
    background: #edf4ff;
    box-shadow: inset 0 0 0 1px #c1d6ff;
}

.eh-calendar-grid-cell--urlaub {
    background: #edf4ff;
}

.eh-calendar-grid-link--lehrgang {
    background: #eef4ff;
    box-shadow: inset 0 0 0 1px #bfd3f5;
}

.eh-calendar-grid-cell--lehrgang {
    background: #eef4ff;
}

.eh-calendar-grid-link--berufsschule {
    background: #eef7ff;
    box-shadow: inset 0 0 0 1px #bedcf7;
}

.eh-calendar-grid-cell--berufsschule {
    background: #eef7ff;
}

.eh-calendar-grid-link--pruefung {
    background: #fff6ea;
    box-shadow: inset 0 0 0 1px #f1d3a7;
}

.eh-calendar-grid-cell--pruefung {
    background: #fff6ea;
}

.eh-calendar-grid-link--schulung {
    background: #f5f0ff;
    box-shadow: inset 0 0 0 1px #d4c5f4;
}

.eh-calendar-grid-cell--schulung {
    background: #f5f0ff;
}

.eh-calendar-grid-link--non-regular {
    background: #f3efff;
    box-shadow: inset 0 0 0 1px #c9baf2;
}

.eh-calendar-grid-cell--non-regular {
    background: #f3efff;
}

.eh-calendar-cell-empty-space {
    flex: 1;
    min-height: 0;
}

.eh-calendar-site-list {
    display: grid;
    gap: 3px;
    flex: 0 0 auto;
    min-width: 0;
    overflow: visible;
}

.eh-calendar-site-item,
.eh-calendar-site-more {
    display: block;
    min-width: 0;
    font-size: 11.5px;
    line-height: 1.2;
    color: var(--eh-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eh-calendar-site-item--wrapped {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    overflow-wrap: anywhere;
}

.eh-calendar-site-more {
    color: var(--eh-muted);
    font-weight: 700;
}

.eh-calendar-cell-badges {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: flex-start;
    flex: 0 0 auto;
    max-width: 100%;
    pointer-events: none;
    overflow: hidden;
}

.eh-calendar-cell-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 20px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--eh-muted);
    font-size: 11px;
    font-weight: 800;
    border: 1px solid rgba(37, 50, 75, 0.08);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eh-calendar-cell-badge--vacation {
    color: #1f5fbf;
    background: rgba(223, 235, 255, 0.9);
    border-color: rgba(78, 125, 210, 0.22);
}

.eh-calendar-cell-badge--release {
    color: #23724b;
    background: rgba(223, 246, 232, 0.92);
    border-color: rgba(55, 150, 98, 0.22);
}

.eh-calendar-cell-badge--sick {
    color: #b03045;
    background: rgba(255, 231, 235, 0.92);
    border-color: rgba(190, 67, 86, 0.2);
}

.eh-calendar-lock-hint {
    display: grid;
    gap: 3px;
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px dashed rgba(94, 110, 131, 0.34);
    color: #506072;
    font-size: 11px;
    line-height: 1.4;
}

.eh-calendar-lock-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    color: var(--eh-text-strong);
}

.eh-calendar-mobile-list {
    display: none;
}

.eh-calendar-mobile-day {
    border: 1px solid var(--eh-border);
    border-radius: 12px;
    background: var(--eh-surface);
    overflow: hidden;
}

.eh-calendar-mobile-day-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid var(--eh-border);
    background: var(--eh-surface-soft);
}

.eh-calendar-mobile-day-head h3 {
    margin: 0;
    color: var(--eh-text-strong);
    font-size: 15px;
    line-height: 1.3;
}

.eh-calendar-mobile-day-head span {
    display: block;
    margin-top: 3px;
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 800;
}

.eh-calendar-mobile-day-body {
    display: grid;
    gap: 10px;
    padding: 12px;
}

.eh-calendar-mobile-assignment {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--eh-border);
    color: inherit;
    text-decoration: none;
    background: #fff;
}

.eh-calendar-mobile-assignment-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.eh-calendar-mobile-assignment-head strong,
.eh-calendar-mobile-assignment-head span,
.eh-calendar-mobile-status,
.eh-calendar-mobile-hours,
.eh-calendar-mobile-sites {
    min-width: 0;
    overflow-wrap: anywhere;
}

.eh-calendar-mobile-assignment-head strong {
    display: block;
    color: var(--eh-text-strong);
    font-size: 14px;
    line-height: 1.3;
}

.eh-calendar-mobile-assignment-head span {
    display: block;
    margin-top: 2px;
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 800;
}

.eh-calendar-mobile-status {
    color: var(--eh-text-strong);
    font-size: 12px;
    font-weight: 900;
}

.eh-calendar-mobile-hours {
    flex: 0 0 auto;
    color: var(--eh-text-strong);
    font-size: 12px;
    font-weight: 900;
    text-align: right;
}

.eh-calendar-mobile-sites {
    display: grid;
    gap: 5px;
}

.eh-calendar-mobile-empty {
    padding: 12px;
    border: 1px dashed var(--eh-border-strong);
    border-radius: 10px;
    color: var(--eh-muted);
    font-size: 13px;
    line-height: 1.45;
    background: var(--eh-surface-soft);
}

.eh-calendar-legend-swatch--partial { background: #fff6e6; }
.eh-calendar-legend-swatch--full { background: #edf9ef; }
.eh-calendar-legend-swatch--over { background: #fff1f1; }
.eh-calendar-legend-swatch--feiertag { background: #fff4de; }
.eh-calendar-legend-swatch--betriebsferien { background: #e5faf6; }
.eh-calendar-legend-swatch--krank { background: #fff0f2; }
.eh-calendar-legend-swatch--urlaub { background: #edf4ff; }

.eh-my-calendar-toolbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.eh-my-calendar-toolbar .eh-input,
.eh-my-calendar-toolbar .eh-btn {
    min-height: 44px;
}

.eh-my-calendar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.eh-my-calendar-shell {
    overflow-x: auto;
}

.eh-my-calendar-grid {
    min-width: 840px;
}

.eh-my-calendar-matrix {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--eh-border);
}

.eh-my-calendar-weekdays,
.eh-my-calendar-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.eh-my-calendar-rows {
    display: flex;
    flex-direction: column;
}

.eh-my-calendar-weekday {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px;
    border-bottom: 1px solid var(--eh-border);
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.eh-my-calendar-day {
    display: flex;
    flex-direction: column;
    min-height: 150px;
    padding: 10px;
    border-right: 1px solid var(--eh-border);
    border-bottom: 1px solid var(--eh-border);
    background: #fff;
    transition: box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.eh-my-calendar-day:nth-child(7n + 1) {
    border-left: 1px solid var(--eh-border);
}

.eh-my-calendar-row > .eh-my-calendar-day:first-child {
    border-left: 1px solid var(--eh-border);
}

.eh-my-calendar-day.is-clickable {
    cursor: pointer;
}

.eh-my-calendar-day.is-clickable:hover {
    background: #f9fbff;
    box-shadow: inset 0 0 0 1px rgba(33, 82, 255, 0.12);
    transform: translateY(-1px);
}

.eh-my-calendar-day.is-muted {
    background: #fbfcfe;
}

.eh-my-calendar-day.is-weekend {
    background: #f9fbfd;
}

.eh-my-calendar-day.is-outside {
    background: #f7f9fc;
    color: var(--eh-muted);
}

.eh-my-calendar-day.is-today {
    box-shadow: inset 0 0 0 2px rgba(33, 82, 255, 0.18);
}

.eh-my-calendar-day.is-selected {
    background: #f5f8ff;
}

.eh-my-calendar-day.is-week-highlight {
    background: linear-gradient(180deg, rgba(33, 82, 255, 0.06), rgba(33, 82, 255, 0.01));
}

.eh-my-calendar-day.is-status-feiertag { background: #fff4de; }
.eh-my-calendar-day.is-status-betriebsferien { background: #e5faf6; }
.eh-my-calendar-day.is-status-krank { background: #fff0f2; }
.eh-my-calendar-day.is-status-urlaub { background: #edf4ff; }
.eh-my-calendar-day.is-status-lehrgang { background: #eef4ff; }
.eh-my-calendar-day.is-status-schulung { background: #f5f0ff; }
.eh-my-calendar-day.is-status-berufsschule { background: #eef7ff; }
.eh-my-calendar-day.is-status-pruefung { background: #fff6ea; }
.eh-my-calendar-day.has-global-holiday {
    box-shadow: inset 0 0 0 1px rgba(240, 181, 54, 0.22);
}

.eh-my-calendar-day-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.eh-my-calendar-day-number {
    color: var(--eh-text-strong);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.eh-my-calendar-day-plan {
    color: var(--eh-muted);
    font-size: 11px;
    font-weight: 700;
    text-align: right;
}

.eh-my-calendar-day-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    flex: 1;
    overflow: hidden;
}

.eh-my-calendar-status {
    color: var(--eh-text-strong);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
}

.eh-my-calendar-item {
    color: var(--eh-text);
    font-size: 12px;
    line-height: 1.4;
    word-break: break-word;
}

.eh-my-calendar-item-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.eh-my-calendar-item-meta {
    color: var(--eh-muted);
    font-size: 11px;
    line-height: 1.35;
}

.eh-my-calendar-item-note {
    color: var(--eh-text);
    font-size: 11px;
    line-height: 1.35;
}

.eh-my-calendar-item--status {
    color: var(--eh-text-strong);
    font-weight: 800;
}

.eh-my-calendar-hours {
    margin-top: auto;
    align-self: flex-end;
    color: var(--eh-text-strong);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.eh-my-calendar-placeholder,
.eh-my-calendar-birthday,
.eh-my-calendar-holiday {
    color: var(--eh-muted);
    font-size: 12px;
    line-height: 1.4;
}

.eh-my-calendar-holiday {
    color: #8a5a00;
    font-weight: 800;
}

.eh-my-calendar-birthday {
    color: var(--eh-primary-600);
    font-weight: 700;
}

.eh-my-calendar-mobile-agenda {
    display: none;
}

.eh-my-calendar-mobile-day {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--eh-border);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    background: var(--eh-surface);
}

.eh-my-calendar-mobile-day.is-today {
    box-shadow: inset 0 0 0 2px rgba(33, 82, 255, 0.18);
}

.eh-my-calendar-mobile-day.is-selected {
    background: #f5f8ff;
}

.eh-my-calendar-mobile-day.is-status-feiertag { background: #fff4de; }
.eh-my-calendar-mobile-day.is-status-betriebsferien { background: #e5faf6; }
.eh-my-calendar-mobile-day.is-status-krank { background: #fff0f2; }
.eh-my-calendar-mobile-day.is-status-urlaub { background: #edf4ff; }
.eh-my-calendar-mobile-day.is-status-lehrgang { background: #eef4ff; }
.eh-my-calendar-mobile-day.is-status-schulung { background: #f5f0ff; }
.eh-my-calendar-mobile-day.is-status-berufsschule { background: #eef7ff; }
.eh-my-calendar-mobile-day.is-status-pruefung { background: #fff6ea; }

.eh-my-calendar-mobile-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.eh-my-calendar-mobile-date {
    color: var(--eh-text-strong);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.25;
}

.eh-my-calendar-mobile-status {
    margin-top: 3px;
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.35;
}

.eh-my-calendar-mobile-hours {
    flex: 0 0 auto;
    color: var(--eh-text-strong);
    font-size: 13px;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
}

.eh-my-calendar-mobile-body,
.eh-my-calendar-mobile-entry {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.eh-my-calendar-mobile-body,
.eh-my-calendar-mobile-note,
.eh-my-calendar-mobile-empty,
.eh-my-calendar-mobile-entry,
.eh-my-calendar-mobile-entry * {
    overflow-wrap: anywhere;
}

.eh-my-calendar-mobile-note,
.eh-my-calendar-mobile-empty {
    color: var(--eh-muted);
    font-size: 12px;
    line-height: 1.4;
}

.eh-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}
.eh-badge-success { background: var(--eh-success-soft); color: #137333; }
.eh-badge-warning { background: var(--eh-warning-soft); color: #8a5a00; }
.eh-badge-info { background: var(--eh-primary-soft); color: var(--eh-primary-600); }
.eh-badge-muted { background: #eef2f7; color: var(--eh-muted); }
.eh-badge-danger { background: var(--eh-danger-soft); color: #b42318; }

.eh-table-muted {
    margin-top: 4px;
    color: var(--eh-muted);
    font-size: 12px;
    line-height: 1.35;
}

.eh-work-report-service-badge {
    display: inline-flex;
    margin-top: 6px;
    max-width: 100%;
    vertical-align: middle;
}

.eh-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.eh-upload-form {
    align-items: start;
}

.eh-upload-form .eh-upload-dropzone-field {
    grid-column: 1 / -1;
}

.eh-upload-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    margin-top: 2px;
}

.eh-upload-actions .eh-btn {
    min-width: 132px;
}

.eh-list-form {
    display: grid;
    gap: 14px;
    min-width: 0;
    max-width: 100%;
}

.eh-list-form-row {
    display: grid;
    gap: 14px;
    min-width: 0;
    max-width: 100%;
}

.eh-list-form-row--compact {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.eh-backup-form {
    display: grid;
    gap: 18px;
}

.eh-backup-range {
    margin-top: -6px;
}

.eh-backup-result {
    margin-top: 18px;
    display: grid;
    gap: 14px;
}

.eh-backup-result-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.eh-backup-page {
    display: grid;
    gap: 18px;
}

.eh-backup-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.eh-backup-overview-item,
.eh-backup-card-facts > div {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: var(--eh-surface-soft);
}

.eh-backup-overview-item span,
.eh-backup-card-facts span {
    display: block;
    color: var(--eh-text-muted);
    font-size: 12px;
    line-height: 1.35;
}

.eh-backup-overview-item strong,
.eh-backup-card-facts strong {
    display: block;
    min-width: 0;
    margin-top: 4px;
    color: var(--eh-text-strong);
    overflow-wrap: anywhere;
}

.eh-backup-overview-item small {
    display: block;
    margin-top: 4px;
    color: var(--eh-text-muted);
    overflow-wrap: anywhere;
}

.eh-backup-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.eh-backup-module-card {
    min-width: 0;
}

.eh-backup-module-card .eh-card-header {
    align-items: flex-start;
}

.eh-backup-status-pill {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.eh-backup-status-pill.is-ok {
    background: #e9f8ef;
    color: #137a3d;
}

.eh-backup-status-pill.is-error {
    background: #fff0ef;
    color: #b42318;
}

.eh-backup-status-pill.is-muted {
    background: #eef2f7;
    color: var(--eh-text-muted);
}

.eh-backup-card-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.eh-backup-scope-details {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: #fff;
}

.eh-backup-scope-details summary {
    cursor: pointer;
    color: var(--eh-text-strong);
    font-weight: 800;
}

.eh-backup-scope-details p {
    margin: 5px 0 10px;
    color: var(--eh-text-muted);
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.eh-backup-status-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.eh-backup-status-grid > div {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: var(--eh-surface-soft);
}

.eh-backup-status-grid span,
.eh-backup-list-item span {
    display: block;
    color: var(--eh-text-muted);
    font-size: 12px;
    line-height: 1.35;
}

.eh-backup-status-grid strong,
.eh-backup-list-item strong {
    display: block;
    min-width: 0;
    margin-top: 4px;
    color: var(--eh-text-strong);
    overflow-wrap: anywhere;
}

.eh-backup-list {
    display: grid;
    gap: 10px;
}

.eh-backup-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(150px, 0.7fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: var(--eh-surface-soft);
}

.eh-backup-summary,
.eh-backup-conflicts {
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--eh-surface-soft);
    border: 1px solid var(--eh-border);
}

.eh-backup-conflicts ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.eh-backup-admin {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.eh-backup-admin .eh-btn {
    min-height: 44px;
}

.eh-backup-admin-header {
    align-items: flex-end;
}

.eh-backup-security-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #dca400;
    border-radius: 6px;
    background: #fff7d6;
    color: #5f4700;
}

.eh-backup-security-banner.is-production-ready {
    border-color: #7cc99b;
    background: #e9f8ef;
    color: #137a3d;
}

.eh-backup-security-banner strong {
    flex: 0 0 auto;
}

.eh-backup-security-banner span {
    min-width: 0;
}

.eh-backup-admin-tabs {
    margin: 0;
}

.eh-backup-admin-panel {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.eh-backup-admin-panel[hidden] {
    display: none;
}

.eh-backup-admin-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.eh-backup-summary-item {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--eh-border);
    border-radius: 6px;
    background: var(--eh-surface-soft);
}

.eh-backup-summary-item span,
.eh-backup-summary-item small {
    display: block;
    color: var(--eh-text-muted);
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.eh-backup-summary-item strong {
    display: block;
    margin: 5px 0;
    color: var(--eh-text-strong);
    font-size: 18px;
    overflow-wrap: anywhere;
}

.eh-backup-admin-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--eh-border);
    border-bottom: 1px solid var(--eh-border);
}

.eh-backup-admin-band h2,
.eh-backup-section-header h2,
.eh-backup-section-header h3 {
    margin: 0;
    color: var(--eh-text-strong);
    font-size: 18px;
    letter-spacing: 0;
}

.eh-backup-admin-band p,
.eh-backup-section-header p {
    margin: 4px 0 0;
    color: var(--eh-text-muted);
    line-height: 1.5;
}

.eh-backup-gate-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.eh-backup-gate-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--eh-border);
    border-radius: 6px;
    background: var(--eh-surface-soft);
}

.eh-backup-gate-item strong,
.eh-backup-gate-item small {
    display: block;
}

.eh-backup-gate-item small {
    margin-top: 3px;
    color: var(--eh-text-muted);
}

.eh-backup-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.eh-backup-section-header.is-subsection {
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--eh-border);
}

.eh-backup-target-list {
    display: grid;
    gap: 8px;
}

.eh-backup-target-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-width: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--eh-border);
}

.eh-backup-target-main,
.eh-backup-target-heading {
    min-width: 0;
}

.eh-backup-target-heading {
    display: flex;
    align-items: center;
    gap: 9px;
}

.eh-backup-target-heading strong,
.eh-backup-target-path {
    overflow-wrap: anywhere;
}

.eh-backup-target-path {
    display: block;
    margin-top: 4px;
    color: var(--eh-text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
}

.eh-backup-target-warning {
    display: block;
    margin-top: 7px;
    color: #8a4b00;
}

.eh-backup-target-health {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 7px;
    color: var(--eh-text-muted);
    font-size: 12px;
}

.eh-backup-target-health span {
    overflow-wrap: anywhere;
}

.eh-backup-settings-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    max-width: 860px;
}

.eh-backup-settings-form > label,
.eh-backup-inline-form > label,
.eh-backup-target-dialog label {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: var(--eh-text-strong);
    font-weight: 700;
}

.eh-backup-settings-form > label {
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--eh-border);
    border-radius: 6px;
    background: #fff;
}

.eh-backup-settings-form > label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
}

.eh-backup-settings-form > label.is-disabled {
    color: var(--eh-text-muted);
    background: var(--eh-surface-soft);
}

.eh-backup-settings-form .eh-actions {
    grid-column: 1 / -1;
}

.eh-backup-settings-form > .eh-backup-full-scope {
    grid-column: 1 / -1;
}

.eh-backup-full-scope span,
.eh-backup-full-scope small {
    display: block;
}

.eh-backup-full-scope small {
    margin-top: 3px;
    color: var(--eh-text-muted);
    font-weight: 500;
    line-height: 1.45;
}

.eh-backup-custom-scope {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
}

.eh-backup-custom-scope[hidden] {
    display: none;
}

.eh-backup-custom-scope > label {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 6px;
    align-items: start;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--eh-border);
    border-radius: 6px;
    background: #fff;
    color: var(--eh-text-strong);
    font-weight: 700;
}

.eh-backup-custom-scope input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
}

.eh-backup-scope-summary {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid var(--eh-border);
    border-radius: 6px;
    background: var(--eh-surface-soft);
}

.eh-backup-scope-summary[hidden] {
    display: none;
}

.eh-backup-scope-summary strong {
    color: var(--eh-text-strong);
}

.eh-backup-scope-summary ul {
    margin: 7px 0 0;
    padding-left: 20px;
    color: var(--eh-text-muted);
    font-size: 13px;
    line-height: 1.55;
}

.eh-backup-excluded-scope,
.eh-backup-protected-summary {
    grid-column: 1 / -1;
    color: var(--eh-text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.eh-backup-settings-form.is-compact {
    grid-template-columns: minmax(0, 1fr);
    max-width: 680px;
}

.eh-backup-settings-form.is-compact > label {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 0;
    border: 0;
}

.eh-backup-inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.eh-backup-inline-form > label {
    min-width: 180px;
}

.eh-backup-inline-form.is-wide > label {
    flex: 1 1 420px;
}

.eh-backup-inline-form input,
.eh-backup-inline-form select,
.eh-backup-target-dialog input,
.eh-backup-target-dialog select,
.eh-backup-settings-form input,
.eh-backup-settings-form select {
    width: 100%;
    min-height: 44px;
}

.eh-backup-isolation-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eh-backup-isolation-list span {
    padding: 7px 9px;
    border-radius: 6px;
    background: #e9f8ef;
    color: #137a3d;
    font-size: 12px;
    font-weight: 800;
}

.eh-backup-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

.eh-backup-admin-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.eh-backup-admin-table th,
.eh-backup-admin-table td {
    padding: 10px 9px;
    border-bottom: 1px solid var(--eh-border);
    text-align: left;
    vertical-align: middle;
}

.eh-backup-admin-table th {
    color: var(--eh-text-muted);
    font-size: 12px;
    font-weight: 800;
}

.eh-backup-validation-list {
    display: grid;
    gap: 6px;
}

.eh-backup-validation-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 44px;
    padding: 7px 0;
    border-bottom: 1px solid var(--eh-border);
}

.eh-backup-target-dialog {
    width: min(640px, calc(100vw - 32px));
}

.eh-backup-target-dialog .eh-task-editor-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.eh-backup-target-dialog .eh-check-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    min-height: 44px;
}

.eh-backup-target-dialog .eh-check-row input {
    width: 20px;
    min-height: 20px;
}

@media (max-width: 900px) {
    .eh-backup-admin-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .eh-backup-admin-header,
    .eh-backup-section-header,
    .eh-backup-security-banner,
    .eh-backup-target-row {
        align-items: stretch;
    }

    .eh-backup-admin-header,
    .eh-backup-section-header,
    .eh-backup-security-banner {
        flex-direction: column;
    }

    .eh-backup-admin-summary,
    .eh-backup-gate-grid,
    .eh-backup-settings-form,
    .eh-backup-custom-scope,
    .eh-backup-scope-summary,
    .eh-backup-target-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .eh-backup-target-row .eh-task-ui-actions {
        justify-content: flex-start;
    }

    .eh-backup-inline-form,
    .eh-backup-inline-form > label,
    .eh-backup-inline-form > button {
        width: 100%;
    }

    .eh-backup-admin-table {
        min-width: 680px;
    }
}
.eh-field-full { grid-column: 1 / -1; }

.eh-section {
    padding: 18px 0;
    border-top: 1px solid var(--eh-border);
}
.eh-section:first-child {
    padding-top: 0;
    border-top: 0;
}
.eh-section-title {
    margin: 0 0 14px;
    color: var(--eh-text-strong);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.eh-toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.eh-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius);
    background: var(--eh-surface-soft);
}
.eh-toggle input { margin-top: 3px; }
.eh-toggle strong { display: block; color: var(--eh-text-strong); }
.eh-toggle span span { display: block; margin-top: 3px; color: var(--eh-muted); font-size: 12px; line-height: 1.35; }

.eh-person {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
}
.eh-avatar {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--eh-primary);
    font-weight: 900;
    background: linear-gradient(145deg, #e7f0ff, #f8fafd);
}
.eh-person-name { color: var(--eh-text-strong); font-weight: 900; }
.eh-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #73829c;
}
.eh-link-card {
    display: inline-block;
    color: inherit;
    text-decoration: none;
}
.eh-link-card:hover .eh-person-name {
    color: var(--eh-primary);
}
.eh-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.eh-profile-status { margin-top: 14px; }

.eh-profile-container {
    width: 100%;
    margin: 0;
    display: grid;
    gap: 16px;
}

.eh-profile-header,
.eh-force-password-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.eh-profile-header-status {
    flex: 0 0 auto;
}

.eh-profile-page {
    display: grid;
    gap: 18px;
}

.eh-profile-contact-stack {
    display: grid;
    gap: 18px;
}

.eh-profile-card {
    border-radius: 18px;
}

.eh-profile-card .eh-card-header,
.eh-profile-card .eh-card-body,
.eh-profile-card .eh-card-footer {
    padding: 16px 18px;
}

.eh-profile-hero-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 20px;
}

.eh-profile-hero-card--pro {
    align-items: start;
    padding: 22px;
}

.eh-profile-avatar-large {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #e7f0ff, #f8fafd);
    color: var(--eh-primary);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: inset 0 0 0 1px rgba(var(--eh-primary-rgb), 0.12);
}

.eh-profile-hero-main {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.eh-profile-eyebrow {
    color: #71809a;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.eh-profile-hero-main h2 {
    margin: 0;
    color: var(--eh-text-strong);
    font-size: 32px;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.eh-profile-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #51617c;
    font-size: 14px;
    font-weight: 700;
}

.eh-profile-meta-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(247, 250, 255, 0.92);
    border: 1px solid rgba(129, 145, 173, 0.18);
}

.eh-profile-hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.eh-profile-hero-fact {
    display: grid;
    gap: 3px;
    min-width: 136px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(247, 250, 255, 0.92);
    border: 1px solid rgba(129, 145, 173, 0.18);
}

.eh-profile-hero-fact span {
    color: #71809a;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.eh-profile-hero-fact strong {
    color: var(--eh-text-strong);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.25;
}

.eh-profile-chip-list,
.eh-profile-inline-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.eh-profile-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--eh-primary-soft);
    color: var(--eh-primary-600);
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.eh-profile-chip--muted {
    background: #eef2f7;
    color: var(--eh-muted);
}

.eh-profile-badge-groups {
    display: grid;
    gap: 10px;
}

.eh-profile-badge-group {
    display: grid;
    gap: 6px;
}

.eh-profile-badge-group-label {
    color: #71809a;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.eh-profile-display-card .eh-card-body,
.eh-profile-edit-card .eh-card-body {
    display: grid;
    gap: 14px;
}

.eh-profile-work-card .eh-card-body {
    padding-top: 6px;
}

.eh-profile-work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.eh-profile-work-item {
    min-width: 0;
    display: grid;
    gap: 5px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(247, 250, 255, 0.92);
    border: 1px solid rgba(129, 145, 173, 0.16);
    color: inherit;
    text-decoration: none;
}

.eh-profile-work-item[href]:hover,
.eh-profile-work-item[href]:focus-visible {
    border-color: rgba(var(--eh-primary-rgb), 0.32);
    box-shadow: 0 10px 24px rgba(var(--eh-primary-rgb), 0.09);
    transform: translateY(-1px);
}

.eh-profile-work-item--warning {
    background: rgba(255, 251, 235, 0.92);
    border-color: rgba(245, 158, 11, 0.22);
}

.eh-profile-work-label {
    color: #71809a;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.3;
}

.eh-profile-work-value {
    color: var(--eh-text-strong);
    font-size: 24px;
    font-weight: 950;
    line-height: 1.1;
}

.eh-profile-work-detail {
    min-width: 0;
    color: #51617c;
    font-size: 12px;
    font-weight: 720;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.eh-profile-display-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 30px;
}

.eh-profile-display-item {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.eh-profile-display-label {
    color: #71809a;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.35;
}

.eh-profile-display-value {
    min-width: 0;
    color: var(--eh-text-strong);
    font-size: 15px;
    font-weight: 780;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.eh-profile-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.eh-profile-edit-grid--single {
    grid-template-columns: minmax(0, 520px);
}

.eh-profile-edit-grid--address .eh-profile-edit-field:first-child,
.eh-profile-edit-field--full {
    grid-column: 1 / -1;
}

.eh-profile-edit-section {
    display: grid;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(129, 145, 173, 0.14);
}

.eh-profile-edit-section-title {
    color: var(--eh-primary);
    font-size: 14px;
    font-weight: 900;
}

.eh-profile-edit-panel {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(129, 145, 173, 0.14);
}

.eh-profile-edit-panel > summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    color: var(--eh-primary);
    font-size: 15px;
    font-weight: 900;
    list-style: none;
}

.eh-profile-edit-panel > summary::-webkit-details-marker {
    display: none;
}

.eh-profile-edit-toggle {
    font-size: 12px;
    transition: transform .18s ease;
}

.eh-profile-edit-panel[open] .eh-profile-edit-toggle {
    transform: rotate(180deg);
}

.eh-profile-edit-form {
    display: grid;
    gap: 14px;
    padding: 10px 0 0;
}

.eh-profile-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.eh-profile-card--wide {
    grid-column: 1 / -1;
}

.eh-profile-compact-list {
    display: grid;
    gap: 0;
}

.eh-profile-data-row {
    display: grid;
    grid-template-columns: minmax(118px, 0.42fr) minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(129, 145, 173, 0.14);
}

.eh-profile-data-row:first-child {
    padding-top: 0;
}

.eh-profile-data-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.eh-profile-data-label {
    color: #71809a;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.35;
}

.eh-profile-data-value {
    min-width: 0;
    color: var(--eh-text-strong);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.eh-profile-personal-card .eh-card-body {
    display: grid;
    gap: 12px;
}

.eh-profile-personal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
}

.eh-profile-personal-grid--address {
    padding-top: 4px;
    gap: 0 18px;
}

.eh-profile-personal-grid--address .eh-profile-personal-item:first-child,
.eh-profile-personal-grid > .eh-empty-state {
    grid-column: 1 / -1;
}

.eh-profile-personal-item {
    min-width: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(129, 145, 173, 0.14);
}

.eh-profile-personal-item--editable {
    padding-top: 10px;
}

.eh-profile-personal-item .eh-input {
    margin-top: 7px;
}

.eh-profile-form-grid--compact {
    gap: 12px;
}

.eh-profile-edit-details {
    margin-top: 14px;
    border-top: 1px solid rgba(129, 145, 173, 0.14);
    padding-top: 12px;
}

.eh-profile-edit-details summary {
    cursor: pointer;
    color: var(--eh-primary);
    font-weight: 900;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.eh-profile-edit-details[hidden] {
    display: none;
}

.eh-profile-security-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.eh-profile-password-card {
    border-radius: 18px;
}

.eh-profile-password-details > summary {
    min-height: 64px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    color: var(--eh-text-strong);
    font-size: 18px;
    font-weight: 900;
    list-style: none;
}

.eh-profile-password-details > summary::-webkit-details-marker {
    display: none;
}

.eh-profile-password-toggle {
    color: var(--eh-primary);
    font-size: 14px;
    transition: transform .18s ease;
}

.eh-profile-password-details[open] .eh-profile-password-toggle {
    transform: rotate(180deg);
}

.eh-profile-password-card .eh-profile-password-rules {
    display: none;
    margin: 0;
}

.eh-profile-password-card .eh-profile-password-rules.is-active {
    display: grid;
}

.eh-profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
}

.eh-profile-info-item {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(247, 250, 255, 0.92);
    border: 1px solid rgba(129, 145, 173, 0.16);
    min-height: 88px;
}

.eh-profile-info-label {
    font-size: 12px;
    font-weight: 700;
    color: #73829c;
    margin-bottom: 8px;
}

.eh-profile-info-value {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
    color: #20304b;
    word-break: break-word;
}

.eh-profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

.eh-profile-address-field-full {
    grid-column: 1 / -1;
}

.eh-profile-card-footer {
    display: flex;
    justify-content: flex-end;
}

.eh-force-password-container {
    width: min(680px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 18px;
}

.eh-password-rules {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: grid;
    gap: 8px;
}

.eh-password-rule {
    position: relative;
    padding-left: 24px;
    color: #7b879c;
    font-size: 14px;
    line-height: 1.4;
}

.eh-password-rule::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid rgba(129, 145, 173, 0.38);
    background: rgba(129, 145, 173, 0.08);
}

.eh-password-rule--ok {
    color: #1b7f52;
    font-weight: 600;
}

.eh-password-rule--ok::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: rgba(27, 127, 82, 0.22);
    background: rgba(27, 127, 82, 0.12);
    color: #1b7f52;
    font-size: 11px;
    font-weight: 800;
}

.eh-password-form-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.eh-alert.eh-hidden,
.eh-meta-list.eh-hidden {
    display: none;
}

.eh-sidebar-stack {
    display: grid;
    gap: 18px;
}

.eh-audit-list {
    display: grid;
    gap: 14px;
}

.eh-audit-entry {
    padding-top: 2px;
    border-top: 1px solid rgba(129, 145, 173, 0.18);
}

.eh-audit-entry:first-child {
    padding-top: 0;
    border-top: 0;
}

.eh-audit-entry-header {
    display: grid;
    gap: 4px;
    margin-bottom: 10px;
}

.eh-audit-entry-title {
    font-size: 14px;
    font-weight: 700;
    color: #20304b;
}

.eh-audit-entry-meta {
    font-size: 12px;
    color: #6a7a95;
}

.eh-audit-change-list {
    display: grid;
    gap: 10px;
}

.eh-audit-change {
    display: grid;
    gap: 4px;
}

.eh-audit-change-label {
    font-size: 12px;
    font-weight: 700;
    color: #50627f;
    text-transform: uppercase;
}

.eh-audit-change-values {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #20304b;
}

.eh-audit-arrow {
    color: #6a7a95;
}

.eh-meta-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.eh-meta-item {
    padding: 12px;
    border-radius: var(--eh-radius);
    background: var(--eh-surface-soft);
    border: 1px solid var(--eh-border);
}
.eh-meta-label {
    margin-bottom: 4px;
    color: var(--eh-muted);
    font-size: var(--eh-meta-font-size);
    font-weight: 900;
    line-height: 1.35;
    text-transform: uppercase;
}
.eh-meta-value { color: var(--eh-text-strong); font-weight: 800; overflow-wrap: anywhere; }

.eh-checkbox-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.eh-role-permission-groups {
    display: grid;
    gap: 14px;
}

.eh-role-permission-group .eh-card-header,
.eh-role-permission-group .eh-card-body {
    background: transparent;
}

.eh-role-permission-group .eh-checkbox-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: stretch;
}

.eh-checkbox-card {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--eh-border);
    border-radius: 999px;
    background: #f7f9fd;
    color: var(--eh-text-strong);
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    user-select: none;
}

.eh-role-permission-group .eh-checkbox-card {
    align-items: flex-start;
    min-height: 58px;
    padding: 10px 12px;
    border-radius: var(--eh-radius-sm);
}

.eh-checkbox-card span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.eh-permission-label {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.eh-checkbox-card .eh-permission-label {
    display: grid;
    align-items: normal;
    line-height: 1.25;
}

.eh-permission-label strong {
    color: var(--eh-text-strong);
    font-size: 13px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.eh-permission-label small {
    color: var(--eh-text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.eh-permission-label small.eh-role-assignment-note {
    font-family: inherit;
    font-weight: 600;
}

.eh-checkbox-card:has(input:disabled) {
    cursor: not-allowed;
    opacity: 0.72;
}

.eh-checkbox-card-hidden {
    display: none;
}

.eh-worktime-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.eh-checkbox-card input[type="checkbox"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    transform: none;
    accent-color: var(--eh-primary);
}

#employee-team-options.eh-checkbox-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
}

#employee-team-options .eh-checkbox-card {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: auto;
    min-width: auto;
    min-height: 38px;
    padding: 0 14px;
    line-height: 1;
    white-space: nowrap;
}

#employee-team-options .eh-checkbox-card input[type="checkbox"] {
    position: static;
    top: auto;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    vertical-align: middle;
    transform: none;
}

#employee-team-options .eh-checkbox-card span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    white-space: nowrap;
}

.eh-alert {
    padding: 16px 18px;
    border-radius: var(--eh-radius);
    border: 1px solid var(--eh-border);
    background: var(--eh-surface);
    box-shadow: var(--eh-shadow-sm);
}
.eh-alert-warning {
    border-color: #f2d37b;
    background: var(--eh-warning-soft);
}
.eh-alert-info {
    border-color: #a8def0;
    background: #eaf8fd;
}
.eh-filter-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}
.eh-filter-toolbar .eh-field {
    min-width: 160px;
    margin: 0;
}
.eh-checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    color: var(--eh-text);
    font-weight: 700;
}
.eh-checkbox-inline input {
    width: 16px;
    height: 16px;
    margin: 0;
}
.eh-status--success {
    color: var(--eh-success);
}
.eh-status--error {
    color: var(--eh-danger);
}
.eh-appointment-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
}

.eh-appointment-form-card .eh-card-header {
    align-items: flex-start;
    gap: 14px;
}

.eh-appointment-form-card .eh-card-body {
    padding-top: 18px;
}

.eh-appointment-form-card .eh-form-grid {
    gap: 18px 20px;
}

.eh-appointment-form-card textarea {
    min-height: 110px;
    resize: vertical;
}

.eh-appointment-participant-field .eh-select {
    min-height: var(--eh-control-height);
}

.eh-appointment-participant-field.is-multiple .eh-select {
    min-height: 118px;
    padding-block: 8px;
}

.eh-participant-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: var(--eh-control-height);
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: var(--eh-surface-soft);
}

.eh-participant-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    max-width: 100%;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--eh-primary-soft);
    color: var(--eh-primary-600);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.eh-appointment-form-actions {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--eh-border);
}

.eh-day-appointments-panel {
    display: grid;
    gap: 12px;
    margin: 14px 0;
    padding: 14px;
    border: 1px solid var(--eh-border);
    border-radius: 14px;
    background: var(--eh-surface-soft);
}

.eh-day-appointments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.eh-appointment-block-list {
    display: grid;
    gap: 10px;
}

.eh-appointment-block {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(33, 82, 255, 0.14);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--eh-shadow-sm);
}

.eh-appointment-block-main {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.eh-appointment-block-main strong,
.eh-appointment-block-main span,
.eh-appointment-block-main p {
    min-width: 0;
    overflow-wrap: anywhere;
}

.eh-appointment-block-main p {
    margin: 4px 0 0;
    color: var(--eh-muted);
    font-size: 12px;
    line-height: 1.45;
}

.eh-empty-state--compact {
    min-height: 0;
    padding: 10px 0;
    background: transparent;
    box-shadow: none;
}

@media (max-width: 760px) {
    .eh-appointment-item,
    .eh-appointment-block {
        grid-template-columns: 1fr;
        display: grid;
    }

    .eh-day-appointments-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

.eh-dashboard-list-item-main {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}
.eh-dashboard-list-item-main span,
.eh-dashboard-list-item-main strong {
    min-width: 0;
}
.eh-monospace {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .04em;
}
.eh-temp-password {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 900;
}

.eh-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eh-history-item {
    padding: 12px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius);
    background: var(--eh-surface-soft);
}

.eh-history-item.is-current {
    border-color: rgba(57, 103, 255, 0.28);
    background: rgba(244, 247, 255, 0.95);
    box-shadow: 0 8px 20px rgba(57, 103, 255, 0.08);
}

.eh-history-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
}

.eh-history-title {
    color: var(--eh-text-strong);
    font-size: 13px;
    font-weight: 800;
}

.eh-empty-state {
    padding: 16px;
    border: 1px dashed var(--eh-border-strong);
    border-radius: var(--eh-radius);
    color: var(--eh-muted);
    background: #fbfcfe;
    font-size: 14px;
    line-height: 1.45;
}

.eh-task-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.25fr);
    gap: 18px;
    align-items: start;
}

.eh-task-create-card,
.eh-task-list-card {
    min-width: 0;
}

.eh-task-page-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: -4px 0 16px;
}

.eh-task-page-tab,
.eh-task-filter-chip {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--eh-border);
    border-radius: 999px;
    background: #fbfcfe;
    color: var(--eh-muted);
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.eh-task-page-tab.is-active,
.eh-task-filter-chip.is-active {
    border-color: rgba(33, 82, 255, 0.3);
    background: var(--eh-primary-soft);
    color: var(--eh-primary-600);
}

.eh-task-panel {
    min-width: 0;
}

.eh-task-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.eh-task-form-grid {
    align-items: start;
}

.eh-task-form-footer {
    align-items: center;
    justify-content: space-between;
    margin: 18px -18px -18px;
}

.eh-task-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.eh-task-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.eh-task-tabs .eh-tab {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--eh-border);
    border-radius: 999px;
    background: #fbfcfe;
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.eh-task-tabs .eh-tab.is-active {
    border-color: rgba(33, 82, 255, 0.28);
    background: var(--eh-primary-soft);
    color: var(--eh-primary-600);
}

.eh-task-status {
    margin-bottom: 12px;
}

.eh-my-tasks-page .eh-task-page-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.eh-my-tasks-page .eh-task-page-tab .eh-lucide-icon,
.eh-my-tasks-page #tasks-reload-btn .eh-lucide-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.eh-my-tasks-page .eh-task-list-card .eh-card-body {
    padding-top: 14px;
}

.eh-my-task-overview {
    display: flex;
    align-items: center;
    gap: 0;
    margin: -2px 0 16px;
    border-top: 1px solid var(--eh-border);
    border-bottom: 1px solid var(--eh-border);
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 800;
}

.eh-my-task-overview > span {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    min-height: 42px;
    padding: 10px 16px;
}

.eh-my-task-overview > span + span {
    border-left: 1px solid var(--eh-border);
}

.eh-my-task-overview strong {
    color: var(--eh-text-strong);
    font-size: 17px;
    line-height: 1;
}

.eh-my-tasks-page .eh-task-status:empty {
    display: none;
}

.eh-my-task-groups {
    display: grid;
    gap: 22px;
}

.eh-my-task-group {
    min-width: 0;
}

.eh-my-task-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.eh-my-task-group-header > div {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.eh-my-task-group-header h3 {
    margin: 0;
    color: var(--eh-text-strong);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
}

.eh-my-task-group-marker {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 3px;
    background: #64748b;
}

.eh-my-task-group--today .eh-my-task-group-marker { background: #d97706; }
.eh-my-task-group--tomorrow .eh-my-task-group-marker { background: #2563eb; }
.eh-my-task-group--week .eh-my-task-group-marker { background: #0f766e; }
.eh-my-task-group--overdue .eh-my-task-group-marker { background: #dc2626; }
.eh-my-task-group--later .eh-my-task-group-marker { background: #64748b; }
.eh-my-task-group--done .eh-my-task-group-marker { background: #15803d; }

.eh-my-task-group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 24px;
    padding: 0 7px;
    border: 1px solid var(--eh-border);
    border-radius: 6px;
    background: #f8fafc;
    color: var(--eh-muted);
    font-size: 11px;
    font-weight: 900;
}

.eh-my-task-group-list {
    overflow: hidden;
    border: 1px solid var(--eh-border);
    border-radius: 8px;
    background: #fff;
}

.eh-my-task-group-empty {
    padding: 13px 16px;
    color: var(--eh-muted);
    background: #fbfcfe;
    font-size: 12px;
    font-weight: 700;
}

.eh-my-task-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    min-width: 0;
    min-height: 72px;
    background: #fff;
    transition: background-color 140ms ease, opacity 140ms ease;
}

.eh-my-task-row + .eh-my-task-row {
    border-top: 1px solid var(--eh-border);
}

.eh-my-task-row:hover,
.eh-my-task-row:focus-within {
    background: #f8fafc;
}

.eh-my-task-row.is-updating {
    opacity: 0.58;
    pointer-events: none;
}

.eh-my-task-checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-height: 48px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.eh-my-task-checkbox input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.eh-my-task-checkbox-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid #94a3b8;
    border-radius: 7px;
    background: #fff;
    color: transparent;
    transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.eh-my-task-checkbox-box .eh-lucide-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2.4;
}

.eh-my-task-checkbox input:focus-visible + .eh-my-task-checkbox-box {
    outline: 3px solid rgba(37, 99, 235, 0.2);
    outline-offset: 2px;
}

.eh-my-task-checkbox input:checked + .eh-my-task-checkbox-box {
    border-color: #15803d;
    background: #15803d;
    color: #fff;
}

.eh-my-task-checkbox:hover .eh-my-task-checkbox-box {
    transform: scale(1.05);
}

.eh-my-task-checkbox input:disabled + .eh-my-task-checkbox-box {
    opacity: 0.42;
    cursor: not-allowed;
}

.eh-my-task-row-main {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 11px 8px 11px 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.eh-my-task-title-line {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.eh-my-task-title {
    min-width: 0;
    color: var(--eh-text-strong);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.eh-my-task-priority {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 5px;
    background: #f1f5f9;
    color: #475569;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
}

.eh-my-task-priority--low {
    background: #ecfdf5;
    color: #047857;
}

.eh-my-task-priority--high {
    background: #fffbeb;
    color: #b45309;
}

.eh-my-task-priority--urgent {
    background: #fef2f2;
    color: #b91c1c;
}

.eh-my-task-note {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    color: var(--eh-text);
    font-size: 12px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.eh-my-task-row-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 12px;
    min-width: 0;
    color: var(--eh-muted);
    font-size: 11px;
    font-weight: 700;
}

.eh-my-task-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.eh-my-task-meta-item > span:last-child {
    overflow-wrap: anywhere;
}

.eh-my-task-meta-icon {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
}

.eh-my-task-row-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px 0 2px;
}

.eh-my-task-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--eh-muted);
    text-decoration: none;
    cursor: pointer;
}

.eh-my-task-icon-action:hover,
.eh-my-task-icon-action:focus-visible {
    border-color: var(--eh-border);
    background: #fff;
    color: var(--eh-primary-600);
    outline: none;
}

.eh-my-task-icon-action .eh-lucide-icon {
    width: 17px;
    height: 17px;
}

.eh-my-task-row.is-done .eh-my-task-title {
    color: var(--eh-muted);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.eh-my-task-row.is-done .eh-my-task-note,
.eh-my-task-row.is-done .eh-my-task-row-meta,
.eh-my-task-row.is-done .eh-my-task-priority {
    opacity: 0.72;
}

.eh-employee-task-shell {
    display: grid;
    grid-template-columns: minmax(340px, 0.72fr) minmax(0, 1.28fr);
    gap: 18px;
    align-items: start;
}

.eh-employee-task-form-card,
.eh-employee-task-list-card {
    min-width: 0;
}

.eh-employee-task-form-card {
    position: sticky;
    top: 16px;
}

.eh-employee-task-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eh-employee-task-assignee-head,
.eh-employee-task-form-footer,
.eh-employee-task-title-line,
.eh-employee-task-meta,
.eh-employee-task-assignee-chips,
.eh-employee-task-row-actions,
.eh-employee-task-scopes {
    display: flex;
    align-items: center;
}

.eh-employee-task-assignee-head,
.eh-employee-task-form-footer {
    justify-content: space-between;
    gap: 12px;
}

.eh-employee-task-assignee-picker {
    overflow: hidden;
    border: 1px solid var(--eh-border);
    border-radius: 8px;
    background: #fff;
}

.eh-employee-task-search-wrap {
    position: relative;
    border-bottom: 1px solid var(--eh-border);
    background: #f8fafc;
}

.eh-employee-task-search-wrap .eh-lucide-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 16px;
    height: 16px;
    color: var(--eh-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.eh-employee-task-search-wrap .eh-input {
    border: 0;
    border-radius: 0;
    padding-left: 38px;
    background: transparent;
    box-shadow: none;
}

.eh-employee-task-assignee-options {
    display: grid;
    max-height: 280px;
    overflow: auto;
    overscroll-behavior: contain;
}

.eh-employee-task-assignee-option {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    min-height: 52px;
    padding: 7px 12px;
    color: var(--eh-text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.eh-employee-task-assignee-option + .eh-employee-task-assignee-option {
    border-top: 1px solid var(--eh-border);
}

.eh-employee-task-assignee-option:hover,
.eh-employee-task-assignee-option:focus-within {
    background: #f8fafc;
}

.eh-employee-task-assignee-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.eh-employee-task-assignee-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 2px solid #94a3b8;
    border-radius: 6px;
    background: #fff;
    color: transparent;
}

.eh-employee-task-assignee-check .eh-lucide-icon {
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
}

.eh-employee-task-assignee-option input:checked + .eh-employee-task-assignee-check {
    border-color: var(--eh-primary-600);
    background: var(--eh-primary-600);
    color: #fff;
}

.eh-employee-task-assignee-option input:focus-visible + .eh-employee-task-assignee-check {
    outline: 3px solid rgba(37, 99, 235, 0.2);
    outline-offset: 2px;
}

.eh-employee-task-assignee-option strong,
.eh-employee-task-assignee-option small {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.eh-employee-task-assignee-option strong {
    color: var(--eh-text-strong);
    font-size: 13px;
    line-height: 1.25;
}

.eh-employee-task-assignee-option small {
    margin-top: 2px;
    color: var(--eh-muted);
    font-size: 11px;
    font-weight: 700;
}

.eh-employee-task-picker-empty {
    padding: 16px;
    color: var(--eh-muted);
    background: #fbfcfe;
    font-size: 12px;
    font-weight: 700;
}

.eh-employee-task-form-footer {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--eh-border);
}

.eh-employee-task-scopes {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.eh-employee-task-list {
    overflow: hidden;
    border: 1px solid var(--eh-border);
    border-radius: 8px;
    background: #fff;
}

.eh-employee-task-list > .eh-empty-state {
    border: 0;
    border-radius: 0;
}

.eh-employee-task-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    min-width: 0;
    padding: 5px 0;
    background: #fff;
}

.eh-employee-task-row + .eh-employee-task-row {
    border-top: 1px solid var(--eh-border);
}

.eh-employee-task-row:hover,
.eh-employee-task-row:focus-within {
    background: #f8fafc;
}

.eh-employee-task-row-main {
    min-width: 0;
    padding: 9px 8px 9px 0;
}

.eh-employee-task-title-line {
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}

.eh-employee-task-title-line h3 {
    min-width: 0;
    margin: 0;
    color: var(--eh-text-strong);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.eh-employee-task-row-main p {
    display: -webkit-box;
    margin: 5px 0 0;
    overflow: hidden;
    color: var(--eh-text);
    font-size: 12px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.eh-employee-task-meta {
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 7px;
    color: var(--eh-muted);
    font-size: 11px;
    font-weight: 700;
}

.eh-employee-task-assignee-chips {
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
}

.eh-employee-task-assignee-chip {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 3px 7px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #f8fafc;
    color: #475569;
    font-size: 10px;
    font-weight: 800;
}

.eh-employee-task-row-actions {
    padding: 0 10px 0 2px;
}

.eh-employee-task-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--eh-muted);
    cursor: pointer;
}

.eh-employee-task-icon-button:hover,
.eh-employee-task-icon-button:focus-visible {
    border-color: var(--eh-border);
    background: #fff;
    color: var(--eh-primary-600);
    outline: none;
}

.eh-employee-task-icon-button .eh-lucide-icon {
    width: 17px;
    height: 17px;
}

.eh-employee-task-row.is-done .eh-employee-task-title-line h3 {
    color: var(--eh-muted);
    text-decoration: line-through;
}

.eh-employee-task-row.is-done .eh-employee-task-row-main p,
.eh-employee-task-row.is-done .eh-employee-task-meta,
.eh-employee-task-row.is-done .eh-employee-task-assignee-chips {
    opacity: 0.72;
}

.eh-employee-tasks-page .eh-task-status:empty {
    display: none;
}

.eh-employee-tasks-page #employee-tasks-reload .eh-lucide-icon {
    width: 17px;
    height: 17px;
}

.eh-task-details-dialog {
    width: min(760px, calc(100vw - 32px));
    max-width: 760px;
    max-height: min(820px, calc(100vh - 32px));
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--eh-border-strong);
    border-radius: 8px;
    background: var(--eh-surface);
    color: var(--eh-text);
    box-shadow: var(--eh-shadow);
    z-index: var(--eh-z-modal);
}

.eh-task-details-dialog::backdrop {
    background: rgba(15, 23, 42, 0.48);
}

.eh-task-details-shell {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    max-height: min(820px, calc(100vh - 32px));
}

.eh-task-details-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--eh-border);
}

.eh-task-details-heading {
    min-width: 0;
}

.eh-task-details-kicker,
.eh-task-details-title,
.eh-task-details-subtitle {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.eh-task-details-kicker {
    margin-bottom: 4px;
    color: var(--eh-primary-600);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.eh-task-details-title {
    margin: 0;
    color: var(--eh-text-strong);
    font-size: 20px;
    line-height: 1.3;
}

.eh-task-details-subtitle {
    margin: 4px 0 0;
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 700;
}

.eh-task-details-close {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--eh-border);
    border-radius: 50%;
    background: var(--eh-surface-soft);
    color: var(--eh-text);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.eh-task-details-close:hover,
.eh-task-details-close:focus-visible {
    border-color: var(--eh-primary);
    color: var(--eh-primary-600);
    outline: none;
    box-shadow: var(--eh-focus);
}

.eh-task-details-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    border-bottom: 1px solid var(--eh-border);
    background: var(--eh-surface-soft);
}

.eh-task-details-tab {
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--eh-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}

.eh-task-details-tab:hover,
.eh-task-details-tab:focus-visible {
    color: var(--eh-text-strong);
    outline: none;
}

.eh-task-details-tab.is-active {
    border-color: var(--eh-border);
    background: var(--eh-surface);
    color: var(--eh-primary-600);
}

.eh-task-details-body {
    min-height: 300px;
    overflow: auto;
    overscroll-behavior: contain;
}

.eh-task-details-panel {
    padding: 16px 20px 20px;
}

.eh-task-details-panel[hidden] {
    display: none;
}

.eh-task-details-status {
    min-height: 20px;
    margin-bottom: 8px;
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 700;
}

.eh-task-details-status:empty {
    min-height: 0;
    margin: 0;
}

.eh-task-details-status[data-tone="danger"] {
    color: var(--eh-danger);
}

.eh-task-details-status[data-tone="success"] {
    color: var(--eh-success);
}

.eh-task-details-status[data-tone="warning"] {
    color: var(--eh-warning);
}

.eh-task-comment-list {
    overflow: hidden;
    border: 1px solid var(--eh-border);
    border-radius: 8px;
}

.eh-task-comment-item {
    padding: 12px 14px;
    background: var(--eh-surface);
}

.eh-task-comment-item + .eh-task-comment-item {
    border-top: 1px solid var(--eh-border);
}

.eh-task-comment-head,
.eh-task-comment-form-footer,
.eh-task-event-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.eh-task-comment-head strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--eh-text-strong);
    font-size: 13px;
}

.eh-task-comment-head time,
.eh-task-event-meta {
    color: var(--eh-muted);
    font-size: 11px;
    font-weight: 700;
}

.eh-task-comment-body {
    margin: 7px 0 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    color: var(--eh-text);
    font-size: 13px;
    line-height: 1.55;
}

.eh-task-comment-form {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--eh-border);
}

.eh-task-comment-form .eh-textarea {
    min-height: 92px;
    resize: vertical;
}

.eh-task-comment-form-footer {
    align-items: flex-end;
}

.eh-task-details-more {
    margin-top: 10px;
}

.eh-task-event-list {
    position: relative;
    display: grid;
}

.eh-task-event-item {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
    padding: 8px 0 14px;
}

.eh-task-event-item:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 22px;
    bottom: -4px;
    left: 6px;
    width: 2px;
    background: var(--eh-border);
}

.eh-task-event-marker {
    position: relative;
    z-index: 1;
    width: 14px;
    height: 14px;
    margin-top: 3px;
    border: 3px solid var(--eh-surface);
    border-radius: 50%;
    background: var(--eh-primary);
    box-shadow: 0 0 0 1px var(--eh-primary);
}

.eh-task-event-content {
    min-width: 0;
}

.eh-task-event-content strong,
.eh-task-event-content p {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.eh-task-event-content strong {
    color: var(--eh-text-strong);
    font-size: 13px;
}

.eh-task-event-content p {
    margin: 3px 0 0;
    color: var(--eh-text);
    font-size: 12px;
}

.eh-task-event-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 5px;
}

.eh-task-details-empty {
    padding: 24px 14px;
    border: 1px dashed var(--eh-border-strong);
    border-radius: 8px;
    color: var(--eh-muted);
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}

.eh-task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eh-task-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: #fff;
}

.eh-task-item-clickable {
    cursor: pointer;
}

.eh-task-item-clickable:hover,
.eh-task-item-clickable:focus {
    border-color: rgba(33, 82, 255, 0.28);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    outline: none;
}

.eh-task-item--done,
.eh-task-item--archived {
    background: #fbfcfe;
}

.eh-task-main {
    min-width: 0;
}

.eh-task-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.eh-task-title-row h3 {
    margin: 0;
    color: var(--eh-text-strong);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.eh-task-main p {
    margin: 8px 0 0;
    color: var(--eh-text);
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.eh-task-badges,
.eh-task-meta,
.eh-task-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.eh-task-badges {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.eh-task-meta {
    margin-top: 10px;
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 700;
}

.eh-task-reference {
    color: var(--eh-primary-600);
    text-decoration: none;
}

.eh-task-reference:hover {
    text-decoration: underline;
}

.eh-task-actions {
    justify-content: flex-end;
}

.eh-task-reminder-panel {
    padding: 12px 14px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: #fbfcfe;
}

.eh-task-reminder-panel--compact {
    display: grid;
    gap: 8px;
    align-content: start;
}

.eh-toggle-row {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--eh-text-strong);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.eh-task-reminder-rules {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.eh-task-reminder-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 6px;
}

.eh-task-reminder-panel--compact .eh-task-reminder-options {
    margin-top: 0;
}

.eh-task-reminder-chips label {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--eh-border);
    border-radius: 999px;
    background: #fff;
    color: var(--eh-text);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.eh-task-reminder-options label,
.eh-task-reminder-repeat {
    color: var(--eh-text);
    font-size: 13px;
    font-weight: 700;
}

.eh-task-reminder-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.eh-task-reminder-inline .eh-input {
    width: 88px;
}

.eh-task-reminder-inline .eh-select {
    width: 128px;
}

.eh-project-task-form {
    padding: 14px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: #fff;
}

.eh-project-task-form .eh-task-form-footer {
    justify-content: flex-end;
    gap: 8px;
}

.eh-project-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.eh-project-tabs .eh-tab {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--eh-border);
    border-radius: 999px;
    background: #fbfcfe;
    color: var(--eh-muted);
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

.eh-project-tabs .eh-tab.is-active {
    border-color: rgba(33, 82, 255, 0.28);
    background: var(--eh-primary-soft);
    color: var(--eh-primary-600);
}

.eh-project-overview {
    min-width: 0;
}

.eh-project-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 16px;
}

.eh-project-overview-card {
    min-width: 0;
    padding: 18px;
}

.eh-project-overview-card--status {
    border-color: rgba(33, 82, 255, 0.16);
    background: linear-gradient(180deg, rgba(244, 247, 255, 0.9), #fff);
}

.eh-project-overview-card-label {
    margin-bottom: 10px;
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.eh-project-overview-card h2,
.eh-project-overview-card h3 {
    margin: 0 0 8px;
    color: var(--eh-text-strong);
    overflow-wrap: anywhere;
}

.eh-project-overview-card h2 {
    font-size: 22px;
}

.eh-project-overview-card h3 {
    font-size: 16px;
}

.eh-project-overview-card p {
    margin: 0 0 12px;
    color: var(--eh-muted);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.eh-project-overview-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.eh-project-overview-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.eh-project-overview-metrics > div {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: var(--eh-surface-soft);
}

.eh-project-overview-metrics strong {
    display: block;
    color: var(--eh-text-strong);
    font-size: 22px;
    line-height: 1.1;
}

.eh-project-overview-metrics span {
    display: block;
    margin-top: 3px;
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 750;
}

.eh-project-overview-list {
    display: grid;
    gap: 8px;
}

.eh-project-overview-list-item {
    display: grid;
    gap: 3px;
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(125, 139, 158, 0.2);
    border-radius: var(--eh-radius-sm);
    background: #fff;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.eh-project-overview-list-item:hover {
    border-color: rgba(33, 82, 255, 0.24);
    background: #f8faff;
}

.eh-project-overview-list-item--static {
    cursor: default;
}

.eh-project-overview-list-item--static:hover {
    border-color: rgba(125, 139, 158, 0.2);
    background: #fff;
}

.eh-project-overview-list-title {
    color: var(--eh-text-strong);
    font-size: 13px;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eh-project-overview-list-meta,
.eh-project-overview-empty {
    color: var(--eh-muted);
    font-size: 12px;
    line-height: 1.45;
}

.eh-project-service-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eh-project-service-toolbar .eh-tab {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--eh-border);
    border-radius: 999px;
    background: #fbfcfe;
    color: var(--eh-muted);
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

.eh-project-service-toolbar .eh-tab.is-active {
    border-color: rgba(33, 82, 255, 0.28);
    background: var(--eh-primary-soft);
    color: var(--eh-primary-600);
}

.eh-project-service-list {
    min-width: 0;
}

.eh-project-service-table .eh-service-ticket-col-title {
    width: 30%;
}

.eh-project-service-table .eh-service-ticket-col-reporter {
    width: 20%;
}

.eh-project-service-table .eh-service-ticket-col-status {
    width: 12%;
}

.eh-project-service-table .eh-service-ticket-col-assignee {
    width: 16%;
}

.eh-project-service-table .eh-service-ticket-col-activity {
    width: 14%;
}

.eh-project-service-table .eh-service-ticket-col-action {
    width: 8%;
}

.eh-project-question-form {
    padding: 14px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: var(--eh-surface-soft);
}

.eh-project-question-list-form .eh-actions,
.eh-project-question-form > .eh-actions {
    justify-content: flex-end;
    padding-top: 4px;
}

.eh-project-question-list,
.eh-project-question-section {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.eh-project-question-section h3 {
    margin: 0;
    color: var(--eh-text-strong);
    font-size: 15px;
}

.eh-project-question-item {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: #fff;
}

.eh-project-question-item--open {
    border-color: rgba(245, 158, 11, 0.28);
}

.eh-project-question-item--answered {
    border-color: rgba(33, 82, 255, 0.18);
}

.eh-project-question-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.eh-project-question-title-wrap,
.eh-project-question-thread {
    min-width: 0;
}

.eh-project-question-head h4 {
    margin: 0 0 6px;
    color: var(--eh-text-strong);
    font-size: 15px;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.eh-project-question-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    color: var(--eh-muted);
    font-size: 12px;
    line-height: 1.45;
}

.eh-project-question-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.eh-project-question-thread {
    display: grid;
    gap: 8px;
}

.eh-project-question-message {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(125, 139, 158, 0.18);
    border-radius: var(--eh-radius-sm);
    background: #fbfcfe;
}

.eh-project-question-message--initial {
    background: #fff;
}

.eh-project-question-message--internal {
    border-color: rgba(245, 158, 11, 0.28);
    background: rgba(255, 251, 235, 0.72);
}

.eh-project-question-message-head {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    justify-content: space-between;
    color: var(--eh-muted);
    font-size: 12px;
}

.eh-project-question-message-head strong {
    color: var(--eh-text-strong);
}

.eh-project-question-message p {
    margin: 6px 0 0;
    color: var(--eh-text);
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.eh-project-question-actions,
.eh-project-question-reply-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.eh-project-question-reply {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.eh-project-readonly-summary {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: var(--eh-surface-soft);
}

.eh-project-readonly-summary-title {
    color: var(--eh-text-strong);
    font-size: 15px;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.eh-project-readonly-summary-note {
    margin-top: 4px;
    color: var(--eh-muted);
    font-size: 12px;
    line-height: 1.45;
}

.eh-project-appointment-form {
    padding: 14px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: var(--eh-surface-soft);
    overflow: hidden;
}

.eh-project-appointment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
    align-items: start;
}

.eh-project-appointment-grid .eh-field,
.eh-project-appointment-grid .eh-input,
.eh-project-appointment-grid .eh-select,
.eh-project-appointment-grid .eh-textarea {
    min-width: 0;
    max-width: 100%;
}

.eh-project-appointment-grid .eh-field-wide {
    grid-column: auto;
}

.eh-project-appointment-form select[multiple] {
    min-height: 112px;
    font-size: 13px;
}

.eh-project-appointment-list-form,
.eh-project-task-list-form,
.eh-project-question-list-form {
    width: 100%;
}

.eh-project-appointment-time-row,
.eh-project-task-meta-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.eh-project-appointment-meta-row,
.eh-project-question-meta-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eh-project-appointment-actions {
    justify-content: flex-end;
    padding-top: 14px;
    border-top: 1px solid var(--eh-border);
}

.eh-project-appointment-form .eh-project-appointment-actions {
    justify-content: flex-end;
}

.eh-project-appointments-list,
.eh-project-appointments-section,
.eh-project-appointments-grid {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.eh-project-appointments-section h3 {
    margin: 0;
    color: var(--eh-text-strong);
    font-size: 15px;
}

.eh-project-appointment-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: #fff;
}

.eh-project-appointment-main {
    min-width: 0;
}

.eh-project-appointment-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.eh-project-appointment-head h4 {
    margin: 0;
    color: var(--eh-text-strong);
    font-size: 14px;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.eh-project-appointment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--eh-muted);
    font-size: 12px;
    line-height: 1.45;
}

.eh-project-appointments-past {
    min-width: 0;
    padding-top: 4px;
}

.eh-project-appointments-past summary {
    cursor: pointer;
    color: var(--eh-text);
    font-weight: 850;
}

.eh-calendar-edit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.eh-calendar-edit-grid > .eh-card,
.eh-calendar-edit-grid > .eh-sidebar-stack {
    min-width: 0;
}

.eh-calendar-edit-form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.eh-calendar-edit-form-grid .eh-calendar-employee-field {
    grid-column: span 2;
}

.eh-calendar-edit-form-grid .eh-calendar-vehicle-apply-field {
    grid-column: span 2;
}

.eh-calendar-entry-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.eh-entry-card .eh-card-header,
.eh-entry-card .eh-card-footer {
    background: transparent;
}

.eh-entry-card {
    border: 1px solid rgba(57, 103, 255, 0.14);
}

.eh-entry-card.is-appointment {
    border-color: rgba(31, 131, 160, 0.28);
    background: linear-gradient(180deg, rgba(238, 251, 253, 0.86), #fff);
}

.eh-entry-card.is-appointment .entry-headline::after {
    content: "Termin";
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    min-height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(31, 131, 160, 0.12);
    color: #0e7490;
    font-size: 11px;
    font-weight: 800;
}

.eh-entry-card.is-appointment .entry-vehicle-field {
    display: none;
}

.entry-appointment-meta {
    margin-top: 6px;
    color: #0e7490;
}

.eh-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.eh-detail-grid > div {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.eh-detail-grid p {
    margin: 0;
    color: var(--eh-muted);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

@media (max-width: 860px) {
    .eh-detail-grid {
        grid-template-columns: 1fr;
    }
}

.eh-calendar-plan-status-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: var(--eh-surface-soft);
}

.eh-calendar-plan-status-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.eh-calendar-plan-status-control {
    width: min(260px, 100%);
}

.eh-calendar-plan-status-control .eh-select {
    width: 100%;
}

.eh-entry-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.eh-entry-grid .eh-input,
.eh-entry-grid .eh-select {
    min-width: 0;
    max-width: 100%;
}

.eh-entry-grid .entry-title-field,
.eh-entry-grid .entry-project-field,
.eh-entry-grid .entry-service-ticket-field {
    grid-column: span 2;
    min-width: 0;
}

.entry-project-current,
.entry-service-ticket-current {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 860px) {
    .eh-entry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eh-entry-grid .entry-title-field,
    .eh-entry-grid .entry-project-field,
    .eh-entry-grid .entry-service-ticket-field {
        grid-column: span 2;
    }

    .eh-calendar-edit-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.eh-history-time {
    color: var(--eh-muted);
    font-size: 12px;
    white-space: nowrap;
}

.eh-history-summary {
    margin-top: 6px;
    color: var(--eh-text);
    font-size: 13px;
    line-height: 1.45;
}

.eh-week-day-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eh-week-day-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius);
    background: var(--eh-surface-soft);
    color: inherit;
    text-decoration: none;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.eh-week-day-link:hover {
    border-color: rgba(57, 103, 255, 0.24);
    transform: translateY(-1px);
    box-shadow: var(--eh-shadow-sm);
}

.eh-week-day-link.is-current {
    border-color: rgba(57, 103, 255, 0.35);
    background: rgba(243, 247, 255, 0.95);
}

.eh-week-day-link.is-blocked {
    border-color: #f2d37b;
    background: #fff8eb;
}

.eh-week-day-link.is-locked {
    border-color: #f0b7c4;
}

#lock-banner {
    text-align: center;
    justify-content: center;
    margin-top: 4px;
    margin-bottom: 4px;
}

.eh-week-day-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.eh-week-day-title {
    color: var(--eh-text-strong);
    font-size: 13px;
    font-weight: 800;
}

.eh-week-day-meta {
    color: var(--eh-muted);
    font-size: 12px;
}

.eh-week-day-hours {
    color: var(--eh-text-strong);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.eh-history-changes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.eh-history-change {
    padding-top: 10px;
    border-top: 1px solid rgba(215, 222, 234, 0.8);
}

.eh-history-change:first-child {
    padding-top: 0;
    border-top: 0;
}

.eh-history-change-label {
    color: var(--eh-text-strong);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.eh-history-change-values {
    margin-top: 4px;
    color: var(--eh-text);
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.eh-history-meta {
    margin-top: 6px;
    color: var(--eh-muted);
    font-size: 12px;
    line-height: 1.4;
}

.eh-technical-note {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eh-employee-day-entry-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(215, 222, 234, 0.9);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.eh-employee-day-entry-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eh-employee-day-entry-title {
    margin: 0;
    color: var(--eh-text-strong);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

.eh-employee-day-entry-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eh-employee-day-entry-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f6f8fc;
    border: 1px solid rgba(215, 222, 234, 0.9);
    color: var(--eh-text-strong);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.eh-employee-day-entry-note {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--eh-text);
    font-size: 13px;
    line-height: 1.5;
}

.eh-employee-day-entry-note-label,
.eh-employee-day-entry-question-title {
    color: var(--eh-text-strong);
    font-size: 12px;
    font-weight: 800;
}

.eh-employee-day-entry-question {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(215, 222, 234, 0.8);
}

.eh-employee-day-entry-question-list {
    display: grid;
    gap: 10px;
}

.eh-employee-day-entry-question-item {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid rgba(215, 222, 234, 0.9);
}

.eh-employee-day-entry-question-item:target {
    border-color: var(--eh-primary);
    box-shadow: 0 0 0 3px rgba(33, 82, 255, 0.12);
}

.eh-employee-day-entry-question-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.eh-employee-day-entry-question-date {
    color: var(--eh-muted);
    font-size: 12px;
}

.eh-employee-day-entry-question-text {
    color: var(--eh-text-strong);
    font-size: 14px;
    line-height: 1.5;
}

.eh-employee-day-entry-answer,
.eh-employee-day-entry-answer-form {
    display: grid;
    gap: 8px;
}

.eh-employee-day-entry-question-context {
    color: var(--eh-muted);
    font-size: 12px;
    line-height: 1.4;
}

.eh-employee-day-entry-question-input {
    min-height: 92px;
}

.eh-employee-day-entry-question-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.eh-technical-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr);
}

.eh-settings-bool {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--eh-text);
    font-size: 14px;
}

.eh-settings-breaks-grid {
    display: grid;
    gap: 12px;
}

.eh-settings-break-editor {
    border: 1px solid rgba(215, 222, 234, 0.9);
    border-radius: 8px;
    padding: 12px;
    background: #f8fafc;
}

.eh-settings-break-day {
    font-weight: 700;
    color: var(--eh-text-strong);
    margin-bottom: 10px;
}

.eh-settings-break-list {
    display: grid;
    gap: 8px;
}

.eh-settings-break-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    padding: 10px;
    border: 1px solid rgba(215, 222, 234, 0.9);
    border-radius: 8px;
    background: #fff;
}

.eh-settings-break-row label {
    display: grid;
    gap: 4px;
    font-size: 13px;
    color: var(--eh-muted);
}

.eh-settings-break-index {
    font-size: 13px;
    font-weight: 700;
    color: var(--eh-text-strong);
    align-self: center;
}

.eh-settings-break-actions {
    margin-top: 10px;
}

.eh-settings-break-empty {
    font-size: 13px;
    color: var(--eh-muted);
    padding: 6px 0;
}

.eh-settings-model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.eh-settings-model-card {
    border: 1px solid rgba(215, 222, 234, 0.9);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
    display: grid;
    gap: 10px;
}

.eh-settings-model-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.eh-settings-model-state {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef2f7;
    color: #475569;
}

.eh-settings-model-state.is-active {
    background: #e8f7ec;
    color: #166534;
}

.eh-settings-model-meta {
    font-size: 13px;
    color: var(--eh-muted);
}

.eh-settings-model-grid-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.eh-settings-model-grid-inner span,
.eh-settings-model-json span {
    display: block;
    font-size: 12px;
    color: var(--eh-muted);
    margin-bottom: 4px;
}

.eh-settings-model-grid-inner strong {
    color: var(--eh-text-strong);
}

.eh-settings-model-json {
    display: grid;
    gap: 10px;
}

.eh-settings-model-json code {
    display: block;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 12px;
    background: #f8fafc;
    border: 1px solid rgba(215, 222, 234, 0.9);
    border-radius: 6px;
    padding: 8px;
}

.eh-settings-worktime-section {
    display: grid;
    gap: 16px;
}

.eh-settings-model-list {
    display: grid;
    gap: 14px;
}

.eh-settings-model-table {
    width: 100%;
    border-collapse: collapse;
}

.eh-settings-model-table th,
.eh-settings-model-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(215, 222, 234, 0.9);
    text-align: left;
    vertical-align: top;
}

.eh-settings-model-table th {
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 800;
}

.eh-settings-model-table td {
    color: var(--eh-text-strong);
    font-size: 13px;
}

.eh-settings-model-row.is-active {
    background: rgba(33, 82, 255, 0.04);
}

.eh-settings-model-summary {
    display: grid;
    gap: 2px;
}

.eh-settings-model-actions {
    display: flex;
    justify-content: flex-end;
}

.eh-chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, max-content));
    gap: 10px;
}

.eh-chip-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.eh-chip-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.eh-chip-check span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--eh-border);
    background: #f7f9fd;
    color: var(--eh-text-strong);
    font-size: 13px;
    font-weight: 700;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.eh-chip-check input:checked + span {
    background: var(--eh-primary-soft);
    border-color: rgba(33, 82, 255, 0.26);
    color: var(--eh-primary);
    box-shadow: var(--eh-shadow-sm);
}

.eh-chip-check input:disabled + span {
    opacity: 0.65;
}

.eh-worktime-distribution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
}

.eh-worktime-distribution-item {
    display: grid;
    gap: 6px;
}

.eh-worktime-distribution-item span {
    color: var(--eh-text-strong);
    font-size: 12px;
    font-weight: 700;
}

.eh-table tr.eh-row-locked {
    background: #f7f9fc;
}

.eh-settings-model-editor {
    display: grid;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--eh-border);
    border-radius: 18px;
    background: rgba(248, 250, 253, 0.95);
}

.eh-settings-model-editor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.eh-settings-model-editor-title {
    margin: 0;
    color: var(--eh-text-strong);
    font-size: 18px;
    font-weight: 800;
}

.eh-settings-model-editor-meta {
    margin-top: 4px;
    color: var(--eh-muted);
    font-size: 13px;
}

.eh-settings-model-editor-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.eh-settings-model-days-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.eh-settings-model-days-card,
.eh-settings-model-distribution {
    padding: 16px;
    border: 1px solid rgba(129, 145, 173, 0.16);
    border-radius: 16px;
    background: #fff;
}

.eh-settings-model-days-title {
    margin-bottom: 12px;
    color: var(--eh-text-strong);
    font-size: 14px;
    font-weight: 800;
}

.eh-settings-day-checkboxes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.eh-settings-day-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--eh-border);
    border-radius: 12px;
    background: var(--eh-surface-soft);
    font-size: 13px;
    font-weight: 700;
    color: var(--eh-text-strong);
}

.eh-settings-distribution-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.eh-settings-model-empty {
    padding: 18px;
    border: 1px dashed var(--eh-border);
    border-radius: 14px;
    color: var(--eh-muted);
    text-align: center;
}

.eh-settings-model-detail {
    margin-top: 18px;
}

.eh-settings-distribution-item {
    display: grid;
    gap: 8px;
}

.eh-settings-distribution-item span {
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 700;
}

.eh-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.eh-dashboard-page {
    gap: 14px;
}

.eh-dashboard-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    min-height: 34px;
    padding: 0 2px;
}

.eh-dashboard-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.eh-dashboard-view-tabs {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--eh-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.035);
}

.eh-dashboard-view-tab {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--eh-text);
    text-align: center;
    cursor: pointer;
}

.eh-dashboard-view-tab span {
    color: var(--eh-text-strong);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
}

.eh-dashboard-view-tab small {
    color: var(--eh-muted);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.2;
}

.eh-dashboard-view-tab.is-active {
    background: var(--eh-primary-soft);
    box-shadow: inset 0 0 0 1px rgba(var(--eh-primary-rgb), 0.18);
}

.eh-dashboard-view-tabs[hidden] {
    display: none;
}

.eh-dashboard-shell {
    display: block;
    min-width: 0;
}

.eh-dashboard-masonry {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: auto;
    align-items: start;
    gap: 12px;
}

.eh-dashboard-masonry.is-masonry-ready {
    grid-auto-rows: 8px;
}

.eh-dashboard-masonry > .eh-widget {
    min-height: 0;
}

.eh-dashboard-layout-section {
    display: grid;
    gap: 9px;
}

.eh-kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.eh-widget {
    min-width: 0;
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 14px;
    border: 1px solid rgba(215, 222, 234, 0.9);
    border-radius: 10px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: none;
}

.eh-widget--span-wide {
    grid-column: span 2;
}

.eh-widget-key--week_overview,
.eh-widget--system_health {
    grid-column: span 3;
}

.eh-widget-key--active_worklist,
.eh-widget-key--metric_cluster,
.eh-widget-key--system_status_cluster {
    grid-column: span 2;
}

.eh-widget--span-compact {
    min-height: 112px;
}

.eh-widget--size-small {
    min-height: 92px;
}

.eh-widget--size-hero {
    gap: 13px;
    padding: 15px;
}

.eh-widget--size-system {
    border-color: rgba(100, 116, 139, 0.22);
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.eh-widget--attention,
.eh-widget--system_health {
    box-shadow: var(--eh-shadow-sm);
}

.eh-widget--warning {
    border-color: rgba(217, 119, 6, 0.24);
}

.eh-widget--danger {
    border-color: rgba(220, 38, 38, 0.26);
}

.eh-widget--ok {
    border-color: rgba(22, 163, 74, 0.18);
}

.eh-widget-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.eh-widget-head--compact {
    gap: 8px;
}

.eh-widget-title-wrap {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.eh-widget-title-wrap strong {
    color: var(--eh-text-strong);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.eh-widget-title-wrap small {
    color: var(--eh-muted);
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.eh-widget-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.eh-widget-action {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    padding: 7px 10px;
    border: 1px solid rgba(var(--eh-primary-rgb), 0.14);
    border-radius: 8px;
    background: #fff;
    color: var(--eh-primary-600);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
    text-decoration: none;
}

.eh-widget-action:hover {
    border-color: rgba(var(--eh-primary-rgb), 0.26);
    background: var(--eh-primary-soft);
}

.eh-widget--metric {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px 11px;
    min-height: 112px;
    padding: 13px;
}

.eh-metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--eh-primary-soft);
    color: var(--eh-primary-600);
}

.eh-metric-icon svg {
    width: 19px;
    height: 19px;
}

.eh-metric-icon--ok {
    background: var(--eh-success-soft);
    color: #15803d;
}

.eh-metric-icon--warning {
    background: var(--eh-warning-soft);
    color: #b45309;
}

.eh-metric-icon--danger {
    background: var(--eh-danger-soft);
    color: #b91c1c;
}

.eh-metric-main {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.eh-metric-value {
    color: var(--eh-text-strong);
    font-size: 30px;
    font-weight: 950;
    line-height: 0.98;
}

.eh-metric-label {
    color: var(--eh-text-strong);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.eh-metric-caption {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.eh-metric-track {
    grid-column: 1 / -1;
    display: block;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef2f7;
}

.eh-metric-track span {
    display: block;
    width: 54%;
    height: 100%;
    border-radius: inherit;
    background: var(--eh-primary);
}

.eh-widget--metric.eh-widget--ok .eh-metric-track span {
    width: 34%;
    background: #16a34a;
}

.eh-widget--metric.eh-widget--warning .eh-metric-track span {
    width: 72%;
    background: #d97706;
}

.eh-widget--metric.eh-widget--danger .eh-metric-track span {
    width: 100%;
    background: #dc2626;
}

.eh-widget--metric_cluster {
    gap: 10px;
}

.eh-metric-cluster-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.eh-metric-cluster-item {
    min-width: 0;
    min-height: 58px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    background: #f8fafc;
    color: inherit;
    text-decoration: none;
}

a.eh-metric-cluster-item:hover {
    border-color: rgba(var(--eh-primary-rgb), 0.24);
    background: var(--eh-primary-soft);
}

.eh-metric-cluster-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #e2e8f0;
    color: #475569;
}

.eh-metric-cluster-icon svg {
    width: 15px;
    height: 15px;
}

.eh-metric-cluster-icon--ok {
    background: var(--eh-success-soft);
    color: #15803d;
}

.eh-metric-cluster-icon--warning {
    background: var(--eh-warning-soft);
    color: #b45309;
}

.eh-metric-cluster-icon--danger {
    background: var(--eh-danger-soft);
    color: #b91c1c;
}

.eh-metric-cluster-copy {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.eh-metric-cluster-copy strong {
    color: var(--eh-text-strong);
    font-size: 22px;
    font-weight: 950;
    line-height: 1;
}

.eh-metric-cluster-copy span {
    color: var(--eh-text-strong);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.eh-metric-cluster-copy small {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--eh-muted);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.eh-status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #94a3b8;
}

.eh-status-dot--ok {
    background: #16a34a;
}

.eh-status-dot--warning {
    background: #d97706;
}

.eh-status-dot--danger {
    background: #dc2626;
}

.eh-list-compact {
    display: grid;
    gap: 0;
}

.eh-list-compact-item {
    min-width: 0;
    min-height: 42px;
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid rgba(226, 232, 240, 0.88);
    color: inherit;
    text-decoration: none;
}

.eh-list-compact-item:first-child {
    border-top: 0;
}

a.eh-list-compact-item:hover {
    color: var(--eh-primary-600);
}

.eh-list-compact-main {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.eh-list-compact-main strong,
.eh-list-compact-main small {
    min-width: 0;
    overflow-wrap: anywhere;
}

.eh-list-compact-main strong {
    color: var(--eh-text-strong);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.25;
}

.eh-list-compact-main small {
    color: var(--eh-muted);
    font-size: 11.5px;
    line-height: 1.3;
}

.eh-inline-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 108px;
    padding: 2px 0;
    color: var(--eh-muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.15;
    text-align: right;
    overflow-wrap: anywhere;
}

.eh-inline-status--ok {
    color: #15803d;
}

.eh-inline-status--warning {
    color: #b45309;
}

.eh-inline-status--danger {
    color: #b91c1c;
}

.eh-week-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.eh-week-day {
    min-width: 0;
    min-height: 124px;
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 9px;
    background: #f8fafc;
    color: inherit;
    text-decoration: none;
}

.eh-week-day.is-today {
    border-color: rgba(var(--eh-primary-rgb), 0.28);
    background: var(--eh-primary-soft);
}

.eh-week-day-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.eh-week-day-head strong {
    color: var(--eh-text-strong);
    font-size: 13px;
    font-weight: 950;
    line-height: 1;
}

.eh-week-day-head small {
    color: var(--eh-muted);
    font-size: 11px;
    font-weight: 800;
}

.eh-week-day-status {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    gap: 6px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #fff;
    color: var(--eh-muted);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.eh-week-day-body {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 6px;
}

.eh-week-entry {
    min-width: 0;
    display: grid;
    gap: 2px;
    padding-left: 8px;
    border-left: 3px solid var(--eh-primary);
}

.eh-week-entry strong,
.eh-week-entry small {
    min-width: 0;
    overflow-wrap: anywhere;
}

.eh-week-entry strong {
    color: var(--eh-text-strong);
    font-size: 12px;
    line-height: 1.2;
}

.eh-week-entry small,
.eh-week-empty {
    color: var(--eh-muted);
    font-size: 11px;
    line-height: 1.25;
}

.eh-week-day--warning .eh-week-entry {
    border-left-color: #d97706;
}

.eh-week-empty-state {
    padding: 12px;
    border: 1px dashed var(--eh-border);
    border-radius: 8px;
    color: var(--eh-muted);
    font-size: 12px;
}

.eh-week-empty-overview {
    grid-column: 1 / -1;
    display: grid;
    gap: 9px;
    min-height: 94px;
    padding: 12px;
    border: 1px dashed rgba(203, 213, 225, 0.95);
    border-radius: 9px;
    background: #f8fafc;
}

.eh-week-empty-overview > strong {
    color: var(--eh-text-strong);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
}

.eh-week-empty-overview > span {
    color: var(--eh-muted);
    font-size: 12px;
    line-height: 1.3;
}

.eh-week-empty-overview > div {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
}

.eh-week-mini-day {
    min-width: 0;
    display: grid;
    gap: 4px;
    padding: 7px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.eh-week-mini-day.is-today {
    border-color: rgba(var(--eh-primary-rgb), 0.28);
    background: var(--eh-primary-soft);
}

.eh-week-mini-day span {
    color: var(--eh-text-strong);
    font-size: 12px;
    font-weight: 900;
}

.eh-week-mini-day small {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--eh-muted);
    font-size: 11px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.eh-doc-table {
    display: grid;
}

.eh-doc-row {
    min-width: 0;
    min-height: 40px;
    display: grid;
    grid-template-columns: minmax(150px, 1.4fr) minmax(80px, .7fr) minmax(90px, .8fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px solid rgba(226, 232, 240, 0.88);
    color: inherit;
    text-decoration: none;
}

.eh-doc-row:first-child {
    border-top: 0;
}

.eh-doc-name {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.eh-doc-name strong,
.eh-doc-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.eh-doc-name strong {
    color: var(--eh-text-strong);
    font-size: 13px;
    font-weight: 900;
}

.eh-doc-row > span:not(.eh-doc-name) {
    color: var(--eh-muted);
    font-size: 12px;
    line-height: 1.25;
}

.eh-dashboard-attention-panel {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--eh-border);
    border-left: 4px solid var(--eh-primary);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--eh-shadow-sm);
}

.eh-dashboard-attention-panel--ok {
    border-left-color: #16a34a;
}

.eh-dashboard-attention-panel--warning {
    border-left-color: #d97706;
}

.eh-dashboard-attention-panel--danger {
    border-left-color: #dc2626;
}

.eh-dashboard-attention-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.eh-dashboard-attention-head h2 {
    margin: 0;
    color: var(--eh-text-strong);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
}

.eh-dashboard-attention-head p {
    margin: 3px 0 0;
    color: var(--eh-muted);
    font-size: 12px;
    line-height: 1.35;
}

.eh-dashboard-attention-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 7px;
}

.eh-dashboard-attention-item {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 7px 9px;
    border: 1px solid rgba(215, 222, 234, 0.92);
    border-radius: 8px;
    background: #f8fafc;
    color: inherit;
    text-decoration: none;
}

a.eh-dashboard-attention-item:hover {
    border-color: rgba(var(--eh-primary-rgb), 0.24);
    background: rgba(var(--eh-primary-rgb), 0.05);
}

.eh-dashboard-attention-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #64748b;
}

.eh-dashboard-attention-item--ok .eh-dashboard-attention-dot {
    background: #16a34a;
}

.eh-dashboard-attention-item--warning .eh-dashboard-attention-dot {
    background: #d97706;
}

.eh-dashboard-attention-item--danger .eh-dashboard-attention-dot {
    background: #dc2626;
}

.eh-dashboard-attention-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.eh-dashboard-attention-main strong,
.eh-dashboard-attention-main small {
    min-width: 0;
    overflow-wrap: anywhere;
}

.eh-dashboard-attention-main strong {
    color: var(--eh-text-strong);
    font-size: 13px;
    line-height: 1.22;
}

.eh-dashboard-attention-main small {
    color: var(--eh-muted);
    font-size: 11.5px;
    line-height: 1.25;
}

.eh-dashboard-attention-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 104px;
    min-height: 23px;
    padding: 3px 7px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 999px;
    background: #fff;
    color: var(--eh-text);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    overflow-wrap: anywhere;
}

.eh-dashboard-work-section {
    display: grid;
    gap: 9px;
}

.eh-dashboard-work-section .eh-dashboard-section-heading {
    align-items: start;
}

.eh-dashboard-work-section .eh-dashboard-section-heading h2 {
    font-size: 16px;
}

.eh-dashboard-work-section .eh-dashboard-section-heading p {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.35;
}

.eh-dashboard-work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
    gap: 10px;
    align-items: start;
}

.eh-dashboard-work-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: none;
}

.eh-dashboard-work-card--danger {
    border-color: rgba(239, 68, 68, 0.32);
}

.eh-dashboard-work-card--warning {
    border-color: rgba(217, 119, 6, 0.3);
}

.eh-dashboard-work-card--ok {
    border-color: rgba(22, 163, 74, 0.24);
}

.eh-dashboard-work-card-header {
    align-items: flex-start;
    gap: 9px;
    padding: 11px 13px 8px;
    min-width: 0;
}

.eh-dashboard-work-card-header > div {
    min-width: 0;
}

.eh-dashboard-work-title {
    flex: 1 1 auto;
    min-width: 0;
}

.eh-dashboard-work-title .eh-card-title,
.eh-dashboard-work-title .eh-card-note {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.eh-dashboard-work-title .eh-card-title {
    font-size: 15px;
    line-height: 1.25;
}

.eh-dashboard-work-title .eh-card-note {
    font-size: 12px;
    line-height: 1.3;
}

.eh-dashboard-widget-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--eh-primary-soft);
    color: var(--eh-primary-600);
    flex: 0 0 auto;
}

.eh-dashboard-widget-icon svg {
    width: 18px;
    height: 18px;
}

.eh-dashboard-widget-icon--ok {
    background: var(--eh-success-soft);
    color: #15803d;
}

.eh-dashboard-widget-icon--warning {
    background: var(--eh-warning-soft);
    color: #b45309;
}

.eh-dashboard-widget-icon--danger {
    background: var(--eh-danger-soft);
    color: #b91c1c;
}

.eh-dashboard-work-card-body {
    display: grid;
    gap: 8px;
    padding: 0 13px 12px;
}

.eh-dashboard-work-stat {
    display: inline-grid;
    justify-items: end;
    gap: 1px;
    min-width: 50px;
    max-width: 84px;
    padding: 5px 7px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--eh-text);
    text-align: right;
    flex: 0 0 auto;
}

.eh-dashboard-work-stat strong {
    color: var(--eh-text-strong);
    font-size: 16px;
    line-height: 1;
}

.eh-dashboard-work-stat span {
    color: var(--eh-muted);
    font-size: 11px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.eh-dashboard-work-stat--ok {
    border-color: rgba(22, 163, 74, 0.22);
    background: var(--eh-success-soft);
}

.eh-dashboard-work-stat--warning {
    border-color: rgba(217, 119, 6, 0.26);
    background: var(--eh-warning-soft);
}

.eh-dashboard-work-stat--danger {
    border-color: rgba(220, 38, 38, 0.25);
    background: var(--eh-danger-soft);
}

.eh-dashboard-work-list {
    display: grid;
    gap: 6px;
}

.eh-dashboard-work-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    border-top: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: 0;
    background: transparent;
    color: inherit;
    text-decoration: none;
}

a.eh-dashboard-work-item:hover {
    border-color: rgba(var(--eh-primary-rgb), 0.24);
    background: rgba(var(--eh-primary-rgb), 0.05);
}

.eh-dashboard-work-item--ok {
    border-top-color: rgba(22, 163, 74, 0.2);
}

.eh-dashboard-work-item--warning {
    border-top-color: rgba(217, 119, 6, 0.22);
}

.eh-dashboard-work-item--danger {
    border-top-color: rgba(220, 38, 38, 0.24);
}

.eh-dashboard-work-item--neutral {
    border-top-color: rgba(100, 116, 139, 0.2);
}

.eh-dashboard-work-item-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.eh-dashboard-work-item-main strong,
.eh-dashboard-work-item-main span,
.eh-dashboard-work-item-main p {
    min-width: 0;
    overflow-wrap: anywhere;
}

.eh-dashboard-work-item-main strong {
    color: var(--eh-text-strong);
    font-size: 13px;
    line-height: 1.25;
}

.eh-dashboard-work-item-main span,
.eh-dashboard-work-item-main p {
    margin: 0;
    color: var(--eh-muted);
    font-size: 11.5px;
    line-height: 1.3;
}

.eh-dashboard-work-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 112px;
    min-height: 24px;
    padding: 3px 7px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 999px;
    background: #fff;
    color: var(--eh-text);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    overflow-wrap: anywhere;
}

.eh-dashboard-work-badge--ok {
    border-color: rgba(22, 163, 74, 0.25);
    background: #f0fdf4;
    color: #166534;
}

.eh-dashboard-work-badge--warning {
    border-color: rgba(217, 119, 6, 0.28);
    background: #fffbeb;
    color: #92400e;
}

.eh-dashboard-work-badge--danger {
    border-color: rgba(220, 38, 38, 0.28);
    background: #fef2f2;
    color: #991b1b;
}

.eh-dashboard-work-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.eh-dashboard-action-tile {
    justify-content: space-between;
    min-width: 136px;
    min-height: 34px;
    padding: 7px 10px;
    border-color: rgba(var(--eh-primary-rgb), 0.16);
    background: #fff;
}

.eh-dashboard-action-tile:hover {
    border-color: rgba(var(--eh-primary-rgb), 0.28);
    background: var(--eh-primary-soft);
}

.eh-dashboard-action-icon {
    width: 15px;
    height: 15px;
}

.eh-dashboard-work-card--priority-high {
    box-shadow: var(--eh-shadow-sm);
}

.eh-dashboard-work-card--priority-low,
.eh-dashboard-work-card--quiet {
    box-shadow: none;
}

.eh-dashboard-work-card--quiet .eh-dashboard-work-card-body {
    padding-bottom: 10px;
}

.eh-dashboard-work-card--quiet .eh-dashboard-work-item {
    min-height: 40px;
}

.eh-dashboard-work-card--compact-status .eh-dashboard-work-card-body {
    padding-top: 0;
}

.eh-dashboard-work-card--compact-status .eh-dashboard-work-list {
    gap: 0;
}

.eh-dashboard-work-card--compact-status .eh-dashboard-work-item {
    min-height: 38px;
}

.eh-dashboard-work-card--compact-status .eh-dashboard-work-item:first-child {
    border-top: 0;
}

.eh-dashboard-data-sources {
    border: 1px solid var(--eh-border);
    border-radius: 8px;
    background: #fff;
    padding: 10px 12px;
}

.eh-dashboard-data-sources summary {
    cursor: pointer;
    color: var(--eh-text-strong);
    font-size: 13px;
    font-weight: 800;
}

.eh-dashboard-data-sources div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.eh-dashboard-data-sources span {
    padding: 6px 8px;
    border: 1px solid rgba(215, 222, 234, 0.9);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--eh-muted);
    font-size: 12px;
    line-height: 1.3;
}

.eh-dashboard-section {
    display: grid;
    gap: 12px;
}

.eh-dashboard-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: end;
}

.eh-dashboard-section-heading h2 {
    margin: 0;
    color: var(--eh-text-strong);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.25;
}

.eh-dashboard-section-heading p {
    margin: 5px 0 0;
    color: var(--eh-muted);
    font-size: 13px;
    line-height: 1.45;
}

.eh-dashboard-kpi-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(184px, 1fr));
    gap: 12px;
}

.eh-dashboard-kpi-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 88px;
    padding: 14px;
    border: 1px solid var(--eh-border);
    border-radius: 12px;
    background: var(--eh-surface);
    box-shadow: var(--eh-shadow-sm);
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

a.eh-dashboard-kpi-card:hover {
    border-color: rgba(var(--eh-primary-rgb), 0.24);
    box-shadow: var(--eh-shadow);
    transform: translateY(-2px);
}

a.eh-dashboard-kpi-card:focus {
    outline: none;
    box-shadow: var(--eh-focus);
}

.eh-dashboard-kpi-card--neutral {
    border-color: rgba(var(--eh-primary-rgb), 0.16);
}

.eh-dashboard-kpi-card--warning {
    border-color: rgba(245, 158, 11, 0.28);
    background: linear-gradient(180deg, #fff, rgba(255, 251, 235, 0.82));
}

.eh-dashboard-kpi-card--danger {
    border-color: rgba(248, 113, 113, 0.28);
    background: linear-gradient(180deg, #fff, rgba(254, 242, 242, 0.82));
}

.eh-dashboard-kpi-card--ok {
    border-color: rgba(34, 197, 94, 0.22);
    background: linear-gradient(180deg, #fff, rgba(240, 253, 244, 0.82));
}

.eh-dashboard-kpi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    flex: 0 0 auto;
    background: var(--eh-primary-soft);
    color: var(--eh-primary-600);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.eh-dashboard-kpi-card--warning .eh-dashboard-kpi-icon {
    background: var(--eh-warning-soft);
    color: #8a5a00;
}

.eh-dashboard-kpi-card--danger .eh-dashboard-kpi-icon {
    background: var(--eh-danger-soft);
    color: #b42318;
}

.eh-dashboard-kpi-card--ok .eh-dashboard-kpi-icon {
    background: var(--eh-success-soft);
    color: #137333;
}

.eh-dashboard-kpi-label {
    color: var(--eh-muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.3;
    overflow-wrap: normal;
    hyphens: auto;
}

.eh-dashboard-kpi-value {
    margin-top: 4px;
    color: var(--eh-text-strong);
    font-size: 23px;
    font-weight: 900;
    line-height: 1.1;
}

.eh-dashboard-kpi-meta {
    margin-top: 4px;
    color: var(--eh-muted);
    font-size: 12px;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.eh-calendar-kpi-overview {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.eh-calendar-kpi-overview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.eh-calendar-kpi-overview-header h2 {
    margin: 0;
    color: var(--eh-text-strong);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.25;
}

.eh-calendar-kpi-ring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
    gap: 12px;
}

.eh-calendar-kpi-ring-card {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 14px 12px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-lg);
    background: var(--eh-surface);
    box-shadow: var(--eh-shadow-sm);
}

.eh-calendar-kpi-ring {
    --eh-ring-color: var(--eh-primary-600);
    --eh-ring-bg: rgba(33, 82, 255, 0.12);
    width: 70px;
    aspect-ratio: 1;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--eh-ring-color) var(--eh-ring-value), var(--eh-ring-bg) 0);
    position: relative;
}

.eh-calendar-kpi-ring::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: var(--eh-surface);
}

.eh-calendar-kpi-ring span {
    position: relative;
    z-index: 1;
    color: var(--eh-text-strong);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.eh-calendar-kpi-ring-label {
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
}

.eh-calendar-kpi-ring-detail {
    color: var(--eh-muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

.eh-calendar-kpi-ring-card--ok .eh-calendar-kpi-ring {
    --eh-ring-color: #16a34a;
    --eh-ring-bg: rgba(34, 197, 94, 0.14);
}

.eh-calendar-kpi-ring-card--warning .eh-calendar-kpi-ring {
    --eh-ring-color: #d97706;
    --eh-ring-bg: rgba(245, 158, 11, 0.16);
}

.eh-calendar-kpi-ring-card--danger .eh-calendar-kpi-ring {
    --eh-ring-color: #dc2626;
    --eh-ring-bg: rgba(248, 113, 113, 0.16);
}

.eh-dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.72fr) minmax(260px, 0.86fr);
    gap: 16px;
    align-items: stretch;
}

.eh-dashboard-main-grid--focus {
    grid-template-columns: minmax(0, 1fr);
}

.eh-dashboard-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 16px;
}

.eh-dashboard-card-grid--two {
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
}

.eh-dashboard-card-grid--three {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.eh-dashboard-card-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.eh-dashboard-primary-card {
    min-height: 100%;
}

.eh-dashboard-compact-card .eh-card-body {
    padding-block: 14px;
}

.eh-dashboard-assignment {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--eh-border);
}

.eh-dashboard-assignment-date {
    margin-bottom: 8px;
    color: var(--eh-primary-600);
    font-size: 13px;
    font-weight: 900;
}

.eh-dashboard-assignment strong {
    display: block;
    color: var(--eh-text-strong);
    font-size: 24px;
    font-weight: 900;
    line-height: 1.18;
}

.eh-dashboard-assignment span,
.eh-dashboard-assignment p {
    display: block;
    margin: 8px 0 0;
    color: var(--eh-text);
    font-size: 14px;
    line-height: 1.45;
}

.eh-dashboard-primary-empty,
.eh-dashboard-note-empty {
    padding: 14px;
    border-radius: var(--eh-radius);
    background: var(--eh-surface-soft);
    color: var(--eh-muted);
    font-size: 14px;
    line-height: 1.45;
}

.eh-dashboard-schedule-days {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(210px, 0.85fr);
    gap: 12px;
    align-items: stretch;
}

.eh-dashboard-schedule-day {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(215, 222, 234, 0.9);
    border-radius: var(--eh-radius);
    background: #fbfcfe;
}

.eh-dashboard-schedule-day--today {
    border-color: rgba(33, 82, 255, 0.18);
    background: linear-gradient(180deg, #fff, rgba(244, 247, 255, 0.96));
    box-shadow: 0 12px 26px rgba(33, 82, 255, 0.08);
}

.eh-dashboard-schedule-day--tomorrow {
    background: #f8fafc;
}

.eh-dashboard-day-grid {
    align-items: stretch;
}

.eh-dashboard-day-card {
    min-height: 100%;
}

.eh-dashboard-day-card .eh-card-body {
    min-height: 220px;
}

.eh-dashboard-schedule-date {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline;
    color: var(--eh-text-strong);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
}

.eh-dashboard-schedule-date span {
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 800;
}

.eh-dashboard-schedule-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(215, 222, 234, 0.9);
    background: #f8fafc;
}

.eh-dashboard-schedule-day--today .eh-dashboard-schedule-item {
    padding: 12px 14px;
    background: #fff;
}

.eh-dashboard-schedule-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--eh-primary-soft);
    color: var(--eh-primary-600);
}

.eh-dashboard-schedule-item--krank .eh-dashboard-schedule-item-icon {
    background: var(--eh-danger-soft);
    color: #b42318;
}

.eh-dashboard-schedule-item--urlaub .eh-dashboard-schedule-item-icon {
    background: #edf4ff;
    color: var(--eh-primary-600);
}

.eh-dashboard-schedule-item--feiertag .eh-dashboard-schedule-item-icon {
    background: var(--eh-warning-soft);
    color: #8a5a00;
}

.eh-dashboard-schedule-item--betriebsferien .eh-dashboard-schedule-item-icon {
    background: #e5faf6;
    color: #0f766e;
}

.eh-dashboard-schedule-item-body {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.eh-dashboard-schedule-item strong {
    color: var(--eh-text-strong);
    font-size: 14px;
    line-height: 1.3;
}

.eh-dashboard-schedule-day--today .eh-dashboard-schedule-item strong {
    font-size: 16px;
}

.eh-dashboard-schedule-item span {
    color: var(--eh-muted);
    font-size: 12px;
    line-height: 1.35;
}

.eh-dashboard-alert-card {
    border-left: 4px solid rgba(148, 163, 184, 0.42);
}

.eh-dashboard-alert-card--warning {
    border-left-color: #f59e0b;
}

.eh-dashboard-alert-card--danger {
    border-left-color: #ef4444;
}

.eh-dashboard-alert-card--info {
    border-left-color: rgba(33, 82, 255, 0.45);
}

.eh-dashboard-alert {
    padding: 12px 14px;
    border-radius: var(--eh-radius);
    border: 1px solid var(--eh-border);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

.eh-dashboard-alert--warning {
    border-color: rgba(245, 158, 11, 0.34);
    background: var(--eh-warning-soft);
    color: #8a5a00;
}

.eh-dashboard-alert--danger {
    border-color: rgba(239, 68, 68, 0.28);
    background: var(--eh-danger-soft);
    color: #b42318;
}

.eh-dashboard-alert--info {
    border-color: rgba(33, 82, 255, 0.16);
    background: var(--eh-primary-soft);
    color: var(--eh-primary-600);
}

.eh-dashboard-feedback-link {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 13px;
}

.eh-dashboard-stack {
    display: grid;
    gap: 12px;
}

.eh-dashboard-kpi {
    font-size: 28px;
    font-weight: 800;
    color: var(--eh-text-strong);
    line-height: 1.15;
}

.eh-dashboard-meta {
    color: var(--eh-muted);
    font-size: 14px;
}

.eh-dashboard-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eh-dashboard-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f6f8fc;
    border: 1px solid rgba(215, 222, 234, 0.9);
    color: var(--eh-text-strong);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.eh-question-status-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.eh-question-status-badge--open {
    background: rgba(253, 242, 232, 0.95);
    border-color: rgba(251, 146, 60, 0.35);
    color: #c2410c;
}

.eh-question-status-badge--answered {
    background: rgba(239, 246, 255, 0.95);
    border-color: rgba(96, 165, 250, 0.35);
    color: #1d4ed8;
}

.eh-question-status-badge--done {
    background: rgba(240, 253, 244, 0.95);
    border-color: rgba(74, 222, 128, 0.35);
    color: #15803d;
}

.eh-dashboard-list {
    display: grid;
    gap: 10px;
}

.eh-dashboard-list-item {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid rgba(215, 222, 234, 0.9);
    border-radius: 10px;
    background: #f8fafc;
    text-decoration: none;
}

.eh-dashboard-list-item--quiet {
    background: #fbfcfe;
}

.eh-dashboard-list-item strong {
    color: var(--eh-text-strong);
    font-size: 14px;
}

.eh-dashboard-list-item span {
    color: var(--eh-text);
    font-size: 13px;
    line-height: 1.45;
}

.eh-notification-summary-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.eh-notification-summary-pill {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--eh-primary-soft);
    color: var(--eh-primary-600);
}

.eh-notification-summary-pill strong {
    color: inherit;
    font-size: 22px;
    line-height: 1;
}

.eh-notification-summary-pill small {
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 800;
}

.eh-notification-summary-pill--info {
    background: var(--eh-primary-soft);
    color: var(--eh-primary-600);
}

.eh-dashboard-notification-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(215, 222, 234, 0.9);
    border-radius: 12px;
    background: #f8fafc;
    color: var(--eh-text);
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.eh-dashboard-notification-row:hover {
    background: var(--eh-primary-soft);
    border-color: rgba(33, 82, 255, .14);
    transform: translateY(-1px);
}

.eh-dashboard-notification-row > span:last-child {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.eh-dashboard-notification-row strong {
    color: var(--eh-text-strong);
    font-size: 13px;
    line-height: 1.25;
}

.eh-dashboard-notification-row small {
    color: var(--eh-muted);
    font-size: 12px;
    line-height: 1.35;
}

.eh-dashboard-split {
    display: grid;
    gap: 14px;
}

.eh-dashboard-mini-list {
    display: grid;
    gap: 8px;
}

.eh-dashboard-mini-title {
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
}

.eh-dashboard-mini-row {
    display: grid;
    gap: 3px;
    padding: 9px 10px;
    border-radius: 10px;
    background: #f8fafc;
}

.eh-dashboard-mini-row strong {
    color: var(--eh-text-strong);
    font-size: 13px;
}

.eh-dashboard-mini-row span {
    color: var(--eh-muted);
    font-size: 12px;
    line-height: 1.35;
}

.eh-dashboard-chart {
    display: grid;
    gap: 14px;
}

.eh-dashboard-chart-row {
    display: grid;
    gap: 8px;
}

.eh-dashboard-chart-row > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
}

.eh-dashboard-chart-row strong {
    color: var(--eh-text-strong);
    font-size: 13px;
}

.eh-dashboard-chart-row span {
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 800;
}

.eh-dashboard-chart-track {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 4px;
}

.eh-dashboard-chart-segment {
    height: 10px;
    border-radius: 999px;
    background: #edf2f7;
}

.eh-dashboard-chart-track--neutral .eh-dashboard-chart-segment.is-filled {
    background: var(--eh-primary);
}

.eh-dashboard-chart-track--warning .eh-dashboard-chart-segment.is-filled {
    background: #f59e0b;
}

.eh-dashboard-chart-track--danger .eh-dashboard-chart-segment.is-filled {
    background: #ef4444;
}

.dashboard-widget-actions {
    justify-content: center;
}

.eh-col-narrow {
    width: 88px;
    white-space: nowrap;
}

.eh-col-action {
    width: 132px;
    white-space: nowrap;
}

.eh-row-actions--end {
    justify-content: flex-end;
    align-items: center;
    padding-right: 4px;
}

.eh-vacation-summary {
    margin-top: 22px;
}

.eh-vacation-day-list {
    margin-top: 14px;
}

.eh-vacation-banner-title {
    margin-bottom: 6px;
    font-weight: 800;
    color: var(--eh-text-strong);
}

.eh-vacation-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.auth-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--eh-z-auth-overlay);
    background: rgba(244, 247, 251, 0.92);
}
.auth-overlay-card {
    min-width: 300px;
    padding: 24px;
    text-align: center;
}

.eh-changelog-page {
    display: grid;
    gap: 22px;
}

.eh-changelog-header-card,
.eh-changelog-current-card,
.eh-changelog-release-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.eh-changelog-header-card {
    padding: 30px 34px;
}

.eh-changelog-header-card .eh-page-title {
    margin-bottom: 8px;
}

.eh-changelog-current-card {
    position: relative;
    overflow: hidden;
    padding: 28px 30px 30px;
    border-top: 4px solid var(--eh-primary);
}

.eh-changelog-current-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.eh-changelog-eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--eh-primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eh-changelog-current-head h2,
.eh-changelog-release-head h2 {
    margin: 0;
    color: var(--eh-text-strong);
    font-size: 24px;
    line-height: 1.24;
}

.eh-changelog-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.eh-changelog-status-badge span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #22c55e;
    color: #fff;
    font-size: 12px;
}

.eh-changelog-current-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 14px;
    color: var(--eh-text-muted);
    font-size: 13px;
    font-weight: 700;
}

.eh-changelog-current-meta span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.eh-changelog-summary {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    color: var(--eh-text);
    font-size: 14px;
    line-height: 1.55;
}

.eh-changelog-summary p {
    margin: 0;
}

.eh-changelog-summary--compact {
    margin: 14px 0 0;
}

.eh-changelog-highlight-list,
.eh-changelog-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
    color: var(--eh-text);
    line-height: 1.55;
}

.eh-changelog-highlight-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    padding-left: 0;
    list-style: none;
}

.eh-changelog-highlight-list li {
    position: relative;
    min-width: 0;
    padding: 13px 15px 13px 38px;
    border: 1px solid var(--eh-border);
    border-radius: 18px;
    background: #f8fafc;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.eh-changelog-highlight-list li::before {
    content: "";
    position: absolute;
    top: 17px;
    left: 16px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--eh-primary);
    box-shadow: 0 0 0 4px rgba(var(--eh-primary-rgb), 0.12);
}

.eh-changelog-current-divider {
    height: 1px;
    margin: 24px 0;
    background: var(--eh-border);
}

.eh-changelog-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.eh-changelog-info-panel {
    min-width: 0;
    padding: 17px;
    border: 1px solid var(--eh-border);
    border-radius: 18px;
    background: #f8fafc;
}

.eh-changelog-info-panel > span,
.eh-changelog-git-list span {
    display: block;
    margin-bottom: 7px;
    color: var(--eh-text-muted);
    font-size: 12px;
    font-weight: 800;
}

.eh-changelog-info-panel strong,
.eh-changelog-git-list strong {
    display: block;
    color: var(--eh-text-strong);
    font-size: 14px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.eh-changelog-info-panel p {
    margin: 8px 0 0;
    color: var(--eh-text-muted);
    font-size: 13px;
    line-height: 1.45;
}

.eh-changelog-git-list {
    display: grid;
    gap: 10px;
}

.eh-changelog-release-card {
    padding: 28px 30px 30px;
}

.eh-changelog-release-head {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--eh-border);
}

.eh-changelog-release-head p {
    margin: 6px 0 0;
    color: var(--eh-text-muted);
    font-size: 13px;
    font-weight: 700;
}

.eh-changelog-release-kicker {
    flex: 0 0 auto;
    width: 10px;
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--eh-primary), var(--eh-info));
}

.eh-changelog-release-kicker--muted {
    background: linear-gradient(180deg, #64748b, #94a3b8);
}

.eh-changelog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.eh-changelog-grid--compact {
    margin-top: 16px;
}

.eh-changelog-grid--spaced {
    margin-top: 16px;
}

.eh-changelog-audience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.eh-changelog-audience-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--eh-border);
    border-radius: 18px;
    background: #f8fafc;
}

.eh-changelog-audience-panel--wide {
    grid-column: 1 / -1;
}

.eh-changelog-audience-panel h3 {
    margin: 0 0 12px;
    color: var(--eh-text-strong);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0;
}

.eh-changelog-panel {
    min-width: 0;
    padding: 18px 18px 16px;
    border: 1px solid var(--eh-border);
    border-radius: 18px;
    background: #f8fafc;
}

.eh-changelog-panel--wide {
    grid-column: 1 / -1;
}

.eh-changelog-panel h3 {
    margin: 0 0 13px;
    color: var(--eh-text-strong);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0;
}

.eh-changelog-panel--added h3 {
    color: #15803d;
}

.eh-changelog-panel--changed h3 {
    color: #1d4ed8;
}

.eh-changelog-panel--fixed h3 {
    color: #b45309;
}

.eh-changelog-panel--security h3 {
    color: #be123c;
}

.eh-changelog-panel--mobile h3 {
    color: #0369a1;
}

.eh-changelog-panel--database h3 {
    color: #6d28d9;
}

.eh-changelog-panel--operations h3 {
    color: #047857;
}

.eh-changelog-panel--limitations h3 {
    color: #475569;
}

.eh-changelog-panel ul {
    margin: 0;
    padding-left: 18px;
    color: var(--eh-text);
    line-height: 1.55;
}

.eh-changelog-panel li {
    padding-left: 3px;
}

.eh-changelog-panel li + li {
    margin-top: 9px;
}

.eh-changelog-empty-text {
    margin: 0;
    color: var(--eh-text-muted);
    font-size: 14px;
    line-height: 1.55;
}

.eh-changelog-older-list {
    display: grid;
    gap: 14px;
}

.eh-changelog-release-mini {
    min-width: 0;
    border: 1px solid var(--eh-border);
    border-radius: 18px;
    background: #f8fafc;
}

.eh-changelog-release-mini summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
}

.eh-changelog-release-mini summary::-webkit-details-marker {
    display: none;
}

.eh-changelog-release-mini summary span {
    min-width: 0;
}

.eh-changelog-release-mini summary strong,
.eh-changelog-release-mini summary small {
    display: block;
    overflow-wrap: anywhere;
}

.eh-changelog-release-mini summary small {
    margin-top: 4px;
    color: var(--eh-text-muted);
    font-size: 12px;
    font-weight: 800;
}

.eh-changelog-mini-badge {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e2e8f0;
    color: var(--eh-text-strong);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.eh-changelog-release-mini[open] {
    padding-bottom: 18px;
}

.eh-changelog-release-mini[open] .eh-changelog-summary,
.eh-changelog-release-mini[open] .eh-changelog-grid {
    margin-left: 18px;
    margin-right: 18px;
}

.eh-changelog-technical-details {
    min-width: 0;
    border: 1px solid var(--eh-border);
    border-radius: 18px;
    background: #f8fafc;
}

.eh-changelog-technical-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    cursor: pointer;
    list-style: none;
}

.eh-changelog-technical-details summary::-webkit-details-marker {
    display: none;
}

.eh-changelog-technical-details summary span {
    min-width: 0;
}

.eh-changelog-technical-details summary strong,
.eh-changelog-technical-details summary small {
    display: block;
    overflow-wrap: anywhere;
}

.eh-changelog-technical-details summary small {
    margin-top: 4px;
    color: var(--eh-text-muted);
    font-size: 12px;
    font-weight: 800;
}

.eh-changelog-technical-details[open] {
    padding-bottom: 18px;
}

.eh-changelog-technical-details[open] .eh-changelog-grid {
    margin-left: 18px;
    margin-right: 18px;
}

.eh-project-file-row {
    display: grid;
    grid-template-columns: 48px minmax(190px, 1fr) minmax(320px, 1.55fr) minmax(140px, auto);
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: #fff;
}

.eh-project-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(125, 139, 158, 0.26);
    border-radius: var(--eh-radius-sm);
    background: var(--eh-surface-soft);
    color: var(--eh-text-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
}

.eh-project-file-thumb {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: cover;
    border: 1px solid rgba(125, 139, 158, 0.26);
    border-radius: var(--eh-radius-sm);
    background: var(--eh-surface-soft);
}

.eh-project-file-visual-link {
    display: inline-flex;
    width: fit-content;
    border-radius: var(--eh-radius-sm);
    text-decoration: none;
}

.eh-project-file-visual-link:hover .eh-project-file-thumb,
.eh-project-file-visual-link:focus-visible .eh-project-file-thumb,
.eh-project-file-visual-link:hover .eh-project-file-icon,
.eh-project-file-visual-link:focus-visible .eh-project-file-icon {
    border-color: rgba(0, 144, 211, 0.62);
    box-shadow: 0 0 0 3px rgba(0, 144, 211, 0.12);
}

.eh-project-file-icon--image {
    background: #ecfdf5;
    border-color: rgba(22, 163, 74, 0.24);
    color: #166534;
}

.eh-project-file-icon--pdf {
    background: #fef2f2;
    border-color: rgba(220, 38, 38, 0.22);
    color: #991b1b;
}

.eh-project-file-icon--archive {
    background: #fff7ed;
    border-color: rgba(234, 88, 12, 0.22);
    color: #9a3412;
}

.eh-project-file-icon--csv {
    background: #eff6ff;
    border-color: rgba(37, 99, 235, 0.22);
    color: #1d4ed8;
}

.eh-project-file-icon--html {
    background: #f5f3ff;
    border-color: rgba(124, 58, 237, 0.22);
    color: #5b21b6;
}

.eh-project-file-main,
.eh-project-file-meta {
    min-width: 0;
}

.eh-project-file-title {
    color: var(--eh-text-strong);
    font-size: 14px;
    font-weight: 850;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.eh-project-file-title-link {
    text-decoration: none;
}

.eh-project-file-title-link:hover,
.eh-project-file-title-link:focus-visible {
    color: var(--eh-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.eh-project-file-filename,
.eh-project-file-meta,
.eh-project-file-deleted {
    color: var(--eh-text-muted);
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.eh-project-file-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    gap: 8px 12px;
    min-width: 0;
}

.eh-project-file-detail-grid div {
    min-width: 0;
}

.eh-project-file-detail-grid span,
.eh-project-file-detail-grid strong {
    display: block;
    min-width: 0;
}

.eh-project-file-detail-grid span {
    color: var(--eh-text-muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.eh-project-file-detail-grid strong {
    color: var(--eh-text-strong);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.eh-project-file-detail-grid .eh-badge {
    display: inline-flex;
    width: fit-content;
    font-size: 11px;
    text-transform: none;
}

.eh-project-file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    min-width: 0;
}

.eh-project-file-deleted {
    color: #b45309;
    font-weight: 800;
}

.eh-project-file-panel {
    grid-column: 1 / -1;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(125, 139, 158, 0.2);
    border-radius: var(--eh-radius-sm);
    background: var(--eh-surface-soft);
}

.eh-project-file-inline-form,
.eh-project-file-link-list,
.eh-project-file-created-link {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eh-project-file-inline-form + .eh-project-file-link-list,
.eh-project-file-created-link + .eh-project-file-inline-form {
    margin-top: 12px;
}

.eh-project-file-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    color: var(--eh-text-strong);
    font-size: 13px;
}

.eh-project-file-panel-head span {
    color: var(--eh-text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.eh-project-file-panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, .45fr) auto;
    gap: 12px;
    align-items: end;
}

.eh-project-file-panel-grid--version {
    grid-template-columns: minmax(0, 1fr) auto;
}

.eh-project-file-panel-action {
    align-self: end;
}

.eh-project-file-version-upload {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.eh-project-file-version-label {
    margin: 0;
}

.eh-project-file-version-picker {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px dashed rgba(0, 144, 211, 0.38);
    border-radius: var(--eh-radius-sm);
    background: rgba(255, 255, 255, 0.84);
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.eh-project-file-version-picker:hover,
.eh-project-file-version-picker:focus-within {
    border-color: rgba(0, 144, 211, 0.68);
    background: rgba(0, 144, 211, 0.045);
    box-shadow: inset 0 0 0 1px rgba(0, 144, 211, 0.08);
}

.eh-project-file-version-picker input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.eh-project-file-version-picker span {
    min-width: 0;
    overflow: hidden;
    color: var(--eh-text-strong);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eh-project-file-version-picker small {
    color: var(--eh-text-muted);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.3;
    white-space: nowrap;
}

.eh-project-file-created-link {
    padding: 10px;
    border: 1px solid rgba(19, 115, 51, 0.18);
    border-radius: var(--eh-radius-sm);
    background: var(--eh-success-soft);
    color: #137333;
    font-size: 12px;
}

.eh-project-file-link-url {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
}

.eh-project-file-link-title {
    color: var(--eh-text-strong);
    font-size: 12px;
    font-weight: 850;
}

.eh-project-file-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid rgba(125, 139, 158, 0.18);
}

.eh-project-file-link-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--eh-text-muted);
    font-size: 12px;
}

.eh-ticket-age {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.eh-ticket-age small,
.eh-ticket-age > span:not(.eh-badge) {
    color: var(--eh-text-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.eh-ticket-age-compact {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    white-space: nowrap;
    color: var(--eh-text);
    font-size: 13px;
    font-weight: 800;
}

.eh-ticket-age-neutral {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    color: var(--eh-text);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.eh-ticket-age-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--eh-success);
    box-shadow: 0 0 0 3px rgba(35, 162, 104, 0.12);
}

.eh-ticket-age-dot--yellow {
    background: var(--eh-warning);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.14);
}

.eh-ticket-age-dot--red {
    background: var(--eh-danger);
    box-shadow: 0 0 0 3px rgba(220, 68, 68, 0.14);
}

.eh-ticket-age-dot--closed,
.eh-ticket-age-dot--archived {
    background: var(--eh-border-strong);
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.12);
}

.eh-vehicle-due-panel {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.eh-vehicle-due-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.eh-vehicle-due-row span:last-child {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.eh-vehicle-due-row strong {
    color: var(--eh-text-strong);
    font-size: 12px;
    line-height: 1.2;
}

.eh-vehicle-due-row small {
    color: var(--eh-text-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

.eh-service-ticket-table {
    min-width: 0;
    table-layout: fixed;
}

.eh-service-ticket-table th,
.eh-service-ticket-table td {
    padding-inline: 10px;
    overflow-wrap: anywhere;
}

.eh-service-ticket-col-title { width: 24%; }
.eh-service-ticket-col-status { width: 10%; }
.eh-service-ticket-col-priority { width: 9%; }
.eh-service-ticket-col-age { width: 10%; }
.eh-service-ticket-col-context { width: 24%; }
.eh-service-ticket-col-activity { width: 14%; }
.eh-service-ticket-col-action { width: 8%; }

.eh-service-ticket-number,
.eh-service-ticket-context {
    display: block;
    min-width: 0;
    color: var(--eh-text);
    line-height: 1.35;
}

.eh-service-ticket-list-title {
    color: var(--eh-text-strong);
    font-weight: 900;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.eh-service-ticket-list-meta {
    display: block;
    margin-top: 2px;
    color: var(--eh-text-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: normal;
    word-break: normal;
}

.eh-service-ticket-table .eh-btn {
    min-width: 0;
    padding-inline: 10px;
    white-space: nowrap;
}

.eh-service-ticket-list-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.eh-service-ticket-list-tabs .eh-tab {
    border: 1px solid var(--eh-border);
    border-radius: 10px;
    background: #fff;
    color: var(--eh-text);
    cursor: pointer;
    font-weight: 800;
    padding: 9px 13px;
}

.eh-service-ticket-list-tabs .eh-tab.is-active {
    border-color: rgba(47, 109, 246, 0.35);
    background: rgba(47, 109, 246, 0.08);
    color: var(--eh-primary);
}

.eh-service-ticket-context-main,
.eh-service-ticket-assignee {
    display: block;
    min-width: 0;
}

.eh-service-ticket-assignee {
    color: var(--eh-text-muted);
    font-size: 12px;
    font-weight: 800;
    margin-top: 3px;
}

.eh-service-ticket-new-customer {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--eh-border);
    border-radius: 10px;
    background: #f8fafc;
}

.eh-card-header-compact {
    margin-bottom: 12px;
    padding: 0;
    border: 0;
}

.eh-service-ticket-workspace,
.eh-service-ticket-timeline {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.eh-service-ticket-hero .eh-card-body {
    display: grid;
    gap: 18px;
}

.eh-service-ticket-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 18px;
    align-items: start;
}

.eh-service-ticket-title {
    margin: 4px 0 12px;
    color: var(--eh-text-strong);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.eh-service-ticket-badges,
.eh-service-ticket-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.eh-service-ticket-badges .eh-ticket-age {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.eh-service-ticket-meta {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.eh-service-ticket-meta div {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: var(--eh-surface-soft);
}

.eh-service-ticket-meta span {
    display: block;
    color: var(--eh-text-muted);
    font-size: 12px;
    font-weight: 700;
}

.eh-service-ticket-meta strong {
    display: block;
    min-width: 0;
    margin-top: 4px;
    color: var(--eh-text-strong);
    overflow-wrap: anywhere;
}

.eh-service-ticket-project-link {
    color: var(--eh-primary);
    text-decoration: none;
}

.eh-service-ticket-project-link:hover,
.eh-service-ticket-project-link:focus-visible {
    text-decoration: underline;
}

.eh-service-ticket-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius);
    background: #fff;
    box-shadow: var(--eh-shadow-sm);
}

.eh-service-ticket-tab {
    min-height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--eh-radius-sm);
    background: transparent;
    color: var(--eh-text-muted);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.eh-service-ticket-tab.is-active {
    background: var(--eh-primary-soft);
    color: var(--eh-primary);
}

.eh-service-ticket-timeline-item {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: #fff;
}

.eh-service-ticket-timeline-item--description {
    background: var(--eh-surface-soft);
}

.eh-service-ticket-timeline-item--internal {
    border-color: rgba(251, 99, 64, 0.26);
    background: rgba(251, 99, 64, 0.06);
}

.eh-service-ticket-history-item {
    background: var(--eh-surface-soft);
}

.eh-service-ticket-comment-card {
    margin-top: 4px;
}

.eh-service-ticket-timeline-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--eh-text-strong);
}

.eh-service-ticket-timeline-head span,
.eh-service-ticket-timeline-type {
    color: var(--eh-text-muted);
    font-size: 12px;
    font-weight: 800;
}

.eh-service-ticket-timeline-item p {
    margin: 0;
    color: var(--eh-text);
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.eh-service-ticket-internal-toggle {
    border-radius: var(--eh-radius-sm);
}

.eh-due-field {
    display: grid;
    gap: 8px;
}

.eh-due-input {
    display: none;
}

.eh-due-input.is-visible {
    display: block;
}

.eh-readonly-value {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: var(--eh-surface-soft);
    color: var(--eh-text-strong);
    font-weight: 800;
}

.eh-file-dropzone {
    position: relative;
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 118px;
    padding: 18px 16px;
    border: 1px dashed rgba(0, 144, 211, 0.38);
    border-radius: var(--eh-radius-sm);
    background: rgba(255, 255, 255, 0.72);
    color: var(--eh-primary);
    text-align: center;
    font-weight: 900;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.eh-file-dropzone:hover,
.eh-file-dropzone:focus-within {
    border-color: rgba(0, 144, 211, 0.68);
    background: rgba(0, 144, 211, 0.045);
    box-shadow: inset 0 0 0 1px rgba(0, 144, 211, 0.08);
}

.eh-file-dropzone input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.eh-file-dropzone span {
    line-height: 1.35;
}

.eh-file-dropzone small {
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.eh-file-dropzone::after {
    content: "+";
    display: block;
    margin-top: 2px;
    color: var(--eh-primary);
    font-size: 36px;
    font-weight: 900;
    line-height: .9;
}

.eh-upload-dropzone.is-dragover {
    border-color: rgba(0, 144, 211, 0.82);
    background: rgba(0, 144, 211, 0.085);
    box-shadow: inset 0 0 0 1px rgba(0, 144, 211, 0.18), 0 10px 28px rgba(0, 144, 211, 0.12);
}

.eh-upload-queue {
    display: grid;
    gap: 8px;
    margin-top: -4px;
}

.eh-upload-queue-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.eh-upload-queue-item--uploading {
    border-color: rgba(0, 144, 211, 0.38);
}

.eh-upload-queue-item--done {
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(240, 253, 244, 0.78);
}

.eh-upload-queue-item--error {
    border-color: rgba(220, 38, 38, 0.28);
    background: rgba(254, 242, 242, 0.82);
}

.eh-upload-queue-main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.eh-upload-queue-title {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--eh-text-strong);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.25;
}

.eh-upload-queue-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    color: var(--eh-text-muted);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.25;
}

.eh-upload-progress {
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.22);
}

.eh-upload-progress-bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0090d3, #31b5e8);
    transition: width .16s ease;
}

.eh-upload-queue-status {
    justify-self: end;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--eh-text);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.1;
    white-space: nowrap;
}

.eh-upload-queue-item--uploading .eh-upload-queue-status {
    background: rgba(0, 144, 211, 0.11);
    color: var(--eh-primary);
}

.eh-upload-queue-item--done .eh-upload-queue-status {
    background: rgba(34, 197, 94, 0.13);
    color: #047857;
}

.eh-upload-queue-item--error .eh-upload-queue-status {
    background: rgba(220, 38, 38, 0.12);
    color: #b91c1c;
}

.eh-upload-queue-error {
    grid-column: 1 / -1;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
}

.eh-documents-page {
    gap: 16px;
}

.eh-documents-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.eh-documents-view-toggle {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.eh-documents-view-toggle .eh-btn.is-active {
    background: var(--eh-primary);
    border-color: var(--eh-primary);
    color: #fff;
}

.eh-documents-toolbar {
    padding: 14px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.eh-documents-filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.7fr) repeat(5, minmax(138px, 1fr)) minmax(126px, auto);
    gap: 12px;
    align-items: end;
}

.eh-documents-search-field {
    min-width: 0;
}

.eh-documents-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: #fff;
    color: var(--eh-text-strong);
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.eh-documents-checkbox input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--eh-primary);
}

.eh-documents-status {
    padding: 10px 12px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: var(--eh-surface-soft);
    color: var(--eh-text-muted);
    font-size: 13px;
    font-weight: 800;
}

.eh-documents-status[hidden] {
    display: none;
}

.eh-documents-status[data-tone="warning"] {
    border-color: rgba(245, 158, 11, 0.28);
    background: rgba(255, 251, 235, 0.92);
    color: #92400e;
}

.eh-documents-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(286px, 1fr));
    gap: 12px;
}

.eh-documents-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.eh-documents-thumb {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: cover;
    border: 1px solid rgba(125, 139, 158, 0.26);
    border-radius: var(--eh-radius-sm);
    background: var(--eh-surface-soft);
}

.eh-documents-main {
    min-width: 0;
}

.eh-documents-title {
    color: var(--eh-text-strong);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.25;
    text-decoration: none;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.eh-documents-title:hover,
.eh-documents-title:focus-visible {
    color: var(--eh-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.eh-documents-original {
    margin-top: 4px;
    color: var(--eh-text-muted);
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.eh-documents-meta-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 8px 12px;
}

.eh-documents-meta-grid div {
    min-width: 0;
}

.eh-documents-meta-grid span,
.eh-documents-meta-grid strong {
    display: block;
    min-width: 0;
}

.eh-documents-meta-grid span {
    color: var(--eh-text-muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.eh-documents-meta-grid strong {
    color: var(--eh-text-strong);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.eh-documents-meta-grid .eh-badge {
    display: inline-flex;
    width: fit-content;
    font-size: 11px;
    text-transform: none;
}

.eh-documents-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.eh-documents-page.is-list .eh-documents-list {
    grid-template-columns: 1fr;
}

.eh-documents-page.is-list .eh-documents-item {
    grid-template-columns: 48px minmax(190px, 1fr) minmax(320px, 1.7fr) minmax(132px, auto);
    align-items: start;
}

.eh-documents-page.is-list .eh-documents-meta-grid,
.eh-documents-page.is-list .eh-documents-actions {
    grid-column: auto;
}

.eh-documents-page.is-list .eh-documents-actions {
    justify-content: flex-end;
}

.eh-documents-footer {
    display: flex;
    justify-content: center;
}

@media (max-width: 1180px) {
    .eh-documents-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .eh-documents-search-field {
        grid-column: span 2;
    }

    .eh-documents-page.is-list .eh-documents-item {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .eh-documents-page.is-list .eh-documents-meta-grid,
    .eh-documents-page.is-list .eh-documents-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .eh-documents-header {
        flex-direction: column;
    }

    .eh-documents-view-toggle,
    .eh-documents-view-toggle .eh-btn {
        width: 100%;
    }

    .eh-documents-filter-grid,
    .eh-documents-search-field {
        grid-template-columns: 1fr;
        grid-column: auto;
    }

    .eh-documents-item,
    .eh-documents-page.is-list .eh-documents-item {
        grid-template-columns: 44px minmax(0, 1fr);
        padding: 12px;
    }

    .eh-documents-meta-grid,
    .eh-documents-page.is-list .eh-documents-meta-grid,
    .eh-documents-actions,
    .eh-documents-page.is-list .eh-documents-actions {
        grid-column: 1 / -1;
    }

    .eh-documents-actions,
    .eh-documents-actions .eh-btn {
        width: 100%;
    }
}

.eh-file-viewer-page {
    display: grid;
    gap: 14px;
    min-height: calc(100vh - 122px);
}

.eh-file-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.eh-file-viewer-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.eh-file-viewer-title-wrap > div {
    min-width: 0;
}

.eh-file-viewer-title {
    margin: 0;
    overflow: hidden;
    color: var(--eh-text-strong);
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eh-file-viewer-subtitle {
    margin-top: 4px;
    overflow: hidden;
    color: var(--eh-text-muted);
    font-size: 12px;
    font-weight: 760;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eh-file-viewer-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.eh-file-viewer-actions .eh-btn[disabled],
.eh-file-viewer-actions .eh-btn.is-disabled {
    opacity: .55;
    pointer-events: none;
}

.eh-file-viewer-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 12px;
    min-height: 0;
}

.eh-file-viewer-stage {
    position: relative;
    z-index: var(--eh-z-content);
    min-height: 58vh;
    overflow: hidden;
    border: 1px solid rgba(125, 139, 158, 0.24);
    border-radius: var(--eh-radius-sm);
    background:
        linear-gradient(45deg, rgba(148, 163, 184, 0.12) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(148, 163, 184, 0.12) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(148, 163, 184, 0.12) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(148, 163, 184, 0.12) 75%),
        #f8fafc;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
    background-size: 24px 24px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.eh-file-viewer-stage:fullscreen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

.eh-file-viewer-stage [hidden] {
    display: none !important;
}

.eh-file-viewer-state,
.eh-file-viewer-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--eh-text-muted);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.eh-file-viewer-state--warning {
    color: #92400e;
}

.eh-file-viewer-image-layer {
    position: absolute;
    inset: 0;
    z-index: var(--eh-z-content);
    overflow: hidden;
    cursor: grab;
    touch-action: none;
}

.eh-file-viewer-image-layer.is-dragging {
    cursor: grabbing;
}

.eh-file-viewer-image {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    user-select: none;
    transform-origin: 0 0;
    will-change: transform;
}

.eh-file-viewer-pdf {
    position: absolute;
    inset: 0;
    z-index: var(--eh-z-content);
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.eh-file-viewer-placeholder {
    align-content: center;
    gap: 10px;
}

.eh-file-viewer-placeholder-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border: 1px solid rgba(125, 139, 158, 0.28);
    border-radius: var(--eh-radius-sm);
    background: rgba(255, 255, 255, 0.86);
    color: var(--eh-text-strong);
    font-size: 15px;
    font-weight: 950;
    letter-spacing: 0;
}

.eh-file-viewer-placeholder strong {
    color: var(--eh-text-strong);
    font-size: 16px;
    line-height: 1.25;
}

.eh-file-viewer-placeholder span {
    color: var(--eh-text-muted);
    font-size: 13px;
    font-weight: 760;
}

.eh-file-viewer-sidebar {
    display: grid;
    gap: 12px;
    align-content: start;
    min-width: 0;
}

.eh-file-viewer-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.eh-file-viewer-meta div {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: #fff;
}

.eh-file-viewer-meta span,
.eh-file-viewer-meta strong {
    display: block;
    min-width: 0;
}

.eh-file-viewer-meta span {
    color: var(--eh-text-muted);
    font-size: 10px;
    font-weight: 850;
    line-height: 1.25;
    text-transform: uppercase;
}

.eh-file-viewer-meta strong {
    margin-top: 4px;
    overflow-wrap: anywhere;
    color: var(--eh-text-strong);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.25;
}

.eh-file-viewer-versions {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: #fff;
}

.eh-file-viewer-versions-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--eh-text-strong);
    font-size: 13px;
    font-weight: 900;
}

.eh-file-viewer-versions-head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--eh-surface-soft);
    color: var(--eh-text-muted);
    font-size: 11px;
    font-weight: 900;
}

.eh-file-viewer-version-status,
.eh-file-viewer-version-empty,
.eh-file-viewer-version-muted {
    color: var(--eh-text-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.eh-file-viewer-version-status[hidden] {
    display: none;
}

.eh-file-viewer-version-status[data-tone="warning"] {
    color: #92400e;
}

.eh-file-viewer-version-status[data-tone="success"] {
    color: #137333;
}

.eh-file-viewer-version-list {
    display: grid;
    gap: 8px;
}

.eh-file-viewer-version-item {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: var(--eh-surface-soft);
}

.eh-file-viewer-version-item.is-current {
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(240, 253, 244, 0.78);
}

.eh-file-viewer-version-item.is-selected {
    border-color: rgba(0, 144, 211, 0.58);
    box-shadow: 0 0 0 3px rgba(0, 144, 211, 0.1);
}

.eh-file-viewer-version-main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.eh-file-viewer-version-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.eh-file-viewer-version-title strong {
    color: var(--eh-text-strong);
    font-size: 13px;
    font-weight: 900;
}

.eh-file-viewer-version-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 8px;
    color: var(--eh-text-muted);
    font-size: 11px;
    font-weight: 760;
    line-height: 1.3;
}

.eh-file-viewer-version-meta .eh-badge {
    font-size: 10px;
}

.eh-file-viewer-version-comment {
    margin: 0;
    color: var(--eh-text-strong);
    font-size: 12px;
    font-weight: 760;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.eh-file-viewer-version-origin {
    color: var(--eh-text-muted);
    font-size: 11px;
    font-weight: 820;
    line-height: 1.3;
}

.eh-file-viewer-version-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

@media (max-width: 1180px) {
    .eh-file-viewer-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .eh-file-viewer-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .eh-file-viewer-meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.eh-work-report-hero .eh-card-body {
    padding: 22px;
}

.eh-work-report-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
    min-width: 0;
}

.eh-work-report-hero h2 {
    margin: 4px 0 10px;
    font-size: 24px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.eh-work-report-badges,
.eh-work-report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eh-work-report-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.eh-work-report-meta div {
    padding: 10px 12px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: var(--eh-surface-soft);
    min-width: 0;
    overflow-wrap: anywhere;
}

.eh-work-report-meta span {
    display: block;
    color: var(--eh-text-muted);
    font-size: 12px;
    font-weight: 700;
}

.eh-work-report-meta strong {
    display: block;
    margin-top: 2px;
    overflow-wrap: anywhere;
}

.eh-work-report-report-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.eh-work-report-context-grid {
    display: grid;
    grid-template-columns: minmax(190px, .65fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    min-width: 0;
}

.eh-work-report-context-grid .eh-field-wide {
    min-width: 0;
}

.eh-readonly-field {
    min-height: 40px;
    display: flex;
    align-items: center;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: var(--eh-surface-muted);
    color: var(--eh-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    padding: 9px 11px;
    overflow-wrap: anywhere;
}

.eh-work-report-date-field {
    max-width: 340px;
}

.eh-work-report-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    max-width: 100%;
}

.eh-work-report-add-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
}

.eh-add-btn {
    justify-content: center;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    padding-inline: 12px;
    white-space: nowrap;
}

.eh-work-report-row {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: #fff;
}

.eh-work-report-time-block {
    display: grid;
    gap: 12px;
}

.eh-work-report-time-header,
.eh-work-report-time-main-row {
    display: grid;
    grid-template-columns: minmax(88px, .72fr) minmax(88px, .72fr) minmax(150px, 1.18fr) minmax(44px, auto);
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.eh-work-report-time-subrow {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
}

.eh-work-report-time-grid,
.eh-work-report-time-main-row,
.eh-work-report-time-subrow {
    min-width: 0;
}

.eh-work-report-time-grid > .eh-field,
.eh-work-report-time-grid .eh-input,
.eh-work-report-time-grid .eh-select,
.eh-work-report-time-main-row > .eh-field,
.eh-work-report-time-main-row .eh-input,
.eh-work-report-time-main-row .eh-select,
.eh-work-report-time-subrow > .eh-field {
    min-width: 0;
    max-width: 100%;
}

.eh-work-report-time-grid .eh-field-wide {
    grid-column: 1 / -1;
}

.eh-work-report-breaks {
    min-width: 0;
}

.eh-work-report-time-label,
.eh-work-report-subrow-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

.eh-work-report-break-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 8px;
}

.eh-work-report-pause-option input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 auto;
}

.eh-work-report-time-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    color: var(--eh-text-muted);
    font-size: 12px;
    font-weight: 800;
}

.eh-work-report-time-summary span {
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--eh-surface-soft);
}

.eh-work-report-time-employees {
    display: grid;
    gap: 9px;
    padding-top: 2px;
    min-width: 0;
}

.eh-work-report-time-section-title {
    color: var(--eh-text-strong);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
}

.eh-work-report-travel-row {
    justify-content: flex-start;
}

.eh-work-report-time-actions {
    justify-content: flex-end;
}

.eh-work-report-time-actions .eh-btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    font-size: 18px;
    line-height: 1;
}

.eh-work-report-employee-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
}

.eh-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 7px 9px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-xs);
    background: var(--eh-surface-soft);
    font-size: 13px;
    font-weight: 700;
    color: var(--eh-text);
    min-width: 0;
    overflow: hidden;
}

.eh-check-row input {
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 auto;
}

.eh-check-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.eh-textarea-compact {
    min-height: 66px;
    resize: vertical;
}

.eh-work-report-list-header {
    display: grid;
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 0 14px;
    color: var(--eh-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.eh-work-report-material-header {
    display: grid;
    grid-template-columns: minmax(180px, 1.45fr) minmax(84px, .52fr) minmax(88px, .52fr) minmax(170px, 1fr) minmax(44px, auto);
    gap: 10px;
    align-items: center;
}

.eh-work-report-material-table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: #fff;
    contain: inline-size;
}

.eh-work-report-material-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    table-layout: fixed;
}

.eh-work-report-material-table th {
    height: 38px;
    padding: 8px 10px;
    color: var(--eh-muted);
    background: var(--eh-surface-soft);
    border-bottom: 1px solid var(--eh-border);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
}

.eh-work-report-material-table td {
    height: 48px;
    padding: 6px 8px;
    border-bottom: 1px solid var(--eh-border);
    vertical-align: middle;
    background: #fff;
}

.eh-work-report-material-table tbody tr:last-child td {
    border-bottom: 0;
}

.eh-work-report-material-table tbody tr:hover td {
    background: #fbfdff;
}

.eh-work-report-material-table .eh-input,
.eh-work-report-material-table .eh-select {
    min-height: 34px;
    height: 34px;
    padding: 6px 9px;
    border-color: rgba(147, 197, 253, 0.48);
    border-radius: 7px;
    background-color: #eff6ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.eh-work-report-material-table .eh-select {
    padding-right: 32px;
    background-position:
        calc(100% - 16px) calc(50% - 1px),
        calc(100% - 10px) calc(50% - 1px);
}

.eh-work-report-material-table .eh-input:focus,
.eh-work-report-material-table .eh-select:focus {
    border-color: var(--eh-primary);
    background-color: #fff;
    box-shadow: var(--eh-focus);
}

.eh-work-report-material-col-name { width: 38%; }
.eh-work-report-material-col-quantity { width: 14%; }
.eh-work-report-material-col-unit { width: 14%; }
.eh-work-report-material-col-note { width: auto; }
.eh-work-report-material-col-action { width: 52px; }
.eh-work-report-open-task-col-title { width: 34%; }
.eh-work-report-open-task-col-priority { width: 15%; }
.eh-work-report-open-task-col-assignee { width: 22%; }
.eh-work-report-open-task-col-note { width: auto; }

.eh-work-report-material-action-head {
    text-align: center;
}

.eh-work-report-material-action-cell {
    text-align: center;
}

.eh-work-report-material-remove-btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 8px;
    font-size: 18px;
}

.eh-work-report-table-add-row {
    justify-content: flex-end;
    padding-top: 2px;
}

@media (max-width: 700px) {
    .eh-work-report-material-table {
        min-width: 0;
    }

    .eh-work-report-material-table th {
        height: 34px;
        padding: 7px 5px;
        font-size: 10px;
        letter-spacing: .03em;
    }

    .eh-work-report-material-table td {
        height: 48px;
        padding: 5px 4px;
    }

    .eh-work-report-material-table .eh-input,
    .eh-work-report-material-table .eh-select {
        min-height: 32px;
        height: 32px;
        padding: 5px 6px;
        font-size: 12px;
    }

    .eh-work-report-material-table .eh-select {
        padding-right: 22px;
        background-position:
            calc(100% - 12px) calc(50% - 1px),
            calc(100% - 7px) calc(50% - 1px);
    }

    .eh-work-report-material-col-name { width: 31%; }
    .eh-work-report-material-col-quantity { width: 16%; }
    .eh-work-report-material-col-unit { width: 17%; }
    .eh-work-report-material-col-action { width: 38px; }
    .eh-work-report-open-task-col-title { width: 31%; }
    .eh-work-report-open-task-col-priority { width: 18%; }
    .eh-work-report-open-task-col-assignee { width: 22%; }

    .eh-work-report-material-action-head {
        overflow: hidden;
        text-overflow: clip;
        white-space: nowrap;
    }

    .eh-work-report-material-remove-btn {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .eh-work-report-open-task-table {
        min-width: 0;
    }

    .eh-work-report-open-task-table thead {
        display: none;
    }

    .eh-work-report-open-task-table,
    .eh-work-report-open-task-table tbody,
    .eh-work-report-open-task-table tr,
    .eh-work-report-open-task-table td {
        display: block;
        width: 100%;
    }

    .eh-work-report-open-task-table td {
        height: auto;
        min-height: 0;
        padding: 6px 8px;
        border-bottom: 0;
    }

    .eh-work-report-open-task-table tr {
        padding: 6px 0;
        border-bottom: 1px solid var(--eh-border);
    }

    .eh-work-report-open-task-table tbody tr:last-child {
        border-bottom: 0;
    }

    .eh-work-report-open-task-table .eh-work-report-row-label {
        display: block;
        position: static;
        width: auto;
        height: auto;
        margin: 0 0 3px;
        overflow: visible;
        clip: auto;
        white-space: normal;
        font-size: 11px;
    }
}

.eh-work-report-open-task-header {
    display: grid;
    grid-template-columns: minmax(180px, 1.35fr) minmax(98px, .62fr) minmax(150px, .85fr) minmax(170px, 1fr) minmax(44px, auto);
    gap: 10px;
    align-items: center;
}

.eh-work-report-list > .eh-work-report-open-task-row {
    padding: 10px 12px;
}

.eh-work-report-row-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

.eh-work-report-material-table .eh-work-report-row-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

.eh-material-request-item-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.35fr) minmax(116px, .65fr) minmax(112px, .58fr) minmax(180px, 1fr) 44px;
    gap: 8px;
    align-items: end;
}

.eh-material-request-item-row .eh-material-request-item-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .eh-material-request-items-header {
        display: none;
    }

    .eh-material-request-item-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) 44px;
        align-items: end;
    }

    .eh-material-request-item-row .eh-field:first-child,
    .eh-material-request-item-row .eh-field:nth-child(4) {
        grid-column: 1 / -1;
    }

    .eh-material-request-item-row .eh-material-request-item-label {
        display: block;
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
        font-size: 11px;
    }
}

@media (max-width: 700px) {
    .eh-material-request-item-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 10px;
        background: var(--eh-surface-soft);
    }
    .eh-material-request-remove-cell {
        justify-content: flex-end;
    }
}

.eh-work-report-list > .eh-work-report-open-task-row .eh-actions {
    align-self: center;
    justify-content: flex-end;
}

.eh-material-request-item-row .eh-actions {
    align-self: end;
    justify-content: flex-end;
}

@media (max-width: 700px) {
    .eh-work-report-list-header {
        display: none;
    }

    .eh-work-report-time-main-row,
    .eh-work-report-time-subrow,
    .eh-work-report-list > .eh-work-report-open-task-row {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

    .eh-work-report-time-label,
    .eh-work-report-subrow-label,
    .eh-work-report-row-label {
        display: block;
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
    }

    .eh-work-report-time-actions,
    .eh-work-report-remove-cell {
        justify-content: flex-end;
    }
}

.eh-work-report-upload-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.eh-work-report-upload-actions {
    align-self: auto;
    display: flex;
    justify-content: flex-end;
    margin-top: 2px;
}

.eh-work-report-upload-actions .eh-btn {
    min-width: 132px;
}

.eh-work-report-file-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) minmax(150px, .7fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: #fff;
}

.eh-work-report-file-row.is-deleted {
    opacity: .72;
}

.eh-work-report-file-thumb {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-xs);
    background: var(--eh-surface-soft);
    color: var(--eh-text-muted);
    font-size: 11px;
    font-weight: 800;
    overflow: hidden;
}

.eh-work-report-file-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eh-work-report-file-main {
    min-width: 0;
}

.eh-work-report-file-title {
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eh-work-report-file-filename,
.eh-work-report-file-meta {
    color: var(--eh-text-muted);
    font-size: 12px;
    font-weight: 700;
}

.eh-work-report-file-filename {
    margin: 2px 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eh-work-report-file-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.eh-input-sm {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 13px;
}

.eh-icon-btn {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-xs);
    background: #fff;
    color: var(--eh-text);
    font-size: 20px;
    line-height: 1;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
}

.eh-icon-btn svg {
    width: 17px;
    height: 17px;
    display: block;
}

.eh-icon-btn-danger {
    color: var(--eh-danger);
    border-color: rgba(220, 38, 38, .24);
    background: rgba(254, 242, 242, .78);
}

.eh-checklist-process-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    padding: 18px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius);
    background: var(--eh-surface);
    box-shadow: var(--eh-shadow-soft);
}

.eh-checklist-process-main {
    min-width: 0;
}

.eh-checklist-process-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.eh-checklist-process-title-row .eh-page-title {
    margin-bottom: 2px;
}

.eh-checklist-process-title-row .eh-page-subtitle {
    margin: 0;
}

.eh-checklist-process-progress {
    min-width: 168px;
    padding: 10px 12px;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    background: var(--eh-surface-soft);
}

.eh-checklist-process-progress span {
    display: block;
    margin-bottom: 2px;
    color: var(--eh-text-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.eh-checklist-process-progress strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--eh-text-strong);
    font-size: 14px;
}

.eh-checklist-process-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.eh-checklist-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 320px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid var(--eh-border);
    border-radius: 999px;
    background: var(--eh-surface-soft);
    color: var(--eh-text);
}

.eh-checklist-meta-chip small {
    color: var(--eh-text-muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.eh-checklist-meta-chip strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.eh-checklist-process-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    max-width: 360px;
}

.eh-checklist-pdf-note {
    flex-basis: 100%;
    text-align: right;
}

.eh-checklist-stepper {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 2px 0 8px;
    scrollbar-width: thin;
}

.eh-checklist-stepper-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 132px;
    max-width: 168px;
    min-height: 38px;
    padding: 7px 9px;
    border: 1px solid var(--eh-border);
    border-radius: 999px;
    background: var(--eh-surface);
    color: var(--eh-text);
    text-align: left;
    cursor: pointer;
}

.eh-checklist-stepper-btn span {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--eh-surface-soft);
    color: var(--eh-text-muted);
    font-size: 11px;
    font-weight: 900;
    flex: 0 0 auto;
}

.eh-checklist-stepper-btn strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

.eh-checklist-stepper-btn.active {
    border-color: var(--eh-primary);
    background: var(--eh-primary-soft);
    box-shadow: 0 0 0 2px var(--eh-primary-soft);
}

.eh-checklist-stepper-btn.active span,
.eh-checklist-stepper-btn.done span {
    background: var(--eh-primary);
    color: #fff;
}

.eh-checklist-step-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    max-width: 1120px;
    margin: 0 auto;
    padding-top: 4px;
}

.eh-checklist-step-nav .eh-card-note {
    justify-self: center;
    font-weight: 800;
}

.eh-checklist-step-nav .eh-btn:last-child {
    justify-self: end;
}

.eh-checklist-current-step {
    width: min(100%, 1120px);
    min-width: 0;
    margin: 0 auto;
}

.eh-checklist-current-step .eh-card-header,
.eh-checklist-current-step .eh-card-body {
    padding-left: 18px;
    padding-right: 18px;
}

.eh-checklist-field-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px 16px;
}

.eh-checklist-field-grid textarea.eh-textarea {
    min-height: 92px;
}

.eh-checklist-input-unit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    min-width: 0;
}

.eh-checklist-input-unit .eh-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.eh-checklist-input-unit span {
    display: inline-flex;
    align-items: center;
    min-width: 42px;
    padding: 0 11px;
    border: 1px solid var(--eh-border);
    border-left: 0;
    border-top-right-radius: var(--eh-radius-sm);
    border-bottom-right-radius: var(--eh-radius-sm);
    background: var(--eh-surface-soft);
    color: var(--eh-text-muted);
    font-size: 12px;
    font-weight: 900;
}

.eh-checklist-summary {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.eh-checklist-summary-section {
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius-sm);
    padding: 12px;
    background: var(--eh-surface-soft);
}

.eh-checklist-summary-section h3 {
    margin: 0 0 10px;
    font-size: 15px;
}

.eh-checklist-summary-section dl {
    margin: 0;
    display: grid;
    gap: 8px;
}

.eh-checklist-summary-row {
    display: grid;
    grid-template-columns: minmax(140px, 0.35fr) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.eh-checklist-summary-row dt {
    margin: 0;
    color: var(--eh-text-muted);
    font-size: 12px;
    font-weight: 800;
}

.eh-checklist-summary-row dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--eh-text-strong);
}

.eh-checklist-repeater-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.eh-checklist-repeat-row {
    margin-top: 10px;
    box-shadow: none;
}

.eh-checklist-file-field {
    display: grid;
    min-width: 0;
}

.eh-checklist-file-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 74px;
    padding: 12px;
    border: 1px dashed color-mix(in srgb, var(--eh-primary) 48%, var(--eh-border));
    border-radius: var(--eh-radius-sm);
    background: linear-gradient(180deg, #fff 0%, var(--eh-surface-soft) 100%);
}

.eh-checklist-file-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--eh-primary-soft);
    color: var(--eh-primary);
    font-size: 10px;
    font-weight: 900;
}

.eh-checklist-file-main {
    min-width: 0;
}

.eh-checklist-file-main strong,
.eh-checklist-file-main span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eh-checklist-file-main strong {
    color: var(--eh-text-strong);
    font-size: 13px;
}

.eh-checklist-file-main span {
    color: var(--eh-text-muted);
    font-size: 12px;
}

.eh-checklist-file-actions {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.eh-checklist-file-dropzone {
    position: relative;
    display: inline-grid;
    align-items: center;
    justify-content: center;
    justify-items: center;
    gap: 3px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px dashed rgba(0, 144, 211, 0.38);
    border-radius: var(--eh-radius-sm);
    background: rgba(255, 255, 255, 0.72);
    color: var(--eh-primary);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    text-align: center;
}

.eh-checklist-file-dropzone:hover,
.eh-checklist-file-dropzone:focus-within {
    border-color: rgba(0, 144, 211, 0.68);
    background: rgba(0, 144, 211, 0.045);
}

.eh-checklist-file-dropzone input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.eh-checklist-file-dropzone small {
    display: none;
}

.eh-checklist-file-dropzone::after {
    content: "+";
    display: block;
    color: var(--eh-primary);
    font-size: 24px;
    font-weight: 900;
    line-height: .9;
}

.eh-checklist-file-cta {
    white-space: nowrap;
}

@media (max-width: 860px) {
    .eh-project-file-row {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

    .eh-project-file-actions,
    .eh-project-file-panel-head,
    .eh-project-file-link-row {
        align-items: stretch;
        flex-direction: column;
    }

    .eh-project-file-actions,
    .eh-project-file-panel-action,
    .eh-project-file-panel-action .eh-btn,
    .eh-project-file-actions .eh-btn {
        width: 100%;
    }

    .eh-project-file-panel-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .eh-project-file-link-url {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .eh-work-report-upload-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .eh-work-report-context-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .eh-upload-actions,
    .eh-upload-actions .eh-btn,
    .eh-work-report-upload-actions,
    .eh-work-report-upload-actions .eh-btn {
        width: 100%;
        min-height: 44px;
    }

    .eh-work-report-file-row {
        grid-template-columns: 64px minmax(0, 1fr);
        align-items: start;
    }

    .eh-work-report-file-meta,
    .eh-work-report-file-actions {
        grid-column: 1 / -1;
    }

    .eh-work-report-file-title,
    .eh-work-report-file-filename {
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .eh-work-report-file-actions {
        align-items: stretch;
        flex-wrap: wrap;
        justify-content: stretch;
    }

    .eh-work-report-file-actions .eh-btn,
    .eh-work-report-file-actions .eh-input {
        flex: 1 1 180px;
        min-height: 44px;
    }

    .eh-checklist-file-actions .eh-btn,
    .eh-checklist-file-dropzone {
        min-height: 44px;
    }
}

@media (max-width: 700px) {
    .eh-file-dropzone {
        min-height: 96px;
        padding: 16px 12px;
        line-height: 1.35;
    }

    .eh-file-dropzone,
    .eh-file-dropzone small {
        overflow-wrap: anywhere;
    }

    .eh-upload-queue-item {
        grid-template-columns: minmax(0, 1fr);
    }

    .eh-upload-queue-status {
        justify-self: start;
    }

    .eh-file-viewer-header,
    .eh-file-viewer-title-wrap {
        align-items: stretch;
        flex-direction: column;
    }

    .eh-file-viewer-actions,
    .eh-file-viewer-actions .eh-btn,
    .eh-file-viewer-title-wrap .eh-btn {
        width: 100%;
    }

    .eh-file-viewer-title {
        white-space: normal;
    }

    .eh-file-viewer-stage {
        min-height: 52vh;
    }

    .eh-file-viewer-meta {
        grid-template-columns: minmax(0, 1fr);
    }

    .eh-checklist-file-card {
        grid-template-columns: 38px minmax(0, 1fr);
        align-items: start;
    }

    .eh-checklist-file-main strong,
    .eh-checklist-file-main span {
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .eh-checklist-file-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .eh-checklist-file-actions .eh-btn,
    .eh-checklist-file-dropzone {
        width: 100%;
        min-height: 44px;
    }

    .eh-mobile-card-meta {
        grid-template-columns: minmax(0, 1fr);
    }

    .eh-mobile-card-actions .eh-btn,
    .eh-actions .eh-btn {
        min-height: 44px;
    }
}

@media (max-width: 980px) {
    .app-shell { flex-direction: column; }
    .app-sidebar { width: auto; flex-basis: auto; padding: 12px; }
    .app-sidebar-inner { position: static; min-height: auto; }
    .app-main { padding: 0 12px 12px; }
    .app-topbar {
        margin: 0 0 14px;
    }
    .eh-page-header { flex-direction: column; }
    .eh-actions { justify-content: flex-start; }
    .eh-page,
    .eh-card,
    .eh-toolbar,
    .eh-calendar-week-stack,
    .eh-calendar-week-block {
        max-width: 100%;
        min-width: 0;
    }
    .eh-calendar-toolbar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }
    .eh-calendar-toolbar-grid .eh-field:nth-child(3),
    .eh-calendar-nav-buttons,
    .eh-calendar-toolbar-summary {
        grid-column: 1 / -1;
    }
    .eh-calendar-nav-buttons {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
        align-items: stretch;
        gap: 8px;
    }
    .eh-calendar-nav-buttons .eh-btn {
        width: 100%;
        min-width: 0;
    }
    .eh-calendar-toolbar-summary {
        min-height: auto;
        padding: 10px 12px;
        border: 1px solid var(--eh-border);
        border-radius: var(--eh-radius-sm);
        background: var(--eh-surface-soft);
    }
    .eh-calendar-edit-grid { grid-template-columns: 1fr; }
    .eh-calendar-edit-grid > .eh-card { order: 1; }
    .eh-calendar-edit-grid > .eh-sidebar-stack { order: 2; }
    .eh-task-shell { grid-template-columns: 1fr; }
    .eh-dashboard-main-grid { grid-template-columns: 1fr; }
    .eh-dashboard-masonry,
    .eh-dashboard-grid,
    .eh-kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eh-widget--span-wide,
    .eh-widget-key--week_overview,
    .eh-widget-key--active_worklist,
    .eh-widget-key--metric_cluster,
    .eh-widget-key--system_status_cluster,
    .eh-widget--system_health { grid-column: span 2; }
    .eh-week-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .eh-dashboard-assignment { grid-template-columns: 1fr; align-items: stretch; }
    .eh-dashboard-assignment .eh-btn { width: 100%; }
    .eh-toolbar-grid,
    .eh-filter-row { grid-template-columns: 1fr; display: grid; }
    .eh-toolbar-status { justify-content: flex-start; }
    .eh-notification-channel-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .eh-notification-toolbar {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .eh-notification-pager {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
    .eh-notifications-table-head {
        display: none;
    }
    .eh-notification-compact-row {
        grid-template-columns: 12px minmax(0, 1fr);
        gap: 8px 12px;
        align-items: start;
        padding: 13px 14px;
    }
    .eh-notification-compact-dot {
        grid-row: 1 / span 6;
        margin-top: 4px;
    }
    .eh-notification-compact-title,
    .eh-notification-compact-message,
    .eh-notification-compact-area,
    .eh-notification-compact-time,
    .eh-notification-compact-status,
    .eh-notification-compact-actions {
        grid-column: 2;
    }
    .eh-notification-compact-message,
    .eh-notification-compact-area,
    .eh-notification-compact-time,
    .eh-notification-compact-status {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 8px;
    }
    .eh-notification-compact-message::before,
    .eh-notification-compact-area::before,
    .eh-notification-compact-time::before,
    .eh-notification-compact-status::before {
        content: attr(data-label);
        color: var(--eh-muted);
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
    }
    .eh-notification-compact-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .eh-my-calendar-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eh-my-calendar-nav { justify-content: flex-start; }
    .eh-profile-header,
    .eh-force-password-header,
    .eh-profile-card-footer { align-items: stretch; flex-direction: column; }
    .eh-profile-card-footer { justify-content: flex-start; }
    .eh-profile-hero-card,
    .eh-profile-card-grid,
    .eh-profile-display-grid,
    .eh-profile-edit-grid,
    .eh-profile-personal-grid,
    .eh-profile-security-grid { grid-template-columns: 1fr; }
    .eh-profile-hero-card { align-items: start; }
    .eh-profile-work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .eh-changelog-current-head { flex-direction: column; }
    .eh-changelog-highlight-list,
    .eh-changelog-audience-grid,
    .eh-changelog-info-grid,
    .eh-changelog-grid { grid-template-columns: 1fr; }
    .eh-changelog-audience-panel--wide,
    .eh-changelog-panel--wide { grid-column: auto; }
    .eh-changelog-release-mini summary,
    .eh-changelog-technical-details summary {
        align-items: flex-start;
        flex-direction: column;
    }
    .eh-changelog-mini-badge {
        white-space: normal;
    }
    .eh-project-overview-grid { grid-template-columns: 1fr; }
    .eh-work-report-hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    body.is-mobile-nav-open {
        overflow: hidden;
    }

    .app-shell {
        display: block;
        min-height: 100vh;
    }

    .app-mobile-header {
        position: sticky;
        top: 8px;
        z-index: var(--eh-z-header);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-width: 0;
        margin: 8px 12px 10px;
        padding: 10px 12px;
        border: 1px solid rgba(255, 255, 255, 0.74);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: var(--eh-shadow-sm);
        backdrop-filter: blur(16px);
    }

    .app-mobile-menu-btn {
        display: inline-flex;
    }

    .app-mobile-nav-overlay {
        position: fixed;
        inset: 0;
        z-index: var(--eh-z-mobile-overlay);
        display: block;
        background: rgba(15, 23, 42, 0.36);
    }

    .app-mobile-nav-overlay[hidden] {
        display: none !important;
    }

    .app-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: var(--eh-z-mobile-nav);
        width: min(318px, calc(100vw - 24px));
        height: 100vh;
        height: 100dvh;
        padding: 10px;
        flex: none;
        transform: translateX(calc(-100% - 16px));
        transition: transform 180ms ease;
    }

    body.is-mobile-nav-open .app-sidebar {
        transform: translateX(0);
    }

    .app-sidebar-inner {
        position: static;
        top: auto;
        height: 100%;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 14px;
        border-radius: 18px;
        background: #fff;
    }

    .app-sidebar .app-brand {
        align-items: center;
        padding-bottom: 14px;
        margin-bottom: 12px;
    }

    .app-mobile-nav-close {
        display: inline-flex;
    }

    .app-main {
        padding: 0 12px 12px;
    }

    .eh-dashboard-masonry,
    .eh-dashboard-grid,
    .eh-kpi-strip,
    .eh-week-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .eh-week-empty-overview > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .eh-widget,
    .eh-widget--span-wide,
    .eh-widget-key--week_overview,
    .eh-widget--system_health {
        grid-column: auto;
    }
    .eh-dashboard-masonry > .eh-widget {
        order: 8;
    }
    .eh-widget--attention {
        order: 1;
    }
    .eh-widget-key--week_overview {
        order: 2;
    }
    .eh-dashboard-layout-section--overview {
        order: 1;
    }
    .eh-dashboard-layout-section--work_core {
        order: 2;
    }
    .eh-dashboard-layout-section--operations {
        order: 3;
    }
    .eh-dashboard-layout-section--administration,
    .eh-dashboard-layout-section--system_overview,
    .eh-dashboard-layout-section--system_metrics,
    .eh-dashboard-layout-section--system_feedback {
        order: 4;
    }
    .eh-dashboard-layout-section--metrics {
        order: 5;
    }
    .eh-widget-key--today_tasks {
        order: 3;
    }
    .eh-widget-key--active_worklist {
        order: 4;
    }
    .eh-widget-key--metric_cluster,
    .eh-widget-key--system_status_cluster {
        order: 5;
    }
    .eh-week-day,
    .eh-list-compact-item,
    .eh-doc-row,
    .eh-widget-action {
        min-height: 44px;
    }
    .eh-week-day {
        min-height: 96px;
    }
    .eh-doc-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 5px 10px;
    }
    .eh-doc-name {
        grid-column: 1 / -1;
    }
    .eh-inline-status {
        justify-self: end;
    }

    .eh-mobile-card-table {
        display: none;
    }

    .eh-mobile-card-list {
        display: grid;
        gap: 12px;
        min-width: 0;
    }

    .eh-mobile-card-head {
        flex-wrap: wrap;
    }

    .eh-mobile-card-head .eh-badge {
        flex: 0 0 auto;
    }

    .eh-mobile-card-actions .eh-btn {
        flex: 1 1 128px;
        min-width: 0;
        min-height: 44px;
    }
}

@media (min-width: 768px) and (max-width: 980px) {
    .eh-dashboard-masonry,
    .eh-dashboard-grid,
    .eh-kpi-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .eh-widget--span-wide {
        grid-column: span 2;
    }
    .eh-widget-key--active_worklist,
    .eh-widget-key--metric_cluster,
    .eh-widget-key--system_status_cluster,
    .eh-widget--system_health {
        grid-column: span 2;
    }
    .eh-widget-key--week_overview {
        grid-column: span 1;
    }
    .eh-week-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .eh-dashboard-masonry > .eh-widget,
    .eh-widget--attention,
    .eh-widget-key--today_tasks,
    .eh-widget-key--active_worklist,
    .eh-widget-key--metric_cluster,
    .eh-widget-key--system_status_cluster,
    .eh-dashboard-layout-section--overview,
    .eh-dashboard-layout-section--work_core,
    .eh-dashboard-layout-section--operations,
    .eh-dashboard-layout-section--administration,
    .eh-dashboard-layout-section--metrics,
    .eh-dashboard-layout-section--system_overview,
    .eh-dashboard-layout-section--system_metrics,
    .eh-dashboard-layout-section--system_feedback {
        order: initial;
    }
}

@media (max-width: 620px) {
    .eh-dashboard-masonry,
    .eh-dashboard-grid,
    .eh-kpi-strip,
    .eh-week-strip {
        grid-template-columns: minmax(0, 1fr);
    }
    .eh-widget,
    .eh-widget--span-wide,
    .eh-widget-key--week_overview,
    .eh-widget-key--active_worklist,
    .eh-widget-key--metric_cluster,
    .eh-widget-key--system_status_cluster,
    .eh-widget--system_health {
        grid-column: auto;
    }
    .eh-metric-cluster-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .eh-week-empty-overview > div {
        grid-template-columns: minmax(0, 1fr);
    }

    .eh-stats,
    .eh-form-grid,
    .eh-list-form-row--compact,
    .eh-project-appointment-time-row,
    .eh-project-appointment-meta-row,
    .eh-project-task-meta-row,
    .eh-project-question-meta-row,
    .eh-toggle-grid { grid-template-columns: 1fr; }
    .eh-profile-info-grid,
    .eh-profile-form-grid,
    .eh-profile-display-grid,
    .eh-profile-edit-grid,
    .eh-profile-personal-grid,
    .eh-profile-personal-grid--address,
    .eh-profile-work-grid { grid-template-columns: 1fr; }
    .eh-profile-container { width: 100%; }
    .eh-profile-hero-card { padding: 18px; }
    .eh-profile-avatar-large {
        width: 72px;
        height: 72px;
        border-radius: 20px;
        font-size: 24px;
    }
    .eh-profile-hero-main h2 { font-size: 24px; }
    .eh-profile-hero-fact {
        min-width: 0;
        width: 100%;
    }
    .eh-notification-channel-nav,
    .eh-notification-toolbar {
        grid-template-columns: minmax(0, 1fr);
    }
    .eh-notification-read-filter {
        width: 100%;
    }
    .eh-segmented-control-option {
        flex: 1 1 0;
        min-width: 0;
        padding-left: 8px;
        padding-right: 8px;
    }
    .eh-notification-page-size {
        justify-content: space-between;
        width: 100%;
    }
    .eh-notification-page-size select {
        min-width: 96px;
    }
    .eh-notification-pager {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        width: 100%;
    }
    .eh-notification-pager .eh-btn {
        min-width: 0;
    }
    .eh-notification-list-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
    .eh-notification-compact-row {
        position: relative;
        grid-template-columns: minmax(0, 1fr);
        padding-left: 32px;
    }
    .eh-notification-compact-dot {
        position: absolute;
        left: 14px;
        top: 18px;
        grid-row: auto;
        margin-top: 0;
    }
    .eh-notification-compact-title,
    .eh-notification-compact-message,
    .eh-notification-compact-area,
    .eh-notification-compact-time,
    .eh-notification-compact-status,
    .eh-notification-compact-actions {
        grid-column: 1;
    }
    .eh-notification-compact-message,
    .eh-notification-compact-area,
    .eh-notification-compact-time,
    .eh-notification-compact-status {
        grid-template-columns: minmax(72px, .32fr) minmax(0, 1fr);
    }
    .eh-notification-compact-actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
        width: 100%;
    }
    .eh-notification-compact-actions .eh-btn {
        width: 100%;
        min-width: 0;
        min-height: 40px;
        white-space: normal;
    }
    .eh-profile-hero-facts { width: 100%; }
    .eh-profile-meta-row span { max-width: 100%; }
    .eh-profile-personal-grid--address .eh-profile-personal-item:first-child {
        grid-column: auto;
    }
    .eh-profile-edit-grid--address .eh-profile-edit-field:first-child,
    .eh-profile-edit-field--full {
        grid-column: auto;
    }
    .eh-profile-data-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .eh-profile-password-details > summary {
        min-height: 58px;
        padding: 16px;
    }
    .eh-profile-chip {
        max-width: 100%;
        justify-content: center;
    }
    .eh-profile-card-footer .eh-btn,
    .eh-profile-card .eh-btn {
        width: 100%;
        min-height: 44px;
    }
    .eh-page-title { font-size: 24px; }
    .eh-work-report-hero h2 { font-size: 20px; }
    .eh-work-report-row { padding: 12px; }
    .eh-work-report-time-grid,
    .eh-work-report-open-task-row,
    .eh-material-request-item-row,
    .eh-work-report-upload-form,
    .eh-work-report-file-row {
        grid-template-columns: 1fr;
    }
    .eh-work-report-meta {
        grid-template-columns: 1fr;
    }
    .eh-work-report-time-grid .eh-field-wide {
        grid-column: auto;
    }
    .eh-work-report-employee-list {
        grid-template-columns: 1fr;
    }
    .eh-work-report-break-options {
        grid-template-columns: 1fr;
    }
    .eh-work-report-file-thumb {
        width: 100%;
        height: 120px;
    }
    .eh-work-report-file-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .eh-card-header,
    .eh-actions {
        min-width: 0;
        flex-wrap: wrap;
    }
    .eh-card-header .eh-actions,
    .eh-page-header .eh-actions,
    .eh-card-body > .eh-actions {
        width: 100%;
    }
    .eh-card-header .eh-actions .eh-btn,
    .eh-page-header .eh-actions .eh-btn,
    .eh-card-body > .eh-actions .eh-btn {
        flex: 1 1 140px;
        min-width: 0;
    }
    .eh-mobile-card-meta {
        grid-template-columns: 1fr;
    }
    .app-topbar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        padding: 10px 12px;
        margin: 0 0 12px;
    }
    .topbar-actions {
        width: 100%;
        min-width: 0;
        gap: 6px;
        justify-content: flex-end;
    }
    .topbar-profile-link,
    .eh-topbar-user {
        max-width: 42px;
        padding: 4px;
        flex: 0 0 auto;
    }
    .topbar-profile-link span:last-child,
    .eh-topbar-user span:last-child {
        display: none;
    }
    .topbar-notifications {
        gap: 6px;
    }
    .topbar-notification-button {
        width: 34px;
        height: 34px;
    }
    .topbar-notification-svg {
        width: 17px;
        height: 17px;
    }
    .topbar-notification-panel {
        position: fixed;
        top: 72px;
        left: 12px;
        right: 12px;
        width: auto;
        max-height: calc(100vh - 92px);
    }
    .logout-btn {
        min-height: 36px;
        padding: 0 12px;
        white-space: nowrap;
    }
    .logout-btn span {
        display: none;
    }
    .eh-notification-channel-nav {
        grid-template-columns: 1fr;
    }
    .eh-notification-channel-chip {
        padding: 12px 14px;
    }
    .eh-project-tabs {
        flex-wrap: wrap;
        overflow-x: visible;
        padding-bottom: 2px;
    }
    .eh-project-tabs .eh-tab {
        flex: 1 1 132px;
        min-width: 0;
    }
    .eh-project-overview-card {
        padding: 14px;
    }
    .eh-project-overview-card h2 {
        font-size: 19px;
    }
    .eh-project-overview-metrics {
        grid-template-columns: 1fr;
    }
    .eh-notification-task-card,
    .eh-system-feed-item {
        grid-template-columns: minmax(0, 1fr);
    }
    .eh-system-feed-dot {
        display: none;
    }
    .eh-communication-item {
        grid-template-columns: 34px minmax(0, 1fr);
    }
    .eh-communication-avatar {
        width: 34px;
        height: 34px;
    }
    .eh-communication-head,
    .eh-system-feed-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
    .eh-notification-item-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .eh-notification-item-actions .eh-btn {
        flex: 1 1 118px;
        min-width: 0;
    }
    .eh-backup-overview,
    .eh-backup-module-grid,
    .eh-backup-card-facts {
        grid-template-columns: minmax(0, 1fr);
    }
    .eh-backup-module-card .eh-card-header {
        align-items: stretch;
    }
    .eh-backup-status-pill {
        width: fit-content;
    }
    .eh-backup-list-item {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }
    .eh-backup-list-item .eh-btn {
        width: 100%;
    }
    .eh-calendar-toolbar-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .eh-calendar-nav-buttons {
        grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    }
    .eh-calendar-summary-line {
        overflow-wrap: anywhere;
    }
    .eh-calendar-kpi-ring-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .eh-task-form-footer,
    .eh-task-item,
    .eh-task-title-row {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    .eh-task-page-tabs,
    .eh-task-filter-chips {
        align-items: stretch;
        width: 100%;
    }
    .eh-task-page-tab,
    .eh-task-filter-chip {
        flex: 1 1 132px;
        min-width: 0;
    }
    .eh-task-badges,
    .eh-task-actions,
    .eh-task-form-actions {
        justify-content: flex-start;
    }
    .eh-task-actions .eh-btn,
    .eh-task-form-actions .eh-btn {
        flex: 1 1 128px;
        min-width: 0;
    }
    .eh-my-task-overview {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .eh-my-task-overview > span {
        justify-content: center;
        min-width: 0;
        padding: 9px 6px;
        text-align: center;
    }
    .eh-my-task-groups {
        gap: 18px;
    }
    .eh-my-task-row {
        grid-template-columns: 46px minmax(0, 1fr) auto;
        min-height: 78px;
    }
    .eh-my-task-checkbox {
        width: 46px;
        min-height: 48px;
    }
    .eh-my-task-row-main {
        padding: 12px 4px 12px 0;
    }
    .eh-my-task-title-line {
        flex-wrap: wrap;
        gap: 6px;
    }
    .eh-my-task-row-actions {
        gap: 2px;
        padding-right: 5px;
    }
    .eh-my-task-icon-action {
        width: 38px;
        height: 44px;
    }
    .eh-my-task-row-meta {
        gap: 4px 9px;
    }
    .eh-employee-task-shell {
        grid-template-columns: minmax(0, 1fr);
    }
    .eh-employee-task-form-card {
        position: static;
    }
    .eh-employee-task-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .eh-employee-task-form-footer {
        align-items: stretch;
        flex-direction: column;
    }
    .eh-employee-task-form-footer .eh-actions,
    .eh-employee-task-form-footer .eh-btn {
        width: 100%;
    }
    .eh-employee-task-scopes {
        align-items: stretch;
    }
    .eh-employee-task-scopes .eh-task-filter-chip {
        flex: 1 1 132px;
    }
    .eh-employee-task-row {
        grid-template-columns: 46px minmax(0, 1fr) 44px;
        align-items: start;
        padding: 7px 0;
    }
    .eh-employee-task-row .eh-my-task-checkbox {
        width: 46px;
        margin-top: 3px;
    }
    .eh-employee-task-row-main {
        padding-right: 4px;
    }
    .eh-employee-task-row-actions {
        flex-direction: column;
        padding: 2px 4px 0 0;
    }
    .eh-employee-task-icon-button {
        width: 40px;
        height: 44px;
    }
    .eh-task-details-dialog {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
    }
    .eh-task-details-shell {
        max-height: calc(100vh - 16px);
    }
    .eh-task-details-header {
        gap: 10px;
        padding: 14px 14px 12px;
    }
    .eh-task-details-title {
        font-size: 17px;
    }
    .eh-task-details-tabs {
        padding: 7px 12px;
    }
    .eh-task-details-tab {
        flex: 1 1 0;
    }
    .eh-task-details-panel {
        padding: 12px 14px 16px;
    }
    .eh-task-comment-head,
    .eh-task-comment-form-footer {
        align-items: flex-start;
        flex-direction: column;
    }
    .eh-task-comment-form-footer .eh-btn,
    .eh-task-details-more {
        width: 100%;
        min-height: 44px;
    }
    .eh-my-calendar-toolbar { grid-template-columns: 1fr; }
    .eh-my-calendar-shell { display: none; }
    .eh-my-calendar-grid { min-width: 0; }
    .eh-my-calendar-mobile-agenda {
        display: grid;
        gap: 10px;
    }
    .eh-timesheet-page .eh-toolbar,
    .eh-timesheet-page .eh-toolbar-grid,
    .eh-timesheet-page .eh-filter-row,
    .eh-timesheet-page .eh-toolbar-status,
    .eh-timesheet-page .eh-status {
        min-width: 0;
        max-width: 100%;
    }
    .eh-timesheet-page .eh-toolbar-grid,
    .eh-timesheet-page .eh-filter-row {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
    }
    .eh-timesheet-page #my-timesheet-week-label,
    .eh-timesheet-page #my-timesheet-status {
        display: block;
        width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .eh-timesheet-tabs {
        overflow-x: visible;
        flex-wrap: wrap;
    }
    .eh-timesheet-tabs .eh-tab {
        flex: 1 1 140px;
        min-width: 0;
    }
    .eh-timesheet-entry-card strong,
    .eh-timesheet-entry-card span {
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .eh-timesheet-entry-card .eh-actions .eh-btn {
        flex: 1 1 112px;
        min-width: 0;
    }
    .eh-calendar-week-stack {
        display: none;
    }
    .eh-calendar-mobile-list {
        display: grid;
        gap: 12px;
    }
    .eh-calendar-mobile-day-head {
        align-items: stretch;
        flex-direction: column;
    }
    .eh-calendar-mobile-day-head .eh-btn {
        width: 100%;
    }
    .eh-calendar-mobile-assignment-head {
        flex-direction: column;
        gap: 6px;
    }
    .eh-calendar-mobile-hours {
        text-align: left;
    }
    .eh-settings-break-row,
    .eh-settings-model-grid-inner,
    .eh-settings-day-checkboxes,
    .eh-settings-distribution-grid,
    .eh-settings-model-days-grid { grid-template-columns: 1fr; }
    .eh-dashboard-masonry,
    .eh-dashboard-grid { grid-template-columns: 1fr; }
    .eh-dashboard-kpi-strip,
    .eh-dashboard-card-grid,
    .eh-dashboard-card-grid--two,
    .eh-dashboard-card-grid--three,
    .eh-dashboard-schedule-days,
    .eh-dashboard-work-grid { grid-template-columns: 1fr; }
    .eh-dashboard-view-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .eh-dashboard-view-tabs[hidden] { display: none; }
    .eh-dashboard-view-tab { min-width: 0; width: 100%; }
    .eh-dashboard-attention-panel { padding: 12px; }
    .eh-dashboard-attention-head { align-items: stretch; flex-direction: column; }
    .eh-dashboard-attention-list { grid-template-columns: 1fr; }
    .eh-dashboard-attention-item { min-height: 44px; grid-template-columns: 10px minmax(0, 1fr) auto; }
    .eh-dashboard-attention-badge { max-width: 96px; }
    .eh-dashboard-section-heading { align-items: start; flex-direction: column; }
    .eh-dashboard-work-card-header { align-items: start; padding: 12px; }
    .eh-dashboard-widget-icon { width: 36px; height: 36px; }
    .eh-dashboard-work-item { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    .eh-dashboard-work-card--quiet .eh-dashboard-work-item { min-height: 44px; }
    .eh-dashboard-work-badge { justify-self: end; max-width: 96px; }
    .eh-dashboard-work-actions .eh-btn { flex: 1 1 160px; min-width: 0; min-height: 44px; }
    .eh-dashboard-data-sources div { display: grid; }
    .eh-calendar-plan-status-panel { align-items: stretch; flex-direction: column; }
    .eh-calendar-plan-status-control { width: 100%; }
    .eh-calendar-edit-form-grid .eh-calendar-employee-field,
    .eh-calendar-edit-form-grid .eh-calendar-vehicle-apply-field { grid-column: auto; }
    .eh-entry-grid .entry-title-field,
    .eh-entry-grid .entry-project-field,
    .eh-entry-grid .entry-service-ticket-field { grid-column: auto; }
    .eh-project-file-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .eh-project-file-title {
        white-space: normal;
    }
    .eh-project-file-actions {
        justify-content: flex-start;
    }
    .eh-project-file-panel-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
    .eh-project-file-panel-grid {
        grid-template-columns: 1fr;
    }
    .eh-project-file-version-picker {
        grid-template-columns: 1fr;
        align-items: start;
    }
    .eh-project-file-version-picker small {
        white-space: normal;
    }
    .eh-project-file-panel-action {
        align-self: stretch;
    }
    .eh-project-file-panel-action .eh-btn {
        width: 100%;
    }
    .eh-project-file-link-row {
        align-items: flex-start;
        flex-direction: column;
    }
    .eh-project-appointment-item {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .eh-project-appointment-item .eh-btn {
        width: 100%;
    }
    .eh-project-question-head {
        grid-template-columns: 1fr;
    }
    .eh-project-question-badges,
    .eh-project-question-actions,
    .eh-project-question-reply-actions {
        justify-content: flex-start;
    }
    .eh-project-question-actions .eh-btn,
    .eh-project-question-reply-actions .eh-btn {
        flex: 1 1 140px;
        min-width: 0;
    }
    .eh-service-ticket-table-wrap {
        overflow-x: visible;
    }
    .eh-service-ticket-table,
    .eh-service-ticket-table thead,
    .eh-service-ticket-table tbody,
    .eh-service-ticket-table tr,
    .eh-service-ticket-table th,
    .eh-service-ticket-table td {
        display: block;
        width: 100%;
    }
    .eh-service-ticket-table {
        min-width: 0;
    }
    .eh-service-ticket-table thead,
    .eh-service-ticket-table colgroup {
        display: none;
    }
    .eh-service-ticket-table tbody {
        display: grid;
        gap: 12px;
    }
    .eh-service-ticket-table tr {
        padding: 14px;
        border: 1px solid var(--eh-border);
        border-radius: 12px;
        background: #fff;
    }
    .eh-service-ticket-table td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 7px 0;
        border: 0;
    }
    .eh-service-ticket-table td::before {
        content: attr(data-label);
        flex: 0 0 112px;
        color: var(--eh-text-muted);
        font-size: 11px;
        font-weight: 900;
        letter-spacing: .04em;
        text-transform: uppercase;
    }
    .eh-service-ticket-table td[data-label="Titel"] {
        display: block;
    }
    .eh-service-ticket-table td[data-label="Titel"]::before {
        display: block;
        margin-bottom: 4px;
    }
    .eh-service-ticket-table td[data-label="Aktion"] .eh-btn {
        width: 100%;
    }
    .eh-service-ticket-hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .eh-service-ticket-tabs {
        display: grid;
        grid-template-columns: 1fr;
    }
    .eh-service-ticket-tab,
    .eh-service-ticket-quick-actions .eh-btn {
        width: 100%;
    }
    .eh-service-ticket-timeline-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .eh-checklist-stepper-btn {
        min-width: 132px;
        max-width: 170px;
    }
    .eh-checklist-step-nav {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .eh-checklist-step-nav .eh-btn {
        width: 100%;
        justify-self: stretch;
    }
    .eh-checklist-step-nav .eh-card-note,
    .eh-checklist-step-nav .eh-btn:last-child {
        justify-self: stretch;
        text-align: center;
    }
    .eh-checklist-summary-row {
        grid-template-columns: 1fr;
        gap: 3px;
    }
    .eh-checklist-repeater-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .eh-checklist-process-card,
    .eh-checklist-process-title-row {
        grid-template-columns: 1fr;
    }
    .eh-checklist-process-card {
        padding: 14px;
    }
    .eh-checklist-process-progress {
        min-width: 0;
    }
    .eh-checklist-process-actions {
        justify-content: flex-start;
        max-width: none;
    }
    .eh-checklist-process-actions .eh-btn {
        flex: 1 1 150px;
    }
    .eh-checklist-pdf-note {
        text-align: left;
    }
    .eh-checklist-meta-chip {
        width: 100%;
        max-width: none;
    }
    .eh-checklist-field-grid {
        grid-template-columns: 1fr;
    }
    .eh-checklist-file-card {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .eh-checklist-file-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* Dashboard v0.8.6 workspace */
.eh-dashboard-workspace {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: 10px;
}

.eh-dashboard-workspace > .eh-widget {
    grid-column: span 4;
}

.eh-dashboard-workspace .eh-widget-key--kpi_strip,
.eh-dashboard-workspace .eh-widget-key--system_kpi_strip {
    grid-column: 1 / -1;
    order: 1;
}

.eh-dashboard-workspace .eh-widget-key--week_overview {
    grid-column: span 8;
    order: 2;
}

.eh-dashboard-workspace .eh-widget-key--week_overview.eh-widget--size-small {
    grid-column: span 4;
}

.eh-dashboard-workspace .eh-widget-key--open_work,
.eh-dashboard-workspace .eh-widget-key--open_tickets,
.eh-dashboard-workspace .eh-widget-key--open_orders,
.eh-dashboard-workspace .eh-widget-key--open_questions,
.eh-dashboard-workspace .eh-widget-key--open_tasks,
.eh-dashboard-workspace .eh-widget-key--system_problems {
    grid-column: span 4;
    order: 4;
}

.eh-dashboard-workspace .eh-widget-key--documentation,
.eh-dashboard-workspace .eh-widget-key--test_runs {
    grid-column: span 4;
    order: 3;
}

.eh-widget--kpi_strip {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.eh-kpi-strip-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(215, 222, 234, 0.95);
    border-radius: 8px;
    background: #fff;
}

.eh-widget-key--system_kpi_strip .eh-kpi-strip-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.eh-kpi-strip-item {
    min-width: 0;
    min-height: 50px;
    display: grid;
    grid-template-columns: 24px auto minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    padding: 9px 10px;
    border-right: 1px solid rgba(226, 232, 240, 0.9);
    color: inherit;
    text-decoration: none;
}

.eh-kpi-strip-item:last-child {
    border-right: 0;
}

a.eh-kpi-strip-item:hover {
    background: var(--eh-primary-soft);
}

.eh-kpi-strip-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--eh-primary-600);
}

.eh-kpi-strip-icon svg {
    width: 17px;
    height: 17px;
}

.eh-kpi-strip-icon--ok {
    color: #15803d;
}

.eh-kpi-strip-icon--warning {
    color: #b45309;
}

.eh-kpi-strip-icon--danger {
    color: #b91c1c;
}

.eh-kpi-strip-item strong {
    color: var(--eh-text-strong);
    font-size: 22px;
    font-weight: 950;
    line-height: 1;
}

.eh-kpi-strip-item span:not(.eh-kpi-strip-icon) {
    min-width: 0;
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.eh-widget--work_queue {
    gap: 8px;
}

.eh-widget--size-small .eh-week-empty-overview {
    min-height: auto;
}

.eh-open-work-list {
    display: grid;
}

.eh-open-work-item {
    min-width: 0;
    min-height: 48px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    color: inherit;
    text-decoration: none;
}

.eh-open-work-item:first-child {
    border-top: 0;
}

a.eh-open-work-item:hover {
    color: var(--eh-primary-600);
}

.eh-open-work-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
}

.eh-open-work-icon svg {
    width: 16px;
    height: 16px;
}

.eh-open-work-icon--warning {
    background: var(--eh-warning-soft);
    color: #b45309;
}

.eh-open-work-icon--danger {
    background: var(--eh-danger-soft);
    color: #b91c1c;
}

.eh-open-work-icon--ok {
    background: var(--eh-success-soft);
    color: #15803d;
}

.eh-open-work-main {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.eh-open-work-main small {
    color: var(--eh-muted);
    font-size: 10.5px;
    font-weight: 850;
    line-height: 1.1;
    text-transform: uppercase;
}

.eh-open-work-main strong,
.eh-open-work-main span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.eh-open-work-main strong {
    color: var(--eh-text-strong);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.22;
}

.eh-open-work-main span {
    color: var(--eh-muted);
    font-size: 11.5px;
    line-height: 1.25;
}

.eh-open-work-tags {
    display: grid;
    justify-items: end;
    gap: 2px;
    min-width: 74px;
}

.eh-dashboard-workspace .eh-widget-key--documentation {
    gap: 8px;
}

.eh-dashboard-workspace .eh-widget-key--documentation .eh-doc-row {
    min-height: 36px;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 7px;
}

.eh-dashboard-workspace .eh-widget-key--documentation .eh-inline-status {
    display: none;
}

@media (max-width: 1180px) {
    .eh-dashboard-workspace .eh-widget-key--week_overview,
    .eh-dashboard-workspace .eh-widget-key--open_work,
    .eh-dashboard-workspace .eh-widget-key--open_tickets,
    .eh-dashboard-workspace .eh-widget-key--open_orders,
    .eh-dashboard-workspace .eh-widget-key--open_questions,
    .eh-dashboard-workspace .eh-widget-key--open_tasks,
    .eh-dashboard-workspace .eh-widget-key--system_problems,
    .eh-dashboard-workspace .eh-widget-key--documentation,
    .eh-dashboard-workspace .eh-widget-key--test_runs {
        grid-column: 1 / -1;
    }

    .eh-widget-key--system_kpi_strip .eh-kpi-strip-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .eh-dashboard-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .eh-dashboard-workspace {
        grid-template-columns: minmax(0, 1fr);
    }

    .eh-dashboard-workspace > .eh-widget,
    .eh-dashboard-workspace .eh-widget-key--kpi_strip,
    .eh-dashboard-workspace .eh-widget-key--system_kpi_strip,
    .eh-dashboard-workspace .eh-widget-key--week_overview,
    .eh-dashboard-workspace .eh-widget-key--open_work,
    .eh-dashboard-workspace .eh-widget-key--open_tickets,
    .eh-dashboard-workspace .eh-widget-key--open_orders,
    .eh-dashboard-workspace .eh-widget-key--open_questions,
    .eh-dashboard-workspace .eh-widget-key--open_tasks,
    .eh-dashboard-workspace .eh-widget-key--documentation,
    .eh-dashboard-workspace .eh-widget-key--system_problems,
    .eh-dashboard-workspace .eh-widget-key--test_runs {
        grid-column: 1 / -1;
    }

    .eh-dashboard-workspace .eh-widget-key--kpi_strip,
    .eh-dashboard-workspace .eh-widget-key--system_kpi_strip {
        order: 1;
    }

    .eh-dashboard-workspace .eh-widget-key--week_overview {
        order: 2;
    }

    .eh-dashboard-workspace .eh-widget-key--open_work,
    .eh-dashboard-workspace .eh-widget-key--open_tickets,
    .eh-dashboard-workspace .eh-widget-key--open_orders,
    .eh-dashboard-workspace .eh-widget-key--open_questions,
    .eh-dashboard-workspace .eh-widget-key--open_tasks,
    .eh-dashboard-workspace .eh-widget-key--system_problems {
        order: 4;
    }

    .eh-dashboard-workspace .eh-widget-key--documentation,
    .eh-dashboard-workspace .eh-widget-key--test_runs {
        order: 3;
    }

    .eh-kpi-strip-grid,
    .eh-widget-key--system_kpi_strip .eh-kpi-strip-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eh-kpi-strip-item {
        grid-template-columns: 22px auto minmax(0, 1fr);
        min-height: 46px;
        padding: 8px;
    }

    .eh-open-work-item {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .eh-open-work-tags {
        grid-column: 2;
        justify-items: start;
        display: flex;
        flex-wrap: wrap;
        min-width: 0;
    }

    .eh-dashboard-workspace .eh-widget-key--documentation .eh-doc-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .eh-dashboard-workspace .eh-widget-key--documentation .eh-doc-name {
        grid-column: 1 / -1;
    }
}

@media (max-width: 430px) {
    .eh-kpi-strip-grid,
    .eh-widget-key--system_kpi_strip .eh-kpi-strip-grid,
    .eh-week-strip {
        grid-template-columns: minmax(0, 1fr);
    }

    .eh-kpi-strip-item {
        border-right: 0;
        border-top: 1px solid rgba(226, 232, 240, 0.9);
    }

    .eh-kpi-strip-item:first-child {
        border-top: 0;
    }
}

/* Shared task UI foundation */
.eh-task-ui-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}

.eh-task-ui-header > * {
    min-width: 0;
}

.eh-task-ui-tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
    padding: 2px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

.eh-task-ui-tab {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--eh-border);
    border-radius: 7px;
    background: #fff;
    color: var(--eh-muted);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.eh-task-ui-tab:hover {
    border-color: var(--eh-border-strong);
    background: #f8fafc;
    color: var(--eh-text-strong);
}

.eh-task-ui-tab:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.2);
    outline-offset: 2px;
}

.eh-task-ui-tab.is-active,
.eh-task-ui-tab[aria-selected="true"] {
    border-color: rgba(37, 99, 235, 0.34);
    background: var(--eh-primary-soft);
    color: var(--eh-primary-600);
}

.eh-task-ui-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: end;
    gap: 12px;
    min-width: 0;
}

.eh-task-ui-search,
.eh-task-ui-filter-disclosure,
.eh-task-ui-filters {
    min-width: 0;
}

.eh-task-ui-filter-disclosure {
    margin: 0;
}

.eh-task-ui-filter-disclosure > summary {
    display: none;
}

.eh-task-ui-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: flex-end;
    gap: 10px;
}

.eh-task-ui-filter {
    display: grid;
    gap: 5px;
    min-width: 144px;
}

.eh-task-ui-filter > .eh-label {
    margin: 0;
}

.eh-task-ui-list {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--eh-border);
    border-radius: 8px;
    background: #fff;
}

.eh-task-ui-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    min-width: 0;
    min-height: 68px;
    background: #fff;
    transition: background-color 140ms ease, opacity 140ms ease;
}

.eh-task-ui-row + .eh-task-ui-row {
    border-top: 1px solid var(--eh-border);
}

.eh-task-ui-row:hover,
.eh-task-ui-row:focus-within {
    background: #f8fafc;
}

.eh-task-ui-row.is-busy {
    opacity: 0.58;
    pointer-events: none;
}

.eh-task-ui-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
}

.eh-task-ui-check > button,
.eh-task-ui-check > label,
.eh-task-ui-check > a {
    min-width: 44px;
    min-height: 44px;
}

.eh-task-ui-main {
    display: grid;
    gap: 5px;
    min-width: 0;
    min-height: 44px;
    padding: 10px 8px 10px 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none;
}

button.eh-task-ui-main,
a.eh-task-ui-main {
    width: 100%;
    cursor: pointer;
}

.eh-task-ui-main:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.18);
    outline-offset: -3px;
}

.eh-task-ui-title {
    min-width: 0;
    margin: 0;
    color: var(--eh-text-strong);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.eh-task-ui-description {
    display: -webkit-box;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--eh-text);
    font-size: 12px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.eh-task-ui-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    min-width: 0;
    color: var(--eh-muted);
    font-size: 11px;
    font-weight: 700;
}

.eh-task-ui-meta > * {
    min-width: 0;
    overflow-wrap: anywhere;
}

.eh-task-ui-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 8px 0 2px;
}

.eh-task-ui-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--eh-muted);
    text-decoration: none;
    cursor: pointer;
}

.eh-task-ui-action:hover,
.eh-task-ui-action:focus-visible {
    border-color: var(--eh-border);
    background: #fff;
    color: var(--eh-primary-600);
    outline: none;
}

.eh-task-ui-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding-top: 14px;
}

.eh-task-ui-pager-status {
    min-width: 0;
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.eh-task-ui-pager .eh-btn {
    min-height: 44px;
}

.eh-task-ui-empty,
.eh-task-ui-loading,
.eh-task-ui-error {
    display: grid;
    place-items: center;
    min-height: 112px;
    padding: 20px;
    color: var(--eh-muted);
    background: #fbfcfe;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}

.eh-task-ui-error {
    color: var(--eh-danger);
    background: #fff7f7;
}

.eh-task-editor-dialog {
    width: min(660px, calc(100vw - 32px));
    max-width: 660px;
    max-height: min(840px, calc(100vh - 32px));
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--eh-border-strong);
    border-radius: 8px;
    background: var(--eh-surface);
    color: var(--eh-text);
    box-shadow: var(--eh-shadow);
    z-index: var(--eh-z-modal);
}

.eh-task-editor-dialog::backdrop {
    background: rgba(15, 23, 42, 0.48);
}

.eh-task-editor-form,
.eh-task-editor-shell {
    min-width: 0;
    max-height: min(840px, calc(100vh - 32px));
}

.eh-task-editor-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.eh-task-editor-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--eh-border);
}

.eh-task-editor-heading {
    min-width: 0;
}

.eh-task-editor-title,
.eh-task-editor-description {
    margin: 0;
    overflow-wrap: anywhere;
}

.eh-task-editor-title {
    color: var(--eh-text-strong);
    font-size: 19px;
    line-height: 1.3;
}

.eh-task-editor-description {
    margin-top: 4px;
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.eh-task-editor-close {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--eh-muted);
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.eh-task-editor-close:hover,
.eh-task-editor-close:focus-visible {
    border-color: var(--eh-border);
    background: #f8fafc;
    color: var(--eh-text-strong);
    outline: none;
}

.eh-task-editor-body {
    min-width: 0;
    padding: 18px 20px;
    overflow: auto;
    overscroll-behavior: contain;
}

.eh-task-editor-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    min-width: 0;
    max-width: 100%;
}

.eh-task-editor-fields--two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eh-task-editor-fields--two-column > .eh-field-wide {
    grid-column: 1 / -1;
}

.eh-task-editor-fields > .eh-field,
.eh-task-editor-fields > fieldset {
    min-width: 0;
    max-width: 100%;
    margin: 0;
}

.eh-task-editor-fields > fieldset {
    padding: 0;
    border: 0;
}

.eh-task-editor-fields .eh-label,
.eh-task-editor-fields .eh-field > label,
.eh-task-editor-fields > fieldset > legend {
    letter-spacing: 0;
}

.eh-task-editor-fields > fieldset > legend {
    width: 100%;
    margin-bottom: 7px;
    color: var(--eh-text);
    font-size: var(--eh-label-font-size);
    font-weight: 800;
    line-height: 1.35;
}

.eh-task-editor-fields .eh-input,
.eh-task-editor-fields .eh-select,
.eh-task-editor-fields .eh-textarea {
    width: 100%;
}

.eh-task-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    padding: 14px 20px;
    border-top: 1px solid var(--eh-border);
    background: #fbfcfe;
}

.eh-task-editor-status {
    min-width: 0;
    color: var(--eh-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.eh-task-editor-status:empty {
    display: none;
}

.eh-task-editor-status[data-tone="danger"] {
    color: var(--eh-danger);
}

.eh-task-editor-status[data-tone="success"] {
    color: var(--eh-success);
}

.eh-task-editor-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.eh-task-editor-actions .eh-btn {
    min-height: 44px;
}

.eh-task-editor-dialog.is-busy .eh-task-editor-body {
    opacity: 0.68;
}

@media (max-width: 768px) {
    .eh-task-ui-header,
    .eh-task-ui-pager {
        align-items: stretch;
        flex-direction: column;
    }

    .eh-task-ui-toolbar {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

    .eh-task-ui-tabs {
        margin-right: -4px;
        margin-left: -4px;
        padding: 3px 4px 7px;
    }

    .eh-task-ui-filter-disclosure > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 44px;
        padding: 0 12px;
        border: 1px solid var(--eh-border);
        border-radius: 7px;
        background: #fff;
        color: var(--eh-text-strong);
        font-size: 13px;
        font-weight: 800;
        cursor: pointer;
    }

    .eh-task-ui-filter-disclosure:not([open]) .eh-task-ui-filters {
        display: none;
    }

    .eh-task-ui-filter-disclosure[open] .eh-task-ui-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 10px;
    }

    .eh-task-ui-filter {
        min-width: 0;
    }

    .eh-task-ui-row {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        align-items: start;
        min-height: 76px;
    }

    .eh-task-ui-check {
        width: 44px;
        margin-top: 5px;
    }

    .eh-task-ui-main {
        padding: 12px 4px 12px 0;
    }

    .eh-task-ui-actions {
        flex-direction: column;
        padding: 5px 0 0;
    }

    .eh-task-ui-pager .eh-btn {
        width: 100%;
    }

    .eh-task-editor-dialog {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
    }

    .eh-task-editor-fields--two-column {
        grid-template-columns: minmax(0, 1fr);
    }

    .eh-task-editor-fields--two-column > .eh-field-wide {
        grid-column: auto;
    }

    .eh-task-editor-form,
    .eh-task-editor-shell {
        max-height: calc(100vh - 16px);
    }

    .eh-task-editor-header {
        gap: 10px;
        padding: 14px 14px 12px;
    }

    .eh-task-editor-title {
        font-size: 17px;
    }

    .eh-task-editor-body {
        padding: 14px;
    }

    .eh-task-editor-footer {
        align-items: stretch;
        flex-direction: column;
        padding: 12px 14px 14px;
    }

    .eh-task-editor-actions {
        width: 100%;
    }

    .eh-task-editor-actions .eh-btn {
        flex: 1 1 0;
        min-width: 0;
    }
}

@media (max-width: 430px) {
    .eh-task-ui-filter-disclosure[open] .eh-task-ui-filters {
        grid-template-columns: minmax(0, 1fr);
    }

    .eh-task-editor-actions {
        flex-direction: column-reverse;
    }

    .eh-task-editor-actions .eh-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eh-task-ui-tabs {
        scroll-behavior: auto;
    }

    .eh-task-ui-tab,
    .eh-task-ui-row,
    .eh-task-editor-body {
        transition: none;
    }
}

/* Employee tasks on the shared task UI foundation */
.eh-employee-task-workspace,
.eh-employee-task-workspace .eh-card-body {
    min-width: 0;
}

.eh-employee-task-workspace .eh-card-body {
    display: grid;
    gap: 14px;
}

.eh-employee-task-toolbar {
    padding-top: 2px;
}

.eh-employee-task-filter-reset {
    min-height: 44px;
    white-space: nowrap;
}

.eh-employee-tasks-page .eh-page-header .eh-btn {
    min-height: 44px;
}

.eh-employee-task-ui-title-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.eh-employee-task-ui-title-line .eh-task-ui-title {
    flex: 0 1 auto;
}

.eh-employee-task-ui-assignees {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    min-width: 0;
    margin-top: 1px;
}

.eh-employee-task-ui-row.is-done .eh-task-ui-title {
    color: var(--eh-muted);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.eh-employee-task-ui-row.is-done .eh-task-ui-description,
.eh-employee-task-ui-row.is-done .eh-task-ui-meta,
.eh-employee-task-ui-row.is-done .eh-employee-task-ui-assignees {
    opacity: 0.7;
}

.eh-employee-task-editor-content,
.eh-employee-task-editor-fields {
    min-width: 0;
}

.eh-employee-task-editor-content .eh-employee-task-assignee-options {
    max-height: min(300px, 34vh);
}

.eh-employee-tasks-page #employee-tasks-reload .eh-lucide-icon,
.eh-employee-tasks-page #employee-task-create .eh-lucide-icon,
.eh-employee-task-ui-row .eh-task-ui-action .eh-lucide-icon {
    width: 17px;
    height: 17px;
}

@media (max-width: 768px) {
    .eh-employee-task-workspace .eh-card-body {
        gap: 12px;
    }

}

@media (max-width: 430px) {
    .eh-employee-tasks-page .eh-page-header .eh-actions,
    .eh-employee-tasks-page .eh-page-header .eh-btn {
        width: 100%;
    }

    .eh-employee-task-ui-title-line {
        gap: 5px;
    }

    .eh-employee-task-ui-row .eh-task-ui-meta {
        display: grid;
        gap: 3px;
    }
}

/* My tasks on the shared task UI foundation */
.eh-my-task-workspace,
.eh-my-task-workspace .eh-card-body {
    min-width: 0;
}

.eh-my-task-workspace .eh-card-body {
    display: grid;
    gap: 14px;
}

.eh-my-tasks-page .eh-page-header .eh-btn {
    min-height: 44px;
}

.eh-my-task-workspace .eh-task-ui-list.is-grouped {
    display: grid;
    gap: 18px;
    overflow: visible;
    border: 0;
    background: transparent;
}

.eh-my-task-workspace .eh-task-ui-list.is-grouped .eh-my-task-group-list {
    overflow: hidden;
}

.eh-my-task-ui-title-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.eh-my-task-ui-title-line .eh-task-ui-title {
    flex: 0 1 auto;
}

.eh-my-task-ui-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.eh-my-task-ui-row.has-no-actions {
    grid-template-columns: 48px minmax(0, 1fr);
}

.eh-my-task-ui-row.is-done .eh-task-ui-title {
    color: var(--eh-muted);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.eh-my-task-ui-row.is-done .eh-task-ui-description,
.eh-my-task-ui-row.is-done .eh-task-ui-meta,
.eh-my-task-ui-row.is-done .eh-my-task-priority {
    opacity: 0.7;
}

.eh-my-task-editor-content,
.eh-my-task-editor-fields {
    min-width: 0;
}

.eh-my-task-editor-content .eh-task-reminder-panel {
    margin: 0;
}

.eh-my-tasks-page #my-tasks-reload .eh-lucide-icon,
.eh-my-tasks-page #my-task-create .eh-lucide-icon,
.eh-my-task-ui-row .eh-task-ui-action .eh-lucide-icon {
    width: 17px;
    height: 17px;
}

@media (max-width: 768px) {
    .eh-my-task-workspace .eh-card-body {
        gap: 12px;
    }

    .eh-my-task-ui-row.has-no-actions {
        grid-template-columns: 44px minmax(0, 1fr);
    }

}

@media (max-width: 430px) {
    .eh-my-tasks-page .eh-page-header .eh-actions,
    .eh-my-tasks-page .eh-page-header .eh-btn {
        width: 100%;
    }

    .eh-my-task-ui-title-line {
        gap: 5px;
    }

    .eh-my-task-ui-row .eh-task-ui-meta {
        display: grid;
        gap: 3px;
    }
}

/* Project To-dos on the shared task UI foundation */
#project-tasks-card,
.eh-project-task-workspace,
.eh-project-task-editor-content,
.eh-project-task-editor-fields {
    min-width: 0;
}

.eh-project-task-workspace {
    display: grid;
    gap: 14px;
}

#project-tasks-card .eh-card-header > .eh-btn,
.eh-project-task-filter-reset {
    min-height: 44px;
}

.eh-project-task-filter-reset {
    white-space: nowrap;
}

.eh-project-task-workspace .eh-task-status:empty {
    display: none;
}

.eh-project-task-ui-title-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.eh-project-task-ui-title-line .eh-task-ui-title {
    flex: 0 1 auto;
}

.eh-project-task-ui-row:not(.has-actions) {
    grid-template-columns: 48px minmax(0, 1fr);
}

.eh-project-task-ui-row.is-done .eh-task-ui-title {
    color: var(--eh-muted);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.eh-project-task-ui-row.is-done .eh-task-ui-description,
.eh-project-task-ui-row.is-done .eh-task-ui-meta,
.eh-project-task-ui-row.is-done .eh-badge {
    opacity: 0.7;
}

.eh-project-task-reminder-summary {
    color: var(--eh-primary-600);
}

.eh-project-task-editor-content .eh-task-reminder-panel {
    min-width: 0;
    margin: 0;
}

.eh-project-task-editor-content .eh-task-reminder-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#project-task-new-btn .eh-lucide-icon,
.eh-project-task-ui-row .eh-task-ui-action .eh-lucide-icon {
    width: 17px;
    height: 17px;
}

@media (max-width: 768px) {
    .eh-project-task-workspace {
        gap: 12px;
    }

    .eh-project-task-ui-row:not(.has-actions) {
        grid-template-columns: 44px minmax(0, 1fr);
    }
}

@media (max-width: 430px) {
    #project-tasks-card .eh-card-header.eh-task-ui-header,
    #project-tasks-card .eh-card-header.eh-task-ui-header > .eh-btn {
        width: 100%;
    }

    .eh-project-task-ui-title-line {
        gap: 5px;
    }

    .eh-project-task-ui-row .eh-task-ui-meta {
        display: grid;
        gap: 3px;
    }
}

/* Global project tasks overview */
.eh-project-tasks-overview-workspace,
.eh-project-tasks-overview-workspace .eh-card-body,
.eh-project-task-overview-editor-content,
.eh-project-task-overview-editor-fields {
    min-width: 0;
}

.eh-project-tasks-overview-workspace .eh-card-body {
    display: grid;
    gap: 14px;
}

.eh-project-tasks-overview-page .eh-page-header .eh-btn,
.eh-project-task-overview-filter-reset {
    min-height: 44px;
}

.eh-project-task-overview-filter-reset {
    white-space: nowrap;
}

.eh-project-task-overview-project-filter {
    min-width: min(280px, 34vw);
}

.eh-project-tasks-overview-workspace .eh-task-status:empty {
    display: none;
}

.eh-project-tasks-overview-workspace .eh-task-ui-list.is-grouped {
    display: grid;
    gap: 16px;
    overflow: visible;
    border: 0;
    background: transparent;
}

.eh-project-task-overview-group {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.eh-project-task-overview-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 0 3px;
}

.eh-project-task-overview-group-header > div {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.eh-project-task-overview-group-header h2 {
    margin: 0;
    color: var(--eh-text-strong);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
}

.eh-project-task-overview-group-marker {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--eh-muted);
}

.eh-project-task-overview-group--overdue .eh-project-task-overview-group-marker {
    background: var(--eh-danger);
}

.eh-project-task-overview-group--today .eh-project-task-overview-group-marker {
    background: var(--eh-warning);
}

.eh-project-task-overview-group--tomorrow .eh-project-task-overview-group-marker {
    background: var(--eh-primary-600);
}

.eh-project-task-overview-group--this_week .eh-project-task-overview-group-marker {
    background: var(--eh-success);
}

.eh-project-task-overview-group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid var(--eh-border);
    border-radius: 7px;
    background: #fff;
    color: var(--eh-muted);
    font-size: 11px;
    font-weight: 900;
}

.eh-project-task-overview-group-list {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--eh-border);
    border-radius: 8px;
    background: #fff;
}

.eh-project-task-overview-title-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.eh-project-task-overview-title-line .eh-task-ui-title {
    flex: 0 1 auto;
}

.eh-project-task-overview-project {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    min-width: 0;
    color: var(--eh-text);
    font-size: 12px;
    line-height: 1.35;
}

.eh-project-task-overview-project-number {
    color: var(--eh-primary-600);
    font-weight: 900;
}

.eh-project-task-overview-project-title {
    min-width: 0;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.eh-project-task-overview-reminder {
    color: var(--eh-primary-600);
}

.eh-project-task-overview-row:not(.has-actions) {
    grid-template-columns: 48px minmax(0, 1fr);
}

.eh-project-task-overview-row.is-done .eh-task-ui-title {
    color: var(--eh-muted);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.eh-project-task-overview-row.is-done .eh-project-task-overview-project,
.eh-project-task-overview-row.is-done .eh-task-ui-meta,
.eh-project-task-overview-row.is-done .eh-badge {
    opacity: 0.7;
}

.eh-project-task-overview-editor-project {
    display: grid;
    gap: 3px;
    min-width: 0;
    margin-bottom: 16px;
    padding: 11px 12px;
    border: 1px solid var(--eh-border);
    border-radius: 7px;
    background: #f8fafc;
}

.eh-project-task-overview-editor-project span {
    color: var(--eh-muted);
    font-size: 11px;
    font-weight: 800;
}

.eh-project-task-overview-editor-project strong {
    min-width: 0;
    color: var(--eh-text-strong);
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.eh-project-task-overview-editor-content .eh-task-reminder-panel {
    min-width: 0;
    margin: 0;
}

.eh-project-task-overview-editor-content .eh-task-reminder-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eh-project-tasks-overview-page #project-tasks-overview-reload .eh-lucide-icon,
.eh-project-tasks-overview-page #project-task-overview-create .eh-lucide-icon,
.eh-project-task-overview-row .eh-task-ui-action .eh-lucide-icon {
    width: 17px;
    height: 17px;
}

@media (max-width: 1100px) {
    .eh-project-task-overview-project-filter {
        min-width: 220px;
    }
}

@media (max-width: 768px) {
    .eh-project-tasks-overview-workspace .eh-card-body {
        gap: 12px;
    }

    .eh-project-task-overview-project-filter {
        min-width: 0;
    }

    .eh-project-task-overview-row:not(.has-actions) {
        grid-template-columns: 44px minmax(0, 1fr);
    }
}

@media (max-width: 430px) {
    .eh-project-tasks-overview-page .eh-page-header .eh-actions,
    .eh-project-tasks-overview-page .eh-page-header .eh-btn {
        width: 100%;
    }

    .eh-project-task-overview-title-line {
        gap: 5px;
    }

    .eh-project-task-overview-project,
    .eh-project-task-overview-row .eh-task-ui-meta {
        display: grid;
        gap: 3px;
    }
}
