/* CRM appearance v1. Scoped overrides for the installed templates. */
.crm-theme-portal, .crm-theme-public, .crm-theme-admin {
  --crm-text: #172b3a; --crm-muted: #536777; --crm-border: #d9e1e7;
  font-size: var(--crm-font-size, 16px); line-height: 1.5;
}
.crm-theme-portal, .crm-theme-public {
  --primary: var(--crm-primary); --primary-hover: var(--crm-accent);
  --text: var(--crm-text); --muted: var(--crm-muted); --border: var(--crm-border);
  --bg: #f4f7f9; --card: #fff; background: var(--bg); color: var(--text);
}
.crm-brand-logo {
  display: block; flex: 0 0 auto; object-fit: contain; width: auto;
  height: var(--crm-logo-height, 28px) !important; max-width: 180px;
  border-radius: 5px; background: #fff; padding: 3px; box-sizing: content-box;
}
.crm-theme-portal .site-header, .crm-theme-public > header,
.crm-theme-portal > header, .crm-theme-admin #header,
.crm-theme-admin .custom-login-header {
  background: var(--crm-primary) !important; color: var(--crm-primary-ink) !important;
}
.crm-theme-admin #header a, .crm-theme-admin #header button,
.crm-theme-admin #header .custom-admin-title,
.crm-theme-admin .custom-login-header h1,
.crm-theme-portal > header h1, .crm-theme-public > header h1,
.crm-theme-portal .site-brand-kicker {
  color: var(--crm-primary-ink) !important;
}
/* Header links inherit the brand ink without overriding active/hover components. */
:where(.crm-theme-portal, .crm-theme-public) > header a {
  color: var(--crm-primary-ink);
}
.crm-theme-portal > header, .crm-theme-public > header {
  box-sizing: border-box; flex-wrap: wrap; gap: 18px;
}
.crm-theme-portal header nav { flex-wrap: wrap; }
.crm-theme-portal .site-brand-main, .crm-theme-admin .custom-admin-branding,
.crm-theme-public .crm-public-brand { display: flex; gap: 12px; align-items: center; min-width: 0; }
.crm-theme-portal .site-brand { min-width: 0; }
.crm-theme-admin .custom-admin-title { white-space: normal !important; overflow-wrap: anywhere; max-width: 44ch; }
.crm-theme-public .crm-public-brand { overflow-wrap: anywhere; }
.crm-theme-portal > main {
  box-sizing: border-box; width: 100%; min-width: 0; max-width: var(--crm-page-width) !important;
  margin-left: auto; margin-right: auto; padding: 28px clamp(16px, 3vw, 36px);
}
.crm-theme-portal .layout, .crm-theme-portal .sections, .crm-theme-portal .controls-grid,
.crm-theme-portal .stats, .crm-theme-portal .grid-kpi { gap: var(--crm-gap); min-width: 0; }
.crm-theme-portal :is(.card,.section,.stat-card,.kpi,.summary-card) { min-width: 0; }
.crm-theme-portal .card-header, .crm-theme-portal .card-body { padding: var(--crm-card-space); }
.crm-theme-portal .stat-card, .crm-theme-portal .kpi { padding: var(--crm-card-space); }
.crm-theme-portal :is(.stat-label,.kpi .label,.muted,.small) { font-size: max(13px, .875em); }
.crm-theme-portal .stats, .crm-theme-portal .grid-kpi {
  grid-template-columns: var(--crm-dashboard-columns) !important;
}
/* Text links use the theme; buttons, badges and cards retain their own contrast. */
:where(.crm-theme-portal, .crm-theme-public) a { color: var(--crm-link); }
.crm-theme-portal .button-primary, .crm-theme-public .button, .crm-theme-public button:not(.secondary):not(.retry),
.crm-theme-admin .button, .crm-theme-admin input[type=submit],
.crm-theme-admin .submit-row input, .crm-theme-admin .object-tools a,
.crm-theme-admin #crm-settings .crm-buttons button:not(.secondary) {
  background: var(--crm-primary) !important; color: var(--crm-primary-ink) !important;
  border-color: var(--crm-primary) !important;
}
.crm-theme-portal .button-primary:hover, .crm-theme-public .button:hover, .crm-theme-public button:not(.secondary):not(.retry):hover,
.crm-theme-admin .button:hover, .crm-theme-admin input[type=submit]:hover,
.crm-theme-admin .object-tools a:hover {
  background: var(--crm-accent) !important; color: var(--crm-accent-ink) !important;
  border-color: var(--crm-accent) !important;
}
.crm-theme-admin .button.deletelink, .crm-theme-admin .submit-row .deletelink {
  background: var(--delete-button-bg, #ba2121) !important; color: #fff !important;
}
.crm-theme-portal :is(input,select,textarea), .crm-theme-public :is(input,select,textarea) {
  font: inherit; box-sizing: border-box; max-width: 100%;
}
.crm-theme-portal :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]),
.crm-theme-public :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]) {
  min-height: 42px; background: #fff; color: var(--crm-text); border-color: #97a8b5;
}
.crm-theme-portal input[type=checkbox], .crm-theme-portal input[type=radio],
.crm-theme-public input[type=checkbox], .crm-theme-public input[type=radio] {
  width: 18px; height: 18px; min-width: 18px; padding: 0; flex-shrink: 0;
  vertical-align: middle; accent-color: var(--crm-primary);
}
.crm-theme-portal :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible,
.crm-theme-public :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible,
.crm-theme-admin :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible {
  outline: 3px solid var(--crm-link) !important; outline-offset: 3px;
  box-shadow: 0 0 0 2px #fff !important;
}
.crm-theme-portal td, .crm-theme-portal th {
  padding-top: var(--crm-row-space); padding-bottom: var(--crm-row-space);
  vertical-align: top; font-size: inherit;
}
.crm-table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; }
.crm-table-scroll > table { width: 100%; }
.crm-theme-portal .card > table { display: table; }
.crm-theme-portal .card:has(> table), .crm-theme-portal .section:has(> table) { overflow-x: auto; }
.crm-theme-admin { --primary: var(--crm-primary); --secondary: var(--crm-primary); --accent: var(--crm-primary-ink); }
.crm-theme-admin .breadcrumbs {
  background: var(--crm-accent) !important; color: var(--crm-accent-ink) !important;
}
.crm-theme-admin .breadcrumbs a { color: var(--crm-accent-ink) !important; }
.crm-theme-admin .module h2, .crm-theme-admin .module caption,
.crm-theme-admin .inline-group h2 {
  background: var(--crm-primary) !important; color: var(--crm-primary-ink) !important;
}
.crm-theme-admin .module caption a { color: var(--crm-primary-ink) !important; }
.crm-theme-admin #content { box-sizing: border-box; width: 100%; min-width: 0; max-width: var(--crm-page-width); margin-inline: auto; }
.crm-theme-admin #content-main, .crm-theme-admin .main > .content { min-width: 0; }
.crm-theme-admin #crm-settings { max-width: none; }
.crm-theme-admin #result_list th, .crm-theme-admin #result_list td {
  padding-top: var(--crm-row-space) !important; padding-bottom: var(--crm-row-space) !important;
  font-size: var(--crm-font-size);
}
.crm-theme-admin #content :is(input,select,textarea):not([type=checkbox]):not([type=radio]):not([type=hidden]) {
  box-sizing: border-box; max-width: 100%; font-size: var(--crm-font-size);
}
.crm-theme-admin select:not([multiple]) { height: auto; min-height: 36px; padding-block: 5px; }
.crm-theme-admin .custom-login-card { background: var(--body-bg); color: var(--body-fg); }
.crm-theme-admin .custom-login-body input { background: var(--body-bg); color: var(--body-fg); }
.crm-theme-admin #content .help, .crm-theme-admin #content .crm-help { font-size: max(13px, .875em); }
.crm-theme-admin .crm-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0 0 16px; border-bottom: 1px solid var(--hairline-color); }
.crm-theme-admin .crm-tabs a { display: inline-flex; align-items: center; padding: 8px 12px; border: 1px solid var(--hairline-color); border-radius: 6px; text-decoration: none; line-height: 1.4; }
.crm-theme-admin .crm-tabs a[aria-current=page] { background: var(--crm-primary); color: var(--crm-primary-ink); border-color: var(--crm-primary); }
.crm-theme-public { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.crm-theme-public .brand { color: var(--crm-link); }
.crm-theme-public .wrap, .crm-theme-public main { box-sizing: border-box; }
.crm-theme-public .crm-public-brand { max-width: 760px; margin-inline: auto; }
.crm-theme-public .crm-public-brand .crm-brand-logo { max-width: 140px; }
html[data-theme=light] .crm-theme-admin { --link-fg: var(--crm-link); --link-hover-color: var(--crm-link); }
html[data-theme=dark] .crm-theme-admin { --link-fg: #9bcdff; --link-hover-color: #c6e2ff; }
@media (prefers-color-scheme: light) {
  html[data-theme=auto] .crm-theme-admin { --link-fg: var(--crm-link); --link-hover-color: var(--crm-link); }
}
@media (prefers-color-scheme: dark) {
  html[data-theme=auto] .crm-theme-admin { --link-fg: #9bcdff; --link-hover-color: #c6e2ff; }
}
@media (max-width: 1024px) {
  .crm-theme-portal .stats, .crm-theme-portal .grid-kpi { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .crm-theme-portal .operational-status-panel { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .crm-theme-portal .operational-status-main { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .crm-theme-portal .site-header, .crm-theme-portal > header, .crm-theme-public > header { padding: 16px; }
  .crm-theme-portal .site-brand-main h1 { font-size: 20px; overflow-wrap: anywhere; }
  .crm-theme-portal .site-nav { gap: 7px; width: 100%; }
  .crm-theme-portal .site-nav .nav-link { padding: 9px 11px; }
  .crm-theme-portal :is(input,select,textarea), .crm-theme-public :is(input,select,textarea) { font-size: max(16px, var(--crm-font-size)); }
  .crm-theme-portal :is(.toolbar,.filters), .crm-theme-portal .layout, .crm-theme-portal .sections,
  .crm-theme-portal .controls-grid { grid-template-columns: minmax(0,1fr) !important; }
  .crm-theme-portal .toolbar > *, .crm-theme-portal .filters > * { min-width: 0; max-width: 100%; }
  .crm-theme-admin #content { padding: 20px 16px; }
  .crm-theme-admin .custom-admin-title { font-size: 17px !important; overflow-wrap: anywhere; }
  .crm-theme-admin .custom-admin-branding { flex-wrap: wrap; }
  .crm-theme-admin .crm-layout { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 520px) {
  .crm-theme-portal .stats, .crm-theme-portal .grid-kpi, .crm-theme-portal .operational-status-panel { grid-template-columns: minmax(0,1fr) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .crm-theme-portal *, .crm-theme-public *, .crm-theme-admin * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@media print {
  .crm-theme-portal, .crm-theme-admin, .crm-theme-public { --crm-font-size: 11pt; --crm-page-width: none; }
  .crm-table-scroll { overflow: visible; }
}

/* Admin layout fix1: contain the app list and recent actions within the chosen
   width. Django's negative-margin sidebar assumes a reserved outer margin;
   that assumption does not hold for the configurable full-width container. */
.crm-theme-admin.dashboard #content.colMS {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: var(--crm-gap, 22px);
  align-items: start;
}
.crm-theme-admin.dashboard #content.colMS:has(> #content-related) {
  grid-template-columns: minmax(0, 1fr) 260px;
}
.crm-theme-admin.dashboard #content.colMS > * {
  grid-column: 1 / -1;
  min-width: 0;
}
.crm-theme-admin.dashboard #content.colMS > #content-main {
  grid-column: 1;
  float: none;
  width: 100%;
}
.crm-theme-admin.dashboard #content.colMS > #content-related {
  grid-column: 2;
  float: none;
  width: auto;
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
}
.crm-theme-admin.dashboard #content.colMS > br.clear { display: none; }

/* The density preference also applies to the admin home and navigation.
   Older admin styles fixed these cells to 9px regardless of the preference. */
.crm-theme-admin #content-main.app-list .module table :is(th, td),
.crm-theme-admin #nav-sidebar .module table :is(th, td) {
  padding-top: var(--crm-row-space) !important;
  padding-bottom: var(--crm-row-space) !important;
  font-size: var(--crm-font-size);
  line-height: 1.4;
}
.crm-theme-admin #content-main.app-list .module table td a,
.crm-theme-admin #nav-sidebar .module table td a { font-size: inherit; }

@media (max-width: 1024px) {
  .crm-theme-admin.dashboard #content.colMS:has(> #content-related) {
    grid-template-columns: minmax(0, 1fr);
  }
  .crm-theme-admin.dashboard #content.colMS > #content-related {
    grid-column: 1;
    margin-top: 20px;
  }
}
@media print {
  .crm-theme-admin.dashboard #content.colMS:has(> #content-related) {
    grid-template-columns: minmax(0, 1fr);
  }
  .crm-theme-admin.dashboard #content.colMS > #content-related { grid-column: 1; }
}

/* Admin home v1. The native app tables, links and permission checks stay intact.
   The recent-actions marker limits the redesign to the admin home page. */
.crm-theme-admin.dashboard:has(#recent-actions-module) #content-start {
  background-color: var(--darkened-bg, #f7f8fa);
}
.crm-theme-admin.dashboard:has(#recent-actions-module) #content > h1 {
  margin: 4px 0 24px;
  font-size: clamp(22px, 1.6vw, 28px);
  line-height: 1.3;
  font-weight: 650;
  color: var(--body-fg);
}
.crm-theme-admin.dashboard:has(#recent-actions-module) #content-main.app-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: var(--crm-gap);
  align-items: start;
}
.crm-theme-admin.dashboard:has(#recent-actions-module) #content-main.app-list > .module {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--hairline-color, #dde3e8);
  border-top: 3px solid var(--crm-primary);
  border-radius: 10px;
  background-color: var(--body-bg, #fff);
  box-shadow: 0 2px 8px rgb(0 0 0 / 4%);
}
.crm-theme-admin.dashboard:has(#recent-actions-module) #content-main.app-list > .module table {
  width: 100%;
  table-layout: auto;
}
.crm-theme-admin.dashboard:has(#recent-actions-module) #content-main.app-list > .module caption {
  padding: 14px 12px;
  text-align: left;
  text-transform: none;
  border-bottom: 1px solid var(--hairline-color);
  background: var(--body-bg) !important;
  color: var(--body-fg) !important;
}
.crm-theme-admin.dashboard:has(#recent-actions-module) #content-main.app-list > .module caption a {
  display: block;
  font-size: max(14px, var(--crm-font-size));
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0;
  text-decoration: none;
  color: var(--link-fg) !important;
  overflow-wrap: anywhere;
}
.crm-theme-admin.dashboard:has(#recent-actions-module) #content-main.app-list > .module caption a:hover {
  text-decoration: underline;
}
.crm-theme-admin.dashboard:has(#recent-actions-module) #content-main.app-list > .module tr {
  background-color: var(--body-bg);
}
.crm-theme-admin.dashboard:has(#recent-actions-module) #content-main.app-list > .module tr:hover,
.crm-theme-admin.dashboard:has(#recent-actions-module) #content-main.app-list > .module tr:focus-within {
  background-color: var(--darkened-bg);
}
.crm-theme-admin.dashboard:has(#recent-actions-module) #content-main.app-list > .module th,
.crm-theme-admin.dashboard:has(#recent-actions-module) #content-main.app-list > .module td {
  padding-left: 8px;
  padding-right: 8px;
  vertical-align: middle;
}
.crm-theme-admin.dashboard:has(#recent-actions-module) #content-main.app-list > .module th[scope=row] {
  padding-left: 12px;
  overflow-wrap: anywhere;
}
.crm-theme-admin.dashboard:has(#recent-actions-module) #content-main.app-list > .module td {
  width: 1%;
  padding-left: 2px;
  padding-right: 6px;
}
.crm-theme-admin.dashboard:has(#recent-actions-module) #content-main.app-list > .module th[scope=row] a {
  color: var(--link-fg);
  font-weight: 500;
  text-decoration: none;
}
.crm-theme-admin.dashboard:has(#recent-actions-module) #content-main.app-list > .module th[scope=row] a:hover {
  text-decoration: underline;
}
.crm-theme-admin.dashboard:has(#recent-actions-module) #content-main.app-list > .module td a:is(.addlink,.changelink,.viewlink) {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 28px;
  padding: 3px 7px 3px 23px;
  border: 1px solid var(--hairline-color);
  border-radius: 6px;
  background-color: var(--body-bg);
  background-position: 6px center;
  font-size: max(12px, calc(var(--crm-font-size) * .85));
  font-weight: 500;
  line-height: 1.3;
  color: var(--link-fg);
  text-decoration: none;
  white-space: nowrap;
}
.crm-theme-admin.dashboard:has(#recent-actions-module) #content-main.app-list > .module td a:is(.addlink,.changelink,.viewlink):hover {
  background-color: var(--darkened-bg);
  border-color: var(--link-fg);
  text-decoration: underline;
}
.crm-theme-admin.dashboard:has(#recent-actions-module) #content-main.app-list > .module tr:last-child > th,
.crm-theme-admin.dashboard:has(#recent-actions-module) #content-main.app-list > .module tr:last-child > td {
  border-bottom: 0;
}
.crm-theme-admin.dashboard:has(#recent-actions-module) #content-related {
  background: transparent;
}
.crm-theme-admin.dashboard:has(#recent-actions-module) #recent-actions-module {
  margin: 0;
  padding: 0;
  border: 1px solid var(--hairline-color);
  border-radius: 10px;
  background: var(--body-bg);
  box-shadow: 0 2px 8px rgb(0 0 0 / 4%);
  overflow: hidden;
}
.crm-theme-admin.dashboard:has(#recent-actions-module) #recent-actions-module > h2 {
  margin: 0;
  padding: 16px;
  border-bottom: 1px solid var(--hairline-color);
  background: var(--body-bg) !important;
  color: var(--body-fg) !important;
  font-size: max(14px, var(--crm-font-size));
  font-weight: 650;
  line-height: 1.4;
}
.crm-theme-admin.dashboard:has(#recent-actions-module) #recent-actions-module > h3 {
  margin: 0;
  padding: 12px 16px 4px;
  color: var(--body-quiet-color);
  font-size: max(12px, calc(var(--crm-font-size) * .85));
  font-weight: 400;
}
.crm-theme-admin.dashboard:has(#recent-actions-module) #recent-actions-module .actionlist {
  margin: 0;
  padding: 0 16px 8px;
}
.crm-theme-admin.dashboard:has(#recent-actions-module) #recent-actions-module .actionlist li {
  margin: 0;
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid var(--hairline-color);
  background-position: 0 13px;
  font-size: max(13px, calc(var(--crm-font-size) * .9));
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.crm-theme-admin.dashboard:has(#recent-actions-module) #recent-actions-module .actionlist li:last-child {
  border-bottom: 0;
}
.crm-theme-admin.dashboard:has(#recent-actions-module) #recent-actions-module .actionlist a {
  color: var(--link-fg);
}
@media print {
  .crm-theme-admin.dashboard:has(#recent-actions-module) #content-main.app-list {
    display: block;
  }
  .crm-theme-admin.dashboard:has(#recent-actions-module) #content-main.app-list > .module,
  .crm-theme-admin.dashboard:has(#recent-actions-module) #recent-actions-module {
    margin-bottom: 16px;
    break-inside: avoid;
    box-shadow: none;
  }
}

/* Admin home v2: presentation groups, at most four columns, native permissions. */
.crm-theme-admin.crm-admin-home-v2 #content.colMS:has(> #content-related) {
  grid-template-columns: minmax(0, 1fr) 300px;
}
.crm-theme-admin.crm-admin-home-v2 .crm-admin-home-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 4px 0 26px;
}
.crm-theme-admin.crm-admin-home-v2 .crm-admin-home-heading h1 {
  margin: 0 0 6px;
  font-size: clamp(22px, 1.6vw, 28px);
  line-height: 1.3;
  font-weight: 650;
  color: var(--body-fg);
}
.crm-theme-admin.crm-admin-home-v2 .crm-admin-home-heading p,
.crm-theme-admin.crm-admin-home-v2 .crm-admin-home-section-heading p {
  margin: 0;
  color: var(--body-quiet-color);
  font-size: max(12px, calc(var(--crm-font-size) * .9));
  line-height: 1.5;
}
.crm-theme-admin.crm-admin-home-v2 a.crm-admin-home-settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  box-sizing: border-box;
  padding: 8px 14px;
  border: 1px solid var(--crm-primary);
  border-radius: 7px;
  background: var(--crm-primary);
  color: var(--crm-primary-ink) !important;
  font-size: var(--crm-font-size);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.crm-theme-admin.crm-admin-home-v2 a.crm-admin-home-settings:hover {
  background: var(--crm-accent);
  border-color: var(--crm-accent);
  color: var(--crm-accent-ink) !important;
}
.crm-theme-admin.crm-admin-home-v2 .crm-admin-home-section {
  margin: 0 0 28px;
  min-width: 0;
}
.crm-theme-admin.crm-admin-home-v2 .crm-admin-home-section-heading {
  margin-bottom: 12px;
}
.crm-theme-admin.crm-admin-home-v2 .crm-admin-home-section-heading h2 {
  margin: 0 0 4px;
  padding: 0;
  color: var(--body-fg);
  background: transparent;
  font-size: max(17px, var(--crm-font-size));
  font-weight: 600;
  line-height: 1.4;
}
.crm-theme-admin.crm-admin-home-v2 #content-main .crm-admin-home-grid {
  display: grid;
  /* 350px minimum when space permits; one quarter of the track caps it at 4. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(350px, calc((100% - 3 * var(--crm-gap)) / 4))), 1fr));
  gap: var(--crm-gap);
  align-items: start;
}
.crm-theme-admin.crm-admin-home-v2 #content-main .crm-admin-home-grid .module table :is(th, td) {
  padding-top: var(--crm-row-space) !important;
  padding-bottom: var(--crm-row-space) !important;
  font-size: var(--crm-font-size);
  line-height: 1.4;
}
.crm-theme-admin.crm-admin-home-v2 #content-main .crm-admin-home-grid > .module {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--hairline-color, #dde3e8);
  border-top: 3px solid var(--crm-primary);
  border-radius: 10px;
  background-color: var(--body-bg, #fff);
  box-shadow: 0 2px 8px rgb(0 0 0 / 4%);
}
.crm-theme-admin.crm-admin-home-v2 #content-main .crm-admin-home-grid > .module table {
  width: 100%;
  table-layout: auto;
}
/* Admin titles fix1: category headers use the independent admin palette. */
.crm-theme-admin.crm-admin-home-v2 #content-main .crm-admin-home-grid > .module caption {
  padding: 14px 12px;
  text-align: left;
  text-transform: none;
  border-bottom: 1px solid var(--crm-primary);
  border-radius: 7px 7px 0 0;
  background: var(--crm-primary) !important;
  color: var(--crm-primary-ink) !important;
}
.crm-theme-admin.crm-admin-home-v2 #content-main .crm-admin-home-grid > .module caption a {
  display: block;
  font-size: max(14px, var(--crm-font-size));
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0;
  text-decoration: none;
  color: var(--crm-primary-ink) !important;
  overflow-wrap: anywhere;
}
.crm-theme-admin.crm-admin-home-v2 #content-main .crm-admin-home-grid > .module caption a:hover {
  text-decoration: underline;
}
.crm-theme-admin.crm-admin-home-v2 #content-main .crm-admin-home-grid > .module tr {
  background-color: var(--body-bg);
}
.crm-theme-admin.crm-admin-home-v2 #content-main .crm-admin-home-grid > .module tr:hover,
.crm-theme-admin.crm-admin-home-v2 #content-main .crm-admin-home-grid > .module tr:focus-within {
  background-color: var(--darkened-bg);
}
.crm-theme-admin.crm-admin-home-v2 #content-main .crm-admin-home-grid > .module th,
.crm-theme-admin.crm-admin-home-v2 #content-main .crm-admin-home-grid > .module td {
  padding-left: 8px;
  padding-right: 8px;
  vertical-align: middle;
}
.crm-theme-admin.crm-admin-home-v2 #content-main .crm-admin-home-grid > .module th[scope=row] {
  padding-left: 12px;
  overflow-wrap: anywhere;
}
.crm-theme-admin.crm-admin-home-v2 #content-main .crm-admin-home-grid > .module td {
  width: 1%;
  padding-left: 2px;
  padding-right: 6px;
}
.crm-theme-admin.crm-admin-home-v2 #content-main .crm-admin-home-grid > .module th[scope=row] a {
  color: var(--link-fg);
  font-weight: 500;
  text-decoration: none;
}
.crm-theme-admin.crm-admin-home-v2 #content-main .crm-admin-home-grid > .module th[scope=row] a:hover {
  text-decoration: underline;
}
.crm-theme-admin.crm-admin-home-v2 #content-main .crm-admin-home-grid > .module td a:is(.addlink,.changelink,.viewlink) {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 28px;
  padding: 3px 7px 3px 23px;
  border: 1px solid var(--hairline-color);
  border-radius: 6px;
  background-color: var(--body-bg);
  background-position: 6px center;
  font-size: max(12px, calc(var(--crm-font-size) * .85));
  font-weight: 500;
  line-height: 1.3;
  color: var(--link-fg);
  text-decoration: none;
  white-space: nowrap;
}
.crm-theme-admin.crm-admin-home-v2 #content-main .crm-admin-home-grid > .module td a:is(.addlink,.changelink,.viewlink):hover {
  background-color: var(--darkened-bg);
  border-color: var(--link-fg);
  text-decoration: underline;
}
.crm-theme-admin.crm-admin-home-v2 #content-main .crm-admin-home-grid > .module tr:last-child > th,
.crm-theme-admin.crm-admin-home-v2 #content-main .crm-admin-home-grid > .module tr:last-child > td {
  border-bottom: 0;
}

.crm-theme-admin.crm-admin-home-v2 #recent-actions-module .actionlist li {
  padding-top: 12px;
  padding-bottom: 12px;
  background-position: 0 15px;
}
@media (max-width: 1024px) {
  .crm-theme-admin.crm-admin-home-v2 #content.colMS:has(> #content-related) {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media print {
  .crm-theme-admin.crm-admin-home-v2 #content.colMS:has(> #content-related) {
    grid-template-columns: minmax(0, 1fr);
  }
  .crm-theme-admin.crm-admin-home-v2 #content-main .crm-admin-home-grid { display: block; }
  .crm-theme-admin.crm-admin-home-v2 #content-main .crm-admin-home-grid > .module {
    margin-bottom: 16px;
    break-inside: avoid;
    box-shadow: none;
  }
}
