/* TaskFooter — per-task sign-off row (Comments / Completed by).
   Already self-scoped under .task-footer (incl. .task-footer .field-*). #000 line stays
   literal. Global file is the reliable home for print-composed components. */
.task-footer {
    display: flex;
    flex-wrap: nowrap !important;
    gap: var(--pp-spacing-lg);
    padding: var(--pp-spacing-md) var(--pp-spacing-lg);
    border-top: var(--pp-border-light);
    background: var(--pp-bg-white);
    width: 100%;
    box-sizing: border-box;
}

/* Comments field takes 80% */
.task-footer-field.comments {
    display: flex;
    align-items: flex-end;
    gap: var(--pp-spacing-sm);
    width: 80%;
    flex: 0 0 80%;
    min-width: 0;
}

/* Completed by field takes 20% */
.task-footer-field.completed-by {
    display: flex;
    align-items: flex-end;
    gap: var(--pp-spacing-sm);
    width: 20%;
    flex: 0 0 20%;
    min-width: 0;
}

.task-footer .field-label {
    font-size: var(--pp-font-size-xs);
    color: var(--pp-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.task-footer .field-line {
    flex: 1;
    min-width: 20px;
    border-bottom: 1px solid #000;
    height: 16px;
}

/* Print Styles */
@media print {
    .task-footer {
        display: flex !important;
        flex-wrap: nowrap !important;
        border-top: 1px solid #000 !important;
    }

    .task-footer-field.comments {
        width: 80% !important;
        flex: 0 0 80% !important;
    }

    .task-footer-field.completed-by {
        width: 20% !important;
        flex: 0 0 20% !important;
    }
}
