@charset "UTF-8";
@import url("../fonts/fontawesome.css");
@import url("../fonts/font.css");
@import url("theme-default.css");
@import url("theme-sidebar-default.css");
@import url("theme-button-default.css");
@import url("theme-dialog-default.css");
@import url("grid-templates.css");

@import url("general.css");
@import url("timeline-toolbar.css");
@import url("view.css");
@import url("timeline.css");
@import url("todo_sidebar.css");
@import url("popover-list.css");
@import url("combobox.css");
@import url("input-checkbox.css");
@import url("input-text.css");
@import url("textarea.css");
@import url("input-number.css");
@import url("employee-issue-assignment.css");
@import url("input-weekly-working-time.css");
@import url("input-color.css");
@import url("input-icon.css");
@import url("input-file.css");
@import url("input-radio-group.css");
@import url("input-duration.css");
@import url("tab-list.css");
@import url("date-range.css");
@import url("rte.css");
@import url("notification.css");
@import url("buttons.css");
@import url("tasklist.css");
@import url("dialogs.css");
@import url("dialog-employee-edit.css");
@import url("dialog-issue-edit.css");
@import url("dialog-keyword-edit.css");
@import url("dialog-type-edit.css");
@import url("dialog-project-edit.css");
@import url("dialog-daily-edit.css");
@import url("dialog-preview.css");
@import url("dialog-confirm.css");
@import url("ressource-planning.css");
@import url("plugin.css");
@import url("auditlog.css");
@import url("temp.css");
@import url("translation-editor.css");

@import url("whiteboard.css");
/* 2026-09-03 (Stefan, ausnahmsweise angefordertes CSS-Bereinigen): Whiteboard-
   Canvas-CSS aufgeteilt nach Bereich, aus whiteboard.css/ralphy.css
   zusammengeführt (siehe Kommentare in den jeweiligen Dateien). */
@import url("whiteboard_sidebar.css");
@import url("whiteboard_toolbar.css");
@import url("whiteboard_rte.css");
@import url("whiteboard_sketch.css");
@import url("linkview_sidebar.css");
@import url("linkview-view.css");
@import url("linkview-toolbar.css");
@import url("dialog_linkboard-edit.css");
@import url("my-organizer.css");
@import url("release-notes.css");
@import url("quill-viewer.css");
@import url("o2d-table.css");
@import url("tenant-theme-editor.css");
@import url("gimmicks.css");
@import url("help.css");
@import url("settings.css");

/* AI-authored CSS inbox — MUST be the LAST @import so its rules override earlier
   same-specificity definitions by cascade order. New AI rules land here first and are
   sorted into the topical files above only on Anke's call (2026-10-17). */
@import url("ralphy.css");

/* =========================================================================
   1) Registrierte Custom Properties
   ========================================================================= */
/*
 * Registered custom properties (PRD-060).
 * `@o2d/grid-layout` reads column-width CSS variables via
 * `element.computedStyleMap().get(...).toString()` and parseFloat()s the
 * result. For UNREGISTERED custom properties, the browser returns the raw
 * token stream (e.g. "calc(40px * 6)"), which parseFloat cannot handle
 * (NaN → "Axis values not loaded for indices NaN-NaN"). Registering the
 * properties with a typed syntax forces the browser to resolve calc() at
 * property-computation time, so downstream consumers see a plain length
 * (e.g. "240px"). `inherits: true` is required so the multiplier set on
 * the view host reaches nested o2d-layout elements.
 * MUST be placed after all @import rules (CSS spec requires @import to
 * precede all other rules except @charset and @layer).
 */
@property --cell-width-multiplication {
    syntax: "<number>";
    inherits: true;
    initial-value: 1;
}
@property --t3-column-section-3-size {
    syntax: "<length>";
    inherits: true;
    initial-value: 20px;
}

@property --t4-column-section-3-size {
    syntax: "<length>";
    inherits: true;
    initial-value: 20px;
}

/* =========================================================================
   2) Variablen der Timeline-Vorlagen t3/t4 und Timeline-Theme
   ========================================================================= */
/* o2d-timeline layout template variables */
:root {
    /*t3: template für die meisten timeline-views*/
    --t3-row-section-0-size: 35px;/*Höhe Monatszeile*/
    --t3-row-section-1-size: 35px;/*Höhe Wochenzeile*/
    --t3-row-section-2-size: 35px;/*Höhe Wochentagszeile*/
    --t3-row-section-3-size: 35px;/*Höhe Tageszeile*/
    --t3-row-section-calendar-size: 60px;/*Kalenderzeile = gleiche Höhe wie normale Inhaltszeilen*/
    --t3-row-section-4-size: 45px;/*Höhe der normalen Inhaltszeilen*/
    --t3-row-section-space-size: 6px;/*Abstands-Space*/
    --t3-row-section-unassigned-size: 60px;/*Zeile „Ohne Zuordnung“ unter dem Kalender = Höhe der Kalenderzeile (0118)*/
    --t3-row-section-space-unassigned-size: 6px;/*Abstands-Space unter „Ohne Zuordnung“*/

    --t3-column-section-0-size: 200px;
    --t3-column-section-1-size: 30px;
    --t3-column-section-2-size: 30px;
    --t3-column-section-5-size: 30px;
    --t3-column-section-7-size: 30px;/*dritter Knopf der Kalenderzeile („Neuer Feiertag“), darunter leer*/
    /*--t3-column-section-3-size def steht weiter oben*/

    /*t4: template für board-view (inkl. spalte für add milestone*/
    --t4-row-section-0-size: 35px;/*Höhe Monatszeile*/
    --t4-row-section-1-size: 35px;/*Höhe Wochenzeile*/
    --t4-row-section-2-size: 35px;/*Höhe Wochentagszeile*/
    --t4-row-section-3-size: 35px;/*Höhe Tageszeile*/
    --t4-row-section-calendar-size: 60px;/*Kalenderzeile = gleiche Höhe wie normale Inhaltszeilen*/
    --t4-row-section-4-size: 37px;/*Höhe der normalen Inhaltszeilen*/
    --t4-row-section-space-size: 6px;/*Abstands-Space*/
    --t4-row-section-unassigned-size: 60px;/*Zeile „Ohne Zuordnung“ unter dem Kalender = Höhe der Kalenderzeile (0118)*/
    --t4-row-section-space-unassigned-size: 6px;/*Abstands-Space unter „Ohne Zuordnung“*/

    --t4-column-section-0-size: 200px;
    --t4-column-section-1-size: 30px;
    --t4-column-section-2-size: 30px;
    --t4-column-section-4-size: 30px;/*spalte für add milestone*/
    --t4-column-section-5-size: 30px;
    /*--t4-column-section-3-size def steht weiter oben*/
    /*
     * Note (PRD-060): `--t3-column-section-3-size` is NOT defined here on :root.
     * The calc() must resolve at an element where `--cell-width-multiplication`
     * is in scope (set by the reactive bridge on the o2d view host). Defining it
     * on :root would pre-resolve the var() at :root time where the multiplier
     * is not set, causing the fallback to always apply. See the `o2d-layout`
     * rule below where the date-column-width variable is defined.
     */


    /* o2d-timeline theme variables */
    --o2d-cell-bg: #fff;
    --o2d-cell-border: 1px solid #e0e0e0;
    --o2d-header-bg: #f5f5f5;
    --o2d-weekend-bg: #fafafa;
    --o2d-employee-font-weight: 500;
    --o2d-issue-bg: var(--cell-background-color);
    --o2d-issue-border-radius: 10px;
    --o2d-btn-hover-bg: rgba(0, 0, 0, 0.05);
}

/* =========================================================================
   3) Timeline-Gerüst: o2d-timeline, o2d-layout, o2d-area
   ========================================================================= */
o2d-timeline {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background-color: #ebeef1;
    gap: 1px;
}

o2d-layout {
    display: grid;
    flex: 1;
    min-height: 0;
    overflow: hidden;

    /*
     * Date-column base width × reactive cell-width multiplier (PRD-060).
     * Defined here (not on :root) so the calc() resolves at o2d-layout where
     * `--cell-width-multiplication` is inherited from the view host (set by
     * `initCellWidthMultiplicationBridge()` in `abstract-o2d-timeline.view.ts`).
     * Fallback `1` keeps the variable valid when the JS bridge has not yet
     * written the inline style (AC-7).
     */
    --t3-column-section-3-size: calc(40px * var(--cell-width-multiplication, 1));
    --t4-column-section-3-size: calc(40px * var(--cell-width-multiplication, 1));
}

o2d-area {
    display: grid;
    overflow: hidden;
    grid-template-columns: subgrid;
    grid-template-rows: subgrid;
}
o2d-area > div {
    min-width: 0;
    min-height: 0;
}

/*
<-- ADDED by stef -->
*/
.o2d-area-background-grid > div {
    border-right: 1px solid #c4c4c4;
    border-bottom: 1px solid #c4c4c4;
}

/* =========================================================================
   4) Knöpfe in Zeilenköpfen (.btn)
   ========================================================================= */
/* Button base styles */
.btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.btn:hover {
    background: var(--o2d-btn-hover-bg);
}

/* =========================================================================
   5) Gefilterte Vorgänge
   ========================================================================= */
/* Filter Dimming (PRD-047) — matches legacy general.css:231 */
.timeline-issue.filtered-out {
    opacity: .4;
    border-width: 1px;
    border-style: dashed;
    filter: grayscale(1);
}

@media (max-width: 768px) {
    o2d-layout {
        --t3-column-section-5-size: 20px;
        --t4-column-section-5-size: 20px;
    }
}
