/*
   CSS styling examples for the Vaadin app.
   Visit https://vaadin.com/docs/latest/styling/application-theme and
   https://vaadin.com/docs/latest/styling/lumo for more information.
*/

/* Example: CSS class name to center align the content . */
.centered-content {
    margin: 0 auto;
    max-width: 250px;
}

/* Example: the style is applied only to the textfields which have the `bordered` class name. */
vaadin-text-field.bordered::part(input-field) {
    box-shadow: inset 0 0 0 1px var(--lumo-contrast-30pct);
    background-color: var(--lumo-base-color);
}

:host(.edigrid) [part~="cell"] {
    height: 30px;
    line-height: 30px;
    padding-top: 0;
    padding-bottom: 0;
}

:host(.edigrid) [part~="header-cell"] {
    height: 30px;
    line-height: 30px;
    padding-top: 0;
    padding-bottom: 0;
}


vaadin-grid::part(cell edimessage-cell) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-block {
    position: relative;
    flex: 1 1 300px;
    min-width: 300px;
    background: white;
    border-radius: 8px;
    margin-right: 0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem;
}

.timeline-block::after {
    content: "→";
    position: absolute;
    right: -1.2rem;
    width: 2rem;
    margin-right: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--lumo-primary-color);
    text-align: center;
}


@media (max-width: 600px) {
    .timeline-block {
        margin-right: 0 !important;
    }
    .timeline-block::after {
        right: 50% !important;
        margin-right: -1rem; /* Präzise Zentrierung */
        bottom: -1.5rem; /* Ausreichend Platz unter dem Block */
    }
}

.timeline-block.color-core {
    background: lightblue;
}
.timeline-block.color-sensor {
    background: yellow;
}
.timeline-block.color-nxt {
    background: orange;
}
.timeline-block.color-servicetool {
    background: lightgrey;
}

.timeline-header {
    color: var(--lumo-header-text-color);
    margin-bottom: 0.5rem;
}

