: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;
}

button,
select,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.app-header {
  min-height: 76px;
  padding: 14px 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;
}

.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;
}

.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;
}

.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;
}

.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: 28px clamp(14px, 3vw, 40px) 48px;
}

.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: 12px 16px;
  display: flex;
  align-items: end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 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: 210px;
}

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

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

.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;
}

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

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

.organization-filter {
  position: relative;
  width: 245px;
  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;
}

.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(360px, 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 {
  max-width: 440px;
  padding-bottom: 10px;
  color: #687687;
  font-size: 0.8rem;
}

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

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: 83px;
  padding: 18px 20px;
  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-scroll {
  overflow: auto;
}

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

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;
}

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-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: 66px;
  padding: 12px 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: 72px;
  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-select {
  width: 190px;
  min-height: 32px;
  padding-block: 5px;
  font-size: .82rem;
}

.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 {
  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-option {
  position: relative;
  width: 100%;
  min-height: 72px;
  border: 0;
  border-bottom: 1px solid #dce2ea;
  border-left: 4px solid transparent;
  padding: 12px 34px 12px 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-sender-row,
.quick-email-sender,
.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-direction {
  flex: 0 0 auto;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

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

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

.quick-email-subject {
  margin-top: 5px;
  color: #596879;
  font-size: .82rem;
}

.quick-email-attachment {
  position: absolute;
  top: 12px;
  right: 10px;
  font-size: .9rem;
}

.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: flex;
  gap: 7px;
}

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

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

.email-composer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.email-composer-heading h3 {
  font-size: .95rem;
}

.email-composer-heading h3,
.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-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;
  font-size: .84rem;
  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;
}

.email-composer-status {
  color: #a12626;
  font-size: .8rem;
  white-space: pre-wrap;
}

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

.email-composer-footer {
  display: flex;
  justify-content: flex-end;
  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%);
}

.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-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(260px, 300px);
}

#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-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;
}

.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 230px;
  min-height: 44px;
}

.open-workitem-button {
  width: 100%;
  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,
.small-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;
}

.small-spinner {
  width: 24px;
  height: 24px;
}

/* 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,
.small-spinner {
  border-color: var(--brand-blue-20);
  border-top-color: var(--brand-blue);
}

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

@media (max-width: 650px) {
  .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) minmax(180px, 38%);
  }

  #editorFields {
    padding: 12px;
  }

  #quickViewDialog {
    height: calc(100vh - 72px);
  }

  .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 28px;
  }

  .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;
  }

  .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;
  }
}
