

.project-modal-dialog {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.project-modal-content {
  width: 100%;
  height: 100%;
  overflow: auto;
  background: var(--bg);
  border-radius: inherit;
}

.project-modal-content .app-shell {
  min-width: 0;
  min-height: 100%;
  overflow: visible;
}

.project-modal-content .project-editor {
  min-width: 1100px;
}

:root {
  --bg: #edf3f8;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #d7dee8;
  --line-strong: #c7d1dd;
  --text: #162033;
  --muted: #65748a;
  --muted-light: #94a3b8;
  --green-dark: #07412e;
  --green: #047857;
  --green-mid: #0f766e;
  --teal: #14b8a6;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: 100%;
  min-height: 100vh;
  min-width: 1120px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74) 0, rgba(255, 255, 255, 0) 190px),
    var(--bg);
  overflow: visible;
}

.project-editor {
  padding: 16px 18px 18px;
}

.page-toolbar {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 112px;
  padding: 8px 4px 28px;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.breadcrumb strong {
  color: var(--green);
}

.title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

h1,
h2 {
  margin: 0;
}

h1 {
  color: #0f172a;
  font-size: 24px;
  font-weight: 850;
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border: 1px solid #b7e4dc;
  border-radius: 999px;
  background: #ecfdf7;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.toolbar-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  width: min(820px, 72%);
  padding-right: 48px;
  box-sizing: border-box;
  gap: 8px;
}

.toolbar-actions .btn {
  min-width: 60px;
  height: 32px;
  padding: 0 11px;
  font-size: 13px;
}

.btn,
.small-btn,
.history-btn,
.row-delete-btn {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #243047;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.btn {
  min-width: 70px;
  height: 34px;
  padding: 0 16px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 800;
}

.btn:hover,
.small-btn:hover,
.history-btn:hover {
  border-color: var(--green-mid);
  color: var(--green);
}

.btn:disabled,
.small-btn:disabled {
  cursor: wait;
  opacity: 0.55;
}

.data-operation-status {
  min-width: 0;
  max-width: 520px;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.data-operation-status.is-loading {
  color: #1d4ed8;
}

.data-operation-status.is-success {
  color: #047857;
}

.data-operation-status.is-error {
  color: #b91c1c;
}

.btn-primary {
  border-color: var(--green);
  background: linear-gradient(180deg, #0f8b70 0%, #047857 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(4, 120, 87, 0.22);
}

.btn-primary:hover {
  border-color: var(--green-dark);
  color: #fff;
}

.btn-danger {
  border-color: #fecaca;
  color: var(--red);
}

.btn-danger:hover {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red);
}

.btn-danger:disabled {
  border-color: #e5e7eb;
  background: #f8fafc;
  color: #94a3b8;
  cursor: not-allowed;
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(590px, 1fr) minmax(560px, 1fr);
  gap: 10px;
  align-items: start;
  overflow: visible;
}

.saved-projects-card {
  margin-bottom: 10px;
}

.column-stack {
  display: contents;
}

.basic-info-card {
  grid-column: 1;
  order: 1;
}

.detail-info-card {
  grid-column: 2;
  order: 1;
}

.wbs-workspace-card {
  grid-column: 1 / -1;
  order: 2;
}

.deliverables-card {
  grid-column: 1;
  order: 3;
}

.issue-card {
  grid-column: 2;
  order: 3;
}

.table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #bac6d6;
}

.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.card-header h2 {
  color: #122033;
  font-size: 17px;
  font-weight: 850;
  line-height: 1;
}

.card-header h2 span {
  margin-left: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px 14px;
  padding: 13px 14px 14px;
}

.field {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.field-label {
  color: #334155;
  font-size: 14px;
  font-weight: 760;
}

.field.required label::before,
.field.required .field-label::before {
  content: "*";
  margin-right: 4px;
  color: #ef4444;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  color: #152033;
  outline: none;
}

input,
select {
  height: 32px;
  padding: 0 10px;
  font-size: 14px;
}

textarea {
  resize: vertical;
  min-height: 56px;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.13);
}

.segmented {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
}

.segmented label {
  position: relative;
  display: block;
}

.segmented input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.segmented span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 74px;
  padding: 0 12px;
  border-right: 1px solid var(--line);
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.segmented label:last-child span {
  border-right: 0;
}

.segmented input:checked + span {
  background: linear-gradient(180deg, #0d8b71 0%, #047857 100%);
  color: #fff;
}

.unit-field,
.progress-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.unit-field span,
.progress-field span {
  color: #475569;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.progress-field input[type="range"] {
  flex: 1;
  height: 4px;
  min-width: 100px;
  padding: 0;
  accent-color: var(--green);
}

.progress-field input[type="number"] {
  width: 66px;
  flex: 0 0 66px;
}

.detail-form .textarea-field {
  align-items: start;
}

.table-card {
  overflow: visible;
}

.table-card-large {
  min-height: 292px;
}

.wbs-workspace {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.wbs-subsection {
  min-width: 0;
}

.subsection-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.subsection-header-row {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.subsection-header h3 {
  margin: 0;
  color: #1e293b;
  font-size: 15px;
  font-weight: 850;
}

.subsection-header h3 span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.subsection-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.table-header {
  min-height: 40px;
  padding: 9px 13px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.count-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border: 1px solid #cce9e3;
  border-radius: 999px;
  background: #f0fdfa;
  color: var(--green);
  font-size: 14px;
  font-weight: 850;
}

.small-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

.compact-table {
  max-height: none;
}

.task-table {
  max-height: none;
}

.deliverable-table {
  max-height: none;
}

.issue-table {
  max-height: none;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap table {
  min-width: 780px;
}

.task-table table {
  min-width: 1320px;
}

.wbs-table table {
  min-width: 1180px;
}

.substage-table table {
  min-width: 1080px;
}

.saved-projects-table table {
  min-width: 1080px;
}

.deliverable-table table {
  min-width: 720px;
}

.issue-table table {
  min-width: 760px;
}

th,
td {
  border-bottom: 1px solid #e5eaf0;
  border-right: 1px solid #edf1f5;
  text-align: left;
  vertical-align: middle;
}

th:last-child,
td:last-child {
  border-right: 0;
}

th {
  position: static;
  height: 32px;
  padding: 0 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

td {
  height: 39px;
  padding: 4px 6px;
  color: #1f2937;
  font-size: 14px;
  background: #fff;
}

tbody tr:hover td {
  background: #fbfefd;
}

td input,
td select {
  height: 30px;
  padding: 0 7px;
  border-color: #dbe3ee;
  font-size: 14px;
}

td input[type="number"] {
  padding-right: 2px;
}

.table-textarea {
  height: 30px;
  min-height: 30px;
  padding: 5px 7px;
  overflow: hidden;
  font-size: 14px;
}

.narrow-input {
  min-width: 54px;
}

.date-input {
  min-width: 112px;
}

.wide-input {
  min-width: 170px;
}

.action-col {
  width: 42px;
  text-align: center;
}

.task-action-col {
  width: 94px;
  text-align: center;
}

.load-col {
  width: 82px;
  text-align: center;
}

.row-action-cell {
  text-align: center;
}

.task-action-cell {
  text-align: center;
}

.saved-project-load-cell {
  text-align: center;
}

.inline-add-task-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 27px;
  padding: 0 8px;
  border: 1px solid #b7e4dc;
  border-radius: 4px;
  background: #f0fdfa;
  color: var(--green);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.project-load-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #b7e4dc;
  border-radius: 4px;
  background: #f0fdfa;
  color: var(--green);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.project-load-btn:hover {
  border-color: var(--green-mid);
  background: #ccfbf1;
}

.project-id-cell {
  color: var(--muted);
  font-weight: 700;
}

.inline-add-task-btn:hover {
  border-color: var(--green-mid);
  background: #ccfbf1;
}

.row-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 4px;
  color: #64748b;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.row-delete-btn:hover {
  border-color: #fecaca;
  background: var(--red-soft);
  color: var(--red);
}

.file-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 136px;
}

.file-input-wrap input[type="file"] {
  width: 86px;
  height: 30px;
  padding: 2px;
  color: transparent;
  font-size: 14px;
}

.file-input-wrap span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 9px;
}

.tab {
  height: 25px;
  padding: 0 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.tab.active {
  border-color: var(--green-mid);
  color: var(--green);
}

.issue-card .card-header {
  align-items: flex-start;
}

.history-menu {
  position: relative;
}

.history-popover {
  position: absolute;
  top: 42px;
  left: 0;
  z-index: 30;
  width: 560px;
  overflow: visible;
}

.history-header {
  min-height: 51px;
  align-items: flex-start;
}

.history-header h2 {
  line-height: 1.25;
}

.history-header h2 span {
  display: block;
  margin: 4px 0 0;
}

.history-table-wrap {
  overflow: visible;
}

.history-table {
  min-width: 100%;
  table-layout: fixed;
}

.history-table th {
  height: 34px;
  text-align: center;
}

.history-table th:nth-child(1) {
  width: 74px;
}

.history-table th:nth-child(2) {
  width: 58px;
}

.history-table th:nth-child(3) {
  width: auto;
}

.history-table th:nth-child(4) {
  width: 50px;
}

.history-table td {
  height: auto;
  min-height: 76px;
  padding: 10px 7px;
  text-align: center;
  vertical-align: top;
  line-height: 1.35;
}

.history-date {
  color: #0f172a;
  font-size: 14px;
  font-weight: 750;
  white-space: pre-line;
}

.history-user {
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.history-summary {
  margin: 0;
  padding-left: 13px;
  text-align: left;
  color: #334155;
  font-size: 14px;
}

.history-summary li + li {
  margin-top: 4px;
}

.history-version {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 24px;
  margin-bottom: 7px;
  border: 1px solid #b7e4dc;
  border-radius: 999px;
  background: #ecfdf7;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
}

.history-btn {
  width: 32px;
  height: 26px;
  border-radius: 4px;
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
}

.empty-row td {
  height: 54px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: 360px;
  padding: 11px 14px;
  border: 1px solid #b7e4dc;
  border-radius: 7px;
  background: #f0fdfa;
  color: #065f46;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1500px) {
  .project-editor {
    padding: 14px;
  }

  .editor-grid {
    grid-template-columns: minmax(560px, 1fr) minmax(520px, 1fr);
    gap: 8px;
  }

  .form-grid {
    gap: 9px 10px;
    padding: 12px;
  }

  .field {
    grid-template-columns: 102px minmax(0, 1fr);
  }

  .segmented span {
    min-width: 65px;
    padding: 0 9px;
  }
}
/* project step ux refresh */
.project-modal-content .project-editor {
  min-width: 1180px;
  padding-bottom: 0;
}

.page-toolbar {
  min-height: 96px;
  padding-bottom: 18px;
}

.toolbar-actions {
  width: min(940px, 74%);
  padding-right: 0;
}

.project-step-shell {
  display: grid;
  gap: 14px;
  margin-bottom: 12px;
}

.project-step-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
  backdrop-filter: blur(10px);
}

.project-step-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid #dbe3ee;
  border-radius: 7px;
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.project-step-tab span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.project-step-tab.active {
  border-color: var(--green);
  background: linear-gradient(180deg, #0f8b70 0%, #047857 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(4, 120, 87, .2);
}

.project-step-tab.active span {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

.project-step-panels {
  min-height: 540px;
}

.project-step-panel {
  display: none;
}

.project-step-panel.active {
  display: grid;
  gap: 14px;
}

.project-step-panel[hidden] {
  display: none !important;
}

.step-card,
.advanced-options-card {
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.step-card .card-header,
.advanced-options-card .card-header {
  min-height: 52px;
  padding: 14px 18px;
}

.step-card .card-header h2,
.advanced-options-card .card-header h2 {
  font-size: 18px;
}

.section-helper {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.form-grid-primary,
.detail-form,
.system-form {
  gap: 14px 18px;
  padding: 18px;
}

.field {
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 10px;
}

.field label,
.field-label {
  font-size: 14px;
  font-weight: 820;
}

.field.required label::after,
.field.required .field-label::after {
  content: " *";
  color: #ef4444;
  font-weight: 950;
}

.field.required label::before,
.field.required .field-label::before {
  content: none;
}

input,
select {
  height: 38px;
  border-radius: 6px;
}

textarea {
  min-height: 74px;
  border-radius: 6px;
}

.segmented {
  border-radius: 7px;
}

.segmented span {
  height: 38px;
}

.advanced-options-card {
  overflow: hidden;
}

.advanced-options-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid transparent;
  background: #fff;
  color: #122033;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.advanced-options-card summary::-webkit-details-marker {
  display: none;
}

.advanced-options-card summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 999px;
  background: #e9fbf7;
  color: var(--green);
  font-weight: 950;
}

.advanced-options-card[open] summary {
  border-bottom-color: var(--line);
}

.advanced-options-card[open] summary::before {
  content: "-";
}

.advanced-options-card summary span {
  display: inline-flex;
  align-items: center;
}

.advanced-options-card summary strong {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.wbs-three-pane {
  grid-template-columns: minmax(300px, .95fr) minmax(330px, 1fr) minmax(390px, 1.2fr);
  gap: 12px;
  padding: 14px;
}

.wbs-pane {
  min-height: 454px;
  padding: 12px;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  background: #fbfcfe;
}

.wbs-pane .subsection-header {
  min-height: 76px;
  margin-bottom: 10px;
}

.wbs-pane .subsection-header-row {
  align-items: flex-start;
}

.wbs-pane .subsection-header h3 {
  font-size: 16px;
}

.wbs-pane .subsection-header p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
}

.wbs-pane .table-wrap {
  max-height: 360px;
  overflow: auto;
  border: 1px solid #e7edf4;
  border-radius: 7px;
  background: #fff;
}

.wbs-three-pane .table-wrap table {
  min-width: 760px;
}

.wbs-three-pane .task-table table {
  min-width: 1120px;
}

tr[data-select-wbs],
tr[data-select-substage] {
  cursor: pointer;
}

tr[data-select-wbs].is-selected td,
tr[data-select-substage].is-selected td {
  background: #ecfdf7;
  box-shadow: inset 3px 0 0 var(--green);
}

.empty-row td {
  height: 92px;
  padding: 18px;
  color: #64748b;
  text-align: center;
  font-weight: 780;
  background: #fbfcfe;
}

.table-header {
  gap: 14px;
}

.table-header > div:first-child {
  min-width: 0;
}

.header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.small-btn,
.project-load-btn,
.inline-add-task-btn {
  border-radius: 6px;
}

.small-btn {
  height: 32px;
  padding: 0 12px;
  border-color: #b7e4dc;
  background: #f0fdfa;
  color: var(--green);
}

.small-btn:disabled {
  cursor: not-allowed;
  border-color: #dbe3ee;
  background: #f1f5f9;
  color: #94a3b8;
}

.issue-step-header {
  align-items: flex-start;
}

.issue-summary {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.tabs {
  margin-top: 9px;
}

.tab.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.system-note {
  margin: 18px 18px 0;
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  border-radius: 7px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 760;
}

.system-field input[readonly] {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  cursor: default;
}

.project-form-footer {
  position: sticky;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px -18px -18px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -10px 24px rgba(15, 23, 42, .08);
  backdrop-filter: blur(10px);
}

.project-form-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.project-form-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* project form redesign: hierarchical work structure */
.work-structure-tree {
  display: grid;
  gap: 14px;
  padding: 16px;
  overflow-x: hidden;
}

.work-structure-empty,
.structure-child-empty {
  padding: 30px 18px;
  border-radius: 9px;
  background: #f8fafc;
  color: #64748b;
  font-size: 14px;
  font-weight: 750;
  text-align: center;
}

.structure-goal-card {
  overflow: hidden;
  border: 1px solid #dbe5ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .055);
}

.structure-accordion-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #f5fffc 0%, #effaf7 100%);
}

.structure-accordion-header.is-child {
  min-height: 52px;
  background: #f8fafc;
}

.structure-toggle {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
  padding: 5px 4px;
  border: 0;
  background: transparent;
  color: #1e293b;
  text-align: left;
}

.structure-toggle strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.structure-toggle > span:last-child {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.structure-chevron {
  color: var(--green);
  font-size: 20px;
  font-weight: 900;
  transition: transform .18s ease;
}

.is-collapsed > .structure-accordion-header .structure-chevron {
  transform: rotate(-90deg);
}

.is-collapsed > .structure-accordion-body {
  display: none;
}

.structure-accordion-body {
  padding: 14px;
  border-top: 1px solid #edf2f6;
}

.structure-form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px 14px;
}

.structure-goal-fields {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.structure-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.structure-field.is-wide {
  grid-column: span 6;
}

.structure-goal-fields .field-order { grid-column: span 1; }
.structure-goal-fields .field-goalName { grid-column: span 3; }
.structure-goal-fields .field-startDate,
.structure-goal-fields .field-endDate { grid-column: span 2; }
.structure-goal-fields .field-goalContent { grid-column: 1 / -1; }
.structure-goal-fields .is-calculated { grid-column: span 2; }

.structure-work-item .field-subStageName { grid-column: span 4; }
.structure-work-item .field-startDate,
.structure-work-item .field-endDate { grid-column: span 2; }
.structure-work-item .structure-field.is-calculated { grid-column: span 2; }

.task-card-fields .field-taskName { grid-column: span 4; }
.task-card-fields .field-status { grid-column: span 2; }
.task-card-fields .field-progress { grid-column: span 2; }
.task-card-fields .field-startDate,
.task-card-fields .field-endDate { grid-column: span 2; }

.task-detail-options .field-estimatedHours,
.task-detail-options .field-actualHours { grid-column: span 3; }
.task-detail-options .field-predecessor { grid-column: span 6; }

.structure-field > span {
  color: #475569;
  font-size: 13px;
  font-weight: 850;
}

.structure-field input,
.structure-field select,
.structure-field textarea {
  width: 100%;
  min-width: 0;
  height: 38px;
  border-radius: 7px;
}

.structure-field.field-order input,
.structure-field.field-progress input {
  text-align: center;
}

.structure-field textarea {
  min-height: 70px;
  resize: vertical;
}

.structure-field.is-calculated {
  align-content: center;
  min-height: 64px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #f8fafc;
}

.structure-field.is-calculated strong {
  color: #0f766e;
  font-size: 15px;
}

.structure-field.is-calculated small {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 750;
}

.structure-children,
.structure-task-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.structure-work-item {
  overflow: hidden;
  margin-left: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.structure-task-list {
  margin-left: 22px;
}

.structure-task-card {
  padding: 13px;
  border-radius: 9px;
  background: #f8fafc;
}

.structure-task-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  color: #334155;
  font-size: 14px;
}

.structure-add-child {
  min-height: 38px;
  border: 1px dashed #8dd3c2;
  border-radius: 8px;
  background: #f5fffc;
  color: var(--green);
  font-size: 14px;
  font-weight: 850;
}

.structure-add-child:hover {
  border-style: solid;
  background: #e9fbf7;
}

.task-detail-options {
  margin-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.task-detail-options summary {
  padding: 10px 2px 2px;
  color: #64748b;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.task-detail-options .structure-form-grid {
  margin-top: 10px;
}

.small-btn.is-secondary {
  border-color: #dbe3ee;
  background: #fff;
  color: #475569;
}

.deliverable-project-label {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}

.deliverable-project-label strong {
  color: #1e293b;
}

.deliverable-api-note {
  margin: 14px 14px 4px;
  padding: 10px 12px;
  border-radius: 7px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.file-input-wrap span {
  display: grid;
  gap: 2px;
}

.file-input-wrap span strong {
  overflow: hidden;
  color: #334155;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-input-wrap span small {
  color: #64748b;
  font-size: 11px;
}

.write-api-note {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 1380px) {
  .structure-goal-fields .field-order { grid-column: span 1; }
  .structure-goal-fields .field-goalName { grid-column: span 3; }
  .structure-goal-fields .field-startDate,
  .structure-goal-fields .field-endDate { grid-column: span 2; }

  .task-card-fields .field-taskName { grid-column: span 4; }
  .task-card-fields .field-status { grid-column: span 2; }
  .task-card-fields .field-progress,
  .task-card-fields .field-startDate,
  .task-card-fields .field-endDate { grid-column: span 2; }
}

@media (max-width: 900px) {
  .structure-goal-fields .field-order,
  .structure-goal-fields .field-goalName,
  .structure-goal-fields .field-startDate,
  .structure-goal-fields .field-endDate,
  .structure-goal-fields .field-goalContent,
  .structure-goal-fields .is-calculated,
  .structure-work-item .field-subStageName,
  .structure-work-item .field-startDate,
  .structure-work-item .field-endDate,
  .structure-work-item .structure-field.is-calculated,
  .task-card-fields .field-taskName,
  .task-card-fields .field-status,
  .task-card-fields .field-progress,
  .task-card-fields .field-startDate,
  .task-card-fields .field-endDate,
  .task-detail-options .field-estimatedHours,
  .task-detail-options .field-actualHours,
  .task-detail-options .field-predecessor {
    grid-column: span 6;
  }
}

@media (max-width: 620px) {
  .structure-form-grid,
  .structure-goal-fields {
    grid-template-columns: 1fr;
  }

  .structure-form-grid > .structure-field,
  .structure-goal-fields > .structure-field {
    grid-column: 1 / -1 !important;
  }

  .structure-work-item,
  .structure-task-list {
    margin-left: 0;
  }

  .structure-toggle {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .structure-toggle > span:last-child {
    display: none;
  }

  .project-form-footer-actions {
    flex-wrap: wrap;
  }
}

.project-form-footer .btn {
  height: 38px;
  min-width: 84px;
  border-radius: 6px;
}

.btn-ghost {
  background: #fff;
  color: #475569;
}

@media (max-width: 1280px) {
  .project-modal-content .project-editor {
    min-width: 1040px;
  }

  .wbs-three-pane {
    grid-template-columns: 1fr;
  }

  .wbs-pane {
    min-height: 0;
  }
}
/* project step ux refresh end */
/* project navigator ux refresh */
.project-modal-content .project-editor {
  min-width: 0;
}

.project-editor-layout {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 12px;
}

.project-navigator {
  position: sticky;
  top: 0;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 178px);
  min-width: 0;
  padding: 1px 4px 1px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.navigator-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #dfe7f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.navigator-search-card {
  background: #f8fafc;
}

.navigator-card-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.navigator-card-header h2 {
  margin: 0;
  color: #122033;
  font-size: 17px;
  font-weight: 950;
}

.navigator-card-header p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.navigator-new-btn {
  width: 100%;
  height: 38px;
  justify-content: center;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 900;
}

.navigator-import-btn {
  width: 100%;
  height: 36px;
  justify-content: center;
  margin-bottom: 10px;
  border-radius: 7px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 850;
}

.project-search-label,
.navigator-section-title {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.project-quick-search {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #cfd9e6;
  border-radius: 7px;
  background: #fff;
  color: #122033;
  outline: none;
}

.project-quick-search:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(4, 120, 87, .12);
}

.project-search-results,
.navigator-list {
  display: grid;
  gap: 8px;
}

.project-search-results {
  max-height: 264px;
  margin-top: 10px;
  overflow-y: auto;
}

.recent-projects-list {
  max-height: 246px;
  overflow-y: auto;
}

.all-projects-list {
  max-height: 360px;
  margin-top: 10px;
  overflow-y: auto;
}

.navigator-collapse-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1e293b;
  font-size: 14px;
  font-weight: 900;
  text-align: left;
}

.navigator-collapse-btn span::before {
  content: "▸";
  display: inline-block;
  margin-right: 6px;
  color: var(--green);
  transition: transform .18s ease;
}

.navigator-collapse-btn.is-open span::before {
  transform: rotate(90deg);
}

.navigator-collapse-btn strong {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #ecfdf7;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.navigator-project-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.navigator-project-item:hover,
.navigator-project-item:focus-visible {
  border-color: rgba(4, 120, 87, .5);
  box-shadow: 0 10px 18px rgba(15, 23, 42, .08);
  outline: none;
  transform: translateY(-1px);
}

.navigator-project-item strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navigator-project-item span,
.navigator-project-item small {
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navigator-project-item small {
  color: #94a3b8;
  font-size: 11px;
}

.navigator-project-item.is-search-result {
  border-color: #c7f0e6;
  background: #f4fffb;
}

.navigator-empty {
  padding: 12px 10px;
  border: 1px dashed #d7dee8;
  border-radius: 8px;
  background: #fbfcfe;
  color: #64748b;
  font-size: 12px;
  font-weight: 780;
  line-height: 1.45;
  text-align: center;
}

.project-editor-layout .project-step-shell {
  min-width: 0;
  margin-bottom: 0;
}

.project-editor-layout .project-step-nav {
  position: static;
  z-index: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.project-editor-layout .project-step-tab {
  justify-content: flex-start;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-color: #dbe3ee;
  background: #f8fafc;
  color: #475569;
}

.project-editor-layout .project-step-tab.active {
  border-color: var(--green);
  background: linear-gradient(180deg, #0f8b70 0%, #047857 100%);
  color: #fff;
}

.project-editor-layout .project-step-panels {
  min-height: 620px;
}

.project-editor-layout .step-card,
.project-editor-layout .advanced-options-card {
  box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
}

@media (max-width: 1180px) {
  .project-modal-content .project-editor,
  .project-modal-content .app-shell,
  .app-shell {
    min-width: 0;
  }

  .project-editor-layout {
    grid-template-columns: 1fr;
  }

  .project-navigator {
    position: static;
    max-height: none;
    padding-right: 0;
    overflow: visible;
  }

  .navigator-card-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .navigator-new-btn {
    width: auto;
    min-width: 132px;
    padding: 0 14px;
  }

  .project-search-results,
  .recent-projects-list,
  .all-projects-list {
    max-height: 220px;
  }

  .project-editor-layout .project-step-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .project-editor-layout .project-step-tab {
    flex: 0 0 auto;
    width: auto;
    min-width: 148px;
  }

  .form-grid-primary,
  .detail-form,
  .system-form {
    grid-template-columns: 1fr;
  }

  .field {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .navigator-card-header {
    grid-template-columns: 1fr;
  }

  .navigator-new-btn {
    width: 100%;
  }

  .project-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .project-form-footer-actions,
  .project-form-footer .btn {
    width: 100%;
  }
}
/* project navigator ux refresh end */
/* auto metrics ux */
[data-auto-calculated] {
  border-color: #dbe3ee !important;
  background: #f8fafc !important;
  color: #475569 !important;
  cursor: default !important;
}

select[data-auto-calculated],
input[data-auto-calculated][disabled] {
  opacity: 1;
}

.auto-calc-note {
  display: block;
  margin-top: 6px;
  color: #078e9b;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.auto-calculated-cell {
  display: grid;
  gap: 3px;
  min-width: 74px;
}

.auto-calculated-cell strong {
  color: #0f766e;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.2;
  white-space: nowrap;
}

.auto-calculated-cell span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}
/* auto metrics ux end */
.all-projects-card .navigator-new-btn {
  margin-bottom: 10px;
}
