.work-module { min-width: 0; }
.workspace-content .work-module h2 { font-size: 18px; margin: 0 0 6px; overflow-wrap: anywhere; }
.work-context, .work-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.work-context > label { width: min(360px, 100%); margin: 0; }
.work-context { background: #fbfcfd; }
.work-section-heading > div { min-width: 0; }
.work-module select, .work-module input { max-width: 100%; min-width: 0; }
.work-module form { max-width: 760px; margin: 12px 0 0; gap: 12px; }
.work-module form button { justify-self: start; width: auto; min-width: 150px; margin-top: 0; }
.work-module label { font-size: 12px; white-space: normal; text-align: left; min-width: 0; gap: 6px; }
.work-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.work-assignment > summary, .work-action > summary { font-size: 13px; color: #175f9f; cursor: pointer; font-weight: 650; }
.work-assignment > summary { padding: 2px 0; }
.work-assignment[open] > summary { padding-bottom: 12px; border-bottom: 1px solid #e7edf2; }
.work-preview { padding: 10px 12px; margin: 0; font-size: 12px; line-height: 1.5; background: #f0f7fc; border: 1px solid #dbe8f2; border-radius: 8px; color: #385970; overflow-wrap: anywhere; }
.work-table { width: 100%; font-size: 12px; margin: 10px 0 12px; }
.work-table th, .work-table td { padding: 10px; vertical-align: middle; }
.work-table thead th { font-size: 11px; background: #f5f8fa; }
.work-table tbody th { text-align: left; font-weight: 600; min-width: 170px; max-width: 380px; background: transparent; }
.work-table tbody th strong, .work-table tbody th small { display: block; overflow-wrap: anywhere; }
.work-table tbody th small { font-size: 11px; font-weight: 400; margin-top: 4px; }
.work-table td:nth-child(2) { min-width: 120px; max-width: 220px; white-space: normal; overflow-wrap: anywhere; }
.work-table .work-selected-row { background: #f0f7fd; box-shadow: inset 3px 0 #2d86d4; }
.work-table tbody tr:not(.work-selected-row):hover { background: #fafcfd; }
.work-list-count { font-size: 11px; color: #5b7182; background: #eff4f7; border-radius: 6px; padding: 5px 8px; }
.work-table-hint { margin: 4px 0 0; font-size: 11px; color: #6c7d89; }
.work-table-hint span { display: none; }
.work-status { display: inline-block; color: #39725b; background: #edf5f0; padding: 4px 7px; border-radius: 6px; font-size: 11px; font-weight: 500; margin-top: 6px; }
.work-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 14px 0 12px; margin: 0; }
.work-facts dt { font-size: 11px; color: #697c8b; }
.work-facts dd { margin: 7px 0 0; font-size: 15px; font-weight: 650; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.work-action { margin: 10px 0; padding-top: 12px; border-top: 1px solid #e4eaf0; }
.work-action[open] > summary { margin-bottom: 4px; }
.work-action form > .hint { max-width: 680px; line-height: 1.5; }
.work-detail > .work-section-heading { align-items: flex-start; }
.work-progress { max-width: 760px; margin-top: 16px; }
.work-progress > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #647a87; font-size: 11px; margin-bottom: 6px; }
.work-progress strong { color: #2d785d; font-size: 12px; }
.work-progress progress { appearance: none; display: block; width: 100%; height: 6px; border: 0; border-radius: 6px; background: #e9eff0; overflow: hidden; accent-color: #358568; }
.work-progress progress::-webkit-progress-bar { background: #e9eff0; border-radius: 6px; }
.work-progress progress::-webkit-progress-value { background: #358568; border-radius: 6px; }
.work-progress progress::-moz-progress-bar { background: #358568; border-radius: 6px; }
.work-action > p, .work-history p { font-size: 12px; overflow-wrap: anywhere; }
.authenticated .work-confirm { display: flex; gap: 9px; align-items: flex-start; line-height: 1.5; }
.authenticated .work-confirm input { width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; margin: 2px 0 0; }
.work-history { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e4eaf0; }
.work-history > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #486b7f; }
.work-history > .hint { margin-top: 10px; }
.work-history article { padding: 12px 0; border-bottom: 1px solid #e9eef2; font-size: 12px; }
.work-history article:last-child { border-bottom: 0; }
@media (max-width: 1100px) { .work-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .work-fields, .work-facts { grid-template-columns: minmax(0, 1fr); }
  .work-context { align-items: stretch; }
  .work-module form button { justify-self: stretch; width: 100%; min-width: 0; }
  .work-module .table-scroll { max-width: 100%; }
  .work-facts { gap: 10px; }
  .work-table-hint span { display: inline; }
  .work-list-count { white-space: nowrap; }
}

body.work-print { margin: 28px auto; padding: 0 24px; max-width: 820px; color: #182a38; background: #fff; font: 14px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; }
.work-print h1 { font-size: 25px; line-height: 1.2; margin: 0 0 24px; overflow-wrap: anywhere; }
.work-print p { margin: 10px 0; overflow-wrap: anywhere; }
.work-print hr { border: 0; border-top: 1px solid #ccd6de; margin: 22px 0 14px; }
@media print {
  @page { margin: 18mm; }
  body.work-print { max-width: none; padding: 0; margin: 0; color: #000; font-size: 11pt; }
  .work-print h1 { font-size: 18pt; break-after: avoid; }
  .work-print p { break-inside: avoid; }
}
