
.project-dashboard-center{
  margin:18px 0;
  padding:16px;
  border:1px solid #e2e8f0;
  border-radius:12px;
  background:#fff;
}

.pd-head h4{
  margin:0;
}

.pd-head p{
  margin:4px 0 12px;
  color:#64748b;
  font-size:10px;
}

.project-dashboard-grid{
  display:grid;
  grid-template-columns:
    repeat(3,minmax(0,1fr));
  gap:10px;
}

.pd-card{
  padding:12px;
  border:1px solid #e2e8f0;
  border-radius:9px;
  background:#f8fafc;
}

.pd-card span,
.pd-card small{
  display:block;
}

.pd-card span{
  color:#64748b;
  font-size:9px;
  font-weight:600;
}

.pd-card strong{
  display:block;
  margin-top:5px;
  font-size:17px;
}

.pd-card small{
  margin-top:3px;
  color:#64748b;
  font-size:8px;
}

.pd-warning{
  border-color:#fecaca;
  background:#fff7f7;
}

.pd-warning strong{
  color:#b91c1c;
}

.pd-progress{
  height:6px;
  margin-top:7px;
  overflow:hidden;
  border-radius:999px;
  background:#e2e8f0;
}

.pd-progress-fill{
  height:100%;
  border-radius:999px;
  background:#0f172a;
}

.pd-date{
  font-size:13px !important;
}

.pd-loading{
  color:#64748b;
  font-size:10px;
}

@media(max-width:800px){
  .project-dashboard-grid{
    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }
}

@media(max-width:520px){
  .project-dashboard-grid{
    grid-template-columns:1fr;
  }
}


.pd-actions-section{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid #e2e8f0;
}

.pd-actions-head h4{
  margin:0;
  font-size:12px;
}

.pd-actions-head p{
  margin:3px 0 10px;
  color:#64748b;
  font-size:9px;
}

.pd-action-row{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:15px !important;
  width:100% !important;
  padding:10px 11px !important;
  border:0 !important;
  border-bottom:1px solid #eef2f7 !important;
  background:#fff !important;
  color:#0f172a !important;
  text-align:left !important;
  cursor:pointer !important;
}

.pd-action-row:hover{
  background:#f8fafc !important;
}

.pd-action-main strong{
  display:block;
  font-size:10px;
}

.pd-action-meta{
  display:flex;
  flex-wrap:wrap;
  gap:5px 10px;
  margin-top:4px;
}

.pd-action-meta span{
  color:#64748b;
  font-size:8px;
}

.pd-action-due{
  min-width:105px;
  text-align:right;
}

.pd-action-due strong{
  display:block;
  font-size:9px;
}

.pd-action-overdue{
  background:#fffafa !important;
}

.pd-action-overdue-label{
  display:inline-block !important;
  margin-bottom:3px;
  padding:2px 5px;
  border-radius:999px;
  background:#fee2e2;
  color:#b91c1c !important;
  font-size:7px !important;
  font-weight:800;
}

.pd-actions-empty{
  padding:13px;
  border:1px dashed #cbd5e1;
  border-radius:8px;
  color:#64748b;
  font-size:9px;
  text-align:center;
}

@media(max-width:600px){

  .pd-action-row{
    align-items:flex-start !important;
    flex-direction:column !important;
  }

  .pd-action-due{
    min-width:0;
    text-align:left;
  }
}

.project-health{
  margin-bottom:14px;
  padding:15px;
  border:1px solid #e2e8f0;
  border-radius:11px;
  background:#f8fafc;
}

.pd-health-main{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
}

.pd-health-label{
  display:block;
  color:#64748b;
  font-size:9px;
  font-weight:700;
}

.pd-health-status{
  display:block;
  margin-top:3px;
  font-size:16px;
}

.pd-health-score{
  padding:5px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.7);
  font-size:9px;
  font-weight:700;
}

.pd-health-metrics{
  display:grid;
  grid-template-columns:
    repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}

.pd-health-metrics > div{
  padding:8px;
  border-radius:8px;
  background:rgba(255,255,255,.65);
}

.pd-health-metrics span{
  display:block;
  color:#64748b;
  font-size:8px;
}

.pd-health-metrics strong{
  display:block;
  margin-top:3px;
  font-size:12px;
}

.pd-health-reasons,
.pd-health-ok{
  margin-top:10px;
  padding-top:9px;
  border-top:1px solid rgba(0,0,0,.08);
  font-size:9px;
}

.pd-health-reasons div{
  margin-top:3px;
}

.pd-health-healthy{
  border-color:#bbf7d0;
  background:#f0fdf4;
}

.pd-health-attention{
  border-color:#fde68a;
  background:#fffbeb;
}

.pd-health-critical{
  border-color:#fecaca;
  background:#fef2f2;
}

.pd-health-completed{
  border-color:#bfdbfe;
  background:#eff6ff;
}

.pd-health-cancelled{
  background:#f8fafc;
}

.pd-health-critical
.pd-health-status{
  color:#b91c1c;
}

.pd-health-attention
.pd-health-status{
  color:#92400e;
}

.pd-health-healthy
.pd-health-status{
  color:#166534;
}

@media(max-width:600px){

  .pd-health-metrics{
    grid-template-columns:1fr;
  }
}


#projectNotificationPreference{
  margin-bottom:12px;
}

.project-pref-options{
  display:grid;
  grid-template-columns:
    repeat(2,minmax(0,1fr));
  gap:6px 14px;
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid #e2e8f0;
}

.project-pref-option{
  display:flex;
  align-items:center;
  gap:7px;
  padding:5px 0;
  font-size:9px;
  cursor:pointer;
}

.project-pref-option input{
  margin:0;
}

.project-pref-option input:disabled + span{
  opacity:.45;
}

@media(max-width:600px){
  .project-pref-options{
    grid-template-columns:1fr;
  }
}

/* =========================================
   PROJECT NOTIFICATION PREFERENCES
   ========================================= */

#projectNotificationPreference{
  padding:16px !important;
  margin:0 0 12px 0 !important;
}

#projectNotificationPreference
.project-pref-master{
  margin:0 !important;
}

#projectNotificationPreference
.chat-pref-row{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  width:100% !important;
}

#projectNotificationPreference
.chat-pref-row input[type="checkbox"],
#projectNotificationPreference
.project-pref-option input[type="checkbox"]{
  display:block !important;
  width:16px !important;
  min-width:16px !important;
  max-width:16px !important;
  height:16px !important;
  min-height:16px !important;
  margin:0 !important;
  padding:0 !important;
  flex:0 0 16px !important;
}

#projectNotificationPreference
.chat-pref-text{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  gap:2px !important;
  margin:0 !important;
  cursor:pointer !important;
}

#projectNotificationPreference
.chat-pref-text strong{
  display:block !important;
  margin:0 !important;
  font-size:13px !important;
  line-height:1.35 !important;
}

#projectNotificationPreference
.chat-pref-text small{
  display:block !important;
  margin:0 !important;
  color:#64748b !important;
  font-size:10px !important;
  line-height:1.4 !important;
}

#projectNotificationPreference
.project-pref-options{
  display:grid !important;
  grid-template-columns:
    repeat(2,minmax(0,1fr)) !important;
  gap:8px 18px !important;
  width:100% !important;
  margin-top:14px !important;
  padding-top:12px !important;
  border-top:1px solid #e2e8f0 !important;
}

#projectNotificationPreference
.project-pref-option{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:8px !important;
  width:auto !important;
  min-height:28px !important;
  margin:0 !important;
  padding:4px 0 !important;
  cursor:pointer !important;
}

#projectNotificationPreference
.project-pref-option span{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  font-size:11px !important;
  line-height:1.3 !important;
  white-space:normal !important;
}

#projectNotificationPreference
.project-pref-option input:disabled + span{
  opacity:.45 !important;
}

@media(max-width:700px){

  #projectNotificationPreference
  .project-pref-options{
    grid-template-columns:1fr !important;
  }
}

