/* AUTH-01 + MYWORK-01: Account Security's "Log out of all devices" and its inline confirm; My Work's refresh in the toolbar row, the calls
   card's "Show all N", and the outline "0 need a date". */

/* ---------- AUTH-01 ---------- */
.authmywork01-logout-all {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--sr-border, var(--ui-border));
}

.authmywork01-logout-all > button {
  justify-self: start;
}

.authmywork01-confirm {
  display: grid;
  gap: 8px;
}

.authmywork01-confirm.hidden {
  display: none;
}

.authmywork01-confirm p {
  margin: 0;
}

.authmywork01-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- MYWORK-01 ---------- */
/* Laptop and wider: the refresh control shares the view toolbar's row, left of Agenda / List / Calendar (the phone keeps its own row). */
@media (min-width: 761px) {
  #staffMyWorkPanel {
    grid-template-columns: auto minmax(0, 1fr);
  }

  #staffMyWorkPanel > * {
    grid-column: 1 / -1;
  }

  #staffMyWorkPanel > .cal03-refresh-control {
    grid-column: 1;
    grid-row: 1;
    flex-wrap: nowrap;
  }

  #staffMyWorkPanel > .my-work-view-toolbar {
    grid-column: 2;
    grid-row: 1;
  }
}

.crm03a-mywork-rows.mywork01-limited > li:nth-child(n + 6) {
  display: none;
}

/* Laptop and wider: one line per call (name, then stage and place), so five calls never push the Agenda below a 768 px screen. */
@media (min-width: 761px) {
  #crm03aMyWorkLeads .crm03a-mywork-rows button {
    padding-block: 5px;
  }

  #crm03aMyWorkLeads .crm03a-mywork-rows button > span {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 10px;
  }
}

.crm03a-mywork-leads .mywork01-more {
  justify-self: start;
}

/* "0 need a date": the secondary (outline) look; above 0 it keeps today's style. */
#staffMyWorkPanel .my-work-needs-date-action.mywork01-zero:not(.active) {
  color: var(--sr-muted, var(--ui-muted));
  background: transparent;
  border-color: var(--sr-border, var(--ui-border));
  box-shadow: none;
  font-weight: 600;
}
