/**
 * Termin-Status im Rezept-Kontext (Dashboard-Kachel + CreateRecipeDialog).
 * Geteilt von RecipeAppointmentLinkPanel.
 */

.recipe-appointment-status {
    border: 1px solid var(--l-border-light, #e0e0e0);
    border-radius: 8px;
    padding: 12px 14px;
    background: var(--l-bg-subtle, #fafafa);
}

.recipe-appointment-status__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.recipe-appointment-status__label {
    margin: 0;
}

.recipe-appointment-status__summary {
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.recipe-appointment-status__hint {
    margin-top: 0.25rem;
}

.recipe-appointment-status__empty {
    font-size: 0.9rem;
    color: var(--l-text-muted, #777);
}

.recipe-appointment-status__table-wrap {
    overflow-x: auto;
    margin: 0.35rem 0 0.5rem;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--l-border-light);
    border-radius: var(--l-radius-sm, 4px);
}

.recipe-appointment-status__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.recipe-appointment-status__table th,
.recipe-appointment-status__table td {
    padding: 0.35rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--l-border-light);
    vertical-align: top;
}

.recipe-appointment-status__table th {
    font-weight: 600;
    color: var(--l-text-secondary);
    background: var(--l-bg-subtle, #f8f9fa);
    position: sticky;
    top: 0;
}

.recipe-appointment-status__table tbody tr:last-child td {
    border-bottom: none;
}

.recipe-appointment-status__table tbody tr.is-outside-recipe-window {
    background: var(--l-warning-soft, #fff8e1);
}

.recipe-appointment-status__date-cell {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.recipe-appointment-status__date-warning {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.25rem;
    font-size: 0.75rem;
    line-height: 1.25;
    color: var(--l-warning-text, #856404);
    font-weight: 500;
}

.recipe-appointment-status__date-warning-icon {
    flex-shrink: 0;
    width: 0.85rem;
    height: 0.85rem;
    margin-top: 0.1rem;
}

.recipe-appointment-status__row-actions {
    width: 2rem;
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
    text-align: right;
    vertical-align: middle;
}

.recipe-appointment-status__remove-btn {
    opacity: 0.55;
}

.recipe-appointment-status__remove-btn:hover:not(:disabled) {
    opacity: 1;
}

.recipe-appointment-status__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--l-border-light, #ececec);
}

.recipe-appointment-status__action {
    border: none;
    background: transparent;
    color: var(--l-primary, #897449);
    font-size: 0.85rem;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.recipe-appointment-status__action:hover {
    text-decoration: underline;
}
