/* ==========================================================
   FCP 14.7.29 - Task clean client meta UI
   Scope: frontend app task cards only. No DB/API changes.
   - removes visual source labels like Chrome Quick Task
   - shows only linked company/client when available
   - improves mobile + desktop card readability
   ========================================================== */

html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card].fcp-mobile-task-card,
html body.fcp-app-root-page .fcp-app-shell .fcp-task29-card{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-areas:"top" "main" "actions"!important;
  gap:12px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  margin:0 0 14px!important;
  padding:16px!important;
  border:1px solid #e2e8f0!important;
  border-radius:22px!important;
  background:#fff!important;
  box-shadow:0 14px 30px rgba(15,23,42,.06)!important;
  overflow:hidden!important;
  color:#0f172a!important;
}

html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] *,
html body.fcp-app-root-page .fcp-app-shell .fcp-task29-card *{
  box-sizing:border-box!important;
}

html body.fcp-app-root-page .fcp-app-shell .fcp-task29-card::before,
html body.fcp-app-root-page .fcp-app-shell .fcp-task29-card::after,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card].fcp-mobile-task-card::before,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card].fcp-mobile-task-card::after{
  display:none!important;
  content:none!important;
}

html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] > *,
html body.fcp-app-root-page .fcp-app-shell .fcp-task29-card > *{
  position:static!important;
  transform:none!important;
  float:none!important;
  min-width:0!important;
  max-width:100%!important;
  opacity:1!important;
  visibility:visible!important;
}

html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-top,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task-card-top,
html body.fcp-app-root-page .fcp-app-shell .fcp-task29-card .fcp-task28-top{
  grid-area:top!important;
  display:grid!important;
  grid-template-columns:32px minmax(0,1fr) auto 42px!important;
  align-items:center!important;
  gap:10px!important;
  width:100%!important;
  min-height:42px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}

html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-check,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-mobile-task-check{
  grid-column:1!important;
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  min-height:30px!important;
  max-width:30px!important;
  max-height:30px!important;
  margin:0!important;
  padding:0!important;
  border:2px solid #cbd5e1!important;
  border-radius:11px!important;
  background:#fff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-shadow:none!important;
  cursor:pointer!important;
  flex:none!important;
}

html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card].is-done .fcp-mobile-task-check,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card][data-task-status="done"] .fcp-mobile-task-check{
  background:#16a34a!important;
  border-color:#16a34a!important;
}
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card].is-done .fcp-mobile-task-check::after,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card][data-task-status="done"] .fcp-mobile-task-check::after{
  content:"✓"!important;
  color:#fff!important;
  font-size:15px!important;
  line-height:1!important;
  font-weight:950!important;
}

html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-meta,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task-card-time{
  grid-column:2!important;
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:baseline!important;
  gap:4px 8px!important;
  min-width:0!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:#64748b!important;
  overflow:hidden!important;
  text-align:left!important;
}
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-meta span,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-meta strong,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-meta small,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task-card-time span,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task-card-time strong,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task-card-time small{
  position:static!important;
  display:inline-block!important;
  width:auto!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  font-size:12px!important;
  line-height:1.15!important;
  font-weight:800!important;
  color:#64748b!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  text-transform:none!important;
  letter-spacing:0!important;
}
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-meta strong,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task-card-time strong{
  font-size:14px!important;
  font-weight:950!important;
  color:#0f172a!important;
}
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-meta small,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task-card-time small{
  flex-basis:100%!important;
  font-size:11px!important;
  color:#64748b!important;
  font-weight:850!important;
}

html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-badge,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task-priority-badge,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] > em{
  grid-column:3!important;
  position:static!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  justify-self:end!important;
  width:auto!important;
  min-width:72px!important;
  max-width:106px!important;
  height:30px!important;
  min-height:30px!important;
  margin:0!important;
  padding:0 10px!important;
  border:1px solid #e2e8f0!important;
  border-radius:999px!important;
  background:#f1f5f9!important;
  color:#334155!important;
  font-style:normal!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.05em!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-more,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-mobile-task-more{
  grid-column:4!important;
  position:static!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  justify-self:end!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  max-width:42px!important;
  max-height:42px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #e2e8f0!important;
  border-radius:15px!important;
  background:#fff!important;
  color:#334155!important;
  font-size:17px!important;
  line-height:1!important;
  font-weight:950!important;
  box-shadow:none!important;
  cursor:pointer!important;
}

html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-main,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task-card-main,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-mobile-task-body{
  grid-area:main!important;
  position:static!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:5px!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:0 0 0 42px!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#0f172a!important;
  text-align:left!important;
  overflow:visible!important;
  cursor:pointer!important;
  appearance:none!important;
  -webkit-appearance:none!important;
}
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-main strong,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-main span,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-main small,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-mobile-task-body strong,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-mobile-task-body span,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-mobile-task-body small{
  position:static!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  text-align:left!important;
  transform:none!important;
}
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-main strong,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-mobile-task-body strong{
  color:#0f172a!important;
  font-size:18px!important;
  line-height:1.18!important;
  font-weight:950!important;
  letter-spacing:-.025em!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task29-client-line,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-mobile-task-body span{
  color:#475569!important;
  font-size:13px!important;
  line-height:1.25!important;
  font-weight:800!important;
  white-space:normal!important;
  overflow:hidden!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
}
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-mobile-task-note-preview,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-main small{
  color:#64748b!important;
  font-size:13px!important;
  line-height:1.35!important;
  font-weight:700!important;
  white-space:normal!important;
  overflow:hidden!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
}

html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-actions,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task-card-footer,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-mobile-task-actions-14720{
  grid-area:actions!important;
  position:static!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
  gap:10px!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0 0 0 42px!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-actions a,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-actions button,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task-card-footer a,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task-card-footer button{
  position:static!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:1 1 0!important;
  min-width:0!important;
  max-width:190px!important;
  height:42px!important;
  min-height:42px!important;
  margin:0!important;
  padding:0 12px!important;
  border-radius:14px!important;
  border:1px solid #cbd5e1!important;
  background:#fff!important;
  color:#0f172a!important;
  text-decoration:none!important;
  font-size:14px!important;
  line-height:1!important;
  font-weight:950!important;
  white-space:nowrap!important;
  box-shadow:none!important;
  cursor:pointer!important;
}
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task-action-primary{
  background:#eff6ff!important;
  border-color:#bfdbfe!important;
  color:#2563eb!important;
}

html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .prio-high,
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .prio-urgent{background:#fef2f2!important;color:#dc2626!important;border-color:#fecaca!important;}
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .prio-medium{background:#fffbeb!important;color:#b45309!important;border-color:#fde68a!important;}
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .prio-low{background:#ecfdf5!important;color:#047857!important;border-color:#bbf7d0!important;}

@media(max-width:420px){
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card].fcp-mobile-task-card,
  html body.fcp-app-root-page .fcp-app-shell .fcp-task29-card{
    padding:14px!important;
    border-radius:20px!important;
  }
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-top,
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task-card-top{
    grid-template-columns:32px minmax(0,1fr) auto 42px!important;
    gap:8px!important;
  }
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-badge,
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task-priority-badge,
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] > em{
    min-width:66px!important;
    max-width:92px!important;
    padding:0 8px!important;
    font-size:9.5px!important;
  }
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-main,
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task-card-main,
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-mobile-task-body,
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-actions,
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task-card-footer{
    padding-left:40px!important;
  }
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-main strong,
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-mobile-task-body strong{
    font-size:17px!important;
  }
}

@media(min-width:700px){
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card].fcp-mobile-task-card,
  html body.fcp-app-root-page .fcp-app-shell .fcp-task29-card{
    grid-template-columns:34px minmax(0,1fr) auto 44px auto!important;
    grid-template-areas:"check main badge more actions"!important;
    align-items:center!important;
    gap:14px!important;
    min-height:86px!important;
    padding:16px 18px!important;
    border-radius:20px!important;
    margin-bottom:12px!important;
  }
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card]:hover{
    border-color:#bfdbfe!important;
    box-shadow:0 16px 34px rgba(37,99,235,.08)!important;
  }
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-top,
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task-card-top{
    display:contents!important;
  }
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-mobile-task-check{grid-area:check!important;}
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-meta,
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task-card-time{display:none!important;}
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-badge,
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task-priority-badge,
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] > em{grid-area:badge!important;}
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-mobile-task-more{grid-area:more!important;}
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-main,
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task-card-main,
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-mobile-task-body{
    grid-area:main!important;
    padding:0!important;
    gap:4px!important;
  }
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-main::before,
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task-card-main::before,
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-mobile-task-body::before{
    content:attr(data-meta)!important;
    display:block!important;
    margin:0 0 2px!important;
    color:#64748b!important;
    font-size:12px!important;
    line-height:1.15!important;
    font-weight:850!important;
  }
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-main strong,
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-mobile-task-body strong{
    font-size:16px!important;
    line-height:1.2!important;
  }
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task29-client-line,
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-mobile-task-body span{
    font-size:12.5px!important;
    line-height:1.25!important;
    -webkit-line-clamp:1!important;
  }
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-mobile-task-note-preview{
    font-size:12px!important;
    -webkit-line-clamp:1!important;
  }
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-actions,
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task-card-footer,
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-mobile-task-actions-14720{
    grid-area:actions!important;
    justify-content:flex-end!important;
    padding:0!important;
    width:auto!important;
    flex-wrap:nowrap!important;
  }
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-actions a,
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task28-actions button,
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task-card-footer a,
  html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task-card-footer button{
    flex:0 0 auto!important;
    min-width:96px!important;
    height:38px!important;
    min-height:38px!important;
    font-size:13px!important;
  }
}

/* Remove empty visual rows after JS/PHP cleanup. */
html body.fcp-app-root-page .fcp-app-shell [data-fcp-task-card] .fcp-task29-empty-line{
  display:none!important;
}
