.wppm-report-title-inline{
    display:inline-block;
    margin-bottom: 5px;
    padding: 9px 0 4px 0;
    line-height: 1.3;
    font: 16px "OpenSans-Light",Helvetica,Arial,sans-serif;
}
#wppm_proj_name, #wppm_proj_description, #wppm_proj_create_date, #wppm_proj_start_date, #wppm_proj_end_date, #wppm_proj_category, #wppm_proj_status, #wppm_proj_tasks{
    margin: 0px 10px 7px 0px;
}

#wppm_reports_form label{
    font: 12px "OpenSans-Light",Helvetica,Arial,sans-serif !important;
}

#wppm_reports_project_details{
    background-color: #ffffff;
}
.wppm_report_setting_pills li{
    background-color: #ffffff;
    border-radius: 15px !important;
    color:#9c9c9c !important;
    line-height:normal !important;
}
#wppm_generate_custom_reports{
    margin-top: 10px;
}

/* =====================================================================
 * TaskBuilder Reports add-on, SaaS theme
 * Everything below is scoped to .wppm-rp-shell (Reports page). The rules above
 * are kept for anything else that still uses them.
 * Shell: page header + left menu + panel. Form: .wppm-rp-form. Results:
 * .wppm-rp-result (task report and the Projects Overview, .wppm-pr).
 * ===================================================================== */
.wppm-rp-shell {
  --rp-primary: #4f46e5;
  --rp-primary-dark: #4338ca;
  --rp-primary-light: #eef2ff;
  --rp-ink: #111827;
  --rp-muted: #6b7280;
  --rp-border: #e5e7eb;
  --rp-soft: #f8fafc;
  --rp-surface: #ffffff;
  --rp-done: #16a34a;
  --rp-done-light: #dcfce7;
  --rp-warn: #d97706;
  --rp-warn-light: #fef3c7;
  --rp-danger: #dc2626;
  --rp-danger-light: #fee2e2;
  --rp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
  margin: 20px 20px 20px 0;
  color: var(--rp-ink);
  font-family: var(--rp-font);
  font-size: 13.5px;
}
.wppm-rp-shell *,
.wppm-rp-shell *::before,
.wppm-rp-shell *::after {
  box-sizing: border-box;
}
.wppm-rp-shell .dashicons {
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 1;
}
.wppm-rp-shell .wppm_padding_space {
  display: none;
}

/* ---------- Page header ---------- */
.wppm-rp-page-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
}
.wppm-rp-shell .wppm-rp-page-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 6px 16px -6px rgba(79,70,229,.55);
}
.wppm-rp-shell .wppm_reports_header {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--rp-ink);
  font: 700 22px/1.25 var(--rp-font);
  letter-spacing: -0.02em;
}
.wppm-rp-page-sub {
  margin: 2px 0 0;
  color: var(--rp-muted);
  font-size: 13px;
}

/* ---------- Layout: left menu + panel ---------- */
.wppm-rp-shell .wppm-rp-layout {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 0;
}
.wppm-rp-shell .wppm-rp-layout::before,
.wppm-rp-shell .wppm-rp-layout::after {
  display: none;
}
.wppm-rp-shell .wppm_report_setting_col1 {
  position: sticky;
  top: 46px;
  flex: 0 0 230px;
  width: 230px;
  float: none;
  padding: 0;
}
.wppm-rp-shell .wppm_report_setting_col2 {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  min-height: 320px;
  float: none;
  padding: 0;
}
.wppm-rp-shell .wppm_report_setting_col2 > .wppm_loading_icon {
  padding: 80px 0;
  border: 1px solid var(--rp-border);
  border-radius: 14px;
  background: var(--rp-surface);
}

/* Menu */
.wppm-rp-shell .wppm_report_setting_pills {
  margin: 0;
  padding: 8px;
  border: 1px solid var(--rp-border);
  border-radius: 14px;
  background: var(--rp-surface);
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.wppm-rp-shell .wppm_report_setting_pills > li {
  float: none;
  margin: 0 0 2px !important;
  border-radius: 9px !important;
  background: transparent;
  color: inherit !important;
}
.wppm-rp-shell .wppm_report_setting_pills > li.wppm-rp-nav-heading {
  margin: 10px 0 4px !important;
  padding: 0 10px;
  color: #9ca3af !important;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.wppm-rp-shell .wppm_report_setting_pills > li.wppm-rp-nav-heading:first-child {
  margin-top: 4px !important;
}
.wppm-rp-shell .wppm_report_setting_pills > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  background: transparent !important;
  color: #374151 !important;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .12s ease, color .12s ease;
}
.wppm-rp-shell .wppm_report_setting_pills > li > a::before {
  content: "\f163"; /* dashicons-list-view (fallback for add-on pills) */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font: normal 15px/1 dashicons;
  transition: background-color .12s ease, color .12s ease;
}
.wppm-rp-shell #wppm_projects_report > a::before    { content: "\f322"; } /* portfolio */
.wppm-rp-shell #wppm_all_reports > a::before        { content: "\f163"; } /* list-view */
.wppm-rp-shell #wppm_overdue_tasks > a::before      { content: "\f534"; } /* warning */
.wppm-rp-shell #wppm_complete_tasks > a::before     { content: "\f12a"; } /* yes-alt */
.wppm-rp-shell #wppm_assigned_user_tasks > a::before { content: "\f110"; } /* admin-users */
.wppm-rp-shell #wppm_unassigned_tasks > a::before   { content: "\f307"; } /* groups */
.wppm-rp-shell .wppm_report_setting_pills > li > a:hover,
.wppm-rp-shell .wppm_report_setting_pills > li > a:focus {
  background: var(--rp-soft) !important;
  color: var(--rp-ink) !important;
  outline: none;
}
.wppm-rp-shell .wppm_report_setting_pills > li > a:focus-visible {
  box-shadow: 0 0 0 3px var(--rp-primary-light);
}
.wppm-rp-shell .wppm_report_setting_pills > li.active > a,
.wppm-rp-shell .wppm_report_setting_pills > li.active > a:hover,
.wppm-rp-shell .wppm_report_setting_pills > li.active > a:focus {
  background: var(--rp-primary-light) !important;
  color: var(--rp-primary-dark) !important;
  font-weight: 600;
}
.wppm-rp-shell .wppm_report_setting_pills > li.active > a::before {
  background: var(--rp-primary);
  color: #fff;
}

/* ---------- Panel header (form + results) ---------- */
.wppm-rp-shell .wppm-rp-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
.wppm-rp-shell .wppm-rp-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--rp-primary-light);
  color: var(--rp-primary);
  font-size: 19px;
}
.wppm-rp-panel-title {
  flex: 1 1 auto;
  min-width: 0;
}
.wppm-rp-shell .wppm-rp-panel-title .wppm-heading-inline {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--rp-ink);
  font: 700 17px/1.3 var(--rp-font);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.wppm-rp-shell .wppm-rp-panel-title p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 3px 0 0;
  color: var(--rp-muted);
  font-size: 12.5px;
}
.wppm-rp-shell .wppm-rp-help {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--rp-border);
  border-radius: 8px;
  background: var(--rp-surface);
  color: #374151;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}
.wppm-rp-shell .wppm-rp-help:hover {
  border-color: var(--rp-primary);
  color: var(--rp-primary);
}
.wppm-rp-type-badge {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--rp-primary-light);
  color: var(--rp-primary-dark);
  font-size: 11.5px;
  font-weight: 600;
}
.wppm-rp-range {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}
.wppm-rp-shell .wppm-rp-range .dashicons {
  width: 14px;
  height: 14px;
  font-size: 14px;
}

/* ---------- Cards ---------- */
.wppm-rp-shell .wppm-rp-card {
  margin: 0 0 16px;
  padding: 18px 20px;
  border: 1px solid var(--rp-border);
  border-radius: 14px;
  background: var(--rp-surface);
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.wppm-rp-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--rp-ink);
  font-size: 14px;
  font-weight: 700;
}
.wppm-rp-shell .wppm-rp-card-head > .dashicons {
  color: var(--rp-primary);
}
.wppm-rp-count {
  min-width: 22px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
}

/* Buttons (wppm-add-new-btn inside reports) */
.wppm-rp-shell .wppm-add-new-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  top: 0;
  height: 38px;
  margin: 0 !important;
  padding: 0 16px;
  border: 1px solid var(--rp-primary) !important;
  border-radius: 9px !important;
  background: var(--rp-primary) !important;
  color: #fff !important;
  font: 600 13px/1 var(--rp-font);
  text-shadow: none;
  box-shadow: 0 1px 2px rgba(16,24,40,.12);
  cursor: pointer;
  transition: background-color .12s ease, transform .12s ease;
}
.wppm-rp-shell .wppm-add-new-btn:hover {
  border-color: var(--rp-primary-dark) !important;
  background: var(--rp-primary-dark) !important;
}
.wppm-rp-shell .wppm-add-new-btn:active {
  transform: translateY(1px);
}
.wppm-rp-shell .wppm-add-new-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(79,70,229,.30);
}
.wppm-rp-shell .wppm-rp-export {
  display: inline-flex;
  gap: 8px;
  margin-left: auto;
}
.wppm-rp-shell .wppm-add-new-btn.wppm-rp-export-btn {
  height: 32px;
  padding: 0 12px;
  border-color: var(--rp-border) !important;
  background: var(--rp-surface) !important;
  color: #374151 !important;
  font-size: 12.5px;
  box-shadow: none;
}
.wppm-rp-shell .wppm-add-new-btn.wppm-rp-export-btn:hover {
  border-color: var(--rp-primary) !important;
  background: var(--rp-primary-light) !important;
  color: var(--rp-primary) !important;
}

/* Inputs */
.wppm-rp-shell .wppm-rp-input-icon,
.wppm-rp-shell .wppm-rp-search {
  position: relative;
  display: block;
}
.wppm-rp-shell .wppm-rp-input-icon > .dashicons,
.wppm-rp-shell .wppm-rp-search > .dashicons {
  position: absolute;
  top: 50%;
  left: 11px;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  z-index: 1;
}
.wppm-rp-shell .wppm-rp-search > .dashicons {
  top: 20px;
}
.wppm-rp-shell input[type="text"],
.wppm-rp-shell select,
.wppm-rp-shell .form-control {
  height: 38px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--rp-border) !important;
  border-radius: 9px !important;
  background-color: #fff;
  box-shadow: none !important;
  color: var(--rp-ink);
  font: 13.5px var(--rp-font);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.wppm-rp-shell .wppm-rp-input-icon input[type="text"],
.wppm-rp-shell .wppm-rp-search input[type="text"] {
  width: 100%;
  padding-left: 34px !important;
}
.wppm-rp-shell input[type="text"][readonly] {
  background-color: #fff;
  cursor: pointer;
}
.wppm-rp-shell input[type="text"]:focus,
.wppm-rp-shell select:focus,
.wppm-rp-shell .form-control:focus {
  outline: none;
  border-color: var(--rp-primary) !important;
  box-shadow: 0 0 0 3px var(--rp-primary-light) !important;
}
.wppm-rp-shell select + .select2-container {
  width: 100% !important;
  max-width: 100%;
}
.wppm-rp-shell .select2-container .select2-selection--single {
  height: 40px;
  border: 1px solid var(--rp-border);
  border-radius: 9px;
}
.wppm-rp-shell .select2-container .select2-selection__rendered {
  padding-left: 12px;
  line-height: 38px !important;
  font-size: 13.5px;
}
.wppm-rp-shell .select2-container .select2-selection__arrow {
  height: 38px !important;
  right: 6px;
}
.wppm-rp-shell .select2-container--open .select2-selection--single,
.wppm-rp-shell .select2-container--focus .select2-selection--single {
  border-color: var(--rp-primary);
  box-shadow: 0 0 0 3px var(--rp-primary-light);
}

/* ---------- Report form ---------- */
.wppm-rp-form .wppm-rp-field {
  margin: 0 0 18px;
}
.wppm-rp-shell .wppm-rp-form .wppm-report-title-inline {
  display: block;
  margin: 0 0 7px;
  padding: 0;
  color: #374151;
  font: 600 11px/1.4 var(--rp-font) !important;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.wppm-rp-hint {
  margin: 8px 0 0;
  color: var(--rp-muted);
  font-size: 12.5px;
}
.wppm-rp-includes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wppm-rp-shell #wppm_reports_form .wppm-rp-include {
  position: relative;
  margin: 0;
  cursor: pointer;
  font: inherit !important;
}
.wppm-rp-shell .wppm-rp-include input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.wppm-rp-include span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px 0 10px;
  border: 1px solid var(--rp-border);
  border-radius: 999px;
  background: #fff;
  color: #374151;
  font: 600 12.5px/1 var(--rp-font);
  user-select: none;
  transition: border-color .12s ease, background-color .12s ease, color .12s ease;
}
.wppm-rp-include span::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  background: #fff center / 10px 10px no-repeat;
  transition: background-color .12s ease, border-color .12s ease;
}
.wppm-rp-include:hover span {
  border-color: #cbd5e1;
  background: var(--rp-soft);
}
.wppm-rp-include input:checked + span {
  border-color: #c7d2fe;
  background: var(--rp-primary-light);
  color: var(--rp-primary-dark);
}
.wppm-rp-include input:checked + span::before {
  border-color: var(--rp-primary);
  background-color: var(--rp-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.wppm-rp-include input:focus-visible + span {
  box-shadow: 0 0 0 3px var(--rp-primary-light);
}
.wppm-rp-actions {
  display: flex;
  padding-top: 16px;
  border-top: 1px solid var(--rp-border);
}

/* Member chips (Assigned User Tasks) */
.wppm-rp-chips {
  margin-top: 10px;
}
.wppm-rp-shell .wppm-rp-chips ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wppm-rp-shell .wppm-rp-chips .wppm_filter_display_element {
  float: none;
  max-width: 100% !important;
  margin: 0 !important;
}
.wppm-rp-shell .wppm-rp-chips .flex-container {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: auto;
  margin: 0;
  padding: 3px 3px 3px 4px;
  border: 1px solid var(--rp-border);
  border-radius: 999px;
  background: #fff;
}
.wppm-rp-shell .wppm-rp-chips .flex-container::before {
  content: "\f110";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--rp-primary-light);
  color: var(--rp-primary);
  font: normal 14px/1 dashicons;
}
.wppm-rp-shell .wppm-rp-chips .wppm_filter_display_text {
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--rp-ink);
  font-size: 13px;
  font-weight: 600;
}
.wppm-rp-shell .wppm-rp-chips .wppm_filter_display_remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
  border-radius: 50%;
  cursor: pointer;
}
.wppm-rp-shell .wppm-rp-chips .wppm_filter_display_remove img {
  width: 10px;
  height: 10px;
  opacity: .55;
}
.wppm-rp-shell .wppm-rp-chips .wppm_filter_display_remove:hover {
  background: var(--rp-danger-light);
}
.wppm-rp-search .ui-autocomplete {
  max-height: 220px;
  padding: 4px;
  overflow-y: auto;
  border: 1px solid var(--rp-border);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 28px -8px rgba(16,24,40,.22);
  z-index: 100001;
}
.wppm-rp-search .ui-menu-item-wrapper {
  padding: 7px 10px;
  border: none !important;
  border-radius: 7px;
}
.wppm-rp-search .ui-menu-item-wrapper.ui-state-active {
  margin: 0;
  background: var(--rp-primary-light);
  color: var(--rp-primary);
}

/* ---------- Results: toolbar ---------- */
.wppm-rp-shell .wppm-rp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--rp-border);
  border-radius: 14px;
  background: var(--rp-surface) !important;
}
.wppm-rp-toolbar-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 150px;
}
.wppm-rp-shell .wppm-rp-toolbar-field label {
  margin: 0;
  color: var(--rp-muted);
  font: 600 11px/1.4 var(--rp-font) !important;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.wppm-rp-shell .wppm-rp-toolbar-field select {
  min-width: 150px;
  padding-right: 28px;
}
.wppm-rp-shell .wppm-rp-toolbar #wppm_generate_custom_reports {
  margin-top: 0 !important;
}
.wppm-pr-reset {
  align-self: center;
  margin-bottom: 8px;
  color: var(--rp-muted);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.wppm-pr-reset:hover {
  color: var(--rp-primary);
}

/* ---------- KPI tiles ---------- */
.wppm-rp-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}
.wppm-rp-kpi {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--rp-border);
  border-radius: 14px;
  background: var(--rp-surface);
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
  overflow: hidden;
}
.wppm-rp-shell .wppm-rp-kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--rp-primary-light);
  color: var(--rp-primary);
  font-size: 19px;
}
.wppm-rp-kpi.is-done .wppm-rp-kpi-icon   { background: var(--rp-done-light); color: var(--rp-done); }
.wppm-rp-kpi.is-open .wppm-rp-kpi-icon   { background: #e0f2fe; color: #0284c7; }
.wppm-rp-kpi.is-rate .wppm-rp-kpi-icon   { background: #f3e8ff; color: #9333ea; }
.wppm-rp-kpi.is-warn .wppm-rp-kpi-icon   { background: var(--rp-warn-light); color: var(--rp-warn); }
.wppm-rp-kpi.is-danger .wppm-rp-kpi-icon { background: var(--rp-danger-light); color: var(--rp-danger); }
.wppm-rp-kpi-label {
  display: block;
  color: var(--rp-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.wppm-rp-kpi-value {
  display: block;
  color: var(--rp-ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.wppm-rp-kpi-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: #f1f5f9;
}
.wppm-rp-kpi-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #a855f7, #6366f1);
}

/* ---------- Project details ---------- */
.wppm-rp-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px 18px;
  margin: 0;
}
.wppm-rp-fact.is-wide {
  grid-column: 1 / -1;
}
.wppm-rp-shell .wppm-rp-fact dt {
  margin: 0 0 3px;
  color: var(--rp-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.wppm-rp-shell .wppm-rp-fact dd {
  margin: 0;
  color: var(--rp-ink);
  font-size: 13.5px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.wppm-rp-fact.is-wide dd p {
  margin: 0 0 6px;
}

/* ---------- Charts ---------- */
.wppm-rp-charts {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 16px;
  margin: 0 0 16px;
}
.wppm-rp-shell .wppm-rp-chart {
  min-width: 0;
  margin: 0;
  padding: 14px 16px 8px;
}
.wppm-pr .wppm-rp-charts {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
}
.wppm-rp-shell .wppm-rp-chart .highcharts-description:empty {
  display: none;
}

/* ---------- Tables ---------- */
.wppm-rp-shell .wppm-rp-tasks {
  padding-bottom: 12px;
}
.wppm-rp-shell .wppm-rp-tasks .table-responsive {
  margin: 0;
  border: 1px solid var(--rp-border);
  border-radius: 12px;
  overflow: auto;
}
.wppm-rp-shell .wppm-rp-table {
  width: 100%;
  margin: 0 !important;
  border: none !important;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent !important;
}
.wppm-rp-shell .wppm-rp-table th {
  padding: 10px 12px !important;
  border: none !important;
  border-bottom: 1px solid var(--rp-border) !important;
  /* background-color only: the "background" shorthand would reset DataTables'
     sort-arrow image position (center right) and push it to one side. */
  background-color: var(--rp-soft) !important;
  color: var(--rp-muted) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}
.wppm-rp-shell .wppm-rp-table td {
  padding: 10px 12px !important;
  border: none !important;
  border-bottom: 1px solid var(--rp-border) !important;
  background: #fff;
  font-size: 13px;
  vertical-align: middle;
}
.wppm-rp-shell .wppm-rp-table tbody tr:last-child td {
  border-bottom: none !important;
}
.wppm-rp-shell .wppm-rp-table tbody tr:hover td {
  background: var(--rp-soft);
}
.wppm-rp-shell .wppm-rp-table .is-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.wppm-rp-task-name {
  font-weight: 600;
}
.wppm-rp-shell .wppm-rp-date {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.wppm-rp-shell .wppm-rp-date.is-overdue {
  color: var(--rp-danger);
  font-weight: 600;
}
.wppm-rp-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.wppm-rp-dash {
  color: #cbd5e1;
  font-weight: 600;
}
.wppm-rp-avatars {
  display: inline-flex;
  align-items: center;
}
.wppm-rp-avatars > a {
  display: inline-flex;
  margin-left: -6px;
}
.wppm-rp-avatars > a:first-child {
  margin-left: 0;
}
.wppm-rp-avatars .avatar {
  width: 26px !important;
  height: 26px !important;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--rp-border);
}
.wppm-rp-avatars #wppm_avatar.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #e5e7eb !important;
  color: #374151;
  font-size: 10px;
  font-weight: 700;
}
.wppm-rp-progress {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 110px;
}
.wppm-rp-progress-bar {
  flex: 1 1 auto;
  height: 6px;
  border-radius: 999px;
  background: #eef0f3;
  overflow: hidden;
}
.wppm-rp-progress-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--rp-primary);
}
.wppm-rp-progress.is-complete .wppm-rp-progress-bar > span {
  background: var(--rp-done);
}
.wppm-rp-progress-val {
  min-width: 34px;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Empty + pagination */
.wppm-rp-shell .wppm-rp-empty:not([style*="none"]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  padding: 28px 16px;
  border: 1px dashed var(--rp-border);
  border-radius: 12px;
  background: var(--rp-soft);
  color: var(--rp-muted);
  font-size: 13px;
  text-align: center;
}
.wppm-rp-shell .wppm-rp-empty .dashicons {
  width: 28px;
  height: 28px;
  color: #9ca3af;
  font-size: 28px;
}
.wppm-rp-shell .wppm-rp-empty.is-block strong {
  color: var(--rp-ink);
}
.wppm-rp-shell .wppm-rp-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 0;
}
.wppm-rp-shell .wppm-rp-pagination::before,
.wppm-rp-shell .wppm-rp-pagination::after {
  display: none;
}
.wppm-rp-pagination-total {
  color: var(--rp-muted);
  font-size: 12.5px;
}
.wppm-rp-pagination-total strong {
  color: var(--rp-ink);
}
.wppm-rp-shell .wppm-rp-pagination .wppm_task_pagination {
  align-items: center;
  gap: 8px;
  float: none;
  width: auto;
  padding: 0;
}
.wppm-rp-shell .wppm-rp-pagination .wppm-pagination-txt {
  color: var(--rp-muted);
  font-size: 12.5px;
}
.wppm-rp-shell .wppm-rp-pagination .wppm_pagination_prev,
.wppm-rp-shell .wppm-rp-pagination .wppm_pagination_next {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--rp-border);
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.wppm-rp-shell .wppm-rp-pagination .wppm_pagination_prev:hover,
.wppm-rp-shell .wppm-rp-pagination .wppm_pagination_next:hover {
  border-color: var(--rp-primary);
  background: var(--rp-primary-light);
  color: var(--rp-primary);
}

/* ---------- Projects Overview specifics ---------- */
.wppm-pr-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}
.wppm-pr-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--rp-primary-light);
  color: var(--rp-primary);
  font-size: 13px;
  font-weight: 700;
}
.wppm-pr-name-text {
  display: block;
  color: var(--rp-ink);
  font-weight: 600;
}
.wppm-pr-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--rp-muted);
  font-size: 11.5px;
}
.wppm-pr-meta:empty {
  display: none;
}
.wppm-pr-archived {
  padding: 0 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 10.5px;
  font-weight: 600;
}
.wppm-pr-sub {
  display: block;
  color: var(--rp-muted);
  font-size: 11px;
}
.wppm-pr-overdue {
  display: inline-flex;
  min-width: 24px;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--rp-danger-light);
  color: var(--rp-danger);
  font-size: 12px;
  font-weight: 700;
}
.wppm-rp-shell .wppm-pr-note {
  margin: 12px 0 0;
  color: var(--rp-muted);
  font-size: 12px;
}

/* DataTables controls (Projects Overview table) */
.wppm-rp-shell .dataTables_wrapper .dataTables_length,
.wppm-rp-shell .dataTables_wrapper .dataTables_filter {
  margin: 0 0 10px;
  color: var(--rp-muted);
  font-size: 12.5px;
}
.wppm-rp-shell .dataTables_wrapper .dataTables_length select,
.wppm-rp-shell .dataTables_wrapper .dataTables_filter input {
  height: 34px;
  margin: 0 6px;
  padding: 0 10px;
}
.wppm-rp-shell .dataTables_wrapper .dataTables_length select {
  padding-right: 26px;
}
.wppm-rp-shell .dataTables_wrapper .dataTables_info {
  padding-top: 12px;
  color: var(--rp-muted);
  font-size: 12.5px;
}
.wppm-rp-shell .dataTables_wrapper .dataTables_paginate {
  padding-top: 8px;
}
.wppm-rp-shell .dataTables_wrapper .dataTables_paginate .paginate_button {
  min-width: 32px;
  height: 32px;
  margin-left: 4px;
  padding: 0 10px !important;
  border: 1px solid var(--rp-border) !important;
  border-radius: 8px;
  background: #fff !important;
  color: var(--rp-ink) !important;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 30px !important;
}
.wppm-rp-shell .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  border-color: var(--rp-primary) !important;
  background: var(--rp-primary-light) !important;
  color: var(--rp-primary) !important;
}
.wppm-rp-shell .dataTables_wrapper .dataTables_paginate .paginate_button.current,
.wppm-rp-shell .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  border-color: var(--rp-primary) !important;
  background: var(--rp-primary) !important;
  color: #fff !important;
}
.wppm-rp-shell .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.wppm-rp-shell .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
  border-color: var(--rp-border) !important;
  background: #fff !important;
  color: #cbd5e1 !important;
}
.wppm-rp-shell #wppm_pr_table thead .sorting,
.wppm-rp-shell #wppm_pr_table thead .sorting_asc,
.wppm-rp-shell #wppm_pr_table thead .sorting_desc,
.wppm-rp-shell #wppm_pr_table thead .sorting_asc_disabled,
.wppm-rp-shell #wppm_pr_table thead .sorting_desc_disabled {
  padding-right: 28px !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 16px 16px;
  cursor: pointer;
}
/* Right-aligned number columns: keep the label clear of the arrow */
.wppm-rp-shell #wppm_pr_table thead th.is-num {
  text-align: right;
}

/* ---------- Small screens ---------- */
@media (max-width: 960px) {
  .wppm-rp-charts,
  .wppm-pr .wppm-rp-charts {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 782px) {
  .wppm-rp-shell {
    margin: 12px 10px 12px 0;
  }
  .wppm-rp-shell .wppm-rp-layout {
    flex-direction: column;
  }
  .wppm-rp-shell .wppm_report_setting_col1 {
    position: static;
    flex: none;
    width: 100%;
  }
  .wppm-rp-shell .wppm_report_setting_pills {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
  }
  .wppm-rp-shell .wppm_report_setting_pills > li {
    flex: none;
    margin: 0 !important;
  }
  .wppm-rp-shell .wppm_report_setting_pills > li.wppm-rp-nav-heading {
    display: none;
  }
  .wppm-rp-shell .wppm_report_setting_pills > li > a {
    white-space: nowrap;
  }
  .wppm-rp-shell .wppm_report_setting_col2 {
    width: 100%;
  }
  .wppm-rp-shell .wppm-rp-card {
    padding: 14px;
  }
  .wppm-rp-toolbar-field {
    flex: 1 1 140px;
    min-width: 0;
  }
}
