.sfu-tab {
  white-space: nowrap;
}

.sfu-due {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 118px;
  width: 100%;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #334155;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sfu-due:hover,
.sfu-due:focus-visible {
  border-color: #9db5d3;
  background: #f3f7fb;
  outline: none;
}

.sfu-due-cell {
  cursor: pointer;
}

.sfu-due-sort {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 5px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.sfu-due-sort:hover,
.sfu-due-sort:focus-visible,
.sfu-due-sort.is-active {
  background: #e8f1f9;
  color: #155a96;
  outline: none;
}

.sfu-due-sort__icon {
  font-size: 11px;
  line-height: 1;
}

.sfu-due__label {
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.sfu-due__detail {
  color: #64748b;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
}

.sfu-due--empty .sfu-due__label {
  color: #155a96;
}

.sfu-due--today .sfu-due__label,
.sfu-due--ready .sfu-due__label {
  color: #0b6b4b;
}

.sfu-due--ready {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.sfu-due--overdue {
  background: #fff1f2;
  border-color: #fecdd3;
}

.sfu-due--overdue .sfu-due__label {
  color: #b42318;
}

.sfu-contacted {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 6px;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  background: #ecfdf5;
  color: #08775a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1.2;
  text-transform: uppercase;
  vertical-align: middle;
}

.sfu-audit-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 6px;
  border: 1px solid #f4c78b;
  border-radius: 999px;
  background: #fff7e8;
  color: #8a4b08;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.2;
  text-transform: uppercase;
  vertical-align: middle;
}

.sfu-audit-badge--duplicate_review {
  border-color: #c4b5fd;
  background: #f5f3ff;
  color: #6d28d9;
}

.sfu-audit-badge--suspected_test {
  border-color: #fda4af;
  background: #fff1f2;
  color: #be123c;
}

.sfu-audit-badge--needs_enrichment {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.sfu-table .sfu-money {
  text-align: right;
}

.sfu-table td:last-child {
  min-width: 145px;
}

.sfu-empty {
  min-height: 180px;
}

.sfu-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 1px solid #ccd8e5;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgb(15 23 42 / 30%);
  color: #172033;
}

.sfu-dialog [hidden] {
  display: none !important;
}

.sfu-dialog::backdrop {
  background: rgb(15 23 42 / 48%);
  backdrop-filter: blur(2px);
}

.sfu-dialog__panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 40px);
  margin: 0;
}

.sfu-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #e5ebf2;
  background: #f8fafc;
}

.sfu-dialog__header h2 {
  margin: 4px 0;
  color: #132a46;
  font-size: 22px;
  line-height: 1.2;
}

.sfu-dialog__header p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.sfu-eyebrow {
  color: #155a96;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.sfu-icon-button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  place-items: center;
}

.sfu-dialog__body {
  display: grid;
  gap: 16px;
  overflow: auto;
  padding: 20px 24px;
}

.sfu-dialog__body section h3 {
  margin: 0 0 10px;
  color: #334155;
  font-size: 12px;
  letter-spacing: .02em;
}

.sfu-quick-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sfu-quick-options button {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #cad6e3;
  border-radius: 8px;
  background: #fff;
  color: #27415f;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.sfu-quick-options button:hover,
.sfu-quick-options button.selected {
  border-color: #2569a8;
  background: #edf5fd;
  color: #0f4f88;
}

.sfu-custom-time,
.sfu-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sfu-custom-time {
  margin-top: 12px;
}

.sfu-dialog label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

.sfu-dialog input,
.sfu-dialog select,
.sfu-dialog textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid #cad6e3;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font: 13px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sfu-dialog textarea {
  resize: vertical;
}

.sfu-dialog input:focus,
.sfu-dialog select:focus,
.sfu-dialog textarea:focus {
  border-color: #2569a8;
  box-shadow: 0 0 0 3px rgb(37 105 168 / 12%);
  outline: none;
}

.sfu-preview {
  margin-top: 12px;
  padding: 11px 12px;
  border-left: 3px solid #2569a8;
  border-radius: 6px;
  background: #f1f6fb;
  color: #183b60;
  font-size: 13px;
  font-weight: 750;
}

.sfu-timezone {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 10px;
}

.sfu-error {
  min-height: 16px;
  margin: 0;
  color: #b42318;
  font-size: 12px;
  font-weight: 650;
}

.sfu-dialog__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e5ebf2;
  background: #f8fafc;
}

.sfu-dialog__secondary,
.sfu-dialog__primary {
  display: flex;
  gap: 8px;
}

.sfu-button {
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid #cad6e3;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.sfu-button--primary {
  border-color: #155a96;
  background: #155a96;
  color: #fff;
}

.sfu-button--danger {
  border-color: #fecaca;
  color: #b42318;
}

.sfu-button:disabled,
.sfu-quick-options button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.sfu-toast-stack {
  position: fixed;
  top: 76px;
  right: 18px;
  z-index: 100000;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}

.sfu-toast {
  padding: 12px 14px;
  border: 1px solid #cbd8e5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 36px rgb(15 23 42 / 18%);
  color: #26364a;
  font-size: 13px;
  font-weight: 700;
}

.sfu-toast--due {
  border-color: #fbbf24;
  background: #fffbeb;
  color: #854d0e;
}

.sfu-toast--success {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.sw-ff .sfu-workspace-filter {
  display: flex;
  justify-content: space-between;
  min-width: 104px;
  width: 100%;
  border: 1px solid var(--color-border-strong, #c4d2e0);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  text-align: left;
}

.sw-ff .sfu-workspace-filter-control[data-sfu-workspace-filter-control="sort"] {
  min-width: 138px;
}

.sw-ff .sfu-workspace-filter-control[data-sfu-workspace-filter-control="audit"] {
  min-width: 148px;
}

.sw-ff .sfu-workspace-filter:hover {
  border-color: #91a8bf;
}

.sw-ff .sfu-workspace-filter:focus-visible,
.sw-ff .sfu-workspace-filter[aria-expanded="true"] {
  border-color: #155a96;
  outline: 2px solid rgb(21 90 150 / 20%);
  outline-offset: 1px;
}

.sfu-workspace-filter-control {
  position: relative;
}

.sfu-workspace-filter-chevron {
  margin-left: 8px;
  font-size: 15px;
  line-height: 1;
  transition: transform 120ms ease;
}

.sfu-workspace-filter[aria-expanded="true"] .sfu-workspace-filter-chevron {
  transform: rotate(180deg);
}

.sfu-workspace-filter-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 5px);
  left: 0;
  min-width: 100%;
  max-height: 240px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #cbd8e5;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(15 23 42 / 18%);
}

.sfu-workspace-filter-menu[hidden] {
  display: none;
}

.sfu-workspace-filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: max-content;
  padding: 8px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #26364a;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
}

.sfu-workspace-filter-option:hover,
.sfu-workspace-filter-option:focus-visible {
  outline: 0;
  background: #edf5fc;
  color: #155a96;
}

.sfu-workspace-filter-option[aria-selected="true"] {
  background: #e4f0fa;
  color: #155a96;
}

.sfu-workspace-filter-check {
  width: 13px;
  color: #155a96;
  font-weight: 800;
  text-align: center;
}

.sfu-filter-empty {
  margin: 20px;
}

.sfu-lead-drawer .sw-th .r1 {
  justify-content: space-between;
}

.sfu-lead-drawer .sw-th {
  position: sticky;
  z-index: 5;
  top: 0;
}

.sfu-lead-drawer .sw-nab .us-btn,
.sfu-lead-drawer .sw-nab .us-btn-primary {
  padding: 6px 12px;
  text-decoration: none;
}

.sfu-lead-drawer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sfu-lead-drawer__ready {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e8f5ee;
  color: #176a3a;
  font-size: 11px;
  font-weight: 750;
}

.sfu-lead-drawer--closing {
  display: none !important;
}

@media (max-width: 1120px) {
  #salesTodayView .sw-split:not(.nosel) {
    position: relative;
  }

  #salesTodayView .sw-split:not(.nosel) > .sw-twin {
    position: fixed;
    z-index: 75;
    top: 72px;
    right: 16px;
    bottom: 16px;
    display: block;
    width: min(420px, calc(100vw - 32px));
    border: 1px solid #cbd8e5;
    border-radius: 12px;
    box-shadow: 0 20px 55px rgb(15 23 42 / 28%);
  }
}

.sfu-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid #e1e8ef;
  background: #fff;
}

.sfu-pagination__summary {
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.sfu-pagination__controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.sfu-pagination__page,
.sfu-pagination__step {
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid #cbd8e5;
  border-radius: 7px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.sfu-pagination__page:hover,
.sfu-pagination__step:hover:not(:disabled),
.sfu-pagination__page:focus-visible,
.sfu-pagination__step:focus-visible {
  border-color: #155a96;
  outline: 0;
  color: #155a96;
}

.sfu-pagination__page.is-current {
  border-color: #155a96;
  background: #155a96;
  color: #fff;
}

.sfu-pagination__step:disabled {
  cursor: default;
  opacity: 0.45;
}

.sfu-pagination__gap {
  min-width: 18px;
  color: #94a3b8;
  text-align: center;
}

@media (max-width: 760px) {
  .sfu-quick-options,
  .sfu-custom-time,
  .sfu-form-grid {
    grid-template-columns: 1fr;
  }

  .sfu-dialog__footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .sfu-dialog__secondary,
  .sfu-dialog__primary {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

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

  .sfu-pagination__controls {
    overflow-x: auto;
    padding-bottom: 2px;
  }
}
