/* Personal inbox, item list and in-place handling detail. */
#flowCenterView { gap: 12px; }
#flowCenterView .screen-head { margin-bottom: 0; }
#flowCenterView .flow-toolbar { border-radius: 12px; padding: 12px; box-shadow: none; }
#flowCenterView .flow-stat { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 10px; box-shadow: none; }
#flowCenterView .flow-stat strong { margin: 0; font-size: 22px; }
#flowCenterView .flow-approval-workspace { grid-template-columns: 156px minmax(280px,.85fr) minmax(350px,1.15fr); gap: 12px; align-items: start; }
#flowCenterView .flow-panel { border-radius: 12px; padding: 16px; box-shadow: none; }
#flowCenterView .flow-inbox-nav { padding: 12px 8px; }
.flow-inbox-nav-title { color: #8f959e; font-size: 11px; padding: 10px 10px 8px; }
#flowCenterView .flow-inbox-nav .flow-tabs { display: grid; gap: 4px; }
#flowCenterView .flow-inbox-nav .flow-tab { border: 0; border-radius: 7px; text-align: left; padding: 11px 10px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
#flowCenterView .flow-tab.active { color: #1456f0; background: #eaf0ff; font-weight: 700; }
#flowCenterView .flow-tab-count:empty { display: none; }
.flow-inbox-hint { font-size: 12px; color: #646a73; line-height: 1.6; margin: 8px 0 14px; }
#flowCenterView .flow-inbox-list-panel .screen-panel-title { flex-wrap: wrap; gap: 8px; }
#flowCenterView .flow-inbox-list-panel .screen-panel-title strong { font-size: 15px; }
#flowCenterView .flow-inbox-list-panel .screen-panel-title span { font-size: 11px; }
#flowCenterView .flow-list { max-height: 72vh; overflow-y: auto; padding: 2px; }
#flowCenterView .flow-card { grid-template-columns: 1fr; border-radius: 8px; gap: 7px; padding: 12px; transform: none; box-shadow: none; }
#flowCenterView .flow-card-selected { border-color: #3370ff; background: #f0f4ff; }
#flowCenterView .flow-card-main strong { white-space: normal; }
#flowCenterView .flow-card-meta { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 5px 8px; min-width: 0; }
#flowCenterView .flow-card-meta > span { color: #646a73; font-size: 11px; }
#flowCenterView .flow-card-detail { max-height: 3em; }
#flowCenterView .flow-card-receipt { max-height: 4.5em; overflow: hidden; font-size: 12px; }
#flowCenterView .command-pager { flex-wrap: wrap; gap: 8px; font-size: 11px; }
#flowCenterView .flow-inbox-detail { padding: 0; overflow: hidden; position: sticky; top: 16px; display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.flow-inbox-detail-head { padding: 18px 20px 12px; border-bottom: 1px solid #eff0f1; }
.flow-inbox-detail-head h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.flow-inbox-detail-head p { color: #646a73; font-size: 12px; line-height: 1.7; margin: 8px 0 0; }
.flow-inbox-detail-body { min-height: 0; overflow-y: auto; padding: 0 20px 16px; overflow-wrap: anywhere; }
.flow-inbox-section { margin-top: 18px; }
.flow-inbox-section h4 { margin: 0 0 10px; font-size: 13px; color: #1f2329; }
.flow-inbox-text { white-space: pre-wrap; line-height: 1.75; font-size: 13px; color: #41464f; }
.flow-inbox-fields { display: grid; gap: 10px; margin: 0; }
.flow-inbox-fields dt { color: #8f959e; font-size: 12px; margin-bottom: 4px; }
.flow-inbox-fields dd { margin: 0; font-size: 13px; line-height: 1.6; white-space: pre-wrap; }
.flow-inbox-timeline { list-style: none; padding: 0 0 0 8px; margin: 0; }
.flow-inbox-timeline li { position: relative; padding: 0 0 18px 20px; border-left: 1px solid #dee0e3; }
.flow-inbox-timeline li:before { content: ''; position: absolute; top: 4px; left: -4px; width: 7px; height: 7px; background: #3370ff; border-radius: 50%; }
.flow-inbox-timeline strong { display: block; font-size: 12px; margin-bottom: 5px; }
.flow-inbox-timeline time { display: block; color: #8f959e; font-size: 11px; margin: 5px 0; }
.flow-inbox-detail-footer { padding: 12px 20px; border-top: 1px solid #dee0e3; background: #fff; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
#flowCenterView .flow-inbox-detail-footer .flow-card-action { min-height: 34px; font-size: 12px; }
.flow-inbox-detail-footer .flow-detail-no-action { font-size: 12px; line-height: 1.6; width: 100%; }
#flowCenterView details.card > summary { cursor: pointer; font-size: 12px; font-weight: 600; }
#flowAdvancedFilters[open] .flow-category-cards { margin-top: 12px; }
@media (max-width: 1280px) {
  #flowCenterView .flow-approval-workspace { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); }
  #flowCenterView .flow-inbox-nav { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
  #flowCenterView .flow-inbox-nav .flow-tabs { display: flex; flex-wrap: wrap; }
  .flow-inbox-nav-title { padding: 4px; }
  #flowCenterView .flow-inbox-nav .flow-tab { padding: 8px; font-size: 12px; }
}
@media (max-width: 760px) {
  #flowCenterView .flow-approval-workspace { grid-template-columns: minmax(0,1fr); }
  #flowCenterView .flow-inbox-detail { position: static; height: auto !important; }
  #flowCenterView .flow-list { max-height: 52vh; }
  #flowCenterView .flow-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  #flowCenterView .flow-filters { width: 100%; }
  #flowCenterView .flow-filters input, #flowCenterView .flow-filters select { min-width: 0; width: 100%; }
  #flowCenterView .flow-inbox-detail-body { max-height: none; }
  .flow-inbox-detail-head, .flow-inbox-detail-body, .flow-inbox-detail-footer { padding-left: 14px; padding-right: 14px; }
}
