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

.pm-head h4{
  margin:0;
}

.pm-head p{
  margin:4px 0 0;
  color:#64748b;
  font-size:11px;
}

.pm-progress-info{
  display:flex;
  justify-content:space-between;
  gap:15px;
  margin-top:14px;
  font-size:11px;
}

.pm-progress-info span{
  color:#64748b;
}

.pm-progress-track{
  height:9px;
  margin:7px 0 14px;
  overflow:hidden;
  border-radius:999px;
  background:#e2e8f0;
}

.pm-progress-bar{
  height:100%;
  border-radius:999px;
  background:#0f172a;
  transition:width .25s ease;
}

.pm-create{
  display:grid;
  grid-template-columns:1fr 145px auto;
  gap:8px;
  margin-bottom:14px;
}

.pm-create input{
  min-height:38px;
}

#pmAdd{
  min-height:38px !important;
  padding:7px 12px !important;
  border:0 !important;
  border-radius:8px !important;
  background:#0f172a !important;
  color:#fff !important;
  font-size:10px !important;
  font-weight:700 !important;
  cursor:pointer !important;
}

.pm-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:11px 0;
  border-bottom:1px solid #eef2f7;
}

.pm-item:last-child{
  border-bottom:0;
}

.pm-main strong{
  display:block;
  font-size:12px;
}

.pm-main p{
  margin:4px 0;
  color:#475569;
  font-size:10px;
}

.pm-main small{
  color:#64748b;
  font-size:9px;
}

.pm-completed .pm-main strong{
  text-decoration:line-through;
  opacity:.65;
}

.pm-actions{
  display:flex;
  align-items:center;
  gap:6px;
}

.pm-status{
  min-height:32px;
  padding:4px 7px;
  border:1px solid #cbd5e1;
  border-radius:7px;
  font-size:9px;
}

.pm-delete{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:32px !important;
  height:32px !important;
  min-width:32px !important;
  padding:0 !important;
  border:1px solid #fecaca !important;
  border-radius:7px !important;
  background:#fff1f2 !important;
  color:#b91c1c !important;
  font-size:18px !important;
  line-height:1 !important;
  cursor:pointer !important;
}

.pm-empty{
  padding:15px 0;
  color:#64748b;
  font-size:11px;
  text-align:center;
}

@media(max-width:650px){
  .pm-create{
    grid-template-columns:1fr;
  }

  .pm-item{
    align-items:flex-start;
    flex-direction:column;
  }
}

.pm-move{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:30px !important;
  height:30px !important;
  min-width:30px !important;
  padding:0 !important;
  border:1px solid #cbd5e1 !important;
  border-radius:7px !important;
  background:#f8fafc !important;
  color:#0f172a !important;
  font-size:14px !important;
  font-weight:700 !important;
  line-height:1 !important;
  cursor:pointer !important;
}

.pm-move:hover{
  background:#e2e8f0 !important;
}

.pm-overdue{
  display:inline-block;
  margin-top:6px;
  padding:3px 7px;
  border-radius:999px;
  background:#fee2e2;
  color:#b91c1c;
  font-size:8px;
  font-weight:800;
}

.pm-edit{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:30px !important;
  height:30px !important;
  min-width:30px !important;
  padding:0 !important;
  border:1px solid #cbd5e1 !important;
  border-radius:7px !important;
  background:#fff !important;
  color:#0f172a !important;
  font-size:15px !important;
  line-height:1 !important;
  cursor:pointer !important;
}

.pm-edit:hover{
  background:#f1f5f9 !important;
}

.pm-edit-form{
  margin-top:10px;
  padding:12px;
  border:1px solid #e2e8f0;
  border-radius:9px;
  background:#f8fafc;
}

.pm-edit-form input,
.pm-edit-form textarea{
  display:block;
  width:100%;
  box-sizing:border-box;
  margin-bottom:8px;
  padding:8px 10px;
  border:1px solid #cbd5e1;
  border-radius:7px;
  background:#fff;
  font:inherit;
}

.pm-edit-actions{
  display:flex;
  gap:7px;
}

.pm-edit-save,
.pm-edit-cancel{
  min-height:32px !important;
  padding:5px 10px !important;
  border-radius:7px !important;
  font-size:9px !important;
  font-weight:700 !important;
  cursor:pointer !important;
}

.pm-edit-save{
  border:0 !important;
  background:#0f172a !important;
  color:#fff !important;
}

.pm-edit-cancel{
  border:1px solid #cbd5e1 !important;
  background:#fff !important;
  color:#0f172a !important;
}

.pm-edit-deadline-label{
  display:block;
  margin:2px 0 5px;
  color:#475569;
  font-size:10px;
  font-weight:700;
}


.pm-edit-description-label{
  display:block;
  margin:2px 0 5px;
  color:#475569;
  font-size:10px;
  font-weight:700;
}


.pm-task-section{
  width:100%;
  margin-top:12px;
  padding-top:10px;
  border-top:1px dashed #e2e8f0;
}

.pm-task-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}

.pm-task-section-head > strong{
  font-size:10px;
}

.pm-task-add{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:30px !important;
  padding:5px 8px !important;
  border:1px solid #cbd5e1 !important;
  border-radius:7px !important;
  background:#fff !important;
  color:#0f172a !important;
  font-size:9px !important;
  font-weight:700 !important;
  cursor:pointer !important;
}

.pm-task-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:7px 0;
  border-bottom:1px solid #f1f5f9;
}

.pm-task-open{
  display:block !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  color:#0f172a !important;
  text-align:left !important;
  font-size:10px !important;
  font-weight:700 !important;
  cursor:pointer !important;
}

.pm-task-open:hover{
  text-decoration:underline;
}

.pm-task-info small{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:8px;
}

.pm-task-unlink{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:28px !important;
  height:28px !important;
  min-width:28px !important;
  padding:0 !important;
  border:1px solid #fecaca !important;
  border-radius:7px !important;
  background:#fff1f2 !important;
  color:#b91c1c !important;
  line-height:1 !important;
  cursor:pointer !important;
}

.pm-task-progress{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-bottom:5px;
  color:#64748b;
  font-size:9px;
}

.pm-task-empty{
  padding:8px 0;
  color:#64748b;
  font-size:9px;
}

.pm-task-search-backdrop{
  position:fixed;
  inset:0;
  z-index:60000;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:70px 15px;
  background:rgba(15,23,42,.55);
}

.pm-task-search-modal{
  width:min(650px,100%);
  max-height:80vh;
  overflow:auto;
  border-radius:15px;
  background:#fff;
  box-shadow:0 24px 70px rgba(15,23,42,.3);
}

.pm-task-search-head{
  display:flex;
  justify-content:space-between;
  gap:15px;
  padding:17px;
  border-bottom:1px solid #e2e8f0;
}

.pm-task-search-head h3{
  margin:0;
}

.pm-task-search-head p{
  margin:4px 0 0;
  color:#64748b;
  font-size:10px;
}

#pmTaskSearchClose{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:36px !important;
  height:36px !important;
  min-width:36px !important;
  padding:0 !important;
  border:1px solid #cbd5e1 !important;
  border-radius:8px !important;
  background:#f8fafc !important;
  color:#0f172a !important;
  font-size:21px !important;
  line-height:1 !important;
  cursor:pointer !important;
}

.pm-task-search-body{
  padding:17px;
}

#pmTaskSearchInput{
  width:100%;
  min-height:42px;
  box-sizing:border-box;
  margin-bottom:10px;
  padding:8px 10px;
  border:1px solid #cbd5e1;
  border-radius:8px;
}

.pm-task-search-result{
  display:flex !important;
  justify-content:space-between !important;
  gap:15px !important;
  width:100% !important;
  padding:10px !important;
  border:0 !important;
  border-bottom:1px solid #e2e8f0 !important;
  background:#fff !important;
  color:#0f172a !important;
  text-align:left !important;
  cursor:pointer !important;
}

.pm-task-search-result:hover{
  background:#f8fafc !important;
}

.pm-task-search-result:disabled{
  opacity:.5;
  cursor:not-allowed !important;
}

.pm-task-search-result small,
.pm-task-search-result span{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:8px;
}

.pm-task-new{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:30px !important;
  padding:5px 9px !important;
  border:0 !important;
  border-radius:7px !important;
  background:#0f172a !important;
  color:#fff !important;
  font-size:9px !important;
  font-weight:700 !important;
  cursor:pointer !important;
}

.pm-task-new:hover{
  opacity:.9;
}

.pm-new-task-backdrop{
  position:fixed;
  inset:0;
  z-index:65000;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:60px 15px;
  background:rgba(15,23,42,.58);
}

.pm-new-task-modal{
  width:min(700px,100%);
  max-height:85vh;
  overflow:auto;
  border-radius:16px;
  background:#fff;
  box-shadow:0 24px 70px rgba(15,23,42,.32);
}

.pm-new-task-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:15px;
  padding:18px 20px;
  border-bottom:1px solid #e2e8f0;
}

.pm-new-task-head h3{
  margin:0;
}

.pm-new-task-head p{
  margin:5px 0 0;
  color:#64748b;
  font-size:10px;
}

#pmNewTaskClose{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:38px !important;
  height:38px !important;
  min-width:38px !important;
  min-height:38px !important;
  padding:0 !important;
  border:1px solid #cbd5e1 !important;
  border-radius:9px !important;
  background:#f8fafc !important;
  color:#0f172a !important;
  font-size:22px !important;
  line-height:1 !important;
  cursor:pointer !important;
}

.pm-new-task-body{
  padding:20px;
}

.pm-new-task-body > label,
.pm-new-task-grid label{
  display:block;
  margin:0 0 5px;
  color:#475569;
  font-size:10px;
  font-weight:700;
}

.pm-new-task-body > input,
.pm-new-task-body > textarea{
  width:100%;
  box-sizing:border-box;
  margin-bottom:14px;
  padding:9px 11px;
  border:1px solid #cbd5e1;
  border-radius:8px;
  font:inherit;
}

.pm-new-task-grid{
  display:grid;
  grid-template-columns:
    repeat(2,minmax(0,1fr));
  gap:12px;
}

.pm-new-task-grid select,
.pm-new-task-grid input{
  width:100%;
  box-sizing:border-box;
  min-height:39px;
  padding:7px 9px;
  border:1px solid #cbd5e1;
  border-radius:8px;
  background:#fff;
}

.pm-new-task-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  padding:15px 20px;
  border-top:1px solid #e2e8f0;
}

.pm-new-task-save,
.pm-new-task-cancel{
  min-height:37px !important;
  padding:7px 13px !important;
  border-radius:8px !important;
  font-size:10px !important;
  font-weight:700 !important;
  cursor:pointer !important;
}

.pm-new-task-save{
  border:0 !important;
  background:#0f172a !important;
  color:#fff !important;
}

.pm-new-task-cancel{
  border:1px solid #cbd5e1 !important;
  background:#fff !important;
  color:#0f172a !important;
}

@media(max-width:650px){

  .pm-new-task-grid{
    grid-template-columns:1fr;
  }

  .pm-task-section-head{
    align-items:flex-start;
    flex-wrap:wrap;
  }
}


.pm-task-section-head{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
}

.pm-task-section-head > strong{
  flex:1 1 auto !important;
}

.pm-task-new,
.pm-task-add{
  flex:0 0 auto !important;
}


.pm-task-section-head{
  flex-wrap:nowrap !important;
}

.pm-task-new{
  margin-left:auto !important;
}

.pm-task-add{
  margin-left:0 !important;
}


.pm-task-progress-track{
  width:100%;
  height:6px;
  margin:4px 0 9px;
  overflow:hidden;
  border-radius:999px;
  background:#e2e8f0;
}

.pm-task-progress-fill{
  height:100%;
  border-radius:999px;
  background:#0f172a;
  transition:width .25s ease;
}

.pm-task-progress span{
  font-weight:700;
  color:#0f172a;
}
