
/** ---------------------
 *      Generic annotation styling.
 *      This is also passed to datasource themes.
 * --------------------- */

.post-annotations {
    background-color: var(--gray);
    gap: 10px;
}

.post-annotations:empty {
    display: none;
}

.post-annotation {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.post-annotation:last-child {
    border-bottom: none;
}

.post-annotation .annotation-label {
    font-size: 14px;
    flex-shrink: 0;
    width: 150px;
    text-align: right;
    line-height: 1.4;
    word-wrap: break-word;
    color: var(--accent);
    margin: 0;
}

/* Link styling for processor-generated labels */
.post-annotation a.from-dataset-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: underline;
}

.post-annotation .from-dataset-link:hover .annotation-label {
}

/* Input container */
.post-annotation-input-container {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-annotation-value {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    word-break: break-word;
}

.post-annotation-input {
    background: white;
    border: 1px solid #b8c6db;
}

.post-annotation-input:focus {
    outline: none;
    border-color: #215bc6;
    box-shadow: 0 0 0 2px rgba(33, 91, 198, 0.2);
}

.post-annotation-input.from-dataset {
    background: transparent;
    border: none;
    padding: 0;
}

.post-annotation-parameters {
    margin-top: 10px;
}

.post-annotation-parameters ul li {
    display: inline-block;
    background-color: transparent;
    padding: 0;
}

.post-annotation-parameters ul li .property-badge {

}

textarea.post-annotation-input {
    min-height: 80px;
    width: 100%;
    resize: vertical;
    font-family: inherit;
}

.post-annotation.type-checkbox {
    align-items: flex-start;
}

.post-annotation-options {
    display: flex;
    gap: 8px;
}

.post-annotation-options > label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.post-annotation-options input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}