/* ============================================================
   Ressourcenverwaltung — Application Styles
   ============================================================ */

/* Layout */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f0f2f5;
    color: #212529;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

/* Legacy top-navbar offset (kept for reference; replaced by .with-rail below) */
.with-navbar {
    padding-top: 56px;
}

/* Rail layout: the rail (and the mobile bottom bar) are position:fixed, i.e.
   out of flow — so the in-flow content (main + footer) must be offset by the
   rail width to clear it. Body keeps its default column flow. */
body.has-rail main,
body.has-rail > .footer {
    margin-left: var(--md-rail-width, 80px);
}
body.has-rail main {
    min-width: 0;
}

@media (max-width: 767.98px) {
    body.has-rail main,
    body.has-rail > .footer {
        margin-left: 0;            /* rail hidden; mobile bottom nav bar instead */
    }
    body.has-rail main {
        padding-bottom: 80px;      /* clear the fixed bottom nav bar */
    }
}

main > .container-fluid {
    max-width: 1600px;
}

.footer {
    background: #fff;
    font-size: .8rem;
    margin-top: 2rem;
}

/* Login page */
.login-page {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
}

.login-card {
    width: 100%;
    max-width: 420px;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
}

/* Stats cards */
.stat-card .card-body {
    padding: 1.25rem;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: .85rem;
    opacity: .9;
    margin-top: .25rem;
}

/* Smaller variant for the two remaining status tiles */
.stat-card-sm .card-body { padding: .6rem .8rem; }
.stat-card-sm .stat-number { font-size: 1.5rem; }
.stat-card-sm .stat-label { font-size: .72rem; }

/* Construction site cards */
.site-card {
    border-radius: 8px;
    transition: box-shadow .15s ease;
}

.site-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.12) !important;
}

/* Buttons xs */
.btn-xs {
    padding: .15rem .4rem;
    font-size: .75rem;
    border-radius: .2rem;
}

/* Gap utility */
.gap-2 { gap: .5rem !important; }
.gap-3 { gap: 1rem !important; }

/* Card adjustments */
.card-header h5 { margin-bottom: 0; }

/* Gantt controls */
.gantt-controls .btn {
    white-space: nowrap;
}

/* Legend */
.legend-item {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .8rem;
    color: #666;
}

.legend-box {
    display: inline-block;
    width: 18px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ============================================================
   Gantt Chart Styles
   ============================================================ */

#gantt-chart-wrapper {
    overflow: hidden;
    position: relative;
    border-radius: 0 0 .25rem .25rem;
}

.gantt-root {
    /* Horizontal scroll only — grow to full content height (no vertical scroll).
       overflow-x:auto keeps the sticky header/label column working; with no
       max-height the element sizes to its content, so nothing overflows vertically. */
    overflow-x: auto;
    overflow-y: auto;
    background: #fff;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.gantt-scroll-wrapper {
    position: relative;
    display: inline-block;
    min-width: 100%;
    /* Keep the last row clear of a classic (always-on) horizontal scrollbar —
       e.g. Safari with "Show scroll bars: Always" — which otherwise overlaps the
       bottom-most bar of the last row. */
    padding-bottom: 16px;
}

.gantt-empty {
    padding: 2rem;
    text-align: center;
    color: #888;
}

/* Header */
.gantt-header {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    border-bottom: 2px solid #dee2e6;
    user-select: none;
}

.gantt-corner {
    position: sticky;
    left: 0;
    z-index: 30;
    background: #343a40;
    color: #fff;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 8px 4px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    border-right: 2px solid #dee2e6;
    flex-shrink: 0;
}

.gantt-date-area {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gantt-month-row,
.gantt-week-row,
.gantt-day-row {
    display: flex;
    flex-shrink: 0;
}

.gantt-month-cell {
    height: 20px;
    line-height: 20px;
    font-size: .7rem;
    font-weight: 600;
    color: #fff;
    background: #495057;
    text-align: center;
    border-right: 1px solid #6c757d;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}

.gantt-week-cell {
    height: 22px;
    line-height: 22px;
    font-size: .68rem;
    color: #fff;
    background: #6c757d;
    text-align: center;
    border-right: 1px solid #adb5bd;
    overflow: hidden;
    flex-shrink: 0;
}

.gantt-day-cell {
    height: 22px;
    line-height: 22px;
    font-size: .7rem;
    color: #495057;
    background: #f8f9fa;
    text-align: center;
    border-right: 1px solid #dee2e6;
    flex-shrink: 0;
    overflow: hidden;
}

.gantt-day-cell.weekend {
    background: #e9ecef;
    color: #adb5bd;
}

.gantt-day-cell.today {
    background: #fff3cd;
    color: #856404;
    font-weight: 700;
}

.gantt-day-cell.holiday {
    background: #fef3cd;
    color: #856404;
    font-weight: 600;
}

.gantt-bg-cell.holiday {
    background: rgba(254, 243, 205, 0.45);
}

/* Body */
.gantt-body {
    display: flex;
    flex-direction: column;
}

.gantt-row {
    display: flex;
    flex-shrink: 0;
    border-bottom: 1px solid #dee2e6;
    position: relative;
}

.gantt-row.even { background: #fff; }
.gantt-row.odd  { background: #f8f9fa; }

.gantt-label {
    position: sticky;
    left: 0;
    z-index: 10;
    background: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4px 10px 4px 8px;
    font-size: .82rem;
    font-weight: 500;
    border-right: 2px solid #dee2e6;
    flex-shrink: 0;
    overflow: hidden;
    white-space: nowrap;
}

.gantt-emp-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    flex-shrink: 0;
    vertical-align: middle;
}

.gantt-emp-name {
    vertical-align: middle;
}

.gantt-emp-pos {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.2;
    color: #6c757d;
    font-size: .72rem;
    font-weight: 400;
}

/* Timeline area */
.gantt-timeline {
    position: relative;
    display: flex;
    align-items: center;
    flex-grow: 1;
    overflow: hidden;
}

.gantt-bg-cell {
    position: absolute;
    top: 0;
    height: 100%;
    border-right: 1px solid #f0f0f0;
}

.gantt-bg-cell.weekend {
    background: rgba(0,0,0,.025);
}

/* Bars */
.gantt-bar {
    position: absolute;
    height: 22px;
    border-radius: 3px;
    top: 3px;
    cursor: default;
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
    transition: opacity .15s;
    z-index: 5;
}

.gantt-bar:hover {
    opacity: .85;
    z-index: 6;
}

.gantt-bar-clickable {
    cursor: pointer;
}

.gantt-bar-clickable:hover {
    opacity: .8;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
    transform: translateY(-1px);
    transition: opacity .1s, box-shadow .1s, transform .1s;
}

.gantt-bar-assignment {
    top: 3px;
    height: 24px;
}

.gantt-bar-absence {
    top: 29px;
    height: 10px;
    border-radius: 2px;
    opacity: .75;
    box-shadow: none;
}

.gantt-bar-absence:hover {
    opacity: .9;
}

.gantt-bar-label {
    padding: 0 5px;
    font-size: .7rem;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 1px rgba(0,0,0,.3);
    pointer-events: none;
}

.gantt-bar-vehicle {
    top: 2px;
    height: 18px;
    border-radius: 2px;
    opacity: 0.9;
}

.gantt-track-divider {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
    z-index: 4;
    pointer-events: none;
}

/* Today line — z-index below sticky .gantt-label (10) so it clips behind the label on scroll */
.gantt-today-line {
    position: absolute;
    top: 0;
    width: 2px;
    background: #e74c3c;
    z-index: 7;
    pointer-events: none;
    opacity: .7;
}

.gantt-today-label {
    position: absolute;
    /* top is set dynamically in JS relative to headerHeight */
    font-size: .6rem;
    font-weight: 700;
    color: #e74c3c;
    background: rgba(255,255,255,.85);
    padding: 0 2px;
    border-radius: 2px;
    z-index: 8;
    pointer-events: none;
    white-space: nowrap;
}

/* Milestone line — z-index below sticky .gantt-label (10) so it clips behind the label on scroll */
.gantt-milestone-line {
    position: absolute;
    top: 0;
    width: 0;
    border-left: 2px dashed #555;
    z-index: 6;
    pointer-events: none;
    opacity: .65;
}

.gantt-milestone-row-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 2px dashed;
    opacity: 0.35;
    pointer-events: none;
    z-index: 4;
}

.gantt-milestone-diamond {
    position: absolute;
    /* top is set dynamically in JS relative to headerHeight */
    width: 12px;
    height: 12px;
    transform: rotate(45deg);
    z-index: 9;   /* below sticky .gantt-label (10) so it clips behind the label column on scroll */
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}

/* Tooltip */
.gantt-tooltip {
    position: fixed;
    z-index: 9999;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
    pointer-events: none;
    max-width: 260px;
    font-size: .8rem;
    overflow: hidden;
}

.gantt-tooltip-header {
    height: 6px;
}

.gantt-tooltip-body {
    padding: 8px 10px;
    line-height: 1.6;
}

.gantt-tt-icon-row {
    display: flex;
    align-items: center;
    gap: 2px;
}

.gantt-label-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.gantt-label-link:hover {
    text-decoration: underline;
    color: inherit;
}

/* Drag & drop */
/* Stat tile detail panel */
.stat-card[id] { user-select: none; }
.stat-card.tile-active { box-shadow: 0 0 0 3px rgba(255,255,255,.55) inset, 0 4px 16px rgba(0,0,0,.18) !important; }

#tile-detail-content ul { padding-left: 0; }
#tile-detail-content li { list-style: none; font-size: .84rem; }
#tile-detail-content li:last-child { border-bottom: none !important; }

/* Admin: crosshair on empty timeline space, preserved bar cursors */
.gantt-timeline-create {
    cursor: cell;
}

.gantt-timeline-create .gantt-bar        { cursor: default; }
.gantt-timeline-create .gantt-bar-clickable { cursor: pointer; }
.gantt-timeline-create .gantt-resize-handle { cursor: ew-resize; }

.gantt-resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    width: 8px;
    height: 100%;
    cursor: ew-resize;
    z-index: 2;
}

.gantt-resize-handle-left {
    right: auto;
    left: 0;
}

.gantt-bar-dragging {
    opacity: .7 !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.4) !important;
    z-index: 50 !important;
    transition: none !important;
}

/* Drag preview: dashed outline showing target position while original bar stays put */
.gantt-bar-preview {
    position: absolute;
    border: 2px dashed rgba(33, 33, 33, .7);
    border-radius: 3px;
    background: rgba(255, 255, 255, .25);
    box-sizing: border-box;
    pointer-events: none;
    z-index: 6;
}

.gantt-bar-saving {
    animation: gantt-pulse .6s ease-in-out infinite alternate;
}

@keyframes gantt-pulse {
    from { opacity: .9; }
    to   { opacity: .45; }
}

body.gantt-cursor-grabbing,
body.gantt-cursor-grabbing * {
    cursor: grabbing !important;
}

body.gantt-cursor-resize,
body.gantt-cursor-resize * {
    cursor: ew-resize !important;
}

/* Toast notifications */
/* M3 snackbar */
.gantt-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 99999;
    padding: .9rem 1rem;
    border-radius: 4px;
    font-size: .85rem;
    font-weight: 500;
    background: var(--md-sys-color-inverse-surface, #2f3133);
    color: var(--md-sys-color-inverse-on-surface, #f0f1f4);
    box-shadow: var(--md-elevation-3, 0 4px 16px rgba(0,0,0,.2));
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s;
    pointer-events: none;
    max-width: 360px;
}

.gantt-toast.gantt-toast-show {
    opacity: 1;
    transform: translateY(0);
}

/* M3 snackbars are neutral; errors get the error-container accent for clarity */
.gantt-toast-error {
    background: var(--md-sys-color-error-container, #ffdad6);
    color: var(--md-sys-color-on-error-container, #410002);
}

/* Cross-row drag — drop target highlight */
.gantt-row-drop-target {
    background: rgba(0,123,255,0.08) !important;
    outline: 2px solid rgba(0,123,255,0.35);
    outline-offset: -2px;
}

/* Responsive */
@media (max-width: 768px) {
    .gantt-controls {
        flex-wrap: wrap;
    }
    .stat-number {
        font-size: 1.6rem;
    }
    .gantt-label {
        font-size: .75rem;
    }
}

/* FR-2: Gantt card-header wraps controls on small screens */
@media (max-width: 767px) {
    .card-header.d-flex.align-items-center.justify-content-between {
        flex-wrap: wrap;
    }
    .gantt-controls {
        width: 100%;
        margin-top: .5rem;
    }
}

/* FR-5: Modals stay within viewport on very small phones */
@media (max-width: 575px) {
    .modal-dialog {
        margin: .5rem;
        max-width: calc(100% - 1rem);
    }
}

/* FR-7/FR-8: Gantt legend admin hint text wraps to its own line on mobile */
@media (max-width: 767px) {
    .gantt-legend .legend-item.ms-auto {
        margin-left: 0 !important;
        width: 100%;
        margin-top: .25rem;
    }
}

/* FR-11: Modern touch-action for smooth native touch-scroll on gantt */
.gantt-root {
    touch-action: pan-x pan-y;
}

/* Touch drag: allow native scroll on draggable bars/handles until long-press arms
   the drag (JS sets touch-action:none on the capturing element after arming). */
.gantt-bar-draggable,
.gantt-bar-draggable .gantt-resize-handle {
    touch-action: pan-x pan-y;
}

/* Visual "lift" when a touch long-press has armed the drag */
.gantt-bar-armed {
    transform: scale(1.04);
    box-shadow: 0 4px 12px rgba(0,0,0,0.28);
    z-index: 20;
    opacity: 0.92;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

/* FR-12: Larger touch targets for btn-xs on mobile */
@media (max-width: 767px) {
    .btn-xs {
        padding: .3rem .6rem;
    }
}

/* ================================================================
   Signage view (FleetView / Digital Signage)
   ================================================================ */

.signage-body {
    background: var(--md-sys-color-surface-container-low);
    color: var(--md-sys-color-on-surface);
    min-height: 100vh;
    overflow: hidden;
    margin: 0;
    /* Match the app's M3 typeface (Roboto, self-hosted via fonts.css). The old
       `inherit` resolved to the browser default (Times New Roman) on this
       standalone layout. */
    font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.signage-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 0; /* allow children to shrink (older Safari flex fix) */
}

.signage-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 2rem;
    background: var(--md-sys-color-surface);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    box-shadow: var(--md-elevation-1);
    flex-shrink: 0;
    position: relative;
    z-index: 3; /* keep the header shadow above the tabs/panel */
}

/* Three columns: equal side columns (date left, clock right) keep the title
   genuinely centred on screen; min-width:0 lets the title shrink so it can wrap. */
.signage-date  { flex: 1 1 0; min-width: 0; font-size: 1.5rem; font-weight: 600; color: var(--md-sys-color-on-surface-variant); white-space: nowrap; }
.signage-title { flex: 2 1 0; min-width: 0; display: flex; justify-content: center; align-items: center; gap: .6rem; font-size: 2rem; font-weight: 700; letter-spacing: .05em; color: var(--md-sys-color-on-surface); text-align: center; }
.signage-clock { flex: 1 1 0; min-width: 0; font-size: 2.2rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; color: var(--md-sys-color-primary); white-space: nowrap; }
.signage-logo  { height: 2.2rem; width: auto; flex-shrink: 0; }

/* Company name: centred; wraps to a 2nd line, then ellipsis (clamp). */
.signage-title-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    line-height: 1.15;
    min-width: 0;
}

.signage-tabs {
    display: flex;
    gap: .6rem;
    padding: .6rem 1rem;
    background: var(--md-sys-color-surface);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    flex-shrink: 0;
    position: relative;
    z-index: 2; /* paint over the top of the scroll panel (hides sticky-header sliver) */
}

.signage-tab-btn {
    flex: 1;
    padding: .85rem 1rem;
    border: none;
    border-radius: var(--md-shape-lg);
    background: var(--md-sys-color-surface-container);
    color: var(--md-sys-color-on-surface-variant);
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: default;
    transition: background .2s, color .2s, box-shadow .2s;
}

.signage-tab-btn.active {
    color: var(--md-sys-color-on-primary);
    background: var(--md-sys-color-primary);
    box-shadow: var(--md-elevation-1);
}

.signage-tab-date { font-weight: 500; font-size: .95em; opacity: .85; }

.signage-panel {
    display: none;
    padding: 0;
    overflow-y: scroll;
    /* Older Safari needs an explicit basis + min-height:0, otherwise a
       flex:1 child in a column flex container never becomes scrollable. */
    flex: 1 1 0%;
    min-height: 0;
    margin-top: -2px; /* tuck under the tabs so no scrolling content peeks above the sticky header */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.signage-panel::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.signage-panel.active { display: block; }

/* Tabular layout (Baustelle | Mitarbeiter | Fahrzeuge) */
.signage-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--md-sys-color-surface);
}

.signage-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface-variant);
    text-align: left;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.signage-table td {
    padding: 1.3rem 2rem;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    vertical-align: middle;
    font-size: 1.55rem;
}

.signage-table tbody tr:last-child td { border-bottom: none; }

.signage-table tbody tr:nth-child(even) td { background: var(--md-sys-color-surface-container-low); }

.signage-col-site {
    font-weight: 700;
    white-space: nowrap;
}

.signage-site-name { display: block; padding-left: .35rem; font-size: 1.7rem; }

.signage-site-address {
    display: block;
    padding-left: .35rem;
    margin-top: .25rem;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--md-sys-color-on-surface-variant);
    white-space: normal;
}

.signage-col-emps  { width: 58%; }
.signage-col-veh   { white-space: nowrap; }

.signage-employees {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.signage-employee {
    color: var(--md-sys-color-on-surface);
    font-size: 1.45rem;
    font-weight: 600;
    white-space: nowrap;
}

.signage-emp-until {
    color: var(--md-sys-color-on-surface-variant);
    font-weight: 400;
    font-size: 1.1rem;
    margin-left: .25rem;
}

.signage-emp-note {
    color: var(--md-sys-color-on-surface-variant);
    font-weight: 400;
    font-style: italic;
    font-size: 1.1rem;
    margin-left: .35rem;
}

.signage-vehicles {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.signage-vehicle {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--md-sys-color-primary);
    white-space: nowrap;
}

.signage-empty {
    width: 100%;
    text-align: center;
    color: var(--md-sys-color-on-surface-variant);
    font-size: 1.9rem;
    padding: 3.5rem 0;
}

/* Capacity strip — thin traffic-light strip at the bottom of site Gantt rows */
.gantt-capacity-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    pointer-events: none;
    z-index: 4;
}

.gantt-capacity-strip-day {
    position: absolute;
    top: 0;
    height: 5px;
}

/* ============================================================
   Material Design 3 layer (Phase 1)
   M3 design tokens applied over the existing Bootstrap markup.
   Loaded last so it overrides Bootstrap + base styles via cascade.
   ============================================================ */

:root {
    /* --- M3 color system (light, teal-blue seed) --- */
    --md-sys-color-primary:               #00658f;
    --md-sys-color-on-primary:            #ffffff;
    --md-sys-color-primary-container:     #c7e7ff;
    --md-sys-color-on-primary-container:  #001e2f;
    --md-sys-color-secondary:             #4f616e;
    --md-sys-color-on-secondary:          #ffffff;
    --md-sys-color-secondary-container:   #d2e5f5;
    --md-sys-color-on-secondary-container:#0b1d29;
    --md-sys-color-tertiary:              #62597c;
    --md-sys-color-on-tertiary:           #ffffff;
    --md-sys-color-tertiary-container:    #e8ddff;
    --md-sys-color-on-tertiary-container: #1e1635;
    --md-sys-color-error:                 #ba1a1a;
    --md-sys-color-on-error:              #ffffff;
    --md-sys-color-error-container:       #ffdad6;
    --md-sys-color-on-error-container:    #410002;
    --md-sys-color-success:               #2e6c4a;
    --md-sys-color-success-container:     #b4f1c6;
    --md-sys-color-on-success-container:  #00210f;
    --md-sys-color-warning:               #7a5900;
    --md-sys-color-warning-container:     #ffdf9e;
    --md-sys-color-on-warning-container:  #261900;
    --md-sys-color-background:            #fcfcff;
    --md-sys-color-on-background:         #1a1c1e;
    --md-sys-color-surface:               #fcfcff;
    --md-sys-color-on-surface:            #1a1c1e;
    --md-sys-color-surface-variant:       #dde3ea;
    --md-sys-color-on-surface-variant:    #41484d;
    --md-sys-color-surface-container-low: #f3f4f7;
    --md-sys-color-surface-container:     #eceef1;
    --md-sys-color-surface-container-high:#e6e8eb;
    --md-sys-color-outline:               #71787e;
    --md-sys-color-outline-variant:       #c1c7ce;
    --md-sys-color-inverse-surface:       #2f3133;
    --md-sys-color-inverse-on-surface:    #f0f1f4;

    /* --- M3 shape --- */
    --md-shape-sm: 8px;
    --md-shape-md: 12px;
    --md-shape-lg: 16px;
    --md-shape-xl: 28px;

    /* --- M3 elevation --- */
    --md-elevation-1: 0 1px 2px rgba(0,0,0,.30), 0 1px 3px 1px rgba(0,0,0,.15);
    --md-elevation-2: 0 1px 2px rgba(0,0,0,.30), 0 2px 6px 2px rgba(0,0,0,.15);
    --md-elevation-3: 0 4px 8px 3px rgba(0,0,0,.15), 0 1px 3px rgba(0,0,0,.30);
}

/* --- Typography (Roboto, M3 type scale) --- */
body {
    font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--md-sys-color-background);
    color: var(--md-sys-color-on-surface);
}
h1, h2, h3, h4, h5, h6 { font-weight: 400; letter-spacing: 0; color: var(--md-sys-color-on-surface); }
.h3, h3 { font-weight: 400; }
a { color: var(--md-sys-color-primary); }
.text-muted { color: var(--md-sys-color-on-surface-variant) !important; }

/* --- Top app bar (kept for the login page which has no rail) --- */
.navbar.fixed-top {
    background-color: var(--md-sys-color-primary) !important;
    min-height: 64px;
    box-shadow: var(--md-elevation-2);
}
.navbar-dark .navbar-brand,
.navbar-dark .navbar-brand:hover { color: var(--md-sys-color-on-primary) !important; }
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,.86);
    border-radius: 8px;
    padding-inline: .85rem;
    margin-inline: .1rem;
    transition: background-color .15s ease, color .15s ease;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus { color: #fff; background: rgba(255,255,255,.12); }
.navbar-dark .navbar-nav .nav-item.active > .nav-link { color: #fff; background: rgba(255,255,255,.20); }

/* --- Buttons (M3 pill shape, no uppercase) --- */
.btn {
    border-radius: 20px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: .0125em;
    padding: .5rem 1.4rem;
    border: none;
    transition: box-shadow .2s ease, background-color .2s ease, filter .2s ease;
}
.btn:focus { box-shadow: none; }
.btn-sm { padding: .32rem 1rem; font-size: .85rem; border-radius: 16px; }
.btn-lg { border-radius: 24px; }
.btn-primary            { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
.btn-primary:hover      { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); box-shadow: var(--md-elevation-1); filter: brightness(1.08); }
.btn-secondary          { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.btn-secondary:hover    { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); box-shadow: var(--md-elevation-1); filter: brightness(.97); }
.btn-danger             { background: var(--md-sys-color-error); color: var(--md-sys-color-on-error); }
.btn-danger:hover       { background: var(--md-sys-color-error); color: var(--md-sys-color-on-error); box-shadow: var(--md-elevation-1); filter: brightness(1.08); }
.btn-success            { background: var(--md-sys-color-success); color: #fff; }
.btn-success:hover      { background: var(--md-sys-color-success); color: #fff; box-shadow: var(--md-elevation-1); filter: brightness(1.08); }
/* Outlined buttons */
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-warning,
.btn-outline-success,
.btn-outline-danger {
    background: transparent;
    border: 1px solid var(--md-sys-color-outline);
    color: var(--md-sys-color-primary);
}
.btn-outline-secondary { color: var(--md-sys-color-on-surface-variant); }
.btn-outline-danger    { color: var(--md-sys-color-error); }
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-warning:hover,
.btn-outline-success:hover { background: rgba(0,101,143,.08); color: var(--md-sys-color-primary); border-color: var(--md-sys-color-outline); }
.btn-outline-danger:hover  { background: rgba(186,26,26,.08); color: var(--md-sys-color-error); border-color: var(--md-sys-color-error); }

/* --- Cards (M3 elevated/filled) --- */
.card {
    border: none;
    border-radius: var(--md-shape-md);
    background: var(--md-sys-color-surface-container-low);
    box-shadow: var(--md-elevation-1);
}
.card.shadow-sm { box-shadow: var(--md-elevation-1) !important; }
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
}

/* --- Form fields (M3 outlined look) --- */
.form-control, .form-select {
    border-radius: var(--md-shape-sm);
    border: 1px solid var(--md-sys-color-outline);
    background: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
}
.form-control:focus, .form-select:focus {
    border-color: var(--md-sys-color-primary);
    box-shadow: 0 0 0 1px var(--md-sys-color-primary);
}
.form-label { color: var(--md-sys-color-on-surface-variant); font-weight: 500; }
.input-group-text { background: var(--md-sys-color-surface-container); border-color: var(--md-sys-color-outline); color: var(--md-sys-color-on-surface-variant); }

/* --- Selection controls (checkbox) --- */
.form-check-input { border: 2px solid var(--md-sys-color-outline); }
.form-check-input:checked { background-color: var(--md-sys-color-primary); border-color: var(--md-sys-color-primary); }
.form-check-input:focus { border-color: var(--md-sys-color-primary); box-shadow: 0 0 0 3px rgba(0,101,143,.20); }

/* --- Progress (M3 circular indicator colour) --- */
.spinner-border { color: var(--md-sys-color-primary); border-width: .22em; }

/* --- Tables --- */
.table { color: var(--md-sys-color-on-surface); --bs-table-bg: transparent; }
.table > thead th {
    font-weight: 500;
    color: var(--md-sys-color-on-surface-variant);
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
.table.table-light > thead th, .table thead.table-light th { background: var(--md-sys-color-surface-container); }
.table > tbody > tr > td { border-color: var(--md-sys-color-outline-variant); }
.table-hover > tbody > tr:hover > * { background: rgba(0,101,143,.06); }

/* Sortable column headers */
.table > thead th.sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
.table > thead th.sortable:hover { background: var(--md-sys-color-surface-container-high); }
.table > thead th.sortable::after {
    content: "\2195"; /* ↕ */
    margin-left: .35em;
    font-size: .85em;
    opacity: .35;
}
.table > thead th.sortable.sorted-asc::after  { content: "\2191"; opacity: .9; } /* ↑ */
.table > thead th.sortable.sorted-desc::after { content: "\2193"; opacity: .9; } /* ↓ */
.table > thead th.sortable:focus-visible {
    outline: 2px solid var(--md-sys-color-primary);
    outline-offset: -2px;
}

/* --- Client (Auftraggeber) autocomplete --- */
.client-suggest-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1080;
    margin-top: 2px;
    background: var(--md-sys-color-surface);
    border: 1px solid var(--md-sys-color-outline-variant);
    border-radius: var(--md-shape-sm);
    box-shadow: var(--md-elevation-2, 0 4px 12px rgba(0,0,0,.15));
    max-height: 18rem;
    overflow-y: auto;
    padding: .25rem 0;
}
.client-suggest-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .1rem;
    width: 100%;
    padding: .5rem .9rem;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: var(--md-sys-color-on-surface);
}
.client-suggest-item:hover,
.client-suggest-item.active {
    background: var(--md-sys-color-surface-container-high);
}
.client-suggest-name { font-weight: 500; }
.client-suggest-addr {
    font-size: .8rem;
    color: var(--md-sys-color-on-surface-variant);
}

/* Brief highlight pulse on the search bar (Ctrl/Cmd+F) — an impulse, not a
   persistent highlight: a primary-coloured ring expands and fades once. */
@keyframes md-search-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(0,101,143,.55); }
    70%  { box-shadow: 0 0 0 9px rgba(0,101,143,0); }
    100% { box-shadow: 0 0 0 9px rgba(0,101,143,0); }
}
.md-search-pulse { animation: md-search-pulse .9s ease-out; }

/* --- Badges / chips --- */
.badge { border-radius: var(--md-shape-sm); font-weight: 500; }
.badge.bg-success { background: var(--md-sys-color-success-container) !important; color: var(--md-sys-color-on-success-container) !important; }
.badge.bg-warning { background: var(--md-sys-color-warning-container) !important; color: var(--md-sys-color-on-warning-container) !important; }
.badge.bg-danger  { background: var(--md-sys-color-error-container) !important;   color: var(--md-sys-color-on-error-container) !important; }
.badge.bg-info,
.badge.bg-secondary { background: var(--md-sys-color-secondary-container) !important; color: var(--md-sys-color-on-secondary-container) !important; }

/* --- Alerts --- */
.alert { border: none; border-radius: var(--md-shape-md); }
.alert-success { background: var(--md-sys-color-success-container); color: var(--md-sys-color-on-success-container); }
.alert-info    { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.alert-warning { background: var(--md-sys-color-warning-container); color: var(--md-sys-color-on-warning-container); }
.alert-danger  { background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-error-container); }

/* --- Menus (dropdowns) --- */
.dropdown-menu {
    border: none;
    border-radius: var(--md-shape-sm);
    background: var(--md-sys-color-surface-container-high);
    box-shadow: var(--md-elevation-2);
    padding: .35rem;
}
.dropdown-item { border-radius: var(--md-shape-sm); padding: .5rem .75rem; color: var(--md-sys-color-on-surface); }
.dropdown-item:hover, .dropdown-item:focus { background: rgba(0,101,143,.08); color: var(--md-sys-color-on-surface); }
.dropdown-item.text-danger:hover { background: var(--md-sys-color-error-container); }
.dropdown-divider { border-color: var(--md-sys-color-outline-variant); }

/* --- Dialogs --- */
.modal-content {
    border: none;
    border-radius: var(--md-shape-xl);
    background: var(--md-sys-color-surface-container-high);
    box-shadow: var(--md-elevation-3);
}
.modal-header, .modal-footer { border-color: var(--md-sys-color-outline-variant); }

/* --- Footer --- */
.footer { background: var(--md-sys-color-surface-container-low); color: var(--md-sys-color-on-surface-variant); border-top: 1px solid var(--md-sys-color-outline-variant); }

/* ============================================================
   Material Design 3 layer (Phase 2)
   Additional component coverage + form floating labels + icons
   ============================================================ */

/* --- Material Symbols Outlined icon utility --- */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined', sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 1.25em;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    vertical-align: -0.2em;
}
/* Size variants */
.material-symbols-outlined.md-18 { font-size: 18px; }
.material-symbols-outlined.md-20 { font-size: 20px; }
.material-symbols-outlined.md-24 { font-size: 24px; }
.material-symbols-outlined.md-32 { font-size: 32px; }
.material-symbols-outlined.md-48 { font-size: 48px; }
/* Filled variant (FILL=1) */
.material-symbols-outlined.filled { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* --- Form floating labels (M3 outlined style) --- */
.form-floating { position: relative; }
.form-floating > .form-control,
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
    padding: 1rem 0.75rem 0.25rem;
}
.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1rem 0.75rem;
    overflow: hidden;
    text-align: start;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out, transform .1s ease-in-out;
    color: var(--md-sys-color-on-surface-variant);
    font-size: .9rem;
}
.form-floating > .form-control::placeholder { color: transparent; }
.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown),
.form-floating > .form-select {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    opacity: .75;
    transform: scale(.75) translateY(-0.5rem) translateX(0.15rem);
    color: var(--md-sys-color-primary);
}
.form-floating > textarea.form-control { height: auto; min-height: 100px; padding-top: 1.625rem; }
.form-floating > textarea.form-control:not(:placeholder-shown) ~ label,
.form-floating > textarea.form-control:focus ~ label {
    opacity: .75;
    transform: scale(.75) translateY(-0.5rem) translateX(0.15rem);
    color: var(--md-sys-color-primary);
}

/* Yii2 form hint text for floating-label fields */
.form-floating .hint-block { font-size: .78rem; color: var(--md-sys-color-on-surface-variant); margin-top: .25rem; }

/* --- Pagination (M3) --- */
.pagination { gap: 4px; }
.page-link {
    border-radius: var(--md-shape-sm) !important;
    border: none;
    color: var(--md-sys-color-primary);
    background: transparent;
    padding: .4rem .75rem;
    font-weight: 500;
    transition: background .15s ease;
}
.page-link:hover  { background: rgba(0,101,143,.08); color: var(--md-sys-color-primary); }
.page-item.active .page-link {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    box-shadow: var(--md-elevation-1);
}
.page-item.disabled .page-link { color: var(--md-sys-color-outline); background: transparent; }

/* --- Breadcrumbs (M3) --- */
.breadcrumb { gap: .25rem; background: transparent; padding: 0; margin-bottom: 1rem; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--md-sys-color-on-surface-variant); }
.breadcrumb-item a { color: var(--md-sys-color-primary); text-decoration: none; font-weight: 500; }
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item.active { color: var(--md-sys-color-on-surface-variant); }

/* --- List group (M3 surface style) --- */
.list-group-item {
    background: var(--md-sys-color-surface);
    border-color: var(--md-sys-color-outline-variant);
    color: var(--md-sys-color-on-surface);
}
.list-group-item.active {
    background: var(--md-sys-color-primary-container);
    border-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}
.list-group-item-action:hover,
.list-group-item-action:focus { background: rgba(0,101,143,.06); color: var(--md-sys-color-on-surface); }
.list-group-flush .list-group-item { border-right: 0; border-left: 0; }
.list-group-flush .list-group-item:first-child { border-top: 0; }
.list-group-flush .list-group-item:last-child { border-bottom: 0; }

/* --- Nav tabs / pills (M3) --- */
.nav-tabs {
    border-bottom: 1px solid var(--md-sys-color-outline-variant);
    gap: .25rem;
}
.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--md-sys-color-on-surface-variant);
    font-weight: 500;
    padding: .6rem 1rem;
    transition: color .15s ease, border-color .15s ease;
}
.nav-tabs .nav-link:hover { color: var(--md-sys-color-primary); border-bottom-color: var(--md-sys-color-primary); background: transparent; }
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: var(--md-sys-color-primary);
    border-bottom-color: var(--md-sys-color-primary);
    background: transparent;
    font-weight: 700;
}
.nav-pills .nav-link { border-radius: 20px; color: var(--md-sys-color-on-surface-variant); padding: .4rem 1rem; transition: background .15s ease; }
.nav-pills .nav-link:hover { background: rgba(0,101,143,.08); color: var(--md-sys-color-primary); }
.nav-pills .nav-link.active { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); font-weight: 600; }

/* --- Progress (M3) --- */
.progress { border-radius: var(--md-shape-sm); background: var(--md-sys-color-surface-variant); height: 6px; }
.progress-bar { background: var(--md-sys-color-primary); border-radius: var(--md-shape-sm); }
.progress-bar.bg-success { background: var(--md-sys-color-success) !important; }
.progress-bar.bg-danger  { background: var(--md-sys-color-error) !important; }
.progress-bar.bg-warning { background: var(--md-sys-color-warning) !important; }

/* --- Close button (M3) --- */
.btn-close {
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z' fill='%2341484d'/%3E%3C/svg%3E") center / 0.75em auto no-repeat;
    border: none;
    border-radius: 50%;
    opacity: .7;
    padding: .375rem .375rem;
    transition: background-color .15s ease, opacity .15s ease;
}
.btn-close:hover { background-color: rgba(65,72,77,.08); opacity: 1; }

/* --- Chips / Pills (M3 assist/filter chip) --- */
.chip, .md-chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    border-radius: var(--md-shape-xl);
    border: 1px solid var(--md-sys-color-outline);
    padding: .25rem .75rem;
    font-size: .82rem;
    font-weight: 500;
    background: transparent;
    color: var(--md-sys-color-on-surface-variant);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
    text-decoration: none;
}
.chip:hover, .md-chip:hover { background: rgba(0,101,143,.08); color: var(--md-sys-color-primary); }
.chip.active, .md-chip.active { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); border-color: transparent; }

/* --- Tooltips (M3 inverse surface) --- */
.tooltip .tooltip-inner {
    background: var(--md-sys-color-inverse-surface);
    color: var(--md-sys-color-inverse-on-surface);
    border-radius: var(--md-shape-sm);
    font-size: .78rem;
    padding: .35rem .6rem;
    max-width: 220px;
}
.tooltip .tooltip-arrow::before { border-top-color: var(--md-sys-color-inverse-surface); }

/* --- Spinners (M3 primary) --- */
.spinner-border { color: var(--md-sys-color-primary) !important; }

/* --- Card variant helpers --- */
.card-elevated { box-shadow: var(--md-elevation-2); }
.card-filled { background: var(--md-sys-color-surface-container); box-shadow: none; }
.card-outlined { background: var(--md-sys-color-surface); border: 1px solid var(--md-sys-color-outline-variant) !important; box-shadow: none; }

/* --- Page header (h1 with icon) --- */
.page-title { font-size: 1.5rem; font-weight: 400; color: var(--md-sys-color-on-surface); margin-bottom: 0; line-height: 1.2; }
.page-title .material-symbols-outlined { font-size: 1.6rem; color: var(--md-sys-color-primary); vertical-align: -0.2em; margin-right: .35rem; }

/* --- Login page (M3 restyle) --- */
.login-page {
    background: var(--md-sys-color-primary);
    background: linear-gradient(145deg, var(--md-sys-color-primary) 0%, #003d5c 100%);
}
.login-card {
    border-radius: var(--md-shape-xl) !important;
    box-shadow: var(--md-elevation-3) !important;
    overflow: hidden;
}
.login-card .card-header {
    background: var(--md-sys-color-primary-container) !important;
    color: var(--md-sys-color-on-primary-container) !important;
    border-bottom: none;
    padding: 2rem 1.5rem 1.5rem;
}
.login-card .card-header h4 { color: var(--md-sys-color-on-primary-container); font-weight: 500; }
.login-card .card-header small { color: var(--md-sys-color-on-surface-variant); }
.login-card .card-body { background: var(--md-sys-color-surface); }
.login-card .btn-dark {
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border: none;
}
.login-card .btn-dark:hover {
    background: var(--md-sys-color-primary);
    filter: brightness(1.1);
    box-shadow: var(--md-elevation-2);
}

/* --- Dashboard stat tiles (M3 colored elevated) --- */
.stat-card { border-radius: var(--md-shape-md) !important; }
.stat-card.bg-success { background: var(--md-sys-color-success) !important; }
.stat-card.bg-danger  { background: var(--md-sys-color-error) !important; }
.stat-card .stat-number { font-size: 2rem; font-weight: 700; }
.stat-card .stat-label  { font-size: .8rem; opacity: .9; margin-top: .25rem; }
.stat-card-sm .stat-number { font-size: 1.5rem; }
.stat-card-sm .stat-label  { font-size: .72rem; }

/* --- Construction site / filter status buttons as chips --- */
.status-filter-btn {
    border-radius: var(--md-shape-xl);
    padding: .25rem .9rem;
    font-size: .82rem;
    font-weight: 500;
    border: 1px solid var(--md-sys-color-outline);
    background: transparent;
    color: var(--md-sys-color-on-surface-variant);
    transition: background .15s, color .15s;
}
.status-filter-btn.active,
.status-filter-btn:hover { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); border-color: transparent; }

/* --- Inline icon buttons (xs/sm) --- */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--md-sys-color-on-surface-variant);
    cursor: pointer;
    transition: background .15s ease;
}
.btn-icon:hover { background: rgba(0,101,143,.1); color: var(--md-sys-color-primary); }
.btn-icon.danger:hover { background: rgba(186,26,26,.1); color: var(--md-sys-color-error); }

/* --- Dividers / hr --- */
hr { border-color: var(--md-sys-color-outline-variant); opacity: 1; }

/* --- Code elements --- */
code { background: var(--md-sys-color-surface-container); color: var(--md-sys-color-on-surface-variant); border-radius: 4px; padding: .1em .35em; font-size: .85em; }

/* --- Signage body: soft M3 surface tone (a touch darker than pure surface) --- */
.signage-body { background: var(--md-sys-color-surface-container-low); }

/* --- Gantt row conflict-jump flash (M3 secondary-container tonal) --- */
@keyframes gantt-row-flash {
    0%   { background-color: var(--md-sys-color-secondary-container, rgba(0, 101, 143, .22)); }
    60%  { background-color: color-mix(in srgb, var(--md-sys-color-secondary-container, rgba(0, 101, 143, .22)) 65%, transparent); }
    100% { background-color: transparent; }
}
.gantt-row-flash {
    animation: gantt-row-flash 1.15s cubic-bezier(0.05, 0.7, 0.1, 1);
}
