/* ChatFox 2026-11-04: visual launch button + white-and-blue information modal.
   Style-only: keep existing click handlers, fields, API and data unchanged. */

/* Existing visual launch button is placed inside the Actions cell. */
#root [data-testid="profiles-table"] td:nth-child(2) .cf-profile-visual-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  flex:0 0 auto;
  width:auto;
  min-width:82px;
  height:28px;
  min-height:28px;
  padding:0 9px;
  margin:0;
  border:1px solid #f0b9c4;
  border-radius:7px;
  background:#fff0f2;
  color:#b74458;
  box-shadow:none;
  font:650 11px/1.1 Inter,system-ui,sans-serif;
  white-space:nowrap;
  cursor:pointer;
  transition:background .15s,border-color .15s;
}
#root [data-testid="profiles-table"] td:nth-child(2) .cf-profile-visual-action svg{
  width:12px;
  height:12px;
  margin-right:5px;
  stroke:currentColor;
}
#root [data-testid="profiles-table"] td:nth-child(2) .cf-profile-visual-action:hover{
  background:#ffe1e7;
  border-color:#e999a9;
  color:#a92d47;
  box-shadow:none;
}
#root [data-testid="profiles-table"] td:nth-child(2) .cf-profile-visual-action:focus-visible{
  outline:2px solid #d97893;
  outline-offset:1px;
}
#root [data-testid="profiles-table"] td:nth-child(2) .cf-profile-visual-action:disabled{
  opacity:.58;
  cursor:wait;
}
#root [data-testid="profiles-table"] td:nth-child(10) .slp-zone{
  margin-left:0!important;
  gap:4px;
}

/* Light information dialog with mostly white surfaces and restrained blue accents. */
body.cf-legacy-info-open .cf-legacy-info-backdrop{
  background:rgba(29,57,92,.27)!important;
  backdrop-filter:blur(3px)!important;
}
body.cf-legacy-info-open .cf-legacy-info-window{
  --cf-bg:#fff;
  --cf-panel:#fff;
  --cf-input:#fff;
  --cf-border:#d9e6f5;
  background:#fff!important;
  color:#1d3f63!important;
  border:1px solid #cbddec!important;
  border-radius:14px!important;
  box-shadow:0 24px 65px rgba(37,81,124,.18)!important;
}
body.cf-legacy-info-open .cf-legacy-info-header{
  background:#f5faff!important;
  color:#163e6d!important;
  border-bottom:1px solid #dceafa!important;
}
body.cf-legacy-info-open .cf-legacy-info-title{color:#163d6b!important}
body.cf-legacy-info-open .cf-legacy-info-cardicon{color:#177fe0!important}
body.cf-legacy-info-open .cf-legacy-info-close{
  color:#6d86a7!important;
  background:transparent!important;
}
body.cf-legacy-info-open .cf-legacy-info-close:hover{
  color:#245e9e!important;
  background:#eaf4ff!important;
}
body.cf-legacy-info-open .cf-legacy-info-scroll{
  background:#fff!important;
  color:#244768!important;
}
body.cf-legacy-info-open .cf-legacy-info-panel{
  background:#fff!important;
  border:1px solid #d5e4f3!important;
  box-shadow:0 2px 9px rgba(30,92,160,.035)!important;
}
body.cf-legacy-info-open .cf-legacy-info-sectiontitle{
  color:#315d8e!important;
}
body.cf-legacy-info-open .cf-legacy-info-grid label{
  color:#5b7799!important;
}
body.cf-legacy-info-open .cf-legacy-info-grid :is(input,select){
  background:#fcfdff!important;
  color:#1e395b!important;
  border:1px solid #c3d8ec!important;
  box-shadow:0 1px 2px rgba(40,90,145,.035)!important;
  color-scheme:light!important;
}
body.cf-legacy-info-open .cf-legacy-info-grid input::placeholder{
  color:#8398b3!important;
  opacity:1;
}
body.cf-legacy-info-open .cf-legacy-info-grid :is(input,select):focus{
  border-color:#6ca7df!important;
  outline:2px solid #98c6f2!important;
  box-shadow:0 0 0 3px rgba(27,127,217,.11)!important;
}
body.cf-legacy-info-open .cf-legacy-info-panelbar{
  color:#7088a6!important;
}
body.cf-legacy-info-open .cf-legacy-info-save{
  background:#177de2!important;
  border:1px solid #177de2!important;
  color:#fff!important;
}
body.cf-legacy-info-open .cf-legacy-info-save:hover{
  background:#096cc8!important;
}
body.cf-legacy-info-open .cf-legacy-info-check{
  background:#f9fcff!important;
  border:1px solid #d8e6f5!important;
  color:#2d496a!important;
}
body.cf-legacy-info-open .cf-legacy-info-check input{
  accent-color:#187be1!important;
}
body.cf-legacy-info-open .cf-legacy-info-check em{
  background:#eaf6f0!important;
  color:#278058!important;
}
body.cf-legacy-info-open .cf-legacy-info-check:nth-of-type(2) em{
  background:#edf2f8!important;
  color:#627a99!important;
}
body.cf-legacy-info-open .cf-legacy-info-template{
  background:#f9fcff!important;
  color:#38658f!important;
  border:1px solid #cbdff3!important;
}
body.cf-legacy-info-open .cf-legacy-info-template:hover{
  background:#eaf4ff!important;
  border-color:#8fbbe8!important;
  color:#1868b8!important;
}
body.cf-legacy-info-open .cf-legacy-info-template[aria-pressed="true"]{
  background:#187ce2!important;
  border-color:#187ce2!important;
  color:#fff!important;
}
body.cf-legacy-info-open .cf-legacy-info-description,
body.cf-legacy-info-open .cf-legacy-info-footnote{
  color:#7189a6!important;
}
body.cf-legacy-info-open .cf-legacy-info-message{
  color:#49769f!important;
}
body.cf-legacy-info-open .cf-legacy-info-message[data-mode="success"]{
  color:#238459!important;
}
body.cf-legacy-info-open .cf-legacy-info-message[data-mode="error"]{
  color:#be3b57!important;
}
body.cf-legacy-info-open .cf-legacy-info-actions button{
  background:#f5faff!important;
  border:1px solid #bcd6ef!important;
  color:#295e94!important;
}
body.cf-legacy-info-open .cf-legacy-info-actions button:not(:disabled):hover{
  background:#e7f3ff!important;
}
body.cf-legacy-info-open .cf-legacy-info-actions button.cf-legacy-info-document{
  background:#187be2!important;
  border-color:#187be2!important;
  color:#fff!important;
}
body.cf-legacy-info-open .cf-legacy-info-actions button.cf-legacy-info-document:hover{
  background:#0d6ccc!important;
}
body.cf-legacy-info-open .cf-legacy-info-actions button:disabled{
  background:#f1f5fa!important;
  border-color:#d8e4f0!important;
  color:#8ca2b9!important;
}


/* Icon-only visual launch: the same 24px action size, placed before green launch. */
#root [data-testid="profiles-table"] td:nth-child(2) button.cf-profile-visual-action{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  flex:0 0 24px!important;
  width:24px!important;
  min-width:24px!important;
  max-width:24px!important;
  height:24px!important;
  min-height:24px!important;
  padding:0!important;
  margin:0!important;
  border:1px solid #e9aebb!important;
  border-radius:6px!important;
  background:#fff0f2!important;
  color:#b74458!important;
  box-shadow:none!important;
  font-size:0!important;
  line-height:0!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  cursor:pointer;
}
#root [data-testid="profiles-table"] td:nth-child(2) button.cf-profile-visual-action svg{
  display:block!important;
  width:13px!important;
  height:13px!important;
  min-width:13px!important;
  flex:0 0 13px!important;
  margin:0!important;
  stroke:currentColor!important;
}
#root [data-testid="profiles-table"] td:nth-child(2) button.cf-profile-visual-action:hover{
  background:#ffe1e7!important;
  border-color:#dd8fa2!important;
  color:#a92d47!important;
}
#root [data-testid="profiles-table"] td:nth-child(2) button.cf-profile-visual-action:disabled::after{
  content:"⟳";
  font:700 15px/1 system-ui,sans-serif;
  color:#b74458;
}


/* Optical centering of the icon-only Profile play symbol (2026-11-04).
   Invisible text still contributes horizontal space in the legacy button. */
#root [data-testid="profiles-table"] td:nth-child(2) button.cf-profile-visual-action svg{
  transform:translateX(2.5px)!important;
}

/* Organization selector only: do not show legal-entity details beneath it. */
body.cf-legacy-info-open .cf-organization-detail{
  display:none!important;
  width:100%;
  margin:0;
  color:#6885a4;
  font-size:10px;
  line-height:1.45;
  font-weight:500;
  letter-spacing:0;
  overflow-wrap:anywhere;
}

/* Salary section: numerical test input beside organization selection. */
body.cf-legacy-info-open .cf-legacy-info-grid input[type="hidden"]{
  display:none!important;
}
body.cf-legacy-info-open .cf-legacy-info-grid input[data-field="testSampleAmount"]{
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  font-variant-numeric:tabular-nums;
  text-align:left;
}

/* Compact recipient fields with Save beside the passport input. */
body.cf-legacy-info-open .cf-legacy-info-scroll > .cf-legacy-info-panel:first-of-type {
  padding:12px 15px 10px!important;
  margin-bottom:12px!important;
}
body.cf-legacy-info-open .cf-legacy-info-scroll > .cf-legacy-info-panel:first-of-type .cf-legacy-info-sectiontitle {
  margin:0 0 9px!important;
  padding-right:0!important;
}
body.cf-legacy-info-open .cf-legacy-info-scroll > .cf-legacy-info-panel:first-of-type .cf-legacy-info-grid {
  row-gap:8px!important;
}
body.cf-legacy-info-open .cf-legacy-info-scroll > .cf-legacy-info-panel:first-of-type .cf-legacy-info-grid :is(input,select) {
  height:34px!important;
  min-height:34px!important;
  padding:6px 10px!important;
}
body.cf-legacy-info-open .cf-legacy-info-scroll > .cf-legacy-info-panel:first-of-type .cf-legacy-info-passport-row {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:end!important;
  gap:10px!important;
  min-width:0!important;
}
body.cf-legacy-info-open .cf-legacy-info-passport-row > label {
  min-width:0!important;
}
body.cf-legacy-info-open .cf-legacy-info-scroll > .cf-legacy-info-panel:first-of-type .cf-legacy-info-passport-row .cf-legacy-info-panelbar {
  position:static!important;
  inset:auto!important;
  margin:0!important;
  min-height:0!important;
  height:34px!important;
  display:flex!important;
  align-items:end!important;
  justify-content:flex-end!important;
}
body.cf-legacy-info-open .cf-legacy-info-passport-row .cf-legacy-info-panelbar span {
  display:none!important;
}
body.cf-legacy-info-open .cf-legacy-info-passport-row .cf-legacy-info-save {
  min-height:34px!important;
  height:34px!important;
  min-width:105px!important;
  padding:6px 12px!important;
  font-size:12px!important;
}
@media(max-width:460px){
  body.cf-legacy-info-open .cf-legacy-info-passport-row {
    grid-template-columns:minmax(0,1fr)!important;
  }
}

/* Hide redundant explanation beneath template choices; PDF test markings remain. */
body.cf-legacy-info-open .cf-legacy-info-window .cf-legacy-info-description{
  display:none!important;
}

/* Align the two bottom actions without changing their handlers. */
body.cf-legacy-info-open .cf-legacy-info-actions{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  margin:12px 0 8px!important;
}
body.cf-legacy-info-open .cf-legacy-info-actions > button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:center!important;
  height:40px!important;
  min-height:40px!important;
  padding:0 16px!important;
  line-height:1.2!important;
  margin:0!important;
  white-space:nowrap!important;
}
body.cf-legacy-info-open .cf-legacy-info-message:empty{display:none!important}
