.workflow-page { --wf-text: #18212b; --wf-muted: #526174; --wf-line: #ccd4df; }
.workflow-page h1, .workflow-page .section-heading h1 { font-size: 30px; line-height: 1.2; letter-spacing: 0; overflow-wrap: anywhere; }
.workflow-page .owner-content { min-width: 0; }
.workflow-page .section-heading { flex-wrap: wrap; gap: 16px; }
.workflow-page .section-heading h2 { font-size: 22px; line-height: 1.3; letter-spacing: 0; overflow-wrap: anywhere; }
.workflow-page .workflow-section { padding: 24px 0; margin: 16px 0; border-top: 1px solid #67717b; min-width: 0; }
.workflow-page .workflow-section h2 { font-size: 22px; line-height: 1.3; margin: 0 0 16px; letter-spacing: 0; }
.workflow-page .workflow-section h3 { font-size: 18px; line-height: 1.4; margin: 24px 0 12px; letter-spacing: 0; }
.workflow-page .workflow-section .field { display: grid; gap: 8px; margin: 16px 0; }
.workflow-page .workflow-section input, .workflow-page .workflow-section textarea, .workflow-page .workflow-section select { min-width: 0; max-width: 100%; color: #18212b; background: #fff; }
.workflow-page .workflow-section textarea { min-height: 88px; }
.workflow-page .workflow-section summary { cursor: pointer; padding: 12px 0; overflow-wrap: anywhere; }
.workflow-page .button { white-space: normal; overflow-wrap: anywhere; min-height: 42px; box-shadow: none; text-align: center; }
.amendment-quantity { display: grid; grid-template-columns: minmax(0, 1fr) 88px; align-items: center; gap: 16px; margin: 16px 0; }
.amendment-quantity > span { min-width: 0; overflow-wrap: anywhere; }
.amendment-quantity small { display: block; font-size: 13px; line-height: 1.5; color: #a8b3c2; margin-top: 4px; }
.amendment-quantity input { width: 100%; min-height: 44px; border: 1px solid #ccd4df; border-radius: 6px; padding: 8px 12px; font: inherit; }
.customer-amendment { margin: 24px 0; padding: 20px 0; border-top: 1px solid currentColor; overflow-wrap: anywhere; }
.customer-amendment h2 { font-size: 22px; line-height: 1.3; letter-spacing: 0; }
.workflow-list { display: grid; gap: 16px; min-width: 0; }
.workflow-item { background: #fff; color: var(--wf-text); padding: 20px; border: 1px solid var(--wf-line); border-radius: 8px; min-width: 0; overflow-wrap: anywhere; }
.workflow-item h2, .workflow-item h3, .workflow-item p, .workflow-item label, .workflow-item summary { color: var(--wf-text); }
.workflow-item h2 { margin: 0; font-size: 19px; line-height: 1.35; letter-spacing: 0; }
.workflow-item header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.workflow-item header > span, .workflow-item > p { color: var(--wf-muted); font-size: 14px; }
.workflow-item textarea, .workflow-item input, .workflow-item select { min-width: 0; max-width: 100%; color: var(--wf-text); background: #fff; border: 1px solid var(--wf-line); }
.workflow-item .button-soft { color: var(--wf-text); background: #eef2f6; border: 1px solid var(--wf-line); box-shadow: none; }
.workflow-item .button { font-size: 14px; line-height: 1.4; white-space: normal; min-height: 42px; box-shadow: none; }
.workflow-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.workflow-item summary { cursor: pointer; padding: 8px 0; }
.workflow-item ol { margin: 8px 0; padding-left: 20px; }
.workflow-item li { margin-bottom: 8px; font-size: 14px; }
[data-workflow-message]:not(:empty) { padding: 12px 16px; border: 1px solid #95b9bb; background: #e8f5f2; color: #164540; margin: 12px 0; border-radius: 6px; }
[data-workflow-message][role="alert"] { color: #8d2222; background: #fff0f0; border-color: #d6a5a5; }
.workflow-page :focus-visible { outline: 3px solid #268381; outline-offset: 3px; }
.workflow-page button:disabled { opacity: .65; cursor: wait; }
.workflow-page .form-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); align-items: end; }
.workflow-settings { padding: 24px 0; border-bottom: 1px solid #67717b; }
.workflow-settings h2 { font-size: 22px; }
.workflow-settings input, .workflow-settings select, .workflow-settings textarea { max-width: 100%; min-width: 0; color: #18212b; background: #fff; }
.workflow-check { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0; }
.workflow-check input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 20px; margin: 2px 0 0; }
.workflow-check small { display: block; color: #526174; font-size: 12px; }
.workflow-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; border-bottom: 1px solid #67717b; padding: 12px 0; }
.workflow-order-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); align-items: start; }
.workflow-table-wrap { max-width: 100%; overflow-x: auto; margin: 20px 0; }
.workflow-table { width: 100%; border-collapse: collapse; background: #fff; color: #18212b; font-size: 14px; }
.workflow-table th,.workflow-table td { color: #18212b; background: #fff; padding: 12px; text-align: left; border-bottom: 1px solid #ccd4df; vertical-align: top; }
.workflow-table th { font-size: 12px; background: #edf2f6; }
.workflow-table small { display: block; color: #526174; }
.workflow-table .button-soft { color: #18212b; background: #edf2f6; box-shadow: none; }
.workflow-table .button { font-size: 13px; padding: 8px 12px; min-height: 36px; }
.meal-calendar { max-width: 1200px; margin: 0 auto; padding: 28px 0; min-width: 0; }
.meal-day-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.meal-calendar .workflow-item { display: flex; flex-direction: column; }
.meal-calendar .workflow-item > .workflow-actions { margin-top: auto; }
.meal-calendar .workflow-item strong, .meal-calendar .workflow-item li { color: #18212b; }
.meal-selection-row { border: 0; border-bottom: 1px solid #67717b; margin: 18px 0; padding: 0 0 18px; min-width: 0; }
.meal-selection-row legend { font-size: 16px; font-weight: 700; margin: 0 0 10px; }
.meal-selection-options { display: flex; flex-wrap: wrap; gap: 12px 20px; padding: 12px 0; }
.meal-selection-options > .field { flex: 1 1 220px; }
.meal-selection-row .button-soft, .meal-calendar > .workflow-actions .button-soft { background: #edf2f6; color: #18212b; border: 1px solid #ccd4df; box-shadow: none; }
.packing-label { width: 76mm; padding: 4mm; margin: 4mm auto; background: #fff; color: #000; break-after: page; border: 1px solid #000; }
.packing-label h1 { color: #000; font-size: 24px; margin: 12px 0; }
.packing-label p, .packing-label small { color: #000; }
@media print { .no-print { display: none !important; } .packing-label { border: 0; margin: 0; } }
@media (max-width: 640px) {
    .workflow-page h1, .workflow-page .section-heading h1 { font-size: 25px; }
    .workflow-item { padding: 16px; }
    .workflow-actions > .button { flex: 1 1 160px; }
}
