:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #002355;
  background: #e6e6e6;
  font-synthesis: none;
  --open-workitems-bar-height: 60px;
  --brand-blue: #004baf;
  --brand-yellow: #f0b400;
  --brand-gray: #d0d0d0;
  --brand-navy: #002355;
  --brand-gray-dark: #afafaf;
  --brand-gray-light: #e6e6e6;
  --brand-blue-80: #4e65a6;
  --brand-blue-60: #7885bc;
  --brand-blue-40: #a4abd4;
  --brand-blue-20: #d1d4ea;
  --brand-navy-80: #465576;
  --brand-navy-60: #748098;
  --brand-navy-40: #a2aabb;
  --brand-navy-20: #d1d5dd;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
}

body.has-tasks {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.has-tasks .app-header {
  flex: 0 0 auto;
}

body.has-tasks main {
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.has-tasks.has-open-workitems main {
  padding-bottom: calc(var(--open-workitems-bar-height) + 12px);
}

body.has-tasks #workspace {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

body.has-tasks #workspace > .toolbar,
body.has-tasks .table-heading,
body.has-tasks .table-panel > .pagination {
  flex: 0 0 auto;
}

body.has-tasks .table-panel {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

body.has-tasks .table-panel > .table-scroll {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
}

body.has-tasks .workitems-table thead {
  position: sticky;
  z-index: 3;
  top: 0;
}

button,
select,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.app-header {
  position: relative;
  min-height: 68px;
  padding: 8px clamp(18px, 4vw, 56px);
  color: #fff;
  border-bottom: 4px solid var(--brand-yellow);
  background: var(--brand-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.app-header h1,
.app-header p {
  margin: 0;
}

.app-header h1 {
  font-size: 1.45rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-navigation {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translate(-50%, -50%);
}

.header-navigation-button {
  white-space: nowrap;
}

.app-header .header-navigation-button[aria-pressed="true"] {
  border-color: #fff;
  color: var(--brand-navy);
  background: #fff;
}

.queue-status-button,
.user-menu-button {
  min-height: 42px;
  border: 1px solid var(--brand-blue-60);
  border-radius: 21px;
  color: #fff;
  background: rgb(255 255 255 / 8%);
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}

.queue-status-button {
  min-width: 124px;
  justify-content: center;
  padding: 8px 15px;
}

.queue-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #aab5c2;
  box-shadow: 0 0 0 3px rgb(255 255 255 / 12%);
}

.queue-status-button.is-on-queue {
  border-color: #61c68a;
  background: rgb(25 133 77 / 35%);
}

.queue-status-button.is-on-queue .queue-status-dot {
  background: #6ce19c;
}

.user-menu-container {
  position: relative;
}

.user-menu-button {
  max-width: 240px;
  padding: 5px 12px 5px 6px;
}

.user-menu-button > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--brand-navy);
  background: var(--brand-blue-20);
  display: grid;
  place-items: center;
  font-size: 0.76rem;
}

.menu-chevron {
  color: var(--brand-blue-20);
}

.user-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  right: 0;
  width: min(390px, calc(100vw - 24px));
  max-height: calc(100vh - 100px);
  border: 1px solid #d6dde7;
  border-radius: 10px;
  overflow-y: auto;
  color: #17212b;
  background: #fff;
  box-shadow: 0 14px 36px rgb(14 31 53 / 24%);
}

.user-menu-identity,
.menu-section,
.menu-field,
.agent-menu-status {
  padding: 14px 16px;
}

.user-menu-identity {
  border-bottom: 1px solid #e3e8ef;
  display: grid;
  gap: 3px;
}

.user-menu-identity span,
.menu-muted {
  color: #687687;
  font-size: 0.82rem;
}

.agent-menu-status {
  color: #8a3b16;
  font-size: 0.8rem;
  white-space: pre-wrap;
}

.agent-menu-status:empty {
  display: none;
}

.menu-field {
  padding-top: 0;
  display: grid;
  gap: 6px;
  color: #344252;
  font-size: 0.82rem;
  font-weight: 700;
}

.language-menu-field {
  padding-top: 14px;
}

.inline-menu-field {
  grid-template-columns: minmax(112px, auto) minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
}

.inline-menu-field select {
  min-width: 0;
}

.menu-field select,
.menu-field input[type="datetime-local"] {
  width: 100%;
  min-height: 39px;
  border: 1px solid #aab5c2;
  border-radius: 6px;
  padding: 7px 9px;
  color: #17212b;
  background: #fff;
}

.menu-section {
  border-top: 1px solid #e3e8ef;
}

.menu-section h2 {
  margin: 0;
  font-size: 0.9rem;
}

.menu-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-section-toggle {
  min-width: 0;
  border: 0;
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #344252;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
}

.menu-section-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 120ms ease;
}

.menu-section-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.text-button {
  border: 0;
  padding: 3px;
  color: #2457aa;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 700;
}

.queue-list {
  max-height: 190px;
  margin-top: 9px;
  overflow-y: auto;
}

.queue-row,
.check-row {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.84rem;
}

.queue-row input,
.check-row input {
  width: 17px;
  height: 17px;
  accent-color: #2c5cc5;
}

.out-of-office-fields {
  margin: 10px -16px 0;
}

.out-of-office-fields .menu-field {
  padding-bottom: 8px;
}

.out-of-office-fields .check-row {
  padding: 0 16px 8px;
}

.menu-save-button {
  width: 100%;
  margin-top: 10px;
}

.menu-signout-button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-top: 1px solid #e3e8ef;
  padding: 10px 16px;
  color: #a12727;
  background: #fff;
  text-align: left;
  font-weight: 700;
}

.user-menu-attribution {
  margin: 0;
  padding: 8px 16px 10px;
  color: #687687;
  font-size: 0.72rem;
  text-align: center;
}

.eyebrow {
  margin-bottom: 2px !important;
  color: var(--brand-blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-header .eyebrow {
  color: var(--brand-yellow);
}

main {
  width: min(1600px, 100%);
  margin: 0 auto;
  padding: 5px clamp(14px, 3vw, 40px);
}

.panel {
  border: 1px solid var(--brand-gray);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(31 50 81 / 7%);
}

.status-panel,
.error-panel {
  min-height: 150px;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.status-panel h2,
.status-panel p,
.error-panel h2,
.error-panel p {
  margin: 0;
}

.status-panel p,
.error-panel p {
  margin-top: 7px;
  color: #526171;
}

.error-panel {
  border-color: #e8b4b4;
  justify-content: space-between;
}

.error-details {
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.82rem;
}

.toolbar {
  padding: 6px 16px;
  display: flex;
  align-items: end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px 10px;
}

.toolbar-filters {
  display: flex;
  align-items: end;
  gap: 10px;
}

.toolbar-controls {
  display: contents;
}

.toolbar-filters {
  display: contents;
}

.toolbar-filters > label {
  width: 145px;
  display: grid;
  gap: 7px;
  color: #344252;
  font-size: 0.84rem;
  font-weight: 700;
}

.toolbar-filters > .workitem-text-filter {
  width: 180px;
}

.toolbar-filters > .status-filter {
  width: 130px;
}

.toolbar-filters > .assignment-filter {
  width: 145px;
}

.toolbar-filters > .division-filter {
  width: 175px;
}

.toolbar-filters input,
.toolbar-filters select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #aab5c2;
  border-radius: 6px;
  padding: 7px 11px;
  color: #17212b;
  background: #fff;
}

.assignee-combobox {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
}

.assignee-combobox-input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid #aab5c2;
  border-radius: 6px 0 0 6px !important;
  padding: 7px 11px;
  overflow: hidden;
  color: #17212b;
  background: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.assignee-combobox-input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  color: #526171;
  background: #f1f3f5;
}

.assignee-combobox-toggle {
  min-width: 34px;
  min-height: 40px;
  margin-left: -1px;
  border: 1px solid #aab5c2;
  border-radius: 0 6px 6px 0;
  padding: 0;
  display: grid;
  place-items: center;
  color: #344252;
  background: #fff;
}

.assignee-combobox-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 120ms ease;
}

.assignee-combobox-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.assignee-combobox-input:focus-visible,
.assignee-combobox-toggle:focus-visible {
  position: relative;
  z-index: 1;
}

.assignee-options-panel {
  position: fixed;
  z-index: 1400;
  max-height: 350px;
  overflow-y: auto;
  border: 1px solid #aab5c2;
  border-radius: 6px;
  padding: 4px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(15 27 45 / 24%);
}

.assignee-options-heading {
  margin: 4px 6px 2px;
  padding: 6px 4px 4px;
  border-top: 1px solid #e4e8ee;
  border-bottom: 1px solid #e4e8ee;
  color: #647283;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.assignee-notify-preference {
  margin: 2px 4px 5px;
  border-bottom: 1px solid #e4e8ee;
  padding: 7px 6px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #344252;
  font-size: .8rem;
  font-weight: 700;
}

.assignee-notify-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 46px;
  cursor: pointer;
}

.assignee-notify-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  opacity: 0;
}

.assignee-notify-slider {
  position: absolute;
  inset: 0;
  border: 1px solid #9aa8b8;
  border-radius: 13px;
  background: #dce2ea;
  transition: border-color 140ms ease, background 140ms ease;
}

.assignee-notify-slider::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgb(15 27 45 / 28%);
  content: "";
  transition: transform 140ms ease;
}

.assignee-notify-switch input:checked + .assignee-notify-slider {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
}

.assignee-notify-switch input:checked + .assignee-notify-slider::before {
  transform: translateX(20px);
}

.assignee-notify-switch input:focus-visible + .assignee-notify-slider {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 2px;
}

.assignee-options-panel[hidden] {
  display: none;
}

.assignee-option {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 4px;
  padding: 7px 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #17212b;
  text-align: left;
  background: transparent;
}

.assignee-option:hover,
.assignee-option:focus-visible,
.assignee-option.is-selected {
  background: var(--brand-blue-20);
}

.assignee-option:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.assignee-option:disabled:hover {
  background: transparent;
}

.assignee-option-name {
  min-width: 0;
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assignee-option-status {
  flex: 0 0 auto;
  color: #647283;
  font-size: .76rem;
  white-space: nowrap;
}

.toolbar-refresh-button,
.toolbar-columns-reset-button,
.toolbar-reset-filters-button {
  flex: 0 0 auto;
  margin-left: 2px;
}

.toolbar-refresh-button svg,
.toolbar-columns-reset-button svg,
.toolbar-reset-filters-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toolbar-refresh-button.is-loading:disabled {
  opacity: 1;
}

.toolbar-refresh-button.is-loading svg {
  transform-origin: center;
  animation: spin 0.8s linear infinite;
}

.toolbar-reset-filters-button {
  width: 40px;
  min-height: 40px;
  padding: 7px;
}

.organization-filter {
  position: relative;
  width: 210px;
  display: grid;
  gap: 7px;
  color: #344252;
  font-size: 0.84rem;
  font-weight: 700;
}

.organization-filter > label {
  width: auto;
}

.organization-combobox {
  position: relative;
}

.organization-combobox input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #aab5c2;
  border-radius: 6px;
  padding: 7px 36px 7px 11px;
  color: #17212b;
  background: #fff;
}

.organization-clear {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  padding: 0;
  color: #687687;
  background: transparent;
  transform: translateY(-50%);
  font-size: 1.2rem;
}

.organization-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid #d6dde7;
  border-radius: 8px;
  padding: 5px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(14 31 53 / 18%);
}

.organization-option {
  width: 100%;
  border: 0;
  border-radius: 5px;
  padding: 9px 10px;
  color: #26384c;
  background: transparent;
  display: grid;
  gap: 3px;
  text-align: left;
}

.organization-option:hover,
.organization-option:focus-visible {
  background: #edf4ff;
}

.organization-option:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.organization-option-primary {
  font-weight: 700;
}

.organization-option-secondary,
.organization-search-status {
  color: #687687;
  font-size: 0.76rem;
  font-weight: 400;
}

.organization-search-status:empty {
  display: none;
}

.toolbar-filter-options {
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.toolbar-check {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #344252;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.toolbar-check input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #2c5cc5;
}

.due-filter {
  position: relative;
  display: grid;
  gap: 7px;
  color: #344252;
  font-size: 0.84rem;
  font-weight: 700;
}

.due-filter-button {
  width: 185px;
  min-width: 0;
  min-height: 40px;
  border: 1px solid #aab5c2;
  border-radius: 6px;
  padding: 7px 10px;
  color: #26384c;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  text-align: left;
}

.calendar-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

#dueFilterButtonText {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.due-filter-chevron {
  color: #687687;
  font-size: 1rem;
}

.due-filter-panel {
  position: absolute;
  z-index: 15;
  top: calc(100% + 8px);
  right: 0;
  width: min(300px, calc(100vw - 28px));
  border: 1px solid #d6dde7;
  border-radius: 8px;
  padding: 10px;
  color: #17212b;
  background: #fff;
  box-shadow: 0 12px 30px rgb(14 31 53 / 18%);
}

.due-filter-options {
  display: grid;
  gap: 4px;
}

.due-filter-option {
  width: 100%;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 8px 10px;
  color: #26384c;
  background: transparent;
  text-align: left;
  font-size: 0.84rem;
  font-weight: 700;
}

.due-filter-option:hover,
.due-filter-option.is-active {
  border-color: #c4d3ec;
  color: #1e4c9c;
  background: #edf4ff;
}

.due-custom-range {
  margin-top: 10px;
  border-top: 1px solid #e3e8ef;
  padding-top: 12px;
}

.due-range-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.due-range-fields label {
  display: grid;
  gap: 6px;
  color: #344252;
  font-size: 0.78rem;
  font-weight: 700;
}

.due-range-fields input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid #aab5c2;
  border-radius: 6px;
  padding: 6px 8px;
  color: #17212b;
  background: #fff;
}

.due-range-error {
  min-height: 18px;
  margin: 7px 0 0;
  color: #a12727;
  font-size: 0.76rem;
}

.due-range-apply {
  width: 100%;
  min-height: 38px;
}

.due-filter-clear {
  width: 100%;
  margin-top: 7px;
  padding: 8px 10px;
  text-align: left;
}

.toolbar-status {
  order: 2;
  flex: 0 0 100%;
  width: 100%;
  max-width: none;
  min-height: 1.1rem;
  padding: 0;
  color: #687687;
  font-size: 0.8rem;
  line-height: 1.1rem;
}

.toolbar-status:empty {
  display: none;
}

/* Use the available desktop width before allowing the filter toolbar to wrap. */
@media (min-width: 1500px) {
  .toolbar-controls {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: end;
    gap: 8px;
  }

  .toolbar-filters {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: end;
    gap: 8px;
  }

  .toolbar-filters > label,
  .toolbar-filters > .workitem-text-filter,
  .toolbar-filters > .status-filter,
  .toolbar-filters > .assignment-filter,
  .toolbar-filters > .division-filter,
  .organization-filter {
    width: auto;
    min-width: 0;
    flex: 1 1 0;
  }

  .toolbar-filters > .workitem-text-filter {
    min-width: 150px;
    flex: 0 1 180px;
  }

  .organization-filter {
    min-width: 170px;
    flex: 0 1 210px;
  }

  .toolbar-filters > .status-filter {
    min-width: 120px;
    flex: 0 1 130px;
  }

  .toolbar-filters > .assignment-filter {
    min-width: 135px;
    flex: 0 1 145px;
  }

  .toolbar-filters > .division-filter {
    min-width: 135px;
    flex: 0 1 175px;
  }

  .toolbar-filter-options {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .toolbar-filter-options .toolbar-check {
    gap: 5px;
  }

  .toolbar-filters .due-filter-button {
    width: 165px;
  }

  .toolbar-reset-filters-button {
    flex: 0 0 auto;
  }

}

select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #aab5c2;
  border-radius: 6px;
  padding: 7px 36px 7px 11px;
  color: #17212b;
  background: #fff;
}

.primary-button,
.secondary-button {
  min-height: 40px;
  border-radius: 6px;
  padding: 8px 15px;
  font-weight: 700;
}

.primary-button {
  border: 1px solid #2c5cc5;
  color: #fff;
  background: #2c5cc5;
}

.secondary-button {
  border: 1px solid #aab5c2;
  color: #26384c;
  background: #fff;
}

.app-header .secondary-button {
  border-color: #96acd0;
  color: #fff;
  background: transparent;
}

.table-panel {
  margin-top: 18px;
  overflow: hidden;
}

.table-heading {
  min-height: 60px;
  padding: 7px 16px;
  border-bottom: 1px solid #dce2ea;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.table-heading h2,
.table-heading p {
  margin: 0;
}

.table-heading h2 {
  font-size: 1.1rem;
}

.table-heading p {
  margin-top: 5px;
  color: #647283;
  font-size: 0.88rem;
}

.table-heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-scroll {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 1250px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.workitems-table {
  width: auto;
  min-width: 0;
  table-layout: fixed;
}

.workitems-table th,
.workitems-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.workitems-table td {
  white-space: nowrap;
}

.workitems-table th[data-workitem-column] {
  position: relative;
  padding-right: 20px;
  cursor: grab;
  user-select: none;
}

.workitems-table th[data-workitem-column]:active {
  cursor: grabbing;
}

.workitems-table th.is-column-dragging {
  opacity: .45;
}

.workitems-table th.is-column-drop-before {
  box-shadow: inset 3px 0 var(--brand-blue);
}

.workitems-table th.is-column-drop-after {
  box-shadow: inset -3px 0 var(--brand-blue);
}

.column-resize-handle {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: 10px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
}

.column-resize-handle::after {
  content: "";
  position: absolute;
  top: 20%;
  right: 3px;
  width: 1px;
  height: 60%;
  background: #bdc7d3;
}

body.is-resizing-workitem-column {
  cursor: col-resize;
  user-select: none;
}

.workitems-table .workitem-link {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workitems-table .workitem-assignee-cell,
.workitems-table .workitem-actions {
  width: auto;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid #e4e8ee;
  text-align: left;
  vertical-align: top;
}

th {
  color: #3e4c5d;
  background: #f8f9fb;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table-sort-button {
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.table-sort-icon {
  color: var(--brand-blue);
  font-size: 1rem;
  line-height: 1;
}

#dueDateHeader.is-inverse-sort,
#dueDateHeader.is-inverse-sort .table-sort-button,
#dueDateHeader.is-inverse-sort .table-sort-icon {
  color: #c62828;
}

tbody tr:hover {
  background: #f7faff;
}

.workitem-row {
  cursor: pointer;
}

.workitem-row:focus-visible {
  outline: 3px solid #78a5ff;
  outline-offset: -3px;
}

.workitem-row.is-selected {
  background: #edf4ff;
}

.empty-cell {
  height: 120px;
  color: #687687;
  text-align: center;
  vertical-align: middle;
}

.workitem-name {
  font-weight: 700;
}

.workitem-status-tag {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--brand-navy-80);
  background: var(--brand-gray-light);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.workitem-status-tag.is-new {
  color: var(--brand-blue);
  background: #e8f1fa;
}

.workitem-status-tag.is-in-progress {
  color: #16704a;
  background: #e7f4ee;
}

.workitem-status-tag.is-pending {
  color: #8a5a00;
  background: #fff2cc;
}

.workitem-status-tag.is-terminated {
  color: #526171;
  background: #e7e9ed;
}

.workitem-link {
  border: 0;
  padding: 0;
  color: #1e57b7;
  background: transparent;
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.workitem-link:hover,
.workitem-link:focus-visible {
  text-decoration-color: currentColor;
}

.muted-value {
  color: #758294;
}

.pagination {
  min-height: 50px;
  padding: 7px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}

.pagination-summary,
.pagination-navigation,
.page-size-control,
.page-number-buttons {
  display: flex;
  align-items: center;
}

.pagination-summary {
  flex-wrap: wrap;
  gap: 6px;
  color: #536173;
  font-size: 0.86rem;
}

.pagination-summary strong {
  color: #17212b;
}

.page-size-control {
  margin-left: 8px;
  gap: 8px;
}

.page-size-control select {
  width: 80px;
  min-height: 38px;
  padding-block: 6px;
}

.pagination-navigation,
.page-number-buttons {
  gap: 4px;
}

.pagination-navigation {
  min-width: 0;
  justify-content: flex-end;
}

.pagination-icon-button,
.page-number-button {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 5px 8px;
  color: #17479d;
  background: transparent;
  font-weight: 700;
}

.pagination-icon-button {
  font-size: 1.35rem;
  line-height: 1;
}

.pagination-icon-button:hover:not(:disabled),
.page-number-button:hover:not(:disabled) {
  border-color: #b8c9e7;
  background: #f2f6fd;
}

.page-number-button.is-current {
  border-color: #aec6f6;
  color: #173f8a;
  background: #dbe6fb;
}

.pagination-ellipsis {
  min-width: 24px;
  color: #687687;
  text-align: center;
}

.email-panel {
  margin-top: 18px;
  overflow: hidden;
}

.email-panel-heading {
  padding: 18px 20px;
  border-bottom: 1px solid #dce2ea;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.email-panel-heading h2,
.email-panel-heading p {
  margin: 0;
}

.email-panel-heading h2 {
  font-size: 1.15rem;
}

.email-panel-heading #emailPanelSummary {
  margin-top: 5px;
  color: #647283;
  font-size: 0.88rem;
}

.email-eyebrow {
  margin-bottom: 3px !important;
  color: #526f9e;
}

.email-panel-status {
  padding: 20px;
  color: #526171;
}

.email-panel-status:empty {
  display: none;
}

.email-conversation {
  padding: 20px;
  border-top: 1px solid #e4e8ee;
}

.email-conversation:first-child {
  border-top: 0;
}

.email-conversation-heading {
  margin-bottom: 14px;
}

.email-conversation-heading h3,
.email-conversation-heading p {
  margin: 0;
}

.email-conversation-heading h3 {
  font-size: 1rem;
}

.email-conversation-heading p {
  margin-top: 4px;
  color: #647283;
  font-size: 0.82rem;
}

.email-message {
  margin-top: 14px;
  border: 1px solid #dce2ea;
  border-radius: 8px;
  overflow: hidden;
}

.email-message-header {
  padding: 13px 15px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: #f7f9fc;
}

.email-message-header dl {
  min-width: 0;
  flex: 1 1 auto;
  margin: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 10px;
  font-size: 0.82rem;
}

.email-message-header dt {
  color: #596879;
  font-weight: 700;
}

.email-message-header dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.email-message-body {
  padding: 15px;
}

.remote-images-notice {
  margin-bottom: 10px;
  border: 1px solid #d6c78f;
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #584817;
  background: #fff8dc;
  font-size: .8rem;
}

.remote-images-button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 4px;
  padding: 5px 8px;
  color: #17479d;
  background: #e7effd;
  font-weight: 700;
}

.remote-images-button:hover:not(:disabled) {
  background: #d5e3fa;
}

.email-text-body {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.5;
}

.email-html-body {
  width: 100%;
  min-height: 0;
  border: 1px solid #e4e8ee;
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
}

.attachment-list {
  margin: 14px 0 0;
  padding: 12px 0 0 20px;
  border-top: 1px solid #e4e8ee;
}

.attachment-list a {
  color: #1e57b7;
}

.email-diagnostics {
  margin: 0 20px 20px;
  border: 1px solid #dce2ea;
  border-radius: 6px;
  padding: 12px 14px;
  color: #526171;
  font-size: 0.82rem;
}

.email-diagnostics pre {
  max-height: 240px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.compact-button {
  min-height: 32px;
  padding: 5px 12px;
}

.workitem-actions {
  width: 1%;
  white-space: nowrap;
}

.workitem-assignee-cell {
  width: 210px;
}

.workitem-assignee-cell .assignee-combobox-input,
.workitem-assignee-cell .assignee-combobox-toggle {
  min-height: 32px;
  font-size: .82rem;
}

.workitem-assignee-cell .assignee-combobox {
  width: 100%;
}

.workitem-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(15 27 45 / 55%);
}

.has-open-workitems .workitem-backdrop {
  bottom: var(--open-workitems-bar-height);
}

.has-open-workitems .workitem-window {
  max-height: calc(100vh - var(--open-workitems-bar-height) - 48px);
}

.has-open-workitems #quickViewDialog {
  height: calc(100vh - var(--open-workitems-bar-height) - 48px);
}

.has-open-workitems .editor-window {
  height: 100%;
  max-height: none;
}

.workitem-backdrop[hidden],
.workitem-window[hidden],
.open-workitems-bar[hidden],
.app-notice[hidden] {
  display: none;
}

.workitem-window {
  width: min(1040px, 100%);
  max-height: calc(100vh - 48px);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 24px 70px rgb(9 20 38 / 35%);
}

.workitem-window-header {
  padding: 16px 20px;
  border-bottom: 1px solid #dce2ea;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.workitem-window-heading h2,
.workitem-window-heading p {
  margin: 0;
}

.workitem-window-heading h2 {
  margin-top: 2px;
  font-size: 1.2rem;
}

.workitem-window-heading > p:last-child {
  margin-top: 5px;
  color: #647283;
  font-size: .86rem;
}

.quick-view-metadata {
  margin-top: 12px;
}

.quick-view-metadata dl {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 22px;
}

.quick-view-metadata-item {
  flex: 0 1 auto;
  min-width: 72px;
  max-width: 180px;
}

.quick-view-metadata-item.is-organization {
  max-width: 300px;
}

.quick-view-metadata dt {
  color: #657387;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.quick-view-metadata dd {
  margin: 2px 0 0;
  color: #26364a;
  font-size: .86rem;
  overflow-wrap: anywhere;
}

#quickViewDialog .workitem-window-heading {
  min-width: 0;
  flex: 1 1 auto;
}

#quickViewDialog {
  width: min(1440px, 100%);
  height: min(820px, calc(100vh - 48px));
}

#quickViewDialog .workitem-window-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#quickViewDialog .email-panel-status {
  flex: 0 0 auto;
  padding: 12px 16px;
}

#quickViewDialog [data-email-container="quick-view"] {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.quick-email-reader {
  min-height: 0;
  height: 100%;
  border-top: 1px solid #dce2ea;
  display: grid;
  grid-template-columns: minmax(230px, 31%) minmax(0, 1fr);
  overflow: hidden;
}

.quick-email-selector {
  border-right: 1px solid #dce2ea;
  overflow-y: auto;
  background: #f7f9fc;
}

.quick-email-new-action {
  position: sticky;
  z-index: 2;
  top: 0;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-bottom: 1px solid #cbd6e4;
  padding: 9px 14px;
  color: #17479d;
  background: #fff;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.quick-email-new-action:hover:not(:disabled) {
  background: #edf3fb;
}

.quick-email-new-action:disabled {
  color: #8a96a5;
  background: #f4f6f9;
}

.quick-email-option {
  position: relative;
  width: 100%;
  min-height: 72px;
  border: 0;
  border-bottom: 1px solid #dce2ea;
  border-left: 4px solid transparent;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #26364a;
  background: transparent;
  text-align: left;
}

.quick-email-option:hover {
  background: #edf3fb;
}

.quick-email-option.is-selected {
  border-left-color: #2c5cc5;
  background: #e7effd;
}

.quick-email-option.is-draft {
  border-left: 3px solid #d68b00;
}

.quick-email-draft-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  color: #7a4a00;
  background: #fff0cf;
  font-size: 0.72rem;
  font-weight: 800;
}

.quick-email-sender-row,
.quick-email-sender,
.quick-email-subject-row,
.quick-email-subject {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-email-sender-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
}

.quick-email-sender {
  min-width: 0;
  font-weight: 700;
}

.quick-email-received-time {
  flex: 0 0 auto;
  margin-left: auto;
  color: #657487;
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
}

.quick-email-direction {
  flex: 0 0 auto;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  -webkit-text-stroke: .3px currentColor;
}

.quick-email-direction.is-inbound {
  color: #2c5cc5;
}

.quick-email-direction.is-outbound {
  color: #287849;
}

.quick-email-subject-row {
  width: 100%;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.quick-email-subject {
  min-width: 0;
  flex: 1 1 auto;
  color: #596879;
  font-size: .82rem;
}

.quick-email-attachment {
  flex: 0 0 auto;
  color: #26364a;
  font-family: "Arial Unicode MS", "Segoe UI Symbol", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
}

.quick-email-detail {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 0;
  background: #fff;
}

.quick-email-detail > .email-message {
  margin-top: 0;
}

.email-message.is-mail-reader-message {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.is-mail-reader-message .email-message-header {
  flex: 0 0 auto;
}

.is-mail-reader-message .email-message-body {
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.email-message-actions {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 7px;
}

.email-action-button {
  min-height: 32px;
  padding: 5px 10px;
  font-size: .8rem;
}

.email-download-eml-button {
  width: 100%;
  grid-column: 1 / -1;
}

.email-composer {
  height: 100%;
  min-height: 0;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
  background: #fff;
}

.email-composer.is-preparing {
  background: #f8fafc;
  pointer-events: none;
}

.email-composer-preparing {
  min-height: 120px;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #52647a;
  font-size: .86rem;
  font-weight: 700;
}

.email-composer-preparing-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #c4cfdd;
  border-top-color: var(--brand-blue);
  border-radius: 50%;
  animation: email-composer-spin .8s linear infinite;
}

@keyframes email-composer-spin {
  to { transform: rotate(360deg); }
}

.email-composer-status,
.email-composer-note {
  margin: 0;
}

.email-composer-field {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  color: #435267;
  font-size: .78rem;
  font-weight: 700;
}

.email-composer-field input,
.email-composer-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #b9c5d3;
  border-radius: 5px;
  padding: 5px 8px;
  line-height: 1.15;
  color: #172536;
  background: #fff;
  font: inherit;
  font-weight: 400;
}

.email-composer-field input[readonly] {
  color: #607084;
  background: #f3f6fa;
}

.email-composer-field.is-recipient {
  align-items: start;
}

.email-composer-field.is-recipient > span:first-child {
  padding-top: 7px;
}

.email-composer-cc-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 7px;
}

.email-composer-cc-row .email-composer-field {
  min-width: 0;
}

.email-composer-show-bcc {
  min-height: 32px;
  padding: 5px 9px;
  font-size: .78rem;
}

.email-recipient-control {
  position: relative;
  min-width: 0;
}

.email-recipient-shell {
  width: 100%;
  min-height: 32px;
  border: 1px solid #b9c5d3;
  border-radius: 5px;
  padding: 3px 5px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  background: #fff;
  cursor: text;
}

.email-recipient-shell:focus-within {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-blue) 18%, transparent);
}

.email-recipient-shell.has-invalid {
  border-color: #b42318;
}

.email-recipient-chips {
  display: contents;
}

.email-recipient-chip {
  max-width: min(100%, 360px);
  min-height: 24px;
  border: 1px solid var(--brand-blue-40);
  border-radius: 999px;
  padding: 2px 3px 2px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-navy);
  background: color-mix(in srgb, var(--brand-blue-20) 68%, white);
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.2;
}

.email-recipient-chip.is-manual {
  border-color: var(--brand-gray);
  background: color-mix(in srgb, var(--brand-gray-light) 70%, white);
}

.email-recipient-chip.is-invalid {
  border-color: #d92d20;
  color: #8f1d16;
  background: #fee4e2;
}

.email-recipient-chip.is-keyboard-selected {
  outline: 2px solid var(--brand-blue);
  outline-offset: 1px;
}

.email-recipient-chip-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-recipient-chip-remove {
  width: 19px;
  height: 19px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  display: inline-grid;
  place-items: center;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: .9rem;
  line-height: 1;
  cursor: pointer;
}

.email-recipient-chip-remove:hover,
.email-recipient-chip-remove:focus-visible {
  background: rgb(0 35 85 / 10%);
  outline: none;
}

.email-recipient-input {
  flex: 1 1 150px;
  width: auto !important;
  min-width: 100px !important;
  min-height: 24px;
  border: 0 !important;
  padding: 2px 3px !important;
  outline: 0;
  box-shadow: none !important;
}

.email-recipient-results {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  width: min(560px, max(100%, 420px));
  max-width: min(90vw, 640px);
  max-height: 300px;
  border: 1px solid var(--brand-blue-40);
  border-radius: 7px;
  padding: 4px;
  overflow: auto;
  background: #fff;
  box-shadow: 0 10px 25px rgb(0 35 85 / 18%);
}

.email-recipient-result {
  width: 100%;
  border: 0;
  border-radius: 5px;
  padding: 7px 9px;
  display: grid;
  gap: 2px;
  color: var(--brand-navy);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.email-recipient-result:hover,
.email-recipient-result:focus-visible {
  background: color-mix(in srgb, var(--brand-blue-20) 55%, white);
  outline: 2px solid var(--brand-blue-40);
  outline-offset: -2px;
}

.email-recipient-result-primary,
.email-recipient-result-organization,
.email-recipient-result-branch {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-recipient-result-primary {
  font-weight: 700;
}

.email-recipient-result-organization {
  color: var(--brand-navy-80);
  font-size: .75rem;
}

.email-recipient-result-branch {
  color: var(--brand-navy-60);
  font-size: .68rem;
}

.email-composer-field.is-grow {
  min-height: 80px;
  flex: 1 1 auto;
  align-items: stretch;
}

.email-composer-field.is-grow > span {
  align-self: start;
  padding-top: 6px;
}

.email-composer-field.is-grow textarea {
  height: 100%;
  min-height: 80px;
  resize: none;
}

.email-rich-text-shell {
  min-width: 0;
  min-height: 80px;
  height: 100%;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}

.email-rich-text-shell .jodit-container {
  width: 100% !important;
  height: 100% !important;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  border-color: #b9c5d3;
  border-radius: 5px;
  font-family: inherit;
}

.email-rich-text-shell .jodit-toolbar__box {
  flex: 0 0 auto;
  border-color: #b9c5d3;
  background: #fff;
}

.email-rich-text-shell .jodit-toolbar-editor-collection {
  padding: 1px 4px;
}

.email-rich-text-shell .jodit-toolbar-button__button {
  min-width: 28px;
  min-height: 28px;
}

.email-rich-text-shell .jodit-workplace {
  min-height: 0 !important;
  flex: 1 1 auto;
  border-color: #b9c5d3;
}

.email-rich-text-shell .jodit-wysiwyg {
  height: 100% !important;
  min-height: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12pt;
  font-weight: 400;
  color: #000;
  unicode-bidi: isolate;
  margin: 0;
  padding: 7px 9px;
  overflow-y: auto;
}

.email-rich-text-fallback {
  width: 100%;
  height: 100%;
  min-height: 80px;
  resize: none;
}

.email-composer-note {
  color: #7a5b13;
  font-size: .78rem;
}

.composer-attachments {
  flex: 0 0 auto;
  min-height: 48px;
  max-height: 112px;
  border: 1px solid #d6deea;
  border-radius: 6px;
  padding: 5px 7px;
  overflow: hidden;
  background: #f8fafd;
}

.composer-attachments-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #526171;
  font-size: .74rem;
}

.composer-attachment-add {
  min-height: 26px;
  padding: 3px 8px;
  cursor: pointer;
  font-size: .72rem;
}

.composer-attachment-add input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.composer-attachment-list {
  max-height: 72px;
  margin: 5px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  overflow-y: auto;
  list-style: none;
}

.composer-attachment-item {
  max-width: 310px;
  min-width: 155px;
  height: 30px;
  display: flex;
  align-items: stretch;
  border: 1px solid #c7d3e2;
  border-radius: 5px;
  overflow: hidden;
  color: #17479d;
  background: #fff;
}

.composer-attachment-icon {
  width: 29px;
  flex: 0 0 29px;
  display: grid;
  place-items: center;
  border-right: 1px solid #d5deea;
  color: #526171;
  font-size: 1rem;
}

.composer-attachment-preview,
.composer-attachment-action {
  border: 0;
  color: inherit;
  background: transparent;
}

.composer-attachment-preview {
  min-width: 0;
  padding: 4px 7px;
  flex: 1 1 auto;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .74rem;
}

.composer-attachment-state {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #35516f;
  background: #e9f0f7;
}

.composer-attachment-state.is-ready {
  color: #17643a;
  background: #e2f4e9;
}

.composer-attachment-state.is-failed {
  color: #9b261f;
  background: #fbe7e5;
}

.composer-attachment-action {
  width: 28px;
  flex: 0 0 28px;
  border-left: 1px solid #d5deea;
  padding: 2px;
  font-size: .95rem;
  font-weight: 800;
}

.composer-attachment-action.is-remove {
  color: #a12626;
}

.composer-attachment-preview:hover,
.composer-attachment-action:hover,
.composer-attachment-add:hover {
  background: #eaf1fc;
}

.composer-attachments-empty {
  margin: 6px 0 0;
  color: #6c7888;
  font-size: .74rem;
}

.email-composer-status {
  min-width: 0;
  flex: 1 1 260px;
  color: #a12626;
  font-size: .8rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.email-composer-status:empty {
  display: none;
}

.email-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.email-composer-footer-actions {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.email-composer-footer .primary-button,
.email-composer-footer .secondary-button {
  min-height: 34px;
  padding-block: 5px;
}

.persistent-attachments {
  position: relative;
  height: 70px;
  flex: 0 0 70px;
  border-top: 1px solid #dce2ea;
  border-bottom: 1px solid #dce2ea;
  padding: 6px 12px;
  overflow: hidden;
  background: #fbfcfe;
}

.persistent-attachments-heading {
  height: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.persistent-attachments-heading strong {
  color: #526171;
  font-size: .74rem;
}

.attachment-download-all {
  border: 0;
  padding: 0;
  color: #17479d;
  background: transparent;
  font-size: .74rem;
  font-weight: 700;
}

.persistent-attachments-scroller {
  height: 36px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.persistent-attachments-list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.persistent-attachments-scroller.has-overflow .persistent-attachments-list {
  padding-right: 110px;
}

.persistent-attachments-list li {
  max-width: 260px;
  min-height: 28px;
  border: 1px solid #cbd6e3;
  border-radius: 5px;
  padding: 5px 8px;
  overflow: hidden;
  color: #1e57b7;
  background: #fff;
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.persistent-attachments-list li.interactive-attachment {
  padding: 0;
  display: flex;
  align-items: stretch;
}

.attachment-preview-button,
.attachment-download-button {
  border: 0;
  color: #17479d;
  background: transparent;
}

.attachment-preview-button {
  min-width: 0;
  padding: 5px 8px;
  overflow: hidden;
  flex: 1 1 auto;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-download-button {
  width: 30px;
  flex: 0 0 30px;
  border-left: 1px solid #d5deea;
  padding: 3px;
  font-size: 1rem;
  font-weight: 800;
}

.attachment-preview-button:hover,
.attachment-download-button:hover,
.attachment-download-all:hover {
  background: #eaf1fc;
}

.persistent-attachments-list a {
  color: inherit;
}

.persistent-attachments-more {
  position: absolute;
  right: 18px;
  bottom: 9px;
  border-radius: 4px;
  padding: 3px 6px;
  color: #17479d;
  background: rgb(235 242 253 / 94%);
  font-size: .72rem;
  font-weight: 700;
  pointer-events: none;
}

.attachment-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1500;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgb(15 27 45 / 68%);
}

.attachment-preview-dialog {
  width: min(960px, 100%);
  height: min(760px, calc(100vh - 48px));
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 24px 70px rgb(9 20 38 / 42%);
}

.contact-create-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1600;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgb(15 27 45 / 72%);
}

.contact-create-dialog {
  width: min(900px, 100%);
  max-height: calc(100vh - 48px);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 24px 70px rgb(9 20 38 / 42%);
}

.contact-create-header {
  padding: 14px 18px;
  border-bottom: 1px solid #dce2ea;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.contact-create-header h2,
.contact-create-header p {
  margin: 0;
}

.contact-create-form {
  min-height: 0;
  padding: 18px;
  overflow: auto;
}

.contact-create-status {
  margin-bottom: 12px;
  color: #526171;
}

.contact-create-status:empty {
  display: none;
}

.new-workitem-dialog {
  width: min(520px, 100%);
}

.new-workitem-form {
  display: grid;
  gap: 14px;
}

.new-workitem-form > label {
  display: grid;
  gap: 6px;
  color: #435267;
  font-size: .85rem;
  font-weight: 700;
}

.new-workitem-form input,
.new-workitem-form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #b9c5d3;
  border-radius: 6px;
  padding: 7px 9px;
  color: #172536;
  background: #fff;
  font: inherit;
  font-weight: 400;
}

.directory-workspace {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
}

body.has-directory {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.has-directory .app-header {
  flex: 0 0 auto;
}

body.has-directory main {
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

body.has-directory .directory-workspace {
  height: 100%;
}

.directory-toolbar {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.directory-toolbar h2,
.directory-toolbar p {
  margin: 0;
}

.directory-toolbar-actions,
.directory-list-toolbar,
.directory-editor-actions,
.directory-row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.directory-panel {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.directory-tabs {
  flex: 0 0 auto;
  padding: 0 20px;
  border-bottom: 1px solid #dce2ea;
  display: flex;
  gap: 4px;
}

.directory-tab {
  min-height: 48px;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 10px 16px;
  color: #526171;
  background: transparent;
  font-weight: 700;
}

.directory-tab.is-active {
  border-bottom-color: #2c5cc5;
  color: #17479d;
}

.directory-list-toolbar {
  flex: 0 0 auto;
  min-height: 78px;
  padding: 14px 20px;
  border-bottom: 1px solid #e1e6ed;
}

.directory-list-toolbar > label {
  width: min(460px, 100%);
  display: grid;
  gap: 5px;
  color: #435267;
  font-size: .82rem;
  font-weight: 700;
}

.directory-list-toolbar input,
.directory-form-grid input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #b9c5d3;
  border-radius: 6px;
  padding: 7px 9px;
  color: #172536;
  background: #fff;
  font: inherit;
  font-weight: 400;
}

#directoryStatus {
  flex: 1 1 auto;
  color: #687687;
  font-size: .84rem;
}

.directory-table-scroll {
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
}

.directory-row-actions {
  justify-content: flex-end;
  white-space: nowrap;
}

.directory-cell-link {
  border: 0;
  padding: 0;
  color: #17479d;
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.directory-cell-link:hover,
.directory-cell-link:focus-visible {
  text-decoration-color: currentColor;
}

.danger-text-button,
.danger-button {
  color: #a32626;
}

.danger-button {
  min-height: 40px;
  border: 1px solid #cf8f8f;
  border-radius: 6px;
  padding: 8px 15px;
  background: #fff;
  font-weight: 700;
}

.directory-pagination {
  min-height: 58px;
  flex: 0 0 auto;
}

.directory-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1650;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgb(15 27 45 / 72%);
}

.directory-editor-dialog {
  width: min(900px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 24px 70px rgb(9 20 38 / 42%);
}

.directory-editor-form {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.directory-editor-scroll {
  min-height: 0;
  padding: 18px;
  overflow-y: auto;
  flex: 1 1 auto;
}

.directory-form-grid {
  display: grid;
  grid-template-columns: 110px repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.directory-form-grid > label,
.directory-contact-organization {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #435267;
  font-size: .85rem;
  font-weight: 700;
}

.directory-form-grid > label:nth-of-type(n + 4) {
  grid-column: span 1;
}

.directory-contact-organization,
.directory-form-grid > .is-wide {
  grid-column: 1 / -1;
}

.directory-contact-organization .editor-lookup-results {
  max-height: 190px;
}

.directory-custom-fields {
  border-top: 1px solid #dce2ea;
  padding-top: 16px;
}

.directory-custom-fields-heading {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.directory-custom-fields-heading h3 {
  margin: 0;
  font-size: 1rem;
}

.directory-custom-fields-heading span {
  border-radius: 999px;
  padding: 4px 9px;
  color: #526171;
  background: #eef2f7;
  font-size: .75rem;
  font-weight: 700;
}

.directory-custom-fields-grid dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.directory-custom-fields-grid dl > div {
  min-width: 0;
  border: 1px solid #e1e6ed;
  border-radius: 6px;
  padding: 9px 10px;
  background: #f7f9fc;
}

.directory-custom-fields-grid dt {
  color: #526171;
  font-size: .77rem;
  font-weight: 700;
}

.directory-custom-fields-grid dd {
  margin: 4px 0 0;
  color: #172536;
  overflow-wrap: anywhere;
}

.directory-custom-fields-empty {
  margin: 0;
  color: #687687;
}

.directory-organization-contacts {
  border-top: 1px solid #dce2ea;
  padding-top: 16px;
}

.directory-organization-contacts-heading {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.directory-organization-contacts-heading h3 {
  margin: 0;
  font-size: 1rem;
}

.directory-organization-contacts-heading .secondary-button {
  flex: 0 0 auto;
  margin-left: auto;
  min-height: 32px;
  padding: 5px 11px;
  white-space: nowrap;
}

.directory-organization-contacts-table {
  max-height: 600px;
  overflow-x: hidden;
  border: 1px solid #e1e6ed;
  border-radius: 6px;
}

.directory-organization-contacts-table table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.directory-organization-contacts-table th,
.directory-organization-contacts-table td {
  min-width: 0;
  padding: 10px 12px;
  overflow: hidden;
}

.directory-organization-contacts-table th:nth-child(1),
.directory-organization-contacts-table td:nth-child(1) {
  width: 38%;
}

.directory-organization-contacts-table th:nth-child(2),
.directory-organization-contacts-table td:nth-child(2) {
  width: 26%;
}

.directory-organization-contacts-table th:nth-child(3),
.directory-organization-contacts-table td:nth-child(3) {
  width: 24%;
}

.directory-organization-contacts-table th:nth-child(4),
.directory-organization-contacts-table td:nth-child(4) {
  width: 12%;
}

.directory-organization-contacts-table .directory-cell-link {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-organization-contacts-table .directory-row-actions {
  display: table-cell;
  overflow: visible;
  text-align: right;
}

.directory-organization-contacts-table .directory-row-actions .directory-cell-link {
  display: inline-block;
  width: auto;
  overflow: visible;
  text-overflow: clip;
}

.directory-organization-contacts-empty {
  height: 90px;
}

.directory-editor-actions {
  margin-top: 0;
  border-top: 1px solid #dce2ea;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  flex: 0 0 auto;
  background: #fff;
}

#directoryEditorCancelButton,
#directoryEditorSaveButton,
#newContactCancelButton,
#newContactSubmitButton {
  width: auto;
  justify-self: end;
  flex: 0 0 auto;
}

.contact-existing-lookup {
  position: relative;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #435267;
  font-size: .85rem;
  font-weight: 700;
}

.contact-existing-lookup input,
.contact-link-panel select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #b9c5d3;
  border-radius: 6px;
  padding: 7px 9px;
  color: #172536;
  background: #fff;
  font: inherit;
  font-weight: 400;
}

.contact-existing-lookup .editor-lookup-results {
  max-height: 240px;
}

.contact-link-panel {
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border: 1px solid #d5dce6;
  border-radius: 7px;
  padding: 14px;
  background: #f7f9fc;
}

.contact-link-panel > div,
.contact-link-panel > label {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #526171;
  font-size: .82rem;
}

.contact-link-panel strong {
  color: #172536;
  font-size: .93rem;
  overflow-wrap: anywhere;
}

.contact-link-panel > label {
  grid-column: 1 / -1;
  font-weight: 700;
}

.contact-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-create-grid > label,
.contact-identity-row > label,
.contact-employment-row > label,
.contact-create-organization,
.contact-phone-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #435267;
  font-size: .85rem;
  font-weight: 700;
}

.contact-identity-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 110px minmax(180px, .8fr) minmax(240px, 1.2fr);
  gap: 14px;
}

.contact-identity-row > label {
  min-width: 0;
}

.contact-employment-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(170px, .45fr) minmax(320px, 1.55fr);
  gap: 14px;
  align-items: start;
}

.contact-employment-row > label {
  min-width: 0;
}

.contact-create-grid input,
.contact-create-grid select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #b9c5d3;
  border-radius: 6px;
  padding: 7px 9px;
  color: #172536;
  background: #fff;
  font: inherit;
  font-weight: 400;
}

.contact-create-grid > .contact-create-organization,
.contact-phone-field {
  grid-column: 1 / -1;
}

.contact-create-organization-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.contact-create-organization-controls input {
  border-radius: 6px 0 0 6px;
}

.contact-phone-field {
  margin: 0;
  border: 1px solid #d5dce6;
  border-radius: 7px;
  padding: 10px;
}

.contact-phone-field legend {
  padding: 0 5px;
}

.contact-phone-row {
  display: grid;
  grid-template-columns: minmax(155px, .45fr) minmax(180px, 1fr);
  align-items: center;
  gap: 9px;
}

.contact-create-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.attachment-preview-header {
  padding: 14px 18px;
  border-bottom: 1px solid #dce2ea;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.attachment-preview-header h2,
.attachment-preview-header p {
  margin: 0;
}

.attachment-preview-header h2 {
  margin-top: 2px;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.attachment-preview-status {
  padding: 12px 18px;
  color: #526171;
  background: #f7f9fc;
}

.attachment-preview-status:empty {
  display: none;
}

.attachment-preview-body {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  display: grid;
  place-items: center;
  background: #eef1f5;
}

.attachment-preview-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.attachment-preview-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.attachment-preview-text {
  align-self: stretch;
  justify-self: stretch;
  min-height: 100%;
  margin: 0;
  padding: 18px;
  overflow: auto;
  color: #172536;
  background: #fff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.attachment-preview-media {
  width: min(620px, calc(100% - 32px));
}

.attachment-preview-video {
  max-width: 100%;
  max-height: 100%;
}

.workitem-window-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor-header-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.editor-window > .workitem-window-header {
  position: relative;
}

.editor-incoming-notice {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max-content;
  max-width: min(440px, 42vw);
  border: 1px solid #e2b822;
  border-radius: 6px;
  padding: 7px 12px;
  color: var(--brand-navy);
  background: #fff5c2;
  box-shadow: 0 2px 8px rgb(14 31 53 / 12%);
  font-size: .84rem;
  font-weight: 700;
  text-align: center;
  transform: translate(-50%, -50%);
}

.editor-incoming-notice[hidden] {
  display: none;
}

.editor-window-controls,
.editor-save-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.editor-save-actions .primary-button,
.editor-save-actions .secondary-button {
  min-height: 32px;
  padding: 5px 11px;
}

.icon-button {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 9px;
  color: #29384b;
  background: #fff;
  font-size: 1.25rem;
  line-height: 1;
}

.icon-button:hover {
  background: #f2f6fb;
}

.workitem-window-status,
.editor-alert {
  padding: 10px 20px;
  color: #526171;
  background: #f7f9fc;
}

.editor-alert-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workitem-window-status:empty {
  display: none;
}

.editor-alert {
  color: #8b1d1d;
  background: #fff0f0;
  border-bottom: 1px solid #f2bebe;
  font-weight: 700;
}

.workitem-window-body {
  min-height: 0;
  padding: 20px;
  overflow: auto;
}

.editor-window {
  width: 100%;
  height: 100%;
  max-height: none;
}

.editor-window .editor-form {
  min-height: 0;
  flex: 1 1 auto;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
}

#editorFields {
  min-width: 0;
  padding: 16px;
  border-left: 1px solid #dce2ea;
  overflow-y: auto;
  background: #f7f9fc;
}

#editorFields > h3 {
  margin: 22px 0 12px;
  font-size: .9rem;
}

#editorFields > .editor-fields-heading {
  margin-top: 0;
  color: #26364a;
  font-size: 1rem;
}

#editorFields .editor-field-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.editor-due-close-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.editor-close-field {
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  white-space: nowrap;
}

#editorFields .editor-close-field input[type="checkbox"] {
  width: 38px;
  height: 38px;
  margin: 0;
  flex: 0 0 38px;
  accent-color: var(--brand-blue);
}

.editor-email-section {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.editor-email-section > h3 {
  display: none;
}

#editorEmailStatus {
  flex: 0 0 auto;
  padding: 10px 14px;
}

#editorEmailConversations {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

#editorEmailConversations > .quick-email-reader {
  height: 100%;
  border-top: 0;
}

.workitem-overview dl,
.custom-field-list {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(120px, 190px) minmax(0, 1fr);
  gap: 7px 16px;
}

.workitem-overview dt {
  color: #596879;
  font-weight: 700;
}

.workitem-overview dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.workitem-overview h3,
.workitem-section-heading,
.editor-email-section h3 {
  margin: 24px 0 12px;
  font-size: 1rem;
}

.editor-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.editor-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #435267;
  font-size: .85rem;
  font-weight: 700;
}

.editor-field.is-wide {
  grid-column: 1 / -1;
}

.editor-field input,
.editor-field textarea,
.editor-field select {
  width: 100%;
  border: 1px solid #b9c5d3;
  border-radius: 6px;
  padding: 9px 10px;
  color: #172536;
  background: #fff;
  font: inherit;
  font-weight: 400;
}

.editor-field textarea {
  resize: vertical;
}

.editor-field input[type="checkbox"] {
  width: auto;
  align-self: flex-start;
}

.editor-field-separator {
  grid-column: 1 / -1;
  width: 100%;
  margin: 4px 0;
  border: 0;
  border-top: 1px solid #cbd4df;
}

.editor-comment-history {
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  border: 1px solid #d5dce6;
  border-radius: 6px;
  padding: 10px;
  color: #435267;
  background: #eef2f7;
  font-weight: 400;
}

.editor-comment-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.editor-comment-controls textarea {
  border-radius: 6px 0 0 6px;
}

.editor-comment-submit {
  width: 42px;
  min-height: 38px;
  margin-left: -1px;
  border-radius: 0 6px 6px 0;
  font-size: 1.2rem;
  line-height: 1;
}

.editor-lookup-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.editor-lookup-controls.has-create-action {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.editor-lookup-clear {
  width: 38px;
  border: 1px solid #b9c5d3;
  border-left: 0;
  border-radius: 0 6px 6px 0;
  background: #fff;
}

.editor-lookup-controls.has-create-action .editor-lookup-clear {
  border-radius: 0;
}

.editor-lookup-create {
  width: 38px;
  border: 1px solid #b9c5d3;
  border-left: 0;
  border-radius: 0 6px 6px 0;
  color: #17479d;
  background: #fff;
  font-size: 1.2rem;
}

.editor-lookup-controls input {
  border-radius: 6px 0 0 6px;
}

.editor-lookup-results {
  display: flex;
  flex-direction: column;
  max-height: 180px;
  overflow-y: auto;
  border-radius: 6px;
  box-shadow: 0 5px 16px rgb(24 39 58 / 14%);
}

.editor-lookup-results:empty {
  display: none;
}

.editor-lookup-results button {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 0;
  border-bottom: 1px solid #e1e6ed;
  padding: 9px 10px;
  text-align: left;
  color: #26364a;
  background: #fff;
}

.editor-lookup-result-primary {
  font-weight: 600;
}

.editor-lookup-result-secondary {
  color: #66758a;
  font-size: .78rem;
}

.editor-lookup-results button:hover,
.editor-lookup-results button:focus-visible {
  background: #edf4ff;
}

.open-workitems-bar {
  position: fixed;
  z-index: 1100;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 54px;
  border-top: 1px solid #9fb0c7;
  padding: 5px 12px;
  display: flex;
  align-items: stretch;
  gap: 10px;
  background: #edf2f8;
  box-shadow: 0 -4px 16px rgb(13 32 57 / 14%);
}

.open-workitems-label {
  flex: 0 0 auto;
  align-self: center;
  color: #435267;
  font-size: .82rem;
}

.open-workitems-list {
  min-width: 0;
  overflow-x: auto;
  display: flex;
  gap: 8px;
}

.open-workitems-overflow {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
}

.open-workitems-overflow > summary {
  min-height: 38px;
  border: 1px solid #bdc9d7;
  border-radius: 7px;
  padding: 9px 12px;
  color: #1f334c;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.open-workitems-overflow.has-active > summary {
  border-color: #376cc7;
  background: #eef4ff;
}

.open-workitems-overflow.has-error > summary {
  border-color: #c33636;
}

.open-workitems-overflow-menu {
  position: fixed;
  right: 12px;
  bottom: calc(var(--open-workitems-bar-height) + 6px);
  width: min(360px, calc(100vw - 24px));
  max-height: min(520px, calc(100vh - 110px));
  border: 1px solid #aebdce;
  border-radius: 9px;
  padding: 8px;
  overflow: auto;
  display: grid;
  gap: 7px;
  background: #edf2f8;
  box-shadow: 0 12px 36px rgb(13 32 57 / 25%);
}

.open-workitems-overflow-menu .open-workitem-wrapper {
  min-height: 48px;
}

.open-workitem-wrapper {
  position: relative;
  flex: 0 0 190px;
  max-width: 190px;
  min-height: 44px;
}

.open-workitem-button {
  width: 100%;
  max-width: 190px;
  height: 100%;
  border: 1px solid #bdc9d7;
  border-radius: 7px;
  padding: 5px 29px 5px 9px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: #1f334c;
  background: #fff;
  text-align: left;
}

.open-workitem-button.is-active {
  border-color: #376cc7;
  box-shadow: inset 0 0 0 1px #376cc7;
  background: #eef4ff;
}

.open-workitem-button.has-error {
  border-color: #c33636;
  background: #fff3f3;
}

.open-workitem-subject,
.open-workitem-organization {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.open-workitem-subject {
  font-size: .9rem;
  font-weight: 700;
}

.open-workitem-organization {
  margin-top: 1px;
  color: #637286;
  font-size: .72rem;
}

.open-workitem-close {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 23px;
  height: 23px;
  border: 0;
  border-radius: 5px;
  color: #526171;
  background: transparent;
  font-size: 1.1rem;
}

.open-workitem-close:hover {
  background: #dfe7f1;
}

.has-open-workitems main {
  padding-bottom: calc(var(--open-workitems-bar-height) + 8px);
}

.app-notice {
  position: fixed;
  z-index: 1600;
  top: 18px;
  left: 50%;
  width: min(620px, calc(100% - 32px));
  border: 1px solid #ddb65f;
  border-radius: 8px;
  padding: 12px 12px 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #513d0d;
  background: #fff7dc;
  box-shadow: 0 10px 30px rgb(20 32 48 / 24%);
  transform: translateX(-50%);
}

.spinner {
  flex: 0 0 auto;
  border: 3px solid #d7e0ed;
  border-top-color: #2c5cc5;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner {
  width: 38px;
  height: 38px;
}

/* PAM+ brand theme */
body {
  color: var(--brand-navy);
  background: var(--brand-gray-light);
}

.app-header {
  border-bottom-color: var(--brand-yellow);
  background: var(--brand-navy);
}

.app-header .eyebrow {
  color: var(--brand-yellow);
}

.queue-status-button,
.user-menu-button {
  border-color: var(--brand-blue-60);
}

.user-avatar {
  color: var(--brand-navy);
  background: var(--brand-blue-20);
}

.menu-chevron {
  color: var(--brand-blue-20);
}

.panel,
.workitem-window,
.attachment-preview-dialog {
  border-color: var(--brand-gray);
}

.eyebrow,
.workitem-link,
.text-button,
.attachment-link,
.attachment-list a,
.attachment-download-all,
.attachment-preview-button,
.attachment-download-button,
.persistent-attachments-more,
.pagination-icon-button,
.page-number-button,
.quick-email-direction.is-inbound,
.remote-images-button {
  color: var(--brand-blue);
}

select,
input,
textarea,
.due-filter-button {
  border-color: var(--brand-gray-dark);
  color: var(--brand-navy);
}

select:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline-color: var(--brand-yellow);
}

.toolbar-filters > label,
.organization-filter,
.toolbar-check {
  color: var(--brand-navy-80);
}

.toolbar-check input,
.check-row input {
  accent-color: var(--brand-blue);
}

.primary-button {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
}

.primary-button:hover:not(:disabled) {
  border-color: var(--brand-navy);
  background: var(--brand-navy);
}

.secondary-button,
.icon-button {
  border-color: var(--brand-gray-dark);
  color: var(--brand-navy);
}

.table-heading,
.email-panel-heading,
.workitem-window-header,
.editor-email-composer-footer,
td {
  border-color: var(--brand-gray);
}

th {
  color: var(--brand-navy-80);
  background: var(--brand-gray-light);
}

tbody tr:hover,
.organization-option:focus-visible {
  background: color-mix(in srgb, var(--brand-blue-20) 55%, white);
}

.workitem-row:focus-visible {
  outline-color: var(--brand-yellow);
}

.workitem-row.is-selected,
.due-filter-option.is-active,
.page-number-button.is-current,
.quick-email-option.is-selected,
.open-workitems-overflow.has-active > summary,
.open-workitem-button.is-active {
  background: var(--brand-blue-20);
}

.due-filter-option.is-active {
  border-color: var(--brand-blue-40);
  color: var(--brand-navy);
}

.pagination-icon-button:hover:not(:disabled),
.page-number-button:hover:not(:disabled),
.remote-images-button:hover:not(:disabled),
.attachment-preview-button:hover,
.attachment-download-button:hover,
.attachment-download-all:hover {
  background: color-mix(in srgb, var(--brand-blue-20) 65%, white);
}

.page-number-button.is-current,
.open-workitems-overflow.has-active > summary,
.open-workitem-button.is-active {
  border-color: var(--brand-blue);
  color: var(--brand-navy);
}

.quick-email-option.is-selected {
  border-left-color: var(--brand-yellow);
}

.open-workitem-button.is-active {
  box-shadow: inset 0 0 0 1px var(--brand-blue);
}

.open-workitems-bar,
.open-workitems-overflow-menu {
  border-color: var(--brand-blue-40);
  background: var(--brand-gray-light);
}

.app-notice {
  border-color: var(--brand-yellow);
}

.spinner {
  border-color: var(--brand-blue-20);
  border-top-color: var(--brand-blue);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 650px) {
  .editor-window > .workitem-window-header {
    flex-wrap: wrap;
  }

  .editor-incoming-notice {
    position: static;
    order: 3;
    width: 100%;
    max-width: none;
    transform: none;
  }

  body.has-tasks main {
    overflow-x: hidden;
    overflow-y: auto;
    display: block;
  }

  body.has-tasks #workspace,
  body.has-tasks .table-panel {
    display: block;
  }

  body.has-tasks .table-panel > .table-scroll {
    overflow-x: auto;
    overflow-y: visible;
  }

  .table-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .table-heading-actions {
    justify-content: flex-end;
  }

  .directory-toolbar,
  .directory-list-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .directory-toolbar-actions {
    justify-content: space-between;
  }

  .directory-editor-backdrop {
    padding: 0;
  }

  .directory-editor-dialog {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .directory-form-grid {
    grid-template-columns: 1fr;
  }

  .directory-form-grid > label,
  .directory-contact-organization {
    grid-column: 1;
  }

  .directory-custom-fields-grid dl {
    grid-template-columns: 1fr;
  }

  .contact-create-backdrop {
    padding: 0;
  }

  .contact-create-dialog {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .contact-create-grid {
    grid-template-columns: 1fr;
  }

  .contact-identity-row {
    grid-template-columns: 1fr;
  }

  .contact-employment-row {
    grid-template-columns: 1fr;
  }

  .contact-link-panel {
    grid-template-columns: 1fr;
  }

  .contact-phone-row {
    grid-template-columns: 1fr;
  }

  .attachment-preview-backdrop {
    padding: 0;
  }

  .attachment-preview-dialog {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  .workitem-backdrop {
    padding: 0;
  }

  .workitem-window {
    width: 100%;
    height: calc(100vh - 72px);
    max-height: none;
    border-radius: 0;
  }

  .editor-window {
    height: calc(100vh - 72px);
  }

  .editor-window .editor-form {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(360px, 60dvh) auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .editor-window .editor-email-section {
    min-width: 0;
    min-height: 360px;
  }

  #editorFields {
    padding: 12px;
    border-top: 1px solid #dce2ea;
    border-left: 0;
    overflow: visible;
  }

  #editorEmailConversations > .quick-email-reader {
    min-width: 300px;
    grid-template-columns: minmax(120px, 38%) minmax(180px, 1fr);
  }

  #editorEmailConversations .quick-email-detail {
    min-width: 180px;
  }

  #quickViewDialog {
    height: 100%;
  }

  #quickViewDialog .workitem-window-body {
    overflow-x: hidden;
    overflow-y: auto;
    display: block;
    overscroll-behavior: contain;
  }

  #quickViewDialog [data-email-container="quick-view"] {
    min-height: auto;
    overflow: visible;
  }

  #quickViewDialog .quick-email-reader {
    height: auto;
    overflow: visible;
    display: block;
  }

  #quickViewDialog .quick-email-selector {
    max-height: 220px;
    border-right: 0;
    border-bottom: 1px solid #dce2ea;
    overflow-y: auto;
  }

  #quickViewDialog .quick-email-detail,
  #quickViewDialog .email-message.is-mail-reader-message {
    height: auto;
    overflow: visible;
  }

  #quickViewDialog .is-mail-reader-message .email-message-body {
    overflow: visible;
  }

  .editor-field-grid,
  .workitem-overview dl,
  .custom-field-list {
    grid-template-columns: 1fr;
  }

  .quick-view-metadata dl {
    gap: 9px 16px;
  }

  .quick-view-metadata-item,
  .quick-view-metadata-item.is-organization {
    max-width: min(210px, 45vw);
  }

  .quick-email-reader {
    grid-template-columns: minmax(135px, 38%) minmax(0, 1fr);
    min-height: 0;
    height: 100%;
  }

  .quick-email-option {
    min-height: 66px;
    padding-inline: 9px;
  }

  .open-workitems-label {
    display: none;
  }

  .open-workitem-wrapper {
    flex-basis: 190px;
  }
  .app-header {
    align-items: flex-start;
    padding-inline: 14px;
  }

  .app-brand {
    padding-top: 4px;
  }

  .header-actions {
    align-items: flex-end;
    flex-direction: column-reverse;
  }

  .user-menu-button > span:nth-child(2),
  .menu-chevron {
    display: none;
  }

  .queue-status-button {
    min-height: 34px;
    min-width: 106px;
    padding-block: 5px;
    font-size: 0.8rem;
  }

  .toolbar {
    align-items: stretch;
  }

  .toolbar-controls,
  .toolbar-filters {
    display: flex;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-controls,
  .toolbar-filter-options {
    width: 100%;
    align-items: stretch;
  }

  .toolbar-controls {
    justify-items: stretch;
  }

  .toolbar-filter-options {
    flex-direction: column;
  }

  .toolbar-filters > label {
    width: 100%;
  }

  .toolbar-filters > .workitem-text-filter,
  .toolbar-filters > .status-filter,
  .toolbar-filters > .assignment-filter,
  .toolbar-filters > .division-filter {
    width: 100%;
  }

  .organization-filter {
    width: 100%;
  }

  .toolbar-refresh-button {
    align-self: flex-end;
  }

  .toolbar-reset-filters-button {
    width: 40px;
    align-self: flex-end;
  }

  .due-filter,
  .due-filter-button {
    width: 100%;
  }

  .error-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .pagination-navigation {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .email-panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .email-message-header dl {
    grid-template-columns: 1fr;
  }
}
