.dvfs-crm-app {
  --dvfs-bg: #f6f7f4;
  --dvfs-panel: #ffffff;
  --dvfs-ink: #1c2328;
  --dvfs-muted: #60717b;
  --dvfs-line: #d9e0df;
  --dvfs-red: #b91f32;
  --dvfs-teal: #0f766e;
  --dvfs-sky: #e8f3f7;
  --dvfs-amber: #f3b23c;
  --dvfs-green: #1f8a59;
  color: var(--dvfs-ink);
  margin-right: 24px;
  padding-bottom: 45vh;
}

body.wp-admin #wpbody-content {
  overflow: visible;
  padding-bottom: 45vh;
}

.dvfs-crm-app * {
  box-sizing: border-box;
}

.dvfs-login-body {
  --dvfs-bg: #f6f7f4;
  --dvfs-panel: #ffffff;
  --dvfs-ink: #1c2328;
  --dvfs-muted: #60717b;
  --dvfs-line: #d9e0df;
  --dvfs-red: #b91f32;
  background: var(--dvfs-bg);
  color: var(--dvfs-ink);
  display: grid;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
  place-items: center;
}

.dvfs-login-shell {
  padding: 24px;
  width: min(460px, 100%);
}

.dvfs-login-card {
  background: var(--dvfs-panel);
  border: 1px solid var(--dvfs-line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(28, 35, 40, 0.12);
  overflow: hidden;
}

.dvfs-login-card * {
  box-sizing: border-box;
}

.dvfs-login-brand {
  align-items: center;
  background: #073f78;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px 20px;
}

.dvfs-login-brand h1 {
  color: #ffffff;
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}

.dvfs-login-brand img {
  display: block;
  height: 50px;
  max-width: 180px;
  object-fit: contain;
}

.dvfs-login-card form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.dvfs-login-card label {
  color: var(--dvfs-muted);
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.dvfs-login-card input[type="text"],
.dvfs-login-card input[type="password"] {
  border: 1px solid var(--dvfs-line);
  border-radius: 6px;
  color: var(--dvfs-ink);
  font-size: 18px;
  min-height: 44px;
  padding: 8px 11px;
  width: 100%;
}

.dvfs-login-card .button {
  background: #3455eb;
  border: 1px solid #3455eb;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
  min-height: 46px;
  width: 100%;
}

.dvfs-login-remember {
  align-items: center;
  display: flex !important;
  flex-direction: row;
  gap: 9px !important;
}

.dvfs-login-remember input {
  height: 18px;
  min-height: auto;
  width: 18px;
}

.dvfs-login-message,
.dvfs-login-error {
  border-radius: 6px;
  font-weight: 700;
  margin: 18px 20px 0;
  padding: 10px 12px;
}

.dvfs-login-message {
  background: #e9f8ef;
  border: 1px solid #b9e5c8;
}

.dvfs-login-error {
  background: #fff0f0;
  border: 1px solid #f3b4b4;
  color: var(--dvfs-red);
}

.dvfs-manual-body {
  --dvfs-bg: #f6f7f4;
  --dvfs-panel: #ffffff;
  --dvfs-ink: #1c2328;
  --dvfs-muted: #60717b;
  --dvfs-line: #d9e0df;
  --dvfs-teal: #0f766e;
  background: var(--dvfs-bg);
  color: var(--dvfs-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}

.dvfs-manual-shell {
  margin: 0 auto;
  max-width: 1120px;
  padding: 24px;
}

.dvfs-manual-header {
  align-items: center;
  background: #073f78;
  border-radius: 8px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px 22px;
}

.dvfs-manual-header p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.dvfs-manual-header h1 {
  color: #ffffff;
  font-size: 30px;
  line-height: 1.15;
  margin: 0;
}

.dvfs-manual-header img {
  display: block;
  height: 58px;
  max-width: 220px;
  object-fit: contain;
}

.dvfs-manual-top {
  margin: 18px 0;
}

.dvfs-manual-top a {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--dvfs-line);
  border-radius: 6px;
  color: var(--dvfs-teal);
  display: inline-flex;
  font-weight: 800;
  min-height: 42px;
  padding: 9px 14px;
  text-decoration: none;
}

.dvfs-manual-intro,
.dvfs-manual-section {
  background: var(--dvfs-panel);
  border: 1px solid var(--dvfs-line);
  border-radius: 8px;
}

.dvfs-manual-intro {
  margin-bottom: 18px;
  padding: 22px;
}

.dvfs-manual-intro h2,
.dvfs-manual-section h2 {
  color: var(--dvfs-ink);
  line-height: 1.2;
  margin: 0;
}

.dvfs-manual-intro p {
  color: var(--dvfs-muted);
  font-size: 18px;
  line-height: 1.5;
  margin: 10px 0 0;
}

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

.dvfs-manual-section {
  padding: 20px;
}

.dvfs-manual-section ul {
  color: var(--dvfs-muted);
  display: grid;
  font-size: 16px;
  gap: 9px;
  line-height: 1.45;
  margin: 14px 0 0;
  padding-left: 22px;
}

.dvfs-crm-app input,
.dvfs-crm-app select,
.dvfs-crm-app textarea {
  width: 100%;
  max-width: none;
  border: 1px solid var(--dvfs-line);
  border-radius: 6px;
  color: var(--dvfs-ink);
  min-height: 38px;
}

.dvfs-crm-app textarea {
  resize: vertical;
}

.dvfs-crm-app label {
  display: grid;
  gap: 6px;
  color: var(--dvfs-muted);
  font-weight: 600;
}

.dvfs-hero {
  align-items: center;
  background: #073f78;
  border: 1px solid #073f78;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 14px 0 10px;
  min-height: 68px;
  padding: 8px 18px;
}

.dvfs-hero h1 {
  color: #ffffff;
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}

.dvfs-hero p {
  color: var(--dvfs-muted);
  margin: 0;
}

.dvfs-eyebrow {
  color: var(--dvfs-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dvfs-hero-settings {
  background: #ffffff;
  border: 1px solid var(--dvfs-line);
  border-radius: 6px;
  color: var(--dvfs-teal);
  font-weight: 700;
  padding: 9px 12px;
  text-decoration: none;
  white-space: nowrap;
}

.dvfs-hero-actions {
  align-items: center;
  display: flex;
  gap: 14px;
}

.dvfs-logout-button {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 6px;
  color: #073f78;
  font-weight: 800;
  min-height: 36px;
  padding: 8px 12px;
  text-decoration: none;
  white-space: nowrap;
}

.dvfs-hero-logo {
  display: block;
  height: 56px;
  max-width: 220px;
  object-fit: contain;
}

.dvfs-tabs,
.dvfs-subtabs {
  display: flex;
  gap: 6px;
  margin: 0 0 14px;
}

.dvfs-tabs a,
.dvfs-subtabs a {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--dvfs-line);
  border-radius: 6px;
  color: var(--dvfs-ink);
  display: inline-flex;
  font-weight: 700;
  min-height: 38px;
  padding: 8px 14px;
  text-decoration: none;
}

.dvfs-tabs a.is-active,
.dvfs-subtabs a.is-active {
  background: var(--dvfs-teal);
  border-color: var(--dvfs-teal);
  color: #ffffff;
}

.dvfs-contact-table-wrap {
  background: #ffffff;
  border: 1px solid var(--dvfs-line);
  border-radius: 8px;
  overflow-x: auto;
}

.dvfs-contact-table {
  border-collapse: collapse;
  min-width: 980px;
  width: 100%;
}

.dvfs-contact-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin: 10px 0;
}

.dvfs-contact-pagination span {
  color: var(--dvfs-muted);
  font-weight: 700;
}

.dvfs-contact-table thead {
  background: #f9fafb;
}

.dvfs-contact-table th {
  color: var(--dvfs-muted);
  font-size: 12px;
  font-weight: 800;
  padding: 12px 16px;
  text-align: left;
  text-transform: uppercase;
}

.dvfs-table-sort-head {
  align-items: start;
  display: grid;
  gap: 6px;
}

.dvfs-table-sort-head form {
  align-items: center;
  display: flex;
  gap: 5px;
  margin: 0;
}

.dvfs-table-sort-head select {
  font-size: 12px;
  font-weight: 600;
  min-height: 30px;
  text-transform: none;
}

.dvfs-contact-table td {
  border-top: 1px solid #eef1f0;
  color: #4b5560;
  font-size: 14px;
  padding: 14px 16px;
  vertical-align: middle;
}

.dvfs-contact-table tbody tr:nth-child(odd) {
  background: #fbfbfb;
}

.dvfs-contact-table tbody tr:hover {
  background: #f2f7f7;
}

.dvfs-contact-table a {
  color: #2271b1;
  text-decoration: none;
}

.dvfs-contact-name {
  font-size: 15px;
  font-weight: 800;
}

.dvfs-check-col {
  width: 40px;
}

.dvfs-contact-table input[type="checkbox"] {
  min-height: auto;
  width: auto;
}

.dvfs-recipient-select-col {
  text-align: center;
  width: 42px;
}

.dvfs-recipient-select-col input[type="checkbox"] {
  appearance: none;
  background: #ffffff;
  border: 2px solid var(--dvfs-line);
  border-radius: 50%;
  cursor: pointer;
  height: 20px;
  margin: 0;
  min-height: 20px;
  width: 20px;
}

.dvfs-recipient-select-col input[type="checkbox"]:checked {
  background-color: transparent;
  background-image:
    linear-gradient(45deg, transparent 43%, #c5222a 43%, #c5222a 57%, transparent 57%),
    linear-gradient(-45deg, transparent 43%, #c5222a 43%, #c5222a 57%, transparent 57%);
  border-color: transparent;
  box-shadow: none;
}

.dvfs-recipient-select-col input[type="checkbox"]:checked:hover {
  opacity: 0.75;
}

.dvfs-recipient-select-col input[type="checkbox"]:checked::before {
  content: none !important;
  display: none !important;
}

.dvfs-recipient-select-col input[type="checkbox"]:focus-visible {
  outline: 2px solid #3154f4;
  outline-offset: 3px;
}

.dvfs-contact-table tr.is-deselected td {
  opacity: 0.55;
}

.dvfs-contact-table tr.is-removed-from-selection {
  display: none;
}

.dvfs-avatar-col {
  width: 58px;
}

.dvfs-mails-col {
  text-align: center;
  width: 140px;
}

.dvfs-tasks-col {
  text-align: center;
  width: 90px;
}

.dvfs-mails-col .dvfs-table-sort-head {
  align-items: center;
}

.dvfs-mail-fetch-button {
  min-height: 34px !important;
  min-width: 86px;
  padding: 0 12px !important;
}

.dvfs-list-avatar {
  aspect-ratio: 1;
  background: #d7d9d9;
  border-radius: 2px;
  display: block;
  height: 46px;
  object-fit: cover;
  position: relative;
  width: 46px;
}

.dvfs-list-avatar-empty::before {
  background: #ffffff;
  border-radius: 50%;
  content: "";
  height: 19px;
  left: 14px;
  position: absolute;
  top: 10px;
  width: 19px;
}

.dvfs-list-avatar-empty::after {
  background: #ffffff;
  border-radius: 50% 50% 0 0;
  content: "";
  height: 18px;
  left: 8px;
  position: absolute;
  top: 29px;
  width: 31px;
}

.dvfs-mail-dot {
  align-items: center;
  border: 1px solid var(--dvfs-line);
  border-radius: 999px;
  display: inline-flex;
  height: 18px;
  justify-content: center;
  text-decoration: none;
  width: 18px;
}

.dvfs-mail-dot.has-unread {
  background: #1d72f3;
  border-color: #1d72f3;
  box-shadow: 0 0 0 4px rgba(29, 114, 243, 0.13);
}

.dvfs-task-dot {
  align-items: center;
  border: 1px solid var(--dvfs-line);
  border-radius: 999px;
  display: inline-flex;
  height: 18px;
  justify-content: center;
  position: relative;
  text-decoration: none;
  width: 18px;
}

.dvfs-task-dot.is-clear {
  background: #25a46a;
  border-color: #25a46a;
  box-shadow: 0 0 0 4px rgba(37, 164, 106, 0.12);
}

.dvfs-task-dot.is-open {
  background: #f4c542;
  border-color: #f4c542;
  box-shadow: 0 0 0 4px rgba(244, 197, 66, 0.17);
}

.dvfs-task-dot.is-due {
  background: #d9372f;
  border-color: #d9372f;
  box-shadow: 0 0 0 4px rgba(217, 55, 47, 0.14);
}

.dvfs-task-tooltip {
  background: #1f2933;
  border-radius: 6px;
  bottom: calc(100% + 10px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.24);
  color: #ffffff;
  display: grid;
  font-size: 12px;
  gap: 3px;
  left: 50%;
  line-height: 1.35;
  max-width: 260px;
  min-width: 190px;
  opacity: 0;
  padding: 8px 10px;
  pointer-events: none;
  position: absolute;
  text-align: left;
  text-transform: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  visibility: hidden;
  z-index: 30;
}

.dvfs-task-tooltip::after {
  border: 6px solid transparent;
  border-top-color: #1f2933;
  content: "";
  left: 50%;
  position: absolute;
  top: 100%;
  transform: translateX(-50%);
}

.dvfs-task-tooltip strong {
  color: #ffffff;
  font-size: 12px;
}

.dvfs-task-tooltip span {
  color: #d6dee6;
}

.dvfs-task-dot:hover .dvfs-task-tooltip,
.dvfs-task-dot:focus .dvfs-task-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  visibility: visible;
}

.dvfs-muted {
  color: var(--dvfs-muted);
}

.dvfs-detail-toolbar {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 8px 0 16px;
}

.dvfs-detail-toolbar h2 {
  font-size: 24px;
  margin: 0;
}

.dvfs-detail-actions,
.dvfs-search-form {
  align-items: end;
  display: flex;
  gap: 10px;
}

.dvfs-detail-actions {
  margin-left: auto;
}

.dvfs-detail-actions form,
.dvfs-search-form {
  margin: 0;
}

.dvfs-search-form {
  background: #ffffff;
  border: 1px solid var(--dvfs-line);
  border-radius: 8px;
  margin: 0 0 14px;
  padding: 12px;
}

.dvfs-search-form label {
  min-width: min(420px, 100%);
}

.dvfs-search-field {
  position: relative;
}

.dvfs-due-task-field {
  flex: 1 1 360px;
  max-width: 620px;
}

.dvfs-due-task-field select {
  min-width: 100%;
}

.dvfs-search-form label span {
  color: var(--dvfs-muted);
  font-weight: 800;
}

.dvfs-search-suggestions {
  background: #ffffff;
  border: 1px solid var(--dvfs-line);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(28, 35, 40, 0.14);
  left: 0;
  max-height: 300px;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
}

.dvfs-search-suggestion {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #eef1f0;
  color: var(--dvfs-ink);
  cursor: pointer;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.dvfs-search-suggestion:hover,
.dvfs-search-suggestion:focus,
.dvfs-search-suggestion.is-active {
  background: #eef6ff;
  outline: 0;
}

.dvfs-search-suggestion strong {
  color: #2271b1;
}

.dvfs-search-suggestion span {
  color: var(--dvfs-muted);
  font-size: 12px;
  font-weight: 600;
}

.dvfs-inline-promote,
.dvfs-inline-delete {
	margin: 0;
}

.dvfs-contact-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(250px, 30%) minmax(0, 1fr);
  min-height: 640px;
}

.dvfs-contact-rail,
.dvfs-profile-panel,
.dvfs-activity-panel,
.dvfs-card,
.dvfs-day,
.dvfs-list-item {
  background: var(--dvfs-panel);
  border: 1px solid var(--dvfs-line);
  border-radius: 8px;
}

.dvfs-contact-rail {
  max-height: none;
  overflow: visible;
  padding: 12px;
}

.dvfs-rail-head,
.dvfs-page-head,
.dvfs-record-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.dvfs-rail-head h2,
.dvfs-page-head h2,
.dvfs-record-head h2 {
  margin: 0;
}

.dvfs-contact-card {
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--dvfs-ink);
  display: grid;
  gap: 3px;
  margin-top: 8px;
  padding: 11px 12px;
  text-decoration: none;
}

.dvfs-contact-card:hover,
.dvfs-contact-card.is-active {
  background: #fff8f0;
  border-color: #f1d2a2;
}

.dvfs-contact-card strong {
  font-size: 15px;
}

.dvfs-contact-card span {
  color: var(--dvfs-muted);
}

.dvfs-contact-card em {
  color: var(--dvfs-teal);
  font-style: normal;
  font-weight: 700;
  margin-top: 4px;
}

.dvfs-record {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(250px, 360px) minmax(0, 1fr);
}

.dvfs-profile-panel,
.dvfs-activity-panel {
  padding: 16px;
}

.dvfs-profile-panel,
.dvfs-profile-panel form {
  min-width: 0;
}

.dvfs-activity-panel .dvfs-subtabs {
  background: #2e3438;
  border: 1px solid #22272a;
  border-radius: 3px;
  gap: 0;
  overflow: auto;
}

.dvfs-activity-panel .dvfs-subtabs a {
  background: transparent;
  border: 0;
  border-right: 1px solid #42494e;
  border-radius: 0;
  color: #ffffff;
  min-height: 46px;
  padding: 12px 18px;
}

.dvfs-activity-panel .dvfs-subtabs a.is-active {
  background: #11181c;
  box-shadow: inset 0 -3px 0 #2ea3f2;
}

.dvfs-activity-panel .dvfs-subtabs .dvfs-documents-tab {
  border-left: 1px solid #42494e;
  margin-left: auto;
}

.dvfs-profile-panel form,
.dvfs-card form {
  display: grid;
  gap: 12px;
}

.dvfs-two {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.dvfs-address-row {
  grid-template-columns: minmax(108px, 0.48fr) 1fr;
}

.dvfs-residence-row {
  grid-template-columns: minmax(118px, 0.42fr) 1fr;
}

.dvfs-age-field {
  max-width: 180px;
}

.dvfs-phone-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 42px 42px 42px;
}

.dvfs-phone-row input,
.dvfs-email-row input {
  min-width: 0;
}

.dvfs-email-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 42px;
}

.dvfs-phone-action,
.dvfs-email-action {
  align-items: center;
  aspect-ratio: 1;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 2px rgba(15, 23, 42, 0.16);
  color: #ffffff;
  display: inline-flex;
  justify-content: center;
  min-height: 42px;
  text-decoration: none;
}

.dvfs-phone-action {
  background: linear-gradient(180deg, #53ec72 0%, #16c95a 100%);
}

.dvfs-email-action {
  background: linear-gradient(180deg, #6ec6ff 0%, #1677e8 100%);
}

.dvfs-phone-action svg,
.dvfs-email-action svg {
  display: block;
  fill: currentColor;
  height: 27px;
  width: 27px;
}

.dvfs-email-action svg rect {
  fill: currentColor;
}

.dvfs-email-action svg path {
  color: #1677e8;
}

.dvfs-phone-action.is-disabled,
.dvfs-email-action.is-disabled {
  background: #d6dedc;
  color: #687781;
  box-shadow: none;
}

.dvfs-birthday-row {
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(76px, 90px);
}

.dvfs-birthday-control {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 76px;
  min-width: 0;
}

.dvfs-birthday-row > label,
.dvfs-birthday-control input,
.dvfs-birthday-control select {
  min-width: 0;
}

.dvfs-birthday-control select {
  font-size: 12px;
  min-height: 38px;
}

.dvfs-photo-box {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin-bottom: 12px;
}

.dvfs-photo-box input[type="file"] {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.dvfs-photo,
.dvfs-photo-placeholder {
  aspect-ratio: 1;
  border-radius: 8px;
  height: auto;
  object-fit: cover;
  width: min(180px, 100%);
}

.dvfs-photo-placeholder {
  align-items: center;
  background: linear-gradient(135deg, #eef4f1, #fff7e8);
  border: 1px dashed #b7c7c2;
  color: var(--dvfs-muted);
  display: flex;
  font-weight: 800;
  justify-content: center;
}

.dvfs-checklist {
  border: 1px solid var(--dvfs-line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
}

.dvfs-group-checklist {
  max-height: 170px;
  overflow-y: auto;
  padding-right: 8px;
}

.dvfs-group-checklist label.is-assigned {
  color: var(--dvfs-ink);
}

.dvfs-archive-check-button {
  background: #f3b23c !important;
  border-color: #d3911c !important;
  color: #1c2328 !important;
  font-weight: 800;
  justify-self: start;
}

.dvfs-group-assign-button {
  justify-self: start;
  margin-top: -2px;
}

.dvfs-group-assignment-card {
  margin-bottom: 14px;
}

.dvfs-group-assignment-card form {
  display: grid;
  gap: 12px;
}

.dvfs-group-assignment-list {
  max-height: 320px;
  overflow-y: auto;
}

.dvfs-archived-groups {
  border-top: 1px solid #eef1f0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding-top: 10px;
}

.dvfs-archived-groups strong {
  flex-basis: 100%;
}

.dvfs-archived-groups span {
  background: #eef6ff;
  border: 1px solid #c9ddff;
  border-radius: 999px;
  color: var(--dvfs-ink);
  font-weight: 700;
  padding: 5px 9px;
}

.dvfs-checklist legend {
  color: var(--dvfs-muted);
  font-weight: 800;
  padding: 0 5px;
}

.dvfs-checklist label,
.dvfs-check {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.dvfs-checklist input,
.dvfs-check input {
  min-height: auto;
  width: auto;
}

.dvfs-collapsible-select {
  color: var(--dvfs-muted);
  display: grid;
  font-weight: 600;
  gap: 6px;
  min-width: 0;
}

.dvfs-collapsible-select-label {
  display: block;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.dvfs-collapsible-select details {
  color: var(--dvfs-ink);
  font-weight: 400;
  min-width: 0;
}

.dvfs-collapsible-select summary {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--dvfs-line);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 400;
  justify-content: space-between;
  list-style: none;
  min-height: 38px;
  min-width: 0;
  padding: 0 8px;
  width: 100%;
}

.dvfs-collapsible-select summary::-webkit-details-marker {
  display: none;
}

.dvfs-collapsible-select summary::after {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  flex: 0 0 auto;
  height: 7px;
  margin: -4px 5px 0 14px;
  transform: rotate(45deg);
  width: 7px;
}

.dvfs-collapsible-select details[open] summary {
  border-radius: 6px 6px 0 0;
}

.dvfs-collapsible-select details[open] summary::after {
  margin-top: 5px;
  transform: rotate(225deg);
}

.dvfs-collapsible-select summary span {
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: normal;
}

.dvfs-collapsible-select-options {
  background: #ffffff;
  border: 1px solid var(--dvfs-line);
  border-radius: 0 0 6px 6px;
  border-top: 0;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(0, 1fr);
  padding: 12px 14px;
  width: 100%;
}

.dvfs-collapsible-select-options label {
  align-items: center;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  gap: 9px;
  min-width: 0;
  white-space: normal;
}

.dvfs-collapsible-select-options input[type="checkbox"] {
  min-height: auto;
  width: auto;
}

.dvfs-record-head {
  border-bottom: 1px solid var(--dvfs-line);
  margin: -2px 0 14px;
  padding-bottom: 14px;
}

.dvfs-record-head span {
  color: var(--dvfs-muted);
  font-weight: 700;
}

.dvfs-mail-link {
  color: var(--dvfs-teal);
  font-weight: 700;
  text-decoration: none;
}

.dvfs-panel-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr);
}

.dvfs-card {
  padding: 16px;
}

.dvfs-card h3,
.dvfs-history h3 {
  margin-top: 0;
}

.dvfs-inline-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dvfs-inline-fields label {
  min-width: 0;
}

.dvfs-square-note {
  aspect-ratio: 1;
  min-height: 220px;
}

.dvfs-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dvfs-editor-toolbar .button {
  min-height: 34px;
}

.dvfs-editor-toolbar .dvfs-file-button {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
}

.dvfs-file-button input[type="file"] {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.dvfs-editor-toolbar .dvfs-font-size-select {
  min-width: 150px;
  width: auto;
}

.dvfs-selected-files {
  color: var(--dvfs-muted);
  display: block;
  flex-basis: 100%;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  max-width: none;
  min-height: 0;
  overflow: visible;
  padding-top: 2px;
  white-space: normal;
}

.dvfs-selected-files.has-files {
  color: var(--dvfs-text);
}

.dvfs-selected-files ul {
  font-weight: 700;
  margin: 4px 0 0 18px;
  padding: 0;
}

.dvfs-selected-files li {
  margin: 2px 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dvfs-editor-toolbar .button[data-dvfs-format="insertUnorderedList"] {
  min-width: 112px;
}

.dvfs-rich-note {
  aspect-ratio: 1;
  background: #ffffff;
  border: 1px solid var(--dvfs-line);
  border-radius: 6px;
  color: var(--dvfs-ink);
  min-height: 220px;
  overflow: auto;
  padding: 10px;
}

.dvfs-rich-note *,
.dvfs-note-content *,
.dvfs-mail-body * {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

.dvfs-note-content,
.dvfs-mail-body {
  color: var(--dvfs-ink);
}

.dvfs-mail-quote {
  border-left: 3px solid var(--dvfs-line);
  line-height: 1.35;
  margin: 18px 0 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 0 0 0 14px;
}

.dvfs-mail-quote-meta {
  font-size: 0.95em;
  margin: 0 0 12px;
}

.dvfs-mail-quote-body p {
  margin: 0 0 10px !important;
}

.dvfs-mail-quote-body div {
  line-height: 1.35 !important;
  margin: 0 0 10px !important;
  min-height: 0 !important;
}

.dvfs-mail-quote-body p,
.dvfs-mail-quote-body span,
.dvfs-mail-quote-body strong,
.dvfs-mail-quote-body em,
.dvfs-mail-quote-body a {
  line-height: 1.35 !important;
}

.dvfs-note-card .dvfs-rich-note {
  aspect-ratio: auto;
  height: auto;
  min-height: 170px;
  overflow: visible;
}

.dvfs-rich-note ul {
  list-style-position: outside;
  list-style-type: disc;
  margin: 0 0 10px 28px;
  padding-left: 18px;
}

.dvfs-rich-note li {
  margin: 5px 0;
  padding-left: 6px;
}

.dvfs-rich-note:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: 0;
}

.dvfs-email-editor {
  aspect-ratio: auto;
  line-height: 1.45;
  min-height: 280px;
}

.dvfs-template-editor {
  aspect-ratio: auto;
  line-height: 1.45;
  min-height: 320px;
}

.dvfs-hidden-note {
  display: none;
}

.dvfs-font-size-small {
  font-size: 0.88em;
}

.dvfs-font-size-normal {
  font-size: 1em;
}

.dvfs-font-size-large {
  font-size: 1.18em;
}

.dvfs-font-size-xlarge {
  font-size: 1.38em;
}

.dvfs-note-content ul,
.dvfs-note-content ol {
  list-style-position: inside;
  margin: 8px 0 12px;
  padding-left: 0;
}

.dvfs-note-content ul {
  list-style-type: disc;
}

.dvfs-note-content ol {
  list-style-type: decimal;
}

.dvfs-note-content li {
  margin: 5px 0;
}

.dvfs-history {
  margin-top: 18px;
}

.dvfs-note-card {
  max-width: none;
  width: 100%;
}

.dvfs-document-upload,
.dvfs-documents-list {
  max-width: none;
}

.dvfs-document-item {
  align-items: center;
  background: #fbfcfc;
  border: 1px solid var(--dvfs-line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 10px 0;
  padding: 12px 14px;
}

.dvfs-document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.dvfs-document-actions form {
  margin: 0;
}

.dvfs-email-document-list {
  display: grid;
  gap: 10px;
}

.dvfs-document-attachment-row {
  background: #fbfcfc;
  border: 1px solid var(--dvfs-line);
  border-radius: 8px;
  padding: 10px;
}

.dvfs-document-attachment-row small {
  color: #667782;
  display: block;
  margin-top: 4px;
}

.dvfs-timeline-item {
  border-left: 4px solid var(--dvfs-teal);
  background: #fbfcfc;
  border-radius: 0 8px 8px 0;
  margin: 10px 0;
  padding: 12px 14px;
}

.dvfs-timeline-item time,
.dvfs-timeline-item small,
.dvfs-list-item span,
.dvfs-day small {
  color: var(--dvfs-muted);
  display: block;
}

.dvfs-mail-item.outgoing {
  border-left-color: var(--dvfs-red);
}

.dvfs-mail-item.incoming {
  border-left-color: var(--dvfs-green);
}

.dvfs-mail-item.is-unread {
  background: #eef6ff;
}

.dvfs-unassigned-mail {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
}

.dvfs-unassigned-mail-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.dvfs-unassigned-mail-head h3,
.dvfs-unassigned-mail p {
  margin: 0;
}

.dvfs-unassigned-mail-head span,
.dvfs-unassigned-mail-row span {
  color: var(--dvfs-muted);
  font-weight: 700;
}

.dvfs-unassigned-mail-list {
  display: grid;
  gap: 10px;
}

.dvfs-unassigned-mail-row {
  align-items: center;
  background: #fbfcfc;
  border: 1px solid var(--dvfs-line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr) auto;
  padding: 12px;
}

.dvfs-unassigned-mail-content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dvfs-unassigned-mail-content strong,
.dvfs-unassigned-mail-content p {
  overflow-wrap: anywhere;
}

.dvfs-unassigned-mail-actions {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.dvfs-unassigned-mail-delete {
  justify-self: end;
}

.dvfs-activities-card {
  padding: 18px;
}

.dvfs-activity-feed {
  display: grid;
  gap: 10px;
}

.dvfs-activity-item {
  align-items: start;
  background: #fbfcfc;
  border: 1px solid #eef1f0;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 38px minmax(0, 1fr);
  padding: 12px;
}

.dvfs-activity-icon {
  align-items: center;
  border-radius: 6px;
  color: #ffffff !important;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  text-decoration: none;
  width: 34px;
}

.dvfs-activity-icon svg {
  fill: currentColor;
  height: 19px;
  width: 19px;
}

.dvfs-activity-icon-note {
  background: var(--dvfs-teal);
}

.dvfs-activity-icon-task {
  background: #d8a600;
}

.dvfs-activity-icon-task-open {
  background: #d8a600;
}

.dvfs-activity-icon-task-due {
  background: #d9372f;
}

.dvfs-activity-icon-task-done {
  background: #25a46a;
}

.dvfs-activity-icon-appointment {
  background: #117c73;
}

.dvfs-activity-icon-email {
  background: #6b4bb8;
}

.dvfs-activity-body {
  min-width: 0;
}

.dvfs-activity-head {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.dvfs-activity-head strong {
  color: var(--dvfs-ink);
  font-size: 15px;
}

.dvfs-activity-head span,
.dvfs-activity-body small {
  color: var(--dvfs-muted);
  font-weight: 700;
}

.dvfs-activity-body p {
  color: var(--dvfs-ink);
  margin: 7px 0 0;
}

.dvfs-mail-error {
  background: #fff0f0;
  border: 1px solid #f3b4b4;
  border-radius: 6px;
  color: #b91f32;
  font-weight: 700;
  padding: 8px 10px;
}

.dvfs-email-attachments {
  background: #ffffff;
  border: 1px solid var(--dvfs-line);
  border-radius: 8px;
  margin-top: 12px;
  padding: 12px;
}

.dvfs-email-attachments form {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.dvfs-attachment-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) auto;
}

.dvfs-document-attachment-row {
  grid-template-columns: minmax(210px, 1fr) minmax(220px, 0.8fr) auto;
}

.dvfs-attachment-row a {
  color: #2271b1;
  font-weight: 700;
  text-decoration: none;
}

.dvfs-attachment-save-form {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(180px, 1fr) auto;
  margin: 0;
}

.dvfs-attachment-delete-form {
  margin: 0;
}

.dvfs-attachment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.dvfs-document-attachment-row .dvfs-attachment-save-form {
  display: contents;
}

.dvfs-document-attachment-row .dvfs-attachment-save-form > input[type="text"] {
  grid-column: 2 / -1;
  min-width: 0;
}

.dvfs-document-attachment-row .dvfs-attachment-actions {
  grid-column: 1 / 3;
  grid-row: 2;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.dvfs-document-attachment-row .dvfs-attachment-delete-form {
  grid-column: 3 / 4;
  grid-row: 2;
  justify-self: end;
}

.dvfs-document-attachment-row .button {
  white-space: nowrap;
}

.dvfs-note-head,
.dvfs-mail-item-head,
.dvfs-row-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.dvfs-note-head {
  margin-bottom: 8px;
}

.dvfs-note-card .dvfs-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dvfs-note-card .dvfs-form-actions .button-primary {
  flex: 1 1 240px;
}

.dvfs-row-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dvfs-row-actions form,
.dvfs-mail-item-head form,
.dvfs-mail-item-actions form {
  margin: 0;
}

.dvfs-mail-item-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.dvfs-danger-button {
  border-color: #b91f32 !important;
  color: #b91f32 !important;
}

.dvfs-success-button {
  background: var(--dvfs-green) !important;
  border-color: var(--dvfs-green) !important;
  color: #ffffff !important;
}

.dvfs-user-checks {
  border: 1px solid var(--dvfs-line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px;
}

.dvfs-user-checks legend {
  color: var(--dvfs-muted);
  font-weight: 800;
  padding: 0 5px;
}

.dvfs-user-checks label {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.dvfs-user-checks input {
  min-height: auto;
  width: auto;
}

.dvfs-mail-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.dvfs-mail-modes a {
  background: #ffffff;
  border: 1px solid var(--dvfs-line);
  border-radius: 6px;
  color: var(--dvfs-ink);
  font-weight: 700;
  padding: 9px 13px;
  text-decoration: none;
}

.dvfs-mail-modes a.is-active {
  background: var(--dvfs-teal);
  border-color: var(--dvfs-teal);
  color: #ffffff;
}

.dvfs-mail-compose {
  max-width: 680px;
}

.dvfs-mail-submit-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.dvfs-mail-submit-row .button {
  justify-content: center;
  width: 100%;
}

.dvfs-draft-attachments {
  background: #f9fafb;
  border: 1px solid var(--dvfs-line);
  border-radius: 6px;
  margin: 10px 0 12px;
  padding: 10px 12px;
}

.dvfs-draft-attachments ul {
  margin: 6px 0 0 18px;
}

.dvfs-settings-collapsible {
  overflow: hidden;
  padding: 0;
}

.dvfs-settings-collapsible summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 18px;
  font-weight: 800;
  justify-content: space-between;
  list-style: none;
  padding: 16px;
}

.dvfs-settings-collapsible summary::-webkit-details-marker {
  display: none;
}

.dvfs-summary-state {
  border: 1px solid var(--dvfs-line);
  border-radius: 6px;
  color: var(--dvfs-blue);
  font-size: 14px;
  padding: 6px 10px;
}

.dvfs-summary-state .is-open,
.dvfs-settings-collapsible[open] .dvfs-summary-state .is-closed {
  display: none;
}

.dvfs-settings-collapsible[open] .dvfs-summary-state .is-open {
  display: inline;
}

.dvfs-collapsible-body {
  border-top: 1px solid var(--dvfs-line);
  padding: 16px;
}

.dvfs-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.dvfs-form-grid .dvfs-span,
.dvfs-form-grid .dvfs-form-section,
.dvfs-form-grid button,
.dvfs-settings p {
  grid-column: 1 / -1;
}

.dvfs-form-grid .dvfs-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dvfs-form-grid .dvfs-form-actions button {
  grid-column: auto;
}

.dvfs-template-editor-field {
  color: var(--dvfs-muted);
  display: grid;
  font-weight: 600;
  gap: 6px;
}

.dvfs-template-editor-field .dvfs-rich-note {
  color: var(--dvfs-ink);
  font-weight: 400;
}

.dvfs-form-section {
  border-bottom: 1px solid var(--dvfs-line);
  font-size: 15px;
  margin: 6px 0 0;
  padding-bottom: 8px;
}

.dvfs-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.dvfs-list-item {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px;
}

.dvfs-list-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.dvfs-list-item p {
  margin-bottom: 0;
}

.dvfs-task-item-open {
  border-left: 5px solid #f7d96f;
}

.dvfs-task-item-due {
  border-left: 5px solid #e2574c;
}

.dvfs-task-item-done {
  border-left: 5px solid #35a66a;
}

.dvfs-filter {
  display: flex;
  gap: 6px;
}

.dvfs-task-filter {
  border: 0 !important;
  color: #1c2328 !important;
  font-weight: 800;
}

.dvfs-task-filter-open {
  background: #f7d96f !important;
}

.dvfs-task-filter-due {
  background: #e2574c !important;
  color: #ffffff !important;
}

.dvfs-task-filter-done {
  background: #35a66a !important;
  color: #ffffff !important;
}

.dvfs-task-filter.is-active {
  box-shadow: 0 0 0 3px rgba(28, 35, 40, 0.16);
}

.dvfs-group-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  margin-top: 14px;
}

.dvfs-group-grid.is-archive-open {
  grid-template-columns: minmax(280px, 420px) minmax(280px, 420px);
}

.dvfs-group-column {
  border: 2px dashed transparent;
  border-radius: 8px;
  min-height: 180px;
  padding: 0;
}

.dvfs-group-grid.is-members-open > .dvfs-group-column {
  align-self: start;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  position: sticky;
  scrollbar-gutter: stable;
  top: 12px;
}

.dvfs-group-column h3,
.dvfs-group-column-head h3 {
  margin-top: 0;
}

.dvfs-group-column-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.dvfs-group-search-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  max-width: 780px;
}

.dvfs-group-search-form label > span {
  color: var(--dvfs-muted);
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}

.dvfs-group-search-field {
  position: relative;
}

.dvfs-group-members {
  min-width: 0;
}

.dvfs-group-recipient-tools {
  align-items: center;
  border-bottom: 1px solid #eef1f0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 12px 16px;
}

.dvfs-group-recipient-tools span {
  color: var(--dvfs-muted);
  font-weight: 800;
}

.dvfs-group-column.is-drag-over {
  background: #eef6ff;
  border-color: #2271b1;
}

.dvfs-group-table tr[draggable="true"] {
  cursor: grab;
}

.dvfs-group-table tr.is-selected td {
  background: #eef6ff;
}

.dvfs-group-table tr.is-dragging {
  opacity: 0.45;
}

.dvfs-group-table tr.is-group-assignment-target td {
  background: #e9f7ef;
  box-shadow: inset 0 2px #17845f, inset 0 -2px #17845f;
}

.dvfs-group-table tr.is-group-assignment-target td:first-child {
  box-shadow: inset 2px 0 #17845f, inset 0 2px #17845f, inset 0 -2px #17845f;
}

.dvfs-group-table tr.is-group-assignment-target td:last-child {
  box-shadow: inset -2px 0 #17845f, inset 0 2px #17845f, inset 0 -2px #17845f;
}

.dvfs-group-members.is-group-membership-target {
  background: #f2fbf6;
  box-shadow: inset 0 0 0 3px #17845f;
}

.dvfs-group-select-col {
  width: 42px;
}

.dvfs-group-select-col input {
  min-height: auto;
  width: auto;
}

.dvfs-group-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dvfs-group-actions form {
  margin: 0;
}

.dvfs-group-actions .button {
  white-space: nowrap;
}

.dvfs-group-table {
  border-collapse: collapse;
  width: 100%;
}

.dvfs-group-table th,
.dvfs-group-table td {
  border-top: 1px solid #eef1f0;
  padding: 12px 14px;
  text-align: left;
}

.dvfs-group-table th {
  background: #f9fafb;
  color: var(--dvfs-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.dvfs-group-table tr.is-active td {
  background: #eef6ff;
}

.dvfs-group-table a {
  color: #2271b1;
  font-weight: 800;
  text-decoration: none;
}

.dvfs-template-settings {
  margin-top: 16px;
}

.dvfs-group-mail {
  margin-top: 16px;
}

.dvfs-group-mail p {
  color: var(--dvfs-muted);
  font-weight: 700;
  margin: 0 0 12px;
}

.dvfs-mail-diagnostics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.dvfs-mail-diagnostics span {
  background: #eef6ff;
  border: 1px solid #c9ddff;
  border-radius: 999px;
  color: #1c2328;
  font-weight: 700;
  padding: 7px 10px;
}

.dvfs-mail-diagnostics .is-ok {
  background: #e9f8ef;
  border-color: #b9e5c8;
}

.dvfs-mail-diagnostics .is-error {
  background: #fff0f0;
  border-color: #f3b4b4;
  color: #b91f32;
}

.dvfs-mail-sync {
  border-top: 0;
  justify-content: flex-start;
  margin: 0 0 14px;
  padding-top: 0;
}

.dvfs-public-validation-message {
  background: #fff1f1;
  border: 1px solid #e4a5aa;
  border-radius: 6px;
  color: #a51f2d;
  flex: 1 1 360px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 auto 0 0;
  padding: 11px 13px;
}

.dvfs-public-submit {
  flex-wrap: wrap;
}

.dvfs-public-validation-message[hidden] {
  display: none !important;
}

.dvfs-public-form.has-validation-errors input:not([type="checkbox"]):not([type="hidden"]):invalid,
.dvfs-public-form.has-validation-errors select:invalid,
.dvfs-public-form.has-validation-errors textarea:invalid {
  border-color: #c62838 !important;
  box-shadow: 0 0 0 2px rgba(198, 40, 56, 0.2) !important;
  outline: 0;
}

.dvfs-public-form.has-validation-errors input[type="checkbox"]:invalid {
  outline: 2px solid #c62838;
  outline-offset: 3px;
}

.dvfs-public-discovery.is-invalid {
  border-color: #c62838 !important;
  box-shadow: 0 0 0 2px rgba(198, 40, 56, 0.14);
}

.dvfs-public-success-shell {
  align-items: center;
  background: #f6f7f4;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.dvfs-public-success-card {
  background: #ffffff;
  border: 1px solid #d7dfdf;
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(15, 45, 65, 0.12);
  overflow: hidden;
  width: min(880px, 100%);
}

.dvfs-public-success-brand {
  align-items: center;
  background: #0f4a7f;
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 30px 34px;
}

.dvfs-public-success-logo {
  display: block;
  height: auto;
  max-width: 270px;
  width: 38%;
}

.dvfs-public-success-slogan {
  color: #ffffff;
  font-family: "Brush Script MT", "Segoe Script", cursive !important;
  font-size: 28px;
  font-style: italic;
  line-height: 1.35;
  margin: 0;
  text-align: center;
}

.dvfs-public-success-card .dvfs-public-notice {
  border-radius: 0;
  color: #0f4a7f !important;
  line-height: 1.5;
  padding: 28px 32px;
  text-align: center;
}

.dvfs-mail-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.dvfs-mail-toolbar form,
.dvfs-mail-toolbar .dvfs-mail-sync {
  margin: 0;
  padding: 0;
}

.dvfs-calendar-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  margin: 14px 0 22px;
}

.dvfs-day {
  min-height: 118px;
  padding: 10px;
}

.dvfs-day time {
  color: var(--dvfs-red);
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}

.dvfs-day span,
.dvfs-day .dvfs-calendar-event {
  background: var(--dvfs-sky);
  border-left: 3px solid var(--dvfs-teal);
  border-radius: 4px;
  color: var(--dvfs-ink);
  display: block;
  font-weight: 700;
  margin-top: 6px;
  padding: 5px 6px;
  text-decoration: none;
}

.dvfs-narrow {
  max-width: 780px;
}

.dvfs-inline-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
}

.dvfs-settings {
  max-width: 900px;
}

.dvfs-sync-form {
  align-items: center;
  border-top: 1px solid var(--dvfs-line);
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
}

.dvfs-import-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin: 12px 0 18px;
}

.dvfs-import-metrics div {
  background: #f9fafb;
  border: 1px solid var(--dvfs-line);
  border-radius: 6px;
  padding: 10px 12px;
}

.dvfs-import-metrics dt {
  color: var(--dvfs-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.dvfs-import-metrics dd {
  color: var(--dvfs-ink);
  font-size: 20px;
  font-weight: 800;
  margin: 4px 0 0;
}

.dvfs-import-list {
  margin: 8px 0 18px 20px;
}

.dvfs-import-step-form {
  align-items: center;
  border-top: 1px solid var(--dvfs-line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
}

.dvfs-import-step-form label {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.dvfs-import-step-form input[type="checkbox"] {
  min-height: auto;
  width: auto;
}

.dvfs-import-preview input[type="checkbox"] {
  min-height: auto;
  width: auto;
}

.dvfs-import-preview form label {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 9px;
}

.dvfs-empty,
.dvfs-empty-state {
  color: var(--dvfs-muted);
}

.dvfs-empty-state {
  align-items: center;
  border: 1px dashed var(--dvfs-line);
  border-radius: 8px;
  display: grid;
  min-height: 320px;
  padding: 24px;
  text-align: center;
}

@media (max-width: 1200px) {
  .dvfs-panel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .dvfs-contact-layout,
  .dvfs-record {
    grid-template-columns: 1fr;
  }

  .dvfs-contact-rail {
    max-height: none;
  }
}

@media (max-width: 782px) {
  .dvfs-crm-app {
    margin-right: 10px;
  }

  .dvfs-hero,
  .dvfs-hero-actions,
  .dvfs-list-item,
  .dvfs-mail-item-head,
  .dvfs-search-form,
  .dvfs-detail-actions,
  .dvfs-mail-toolbar,
  .dvfs-sync-form {
    align-items: stretch;
    flex-direction: column;
  }

  .dvfs-tabs,
  .dvfs-subtabs,
  .dvfs-filter,
  .dvfs-mail-modes,
  .dvfs-detail-toolbar {
    flex-wrap: wrap;
  }

  .dvfs-public-success-brand {
    align-items: center;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
  }

  .dvfs-public-success-logo {
    width: min(250px, 80%);
  }

  .dvfs-public-success-slogan {
    font-size: 22px;
    line-height: 1.3;
  }

  .dvfs-public-success-card .dvfs-public-notice {
    padding: 22px 18px;
  }

  .dvfs-two,
  .dvfs-form-grid,
  .dvfs-inline-fields,
  .dvfs-inline-form,
  .dvfs-group-search-form,
  .dvfs-group-grid,
  .dvfs-mail-submit-row,
  .dvfs-attachment-row,
  .dvfs-unassigned-mail-row,
  .dvfs-unassigned-mail-actions {
    grid-template-columns: 1fr;
  }

  .dvfs-group-grid.is-members-open > .dvfs-group-column {
    max-height: none;
    overflow: visible;
    position: static;
  }

  .dvfs-attachment-save-form {
    grid-template-columns: 1fr;
  }

  .dvfs-document-attachment-row .dvfs-attachment-save-form {
    display: grid;
  }

  .dvfs-document-attachment-row .dvfs-attachment-save-form > input[type="text"],
  .dvfs-document-attachment-row .dvfs-attachment-actions,
  .dvfs-document-attachment-row .dvfs-attachment-delete-form {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
  }

  .dvfs-document-attachment-row .dvfs-attachment-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .dvfs-form-grid button {
    width: 100%;
  }

  .dvfs-login-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .dvfs-email-editor {
    min-height: 240px;
  }

  .dvfs-manual-shell {
    padding: 14px;
  }

  .dvfs-manual-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .dvfs-manual-header h1 {
    font-size: 24px;
  }

  .dvfs-manual-grid {
    grid-template-columns: 1fr;
  }
}
