/**
 * TaskBuilder - Open Project SaaS theme
 * Scoped entirely to .wppm-op-shell (the #wppm_open_project form itself)
 * so it cannot leak into other pages/modals.
 *
 * Button/widget background & text colors here are admin-configurable via
 * Settings > Individual Project Appearance and are applied as inline styles
 * by the PHP template — this stylesheet intentionally never overrides
 * background-color/color on those elements, only shape/spacing/typography.
 */
.wppm-op-shell,
.wppm-op-shell *,
.wppm-op-shell *::before,
.wppm-op-shell *::after {
  box-sizing: border-box;
}

.wppm-op-shell {
  --op-primary: #4f46e5;
  --op-primary-light: #eef2ff;
  --op-ink: #111827;
  --op-muted: #6b7280;
  --op-border: #e5e7eb;
  --op-surface: #ffffff;
  --op-bg: #f8fafc;
  --op-radius: 14px;
  --op-radius-sm: 10px;
  --op-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px -12px rgba(16,24,40,.10);
  display: block;
  background: var(--op-bg);
  padding: 20px 22px 24px;
  border-radius: var(--op-radius);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--op-ink);
}
@media (max-width: 600px) {
  .wppm-op-shell {
    padding: 14px 12px 18px;
  }
}

/* ===================== Toolbar ===================== */
.wppm-op-shell .wppm-op-toolbar {
  display: block;
  /* zeroed so the whitespace text nodes between the inline button tags in
     the PHP markup collapse to 0 width instead of rendering as a visible
     gap; every child below sets its own explicit font-size to override
     this back, so nothing but the inter-tag whitespace is affected. */
  font-size: 0;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--op-border);
}
.wppm-op-shell .wppm-op-toolbar .wppm-heading-inline {
  display: inline-block;
  font: 700 21px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--op-ink);
  padding: 0;
  margin: 0 14px 8px 0;
  vertical-align: middle;
}
/* Buttons render as <span>/<a> with an inline "display:none|inline" style for
   permission-based visibility — deliberately not touching `display` here so
   that toggle keeps working; padding/border/radius/typography layer fine on
   top of the inline display value either way. */
.wppm-op-shell .wppm-op-toolbar .wppm-add-new-btn {
  vertical-align: middle;
  margin: 0 0 6px 0 !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  border: 1px solid var(--op-border);
  font-weight: 600 !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  white-space: nowrap;
  cursor: pointer;
  transition: box-shadow .15s ease, transform .05s ease;
}
.wppm-op-shell .wppm-op-toolbar .wppm-add-new-btn:hover {
  box-shadow: var(--op-shadow);
}
.wppm-op-shell .wppm-op-toolbar .wppm-add-new-btn:active {
  transform: translateY(1px);
}
.wppm-op-shell .wppm-op-toolbar .wppm-add-new-btn img {
  width: 12px;
  height: 12px;
  vertical-align: middle;
  opacity: .8;
}
.wppm-op-shell .wppm-op-toolbar .wppm-add-new-btn span {
  vertical-align: middle;
}

/* ===================== Two-column layout ===================== */
.wppm-op-shell #wppm_load_individual_project_container {
  margin-top: 4px;
}
.wppm-op-shell .wppm-op-main {
  padding-right: 18px;
}
.wppm-op-shell .wppm-op-sidebar {
  margin-top: 0;
}
@media (max-width: 767px) {
  .wppm-op-shell .wppm-op-main {
    padding-right: 0;
  }
  .wppm-op-shell .wppm-op-sidebar {
    margin-top: 18px;
  }
}

/* ===================== Details card ===================== */
.wppm-op-shell .wppm-op-details-card {
  background: var(--op-surface);
  border: 1px solid var(--op-border) !important;
  border-radius: var(--op-radius);
  box-shadow: var(--op-shadow);
  padding: 22px 24px !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}
.wppm-op-shell .wppm_project_label {
  font: 700 19px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  color: var(--op-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Overview edit controls (title row, Quick Edit, property bar) ----------
   The shared rules live in wppm-open-task-saas.css (scoped to both overviews); they
   read --ot-* tokens, mapped here to the project palette. */
.wppm-op-shell .wppm-ot-title-row,
.wppm-op-shell .wppm-op-props {
  --ot-primary: var(--op-primary);
  --ot-primary-dark: #4338ca;
  --ot-primary-light: var(--op-primary-light);
  --ot-ink: var(--op-ink);
  --ot-muted: var(--op-muted);
  --ot-border: var(--op-border);
  --ot-surface: var(--op-surface);
  --ot-bg: var(--op-bg);
  --ot-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wppm-op-shell .wppm-ot-title-row .wppm_project_label {
  flex: 1 1 260px;
  min-width: 0;
  word-break: break-word;
}
/* "Edit Project": the full editor, secondary (same look as "Edit Task") */
.wppm-op-shell #wppm_individual_edit_project_subject.wppm_action_btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  width: auto;
  height: 34px;
  margin: 0;
  padding: 0 13px !important;
  border: 1px solid var(--op-border) !important;
  border-radius: 9px !important;
  background: var(--op-surface) !important;
  color: var(--op-ink) !important;
  font: 600 12.5px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease;
}
.wppm-op-shell #wppm_individual_edit_project_subject.wppm_action_btn:hover {
  border-color: #c7d2fe !important;
  background: var(--op-primary-light) !important;
}
.wppm-op-shell #wppm_individual_edit_project_subject:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--op-primary-light);
}
.wppm-op-shell #wppm_individual_edit_project_subject img {
  width: 13px;
  opacity: .75;
}
/* Category menu items carry a tag icon instead of a color dot */
.wppm-op-shell .wppm-op-props .wppm-ot-menu-icon {
  flex: none;
  width: 14px;
  height: 14px;
  color: #94a3b8;
  font-size: 14px;
}
@media (max-width: 600px) {
  .wppm-op-shell #wppm_individual_edit_project_subject.wppm_action_btn {
    flex: 1 1 0;
    justify-content: center;
  }
}

/* Detail rows (Created On / Start Date / End Date / Category / Description) */
.wppm-op-shell .wppm-op-details-card > .row {
  padding: 9px 0;
  border-bottom: 1px solid var(--op-border);
}
.wppm-op-shell .wppm-op-details-card > .row:first-child {
  border-bottom: none;
  padding-top: 0;
  padding-bottom: 14px;
}
.wppm-op-shell .wppm-op-details-card > .row:last-child {
  border-bottom: none;
}
.wppm-op-shell .wppm_project_details_label {
  font: 600 11px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--op-muted) !important;
  width: auto !important;
  float: none !important;
  margin: 3px 0 !important;
  cursor: default;
}
.wppm-op-shell .wppm_project_details {
  font: 13.5px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  color: var(--op-ink);
  border-bottom: none !important;
}
.wppm-op-shell .wppm_project_description {
  font-size: 13.5px !important;
  color: var(--op-ink);
  line-height: 1.6;
}

/* ---------- Details: sections of label / value tiles ----------
   Facts (Created, Start / End or Duration, Category), Description and the Custom Fields add-on
   (.wppm-op-cf-section). Empty values are not printed. */
.wppm-op-shell .wppm-op-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--op-border);
}
.wppm-op-shell .wppm-op-section-title {
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: none !important;
  color: var(--op-ink) !important;
  font: 700 12px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.wppm-op-shell .wppm-op-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  margin: 0;
}
.wppm-op-shell .wppm-op-fact {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--op-border);
  border-radius: 10px;
  background: var(--op-bg);
}
.wppm-op-shell .wppm-op-fact dt {
  display: block;
  width: auto !important;
  float: none !important;
  margin: 0 0 4px !important;
  color: var(--op-muted) !important;
  font: 600 11px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: default;
}
.wppm-op-shell .wppm-op-fact dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.wppm-op-shell .wppm-op-fact dd .wppm_project_details,
.wppm-op-shell .wppm-op-fact dd .wppm_task_details {
  display: inline-block;
  border-bottom: none !important;
  color: var(--op-ink);
  font: 600 13.5px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  cursor: default;
}
/* Editable dates: a dashed underline + pointer instead of the old dashed box */
.wppm-op-shell .wppm-op-fact .is-editable {
  padding: 0 !important;
  border: none !important;
  border-bottom: 1px dashed #cbd5e1 !important;
  border-radius: 0 !important;
  cursor: pointer !important;
}
.wppm-op-shell .wppm-op-fact .is-editable:hover {
  border-bottom-color: var(--op-primary) !important;
  color: var(--op-primary) !important;
}
.wppm-op-shell .wppm-op-fact .is-editable:focus-visible {
  outline: none;
  border-radius: 4px !important;
  box-shadow: 0 0 0 3px var(--op-primary-light);
}
.wppm-op-shell .wppm-op-fact .is-empty {
  color: var(--op-muted) !important;
  font-weight: 500 !important;
}
/* Overdue end date / duration: red tile accent (the value keeps its red inline color) */
.wppm-op-shell .wppm-op-fact.is-overdue {
  border-color: #fecaca;
  background: #fef2f2;
}
.wppm-op-shell .wppm-op-fact.is-overdue dt {
  color: #b91c1c !important;
}
.wppm-op-shell .wppm-op-fact-tag {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
}
.wppm-op-shell .wppm-op-fact-tag .dashicons {
  width: 14px;
  height: 14px;
  color: var(--op-muted);
  font-size: 14px;
}
/* Description: plain readable text, no box */
.wppm-op-shell .wppm-op-desc-section .wppm_project_description {
  color: #334155;
}
.wppm-op-shell .wppm-op-desc-section .wppm_project_description > :first-child {
  margin-top: 0;
}
.wppm-op-shell .wppm-op-desc-section .wppm_project_description > :last-child {
  margin-bottom: 0;
}
.wppm-op-shell .wppm-op-desc-section .wppm_project_description img {
  max-width: 100%;
  height: auto;
}
/* Custom field files: list of links inside the tile */
.wppm-op-shell .wppm-op-cf-section .wppm-cf-type-file {
  grid-column: span 2;
}
.wppm-op-shell .wppm-op-cf-section .wppm_attachment_tbl {
  width: 100%;
  margin: 0;
}
.wppm-op-shell .wppm-op-cf-section .wppm_attachment_tbl td {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
  border: none;
}
.wppm-op-shell .wppm-op-cf-section .wppm_attachment_file_name {
  padding: 0 !important;
  font-size: 13px;
}
@media (max-width: 600px) {
  .wppm-op-shell .wppm-op-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wppm-op-shell .wppm-op-cf-section .wppm-cf-type-file {
    grid-column: 1 / -1;
  }
}

/* ===================== Recent Tasks (overview) ===================== */
.wppm-op-shell .wppm-op-recent-card {
  margin-bottom: 10px;
  padding: 18px 22px 10px;
  border: 1px solid var(--op-border);
  border-radius: var(--op-radius);
  background: var(--op-surface);
  box-shadow: var(--op-shadow);
}
.wppm-op-shell .wppm-op-recent-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 10px;
}
.wppm-op-shell .wppm-op-recent-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--op-ink) !important;
  font: 700 15px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}
.wppm-op-shell .wppm-op-recent-count {
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11.5px;
  font-weight: 600;
}
.wppm-op-shell .wppm-op-recent-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--op-primary);
  font: 600 12.5px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease;
}
.wppm-op-shell .wppm-op-recent-all:hover {
  border-color: #c7d2fe;
  background: var(--op-primary-light);
}
.wppm-op-shell .wppm-op-recent-all:focus-visible,
.wppm-op-shell .wppm-op-rt-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--op-primary-light);
}
.wppm-op-shell .wppm-op-recent-all .wppm-op-stat-arrow {
  width: 12px;
  height: 12px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wppm-op-shell .wppm-op-recent-empty {
  margin: 4px 0 10px;
  padding: 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  color: var(--op-muted);
  font-size: 13px;
  text-align: center;
}
/* Bordered, rounded panel around the table */
.wppm-op-shell .wppm-op-recent-scroll {
  margin-bottom: 10px;
  overflow-x: auto;
  border: 1px solid var(--op-border);
  border-radius: 12px;
  background: var(--op-surface);
}
.wppm-op-shell .wppm-op-recent-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* Tinted header row */
.wppm-op-shell .wppm-op-recent-table th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--op-border);
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.wppm-op-shell .wppm-op-recent-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f7;
  background: var(--op-surface);
  color: var(--op-ink);
  font-size: 13px;
  vertical-align: middle;
  transition: background-color .12s ease;
}
.wppm-op-shell .wppm-op-recent-table tbody tr:last-child td {
  border-bottom: none;
}
.wppm-op-shell .wppm-op-recent-table th:first-child,
.wppm-op-shell .wppm-op-recent-table td:first-child {
  width: 46%;
  padding-left: 18px;
}
/* Status-colored accent bar on the left of each row */
.wppm-op-shell .wppm-op-recent-table .wppm-op-rt-row td:first-child {
  box-shadow: inset 4px 0 0 var(--rt-accent, #cbd5e1);
}
.wppm-op-shell .wppm-op-recent-table tbody tr:hover td {
  background: #f8faff;
}
.wppm-op-shell .wppm-op-recent-table tbody tr:hover .wppm-op-rt-link {
  color: var(--op-primary);
}
/* Overdue: soft red row */
.wppm-op-shell .wppm-op-recent-table .wppm-op-rt-row.is-overdue td {
  background: #fffafa;
}
.wppm-op-shell .wppm-op-recent-table .wppm-op-rt-row.is-overdue:hover td {
  background: #fef2f2;
}
/* Completed: muted, struck-through name */
.wppm-op-shell .wppm-op-recent-table .wppm-op-rt-row.is-done .wppm-op-rt-link {
  color: var(--op-muted);
  text-decoration: line-through;
  text-decoration-color: #cbd5e1;
}
.wppm-op-shell .wppm-op-rt-link {
  display: block;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: none;
  border-radius: 4px;
  background: none;
  color: var(--op-ink);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  font-family: inherit;
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}
.wppm-op-shell .wppm-op-rt-link:hover {
  color: var(--op-primary);
  text-decoration: underline;
}
.wppm-op-shell .wppm-op-rt-person {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  white-space: nowrap;
}
.wppm-op-shell .wppm-op-rt-person img {
  flex: none;
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  border-radius: 50%;
  object-fit: cover;
}
.wppm-op-shell .wppm-op-rt-name {
  overflow: hidden;
  text-overflow: ellipsis;
}
.wppm-op-shell .wppm-op-rt-more {
  padding: 1px 6px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
}
.wppm-op-shell .wppm-op-rt-none {
  color: var(--op-muted);
}
.wppm-op-shell .wppm-op-rt-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.wppm-op-shell .wppm-op-rt-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.wppm-op-shell .wppm-op-rt-due {
  color: #334155;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.wppm-op-shell .wppm-op-rt-due.is-overdue {
  color: #dc2626;
  font-weight: 600;
}
@media (max-width: 600px) {
  .wppm-op-shell .wppm-op-recent-card {
    padding: 16px 14px 8px;
  }
  .wppm-op-shell .wppm-op-recent-table {
    min-width: 460px;
  }
}

/* ===================== Comment box ===================== */
.wppm-op-shell .wppm-op-comment-card {
  background: var(--op-surface);
  border: 1px solid var(--op-border);
  border-radius: var(--op-radius);
  box-shadow: var(--op-shadow);
  padding: 20px 22px;
  margin-bottom: 10px;
}
.wppm-op-shell .wppm_proj_discussion {
  font: 700 15px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  color: var(--op-ink);
}
.wppm-op-shell #wppm_proj_comment {
  width: 100% !important;
  height: 44px;
  padding: 10px 12px !important;
  margin-top: 10px !important;
  margin-bottom: 12px !important;
  border: 1px solid var(--op-border) !important;
  border-radius: 9px !important;
  color: var(--op-ink) !important;
  font-size: 13.5px !important;
  resize: vertical;
  transition: border-color .12s ease, box-shadow .12s ease;
}
/* Rich text editor replaces the textarea: keep the same gap below the "Comment" label */
.wppm-op-shell #wppm_proj_discussion_container .mce-tinymce,
.wppm-op-shell #wppm_proj_discussion_container .tox-tinymce {
  margin-top: 10px !important;
  margin-bottom: 12px !important;
}
.wppm-op-shell #wppm_proj_comment:focus {
  outline: none;
  border-color: var(--op-primary) !important;
  box-shadow: 0 0 0 3px var(--op-primary-light);
}
/* Attach Files / Cancel / Send: shared modern buttons in wppm-open-task-saas.css */
.wppm-op-shell .wppm-btn,
.wppm-op-shell .wppm-btn-cancel {
  border-radius: 9px !important;
  padding: 8px 18px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  margin-left: 8px !important;
}
.wppm-op-shell .wppm-btn-cancel {
  background: var(--op-bg) !important;
  border: 1px solid var(--op-border) !important;
  color: var(--op-ink) !important;
}
.wppm-op-shell .wppm-btn-cancel:hover {
  background: #f1f5f9 !important;
}

/* ===================== Comment thread ===================== */
.wppm-op-shell .wppm-op-thread-list {
  margin-top: 0;
}
.wppm-op-shell .wppm_proj_thread {
  background: var(--op-surface) !important;
  border: 1px solid var(--op-border) !important;
  border-radius: var(--op-radius-sm) !important;
  padding: 14px 16px !important;
  margin: 0 0 12px !important;
  transition: box-shadow .12s ease;
}
.wppm-op-shell .wppm_proj_thread:hover {
  box-shadow: var(--op-shadow);
}
.wppm-op-shell .wppm_thread_avatar img {
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--op-surface), 0 0 0 3px var(--op-border);
}
.wppm-op-shell .wppm_thread_user_name {
  font-size: 13px !important;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px !important;
}
.wppm-op-shell .wppm_comment_date {
  font-size: 11.5px !important;
}
.wppm-op-shell .wppm_thread_action {
  margin-left: auto;
  display: inline-flex;
  gap: 8px;
  opacity: 0;
  transition: opacity .12s ease;
}
.wppm-op-shell .wppm_proj_thread:hover .wppm_thread_action {
  opacity: 1;
}
.wppm-op-shell .wppm_thread_action img {
  width: 13px;
  opacity: .6;
}
.wppm-op-shell .wppm_thread_action img:hover {
  opacity: 1;
}
.wppm-op-shell .wppm_thread_messege {
  font-size: 13.5px !important;
  line-height: 1.55;
}
.wppm-op-shell .wppm_attachment_tbl {
  margin-top: 6px;
}
.wppm-op-shell .wppm_attachment_tr td {
  background: var(--op-bg);
  border-radius: 7px;
  padding: 4px 6px !important;
}

/* ===================== Sidebar widgets ===================== */
.wppm-op-shell .wppm-op-sidebar .wppm_widget {
  border: 1px solid var(--op-border) !important;
  border-radius: var(--op-radius-sm) !important;
  box-shadow: var(--op-shadow);
  overflow: hidden;
  margin-bottom: 16px !important;
}
.wppm-op-shell .wppm-op-sidebar .wppm-widget-header {
  padding: 12px 14px !important;
}
.wppm-op-shell .wppm-op-sidebar .widget_header {
  font: 700 11px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.wppm-op-shell .wppm-op-sidebar .wppm_edit_project_details_widget {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  float: none !important;
}
.wppm-op-shell .wppm-op-sidebar .wppm_edit_project_details_widget:hover {
  background: rgba(0,0,0,.06);
}
.wppm-op-shell .wppm-op-sidebar .wppm_edit_project_details_widget img {
  width: 12px;
  opacity: .8;
}
.wppm-op-shell .wppm-op-sidebar .widget_divider {
  margin: 0 !important;
  border: none;
  border-top: 1px solid var(--op-border);
}
.wppm-op-shell .wppm-op-sidebar .wppm-widget-body {
  padding: 12px 14px 14px !important;
}
.wppm-op-shell .wppm_sidebar_labels {
  font-size: 12.5px !important;
  margin: 0 !important;
  color: var(--op-muted) !important;
}
.wppm-op-shell .wppm_label_info {
  font-size: 12.5px !important;
  font-weight: 600;
}
.wppm-op-shell .wppm_admin_label {
  border-radius: 999px !important;
  padding: 4px 11px !important;
  font-weight: 700 !important;
  font-size: 10.5px !important;
  letter-spacing: .03em;
  text-transform: uppercase;
  display: inline-block;
}
.wppm-op-shell .wppm-op-sidebar #wppm_project_creator > div,
.wppm-op-shell .wppm-op-sidebar #wppm_project_users > div {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 5px 0 !important;
}
.wppm-op-shell .wppm_project_user_avatar {
  padding: 0 !important;
  line-height: 0;
}
.wppm-op-shell .wppm_project_user_avatar img {
  border-radius: 50%;
}
.wppm-op-shell .wppm_project_user_names {
  padding: 0 !important;
  color: var(--op-ink) !important;
  font-size: 13px !important;
  font-weight: 600;
}
.wppm-op-shell .wppm_project_user_role {
  padding: 0 !important;
  color: var(--op-muted) !important;
  font-size: 11.5px !important;
}
.wppm-op-shell .wppm_project_users_not_assign_label {
  font-size: 12.5px;
}

/* ---------- People widgets: compact round pills (Project Creator + Users) ----------
   Same look as the open-task sidebar. Each user is a small pill (round avatar +
   name + role) that never grows wider than the widget; long names end with an
   ellipsis. CSS only, no markup changes. */
.wppm-op-shell .wppm-op-sidebar #wppm_project_users {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wppm-op-shell .wppm-op-sidebar #wppm_project_creator > div,
.wppm-op-shell .wppm-op-sidebar #wppm_project_users > div {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  padding: 3px 10px 3px 3px !important;
  border: 1px solid var(--op-border);
  border-radius: 999px;
  background: #f8fafc;
  vertical-align: middle;
}
/* Fixed round frame; the image fills it exactly, whatever margin/float/size
   WordPress or the theme puts on img.avatar. */
.wppm-op-shell .wppm-op-sidebar .wppm_project_user_avatar {
  display: block !important;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50%;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px #e0e7ff;
}
.wppm-op-shell .wppm-op-sidebar .wppm_project_user_avatar img {
  display: block !important;
  float: none !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: none !important;
}
.wppm-op-shell .wppm-op-sidebar .wppm_project_user_names {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 12px !important;
  line-height: 1.3 !important;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.wppm-op-shell .wppm-op-sidebar .wppm_project_user_role {
  flex: none;
  font-size: 11px !important;
  line-height: 1.3;
  white-space: nowrap;
}
.wppm-op-shell .wppm-op-sidebar .wppm_project_users_not_assign_label {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  font-size: 12px;
}

/* ===================== Alerts ===================== */
.wppm-op-shell .wppm_alert {
  border-radius: var(--op-radius-sm);
  box-shadow: var(--op-shadow);
}

/* =====================================================================
   v2: header, view tabs, project summary, activity timeline
   (shared by the Overview page and the project Kanban page)
   ===================================================================== */

/* Toolbar: back link + title on the left, actions on the right */
.wppm-op-shell .wppm-op-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  font-size: 14px;
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}
.wppm-op-shell .wppm-op-headline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.wppm-op-shell .wppm-op-toolbar .wppm-op-headline .wppm-heading-inline {
  margin: 0;
  font-size: 22px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wppm-op-shell .wppm-op-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: -4px;
  padding: 2px 6px 2px 2px;
  border-radius: 6px;
  color: var(--op-muted);
  font: 600 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
  transition: background-color .12s ease, color .12s ease;
}
.wppm-op-shell .wppm-op-back .dashicons {
  font-size: 15px;
  width: 15px;
  height: 15px;
}
.wppm-op-shell .wppm-op-back:hover {
  background: var(--op-primary-light);
  color: var(--op-primary);
}
.wppm-op-shell .wppm-op-back:focus-visible,
.wppm-op-shell .wppm-op-tab:focus-visible {
  outline: 2px solid var(--op-primary);
  outline-offset: 2px;
}
.wppm-op-shell .wppm-op-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 0; /* collapse whitespace between the inline button tags */
}
.wppm-op-shell .wppm-op-actions .wppm-add-new-btn {
  margin: 0 !important;
  padding: 8px 12px !important;
  top: auto;
}

/* View tabs (Overview / Tasks / Kanban View). Active tab uses the saved menu button color. */
.wppm-op-shell .wppm-op-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 16px 0 20px;
  border-bottom: 1px solid var(--op-border);
}
.wppm-op-shell .wppm-op-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: -1px;
  padding: 10px 14px;
  border-bottom: 2px solid transparent;
  color: var(--op-muted);
  font: 600 13px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
  transition: color .12s ease, border-color .12s ease, background-color .12s ease;
}
.wppm-op-shell .wppm-op-tab .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}
.wppm-op-shell .wppm-op-tab:hover {
  color: var(--op-ink);
  border-bottom-color: #cbd5e1;
}
.wppm-op-shell .wppm-op-tab.is-active {
  color: var(--op-accent, var(--op-primary));
  border-bottom-color: var(--op-accent, var(--op-primary));
  cursor: pointer; /* clicking the active tab reloads the view */
}
.wppm-op-shell .wppm-op-tab-count {
  min-width: 20px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

/* Project card: chips under the title */
.wppm-op-shell .wppm-op-title-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.wppm-op-shell .wppm-op-id {
  color: var(--op-muted);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.wppm-op-shell .wppm-op-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
}
.wppm-op-shell .wppm-op-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.wppm-op-shell .wppm-op-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11.5px;
  font-weight: 600;
}
.wppm-op-shell .wppm-op-chip .dashicons {
  font-size: 13px;
  width: 13px;
  height: 13px;
}

/* ---------- Project header: initials avatar | name + actions / metadata row ---------- */
.wppm-op-shell .wppm-op-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.wppm-op-shell .wppm-op-head-main {
  flex: 1 1 auto;
  min-width: 0;
}
.wppm-op-shell .wppm-op-avatar {
  --av-bg: #eef2ff;
  --av-fg: #4338ca;
  --av-ring: #c7d2fe;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--av-bg);
  box-shadow: inset 0 0 0 1px var(--av-ring);
  color: var(--av-fg);
  font: 700 17px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .02em;
  user-select: none;
}
.wppm-op-shell .wppm-op-avatar.is-violet  { --av-bg: #f5f3ff; --av-fg: #6d28d9; --av-ring: #ddd6fe; }
.wppm-op-shell .wppm-op-avatar.is-sky     { --av-bg: #f0f9ff; --av-fg: #0369a1; --av-ring: #bae6fd; }
.wppm-op-shell .wppm-op-avatar.is-teal    { --av-bg: #f0fdfa; --av-fg: #0f766e; --av-ring: #99f6e4; }
.wppm-op-shell .wppm-op-avatar.is-emerald { --av-bg: #ecfdf5; --av-fg: #047857; --av-ring: #a7f3d0; }
.wppm-op-shell .wppm-op-avatar.is-amber   { --av-bg: #fffbeb; --av-fg: #b45309; --av-ring: #fde68a; }
.wppm-op-shell .wppm-op-avatar.is-rose    { --av-bg: #fff1f2; --av-fg: #be123c; --av-ring: #fecdd3; }
.wppm-op-shell .wppm-op-avatar.is-slate   { --av-bg: #f1f5f9; --av-fg: #334155; --av-ring: #cbd5e1; }
/* Name sits on the avatar's center line */
.wppm-op-shell .wppm-op-head .wppm-ot-title-row {
  align-items: center;
  min-height: 48px;
}
.wppm-op-shell .wppm-op-head .wppm-op-title-meta {
  margin-top: 6px;
}
/* Project ID: quiet monospace chip */
.wppm-op-shell .wppm-op-head .wppm-op-id {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--op-border);
  border-radius: 999px;
  background: var(--op-bg);
  color: var(--op-muted);
  font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
/* Team members: "+N" after the first three avatars */
.wppm-op-shell .wppm-op-avatar-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: -6px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e2e8f0;
  box-shadow: 0 0 0 2px var(--op-surface);
  color: #334155;
  font-size: 10px;
  font-weight: 700;
}
/* Visibility: Public gets a green globe, Private stays neutral */
.wppm-op-shell .wppm-op-prop-visibility .is-public .dashicons {
  color: #16a34a;
}
@media (max-width: 600px) {
  .wppm-op-shell .wppm-op-head {
    gap: 12px;
  }
  .wppm-op-shell .wppm-op-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 15px;
  }
  .wppm-op-shell .wppm-op-head .wppm-ot-title-row {
    min-height: 40px;
  }
}

/* Project card: summary strip */
.wppm-op-shell .wppm-op-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.6fr);
  margin-top: 16px;
  border: 1px solid var(--op-border);
  border-radius: var(--op-radius-sm);
  background: var(--op-bg);
  overflow: hidden;
}
.wppm-op-shell .wppm-op-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 12px 16px;
  border-right: 1px solid var(--op-border);
}
.wppm-op-shell .wppm-op-stat:last-child {
  border-right: none;
}
.wppm-op-shell .wppm-op-stat-value {
  color: var(--op-ink);
  font: 700 20px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
.wppm-op-shell .wppm-op-stat-label {
  color: var(--op-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.wppm-op-shell .wppm-op-stat.is-danger .wppm-op-stat-value {
  color: #dc2626;
}
/* Clickable stats (Tasks / Open / Completed / Overdue -> Tasks tab with that filter): <button>s laid out like the other stats */
.wppm-op-shell .wppm-op-stat-link {
  position: relative;
  align-items: flex-start;
  width: 100%;
  margin: 0;
  border-top: none;
  border-bottom: none;
  border-left: none;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
          appearance: none;
  transition: background-color .15s ease, box-shadow .15s ease;
}
.wppm-op-shell .wppm-op-stat-link .wppm-op-stat-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .15s ease;
}
/* Small arrow after the label: hints that it opens something */
.wppm-op-shell .wppm-op-stat-link .wppm-op-stat-arrow {
  width: 12px;
  height: 12px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .55;
  transition: transform .15s ease, opacity .15s ease;
}
.wppm-op-shell .wppm-op-stat-link:hover {
  background: #eef2ff;
}
.wppm-op-shell .wppm-op-stat-link:hover .wppm-op-stat-value,
.wppm-op-shell .wppm-op-stat-link:hover .wppm-op-stat-label {
  color: #4f46e5;
}
.wppm-op-shell .wppm-op-stat-link:hover .wppm-op-stat-arrow {
  opacity: 1;
  transform: translateX(2px);
}
.wppm-op-shell .wppm-op-stat-link:active {
  background: #e0e7ff;
}
/* Overdue with overdue tasks keeps its red on hover */
.wppm-op-shell .wppm-op-stat-link.is-danger:hover {
  background: #fef2f2;
}
.wppm-op-shell .wppm-op-stat-link.is-danger:hover .wppm-op-stat-value,
.wppm-op-shell .wppm-op-stat-link.is-danger:hover .wppm-op-stat-label {
  color: #dc2626;
}
.wppm-op-shell .wppm-op-stat-link.is-danger:active {
  background: #fee2e2;
}
.wppm-op-shell .wppm-op-stat-link:focus {
  outline: none;
}
.wppm-op-shell .wppm-op-stat-link:focus-visible {
  z-index: 1;
  box-shadow: inset 0 0 0 2px #4f46e5;
}
@media (prefers-reduced-motion: reduce) {
  .wppm-op-shell .wppm-op-stat-link,
  .wppm-op-shell .wppm-op-stat-link .wppm-op-stat-arrow {
    transition: none;
  }
}
.wppm-op-shell .wppm-op-progress {
  position: relative;
  display: block;
  height: 6px;
  margin: 4px 0 2px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}
.wppm-op-shell .wppm-op-progress > span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: var(--op-primary);
}
.wppm-op-shell .wppm-op-progress.complete > span {
  background: #16a34a;
}

/* Start/End date values: styled as details tiles (.wppm-op-fact .is-editable, only when the user can
   change them) */
.wppm-op-shell #wppm_edit_pstart_date,
.wppm-op-shell #wppm_edit_pend_date {
  font-variant-numeric: tabular-nums;
  transition: color .12s ease, border-color .12s ease;
}

/* Activity: thread as a flex card; system changes as a compact timeline row */
.wppm-op-shell .wppm_proj_thread {
  display: flex !important;
  gap: 12px;
  width: 100%;
}
.wppm-op-shell .wppm_proj_thread .wppm_thread_avatar {
  display: block;
  flex: 0 0 auto;
  width: auto;
  padding: 0;
}
.wppm-op-shell .wppm_proj_thread .wppm_thread_avatar img {
  width: 36px;
  height: 36px;
}
.wppm-op-shell .wppm_proj_thread .wppm_thread_body {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
}
.wppm-op-shell .wppm_proj_thread.is-log {
  align-items: center;
  gap: 10px;
  margin: 0 0 6px 18px !important;
  padding: 6px 4px 6px 14px !important;
  border: none !important;
  border-left: 2px solid var(--op-border) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.wppm-op-shell .wppm_proj_thread.is-log .wppm_thread_avatar img {
  width: 22px;
  height: 22px;
  box-shadow: none;
}
.wppm-op-shell .wppm_proj_thread.is-log .wppm_thread_body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.wppm-op-shell .wppm_proj_thread.is-log .wppm_thread_user_name {
  margin: 0 !important;
  font-size: 12.5px !important;
}
.wppm-op-shell .wppm_proj_thread.is-log .wppm_thread_messege {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 12.5px !important;
}
.wppm-op-shell .wppm_proj_thread.is-log .wppm_thread_messege > span {
  margin: 0 !important;
}
.wppm-op-shell .wppm_proj_thread.is-log .wppm_thread_messege img {
  width: 12px;
  opacity: .5;
}
.wppm-op-shell .wppm_proj_thread.is-log .wppm_admin_label {
  padding: 2px 8px !important;
  font-size: 9.5px !important;
}

/* ---------- Comments: modern SaaS card ----------
   Real comments only (log rows keep the timeline above). CSS only: markup, ids, JS and
   the Appearance colors (inline on the name / date / message) are unchanged. */
.wppm-op-shell .wppm_proj_thread:not(.is-log) {
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px !important;
  margin: 0 0 12px !important;
  border: 1px solid var(--op-border) !important;
  border-radius: 12px !important;
  background: var(--op-surface) !important;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.wppm-op-shell .wppm_proj_thread:not(.is-log):hover {
  border-color: #d8dee8 !important;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 10px 24px -14px rgba(16,24,40,.18);
}
.wppm-op-shell .wppm_proj_thread:not(.is-log) .wppm_thread_avatar {
  padding: 2px 0 0;
}
.wppm-op-shell .wppm_proj_thread:not(.is-log) .wppm_thread_avatar img {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--op-primary-light);
}
/* Header: name · date ........ actions */
.wppm-op-shell .wppm_proj_thread:not(.is-log) .wppm_thread_user_name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-height: 26px;
  margin: 0 0 4px !important;
  font-size: 13.5px !important;
  line-height: 1.4;
}
.wppm-op-shell .wppm_proj_thread:not(.is-log) .wppm_thread_user_name strong {
  font-weight: 700;
}
.wppm-op-shell .wppm_proj_thread:not(.is-log) .wppm_thread_user_name > span:empty {
  display: none;
}
.wppm-op-shell .wppm_proj_thread:not(.is-log) .wppm_comment_date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px !important;
  opacity: .85;
}
.wppm-op-shell .wppm_proj_thread:not(.is-log) .wppm_comment_date::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: .6;
}
.wppm-op-shell .wppm_proj_thread:not(.is-log) .wppm_comment_date i {
  font-style: normal;
}
.wppm-op-shell .wppm_proj_thread:not(.is-log) .wppm_thread_action {
  gap: 2px;
  float: none;
}
.wppm-op-shell .wppm_proj_thread:not(.is-log):focus-within .wppm_thread_action {
  opacity: 1;
}
.wppm-op-shell .wppm_proj_thread:not(.is-log) .wppm_thread_action > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  cursor: pointer;
  transition: background-color .12s ease;
}
.wppm-op-shell .wppm_proj_thread:not(.is-log) .wppm_thread_action > span:hover {
  background: #f1f5f9;
}
/* Body */
.wppm-op-shell .wppm_proj_thread:not(.is-log) .wppm_thread_messege {
  font-size: 13.5px !important;
  line-height: 1.65;
  word-break: break-word;
}
.wppm-op-shell .wppm_proj_thread:not(.is-log) .wppm_thread_messege p {
  margin: 0 0 6px;
}
.wppm-op-shell .wppm_proj_thread:not(.is-log) .wppm_thread_messege p:last-child {
  margin-bottom: 0;
}
.wppm-op-shell .wppm_proj_thread:not(.is-log) .wppm_thread_messege img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
/* Attachments: file chips */
.wppm-op-shell .wppm_proj_thread:not(.is-log) .wppm_attachment_title {
  display: inline-block;
  margin-top: 4px;
  color: var(--op-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.wppm-op-shell .wppm_proj_thread:not(.is-log) .wppm_attachment_tbl {
  margin-top: 6px;
  border-collapse: separate;
  border-spacing: 0 6px;
}
.wppm-op-shell .wppm_proj_thread:not(.is-log) .wppm_attachment_tr td {
  padding: 6px 8px 6px 10px !important;
  border: 1px solid var(--op-border);
  border-radius: 8px;
  background: var(--op-bg);
}
.wppm-op-shell .wppm_proj_thread:not(.is-log) .wppm_attachment_link {
  color: var(--op-primary);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}
.wppm-op-shell .wppm_proj_thread:not(.is-log) .wppm_attachment_file_name {
  padding: 0 6px 0 0 !important;
}
@media (max-width: 600px) {
  .wppm-op-shell .wppm_proj_thread:not(.is-log) {
    gap: 12px;
    padding: 14px !important;
  }
  .wppm-op-shell .wppm_proj_thread:not(.is-log) .wppm_thread_avatar img {
    width: 32px;
    height: 32px;
  }
  /* Touch screens have no hover: keep edit / delete visible */
  .wppm-op-shell .wppm_proj_thread:not(.is-log) .wppm_thread_action {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .wppm-op-shell .wppm-op-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wppm-op-shell .wppm-op-stat {
    border-bottom: 1px solid var(--op-border);
  }
  .wppm-op-shell .wppm-op-stat:nth-child(2n) {
    border-right: none;
  }
  .wppm-op-shell .wppm-op-stat-progress {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: none;
  }
}
@media (max-width: 600px) {
  /* One swipeable row of actions instead of several wrapped rows. */
  .wppm-op-shell .wppm-op-actions {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .wppm-op-shell .wppm-op-actions::-webkit-scrollbar {
    display: none;
  }
  .wppm-op-shell .wppm-op-actions > * {
    flex: 0 0 auto;
  }
  .wppm-op-shell .wppm-op-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .wppm-op-shell .wppm-op-tab {
    flex: 0 0 auto;
  }
}

/* ===================== Open project header buttons (SaaS) =====================
   Applies to the Overview page (#wppm_open_project) and the shared header of the Tasks /
   Kanban tabs (wppm_project_view_header.php), including buttons added by add-ons
   (Clone, Gantt, Custom Fields) and locked Pro buttons.

   1) Always: one consistent modern shape (height, radius, spacing, icon size).
      Colors still come inline from Settings > Appearance > Individual Project.
   2) .wppm-op-actions--modern (only while those colors are the defaults, see
      WPPM_Functions::wppm_apply_modern_op_buttons()): clear hierarchy, i.e.
      Add New = primary, others = white outline, Delete = red ghost.
      Colors an admin saved never get this class. */
.wppm-op-shell .wppm-op-actions .wppm-add-new-btn {
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px !important;
  border: 1px solid transparent;
  border-radius: 9px !important;
  font: 600 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15,23,42,.06);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
/* inline-flex without breaking the inline display:none used to hide buttons by permission */
.wppm-op-shell .wppm-op-actions .wppm-add-new-btn:not([style*="display:none"]):not([style*="display: none"]) {
  display: inline-flex !important;
}
.wppm-op-shell .wppm-op-actions .wppm-add-new-btn > span {
  display: inline-flex;
  align-items: center;
  margin: 0 !important;
}
.wppm-op-shell .wppm-op-actions .wppm-add-new-btn img {
  display: block;
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
}
.wppm-op-shell .wppm-op-actions .wppm-add-new-btn:focus {
  outline: none;
}
.wppm-op-shell .wppm-op-actions .wppm-add-new-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(79,70,229,.30);
}

/* ---- Modern hierarchy (default colors only) ---- */
/* Secondary: everything except Add New and Delete */
:is(#wppm_open_project, #wppm_open_project_kanban_view, #wppm_open_project_tasks_view) .wppm-op-actions--modern .wppm-add-new-btn:not(#wppm_add_new_project_btn):not(#wppm_op_add_task_btn):not(#wppm_delete_project_btn) {
  border-color: #e2e8f0 !important;
  background: #ffffff !important;
  color: #334155 !important;
}
:is(#wppm_open_project, #wppm_open_project_kanban_view, #wppm_open_project_tasks_view) .wppm-op-actions--modern .wppm-add-new-btn:not(#wppm_add_new_project_btn):not(#wppm_op_add_task_btn):not(#wppm_delete_project_btn) img {
  filter: brightness(0);
  opacity: .55;
}
:is(#wppm_open_project, #wppm_open_project_kanban_view, #wppm_open_project_tasks_view) .wppm-op-actions--modern .wppm-add-new-btn:not(#wppm_add_new_project_btn):not(#wppm_op_add_task_btn):not(#wppm_delete_project_btn):hover {
  border-color: #cbd5e1 !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 4px 10px -6px rgba(15,23,42,.18);
}
:is(#wppm_open_project, #wppm_open_project_kanban_view, #wppm_open_project_tasks_view) .wppm-op-actions--modern .wppm-add-new-btn:not(#wppm_add_new_project_btn):not(#wppm_op_add_task_btn):not(#wppm_delete_project_btn):hover img {
  opacity: .8;
}
/* Primary: Add New keeps its (indigo) inline color; add depth */
:is(#wppm_open_project, #wppm_open_project_kanban_view, #wppm_open_project_tasks_view) .wppm-op-actions--modern #wppm_add_new_project_btn,
:is(#wppm_open_project, #wppm_open_project_kanban_view, #wppm_open_project_tasks_view) .wppm-op-actions--modern #wppm_op_add_task_btn {
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(15,23,42,.12), 0 4px 12px -6px rgba(79,70,229,.55);
}
/* Danger: Delete as a red ghost button */
:is(#wppm_open_project, #wppm_open_project_kanban_view, #wppm_open_project_tasks_view) .wppm-op-actions--modern #wppm_delete_project_btn {
  border-color: #fecaca !important;
  background: #ffffff !important;
  color: #dc2626 !important;
}
:is(#wppm_open_project, #wppm_open_project_kanban_view, #wppm_open_project_tasks_view) .wppm-op-actions--modern #wppm_delete_project_btn img {
  /* tint the icon red (#dc2626) */
  filter: brightness(0) saturate(100%) invert(20%) sepia(93%) saturate(4262%) hue-rotate(352deg) brightness(91%) contrast(92%);
}
:is(#wppm_open_project, #wppm_open_project_kanban_view, #wppm_open_project_tasks_view) .wppm-op-actions--modern #wppm_delete_project_btn:hover {
  border-color: #fca5a5 !important;
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

/* =====================================================================
   Project overview sidebar widgets (Status, Project Creator, Users, add-on widgets)
   Polished card look. CSS only: no widths or negative margins, so nothing can
   overflow the sidebar. Header / body colors from Settings > Appearance > Widget
   stay inline and are never overridden; the user pills come from the rules above.
   ===================================================================== */
.wppm-op-shell .wppm-op-sidebar .wppm_widget {
  border-radius: 14px !important;
  background: var(--op-surface);
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 16px -10px rgba(16,24,40,.12);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.wppm-op-shell .wppm-op-sidebar .wppm_widget:hover {
  border-color: #d5d9e6 !important;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 12px 24px -14px rgba(16,24,40,.22);
}
/* Header: icon tile + title + edit button */
.wppm-op-shell .wppm-op-sidebar .wppm-widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 12px 10px 14px !important;
}
.wppm-op-shell .wppm-op-sidebar .widget_header {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin: 0 !important;
  font-size: 11.5px !important;
  letter-spacing: .06em;
}
.wppm-op-shell .wppm-op-sidebar .widget_header::before {
  content: "\f469"; /* dashicons-clock (fallback for add-on widgets) */
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font: normal 14px/1 dashicons;
  letter-spacing: 0;
  text-transform: none;
}
.wppm-op-shell #wppm_project_status_widget .widget_header::before {
  content: "\f503"; /* dashicons-randomize */
  background: #eef2ff;
  color: #4f46e5;
}
.wppm-op-shell #wppm_project_raisedby_widget .widget_header::before {
  content: "\f110"; /* dashicons-admin-users */
  background: #faf5ff;
  color: #9333ea;
}
.wppm-op-shell #wppm_project_users_widget_container .widget_header::before {
  content: "\f307"; /* dashicons-groups */
  background: #f0f9ff;
  color: #0284c7;
}
/* Edit button: quiet square, clearer on hover / keyboard focus */
.wppm-op-shell .wppm-op-sidebar .wppm_edit_project_details_widget {
  flex: none;
  width: 28px;
  height: 28px;
  margin: 0 !important;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease;
}
.wppm-op-shell .wppm-op-sidebar .wppm_edit_project_details_widget:hover {
  border-color: var(--op-border);
  background: var(--op-surface);
}
.wppm-op-shell .wppm-op-sidebar .wppm_edit_project_details_widget img {
  width: 13px;
  opacity: .6;
  transition: opacity .12s ease;
}
.wppm-op-shell .wppm-op-sidebar .wppm_widget:hover .wppm_edit_project_details_widget img,
.wppm-op-shell .wppm-op-sidebar .wppm_edit_project_details_widget:hover img {
  opacity: 1;
}
/* Body */
.wppm-op-shell .wppm-op-sidebar .wppm-widget-body {
  padding: 12px 14px 14px !important;
}
/* Status row: label on the left, pill on the right */
.wppm-op-shell #wppm_project_status_widget .wppm_sidebar_labels {
  display: block;
}
.wppm-op-shell #wppm_project_status_widget .wppm_label_info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-weight: 600;
}
.wppm-op-shell #wppm_project_status_widget .wppm_admin_label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 11px !important;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.wppm-op-shell #wppm_project_status_widget .wppm_admin_label::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
/* Users list: a little more air between the round pills */
.wppm-op-shell .wppm-op-sidebar #wppm_project_users {
  gap: 6px 6px;
}
.wppm-op-shell .wppm-op-sidebar #wppm_project_users > div:hover,
.wppm-op-shell .wppm-op-sidebar #wppm_project_creator > div:hover {
  border-color: #c7d2fe;
  background: #eef2ff;
}

/* ---------- Compact sidebar (Status one-liner + deadline, Creator, Project Team) ----------
   Rows instead of pills: avatar + name (+ role / created date). Overrides the pill rules above;
   inline Appearance colors are kept. */
.wppm-op-shell .wppm-op-sidebar .wppm_widget {
  margin-bottom: 12px !important;
}
/* Status: title, badge and edit button on one line; deadline hint below */
.wppm-op-shell #wppm_project_status_widget.wppm-op-widget-compact .wppm-widget-header {
  min-height: 0;
}
.wppm-op-shell #wppm_project_status_widget.wppm-op-widget-compact .widget_header {
  flex: 0 1 auto;
}
.wppm-op-shell #wppm_project_status_widget.wppm-op-widget-compact .wppm_admin_label {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  margin-left: auto;
  padding: 5px 11px !important;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.wppm-op-shell #wppm_project_status_widget.wppm-op-widget-compact .wppm_admin_label::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.wppm-op-shell #wppm_project_status_widget.wppm-op-widget-compact .wppm-widget-body {
  padding: 0 14px 12px !important;
}
/* (beats "#wppm_project_status_widget .wppm_sidebar_labels { display: block }" above; layout only) */
.wppm-op-shell #wppm_project_status_widget .wppm_sidebar_labels.wppm-op-deadline {
  display: flex;
}
.wppm-op-shell .wppm-op-sidebar .wppm-op-deadline {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--op-bg);
  color: #334155 !important;
  font-size: 12.5px !important;
  font-weight: 600;
}
.wppm-op-shell .wppm-op-sidebar .wppm-op-deadline .dashicons {
  width: 15px;
  height: 15px;
  color: var(--op-muted);
  font-size: 15px;
}
.wppm-op-shell .wppm-op-sidebar .wppm-op-deadline-date {
  margin-left: auto;
  color: var(--op-muted);
  font-weight: 500;
  white-space: nowrap;
}
.wppm-op-shell .wppm-op-sidebar .wppm-op-deadline.is-overdue {
  background: #fef2f2;
  color: #b91c1c !important;
}
.wppm-op-shell .wppm-op-sidebar .wppm-op-deadline.is-overdue .dashicons { color: #dc2626; }
.wppm-op-shell .wppm-op-sidebar .wppm-op-deadline.is-soon {
  background: #fffbeb;
  color: #b45309 !important;
}
.wppm-op-shell .wppm-op-sidebar .wppm-op-deadline.is-soon .dashicons { color: #d97706; }
.wppm-op-shell .wppm-op-sidebar .wppm-op-deadline.is-done {
  background: #f0fdf4;
  color: #15803d !important;
}
.wppm-op-shell .wppm-op-sidebar .wppm-op-deadline.is-done .dashicons { color: #16a34a; }
/* Header count badge (Project Team) */
.wppm-op-shell .wppm-op-sidebar .wppm-op-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 10.5px;
  letter-spacing: 0;
}
/* People rows */
.wppm-op-shell .wppm-op-sidebar #wppm_project_users {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wppm-op-shell .wppm-op-sidebar #wppm_project_creator > .wppm-op-person,
.wppm-op-shell .wppm-op-sidebar #wppm_project_users > .wppm-op-person {
  display: flex !important;
  align-items: center;
  gap: 10px;
  max-width: none;
  padding: 5px 6px !important;
  border: none;
  border-radius: 9px;
  background: transparent;
}
.wppm-op-shell .wppm-op-sidebar #wppm_project_users > .wppm-op-person[hidden] {
  display: none !important;
}
.wppm-op-shell .wppm-op-sidebar #wppm_project_creator > .wppm-op-person:hover,
.wppm-op-shell .wppm-op-sidebar #wppm_project_users > .wppm-op-person:hover {
  background: var(--op-bg);
}
.wppm-op-shell .wppm-op-sidebar .wppm-op-person .wppm_project_user_avatar {
  flex-basis: 30px;
  width: 30px;
  height: 30px;
}
.wppm-op-shell .wppm-op-sidebar #wppm_project_creator .wppm_project_user_avatar {
  flex-basis: 36px;
  width: 36px;
  height: 36px;
}
.wppm-op-shell .wppm-op-sidebar .wppm-op-person-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.wppm-op-shell .wppm-op-sidebar .wppm-op-person .wppm_project_user_names {
  font-size: 13px !important;
}
.wppm-op-shell .wppm-op-sidebar .wppm-op-person-link {
  text-decoration: none;
}
.wppm-op-shell .wppm-op-sidebar .wppm-op-person-link:hover,
.wppm-op-shell .wppm-op-sidebar .wppm-op-person-link:focus-visible {
  color: var(--op-primary) !important;
  text-decoration: underline;
}
.wppm-op-shell .wppm-op-sidebar .wppm-op-person-meta,
.wppm-op-shell .wppm-op-sidebar .wppm-op-person .wppm_project_user_role {
  overflow: hidden;
  color: var(--op-muted) !important;
  font-size: 11.5px !important;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-transform: capitalize;
}
/* "+N more" / "Show less" */
.wppm-op-shell .wppm-op-sidebar .wppm-op-team-more {
  align-self: flex-start;
  margin: 4px 0 0 6px;
  padding: 4px 10px;
  border: 1px solid var(--op-border);
  border-radius: 999px;
  background: var(--op-surface);
  color: #334155;
  font: 600 12px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
}
.wppm-op-shell .wppm-op-sidebar .wppm-op-team-more:hover {
  border-color: #c7d2fe;
  background: var(--op-primary-light);
  color: var(--op-primary);
}
.wppm-op-shell .wppm-op-sidebar .wppm-op-team-more:focus-visible,
.wppm-op-shell .wppm-op-sidebar .wppm_edit_project_details_widget:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--op-primary-light);
}
.wppm-op-shell .wppm-op-sidebar .wppm_project_users_not_assign_label {
  align-self: flex-start;
}

/* =====================================================================
   Project header (Overview / Tasks / Kanban): one compact line
   "‹ Project List / <project name>" on the left, More + main action on the right.
   ===================================================================== */
.wppm-op-shell .wppm-op-toolbar {
  align-items: center !important;
}
.wppm-op-shell .wppm-op-headline.wppm-op-crumbs {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.wppm-op-shell .wppm-op-crumbs .wppm-op-back {
  flex: none;
  margin-left: -6px;
  padding: 5px 8px 5px 4px;
  border-radius: 8px;
  font-size: 13px;
}
.wppm-op-shell .wppm-op-crumb-sep {
  flex: none;
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 400;
}
.wppm-op-shell .wppm-op-toolbar .wppm-op-crumbs .wppm-op-crumb-current {
  min-width: 0;
  overflow: hidden;
  color: var(--op-ink);
  font: 700 15px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* Less air between header, tabs and the first card */
.wppm-op-shell .wppm-op-tabs {
  margin: 12px 0 18px;
}

/* Overview card: the first row (avatar + name / metadata / stats) keeps Bootstrap's 15px column
   padding, the sections below don't. Drop it so everything shares one left edge. */
.wppm-op-shell .wppm-op-details-card > .row:first-child,
.wppm-op-shell .wppm-op-details-card > .row:first-child > [class*="col-"] {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}
@media (max-width: 600px) {
  .wppm-op-shell .wppm-op-headline.wppm-op-crumbs {
    width: 100%;
  }
}
/* admin.css gives #wppm_proj_overview_btn (the Overview tab on the Tasks / Kanban tabs) a 10px bottom
   margin from its old button days, which lifted it above the other tabs. */
.wppm-op-shell .wppm-op-tabs #wppm_proj_overview_btn.wppm-op-tab {
  margin-bottom: -1px;
}

/* ---------- Overview title block (same rhythm as the task overview) ----------
   Row 1: avatar + project name, Quick Edit / Edit Project on the right.
   Row 2: the chips (#ID, status, category, members, due, visibility) from the card's left edge,
          10px under the title row, exactly like the task overview's property bar.
   Grid on .wppm-op-head; its inner wrappers are flattened with display:contents. When the card is
   narrow the buttons go to their own row under the chips. */
.wppm-op-shell .wppm-op-details-card > .row:first-child > [class*="col-"] {
  container-type: inline-size;
}
.wppm-op-shell .wppm-op-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  grid-template-areas:
    "avatar name actions"
    "meta   meta meta";
  align-items: center;
  column-gap: 14px;
  row-gap: 18px; /* title row -> chips */
}
.wppm-op-shell .wppm-op-head .wppm-op-head-main,
.wppm-op-shell .wppm-op-head .wppm-ot-title-row {
  display: contents;
}
.wppm-op-shell .wppm-op-head .wppm-op-avatar {
  grid-area: avatar;
}
.wppm-op-shell .wppm-op-head .wppm-ot-title-row .wppm_project_label {
  grid-area: name;
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: 20px !important;
  line-height: 1.3 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wppm-op-shell .wppm-op-head .wppm-ot-title-actions {
  grid-area: actions;
  justify-self: end;
}
.wppm-op-shell .wppm-op-head .wppm-op-title-meta {
  grid-area: meta;
  margin: 0 !important;
}
/* Quick Edit and Edit Project: same height and baseline (admin.css adds a 3px !important margin
   to .wppm_action_btn, which lifted Edit Project above Quick Edit) */
.wppm-op-shell .wppm-op-head .wppm-ot-quick-edit,
.wppm-op-shell .wppm-op-head #wppm_individual_edit_project_subject.wppm_action_btn {
  height: 36px;
  margin: 0 !important;
  vertical-align: middle;
}
/* Narrow card: avatar + name (wraps), chips, then the buttons */
@container (max-width: 620px) {
  .wppm-op-shell .wppm-op-head {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
      "avatar  name"
      "meta    meta"
      "actions actions";
  }
  .wppm-op-shell .wppm-op-head .wppm-ot-title-row .wppm_project_label {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .wppm-op-shell .wppm-op-head .wppm-ot-title-actions {
    justify-self: start;
  }
}
/* More air under the chips row before the stats box */
.wppm-op-shell .wppm-op-head + .wppm-op-stats,
.wppm-op-shell .wppm-op-details-card .wppm-op-stats {
  margin-top: 24px;
}
@container (max-width: 620px) {
  .wppm-op-shell .wppm-op-head {
    row-gap: 16px;
  }
}
/* A task opened inside a project view sits under the project header, whose "Add Task"
   already adds to this project: hide the task's own "Add New" so it is not shown twice. */
.wppm-op-shell:has(#wppm_op_add_task_btn) #wppm_add_new_task_btn {
  display: none !important;
}

/* "Your project is ready!" (wppm_open_project.php): next step while the project has no tasks. */
.wppm-op-shell .wppm-op-ready {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
  padding: 18px 20px;
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  background: #f8faff;
}
.wppm-op-shell .wppm-op-ready.is-new {
  border-color: #c7d2fe;
  background: #eef2ff;
}
.wppm-op-shell .wppm-op-ready-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  font-size: 24px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  color: var(--op-accent, #4f46e5);
  background: #ffffff;
}
.wppm-op-shell .wppm-op-ready.is-new .wppm-op-ready-icon {
  color: #16a34a;
}
.wppm-op-shell .wppm-op-ready-body {
  flex: 1 1 auto;
  min-width: 0;
}
.wppm-op-shell .wppm-op-ready-body h2 {
  margin: 0 0 2px;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}
.wppm-op-shell .wppm-op-ready-body p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}
.wppm-op-shell .wppm-op-ready-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: var(--op-accent, #4f46e5);
  cursor: pointer;
}
.wppm-op-shell .wppm-op-ready-btn:hover,
.wppm-op-shell .wppm-op-ready-btn:focus-visible {
  filter: brightness(0.92);
}
.wppm-op-shell .wppm-op-ready-btn .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}
@media (max-width: 600px) {
  .wppm-op-shell .wppm-op-ready {
    flex-wrap: wrap;
  }
  .wppm-op-shell .wppm-op-ready-btn {
    width: 100%;
    justify-content: center;
  }
}
