/*
 * A shipment's timeline: a head with the title and what a planner does here (a note, a call), and
 * below it everything that happened, newest first, each entry an icon, what it was, and when and by
 * whom. Colours come from the theme, so it reads the same in the light and the dark theme.
 */
.stl {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stl-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bs-border-color);
}

.stl-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.stl-actions {
    display: flex;
    gap: 6px;
}

.stl-no-shipment .stl-actions {
    display: none;
}

.stl-actions .btn i {
    margin-right: 6px;
}

.stl-actions .btn .stl-caret {
    margin: 0 0 0 6px;
}

.stl-call {
    position: relative;
}

.stl-call-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 20;
    min-width: 220px;
    padding: 4px 0;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 6px;
    box-shadow: 0 2px 4px 0 rgba(0, 35, 63, 0.15);
}

.stl-call-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 14px;
    background: none;
    border: 0;
    color: var(--bs-body-color);
    text-align: left;
}

.stl-call-choice:hover,
.stl-call-choice:focus {
    background: var(--bs-tertiary-bg);
}

.stl-note-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stl-note-buttons {
    display: flex;
    gap: 6px;
}

.stl-note-buttons .btn i {
    margin-right: 6px;
}

.stl-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stl-entry {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bs-border-color-translucent);
}

.stl-icon {
    flex: 0 0 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    color: var(--bs-primary);
}

.stl-entry-call .stl-icon {
    background: var(--bs-primary);
    color: var(--bs-body-bg);
}

.stl-entry-title {
    font-weight: 600;
}

.stl-change {
    color: var(--bs-secondary-color);
}

.stl-change .fa-long-arrow-right {
    margin: 0 8px;
}

.stl-meta {
    color: var(--bs-secondary-color);
    font-size: 0.85em;
}

.stl-message {
    padding: 20px 0;
    color: var(--bs-secondary-color);
    text-align: center;
}
