@import url('./compact-detail-identity.css');

.my-tasks-heading[hidden] { display:none; }
:root.workspace-board-integrated .my-tasks-workspace { padding-top:8px; }

.my-tasks-tabs { display:flex; gap:6px; }
.my-tasks-tabs [aria-current="page"],
.my-tasks-detail-view [aria-pressed="true"] {
  color:var(--orange);
  border-color:var(--orange);
}
.my-tasks-overview { align-items:center; }
.my-tasks-detail-view:not([hidden]) { display:flex; flex-wrap:wrap; gap:5px; }
.my-tasks-detail-view .button { min-height:28px; padding:3px 8px; font-size:11px; }

.my-tasks-workspace .board-column-header { justify-content:space-between; }
.my-task-card h3 { margin:0; }
.my-task-card p { margin:0; }
.my-task-card .my-task-reference {
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
  overflow-wrap:anywhere;
}
.my-task-card .my-task-context {
  margin-top:6px;
  color:var(--muted);
  font-size:12px;
  overflow-wrap:anywhere;
}
.my-task-card .my-task-stage {
  display:inline-block;
  margin-top:6px;
  padding:2px 6px;
  border:1px solid var(--line);
  border-radius:4px;
  font-size:11px;
  overflow-wrap:anywhere;
}
.my-task-operations {
  margin-top:9px;
  padding-top:7px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:11px;
}
.my-task-operations ul { display:grid; gap:3px; margin:4px 0 0; padding:0; list-style:none; }
.my-task-operation {
  display:grid;
  gap:2px;
  padding:4px 5px;
  border-radius:4px;
  color:var(--text);
  overflow-wrap:anywhere;
}
.my-task-operation:hover,
.my-task-operation:focus-visible { background:var(--orders-theme-raised,var(--panel-hover)); }
.my-task-operation-code,
.my-task-operation-status { color:var(--muted); }
.my-task-operation-code { font-variant-numeric:tabular-nums; }
.my-task-operation-status { font-size:10px; }

@media (pointer:coarse) {
  .my-tasks-detail-view .button { min-height:44px; }
  .my-task-operation { min-height:44px; }
}
/* The task hub uses the same surface, avatars, stickers and card technology as the production boards. */
.my-tasks-workspace {min-height:0;position:relative}
.my-tasks-overview {gap:12px;flex-wrap:wrap}
.my-tasks-overview p {margin:0;margin-right:auto;font-size:13px}
.task-layout-toggle {display:flex;gap:3px}
.task-layout-toggle .button,.my-tasks-detail-view .button {min-height:32px;font-size:13px;padding:4px 10px;border-radius:6px}
.task-layout-toggle [aria-pressed=true] {background:var(--ganza-app-accent-tint,var(--panel-hover));color:var(--orange);border-color:var(--orange)}
.task-grouping select,.my-task-plan {font:inherit;font-size:13px;color:var(--text);border:1px solid var(--line);border-radius:6px;background:var(--panel);min-height:32px;padding:4px 24px 4px 8px;max-width:100%}
.my-task-plan-hint,.my-task-error {margin:0 12px 8px;font-size:13px;line-height:1.5}
.my-task-plan-hint {color:var(--muted)}
.my-task-error {color:var(--danger,#e58b82)}
.my-task-group .board-column-title button {font:inherit;color:inherit;border:0;background:none;padding:0;cursor:pointer;display:flex;gap:6px;align-items:center}
[data-task-layout=board] .my-task-group .board-column-title button span {display:none}
.my-task-card {min-width:0;padding:12px;overflow:hidden}
.my-task-name {min-width:0}
.my-task-card .board-card-title {font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.my-task-card .my-task-context {font-size:12px;line-height:1.4;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.my-task-card .my-task-reference {font-size:12px;margin-top:3px}
.my-task-service {font-size:11px;padding:1px 5px;margin-left:6px;border:1px solid var(--line);border-radius:4px}
.my-task-responsibles {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:9px 0 6px}
.my-task-people {display:flex;align-items:center;flex-direction:column;min-width:0;gap:4px}
.my-task-people-label {font-size:11px;color:var(--muted)}
.my-task-people .assignee-button {display:flex;justify-content:center;align-items:center;min-width:32px;min-height:30px;padding:2px;border:0;background:none;border-radius:5px;color:var(--text)}
.my-task-people .assignee-button:disabled {opacity:1;cursor:default}
.my-task-people .assignee-avatar-stack {display:inline-flex;align-items:center;padding-right:2px}
.my-task-people .avatar {width:25px;height:25px;flex:none;font-size:10px}
.my-task-people .assignee-avatar-stack .avatar+.avatar,.my-task-people .more-people {margin-left:-7px}
.my-task-people .more-people {border:2px solid var(--panel);border-radius:50%;min-width:24px;height:24px;font-size:10px;background:var(--panel);display:grid;place-items:center}
.my-task-not-applicable,.my-task-no-stickers {color:var(--muted);font-size:12px}
.my-task-due {display:flex;align-items:baseline;gap:4px 6px;font-size:14px;font-variant-numeric:tabular-nums;color:var(--text);margin:5px 0}
.my-task-due-source {font-size:12px;color:var(--muted)}
.my-task-due time {white-space:nowrap}
.my-task-due time.sticker-chip {gap:4px;justify-self:start}
[data-task-layout=list] .my-task-due time.sticker-chip {justify-self:end}
[data-task-layout=list] .my-task-due {display:grid;gap:1px}
.my-task-empty-toggle:not([hidden]) {display:inline-flex;margin:4px 8px 12px;font-size:13px}
.my-task-empty-toggle[hidden] {display:none}
.my-task-empty-toggle:focus-visible,.my-task-group [data-collapse-group]:focus-visible {outline:2px solid var(--orange);outline-offset:2px}
.my-task-no-results {align-self:start;grid-column:1/-1}
[data-task-layout] .board-column.is-drop-target {outline:2px solid var(--orange);outline-offset:-2px}
@media (pointer:fine) {
  [data-task-layout] :is(.my-task-card,.personal-task-card)[draggable="true"] {cursor:grab}
}
.my-task-stickers {display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:7px 0;min-width:0}
.my-task-stickers .sticker-chip {display:inline-flex;align-items:center;gap:4px;border:1px solid var(--line);border-radius:4px;min-height:23px;padding:2px 6px;font:inherit;font-size:12px;line-height:1.25;max-width:100%;min-width:0}
.my-task-stickers .sticker-chip>span:last-child {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:210px}
.my-task-stickers .sticker-chip svg {width:14px;height:14px;flex:none}
.my-task-stickers .sticker-color-dot {flex:none}
.my-task-stickers .sticker-add {width:25px;justify-content:center;background:none;color:var(--muted)}
.my-task-card .card-technology {margin:10px -12px -12px}
.my-task-card .card-technology summary {min-height:32px}
.my-task-card .my-task-plan {display:block;margin-top:6px;font-size:12px;min-height:28px}
.my-task-detail-compact .my-task-responsibles {
  display:flex;
  flex-wrap:wrap;
  gap:2px 12px;
  margin:5px 0 0;
}
.my-task-detail-compact .my-task-people {flex-direction:row}
.my-task-detail-compact .my-task-people[data-person-level="task"] {display:none}
.my-task-detail-compact .my-task-people .avatar {width:22px;height:22px;font-size:9px}
.my-task-detail-compact .my-task-name .my-task-reference {font-size:11px}
.my-task-detail-compact .card-technology {margin-top:5px}
.my-task-card.is-done .my-task-name h3 {opacity:.75}
[data-task-layout=list].board-scroll {overflow:auto;scroll-snap-type:none;display:block;padding:0 12px 20px}
[data-task-layout=list] .board-columns {display:block;width:100%;min-width:0;gap:0;height:auto;padding:0}
[data-task-layout=list] .my-task-group {width:100%;min-width:0;max-width:none;background:none;border:0;border-radius:0;overflow:visible;margin-bottom:18px;height:auto}
[data-task-layout=list] .board-column-header {padding:12px 8px;border-bottom:1px solid var(--line);justify-content:flex-start;gap:9px;min-height:42px}
[data-task-layout=list] .board-card-list {display:block;padding:0;height:auto;max-height:none;overflow:visible;min-height:0}
[data-task-layout=list] .board-card-list[hidden] {display:none}
/* One grid sets the column stops for the header and every assignment. */
#myTasksScroll[data-task-layout="list"] {
  --task-columns: minmax(0, 1.3fr) minmax(246px, .75fr) 92px minmax(0, 1fr);
  --task-gutter: clamp(10px, 1.1vw, 18px);
  --task-inset: 12px;
  --task-line: color-mix(in srgb, var(--line) 75%, transparent);
  container: task-list / inline-size;
  scrollbar-gutter: stable;
  background: var(--bg);
}
#myTasksScroll[data-task-layout="list"] :is(.my-task-card, .my-task-list-head) {
  display: grid;
  grid-template-columns: var(--task-columns);
  grid-template-areas: "name people due stickers";
  gap: 0 var(--task-gutter);
  align-items: start;
  box-sizing: border-box;
  padding-inline: var(--task-inset);
  min-width: 0;
}
#myTasksScroll .my-task-list-head {
  position: sticky;
  inset-block-start: 0;
  z-index: 3;
  align-items: end;
  padding-block: 6px;
  border-bottom: 1px solid var(--task-line);
  background: var(--panel);
  font-size: 11px;
  color: var(--muted);
}
.my-task-list-head > div {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 2px 4px;
  text-align: center;
}
.my-task-list-head strong {grid-column:1/-1;font-weight:600}
#myTasksScroll[data-task-layout="list"] .my-task-group {
  display:block;
  width:100%;
  margin:0 0 12px;
  border:0;
  border-radius:0;
  background:var(--panel);
  box-shadow:none;
}
#myTasksScroll[data-task-layout="list"] .board-column-header {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:7px;
  min-height:32px;
  border:0;
  border-block-end:1px solid var(--task-line);
  border-radius:0;
  padding:0 var(--task-inset);
  background:var(--field);
}
#myTasksScroll[data-task-layout="list"] .board-column-title {flex:0 1 auto;min-width:0}
#myTasksScroll[data-task-layout="list"] [data-collapse-group] {gap:9px;min-height:30px}
#myTasksScroll[data-task-layout="list"] .my-task-group-chevron {
  width:7px;height:7px;border:solid var(--muted);border-width:0 1.5px 1.5px 0;transform:rotate(-45deg)
}
#myTasksScroll[data-task-layout="list"] [aria-expanded="true"] .my-task-group-chevron {transform:translateY(-2px) rotate(45deg)}
#myTasksScroll[data-task-layout="list"] .my-task-card {
  grid-template-areas:"name people due stickers" "technology technology technology technology";
  margin:0;
  padding-block:9px;
  border:0;
  border-block-end:1px solid var(--task-line);
  border-radius:0;
  background:var(--panel);
  box-shadow:none;
}
#myTasksScroll[data-task-layout="list"] .my-task-card:is(:hover,:focus-within) {background:var(--orders-theme-raised,var(--panel-hover))}
#myTasksScroll[data-task-layout="list"] .my-task-card.is-active-card {box-shadow:inset 2px 0 var(--orange)}
#myTasksScroll[data-task-layout="list"] .my-task-name {grid-area:name}
#myTasksScroll[data-task-layout="list"] .my-task-name h3 {line-height:1.35}
#myTasksScroll[data-task-layout="list"] .board-card-title {font-size:14px;font-weight:650;line-height:1.35}
#myTasksScroll[data-task-layout="list"] .my-task-reference {font-variant-numeric:tabular-nums;font-size:11px}
#myTasksScroll[data-task-layout="list"] .my-task-responsibles {grid-area:people;margin:0}
#myTasksScroll[data-task-layout="list"] .my-task-people-label {display:none}
#myTasksScroll[data-task-layout="list"] .my-task-not-applicable {display:grid;place-items:center;min-height:28px}
#myTasksScroll[data-task-layout="list"] .my-task-people .assignee-button {min-height:28px;padding:1px}
#myTasksScroll[data-task-layout="list"] .my-task-due {grid-area:due;display:grid;justify-items:start;gap:2px;margin:0}
#myTasksScroll[data-task-layout="list"] .my-task-due time {justify-self:start}
#myTasksScroll[data-task-layout="list"] .my-task-due-source {font-size:11px}
#myTasksScroll[data-task-layout="list"] .my-task-stickers {grid-area:stickers;margin:0;align-content:start}
#myTasksScroll[data-task-layout="list"] .my-task-stickers .sticker-chip>span:last-child {max-width:100%}
#myTasksScroll[data-task-layout="list"] .my-task-plan {width:fit-content}
#myTasksScroll[data-task-layout="list"] .my-task-card > .card-technology {
  grid-area:technology;
  min-width:0;
  margin:6px 0 0;
  padding:0;
  border:0;
  border-radius:0;
  overflow:visible;
}
#myTasksScroll[data-task-layout="list"] .card-technology > summary {
  --board-meter-height:4px;
  display:grid;
  grid-template-columns:minmax(0,1fr) max-content 9px;
  grid-template-areas:"label count arrow";
  align-items:center;
  gap:3px 7px;
  box-sizing:border-box;
  width:100%;
  min-height:24px;
  padding:2px 0 4px;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--muted);
  font-size:12px;
}
#myTasksScroll[data-task-layout="list"] .card-technology > summary:has(progress) {
  grid-template-areas:"label count arrow" "rail rail rail";
}
#myTasksScroll[data-task-layout="list"] .card-technology-label {grid-area:label;font-weight:600}
#myTasksScroll[data-task-layout="list"] .card-technology > summary i {grid-area:arrow;margin-inline:0}
#myTasksScroll[data-task-layout="list"] .card-technology > summary:is(:hover,:focus-visible) {color:var(--text)}
#myTasksScroll[data-task-layout="list"] .card-technology-content {
  box-sizing:border-box;width:100%;margin:0;padding:0;
  border:1px solid var(--task-line);border-radius:6px;background:var(--panel);
}
#myTasksScroll[data-task-layout="list"] .card-technology:not([open]) .card-technology-content {display:none}
#myTasksScroll[data-task-layout="list"] .card-technology-group li:first-child {border-block-start:0}
#myTasksScroll[data-task-layout="list"] .board-empty {background:none;border:0;text-align:left;color:var(--muted);padding:12px var(--task-inset)}
#myTasksControls[data-layout="list"] {align-items:center;gap:8px}
#myTasksControls[data-layout="list"] :is(.button,select) {box-sizing:border-box;min-height:32px;height:32px}
#myTasksControls[data-layout="list"] :is(.task-layout-toggle,.my-tasks-detail-view:not([hidden])) {
  display:inline-flex;align-items:center;gap:2px;padding:2px;border:1px solid var(--line);border-radius:7px;background:var(--field);
}
#myTasksControls[data-layout="list"] .button {
  min-height:26px;height:26px;border:0;border-radius:4px;padding:2px 10px;background:transparent;color:var(--muted);box-shadow:none;
}
#myTasksControls[data-layout="list"] .button[aria-pressed="true"] {
  background:var(--panel);color:var(--text);box-shadow:inset 0 -2px var(--orange);
}
#myTasksControls[data-layout="list"] .button:hover {color:var(--text);background:var(--panel-hover)}
@container task-list (max-width:800px) {
  #myTasksScroll[data-task-layout="list"] .my-task-list-head {display:none}
  #myTasksScroll[data-task-layout="list"] .my-task-card {
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"name due" "people people" "stickers stickers" "technology technology";
    row-gap:6px;
  }
  #myTasksScroll[data-task-layout="list"] .my-task-due {justify-items:end}
  #myTasksScroll[data-task-layout="list"] .my-task-due time {justify-self:end}
  #myTasksScroll[data-task-layout="list"] .my-task-responsibles {width:min(100%,320px);justify-items:start}
  #myTasksScroll[data-task-layout="list"] .my-task-people-label {display:block}
  #myTasksScroll[data-task-layout="list"] .my-task-people {align-items:start;gap:1px}
  #myTasksScroll[data-task-layout="list"] .my-task-card > .card-technology {margin-block-start:0}
}
@container task-list (max-width:390px) {
  #myTasksScroll[data-task-layout="list"] .my-task-card {
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"name" "people" "due" "stickers" "technology";
  }
  #myTasksScroll[data-task-layout="list"] .my-task-responsibles {display:flex;flex-wrap:wrap;gap:4px 12px}
  #myTasksScroll[data-task-layout="list"] .my-task-due {display:flex;align-items:center;gap:5px}
}
@media(max-width:760px){
 .my-tasks-overview {gap:8px}
 .my-tasks-overview p {order:3;width:100%;margin:0}
 [data-task-layout=list].board-scroll {padding:0 8px 16px}
 .my-task-stickers .sticker-chip {font-size:12px}
 .my-task-people .assignee-button {min-height:34px}
}
:root.fluent-approved .my-task-people .avatar {border-radius:50%}
.my-tasks-heading .board-toolbar {min-width:0;flex-wrap:wrap}
.my-tasks-heading .my-tasks-tabs {min-width:0;max-width:100%;overflow-x:auto;flex:1 1 100%;padding-bottom:4px}
.my-tasks-heading .board-search {order:-1}
@media(max-width:760px){.my-tasks-heading .board-search{max-width:100%;width:100%;flex-basis:100%}}
