/* Login_basic: home menu and full-text search layout.
 * `.help-production-home` exposes the same component rules to trusted Help replicas. */
body:has(#main-menu.home-menu-page) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body:has(#main-menu.home-menu-page) > :is(#main-menu.home-menu-page, .help-production-home) {
    flex: 1 1 auto;
}

body:has(#main-menu.home-menu-page) > .site-footer {
    flex: 0 0 auto;
}

:is(#main-menu.home-menu-page, .help-production-home) {
    --home-viewport-fit: 0;
    --home-surface: #f7fafd;
    --home-card-gradient: linear-gradient(180deg, #ffffff 0%, #f5f9fc 100%);
    --home-card-shadow: 0 1px 4px rgba(26, 58, 82, 0.14);
    --home-card-shadow-hover: 0 3px 9px rgba(24, 55, 79, 0.2);
    --home-card-border: #c8d9e6;
    --home-card-border-hover: #aac4d8;
    --home-text-strong: #24445d;
    --home-text-soft: #4a667c;
    --home-action-bg: linear-gradient(180deg, #eef7fd 0%, #d5e8f4 100%);
    --home-action-text: #2d5874;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 8px 0 6px;
    background: linear-gradient(180deg, var(--home-surface) 0%, #ffffff 80%);
    color: var(--home-text-strong);
}

@media (min-width: 1780px) and (min-height: 820px) {
    :is(#main-menu.home-menu-page, .help-production-home) {
        --home-viewport-fit: 1;
    }
}

:is(#main-menu.home-menu-page, .help-production-home)::before {
    content: "";
    position: absolute;
    top: calc(50px - var(--app-navbar-height, 70px));
    right: 0;
    left: 0;
    height: calc(var(--app-navbar-height, 70px) - 50px);
    background: var(--home-surface);
    pointer-events: none;
}

:is(#main-menu, .help-production-home) .home-menu-container {
    box-sizing: border-box;
    width: var(--app-viewport-width, 100%);
    max-width: none;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-left: calc((100% - var(--app-viewport-width, 100%)) / 2);
    margin-right: calc((100% - var(--app-viewport-width, 100%)) / 2);
    padding-left: var(--filter-wide-gutter, 3vw);
    padding-right: var(--filter-wide-gutter, 3vw);
}

:is(#main-menu, .help-production-home) .home-start-header {
    box-sizing: border-box;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto 10px;
    padding: 0 clamp(10px, 2vw, 24px);
}

:is(#main-menu, .help-production-home) .home-greeting-panel {
    position: relative;
    min-width: 0;
    padding: 15px 22px 15px 24px;
    overflow: hidden;
    border: 1px solid var(--home-card-border);
    border-radius: 8px;
    background: var(--home-card-gradient);
    box-shadow: var(--home-card-shadow);
}

:is(#main-menu, .help-production-home) .home-greeting-panel::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--state-active-top, #d7e8f9) 0%, var(--progress-actual-base, #52B2CF) 100%);
}

:is(#main-menu, .help-production-home) .home-greeting-copy {
    display: grid;
    align-content: start;
    gap: 5px;
    min-width: 0;
}

:is(#main-menu, .help-production-home) .home-greeting-copy h1 {
    margin: 0;
    color: #1f3e56;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.12;
}

:is(#main-menu, .help-production-home) .home-greeting-copy p {
    margin: 0;
    color: var(--home-text-soft);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

:is(#main-menu, .help-production-home) .home-overview-grid {
    --home-deadline-list-height: clamp(280px, 46vh, 620px);
    --home-today-panel-height: clamp(228px, calc(23vh + 27px), 337px);
    --home-plan-day-width: calc((var(--app-viewport-width, 100vw) - (2 * var(--filter-wide-gutter, 3vw)) - 24px) / 5);
    --home-plan-column-buffer: 8px;
    --home-plan-carousel-edge-padding: 5px;
    --home-plan-card-target-width: calc(var(--home-plan-day-width) + 30px + (2 * var(--home-plan-column-buffer)) + (2 * var(--home-plan-carousel-edge-padding)));
    --home-plan-card-width: min(100%, var(--home-plan-card-target-width));
    --home-month-plan-card-target-width: 320px;
    --home-overview-grid-gap: 10px;
    --home-day-renderer-grid-width: calc((var(--home-plan-card-target-width) * 2) + var(--home-month-plan-card-target-width) + (2 * var(--home-overview-grid-gap)));
    display: grid;
    grid-template-columns: minmax(0, var(--home-day-renderer-grid-width)) minmax(360px, 1fr);
    grid-template-rows: var(--home-today-panel-height) minmax(0, 1fr);
    gap: var(--home-overview-grid-gap);
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
    margin: 0;
    overflow: hidden;
}

:is(#main-menu, .help-production-home) .home-overview-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: clamp(430px, calc(100vh - 180px), 820px);
    display: flex;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(200, 217, 230, 0.68);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(247, 250, 253, 0.82) 0%, rgba(255, 255, 255, 0.96) 100%);
}

:is(#main-menu, .help-production-home) .home-overview-stage-content {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    opacity: 1;
    visibility: visible;
    transition: opacity 180ms ease;
}

:is(#main-menu, .help-production-home) .home-overview-stage-content > .home-overview-grid {
    flex: 1 1 auto;
    width: 100%;
}

:is(#main-menu, .help-production-home) .home-overview-stage.is-loading .home-overview-stage-content,
:is(#main-menu, .help-production-home) .home-overview-stage.is-rendering .home-overview-stage-content {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

:is(#main-menu, .help-production-home) .home-overview-stage.is-loading,
:is(#main-menu, .help-production-home) .home-overview-stage.is-rendering {
	border-color: transparent;
	background: transparent;
	box-shadow: none;
}

:is(#main-menu, .help-production-home) .home-overview-stage.is-revealing,
:is(#main-menu, .help-production-home) .home-overview-stage.is-ready {
    min-height: 0;
    overflow: visible;
    border: 0;
    background: transparent;
}

:is(#main-menu, .help-production-home) .home-overview-preload-host {
    z-index: 35;
}

:is(#main-menu, .help-production-home) .home-panel {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--home-card-border);
    border-radius: 8px;
    background: var(--home-card-gradient);
    box-shadow: var(--home-card-shadow);
}

:is(#main-menu, .help-production-home) .home-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

:is(#main-menu, .help-production-home) .home-panel-header > div {
    min-width: 0;
}

:is(#main-menu, .help-production-home) .home-panel-header h2 {
    margin: 0;
    color: #203f57;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.15;
}

:is(#main-menu, .help-production-home) .home-panel-header p {
    margin: 2px 0 0;
    color: var(--home-text-soft);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

:is(#main-menu, .help-production-home) .home-panel-link.stunden-helfer-carousel-nav {
    box-sizing: border-box;
    gap: 0;
    flex: 0 0 auto;
    width: auto;
    min-width: 36px;
    max-width: 36px;
    height: 30px;
    margin-left: 0;
    padding: 0 10px;
    overflow: hidden;
    border: 1px solid #afc5d5;
    border-radius: 999px;
    background: linear-gradient(180deg, #f9fcfe 0%, #e8f2f8 100%);
    color: #2f5872;
    box-shadow: var(--ui-press-neutral-shadow);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition:
        max-width 220ms cubic-bezier(0.22, 0.78, 0.2, 1),
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease,
        filter 0.16s ease,
        background 0.16s ease,
        color 0.16s ease;
}

:is(#main-menu, .help-production-home) .home-panel-header:has(.home-panel-link) > div {
    flex: 1 1 auto;
}

:is(#main-menu, .help-production-home) .home-panel-header:has(.home-panel-link) h2,
:is(#main-menu, .help-production-home) .home-panel-header:has(.home-panel-link) p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:is(#main-menu, .help-production-home) .home-panel-link.stunden-helfer-carousel-nav:hover,
:is(#main-menu, .help-production-home) .home-panel-link.stunden-helfer-carousel-nav:focus,
:is(#main-menu, .help-production-home) .home-panel-link.stunden-helfer-carousel-nav:focus-visible {
    max-width: 170px;
}

:is(#main-menu, .help-production-home) .home-panel-link.stunden-helfer-carousel-nav:hover,
:is(#main-menu, .help-production-home) .home-panel-link.stunden-helfer-carousel-nav:focus,
:is(#main-menu, .help-production-home) .home-panel-link.stunden-helfer-carousel-nav:active {
    color: #2f5872;
    text-decoration: none;
}

:is(#main-menu, .help-production-home) .home-panel-link.stunden-helfer-carousel-nav:focus,
:is(#main-menu, .help-production-home) .home-panel-link.stunden-helfer-carousel-nav:focus-visible {
    outline: none;
    box-shadow: var(--ui-press-focus-ring), var(--ui-press-neutral-shadow);
}

:is(#main-menu, .help-production-home) .home-panel-link.stunden-helfer-carousel-nav .home-panel-link-icon {
    flex: 0 0 auto;
    top: 0;
    font-size: 14px;
    line-height: 1;
}

:is(#main-menu, .help-production-home) .home-panel-link.stunden-helfer-carousel-nav .home-panel-link-text {
    display: inline-block;
    max-width: 0;
    margin-left: 0;
    overflow: hidden;
    opacity: 0;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-overflow: clip;
    white-space: nowrap;
    transition:
        max-width 220ms cubic-bezier(0.22, 0.78, 0.2, 1),
        margin-left 220ms cubic-bezier(0.22, 0.78, 0.2, 1),
        opacity 160ms ease;
}

:is(#main-menu, .help-production-home) .home-panel-link.stunden-helfer-carousel-nav:hover .home-panel-link-text,
:is(#main-menu, .help-production-home) .home-panel-link.stunden-helfer-carousel-nav:focus .home-panel-link-text,
:is(#main-menu, .help-production-home) .home-panel-link.stunden-helfer-carousel-nav:focus-visible .home-panel-link-text {
    max-width: 140px;
    margin-left: 6px;
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    :is(#main-menu, .help-production-home) .home-panel-link.stunden-helfer-carousel-nav,
    :is(#main-menu, .help-production-home) .home-panel-link.stunden-helfer-carousel-nav .home-panel-link-text {
        transition: none;
    }
}

:is(#main-menu, .help-production-home) .home-panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(122, 168, 198, 0.48);
    border-radius: 7px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(158, 195, 233, 0.32) 100%);
    color: #2d5874;
    box-shadow: var(--ui-badge-shadow, 0 1px 3px rgba(0, 0, 0, 0.18));
}

:is(#main-menu, .help-production-home) .home-panel-icon--deadline {
    border-color: rgba(211, 137, 83, 0.5);
    background: linear-gradient(180deg, #fffdf6 0%, rgba(244, 221, 154, 0.5) 100%);
    color: #806c1d;
}

:is(#main-menu, .help-production-home) .home-panel-icon--plan {
    border-color: rgba(122, 168, 198, 0.5);
    background: linear-gradient(180deg, #ffffff 0%, rgba(158, 195, 233, 0.34) 100%);
    color: #2d5874;
}

:is(#main-menu, .help-production-home) .home-panel-icon--month-plan {
    border-color: rgba(135, 173, 103, 0.42);
    background: linear-gradient(180deg, #ffffff 0%, rgba(var(--annualaccount-color, 198, 223, 178), 0.34) 100%);
    color: #4f7436;
}

:is(#main-menu, .help-production-home) .home-panel-icon .glyphicon {
    top: 0;
    font-size: 14px;
    line-height: 1;
}

:is(#main-menu, .help-production-home) .home-today-panel {
    box-sizing: border-box;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    grid-column: 1;
    grid-row: 1;
    gap: 9px;
    align-content: stretch;
    height: var(--home-today-panel-height);
    overflow: hidden;
}

:is(#main-menu, .help-production-home) .home-today-panel > .home-panel-header {
    min-height: 30px;
}

:is(#main-menu, .help-production-home) .home-today-heading-copy {
    flex: 1 1 auto;
    min-width: 0;
}

:is(#main-menu, .help-production-home) .home-today-heading-copy h2,
:is(#main-menu, .help-production-home) .home-today-heading-copy p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:is(#main-menu, .help-production-home) .home-today-breakdown-toggle {
    display: inline-flex;
    align-items: stretch;
    flex: 0 0 auto;
    gap: 0;
    margin-left: auto;
}

:is(#main-menu, .help-production-home) .home-today-breakdown-toggle > .btn + .btn {
    margin-left: -1px;
}

:is(#main-menu, .help-production-home) .home-today-breakdown-toggle .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    float: none;
    padding: 4px 8px;
    border-color: #9db7c8;
    color: #315b75;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

:is(#main-menu, .help-production-home) .home-today-breakdown-toggle .glyphicon-folder-open {
    margin-right: 5px;
}

:is(#main-menu, .help-production-home) .home-today-breakdown-toggle .btn:hover,
:is(#main-menu, .help-production-home) .home-today-breakdown-toggle .btn:focus-visible {
    border-color: #6e9ab5;
    background: #eef7fb;
    color: #234f6c;
}

:is(#main-menu, .help-production-home) .home-today-breakdown-toggle .btn.active {
    border-color: #285f80;
    background: #2f6f95;
    color: #ffffff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.16);
}

:is(#main-menu, .help-production-home) .home-today-donut-panel {
    display: flex;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

:is(#main-menu, .help-production-home) .home-today-donut-head {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
}

:is(#main-menu, .help-production-home) .home-today-donut {
    aspect-ratio: 1 / 1;
    width: auto;
    height: 100%;
    justify-self: center;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
}

:is(#main-menu, .help-production-home) .home-today-donut .stunden-helfer-donut-track,
:is(#main-menu, .help-production-home) .home-today-donut .stunden-helfer-donut-segment,
:is(#main-menu, .help-production-home) .home-today-donut .stunden-helfer-donut-target-outline-segment {
    transition: opacity 0.18s ease, filter 0.18s ease, stroke-width 0.18s ease;
}

:is(#main-menu, .help-production-home) .home-today-donut .stunden-helfer-donut-target-outline-segment {
    stroke-width: 2.2;
}

:is(#main-menu, .help-production-home) .home-today-donut-segment-group {
    display: none;
}

:is(#main-menu, .help-production-home) .home-today-donut-segment-group.is-active {
    display: inline;
}

:is(#main-menu, .help-production-home) .home-today-donut-breakdown-segment.is-breakdown-highlight {
    opacity: 1 !important;
    filter: brightness(1.08) saturate(1.12) !important;
    stroke-width: 12 !important;
}

:is(#main-menu, .help-production-home) .home-today-donut-breakdown-segment.is-breakdown-muted {
    opacity: 0.18 !important;
    filter: none !important;
}

:is(#main-menu, .help-production-home) .home-today-target-column {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 7px;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

:is(#main-menu, .help-production-home) .home-today-legend {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px 15px;
    align-items: stretch;
    min-width: 0;
    min-height: 0;
    height: 100%;
}

:is(#main-menu, .help-production-home) .home-today-legend-item {
    --home-today-hours-column-width: 46px;
    --home-today-legend-color: #728596;
    --home-today-legend-text: #42586a;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: stretch;
    gap: 7px;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 4px;
    color: var(--home-today-legend-text);
    cursor: default;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--home-today-legend-color) 62%, transparent) transparent;
    transition: opacity 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}

:is(#main-menu, .help-production-home) .home-today-legend-item::-webkit-scrollbar {
    width: 4px;
}

:is(#main-menu, .help-production-home) .home-today-legend-item::-webkit-scrollbar-track {
    background: transparent;
}

:is(#main-menu, .help-production-home) .home-today-legend-item::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: color-mix(in srgb, var(--home-today-legend-color) 54%, transparent);
}

:is(#main-menu, .help-production-home) .home-today-legend-item::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--home-today-legend-color) 74%, transparent);
}

:is(#main-menu, .help-production-home) .home-today-legend-item--target {
    --home-today-legend-color: #8d9ca8;
    --home-today-legend-text: #526878;
    display: block;
    min-height: auto;
    overflow: visible;
}

:is(#main-menu, .help-production-home) .home-today-legend-item--planned {
    --home-today-legend-color: var(--progress-planned-base, #F4B942);
    --home-today-legend-text: var(--progress-planned-label-text, #7a5413);
}

:is(#main-menu, .help-production-home) .home-today-legend-item--actual {
    --home-today-legend-color: var(--progress-actual-base, #52B2CF);
    --home-today-legend-text: #24677c;
}

:is(#main-menu, .help-production-home) .home-today-legend-item--done {
    --home-today-legend-color: var(--progress-done-base, #a8d4b2);
    --home-today-legend-text: #376a45;
}

:is(#main-menu, .help-production-home) .home-today-legend-item.is-zero {
    opacity: 0.62;
}

:is(#main-menu, .help-production-home) .home-today-legend-top {
    position: sticky;
    top: 0;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--home-today-hours-column-width);
    align-items: baseline;
    gap: 7px;
    min-width: 0;
    padding: 0 0 5px;
    border-bottom: 2px solid var(--home-today-legend-color);
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.94) 100%);
}

:is(#main-menu, .help-production-home) .home-today-legend-label,
:is(#main-menu, .help-production-home) .home-today-legend-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:is(#main-menu, .help-production-home) .home-today-legend-label {
    color: var(--home-today-legend-text);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
}

:is(#main-menu, .help-production-home) .home-today-legend-value {
    color: var(--home-today-legend-text);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.15;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

:is(#main-menu, .help-production-home) .home-today-breakdown-lists {
    display: block;
    min-width: 0;
    min-height: 0;
}

:is(#main-menu, .help-production-home) .home-today-breakdown-list {
    display: grid;
    gap: 5px;
    align-content: start;
    grid-auto-rows: max-content;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    max-height: none;
    padding: 3px 5px 7px 3px;
    overflow: visible;
}

:is(#main-menu, .help-production-home) .home-today-breakdown-list[hidden] {
    display: none;
}

:is(#main-menu, .help-production-home) .home-today-breakdown-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--home-today-hours-column-width);
    gap: 9px;
    align-items: end;
    box-sizing: border-box;
    min-width: 0;
    min-height: 29px;
    padding: 5px 8px;
    border: 1px solid color-mix(in srgb, var(--home-today-legend-color) 30%, transparent);
    border-radius: 7px;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--home-today-legend-color) 11%, #ffffff) 0%,
        color-mix(in srgb, var(--home-today-legend-color) 6%, #ffffff) 100%
    );
    color: #536b7d;
    box-shadow: 0 1px 2px rgba(47, 72, 91, 0.08);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    transition: opacity 0.16s ease, transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

:is(#main-menu, .help-production-home) .home-today-breakdown-row.is-breakdown-highlight {
    border-color: color-mix(in srgb, var(--home-today-legend-color) 62%, transparent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--home-today-legend-color) 18%, transparent), 0 3px 6px rgba(47, 72, 91, 0.14);
    transform: translateY(-1px);
}

:is(#main-menu, .help-production-home) .home-today-breakdown-row.is-breakdown-muted {
    opacity: 0.42;
}

:is(#main-menu, .help-production-home) .home-today-breakdown-label {
    display: block;
    min-width: 0;
    color: var(--home-today-legend-text);
    font-weight: 900;
    overflow-wrap: anywhere;
    white-space: normal;
}

:is(#main-menu, .help-production-home) .home-today-breakdown-hours {
    align-self: end;
    color: var(--home-today-legend-text);
    font-weight: 900;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

:is(#main-menu, .help-production-home) .home-today-breakdown-empty {
    display: block;
    box-sizing: border-box;
    min-height: 29px;
    padding: 5px 8px;
    border: 1px dashed color-mix(in srgb, var(--home-today-legend-color) 25%, transparent);
    border-radius: 7px;
    background: color-mix(in srgb, var(--home-today-legend-color) 5%, #ffffff);
    color: #7c8f9d;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-summary]:hover) [data-home-donut-ring],
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-ring]:hover) [data-home-donut-ring] {
    opacity: 0.24;
    filter: none;
}

:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-summary="target"]:hover) [data-home-donut-ring="target"],
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-ring="target"]:hover) [data-home-donut-ring="target"],
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-summary="planned"]:hover) [data-home-donut-ring="planned"],
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-ring="planned"]:hover) [data-home-donut-ring="planned"],
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-summary="actual"]:hover) [data-home-donut-ring="actual"],
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-ring="actual"]:hover) [data-home-donut-ring="actual"],
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-summary="done"]:hover) [data-home-donut-ring="done"],
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-ring="done"]:hover) [data-home-donut-ring="done"] {
    opacity: 1;
    filter: brightness(1.06) saturate(1.08);
}

:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-summary="target"]:hover) .stunden-helfer-donut-target-outline-segment,
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-ring="target"]:hover) .stunden-helfer-donut-target-outline-segment {
    stroke-width: 3 !important;
}

:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-summary="planned"]:hover) .stunden-helfer-donut-segment.is-planned,
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-ring="planned"]:hover) .stunden-helfer-donut-segment.is-planned,
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-summary="actual"]:hover) .stunden-helfer-donut-segment.is-actual,
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-ring="actual"]:hover) .stunden-helfer-donut-segment.is-actual,
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-summary="done"]:hover) .stunden-helfer-donut-segment.is-done,
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-ring="done"]:hover) .stunden-helfer-donut-segment.is-done {
    stroke-width: 12 !important;
}

:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-summary]:hover) [data-home-donut-summary],
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-ring]:hover) [data-home-donut-summary] {
    opacity: 0.45;
}

:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-summary="target"]:hover) [data-home-donut-summary="target"],
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-ring="target"]:hover) [data-home-donut-summary="target"],
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-summary="planned"]:hover) [data-home-donut-summary="planned"],
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-ring="planned"]:hover) [data-home-donut-summary="planned"],
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-summary="actual"]:hover) [data-home-donut-summary="actual"],
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-ring="actual"]:hover) [data-home-donut-summary="actual"],
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-summary="done"]:hover) [data-home-donut-summary="done"],
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-ring="done"]:hover) [data-home-donut-summary="done"] {
    opacity: 1;
    transform: translateY(-1px);
    filter: saturate(1.06);
}

:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-summary="target"]:hover) [data-home-donut-summary="target"] .home-today-legend-top,
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-ring="target"]:hover) [data-home-donut-summary="target"] .home-today-legend-top,
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-summary="planned"]:hover) [data-home-donut-summary="planned"] .home-today-legend-top,
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-ring="planned"]:hover) [data-home-donut-summary="planned"] .home-today-legend-top,
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-summary="actual"]:hover) [data-home-donut-summary="actual"] .home-today-legend-top,
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-ring="actual"]:hover) [data-home-donut-summary="actual"] .home-today-legend-top,
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-summary="done"]:hover) [data-home-donut-summary="done"] .home-today-legend-top,
:is(#main-menu, .help-production-home) .home-today-donut-panel:has([data-home-donut-ring="done"]:hover) [data-home-donut-summary="done"] .home-today-legend-top {
    border-bottom-width: 3px;
}

:is(#main-menu, .help-production-home) .home-deadline-list {
    display: grid;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 10px 0 0;
    max-height: var(--home-deadline-list-height);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 4px 2px 0;
    list-style: none;
    scrollbar-gutter: stable;
}

:is(#main-menu, .help-production-home) .home-deadline-panel .home-panel-header > .home-deadline-sort-toggle {
    display: inline-flex;
    align-items: stretch;
    flex: 0 0 auto;
    gap: 0;
    margin-left: auto;
}

:is(#main-menu, .help-production-home) .home-deadline-item {
    --home-deadline-accent: #8ea1b0;
    --home-deadline-bar-top: #d8e0e6;
    --home-deadline-bar-bottom: #9caeb8;
    --home-deadline-top: #fbfdff;
    --home-deadline-base: #f4f8fc;
    --home-deadline-text: #2f3e4a;
    --home-deadline-soft: #5b7182;
    --home-deadline-border: #d8e4ed;
    min-width: 0;
    max-width: 100%;
}

:is(#main-menu, .help-production-home) .home-deadline-item--state-delayed {
    --home-deadline-accent: var(--state-delayed-border, #cc9c51);
    --home-deadline-bar-top: var(--state-delayed-base, #f3c889);
    --home-deadline-bar-bottom: var(--state-delayed-border, #cc9c51);
    --home-deadline-top: var(--state-delayed-top, #fff0d6);
    --home-deadline-base: var(--state-delayed-base, #f3c889);
    --home-deadline-text: var(--state-delayed-text, #6e4a20);
    --home-deadline-soft: #765429;
    --home-deadline-border: var(--state-delayed-border, #cc9c51);
}

:is(#main-menu, .help-production-home) .home-deadline-item--state-outstanding {
    --home-deadline-accent: var(--state-outstanding-border, #c99533);
    --home-deadline-bar-top: var(--state-outstanding-base, #f6c96b);
    --home-deadline-bar-bottom: var(--state-outstanding-border, #c99533);
    --home-deadline-top: var(--state-outstanding-top, #ffe9ba);
    --home-deadline-base: var(--state-outstanding-base, #f6c96b);
    --home-deadline-text: var(--state-outstanding-text, #6c4a11);
    --home-deadline-soft: #745317;
    --home-deadline-border: var(--state-outstanding-border, #c99533);
}

:is(#main-menu, .help-production-home) .home-deadline-item--state-overdue {
    --home-deadline-accent: var(--state-overdue-border, #c8675b);
    --home-deadline-bar-top: var(--state-overdue-base, #e98f82);
    --home-deadline-bar-bottom: var(--state-overdue-border, #c8675b);
    --home-deadline-top: var(--state-overdue-top, #f8cec8);
    --home-deadline-base: var(--state-overdue-base, #e98f82);
    --home-deadline-text: var(--state-overdue-text, #65231f);
    --home-deadline-soft: #743029;
    --home-deadline-border: var(--state-overdue-border, #c8675b);
}

:is(#main-menu, .help-production-home) .home-deadline-item--state-neutral,
:is(#main-menu, .help-production-home) .home-deadline-item--state-ok {
    --home-deadline-accent: var(--progress-actual-base, #52B2CF);
    --home-deadline-bar-top: var(--state-active-top, #d8ecfb);
    --home-deadline-bar-bottom: var(--progress-actual-base, #52B2CF);
    --home-deadline-top: #fbfdff;
    --home-deadline-base: #f4f8fc;
    --home-deadline-text: #2f3e4a;
    --home-deadline-soft: #5b7182;
    --home-deadline-border: #d8e4ed;
}

:is(#main-menu, .help-production-home) .home-deadline-row {
    --home-deadline-detail-height: 38px;
    position: relative;
    display: grid;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "deadline deadline"
        "client context";
    gap: 6px 10px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 80px;
    padding: 7px 10px 8px 13px;
    overflow: hidden;
    border: 1px solid var(--home-deadline-border);
    border-radius: 7px;
    background: linear-gradient(180deg, var(--home-deadline-top) 0%, var(--home-deadline-base) 100%);
    color: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    text-decoration: none;
    transform: translateY(0);
    transition: all 0.2s ease;
}

:is(#main-menu, .help-production-home) .home-deadline-row::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--home-deadline-bar-top) 0%, var(--home-deadline-bar-bottom) 100%);
    opacity: 0.95;
}

:is(#main-menu, .help-production-home) .home-deadline-row:hover,
:is(#main-menu, .help-production-home) .home-deadline-row:focus-visible,
:is(#main-menu, .help-production-home) .home-deadline-row.hover-card-active {
    border-color: var(--home-deadline-accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    outline: none;
    text-decoration: none;
    transform: translateY(-1px);
}

:is(#main-menu, .help-production-home) .home-deadline-row.hover-card-active {
    z-index: 100;
}

:is(#main-menu, .help-production-home) .home-deadline-date {
    grid-area: deadline;
    display: block;
    min-width: 0;
}

:is(#main-menu, .help-production-home) .home-deadline-kind {
    min-width: 0;
    overflow: hidden;
    color: var(--home-deadline-text);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.15;
    display: block;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.025em;
}

:is(#main-menu, .help-production-home) .home-deadline-date-line {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

:is(#main-menu, .help-production-home) .home-deadline-date strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--home-deadline-soft);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:is(#main-menu, .help-production-home) .home-deadline-state-badge {
    justify-self: end;
    max-width: 142px;
    border: 0;
    border-radius: 6px;
    box-shadow: var(--ui-badge-shadow, 0 1px 3px rgba(0,0,0,0.2));
}

:is(#main-menu, .help-production-home) .home-deadline-state-badge .ui-status-pill__label,
:is(#main-menu, .help-production-home) .home-deadline-state-badge .eigener-status-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-receipt-row-hover-card {
    width: min(1440px, calc(100vw - 40px));
    max-width: calc(100vw - 40px);
}

.home-receipt-row-hover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 9px 12px;
}

.home-receipt-row-hover-title {
    min-width: 0;
    overflow: hidden;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-receipt-row-hover-header .receipt-row-modal-open-link {
    flex: 0 0 auto;
    color: #2f3e4a;
}

.home-receipt-row-hover-body {
    max-height: calc(100vh - 140px);
    overflow-x: auto;
    overflow-y: auto;
    border-radius: 0 0 10px 10px;
    background: #fff;
    background-clip: padding-box;
}

.home-receipt-row-hover-body .receipt-row-modal-table-scroll {
    max-width: 100%;
    border-radius: 0 0 8px 8px;
}

.home-receipt-row-hover-card .receipt-row-modal-table {
    min-width: 1320px;
}

.home-receipt-row-hover-card #receiptstab {
    --receiptstab-donut-shell-width: 196px;
}

.home-receipt-row-hover-card #receiptstab col.col-own-hours {
    width: 300px;
}

.home-receipt-row-hover-card #receiptstab col.col-own-status {
    width: 204px;
}

:is(#main-menu, .help-production-home) .home-deadline-client {
    position: relative;
    grid-area: client;
    display: inline-grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: var(--home-deadline-detail-height);
    padding: 3px 0;
    isolation: isolate;
}

:is(#main-menu, .help-production-home) .home-deadline-client::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid #dbe7f0;
    border-radius: 9px;
    background: linear-gradient(180deg, #fcfdff 0%, #f5f9fc 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.78);
    z-index: -2;
}

:is(#main-menu, .help-production-home) .home-deadline-client::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 58px;
    border-radius: 9px 0 0 9px;
    background: linear-gradient(180deg, #edf6fd 0%, #e3f0fa 100%);
    z-index: -1;
}

:is(#main-menu, .help-production-home) .home-deadline-client-number {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    padding: 0 10px 0 6px;
    border-right: 1px solid #cfdfeb;
    color: #156d9f;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

:is(#main-menu, .help-production-home) .home-deadline-client-name {
    min-width: 0;
    overflow: hidden;
    padding-right: 10px;
    color: #2f3e4a;
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

:is(#main-menu, .help-production-home) .home-deadline-context {
    grid-area: context;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
    min-width: 0;
    min-height: var(--home-deadline-detail-height);
    overflow: visible;
}

:is(#main-menu, .help-production-home) .home-deadline-task-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1 1 auto;
    width: auto;
    max-width: 100%;
    min-width: 0;
    min-height: var(--home-deadline-detail-height);
    padding: 4px 10px;
    overflow: hidden;
    border-radius: 8px;
    background: #f9fcff;
    box-shadow: var(--ui-badge-shadow, 0 1px 3px rgba(0, 0, 0, 0.2));
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:is(#main-menu, .help-production-home) .home-deadline-task-type,
:is(#main-menu, .help-production-home) .home-deadline-task-period {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:is(#main-menu, .help-production-home) .home-deadline-task-type {
    font-weight: 700;
    text-transform: uppercase;
}

:is(#main-menu, .help-production-home) .home-deadline-task-chip--bh {
    background-color: rgba(var(--bookkeeping-color, 250, 192, 190), 0.4);
    color: #5a3a38;
}

:is(#main-menu, .help-production-home) .home-deadline-task-chip--lv {
    background-color: rgba(var(--payroll-color, 191, 247, 247), 0.4);
    color: #3a4a5a;
}

:is(#main-menu, .help-production-home) .home-deadline-task-chip--ja {
    background-color: rgba(var(--annualaccount-color, 198, 223, 178), 0.4);
    color: #4a3a5a;
}

:is(#main-menu, .help-production-home) .home-deadline-task-chip--wp {
    background-color: rgba(var(--auditing-color, 255, 232, 140), 0.4);
    color: #3a5a4a;
}

:is(#main-menu, .help-production-home) .home-deadline-task-chip--br {
    background-color: rgba(var(--consultation-color, 188, 204, 235), 0.4);
    color: #5a4a3a;
}

:is(#main-menu, .help-production-home) .home-deadline-role-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 84px;
    width: 84px;
    min-width: 84px;
    max-width: 100%;
    min-height: var(--home-deadline-detail-height);
    padding: 4px 8px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--ui-badge-shadow, 0 1px 3px rgba(0, 0, 0, 0.2));
    font-size: 12px;
    font-weight: 800;
    line-height: 1.08;
    text-align: center;
    text-overflow: ellipsis;
    white-space: normal;
}

:is(#main-menu, .help-production-home) .home-deadline-role-line {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

:is(#main-menu, .help-production-home) .home-deadline-role-chip--main {
    background: rgba(45, 127, 184, 0.12);
    color: #2d5f83;
}

:is(#main-menu, .help-production-home) .home-deadline-role-chip--helper {
    background: rgba(85, 112, 133, 0.12);
    color: #4d6578;
}

:is(#main-menu, .help-production-home) .home-deadline-item--overdue .home-deadline-task-chip--bh {
    background-color: rgb(var(--bookkeeping-color, 250, 192, 190));
}

:is(#main-menu, .help-production-home) .home-deadline-item--overdue .home-deadline-task-chip--lv {
    background-color: rgb(var(--payroll-color, 191, 247, 247));
}

:is(#main-menu, .help-production-home) .home-deadline-item--overdue .home-deadline-task-chip--ja {
    background-color: rgb(var(--annualaccount-color, 198, 223, 178));
}

:is(#main-menu, .help-production-home) .home-deadline-item--overdue .home-deadline-task-chip--wp {
    background-color: rgb(var(--auditing-color, 255, 232, 140));
}

:is(#main-menu, .help-production-home) .home-deadline-item--overdue .home-deadline-task-chip--br {
    background-color: rgb(var(--consultation-color, 188, 204, 235));
}

:is(#main-menu, .help-production-home) .home-empty-state {
    display: grid;
    gap: 3px;
    margin-top: 10px;
    padding: 13px 12px;
    border: 1px dashed #c9d9e5;
    border-radius: 7px;
    background: #f8fbfd;
    color: #5a7183;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}

:is(#main-menu, .help-production-home) .home-empty-state strong {
    color: #2d4a61;
    font-size: 12px;
}

:is(#main-menu, .help-production-home) .home-deadline-panel {
    box-sizing: border-box;
    order: 1;
    align-self: start;
    container-type: inline-size;
    width: 100%;
    height: auto;
    overflow: hidden;
}

@media (min-width: 1780px) and (min-height: 820px) {
    :is(#main-menu, .help-production-home) .home-overview-grid {
        overflow: visible;
    }

    :is(#main-menu, .help-production-home) .home-deadline-panel {
        display: flex;
        flex-direction: column;
        flex: 0 0 var(--home-deadline-panel-height, auto);
        height: var(--home-deadline-panel-height, auto);
        max-height: var(--home-deadline-panel-height, none);
    }

    :is(#main-menu, .help-production-home) .home-deadline-panel .home-deadline-list {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
    }
}

:is(#main-menu, .help-production-home) .home-overview-right-column {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    align-self: start;
    gap: var(--home-overview-grid-gap);
    width: 100%;
    min-width: 0;
}

:is(#main-menu, .help-production-home) .home-overview-empty-row {
    display: none;
}

/* Shared utility-card visuals. Wide and flowing layouts only change their sizing. */
@media screen {
    :is(#main-menu, .help-production-home) .home-overview-right-column {
        align-self: stretch;
        height: 100%;
    }

    :is(#main-menu, .help-production-home) .home-overview-empty-row {
        order: 3;
        container-name: home-overview-empty-row;
        container-type: size;
        display: flex;
        align-items: stretch;
        gap: var(--home-overview-grid-gap);
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        min-height: 0;
        overflow: visible;
    }

    :is(#main-menu, .help-production-home) .home-overview-empty-panel {
        box-sizing: border-box;
        height: 100%;
        min-width: 0;
        min-height: 0;
    }

    :is(#main-menu, .help-production-home) .home-overview-empty-panel--wide {
        flex: 1 1 auto;
    }

    :is(#main-menu, .help-production-home) .home-overview-empty-panel--workplace {
        flex: 0 0 clamp(190px, 28cqw, 240px);
        width: clamp(190px, 28cqw, 240px);
    }

    :is(#main-menu, .help-production-home) .home-overview-empty-panel--square {
        aspect-ratio: 1 / 1;
        flex: 0 0 auto;
        width: auto;
    }

    :is(#main-menu, .help-production-home) .home-workplace-panel,
    :is(#main-menu, .help-production-home) .home-punchclock-panel {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        gap: clamp(6px, 5cqh, 9px);
        padding: 11px 12px;
        overflow: hidden;
    }

    :is(#main-menu, .help-production-home) .home-workplace-panel {
        order: 2;
        container-name: home-workplace-panel;
        container-type: size;
    }

    :is(#main-menu, .help-production-home) .home-panel-icon--workplace {
        border-color: rgba(93, 154, 174, 0.48);
        background: linear-gradient(180deg, #ffffff 0%, rgba(116, 180, 197, 0.28) 100%);
        color: #326f80;
    }

    :is(#main-menu, .help-production-home) .home-workplace-summary {
        display: grid;
        grid-template-rows: minmax(0, 1fr);
        gap: clamp(5px, 4cqh, 8px);
        min-width: 0;
        min-height: 0;
    }

    :is(#main-menu, .help-production-home) .home-workplace-today {
        position: relative;
        box-sizing: border-box;
        min-width: 0;
        overflow: hidden;
        border: 1px solid #d6e2e8;
        border-radius: 10px;
        background: linear-gradient(145deg, #ffffff 0%, #f2f7f9 100%);
        box-shadow: 0 1px 3px rgba(35, 68, 88, 0.07);
    }

    :is(#main-menu, .help-production-home) .home-workplace-today::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 4px;
        background: var(--home-workplace-booking-color, #72a9bd);
        opacity: 0.45;
    }

    :is(#main-menu, .help-production-home) .home-workplace-today.has-booking::before {
        opacity: 1;
    }

    :is(#main-menu, .help-production-home) .home-workplace-today {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        align-items: center;
        gap: clamp(2px, 2cqh, 4px);
        padding: clamp(7px, 6cqh, 12px) clamp(8px, 7cqw, 13px);
    }

    :is(#main-menu, .help-production-home) .home-workplace-day-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        min-width: 0;
        padding-bottom: clamp(2px, 1.5cqh, 4px);
        border-bottom: 1px solid rgba(156, 181, 194, 0.28);
    }

    :is(#main-menu, .help-production-home) .home-workplace-day {
        color: #718491;
        font-size: clamp(9px, 6.5cqh, 11px);
        font-weight: 900;
        line-height: 1;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    :is(#main-menu, .help-production-home) .home-workplace-name {
        display: block;
        align-self: center;
        min-width: 0;
        max-height: 2.16em;
        overflow: hidden;
        color: #294f63;
        font-size: clamp(13px, 10cqh, 18px);
        font-weight: 900;
        line-height: 1.08;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    :is(#main-menu, .help-production-home) .home-workplace-booking-viewport {
        position: relative;
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        overflow: hidden;
    }

    :is(#main-menu, .help-production-home) .home-workplace-booking-slide {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: clamp(10px, 5cqw, 18px);
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        transition: transform 0.4s ease, opacity 0.3s ease;
    }

    :is(#main-menu, .help-production-home) .home-workplace-booking-slide.is-hidden {
        display: none;
    }

    :is(#main-menu, .help-production-home) .home-workplace-booking-slide.slide-out-left,
    :is(#main-menu, .help-production-home) .home-workplace-booking-slide.slide-out-right,
    :is(#main-menu, .help-production-home) .home-workplace-booking-slide.slide-in-left,
    :is(#main-menu, .help-production-home) .home-workplace-booking-slide.slide-in-right {
        position: absolute;
        top: 0;
        left: 0;
    }

    :is(#main-menu, .help-production-home) .home-workplace-booking-slide.slide-out-left,
    :is(#main-menu, .help-production-home) .home-workplace-booking-slide.slide-in-left {
        opacity: 0;
        transform: translateX(-100%);
    }

    :is(#main-menu, .help-production-home) .home-workplace-booking-slide.slide-out-right,
    :is(#main-menu, .help-production-home) .home-workplace-booking-slide.slide-in-right {
        opacity: 0;
        transform: translateX(100%);
    }

    :is(#main-menu, .help-production-home) .home-workplace-time {
        display: flex;
        align-items: center;
        gap: 5px;
        box-sizing: border-box;
        width: fit-content;
        max-width: 100%;
        min-width: 0;
        padding: clamp(3px, 2cqh, 5px) clamp(6px, 4cqw, 9px);
        overflow: hidden;
        border: 1px solid rgba(156, 181, 194, 0.38);
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.72);
        color: #5f7887;
        font-size: clamp(9px, 6.5cqh, 12px);
        font-weight: 700;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

    :is(#main-menu, .help-production-home) .home-workplace-time em {
        flex: 0 0 auto;
        padding: 2px 5px;
        border-radius: 999px;
        background: #e7f4ec;
        color: #397053;
        font-size: 0.85em;
        font-style: normal;
        font-weight: 900;
        line-height: 1;
    }

    :is(#main-menu, .help-production-home) .home-workplace-booking-nav {
        position: absolute;
        right: clamp(7px, 5cqw, 11px);
        bottom: clamp(6px, 4cqh, 9px);
        z-index: 3;
        display: inline-flex;
        align-items: center;
        gap: 2px;
    }

    :is(#main-menu, .help-production-home) .home-workplace-booking-nav button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: clamp(16px, 11cqh, 19px);
        height: clamp(16px, 11cqh, 19px);
        padding: 0;
        border: 1px solid #b8cbd6;
        border-radius: 5px;
        background: linear-gradient(180deg, #ffffff 0%, #e8f1f5 100%);
        color: #496c7e;
        box-shadow: 0 1px 2px rgba(34, 69, 89, 0.12);
        transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
    }

    :is(#main-menu, .help-production-home) .home-workplace-booking-nav button:hover:not(:disabled) {
        border-color: #98b5c4;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(34, 69, 89, 0.17);
    }

    :is(#main-menu, .help-production-home) .home-workplace-booking-nav button:active:not(:disabled) {
        transform: translateY(1px);
        box-shadow: none;
    }

    :is(#main-menu, .help-production-home) .home-workplace-booking-nav button:focus,
    :is(#main-menu, .help-production-home) .home-workplace-booking-nav button:focus-visible {
        outline: none;
        box-shadow: var(--ui-press-focus-ring), 0 1px 2px rgba(34, 69, 89, 0.12);
    }

    :is(#main-menu, .help-production-home) .home-workplace-booking-nav button:disabled {
        opacity: 0.3;
        cursor: default;
        box-shadow: none;
    }

    :is(#main-menu, .help-production-home) .home-workplace-booking-nav .glyphicon {
        top: 0;
        font-size: clamp(7px, 5cqh, 9px);
        line-height: 1;
    }

    :is(#main-menu, .help-production-home) .home-workplace-day-row small {
        flex: 0 0 auto;
        padding: 2px 5px;
        border-radius: 999px;
        background: #e8f1f5;
        color: #547485;
        font-size: clamp(8px, 5.5cqh, 10px);
        font-weight: 900;
        line-height: 1;
    }

    :is(#main-menu, .help-production-home) .home-punchclock-panel {
        --home-punchclock-accent: #9a7934;
        --home-punchclock-accent-soft: #f8f1df;
        order: 1;
        container-name: home-punchclock-panel;
        container-type: size;
    }

    :is(#main-menu, .help-production-home) .home-punchclock-body {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(6px, 2cqw, 10px);
        min-width: 0;
        min-height: 0;
    }

    :is(#main-menu, .help-production-home) .home-punchclock-panel-header {
        display: flex;
    }

    :is(#main-menu, .help-production-home) .home-punchclock-heading {
        display: flex;
        align-items: center;
        flex: 1 1 auto;
        gap: 8px;
        min-width: 0;
    }

    :is(#main-menu, .help-production-home) .home-punchclock-heading > div {
        min-width: 0;
    }

    :is(#main-menu, .help-production-home) .home-punchclock-summary {
        display: grid;
        grid-template-rows: auto repeat(2, minmax(0, 1fr));
        gap: clamp(5px, 4cqh, 8px);
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        padding: clamp(7px, 6cqh, 13px);
        overflow: hidden;
        border: 1px solid color-mix(in srgb, var(--home-punchclock-accent) 36%, #c6d4dc);
        border-radius: 12px;
        background: linear-gradient(180deg, #fffefa 0%, var(--home-punchclock-accent-soft) 100%);
        box-shadow:
            0 1px 0 rgba(86, 119, 140, 0.16),
            0 2px 5px rgba(32, 66, 88, 0.07),
            inset 0 1px 0 rgba(255, 255, 255, 0.86);
        color: #5f512c;
    }

    :is(#main-menu, .help-production-home) .home-punchclock-summary.is-clocked-in {
        --home-punchclock-accent: #4f9470;
        --home-punchclock-accent-soft: #eaf5ee;
        color: #34644b;
    }

    :is(#main-menu, .help-production-home) .home-punchclock-current {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 0;
        padding: 2px 0;
        text-align: center;
    }

    :is(#main-menu, .help-production-home) .home-punchclock-status {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: inherit;
        font-size: clamp(9px, 7cqh, 12px);
        font-weight: 800;
        line-height: 1.1;
    }

    :is(#main-menu, .help-production-home) .home-punchclock-status-dot {
        flex: 0 0 auto;
        width: 8px;
        height: 8px;
        border: 2px solid rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        background: var(--home-punchclock-accent);
        box-shadow: 0 0 0 1px color-mix(in srgb, var(--home-punchclock-accent) 36%, transparent);
    }

    :is(#main-menu, .help-production-home) .home-punchclock-metric {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        box-sizing: border-box;
        min-width: 0;
        min-height: 0;
        padding: clamp(6px, 5cqh, 10px) clamp(8px, 7cqw, 13px);
        border: 1px solid color-mix(in srgb, var(--home-punchclock-accent) 20%, #d8e2e8);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.72);
    }

    :is(#main-menu, .help-production-home) .home-punchclock-metric-label {
        color: #718491;
        font-size: clamp(10px, 7cqh, 12px);
        font-weight: 800;
        line-height: 1.1;
        white-space: nowrap;
    }

    :is(#main-menu, .help-production-home) .home-punchclock-metric-value {
        justify-self: end;
        min-width: 0;
        color: inherit;
        font-size: clamp(15px, 11cqh, 20px);
        font-weight: 900;
        line-height: 1;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

    :is(#main-menu, .help-production-home) .home-punchclock-metric--total {
        background: color-mix(in srgb, var(--home-punchclock-accent-soft) 64%, #ffffff);
    }

    :is(#main-menu, .help-production-home) .home-time-reconciliation {
        display: grid;
        grid-template-rows: repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr);
        gap: clamp(4px, 3cqh, 6px);
        box-sizing: border-box;
        min-width: 0;
        min-height: 0;
        padding: clamp(7px, 6cqh, 12px);
        overflow: hidden;
        border: 1px solid #d4e1e7;
        border-radius: 12px;
        background: linear-gradient(180deg, #fbfdfe 0%, #edf5f8 100%);
        box-shadow:
            0 1px 0 rgba(86, 119, 140, 0.14),
            0 2px 5px rgba(32, 66, 88, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    :is(#main-menu, .help-production-home) .home-time-reconciliation-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 7px;
        box-sizing: border-box;
        min-width: 0;
        min-height: 0;
        padding: clamp(4px, 3cqh, 7px) clamp(6px, 3cqw, 9px);
        border: 1px solid rgba(166, 190, 202, 0.45);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.76);
        color: #667d89;
        font-size: clamp(9px, 6cqh, 11px);
        font-weight: 800;
        line-height: 1.05;
    }

    :is(#main-menu, .help-production-home) .home-time-reconciliation-row > strong {
        color: #31566a;
        font-size: clamp(12px, 8cqh, 16px);
        font-weight: 900;
        line-height: 1;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

    :is(#main-menu, .help-production-home) .home-time-reconciliation-row--difference {
        background: #f4f8fa;
    }

    :is(#main-menu, .help-production-home) .home-time-reconciliation-row--difference [data-home-reconciliation-note] {
        overflow: hidden;
        color: #637d89;
        font-size: clamp(8px, 5.8cqh, 11px);
        font-weight: 800;
        line-height: 1.05;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    :is(#main-menu, .help-production-home) .home-time-reconciliation-row--difference.is-balanced {
        border-color: rgba(85, 155, 111, 0.35);
        background: #edf7f0;
    }

    :is(#main-menu, .help-production-home) .home-time-reconciliation-row--difference.is-recorded-ahead {
        border-color: rgba(72, 139, 174, 0.35);
        background: #edf6fa;
    }

    :is(#main-menu, .help-production-home) .home-time-reconciliation-row--difference.is-punchclock-ahead {
        border-color: rgba(197, 145, 65, 0.38);
        background: #fbf5e8;
    }

    @container home-overview-empty-row (max-height: 190px) {
        :is(#main-menu, .help-production-home) .home-punchclock-panel,
        :is(#main-menu, .help-production-home) .home-workplace-panel {
            gap: 5px;
            padding: 8px 9px;
        }
    }

    @container home-punchclock-panel (max-height: 190px) {
        :is(#main-menu, .help-production-home) .home-punchclock-panel .home-panel-header p {
            display: none;
        }

        :is(#main-menu, .help-production-home) .home-punchclock-summary {
            gap: 4px;
            padding: 6px;
        }

        :is(#main-menu, .help-production-home) .home-time-reconciliation {
            gap: 3px;
            padding: 6px;
        }

        :is(#main-menu, .help-production-home) .home-punchclock-metric,
        :is(#main-menu, .help-production-home) .home-time-reconciliation-row {
            padding: 3px 5px;
        }
    }

    @container home-workplace-panel (max-height: 190px) {
        :is(#main-menu, .help-production-home) .home-workplace-panel .home-panel-header p {
            display: none;
        }

        :is(#main-menu, .help-production-home) .home-workplace-summary {
            grid-template-rows: minmax(0, 1fr);
            gap: 4px;
        }

        :is(#main-menu, .help-production-home) .home-workplace-today {
            gap: 3px;
            padding: 5px 8px;
        }

        :is(#main-menu, .help-production-home) .home-workplace-day {
            font-size: 9px;
        }

        :is(#main-menu, .help-production-home) .home-workplace-name {
            display: block;
            align-self: flex-start;
            max-height: none;
            overflow: hidden;
            font-size: 13px;
            line-height: 1.1;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        :is(#main-menu, .help-production-home) .home-workplace-booking-slide {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: center;
            gap: 5px;
        }

        :is(#main-menu, .help-production-home) .home-workplace-time {
            padding: 3px 6px;
            font-size: 9.5px;
            line-height: 1;
        }

        :is(#main-menu, .help-production-home) .home-workplace-time em {
            padding: 1px 4px;
        }

        :is(#main-menu, .help-production-home) .home-workplace-booking-nav {
            right: 7px;
            bottom: 6px;
        }

        :is(#main-menu, .help-production-home) .home-workplace-booking-nav button {
            width: 16px;
            height: 16px;
        }

    }

    :is(#main-menu, .help-production-home) .home-help-panel {
        position: relative;
        order: 3;
        isolation: isolate;
        container-name: home-help-panel;
        container-type: size;
        display: grid;
        align-content: center;
        justify-items: center;
        gap: clamp(5px, 5cqh, 10px);
        padding: clamp(8px, 9cqh, 18px);
        overflow: hidden;
        border-color: #b8cfdc;
        background: linear-gradient(145deg, #ffffff 0%, #eef6fa 58%, #f3f8ee 100%);
        color: #274b61;
        box-shadow: var(--ui-press-neutral-shadow);
        text-align: center;
        text-decoration: none;
        cursor: pointer;
        transition:
            transform 0.16s ease,
            box-shadow 0.16s ease,
            border-color 0.16s ease,
            filter 0.16s ease;
    }

    :is(#main-menu, .help-production-home) .home-help-panel::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: clamp(3px, 2.5cqh, 5px);
        background: linear-gradient(90deg, #58b5d0 0%, #7ab1c8 52%, #94b978 100%);
    }

    :is(#main-menu, .help-production-home) .home-help-panel:hover,
    :is(#main-menu, .help-production-home) .home-help-panel:focus {
        border-color: #9dbdcd;
        color: #1f4359;
        filter: saturate(1.05) brightness(1.015);
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: var(--ui-press-neutral-hover-shadow);
    }

    :is(#main-menu, .help-production-home) .home-help-panel:active {
        filter: none;
        transform: translateY(1px);
        box-shadow: var(--ui-press-neutral-active-shadow);
    }

    :is(#main-menu, .help-production-home) .home-help-panel:focus,
    :is(#main-menu, .help-production-home) .home-help-panel:focus-visible {
        outline: none;
        box-shadow: var(--ui-press-focus-ring), var(--ui-press-neutral-shadow);
    }

    :is(#main-menu, .help-production-home) .home-help-panel-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: clamp(32px, 35cqh, 52px);
        aspect-ratio: 1 / 1;
        border: 1px solid rgba(83, 151, 178, 0.38);
        border-radius: 8px;
        background: linear-gradient(180deg, #ffffff 0%, #dceef5 100%);
        color: #28718e;
        box-shadow: var(--ui-badge-shadow, 0 1px 3px rgba(0, 0, 0, 0.18));
        transition: transform 0.16s ease, box-shadow 0.16s ease;
    }

    :is(#main-menu, .help-production-home) .home-help-panel:hover .home-help-panel-icon,
    :is(#main-menu, .help-production-home) .home-help-panel:focus .home-help-panel-icon {
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(38, 96, 124, 0.2);
    }

    :is(#main-menu, .help-production-home) .home-help-panel-icon .glyphicon {
        top: 0;
        font-size: clamp(15px, 14cqh, 22px);
        line-height: 1;
    }

    :is(#main-menu, .help-production-home) .home-help-panel-copy {
        display: grid;
        gap: clamp(2px, 2cqh, 4px);
        justify-items: center;
        min-width: 0;
        max-width: 100%;
    }

    :is(#main-menu, .help-production-home) .home-help-panel-copy strong {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        color: inherit;
        font-size: clamp(14px, 12cqh, 19px);
        font-weight: 900;
        line-height: 1.05;
        white-space: nowrap;
    }

    :is(#main-menu, .help-production-home) .home-help-panel-copy strong .glyphicon {
        top: 0;
        font-size: 0.58em;
        line-height: 1;
        opacity: 0.72;
    }

    :is(#main-menu, .help-production-home) .home-help-panel-copy > span {
        max-width: 100%;
        color: #5a7485;
        font-size: clamp(9px, 6.5cqh, 12px);
        font-weight: 700;
        line-height: 1.15;
        text-wrap: balance;
    }
}

:is(#main-menu, .help-production-home) .home-timer-panel {
    --home-timer-shadow-inline-reserve: 16px;
    box-sizing: border-box;
    order: 2;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    flex: 0 0 auto;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    height: var(--home-today-panel-height);
    min-height: 0;
    padding: 11px 12px 0;
    overflow: visible;
}

:is(#main-menu, .help-production-home) .home-panel-icon--timer {
    border-color: rgba(82, 178, 207, 0.5);
    background: linear-gradient(180deg, #ffffff 0%, rgba(82, 178, 207, 0.24) 100%);
    color: #2f7384;
}

:is(#main-menu, .help-production-home) .home-timer-carousel {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

:is(#main-menu, .help-production-home) .home-timer-carousel-nav {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 34px;
    padding: 0;
    border: 1px solid #afc5d5;
    border-radius: 999px;
    background: linear-gradient(180deg, #f9fcfe 0%, #e8f2f8 100%);
    color: #2f5872;
    box-shadow: var(--ui-press-neutral-shadow);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, filter 0.16s ease, opacity 0.16s ease;
}

:is(#main-menu, .help-production-home) .home-timer-carousel-nav:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: #9bb8cc;
    filter: saturate(1.06) brightness(1.02);
    box-shadow: var(--ui-press-neutral-hover-shadow);
}

:is(#main-menu, .help-production-home) .home-timer-carousel-nav:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: var(--ui-press-neutral-active-shadow);
}

:is(#main-menu, .help-production-home) .home-timer-carousel-nav:focus,
:is(#main-menu, .help-production-home) .home-timer-carousel-nav:focus-visible {
    outline: none;
    box-shadow: var(--ui-press-focus-ring), var(--ui-press-neutral-shadow);
}

:is(#main-menu, .help-production-home) .home-timer-carousel-nav:disabled {
    opacity: 0.35;
    cursor: default;
    box-shadow: none;
}

:is(#main-menu, .help-production-home) .home-timer-carousel-nav .glyphicon {
    top: 0;
    font-size: 11px;
    line-height: 1;
}

:is(#main-menu, .help-production-home) .home-timer-viewport {
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 5px var(--home-timer-shadow-inline-reserve) 19px;
    overflow: hidden;
}

:is(#main-menu, .help-production-home) .home-timer-viewport.is-switching {
    transition: height 0.4s ease;
}

:is(#main-menu, .help-production-home) .home-timer-identity {
    --plan-task-rgb: 122, 168, 198;
    --plan-task-text: #234760;
    --plan-task-number-text: #25556f;
    --plan-entry-client-number-width: 42px;
}

:is(#main-menu, .help-production-home) .home-timer-empty {
    display: grid;
    justify-items: center;
    gap: 5px;
    color: #647b8c;
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
}

:is(#main-menu, .help-production-home) .home-timer-empty .glyphicon {
    top: 0;
    margin-bottom: 2px;
    color: #8aa5b8;
    font-size: 22px;
}

:is(#main-menu, .help-production-home) .home-timer-empty strong {
    color: #2d4a61;
    font-size: 12px;
}

:is(#main-menu, .help-production-home) .home-timer-slide {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

:is(#main-menu, .help-production-home) .home-timer-slide.slide-out-left,
:is(#main-menu, .help-production-home) .home-timer-slide.slide-out-right,
:is(#main-menu, .help-production-home) .home-timer-slide.slide-in-left,
:is(#main-menu, .help-production-home) .home-timer-slide.slide-in-right {
    position: absolute;
    top: 5px;
    left: var(--home-timer-shadow-inline-reserve);
    width: calc(100% - var(--home-timer-shadow-inline-reserve) - var(--home-timer-shadow-inline-reserve));
}

:is(#main-menu, .help-production-home) .home-timer-slide.slide-out-left,
:is(#main-menu, .help-production-home) .home-timer-slide.slide-in-left {
    transform: translateX(-100%);
    opacity: 0;
}

:is(#main-menu, .help-production-home) .home-timer-slide.slide-out-right,
:is(#main-menu, .help-production-home) .home-timer-slide.slide-in-right {
    transform: translateX(100%);
    opacity: 0;
}

:is(#main-menu, .help-production-home) .home-workmode-timer-block.timer-block {
    --workmode-head-bg: linear-gradient(180deg, #eff5fa 0%, #dde8f1 100%);
    --workmode-head-border: #c7d7e3;
    --workmode-head-title: #2a516d;
    --workmode-pause-bg: linear-gradient(180deg, #e8f4ff 0%, #c8def0 100%);
    --workmode-pause-border: #7b9eb8;
    --workmode-pause-color: #2b5470;
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid #dbe7f0;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9fc 100%);
    box-shadow: 0 6px 14px rgba(30, 63, 89, 0.08);
}

:is(#main-menu, .help-production-home) .home-workmode-timer-block.wm-state-running {
    --workmode-head-bg: linear-gradient(180deg, #e6f5ff 0%, #d0e9f9 100%);
    --workmode-head-border: #b4d5ea;
    --workmode-head-title: #1e5a7f;
    --workmode-pause-bg: linear-gradient(180deg, #fff2ad 0%, #f7d66d 100%);
    --workmode-pause-border: #e0be52;
    --workmode-pause-color: #6b4d0b;
}

:is(#main-menu, .help-production-home) .home-workmode-timer-block.wm-state-paused {
    --workmode-head-bg: linear-gradient(180deg, #fff7dd 0%, #fbe7ba 100%);
    --workmode-head-border: #e6c987;
    --workmode-head-title: #72571f;
}

:is(#main-menu, .help-production-home) .home-workmode-timer-block.wm-state-finished {
    --workmode-head-bg: linear-gradient(180deg, #e7f7e4 0%, #d0eccd 100%);
    --workmode-head-border: #abcea5;
    --workmode-head-title: #2e6732;
}

:is(#main-menu, .help-production-home) .home-workmode-timer-block > .panel-heading.flex-header {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 12px;
    min-height: 52px;
    padding: 10px;
    border-bottom: 1px solid var(--workmode-head-border);
    border-radius: 12px 12px 0 0;
    background: var(--workmode-head-bg);
}

:is(#main-menu, .help-production-home) .home-workmode-timer-block .panel-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: var(--workmode-head-title);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

:is(#main-menu, .help-production-home) .home-workmode-timer-block .workmode-timer-heading-actions {
    flex: 0 1 auto;
    min-width: 0;
    margin-left: auto;
}

:is(#main-menu, .help-production-home) .home-workmode-timer-block .home-timer-start-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
}

:is(#main-menu, .help-production-home) .home-workmode-timer-block .home-timer-start-actions .btn {
    min-width: 118px;
    min-height: 34px;
    border: 1px solid #7b9eb8;
    border-radius: 999px;
    background: linear-gradient(180deg, #e8f4ff 0%, #c8def0 100%);
    color: #2b5470;
    box-shadow: 0 2px 0 rgba(53, 81, 101, 0.28), 0 4px 8px rgba(31, 62, 86, 0.14);
    font-weight: 700;
}

:is(#main-menu, .help-production-home) .home-workmode-timer-block .home-timer-start-actions .btn:focus {
    outline: none;
    box-shadow: var(--ui-press-focus-ring), 0 2px 0 rgba(53, 81, 101, 0.28), 0 4px 8px rgba(31, 62, 86, 0.14);
}

:is(#main-menu, .help-production-home) .home-workmode-timer-block .btn-stack,
:is(#main-menu, .help-production-home) .home-workmode-timer-block .workmode-action-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

:is(#main-menu, .help-production-home) .home-workmode-timer-block .reset-button,
:is(#main-menu, .help-production-home) .home-workmode-timer-block .stopButton,
:is(#main-menu, .help-production-home) .home-workmode-timer-block .pauseButton {
    min-height: 34px;
    border-width: 1px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 2px 0 rgba(53, 81, 101, 0.28), 0 4px 8px rgba(31, 62, 86, 0.14);
}

:is(#main-menu, .help-production-home) .home-workmode-timer-block .reset-button {
    flex: 0 0 36px;
    width: 36px;
    padding-right: 0;
    padding-left: 0;
    border-color: #d38179;
    background: linear-gradient(180deg, #f9d5d1 0%, #eca6a0 100%);
    color: #7f2e28;
}

:is(#main-menu, .help-production-home) .home-workmode-timer-block .stopButton {
    min-width: 96px;
    border-color: #79b184;
    background: linear-gradient(180deg, #d6f0da 0%, #aad7b3 100%);
    color: #245d32;
}

:is(#main-menu, .help-production-home) .home-workmode-timer-block .pauseButton {
    min-width: 126px;
    border-color: var(--workmode-pause-border);
    background: var(--workmode-pause-bg);
    color: var(--workmode-pause-color);
}

:is(#main-menu, .help-production-home) .home-workmode-timer-block .reset-button:focus,
:is(#main-menu, .help-production-home) .home-workmode-timer-block .stopButton:focus,
:is(#main-menu, .help-production-home) .home-workmode-timer-block .pauseButton:focus {
    outline: none;
    box-shadow: var(--ui-press-focus-ring), 0 2px 0 rgba(53, 81, 101, 0.28), 0 4px 8px rgba(31, 62, 86, 0.14);
}

:is(#main-menu, .help-production-home) .home-workmode-timer-block > .panel-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 10px;
}

:is(#main-menu, .help-production-home) .home-workmode-timer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(180px, 0.58fr);
    gap: 12px;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

:is(#main-menu, .help-production-home) .home-workmode-timer-fields {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
    min-height: 0;
}

:is(#main-menu, .help-production-home) .home-workmode-timer-block .workmode-group-shell {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

:is(#main-menu, .help-production-home) .home-workmode-timer-block .workmode-group-shell > label {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    width: 100%;
    min-height: 32px;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid #dbe7f0;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    box-sizing: border-box;
    background: linear-gradient(180deg, #edf6fd 0%, #e3f0fa 100%);
    color: #156d9f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

:is(#main-menu, .help-production-home) .home-workmode-timer-block .workmode-group-body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    padding: 7px;
    border: 1px solid #dbe7f0;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(180deg, #fcfdff 0%, #f5f9fc 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

:is(#main-menu, .help-production-home) .home-workmode-timer-block .home-timer-readonly-field {
    display: flex;
    align-items: center;
}

:is(#main-menu, .help-production-home) .home-workmode-timer-block .home-timer-readonly-field > * {
    width: 100%;
}

:is(#main-menu, .help-production-home) .home-workmode-timer-block .workmode-group-shell.is-disabled {
    opacity: 0.62;
    filter: grayscale(0.25);
}

:is(#main-menu, .help-production-home) .home-workmode-timer-block .workmode-group-shell.is-disabled > label {
    border-color: #d4dee5;
    background: linear-gradient(180deg, #edf1f4 0%, #e4eaee 100%);
    color: #7e93a1;
}

:is(#main-menu, .help-production-home) .home-workmode-timer-block .workmode-group-shell.is-disabled .workmode-group-body {
    border-color: #d4dee5;
    background: linear-gradient(180deg, #f5f7f8 0%, #edf2f5 100%);
}

:is(#main-menu, .help-production-home) .home-workmode-times-shell .workmode-group-body {
    display: flex;
    flex-direction: column;
    padding: 0 10px;
    background: linear-gradient(180deg, #f8fbfe 0%, #edf4fa 100%);
}

:is(#main-menu, .help-production-home) .home-workmode-times-shell .workmode-time-row {
    display: grid;
    grid-template-columns: minmax(78px, 0.85fr) minmax(92px, 1fr);
    align-items: center;
    gap: 10px;
    flex: 1 1 0;
    min-height: 46px;
}

:is(#main-menu, .help-production-home) .home-workmode-times-shell .workmode-time-row + .workmode-time-row {
    border-top: 1px dashed #c5d7e4;
}

:is(#main-menu, .help-production-home) .home-workmode-times-shell .workmode-time-label {
    color: #5c7486;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

:is(#main-menu, .help-production-home) .home-workmode-times-shell .workmode-time-value {
    justify-self: center;
    min-width: 92px;
    padding: 4px 8px;
    border: 1px solid #b7ccdb;
    border-left: 3px solid #6eaed2;
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff 0%, #e6f0f8 100%);
    color: #173f58;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(28, 63, 88, 0.08);
    font-family: Consolas, 'Courier New', monospace;
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

@media (min-width: 1780px) and (min-height: 820px) {
    :is(#main-menu, .help-production-home) .home-workmode-timer-block.timer-block {
        container-name: home-timer-card;
        container-type: size;
    }

    :is(#main-menu, .help-production-home) .home-timer-panel[data-home-timer-interactions-enabled="0"] .home-workmode-timer-block > .panel-heading.flex-header {
        min-height: clamp(34px, 17cqh, 44px);
        padding: clamp(6px, 3cqh, 8px) 10px;
        gap: clamp(8px, 3.82cqh, 10px);
    }

    :is(#main-menu, .help-production-home) .home-timer-panel[data-home-timer-interactions-enabled="0"] .home-workmode-timer-block .panel-title {
        font-size: clamp(14px, 6.1cqh, 16px);
    }

    :is(#main-menu, .help-production-home) .home-timer-panel[data-home-timer-interactions-enabled="0"] .home-workmode-timer-block > .panel-body {
        padding: clamp(6px, 3.82cqh, 10px);
    }

    :is(#main-menu, .help-production-home) .home-timer-panel[data-home-timer-interactions-enabled="0"] .home-workmode-timer-grid {
        grid-template-columns:
            minmax(clamp(210px, 91.6cqh, 240px), 1fr)
            minmax(clamp(160px, 68.7cqh, 180px), 0.56fr);
        gap: clamp(8px, 4.6cqh, 12px);
    }

    :is(#main-menu, .help-production-home) .home-timer-panel[data-home-timer-interactions-enabled="0"] .home-workmode-timer-fields {
        gap: clamp(6px, 3.82cqh, 10px);
    }

    :is(#main-menu, .help-production-home) .home-timer-panel[data-home-timer-interactions-enabled="0"] .home-workmode-timer-block .workmode-group-shell > label {
        min-height: clamp(24px, 12.2cqh, 32px);
        padding:
            clamp(4px, 2.3cqh, 6px)
            clamp(8px, 3.82cqh, 10px);
        font-size: clamp(11px, 4.58cqh, 12px);
    }

    :is(#main-menu, .help-production-home) .home-timer-panel[data-home-timer-interactions-enabled="0"] .home-workmode-timer-block .workmode-group-body {
        padding:
            clamp(1px, calc(5cqh - 6px), 7px)
            clamp(6px, 3.82cqh, 10px);
    }

    :is(#main-menu, .help-production-home) .home-timer-panel[data-home-timer-interactions-enabled="0"] .home-workmode-times-shell .workmode-group-body {
        padding: 0 clamp(6px, 3.82cqh, 10px);
    }

    :is(#main-menu, .help-production-home) .home-timer-panel[data-home-timer-interactions-enabled="0"] .home-workmode-times-shell .workmode-time-row {
        grid-template-columns:
            minmax(clamp(58px, 29.8cqh, 78px), 0.78fr)
            minmax(clamp(76px, 35.1cqh, 92px), 1fr);
        gap: clamp(6px, 3.82cqh, 10px);
        min-height: clamp(0px, calc(42.2cqh - 64.5px), 46px);
    }

    :is(#main-menu, .help-production-home) .home-timer-panel[data-home-timer-interactions-enabled="0"] .home-workmode-times-shell .workmode-time-label {
        font-size: clamp(10px, 4.2cqh, 11px);
    }

    :is(#main-menu, .help-production-home) .home-timer-panel[data-home-timer-interactions-enabled="0"] .home-workmode-times-shell .workmode-time-value {
        min-width: clamp(76px, 35.1cqh, 92px);
        padding:
            clamp(2px, 1.53cqh, 4px)
            clamp(6px, 3.05cqh, 8px);
        font-size: clamp(1.25em, 6.3cqh, 1.5em);
    }

    :is(#main-menu, .help-production-home) .home-timer-panel[data-home-timer-interactions-enabled="0"] .home-timer-identity {
        --plan-entry-client-number-width: clamp(36px, 16cqh, 42px);
    }

    :is(#main-menu, .help-production-home) .home-timer-panel[data-home-timer-interactions-enabled="0"] .home-timer-identity .plan-entry-task-display,
    :is(#main-menu, .help-production-home) .home-timer-panel[data-home-timer-interactions-enabled="0"] .home-timer-identity .plan-entry-client-display {
        min-height: clamp(22px, 11.1cqh, 29px);
    }

    :is(#main-menu, .help-production-home) .home-timer-panel[data-home-timer-interactions-enabled="0"] .home-timer-identity .plan-entry-task-number,
    :is(#main-menu, .help-production-home) .home-timer-panel[data-home-timer-interactions-enabled="0"] .home-timer-identity .plan-entry-task-name,
    :is(#main-menu, .help-production-home) .home-timer-panel[data-home-timer-interactions-enabled="0"] .home-timer-identity .plan-entry-client-number,
    :is(#main-menu, .help-production-home) .home-timer-panel[data-home-timer-interactions-enabled="0"] .home-timer-identity .plan-entry-client-name {
        min-height: clamp(20px, 10.3cqh, 27px);
    }

    :is(#main-menu, .help-production-home) .home-timer-panel[data-home-timer-interactions-enabled="0"] .home-timer-identity .plan-entry-task-name {
        font-size: clamp(12px, 6.1cqh, 16px);
    }

    :is(#main-menu, .help-production-home) .home-timer-panel[data-home-timer-interactions-enabled="0"] .home-timer-identity .plan-entry-task-number,
    :is(#main-menu, .help-production-home) .home-timer-panel[data-home-timer-interactions-enabled="0"] .home-timer-identity .plan-entry-client-number,
    :is(#main-menu, .help-production-home) .home-timer-panel[data-home-timer-interactions-enabled="0"] .home-timer-identity .plan-entry-client-name {
        font-size: clamp(12px, 5.35cqh, 14px);
    }
}

:is(#main-menu, .help-production-home) .home-day-renderer-grid {
    box-sizing: border-box;
    grid-column: 1;
    grid-row: 2;
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, var(--home-plan-card-target-width)))
        minmax(0, var(--home-month-plan-card-target-width));
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    align-content: flex-start;
    gap: 10px;
    justify-self: start;
    width: min(100%, var(--home-day-renderer-grid-width));
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

:is(#main-menu, .help-production-home) .home-day-renderer-grid > .home-plan-preview-panel--plans {
    grid-column: 1;
    grid-row: 1;
}

:is(#main-menu, .help-production-home) .home-day-renderer-grid > .home-plan-preview-panel--times {
    grid-column: 2;
    grid-row: 1;
}

:is(#main-menu, .help-production-home) .home-day-renderer-grid > .home-month-plan-panel {
    grid-column: 3;
    grid-row: 1;
}

:is(#main-menu, .help-production-home) .home-day-renderer-grid[data-home-day-layout-mode="list"] {
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1780px) and (min-height: 820px) {
    :is(#main-menu, .help-production-home) .home-day-renderer-grid {
        height: var(--home-day-renderer-height, 100%);
        max-height: var(--home-day-renderer-height, 100%);
    }

    :is(#main-menu, .help-production-home) .home-day-renderer-grid[data-home-day-layout-mode="list"] > .home-plan-preview-panel {
        align-self: stretch;
        height: auto;
        max-height: 100%;
        min-height: 0;
    }
}

:is(#main-menu, .help-production-home) .home-day-renderer-grid.is-renderer-layout-frozen {
    width: var(--home-day-renderer-frozen-width) !important;
    min-width: var(--home-day-renderer-frozen-width) !important;
    max-width: var(--home-day-renderer-frozen-width) !important;
    height: var(--home-day-renderer-frozen-height) !important;
    min-height: var(--home-day-renderer-frozen-height) !important;
    max-height: var(--home-day-renderer-frozen-height) !important;
    contain: layout paint;
}

:is(#main-menu, .help-production-home) .home-day-renderer-grid[data-home-day-layout-mode="list"] > .home-plan-preview-panel--plans {
    grid-column: 1 / span 2;
    grid-row: 1;
}

:is(#main-menu, .help-production-home) .home-day-renderer-grid[data-home-day-layout-mode="list"] > .home-plan-preview-panel--times {
    grid-column: 1 / span 2;
    grid-row: 2;
}

:is(#main-menu, .help-production-home) .home-day-renderer-grid[data-home-day-layout-mode="list"] > .home-month-plan-panel {
    grid-column: 3;
    grid-row: 1 / span 2;
}

:is(#main-menu, .help-production-home) .home-plan-preview-panel {
    box-sizing: border-box;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 9px;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

:is(#main-menu, .help-production-home) .home-plan-panel-heading-copy {
    flex: 1 1 auto;
    min-width: 0;
}

:is(#main-menu, .help-production-home) .home-plan-panel-heading-copy h2,
:is(#main-menu, .help-production-home) .home-plan-panel-heading-copy p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:is(#main-menu, .help-production-home) .home-plan-preview-panel .home-panel-header > .home-plan-renderer-mode-toggle {
    display: inline-flex;
    align-items: stretch;
    flex: 0 0 auto;
    gap: 0;
    margin-left: auto;
}

:is(#main-menu, .help-production-home) .home-plan-renderer-mode-toggle > .btn + .btn {
    margin-left: -1px;
}

:is(#main-menu, .help-production-home) .home-plan-renderer-mode-toggle .btn {
    float: none;
    padding: 4px 8px;
    border-color: #9db7c8;
    color: #315b75;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

:is(#main-menu, .help-production-home) .home-plan-renderer-mode-toggle .btn:hover,
:is(#main-menu, .help-production-home) .home-plan-renderer-mode-toggle .btn:focus-visible {
    border-color: #6e9ab5;
    background: #eef7fb;
    color: #234f6c;
}

:is(#main-menu, .help-production-home) .home-plan-renderer-mode-toggle .btn.active {
    border-color: #285f80;
    background: #2f6f95;
    color: #ffffff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.16);
}

:is(#main-menu, .help-production-home) .home-plan-renderer-mode-toggle .btn:disabled {
    cursor: wait;
    opacity: 0.72;
}

:is(#main-menu, .help-production-home) .home-plan-renderer-mode-toggle.is-renderer-floating {
    position: fixed;
    z-index: 1060;
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    margin: 0;
    transform: none;
    will-change: left, top;
}

:is(#main-menu, .help-production-home) .home-plan-preview-body {
    display: flex;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

:is(#main-menu, .help-production-home) .home-plan-preview-panel.is-height-locked .home-plan-preview-body {
    flex: 0 0 var(--home-plan-preview-locked-body-height);
    height: var(--home-plan-preview-locked-body-height);
    max-height: var(--home-plan-preview-locked-body-height);
}

:is(#main-menu, .help-production-home) .home-plan-preview-full {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding-left: var(--home-plan-column-buffer);
    padding-right: var(--home-plan-column-buffer);
    overflow: hidden;
}

:is(#main-menu, .help-production-home) .home-plan-list-shell {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 0;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(47, 96, 127, 0.45) transparent;
}

:is(#main-menu, .help-production-home) .home-plan-minimal-table {
    width: 100%;
    min-width: 900px;
    margin: 0;
}

:is(#main-menu, .help-production-home) .home-plan-preview-panel[data-home-plan-renderer-mode="list"] .plan-minimal-day-header {
    padding-right: 72px;
    padding-left: 72px;
}

:is(#main-menu, .help-production-home) .home-day-renderer-grid.is-renderer-transitioning > .home-panel {
    transform-origin: top left;
    will-change: transform;
}

:is(#main-menu, .help-production-home) .home-day-renderer-grid.is-renderer-transitioning .home-plan-preview-body {
    animation: home-plan-renderer-content-reveal 460ms cubic-bezier(0.22, 0.78, 0.2, 1) both;
}

@keyframes home-plan-renderer-content-reveal {
    0% {
        opacity: 0.22;
        transform: translateY(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

:is(#main-menu, .help-production-home) .home-plan-preview-row {
    flex: 1 1 auto;
    width: auto;
    height: 100%;
    min-height: 0;
}

:is(#main-menu, .help-production-home) .home-plan-preview-panel.is-height-locked .home-plan-preview-full,
:is(#main-menu, .help-production-home) .home-plan-preview-panel.is-height-locked .home-plan-day-carousel,
:is(#main-menu, .help-production-home) .home-plan-preview-panel.is-height-locked .home-plan-day-carousel-viewport,
:is(#main-menu, .help-production-home) .home-plan-preview-panel.is-height-locked .home-plan-day-carousel-slide,
:is(#main-menu, .help-production-home) .home-plan-preview-panel.is-height-locked .home-plan-preview-row {
    height: 100%;
    max-height: 100%;
    min-height: 0;
}

:is(#main-menu, .help-production-home) .home-plan-day-carousel {
    position: relative;
    display: grid;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
}

:is(#main-menu, .help-production-home) .home-plan-day-carousel-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

:is(#main-menu, .help-production-home) .home-plan-day-carousel-viewport.is-switching {
    transition: height 0.4s ease;
}

:is(#main-menu, .help-production-home) .home-plan-day-carousel-slide {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0 var(--home-plan-carousel-edge-padding) 2px;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

:is(#main-menu, .help-production-home) .home-plan-day-carousel-slide.is-hidden {
    display: none;
}

:is(#main-menu, .help-production-home) .home-plan-day-carousel-slide.slide-out-left,
:is(#main-menu, .help-production-home) .home-plan-day-carousel-slide.slide-out-right,
:is(#main-menu, .help-production-home) .home-plan-day-carousel-slide.slide-in-left,
:is(#main-menu, .help-production-home) .home-plan-day-carousel-slide.slide-in-right {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

:is(#main-menu, .help-production-home) .home-plan-day-carousel-slide.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
}

:is(#main-menu, .help-production-home) .home-plan-day-carousel-slide.slide-out-right {
    transform: translateX(100%);
    opacity: 0;
}

:is(#main-menu, .help-production-home) .home-plan-day-carousel-slide.slide-in-left {
    transform: translateX(-100%);
    opacity: 0;
}

:is(#main-menu, .help-production-home) .home-plan-day-carousel-slide.slide-in-right {
    transform: translateX(100%);
    opacity: 0;
}

:is(#main-menu, .help-production-home) .home-plan-day-carousel-nav {
    position: absolute;
    top: 8px;
    z-index: 24;
    width: 40px;
    height: 30px;
    opacity: 0.92;
}

:is(#main-menu, .help-production-home) .home-plan-day-carousel-nav.is-prev {
    left: calc(var(--home-plan-carousel-edge-padding) + 20px);
}

:is(#main-menu, .help-production-home) .home-plan-day-carousel-nav.is-next {
    right: calc(var(--home-plan-carousel-edge-padding) + 20px);
}

:is(#main-menu, .help-production-home) .home-plan-day-carousel-nav .glyphicon {
    top: 0;
    font-size: 13px;
}

:is(#main-menu, .help-production-home) .home-plan-day-carousel.is-loading .home-plan-day-carousel-nav {
    opacity: 0.92;
    pointer-events: auto;
}

:is(#main-menu, .help-production-home) .home-plan-day-carousel-nav:disabled,
:is(#main-menu, .help-production-home) .home-plan-day-carousel-nav[aria-disabled="true"] {
    opacity: 0.5;
    pointer-events: none;
}

:is(#main-menu, .help-production-home) .home-carousel-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 0;
    min-height: 150px;
    width: 100%;
    height: 100%;
    padding: 18px;
    color: #43657c;
    text-align: center;
}

:is(#main-menu, .help-production-home) .home-carousel-loading-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--progress-actual-base, #52B2CF);
    font-size: 22px;
    line-height: 1;
    animation: home-carousel-loading-spin 0.9s linear infinite;
}

:is(#main-menu, .help-production-home) .home-carousel-loading-text {
    color: #496171;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

:is(#main-menu, .help-production-home) .home-plan-preview-row > .connectedDate_day.home-plan-loading-day {
    display: flex;
    align-items: stretch;
    justify-content: center;
    overflow: hidden !important;
    border-color: color-mix(in srgb, var(--progress-actual-base, #52B2CF) 22%, #d8e4ed);
    background: linear-gradient(180deg, #fbfdff 0%, #f3f8fc 100%);
}

@keyframes home-carousel-loading-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

:is(#main-menu, .help-production-home) .home-plan-preview-row.row-datesgroup {
    align-items: stretch;
    margin-left: 0;
    margin-right: 0;
}

:is(#main-menu, .help-production-home) .home-plan-preview-row > .connectedDate_day {
    flex: 0 0 min(100%, var(--home-plan-day-width));
    width: min(100%, var(--home-plan-day-width));
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: hidden !important;
}

:is(#main-menu, .help-production-home) .home-plan-preview-panel.is-height-locked .home-plan-preview-row > .connectedDate_day {
    height: 100%;
    max-height: 100% !important;
    min-height: 0;
}

:is(#main-menu, .help-production-home) .home-plan-preview-panel .sticky-header.plan-day-header {
    padding: 9px 8px;
}

:is(#main-menu, .help-production-home) .home-plan-preview-panel .plan-day-header-top {
    justify-content: center;
    min-height: 28px;
}

:is(#main-menu, .help-production-home) .home-plan-preview-panel .plan-day-heading {
    flex: 0 1 auto;
    text-align: center;
}

:is(#main-menu, .help-production-home) .home-plan-preview-panel .plan-day-title {
    justify-content: center;
    padding: 0;
    text-align: center;
}

:is(#main-menu, .help-production-home) .home-plan-preview-panel .plan-day-title-icon,
:is(#main-menu, .help-production-home) .home-plan-preview-panel .plan-day-details-link,
:is(#main-menu, .help-production-home) .home-plan-preview-panel .plan-day-header-progress-row {
    display: none !important;
}

:is(#main-menu, .help-production-home) .home-plan-preview-panel .connectedDate_drop {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(47, 96, 127, 0.42) transparent;
    scrollbar-gutter: stable;
}

:is(#main-menu, .help-production-home) .home-plan-preview-panel .connectedDate_drop::-webkit-scrollbar {
    width: 6px;
}

:is(#main-menu, .help-production-home) .home-plan-preview-panel .connectedDate_drop::-webkit-scrollbar-track {
    background: transparent;
}

:is(#main-menu, .help-production-home) .home-plan-preview-panel .connectedDate_drop::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(47, 96, 127, 0.34);
}

:is(#main-menu, .help-production-home) .home-plan-preview-panel .connectedDate_drop::-webkit-scrollbar-thumb:hover {
    background: rgba(47, 96, 127, 0.52);
}

:is(#main-menu, .help-production-home) .home-plan-preview-panel.plan-table-runtime .row-striped.is-plan-interactions-disabled .plan-entry-card:hover,
:is(#main-menu, .help-production-home) .home-plan-preview-panel.plan-table-runtime .row-striped.is-plan-interactions-disabled .plan-entry-card:focus-within {
    transform: translateY(-1px);
    box-shadow: var(--plan-card-shadow-hover);
}

:is(#main-menu, .help-production-home) .home-month-plan-panel {
    box-sizing: border-box;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 9px;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

:is(#main-menu, .help-production-home) .home-month-plan-carousel {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel.is-height-locked .home-month-plan-carousel,
:is(#main-menu, .help-production-home) .home-month-plan-panel.is-height-locked .home-month-plan-month-column {
    height: var(--home-plan-preview-locked-body-height);
    max-height: var(--home-plan-preview-locked-body-height);
    min-height: 0;
}

:is(#main-menu, .help-production-home) .home-month-plan-month-column {
    box-sizing: border-box;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--plan-column-border, #c8d9e6);
    border-radius: 12px;
    background: var(--plan-surface, #f7fafd);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

:is(#main-menu, .help-production-home) .home-month-plan-month-column.is-current-month {
    border-color: color-mix(in srgb, var(--progress-actual-base, #52B2CF) 58%, #7aa9bf);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 0 30px 0 color-mix(in srgb, var(--progress-actual-base, #52B2CF) 18%, transparent),
        0 0 0 1px color-mix(in srgb, var(--progress-actual-base, #52B2CF) 26%, transparent);
}

:is(#main-menu, .help-production-home) .home-month-plan-month-header.sticky-header.plan-day-header {
    position: relative;
    min-width: 0;
    min-height: 0;
    padding: 9px 48px;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid var(--plan-column-border, #c8d9e6);
    border-radius: 0;
    background: var(--plan-header-gradient, linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%));
    box-shadow: none;
}

:is(#main-menu, .help-production-home) .home-month-plan-month-column.is-current-month .home-month-plan-month-header.sticky-header.plan-day-header {
    border-bottom-color: color-mix(in srgb, var(--progress-actual-base, #52B2CF) 35%, var(--plan-column-border, #c8d9e6));
}

:is(#main-menu, .help-production-home) .home-month-plan-month-header .home-month-plan-month-header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
}

:is(#main-menu, .help-production-home) .home-month-plan-month-heading {
    min-width: 0;
    text-align: center;
}

:is(#main-menu, .help-production-home) .home-month-plan-month-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    margin: 0;
    padding: 0 5px 2px;
    overflow: hidden;
    border-radius: 8px;
    color: #24445d;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.08;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:is(#main-menu, .help-production-home) .home-month-plan-month-column.is-current-month .home-month-plan-month-title {
    background-color: color-mix(in srgb, var(--progress-actual-base, #52B2CF) 34%, white);
    outline: 2px solid color-mix(in srgb, var(--progress-actual-base, #52B2CF) 42%, transparent);
}

:is(#main-menu, .help-production-home) .home-month-plan-nav {
    position: absolute;
    top: 50%;
    z-index: 24;
    width: 38px;
    height: 28px;
    opacity: 0.92;
    transform: translateY(-50%);
}

:is(#main-menu, .help-production-home) .home-month-plan-nav.is-prev {
    left: 8px;
}

:is(#main-menu, .help-production-home) .home-month-plan-nav.is-next {
    right: 8px;
}

:is(#main-menu, .help-production-home) .home-month-plan-nav .glyphicon {
    top: 0;
    font-size: 13px;
}

:is(#main-menu, .help-production-home) .home-month-plan-carousel.is-loading .home-month-plan-nav {
    opacity: 0.92;
    pointer-events: auto;
}

:is(#main-menu, .help-production-home) .home-month-plan-nav:disabled,
:is(#main-menu, .help-production-home) .home-month-plan-nav[aria-disabled="true"] {
    opacity: 0.5;
    pointer-events: none;
}

:is(#main-menu, .help-production-home) .home-month-plan-carousel-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

:is(#main-menu, .help-production-home) .home-month-plan-carousel-viewport.is-switching {
    transition: height 0.4s ease;
}

:is(#main-menu, .help-production-home) .home-month-plan-slide {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

:is(#main-menu, .help-production-home) .home-month-plan-slide.is-hidden {
    display: none;
}

:is(#main-menu, .help-production-home) .home-month-plan-loading-state {
    min-height: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
}

:is(#main-menu, .help-production-home) .home-month-plan-slide.slide-out-left,
:is(#main-menu, .help-production-home) .home-month-plan-slide.slide-out-right,
:is(#main-menu, .help-production-home) .home-month-plan-slide.slide-in-left,
:is(#main-menu, .help-production-home) .home-month-plan-slide.slide-in-right {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

:is(#main-menu, .help-production-home) .home-month-plan-slide.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
}

:is(#main-menu, .help-production-home) .home-month-plan-slide.slide-out-right {
    transform: translateX(100%);
    opacity: 0;
}

:is(#main-menu, .help-production-home) .home-month-plan-slide.slide-in-left {
    transform: translateX(-100%);
    opacity: 0;
}

:is(#main-menu, .help-production-home) .home-month-plan-slide.slide-in-right {
    transform: translateX(100%);
    opacity: 0;
}

:is(#main-menu, .help-production-home) .home-month-plan-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    margin: 0;
    padding: 6px 4px 6px 6px;
    overflow-x: hidden;
    overflow-y: auto;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(114, 133, 150, 0.45) transparent;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel.is-height-locked .home-month-plan-carousel-viewport,
:is(#main-menu, .help-production-home) .home-month-plan-panel.is-height-locked .home-month-plan-slide,
:is(#main-menu, .help-production-home) .home-month-plan-panel.is-height-locked .home-month-plan-list {
    height: 100%;
    max-height: 100%;
    min-height: 0;
}

:is(#main-menu, .help-production-home) .home-month-plan-list::-webkit-scrollbar {
    width: 6px;
}

:is(#main-menu, .help-production-home) .home-month-plan-list::-webkit-scrollbar-track {
    background: transparent;
}

:is(#main-menu, .help-production-home) .home-month-plan-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(114, 133, 150, 0.36);
}

:is(#main-menu, .help-production-home) .home-month-plan-list::-webkit-scrollbar-thumb:hover {
    background: rgba(114, 133, 150, 0.58);
}

:is(#main-menu, .help-production-home) .home-month-plan-empty-state {
    box-sizing: border-box;
    align-content: center;
    height: calc(100% - 12px);
    margin: 6px;
}

:is(#main-menu, .help-production-home) .home-month-plan-item {
    display: grid;
    grid-template-rows: auto minmax(150px, auto);
    gap: 10px;
    min-width: 0;
    padding: 8px;
    border: 1px solid #d8e4ed;
    border-radius: 8px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
    box-shadow: 0 1px 2px rgba(25, 53, 72, 0.08);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

:is(#main-menu, .help-production-home) .home-month-plan-item:hover,
:is(#main-menu, .help-production-home) .home-month-plan-item:focus-within {
    transform: translateY(-1px);
    border-color: #aac4d8;
    background: linear-gradient(180deg, #ffffff 0%, #eef6fb 100%);
    box-shadow: 0 3px 8px rgba(24, 55, 79, 0.14);
}

:is(#main-menu, .help-production-home) .home-month-plan-first-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    column-gap: 8px;
    min-width: 0;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-client-display {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-height: 52px;
    padding: 4px 0;
    box-sizing: border-box;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-client-display::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid #dbe7f0;
    border-radius: 9px;
    background: linear-gradient(180deg, #fcfdff 0%, #f5f9fc 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
    z-index: 0;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-client-display::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 58px;
    border-radius: 9px 0 0 9px;
    background: linear-gradient(180deg, #edf6fd 0%, #e3f0fa 100%);
    z-index: 0;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-client-number {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    width: 58px;
    min-width: 58px;
    padding-right: 10px;
    padding-left: 6px;
    margin: 0;
    border-right: 1px solid #cfdfeb;
    font-weight: 700;
    color: #156d9f;
    font-size: 14px;
    line-height: 1.05;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-client-name {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding-right: 10px;
    padding-left: 10px;
    color: #2f3e4a;
    font-size: 13px;
    line-height: 1.22;
    display: -webkit-box;
    max-height: calc(1.22em * 3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-category-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 86px;
    max-width: 116px;
    padding: 6px 9px;
    border: 0;
    border-radius: 8px;
    box-shadow: var(--ui-badge-shadow, 0 1px 3px rgba(0, 0, 0, 0.2));
    line-height: 1.2;
    box-sizing: border-box;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-category-badge-type {
    margin-bottom: 3px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.9;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-category-badge-period {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-category-badge.ym2-category-badge-cat-ja {
    background-color: rgba(198, 223, 178, 0.55);
    border-color: rgba(135, 173, 103, 0.4);
    color: #2c4f30;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-category-badge.ym2-category-badge-cat-bh {
    background-color: rgba(250, 192, 190, 0.55);
    border-color: rgba(216, 159, 157, 0.45);
    color: #5a3236;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-category-badge.ym2-category-badge-cat-lv {
    background-color: rgba(191, 247, 247, 0.58);
    border-color: rgba(139, 201, 201, 0.48);
    color: #24525a;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-category-badge.ym2-category-badge-cat-wp {
    background-color: rgba(255, 215, 76, 0.5);
    border-color: rgba(210, 177, 41, 0.45);
    color: #5a4700;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-category-badge.ym2-category-badge-cat-br {
    background-color: rgba(183, 204, 236, 0.55);
    border-color: rgba(144, 163, 207, 0.45);
    color: #1d2e4f;
}

:is(#main-menu, .help-production-home) .home-month-plan-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
    min-width: 0;
    min-height: 168px;
    padding: 20px 9px 6px;
    border: 1px solid rgba(215, 226, 234, 0.82);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

:is(#main-menu, .help-production-home) .home-month-plan-bar-slot {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-width: 76px;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-shell {
    width: 64px;
    min-height: 24px;
    --ym2-base-slot-height: 30px;
    --ym2-planned-label-top: -7px;
    --ym2-scheduled-label-top: 3px;
    --ym2-label-bg-planned: color-mix(in srgb, #ffffff 56%, var(--ym2-fill-color, #C6DFB2) 44%);
    --ym2-label-bg-scheduled: color-mix(in srgb, #ffffff 42%, var(--ym2-fill-scheduled-color, #9FBE7E) 58%);
    --ym2-label-border-planned: color-mix(in srgb, var(--ym2-accent-border, #8ea486) 48%, #ffffff 52%);
    --ym2-label-border-scheduled: color-mix(in srgb, var(--ym2-fill-scheduled-color, #9FBE7E) 54%, #ffffff 46%);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    box-sizing: border-box;
    overflow: visible;
    border: 1px solid var(--ym2-bar-separator, #d6e0e8);
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, #f9fcff 0%, #eef4f9 100%);
    user-select: none;
    transform-origin: bottom center;
    transition: height 240ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 240ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 180ms ease, box-shadow 220ms ease;
    will-change: auto;
}

:is(#main-menu, .help-production-home) .home-month-plan-item:hover .ym2-bar-shell {
    transform: translateY(-1px);
    box-shadow: 0 2px 7px rgba(22, 45, 67, 0.16);
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-fill {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    background: var(--ym2-fill-color, #C6DFB2);
    transition: background 180ms ease, opacity 160ms ease;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-fill-scheduled {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--ym2-scheduled-fill-height, 0px);
    max-height: 100%;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--ym2-fill-scheduled-color, #9FBE7E) 72%, #5c7650 28%) 0px,
        color-mix(in srgb, var(--ym2-fill-scheduled-color, #9FBE7E) 72%, #5c7650 28%) 1px,
        var(--ym2-fill-scheduled-color, #9FBE7E) 1px,
        var(--ym2-fill-scheduled-color, #9FBE7E) 100%
    );
    transition: height 220ms cubic-bezier(0.22, 0.61, 0.36, 1), background 180ms ease;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-values {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 30;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-value-inline {
    position: absolute;
    left: 50%;
    top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: calc(100% - 8px);
    padding: 0 4px;
    border: 1px solid var(--ym2-label-border-planned, color-mix(in srgb, var(--ym2-accent-border, #8ea486) 48%, #ffffff 52%));
    border-radius: 4px;
    background: var(--ym2-label-bg-planned, color-mix(in srgb, #ffffff 56%, var(--ym2-fill-color, #C6DFB2) 44%));
    box-shadow: 0 1px 2px rgba(18, 39, 57, 0.18);
    color: #1f3d57;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, -4px);
    transition: opacity 180ms ease, transform 200ms cubic-bezier(0.22, 0.61, 0.36, 1), top 200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-value-inline.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-value-inline.ym2-bar-value-inline-planned {
    top: var(--ym2-planned-label-top, 0px);
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-value-inline.ym2-bar-value-inline-scheduled {
    top: var(--ym2-scheduled-label-top, 3px);
    border-color: var(--ym2-label-border-scheduled, color-mix(in srgb, var(--ym2-fill-scheduled-color, #9FBE7E) 54%, #ffffff 46%));
    background: var(--ym2-label-bg-scheduled, color-mix(in srgb, #ffffff 42%, var(--ym2-fill-scheduled-color, #9FBE7E) 58%));
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-shell.ym2-zero-hours .ym2-bar-value-inline {
    opacity: 0 !important;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-value-chips {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 0;
    pointer-events: none;
    z-index: 36;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-value-chip {
    position: absolute;
    left: 50%;
    top: -18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: calc(100% - 4px);
    padding: 0 4px;
    border: 1px solid var(--ym2-label-border-planned, color-mix(in srgb, var(--ym2-accent-border, #8ea486) 48%, #ffffff 52%));
    border-radius: 4px;
    background: var(--ym2-label-bg-planned, color-mix(in srgb, #ffffff 56%, var(--ym2-fill-color, #C6DFB2) 44%));
    box-shadow: 0 1px 2px rgba(18, 39, 57, 0.18);
    color: #1f3d57;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, -2px);
    transition: opacity 180ms ease, transform 200ms cubic-bezier(0.22, 0.61, 0.36, 1), top 200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-value-chip.ym2-bar-value-chip-scheduled {
    border-color: var(--ym2-label-border-scheduled, color-mix(in srgb, var(--ym2-fill-scheduled-color, #9FBE7E) 54%, #ffffff 46%));
    background: var(--ym2-label-bg-scheduled, color-mix(in srgb, #ffffff 42%, var(--ym2-fill-scheduled-color, #9FBE7E) 58%));
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-value-chip.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-value-chip[data-chip-order="0"] {
    top: -18px;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-value-chip[data-chip-order="1"] {
    top: -36px;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-shell.ym2-zero-hours {
    min-height: 30px;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-shell.ym2-zero-hours .ym2-bar-fill {
    flex: 0 0 0;
    min-height: 0;
    max-height: 0;
    opacity: 0;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-shell.ym2-zero-hours .ym2-bar-base {
    flex-basis: calc(var(--ym2-base-slot-height, 30px) - 2px);
    height: calc(var(--ym2-base-slot-height, 30px) - 2px);
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-hours {
    display: block;
    max-width: 100%;
    min-height: 0;
    width: auto;
    padding: 0;
    margin: 0;
    color: #2f4c63;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: transparent;
    transition: color 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .home-month-plan-vertical-bar .ym2-bar-hours {
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .home-month-plan-vertical-bar--planned .ym2-bar-hours {
    color: #4f7436;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-base {
    position: relative;
    isolation: isolate;
    width: 100%;
    flex: 0 0 var(--ym2-base-slot-height, 30px);
    height: var(--ym2-base-slot-height, 30px);
    margin-top: auto;
    padding: 0 4px;
    overflow: hidden;
    border-top: 1px solid color-mix(in srgb, var(--ym2-accent-border, var(--ym2-bar-separator, #d6e0e8)) 82%, #5a6f82 18%);
    background: linear-gradient(180deg, #fdfefe 0%, #eef4f9 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition: border-color 220ms ease, border-top-color 220ms ease, box-shadow 220ms ease;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-base::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--state-done-top, #d8efde) 72%, #ffffff 28%) 0%,
        color-mix(in srgb, var(--state-done-base, #a8d4b2) 76%, #e8f5ec 24%) 100%
    );
    transition: opacity 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-base > * {
    position: relative;
    z-index: 1;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-hours-wrap {
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 0;
    height: 20px;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition: opacity 220ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-hours-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 56px;
    min-height: 20px;
    padding: 1px 6px;
    border: 1px solid color-mix(in srgb, var(--ym2-accent-border, #cdd4dc) 58%, #d9e4ed 42%);
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff 0%, #edf4fa 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 1px 2px rgba(34, 58, 78, 0.12);
    transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-hours.is-compact {
    font-size: 9px;
    letter-spacing: -0.01em;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-shell.is-done {
    box-shadow: none;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-shell.is-done .ym2-bar-hours-pill {
    border-color: #9fc8a8;
    background: linear-gradient(180deg, #f6fcf7 0%, #e4f1e8 100%);
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-shell.is-done .ym2-bar-base::before {
    opacity: 1;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-shell.is-done .ym2-bar-base {
    border-top-color: color-mix(in srgb, var(--state-done-border, #5e9a6a) 58%, #8ab495 42%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.52),
        0 0 0 1px color-mix(in srgb, var(--state-done-border, #5e9a6a) 14%, transparent);
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-shell.is-done .ym2-bar-hours {
    color: #2b5a39;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-bar-shell.home-month-plan-vertical-bar--planned .ym2-bar-hours {
    color: #4f7436;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .home-month-plan-vertical-bar--actual {
    --ym2-label-bg-planned: color-mix(in srgb, #ffffff 52%, var(--progress-actual-base, #52B2CF) 48%);
    --ym2-label-border-planned: color-mix(in srgb, var(--progress-actual-base, #52B2CF) 52%, #ffffff 48%);
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .home-month-plan-vertical-bar--actual .ym2-bar-fill-scheduled {
    display: none;
}

:is(#main-menu, .help-production-home) .home-month-plan-panel .home-month-plan-vertical-bar--actual .ym2-bar-hours {
    color: color-mix(in srgb, var(--progress-actual-base, #52B2CF) 64%, #1f3d57);
}

:is(#main-menu, .help-production-home) .home-module-section {
    margin-top: 2px;
}

:is(#main-menu, .help-production-home) .home-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 7px;
}

:is(#main-menu, .help-production-home) .home-section-heading h2 {
    margin: 0;
    color: #1f3e56;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

:is(#main-menu, .help-production-home) .home-section-heading span {
    color: #7c8f9d;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

:is(#main-menu, .help-production-home) .home-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
}

:is(#main-menu, .help-production-home) .home-menu-tile,
:is(#main-menu, .help-production-home) .home-menu-tile:hover,
:is(#main-menu, .help-production-home) .home-menu-tile:focus {
    color: inherit;
    text-decoration: none;
}

:is(#main-menu, .help-production-home) .home-menu-card {
    --home-card-rgb: 122, 168, 198;
    --home-card-accent-top: #d8ecfb;
    --home-card-accent-base: #9ec3e9;
    --home-card-title: #234760;
    --home-card-title-soft: #25556f;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-height: 112px;
    height: 100%;
    padding: 8px 9px 9px 12px;
    overflow: hidden;
    border: 1px solid var(--home-card-border);
    border-radius: 8px;
    background: var(--home-card-gradient);
    box-shadow: var(--home-card-shadow);
    transition: box-shadow 0.17s ease, transform 0.17s ease, border-color 0.17s ease, background 0.17s ease;
}

:is(#main-menu, .help-production-home) .home-menu-card::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--home-card-accent-top) 0%, var(--home-card-accent-base) 100%);
}

:is(#main-menu, .help-production-home) .home-menu-card:hover {
    transform: translateY(-1px);
    border-color: var(--home-card-border-hover);
    box-shadow: var(--home-card-shadow-hover);
}

:is(#main-menu, .help-production-home) .home-menu-card:focus,
:is(#main-menu, .help-production-home) .home-menu-card:focus-visible {
    outline: none;
    border-color: #7ca8c7;
    box-shadow: var(--ui-press-focus-ring), var(--home-card-shadow-hover);
}

:is(#main-menu, .help-production-home) .home-menu-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 7px;
    min-width: 0;
}

:is(#main-menu, .help-production-home) .home-menu-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    border: 1px solid rgba(var(--home-card-rgb), 0.48);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(var(--home-card-rgb), 0.28) 100%);
    color: var(--home-card-title-soft);
    box-shadow: var(--ui-badge-shadow, 0 1px 3px rgba(0, 0, 0, 0.18));
}

:is(#main-menu, .help-production-home) .home-menu-card-icon .glyphicon {
    top: 0;
    font-size: 14px;
    line-height: 1;
}

:is(#main-menu, .help-production-home) .home-menu-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 0 0 auto;
    max-width: 104px;
    min-height: 20px;
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--home-action-bg);
    color: var(--home-action-text);
    box-shadow: var(--ui-badge-shadow, 0 1px 3px rgba(0, 0, 0, 0.18));
    font-size: 9px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

:is(#main-menu, .help-production-home) .home-menu-card-action .glyphicon {
    top: 0;
    font-size: 8px;
    line-height: 1;
}

:is(#main-menu, .help-production-home) .home-menu-card-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

:is(#main-menu, .help-production-home) .home-menu-card-title {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 24px;
    padding: 0 8px 6px 0;
    overflow: hidden;
    color: var(--home-card-title);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:is(#main-menu, .help-production-home) .home-menu-card-title::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(var(--home-card-rgb), 0.78) 0%, rgba(var(--home-card-rgb), 0.22) 100%);
}

:is(#main-menu, .help-production-home) .home-menu-card-description {
    display: block;
    min-width: 0;
    color: var(--home-text-soft);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

:is(#main-menu, .help-production-home) .home-menu-card--dashboard,
:is(#main-menu, .help-production-home) .home-menu-card--day-plan {
    --home-card-rgb: 158, 195, 233;
    --home-card-accent-top: var(--state-active-top, #d7e8f9);
    --home-card-accent-base: var(--state-active-base, #9ec3e9);
    --home-card-title: #21496f;
    --home-card-title-soft: #2d5874;
}

:is(#main-menu, .help-production-home) .home-menu-card--tasks {
    --home-card-rgb: var(--bookkeeping-color);
    --home-card-accent-top: #fbe5e3;
    --home-card-accent-base: #efb6af;
    --home-card-title: #5a3a38;
    --home-card-title-soft: #7b4944;
}

:is(#main-menu, .help-production-home) .home-menu-card--month-plan {
    --home-card-rgb: var(--annualaccount-color);
    --home-card-accent-top: #edf7e7;
    --home-card-accent-base: #c6dfb2;
    --home-card-title: #3f5b34;
    --home-card-title-soft: #5f823d;
}

:is(#main-menu, .help-production-home) .home-menu-card--times,
:is(#main-menu, .help-production-home) .home-menu-card--punchclock {
    --home-card-rgb: 82, 178, 207;
    --home-card-accent-top: #d8f1f8;
    --home-card-accent-base: var(--progress-actual-base, #52B2CF);
    --home-card-title: #275a6a;
    --home-card-title-soft: #2f7384;
}

:is(#main-menu, .help-production-home) .home-menu-card--workspace {
    --home-card-rgb: var(--auditing-color);
    --home-card-accent-top: #fff4c8;
    --home-card-accent-base: #f4dd9a;
    --home-card-title: #695821;
    --home-card-title-soft: #806c1d;
}

:is(#main-menu, .help-production-home) .home-menu-card--logout {
    --home-card-rgb: 150, 170, 188;
    --home-card-accent-top: var(--state-skipped-top, #eef2f5);
    --home-card-accent-base: var(--state-skipped-base, #d8e0e6);
    --home-card-title: #2d4a61;
    --home-card-title-soft: #557085;
}

:is(#main-menu, .help-production-home) .home-menu-card--help {
    --home-card-rgb: 168, 212, 178;
    --home-card-accent-top: var(--state-done-top, #d8efde);
    --home-card-accent-base: var(--state-done-base, #a8d4b2);
    --home-card-title: #245533;
    --home-card-title-soft: #3d7b58;
}

/* When the dashboard cannot comfortably fit in one viewport, let the document
 * own the vertical scroll instead of shrinking or clipping the cards. */
@media (max-width: 1779px), (max-height: 819px) {
    body:has(#main-menu.home-menu-page) > :is(#main-menu.home-menu-page, .help-production-home) {
        flex: 1 0 auto;
        min-height: auto;
    }

    :is(#main-menu, .help-production-home) .home-menu-container,
    :is(#main-menu, .help-production-home) .home-overview-stage-content {
        min-height: auto;
    }

    :is(#main-menu, .help-production-home) .home-overview-stage.is-revealing,
    :is(#main-menu, .help-production-home) .home-overview-stage.is-ready,
    :is(#main-menu, .help-production-home) .home-overview-stage-content > .home-overview-grid,
    :is(#main-menu, .help-production-home) .home-overview-grid {
        flex: 0 0 auto;
    }

    :is(#main-menu, .help-production-home) .home-overview-stage-content {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
    }

    :is(#main-menu, .help-production-home) .home-overview-stage.is-revealing,
    :is(#main-menu, .help-production-home) .home-overview-stage.is-ready,
    :is(#main-menu, .help-production-home) .home-overview-grid {
        overflow: visible;
    }
}

@media (max-width: 1779px), (max-height: 819px) {
    :is(#main-menu, .help-production-home) .home-overview-grid {
        --home-month-plan-card-target-width: 288px;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto;
        align-items: start;
        min-height: 0;
        overflow: visible;
    }

    :is(#main-menu, .help-production-home) .home-today-panel,
    :is(#main-menu, .help-production-home) .home-day-renderer-grid,
    :is(#main-menu, .help-production-home) .home-plan-preview-panel,
    :is(#main-menu, .help-production-home) .home-month-plan-panel,
    :is(#main-menu, .help-production-home) .home-overview-right-column {
        grid-column: auto;
        grid-row: auto;
        height: auto;
    }

    :is(#main-menu, .help-production-home) .home-day-renderer-grid {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        min-height: 0;
        height: auto;
        overflow: visible;
    }

    :is(#main-menu, .help-production-home) .home-plan-preview-panel {
        flex: 1 1 300px;
        width: auto;
        max-width: none;
        min-height: 360px;
    }

    :is(#main-menu, .help-production-home) .home-month-plan-panel {
        flex: 1 1 300px;
        width: auto;
        max-width: none;
        min-height: 360px;
    }

    :is(#main-menu, .help-production-home) .home-today-panel {
        min-height: 250px;
    }

    :is(#main-menu, .help-production-home) .home-today-donut-head,
    :is(#main-menu, .help-production-home) .home-today-legend {
        height: auto;
        min-height: 190px;
    }

    :is(#main-menu, .help-production-home) .home-today-donut {
        width: clamp(154px, 14vw, 210px);
        height: auto;
    }

    :is(#main-menu, .help-production-home) .home-overview-right-column {
        align-self: stretch;
        height: auto;
    }

    :is(#main-menu, .help-production-home) .home-deadline-panel {
        height: auto;
        max-height: none;
    }

    :is(#main-menu, .help-production-home) .home-deadline-panel .home-deadline-list {
        max-height: clamp(320px, 50vh, 520px);
    }

    :is(#main-menu, .help-production-home) .home-day-renderer-grid[data-home-day-layout-mode="list"] {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    :is(#main-menu, .help-production-home) .home-day-renderer-grid[data-home-day-layout-mode="list"] > .home-plan-preview-panel {
        flex-basis: auto;
        width: 100%;
        max-width: 100%;
    }

    :is(#main-menu, .help-production-home) .home-day-renderer-grid[data-home-day-layout-mode="list"] > .home-month-plan-panel {
        flex-basis: auto;
        width: 100%;
        max-width: 100%;
    }

    :is(#main-menu, .help-production-home) .home-timer-panel {
        grid-template-rows: auto auto;
        gap: 10px;
        width: 100%;
        height: auto;
        padding: 11px 12px;
    }

    :is(#main-menu, .help-production-home) .home-timer-carousel,
    :is(#main-menu, .help-production-home) .home-timer-viewport,
    :is(#main-menu, .help-production-home) .home-timer-slide,
    :is(#main-menu, .help-production-home) .home-workmode-timer-block.timer-block {
        height: auto;
    }

    :is(#main-menu, .help-production-home) .home-timer-slide,
    :is(#main-menu, .help-production-home) .home-workmode-timer-block.timer-block {
        min-height: 0;
        max-height: none;
    }

    :is(#main-menu, .help-production-home) .home-workmode-timer-block.timer-block {
        flex-basis: auto;
    }

    :is(#main-menu, .help-production-home) .home-overview-empty-row {
        container-type: inline-size;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
        align-items: stretch;
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        min-height: 0;
    }

    :is(#main-menu, .help-production-home) .home-overview-empty-row > [aria-hidden="true"] {
        display: none;
    }

    :is(#main-menu, .help-production-home) .home-overview-empty-panel,
    :is(#main-menu, .help-production-home) .home-overview-empty-panel--wide,
    :is(#main-menu, .help-production-home) .home-overview-empty-panel--workplace,
    :is(#main-menu, .help-production-home) .home-overview-empty-panel--square {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        height: 180px;
        min-height: 180px;
        flex: none;
        aspect-ratio: auto;
    }

    :is(#main-menu, .help-production-home) .home-plan-preview-row > .connectedDate_day {
        width: min(100%, 390px);
        flex-basis: min(100%, 390px);
    }
}

@media (min-width: 768px) and (max-width: 1779px) {
    body:has(#main-menu.home-menu-page) #navcol-1 {
        padding-right: 280px;
    }
}

@media (min-width: 1200px) and (max-width: 1779px) {
    body:has(#main-menu.home-menu-page) .navbar .hidden-md {
        display: none !important;
    }
}

@media (max-width: 991px) {
    :is(#main-menu, .help-production-home) .home-overview-grid {
        --home-month-plan-card-target-width: 256px;
    }

    :is(#main-menu, .help-production-home) .home-today-legend {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :is(#main-menu, .help-production-home) .home-today-donut {
        width: 154px;
        height: 154px;
    }

    :is(#main-menu, .help-production-home) .home-menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    :is(#main-menu, .help-production-home) .home-overview-grid {
        --home-month-plan-card-target-width: 236px;
    }

    :is(#main-menu.home-menu-page, .help-production-home) {
        padding: 4px 0 24px;
    }

    :is(#main-menu, .help-production-home) .home-greeting-panel {
        padding: 11px 12px 12px 15px;
    }

    :is(#main-menu, .help-production-home) .home-greeting-copy h1 {
        font-size: 21px;
    }

    :is(#main-menu, .help-production-home) .home-today-panel {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    :is(#main-menu, .help-production-home) .home-today-donut-panel {
        overflow: visible;
    }

    :is(#main-menu, .help-production-home) .home-today-donut-head {
        height: auto;
    }

    :is(#main-menu, .help-production-home) .home-today-donut {
        width: 154px;
        height: 154px;
    }

    :is(#main-menu, .help-production-home) .home-today-legend {
        grid-template-columns: minmax(0, 1fr);
        min-width: 0;
        height: auto;
    }

    :is(#main-menu, .help-production-home) .home-today-breakdown-list {
        max-height: 110px;
    }

    :is(#main-menu, .help-production-home) .home-day-renderer-grid > .home-plan-preview-panel {
        flex-basis: 100%;
        max-width: 100%;
    }

    :is(#main-menu, .help-production-home) .home-day-renderer-grid > .home-month-plan-panel {
        flex-basis: 100%;
        width: 100%;
        max-width: 100%;
    }

    :is(#main-menu, .help-production-home) .home-overview-empty-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    :is(#main-menu, .help-production-home) .home-month-plan-first-top {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 8px;
    }

    :is(#main-menu, .help-production-home) .home-month-plan-panel .ym2-category-badge {
        justify-self: start;
    }

    :is(#main-menu, .help-production-home) .home-menu-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    :is(#main-menu, .help-production-home) .home-timer-panel {
        width: 100%;
    }

    :is(#main-menu, .help-production-home) .home-timer-carousel {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        gap: 7px;
    }

    :is(#main-menu, .help-production-home) .home-timer-carousel-nav {
        width: 36px;
        height: 32px;
    }

    :is(#main-menu, .help-production-home) .home-timer-viewport,
    :is(#main-menu, .help-production-home) .home-timer-slide,
    :is(#main-menu, .help-production-home) .home-workmode-timer-block.timer-block {
        height: auto;
    }

    :is(#main-menu, .help-production-home) .home-timer-slide,
    :is(#main-menu, .help-production-home) .home-workmode-timer-block.timer-block {
        min-height: 0;
        max-height: none;
    }

    :is(#main-menu, .help-production-home) .home-workmode-timer-block.timer-block {
        flex-basis: auto;
    }

    :is(#main-menu, .help-production-home) .home-workmode-timer-block > .panel-heading.flex-header {
        flex-wrap: wrap;
    }

    :is(#main-menu, .help-production-home) .home-workmode-timer-block .workmode-timer-heading-actions {
        flex: 1 1 100%;
        margin-left: 0;
    }

    :is(#main-menu, .help-production-home) .home-workmode-timer-block .home-timer-start-actions {
        flex: 1 1 100%;
        flex-wrap: wrap;
        margin-left: 0;
    }

    :is(#main-menu, .help-production-home) .home-workmode-timer-block .btn-stack {
        justify-content: flex-end;
    }

    :is(#main-menu, .help-production-home) .home-workmode-timer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    :is(#main-menu, .help-production-home) .home-workmode-timer-fields {
        grid-template-rows: none;
    }

    :is(#main-menu, .help-production-home) .home-workmode-times-shell .workmode-group-body {
        min-height: 142px;
    }

    :is(#main-menu, .help-production-home) .home-deadline-row {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "deadline"
            "client"
            "context";
        gap: 8px;
    }

    :is(#main-menu, .help-production-home) .home-deadline-date {
        display: block;
    }

    :is(#main-menu, .help-production-home) .home-deadline-client {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    :is(#main-menu, .help-production-home) .home-deadline-context {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    :is(#main-menu, .help-production-home) .home-menu-card {
        min-height: 100px;
    }
}

@media (max-width: 520px) {
    :is(#main-menu, .help-production-home) .home-overview-empty-row {
        grid-template-columns: minmax(0, 1fr);
    }

    :is(#main-menu, .help-production-home) .home-deadline-panel > .home-panel-header,
    :is(#main-menu, .help-production-home) .home-today-panel > .home-panel-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    :is(#main-menu, .help-production-home) .home-deadline-sort-toggle,
    :is(#main-menu, .help-production-home) .home-today-breakdown-toggle {
        flex-basis: calc(100% - 44px);
        width: calc(100% - 44px);
        max-width: calc(100% - 44px);
        margin-left: 44px;
    }
}

@container (max-width: 520px) {
    :is(#main-menu, .help-production-home) .home-deadline-row {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "deadline"
            "client"
            "context";
        min-height: 126px;
    }

    :is(#main-menu, .help-production-home) .home-deadline-context {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@container (max-width: 380px) {
    :is(#main-menu, .help-production-home) .home-deadline-date-line {
        grid-template-columns: auto minmax(0, 1fr);
    }

    :is(#main-menu, .help-production-home) .home-deadline-state-badge {
        grid-column: 1 / -1;
        justify-self: start;
        max-width: 100%;
    }
}

.fulltext-filter-host {
    width: 100%;
    max-width: 1170px;
    box-sizing: border-box;
    margin: 0 auto 10px;
    padding: 6px 0 0;
}

.filter-page--wide:has(.fulltext-filter-host) .filter-head-row {
    justify-content: flex-start;
    max-width: 1170px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 0;
}

.filter-page--wide:has(.fulltext-filter-host) .filter-head-leading {
    max-width: none;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
}

.filter-page--wide:has(.fulltext-filter-host) .filter-head-actions {
    order: -1;
}

.fulltext-filter-host .receipts-filter-form {
    margin: 0;
}

.fulltext-filter-toolbar {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.fulltext-search-field {
    grid-column: 1 / span 6;
    grid-row: 1;
}

.fulltext-number-field {
    grid-column: 7 / span 6;
    grid-row: 1;
}

.fulltext-filter-toolbar--has-all-staff .fulltext-number-field {
    grid-column: 7 / span 4;
}

.fulltext-source-field {
    grid-column: 1 / span 4;
    grid-row: 2;
}

.fulltext-date-from-field {
    grid-column: 5 / span 4;
    grid-row: 2;
}

.fulltext-date-to-field {
    grid-column: 9 / span 4;
    grid-row: 2;
}

.fulltext-all-staff-field {
    grid-column: 11 / span 2;
    grid-row: 1;
}

.fulltext-search-pill {
    width: 100%;
}

.fulltext-choice-grid {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    gap: 6px;
}

.fulltext-choice-grid .fulltext-choice-chip {
    flex: 1 1 0;
    min-width: 0;
}

.fulltext-choice-chip input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fulltext-choice-chip input[type="radio"]:checked + .receipts-choice-chip-text {
    border-color: #a9cfe4;
    background: linear-gradient(180deg, #ebf7ff 0%, #deeffa 100%);
    color: #0f648f;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 0 0 1px rgba(158, 201, 226, 0.28);
}

.fulltext-choice-chip input[type="radio"]:checked + .receipts-choice-chip-text::before {
    width: 10px;
    max-width: 10px;
    margin-right: 4px;
    opacity: 0.96;
    transform: translateX(0) scale(1);
}

.fulltext-choice-chip input[type="radio"]:checked + .receipts-choice-chip-text .receipts-choice-chip-copy {
    transform: translateX(1px);
}

#fulltext-datefrom-nav,
#fulltext-dateto-nav {
    width: 100%;
}

#fulltext-datefrom-nav .basic-calendar-input,
#fulltext-dateto-nav .basic-calendar-input {
    text-align: center;
}

@media (max-width: 1199px) {
    .fulltext-filter-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fulltext-search-field {
        grid-column: span 2;
    }

    .fulltext-number-field,
    .fulltext-source-field,
    .fulltext-date-from-field,
    .fulltext-date-to-field,
    .fulltext-all-staff-field {
        grid-column: auto;
    }

    .fulltext-search-field,
    .fulltext-number-field,
    .fulltext-source-field,
    .fulltext-date-from-field,
    .fulltext-date-to-field,
    .fulltext-all-staff-field {
        grid-row: auto;
    }
}

@media (max-width: 767px) {
    .fulltext-filter-host {
        padding-left: 8px;
        padding-right: 8px;
    }

    .fulltext-filter-toolbar {
        grid-template-columns: minmax(0, 1fr);
    }

    .fulltext-search-field,
    .fulltext-number-field,
    .fulltext-source-field,
    .fulltext-all-staff-field,
    .fulltext-date-from-field,
    .fulltext-date-to-field {
        grid-column: auto;
    }

    .fulltext-choice-grid,
    .fulltext-choice-grid--source {
        flex-wrap: wrap;
    }
}

#fulltextsearchtab-wrapper {
    position: relative;
    height: calc(100vh - 280px);
    min-height: 220px;
    max-height: calc(100vh - 280px);
    overflow: auto;
    padding-top: 20px;
    padding-left: 30px;
    padding-right: 30px;
    scrollbar-gutter: stable;
}

/* Let floatThead work with a normal table */
#fulltextsearchtab {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

/* Column widths */
#fulltextsearchtab td.nam,
#fulltextsearchtab th.nam {
    min-width: 150px;
    max-width: 300px;
}

#fulltextsearchtab td.per,
#fulltextsearchtab th.per {
    min-width: 200px !important;
    max-width: 200px !important;
}

#fulltextsearchtab td.dat,
#fulltextsearchtab th.dat {
    min-width: 100px;
    max-width: 100px;
}

#fulltextsearchtab td.open-link,
#fulltextsearchtab th.open-link {
    min-width: 40px;
    max-width: 40px;
}

#fulltextsearchtab td.nam {
    white-space: normal;
    overflow-wrap: break-word;
}
