/* UI Refresh v9 — 프로젝트 현황 단순화 / 업무·협의·공유 분리 */

/* 프로젝트 현황: 목록 비교가 우선 */
.projectSummaryGridCompact{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  max-width:none;
  gap:12px!important;
  margin-bottom:14px!important;
}
.projectSummaryGridCompact .projSummaryCard{
  min-height:92px;
  padding:15px 17px;
  box-shadow:none;
}
.projectFilterCompact{
  margin:0 0 10px!important;
  padding:10px 12px!important;
  border:1px solid #e7eaf0!important;
  border-radius:12px!important;
  background:#fff!important;
}
.projectFilterCompact input,.projectFilterCompact select{min-height:36px!important;font-size:12px!important}
.projectFilterCompact .boardModeBtn{min-height:34px!important;padding:6px 11px!important}
.projectFilterCompact #projectResetFilterBtn{margin-left:auto!important}

.projectScheduleStrip{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  margin:0 0 12px;
  padding:8px 12px;
  overflow-x:auto;
  border:1px solid #e7eaf0;
  border-radius:11px;
  background:#fbfcfe;
  white-space:nowrap;
}
.projectScheduleStripLabel{font-size:11px;font-weight:800;color:#394150;margin-right:2px}
.scheduleStripItem{
  border:0;
  border-left:1px solid #e5e7eb;
  background:transparent;
  color:#4b5563;
  padding:3px 8px;
  font-size:11.5px;
  cursor:pointer;
  white-space:nowrap;
}
.scheduleStripItem b{color:#4f46e5;margin-right:4px}
.scheduleStripMore{margin-left:auto!important;white-space:nowrap}

.projectListTableCompact{box-shadow:none!important;border-radius:12px!important}
.projectListTableCompact .projectListHead,
.projectListTableCompact .projectListRow{
  grid-template-columns:minmax(280px,1.65fr) minmax(155px,.85fr) minmax(230px,1.25fr) minmax(105px,.55fr) minmax(90px,.45fr)!important;
}
.projectListTableCompact .projectListHead{padding:11px 15px!important}
.projectListTableCompact .projectListRow{min-height:72px;padding:12px 15px!important}
.projectListTableCompact .projectListRow>span{min-width:0}
.projectListTableCompact .projectListRow strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.projectListTableCompact .projectListRow em{display:block;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.projectOverviewGridSimple{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))!important}
.projectOverviewCardSimple{padding:17px!important;box-shadow:none!important}
.projectSimpleFacts{display:grid;grid-template-columns:1fr;gap:7px;margin-top:14px;padding-top:12px;border-top:1px solid #edf0f4}
.projectSimpleFacts span{display:flex;gap:10px;font-size:12px;color:#5f6672;line-height:1.45}
.projectSimpleFacts b{min-width:70px;color:#9298a4;font-size:10.5px;font-weight:700}

/* 프로젝트 상세 헤더 */
.projectBoardCompactHeader{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin:0 0 13px;
  padding:12px 4px 13px;
  border-bottom:1px solid #e5e7eb;
}
.projectBoardCompactHeader h2{margin:0!important;font-size:22px!important;letter-spacing:-.4px;color:#1f2937}
.projectBoardMeta{margin-top:6px;font-size:12px;color:#7b8492;line-height:1.5}
#tab-projectTasks .docTypeTabs{margin:0 0 15px!important}
#tab-projectTasks .v3PageLead{display:none!important}
.overviewBoxSimple{box-shadow:none!important;border-radius:12px!important;background:#fff!important}
.overviewBoxSimple .overviewRow{padding:10px 0!important;border-bottom:1px solid #f0f2f5}
.overviewBoxSimple .overviewRow:last-child{border-bottom:0}

/* 각 탭 헤더와 입력 Form */
.projectPaneHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin:3px 0 12px;
}
.projectPaneHead h3{margin:0;font-size:16px;color:#292e38}
.projectPaneHead p{margin:4px 0 0;font-size:11.5px;color:#8b929d}
.projectPaneHead .approveBtn{min-height:36px;padding:7px 13px;font-size:11.5px;white-space:nowrap}
#taskAddForm,#feedAddForm,#consultationAddForm{max-width:none!important;padding:16px!important;border-radius:13px!important;box-shadow:none!important;border-color:#e6e9ee!important;background:#fff!important}
.projectFormActions{display:flex;gap:8px;margin-top:14px}
.projectFormActions button{min-width:92px;padding:9px 14px!important}
.projectAdvancedDetails{margin-top:12px;border:1px solid #e8eaf0;border-radius:10px;background:#fafbfc}
.projectAdvancedDetails>summary{display:flex;align-items:center;gap:8px;padding:10px 12px;cursor:pointer;font-size:11.5px;font-weight:700;color:#555d69;list-style:none}
.projectAdvancedDetails>summary::-webkit-details-marker{display:none}
.projectAdvancedDetails>summary span{font-weight:500;color:#9aa0aa}
.projectAdvancedBody{padding:11px 12px;border-top:1px solid #e8eaf0}
.feedOptionRow{display:flex;gap:16px;flex-wrap:wrap;margin-top:10px}

/* 업무 목록: 조회 우선, 수정은 펼쳐서 */
.v3TaskTools{margin:6px 0 10px!important}
.taskCardCompact{padding:0!important;margin-bottom:8px!important;border:1px solid #e7e9ed!important;border-radius:12px!important;background:#fff!important;overflow:hidden}
.taskCompactMain{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:13px 14px}
.taskCompactInfo{min-width:0;flex:1}
.taskCompactBadges{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:5px}
.taskCompactTitle{font-size:13.5px;font-weight:750;color:#2d333d;line-height:1.4}
.taskCompactMeta{margin-top:4px;font-size:11px;color:#888f9b}
.taskCompactDescription{margin-top:7px;padding:7px 9px;border-radius:7px;background:#f8f9fb;color:#626a76;font-size:11.5px;line-height:1.5}
.taskCompactActions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;min-width:190px}
.taskDetailToggleBtn{font-size:11px!important}
.taskCommentCount{font-size:10.5px;color:#979da7;white-space:nowrap}
.taskManagePanel{padding:13px 14px;border-top:1px solid #eceef1;background:#fafbfc}
.taskManageControls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.taskManageControls label{display:block;margin-bottom:4px;font-size:10.5px;color:#888f9b}
.taskManageControls select,.taskManageControls input{width:100%;min-height:35px!important;font-size:11px!important;background:#fff}
.taskProgressInput{display:flex;align-items:center;gap:4px;font-size:11px;color:#8b929d}
.taskManageSecondary{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0 0;padding-top:9px;border-top:1px dashed #dfe3e8}
.taskManageSecondary .checkboxLabel{margin:0!important;font-size:11px!important}
.dangerText{color:#b65454!important}
.taskEditRow input,.taskEditRow textarea{width:100%;padding:8px 9px;border:1px solid #dfe3e8;border-radius:7px;background:#fff}
.taskCommentsCompact{margin-top:11px;padding-top:10px;border-top:1px solid #e3e6ea}
.taskCommentsHead{margin-bottom:7px;font-size:11px;font-weight:750;color:#626975}
.taskCommentRow{display:grid;grid-template-columns:90px minmax(0,1fr) 130px;gap:8px;padding:7px 0;border-bottom:1px solid #eceef1;font-size:11px}
.taskCommentRow b{color:#4f5662}.taskCommentRow span{color:#626a75}.taskCommentRow em{font-style:normal;color:#a0a6af;text-align:right}
.taskCommentComposer{display:flex;gap:7px;margin-top:9px}.taskCommentComposer input{flex:1;padding:8px 10px;border:1px solid #dfe3e8;border-radius:7px}.taskCommentComposer button{padding:7px 11px!important}

/* 발주처 협의 */
.consultationCard{margin-bottom:9px;padding:14px 15px;border:1px solid #e5e8ed;border-radius:12px;background:#fff}
.consultationCardHead{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.consultationCardHead>div{display:flex;align-items:center;gap:9px;min-width:0}
.consultationDate{font-size:10.5px;font-weight:700;color:#4f46e5;white-space:nowrap}
.consultationCardHead strong{font-size:13.5px;color:#303641}
.consultationMethod{padding:4px 8px;border-radius:999px;background:#f1f3f6;color:#747c88;font-size:10px}
.consultationResult{margin-top:9px;padding:9px 11px;border-radius:8px;background:#f8f9fb;color:#5b6470;font-size:11.5px;line-height:1.6;white-space:pre-wrap}
.consultationFollowUp{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px;padding:8px 10px;border-left:3px solid #6366f1;background:#f6f6ff;font-size:11px;color:#535a67}
.consultationFollowUp b{color:#4540b2}.consultationFollowUp em{font-style:normal;color:#8c93a0}.consultationFollowUp i{font-style:normal;padding:3px 6px;border-radius:999px;background:#e9e9ff;color:#514ac8;font-size:9.5px}
.consultationFooter{display:flex;justify-content:space-between;gap:10px;margin-top:9px;font-size:10.5px;color:#9aa0aa}

/* 공유 */
#feedListWrap .feedPost{margin-bottom:9px!important;padding:13px 14px!important;border-radius:12px!important;box-shadow:none!important;border:1px solid #e7e9ed!important}
.feedPostActions{display:flex;gap:9px;margin-top:9px;padding-top:7px;border-top:1px solid #eef0f3}
.feedPostActions .linklikeBtn{font-size:10.5px!important}

@media(max-width:1000px){
  .projectListTableCompact .projectListHead,.projectListTableCompact .projectListRow{grid-template-columns:minmax(220px,1.5fr) minmax(130px,.8fr) minmax(180px,1fr) 90px 80px!important}
  .taskManageControls{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:760px){
  .projectSummaryGridCompact{grid-template-columns:1fr!important}
  .projectFilterCompact{align-items:stretch!important}.projectFilterCompact>*{width:100%!important}
  .projectListTableCompact .projectListHead{display:none!important}
  .projectListTableCompact .projectListRow{grid-template-columns:1fr!important;gap:6px!important}
  .projectListTableCompact .projectListRow>span{display:block}
  .projectBoardCompactHeader,.projectPaneHead{flex-direction:column;align-items:stretch}
  .taskCompactMain{display:block}.taskCompactActions{margin-top:9px;justify-content:flex-start;min-width:0}
  .taskManageControls{grid-template-columns:1fr}
  .taskCommentRow{grid-template-columns:1fr}.taskCommentRow em{text-align:left}
}
