#headerTodo { position: relative; flex: 0 0 auto; margin-left: auto; }
#headerTodoRejectionCount:not([hidden]) { margin-inline-start: 4px; color: #9c372d; font-size: .8em; }
#todoCenterRejections:not([hidden]) {
  margin-block-end: 10px;
  padding: 10px 14px;
  border: 1px solid #e1c5b9;
  border-radius: 8px;
  background: #fff8f4;
}
#todoCenterRejections summary { cursor: pointer; }
#todoCenterRejections p { white-space: pre-wrap; }
#headerTodoButton { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 12px; border: 1px solid #dbe4ed; border-radius: 8px; background: #fff; color: #1b3553; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
#headerTodoButton:hover, #headerTodoButton[aria-expanded="true"] { color: #1769c2; background: #eef5fd; border-color: #9abfe8; }
#headerTodoButton:focus-visible, #headerTodoPanel button:focus-visible { outline: 2px solid #1769c2; outline-offset: 3px; }
#headerTodoCount { min-width: 21px; padding: 1px 6px; border-radius: 12px; color: #fff; background: #cf3b47; font-size: 12px; line-height: 19px; text-align: center; font-variant-numeric: tabular-nums; }
#headerTodoPanel { position: absolute; top: calc(100% + 9px); right: 0; z-index: 90; width: min(310px, calc(100vw - 24px)); padding: 15px; border: 1px solid #dce5ee; border-radius: 12px; background: #fff; color: #18314f; box-shadow: 0 12px 35px #17314b26; }
#headerTodoPanel .header-todo-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#headerTodoPanel h2 { margin: 0; font-size: 16px; }
#headerTodoRefresh { border: 0; padding: 5px; color: #1769c2; background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
#headerTodoStatus { min-height: 18px; margin: 8px 0 12px; color: #586b81; font-size: 12px; line-height: 1.5; }
#headerTodoPanel .header-todo-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; margin-top: 7px; padding: 10px 12px; border: 1px solid #e0e8f1; border-radius: 8px; background: #f8fafc; color: #17385a; font: inherit; text-align: left; cursor: pointer; }
#headerTodoPanel .header-todo-link:hover { border-color: #9abfe8; background: #edf5ff; }
#headerTodoPanel .header-todo-link span:last-child { font-size: 12px; font-variant-numeric: tabular-nums; }
#headerTodoPanel button:disabled { opacity: .55; cursor: default; }
@media (max-width: 700px) { #headerTodoButton { padding: 6px 9px; min-height: 34px; } #headerTodo { margin-left: 0; } }


/* The Work todo center hosts the existing approval workspaces. */
#workTodoCenterSection:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}
.todo-category-rail {
  padding: 16px 10px 10px;
  border: 1px solid #dce5eb;
  border-radius: 12px;
  background: #fff;
  min-width: 0;
}
.todo-category-rail h2 {
  margin: 0 8px 12px;
  color: #1b344c;
  font-size: 15px;
}
#todoCenterCategories { display: grid; gap: 5px; }
.todo-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #314a60;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.todo-category[hidden] { display: none; }
.todo-category:hover, .todo-category[aria-current] { background: #eaf5f3; color: #0d655d; }
.todo-category[aria-current] { border-color: #b4d8d3; font-weight: 650; }
.todo-category:focus-visible { outline: 2px solid #126d65; outline-offset: 2px; }
.todo-category span { min-width: 1.5em; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
#todoCenterContent { min-width: 0; }
body.work-console-layout #appShell #todoCenterContent > .content { min-width: 0; max-width: none; margin: 0; padding: 0; }
.todo-center-status { margin: 0 0 10px; padding: 14px; border: 1px solid #dce5eb; border-radius: 10px; background: #fff; color: #465e72; }
#todoCenterContent .contract-approval-layout {
  grid-template-columns: minmax(170px, 280px) minmax(0, 1fr);
}
#todoCenterContent .contract-approval-preview { min-width: 0; }
@media (max-width: 1120px) {
  #workTodoCenterSection:not([hidden]) { grid-template-columns: minmax(0, 1fr); }
  .todo-category-rail { padding: 8px 10px; }
  .todo-category-rail h2 { margin: 0 0 4px; }
  #todoCenterCategories { display: flex; flex-wrap: wrap; }
}
@media (max-width: 760px) {
  #todoCenterContent .contract-approval-layout { grid-template-columns: minmax(0, 1fr); }
}

.todo-mode-switch { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-bottom:16px;padding:3px;border-radius:8px;background:#eaf0f3; }
.todo-mode-switch button { cursor:pointer;font:inherit;font-weight:600;border:0;border-radius:6px;background:transparent;color:#405267;padding:7px 4px; }
.todo-mode-switch button[aria-pressed="true"] { background:#10695f;color:white; }
.todo-mode-switch button[hidden] { display:none; }
@media (max-width:1120px) {
  .todo-mode-switch:has([data-todo-view="handled"]:not([hidden])) { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .todo-mode-switch [data-todo-view="handled"] { grid-column:auto; }
}
