/* Client dossier: two equal actions, retaining the existing status dialog. */
html body #root .client-fixed-dossier-sidebar.client-status-split-ready > .client-status-original { display: none !important; }
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add-head {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 !important;
  align-items: stretch !important;
}
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add {
  background: #fff !important;
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 1px solid #d9e3ea !important;
  border-radius: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add-head > :is(.crm-workpoint-action,.client-status-action) {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-width: 0 !important;
  width: 100% !important;
  min-height: 72px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 5px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #20242a !important;
  box-shadow: none !important;
  font-family: Montserrat, "Segoe UI", sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add-head > .crm-workpoint-action { border-right: 1px solid #d9e3ea !important; }
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add-head > :is(.crm-workpoint-action,.client-status-action) svg { flex: 0 0 auto; width: 18px; height: 18px; color: #20242a !important; }
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add-head .client-status-icon { position: relative; display: inline-flex; width: 18px; height: 18px; flex: 0 0 18px; }
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add-head .client-status-dot { position: absolute; top: -2px; right: -3px; width: 7px; height: 7px; border-radius: 50%; background: #12a89c; border: 1px solid #fff; box-sizing: content-box; }
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add-head .client-status-action:not([data-status="activ"]) .client-status-dot { background: #f59e0b; }
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add-head > :is(.crm-workpoint-action,.client-status-action) span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add-head > .client-status-action small { font-size: 9px; line-height: 1.1; color: #b45309; }
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add-head > .client-status-action small[hidden] { display: none; }
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add-head > :is(.crm-workpoint-action,.client-status-action):is(:hover,:focus-visible) {
  outline: none !important;
  background: #fff !important;
  color: #20242a !important;
  transform: translateY(-2px) scale(1.025) !important;
  box-shadow: 0 16px 28px #3341553d !important;
  z-index: 2;
}
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add-head > :is(.crm-workpoint-action,.client-status-action):active { transform: translateY(1px) scale(.985) !important; }
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add-head > .client-status-action:hover small { color: #b45309; }
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add:not(:has(.crm-workpoint-add-form)):hover .crm-workpoint-add-head > .crm-workpoint-action:not(:hover):not(:focus-visible) { color: #20242a !important; }
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add-form { padding: 10px 12px 12px !important; }
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile-actions .client-sidebar-neutral-action { color: #20242a !important; }
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile-actions .client-sidebar-neutral-action svg { color: #20242a !important; }
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile-actions .client-sidebar-neutral-action:is(:hover,:focus-visible) { background: #fff !important; color: #20242a !important; box-shadow: 0 16px 28px #3341553d !important; transform: translateY(-2px) scale(1.025) !important; z-index: 2; }
/* Four client actions: open joins at the centre. */
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile-actions {
  position: relative !important;
  isolation: isolate !important;
  border-bottom: 0 !important;
}
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile-actions::before,
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add-head::before {
  content: "" !important;
  position: absolute !important;
  z-index: 0 !important;
  left: 50% !important;
  top: 9px !important;
  bottom: 9px !important;
  width: .75px !important;
  background: #d7e0e9 !important;
  pointer-events: none !important;
}
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile-actions::after {
  content: "" !important;
  position: absolute !important;
  z-index: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: .75px !important;
  background: linear-gradient(to right,
    #d7e0e9 0 calc(50% - 28px),
    transparent calc(50% - 28px) calc(50% + 28px),
    #d7e0e9 calc(50% + 28px) 100%) !important;
  pointer-events: none !important;
}
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile-actions > .client-sidebar-neutral-action {
  border-right: 0 !important;
}
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add-head {
  position: relative !important;
  isolation: isolate !important;
}
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add-head > .crm-workpoint-action {
  border-right: 0 !important;
}

/* The raised action covers the divider beneath it, not the other way around. */
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile-actions > .client-sidebar-neutral-action:is(:hover,:focus-visible,:active),
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add-head > :is(.crm-workpoint-action,.client-status-action):is(:hover,:focus-visible,:active) {
  background: #fff !important;
  transform: translateY(-2px) scale(1.025) !important;
  box-shadow: 0 16px 28px #3341553d !important;
  z-index: 2 !important;
}
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile-actions > .client-sidebar-neutral-action:focus-visible,
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add-head > :is(.crm-workpoint-action,.client-status-action):focus-visible {
  outline: 2px solid #12a89c !important;
  outline-offset: -2px !important;
}
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile-actions > .client-sidebar-neutral-action:active,
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add-head > :is(.crm-workpoint-action,.client-status-action):active {
  transform: none !important;
  box-shadow: none !important;
}

/* Buttons paint above the faint dividers. */
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile-actions > .client-sidebar-neutral-action,
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add-head > :is(.crm-workpoint-action,.client-status-action) {
  position: relative !important;
  z-index: 1 !important;
  background: transparent !important;
}
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile-actions > .client-sidebar-neutral-action::before,
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add-head > :is(.crm-workpoint-action,.client-status-action)::before {
  content: none !important;
  display: none !important;
}

/* Match the inspector action tiles: raised shadow without resizing the grid. */
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile-actions > .client-sidebar-neutral-action:is(:hover,:focus,:active),
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add-head > :is(.crm-workpoint-action,.client-status-action):is(:hover,:focus,:active) {
  outline: none !important;
  transform: none !important;
  background: #fff !important;
  box-shadow: 0 12px 24px #0f172a21 !important;
  z-index: 2 !important;
}
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile-actions > .client-sidebar-neutral-action:is(:hover,:focus,:active)::before,
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add-head > :is(.crm-workpoint-action,.client-status-action):is(:hover,:focus,:active)::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  width: 3px !important;
  height: 32px !important;
  border-radius: 2px !important;
  background: #12a89c !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
}

/* Keep all four company actions in one flush 2-by-2 grid, like the inspector. */
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile-actions {
  padding: 0 !important;
  border-bottom: 0 !important;
}
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add {
  margin-top: -7px !important; /* cancel the profile grid's inter-row gap */
  border-bottom: 0 !important;
}
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile-actions::before,
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile-actions::after,
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add-head::before {
  content: none !important;
  display: none !important;
}
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile-actions > .client-sidebar-neutral-action,
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add-head > :is(.crm-workpoint-action,.client-status-action) {
  box-sizing: border-box !important;
  height: 96px !important;
  min-height: 96px !important;
  border: 0 !important;
  border-bottom: 1px solid #d7e2df !important;
  border-radius: 0 !important;
}
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile-actions > .client-sidebar-neutral-action:first-child,
html body #root .client-fixed-dossier-sidebar .client-sidebar-profile .crm-workpoint-add-head > .crm-workpoint-action {
  border-right: 1px solid #d7e2df !important;
}
