/* 145-deep-wbs-grid-edit.css
   Spreadsheet affordances for the Mapping ▸ HTML Deep WBS activity table
   (tabs/mapping/deep-html-engine/deep-wbs-grid-edit.js).
   Visual only: no cell padding, width, or font metric is changed, so the table
   keeps the exact layout the Deep WBS renderer produces. */

#mapping-v2-view td[data-deep-col].dwg-editable {
  cursor: cell;
  position: relative;
}

#mapping-v2-view td[data-deep-col].dwg-editable:hover {
  background: rgba(96, 165, 250, 0.10);
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.35);
}

/* Active-cell ring, matching the Gantt grid so the two tables read as one tool. */
#mapping-v2-view td[data-deep-col].dwg-selected {
  box-shadow: inset 0 0 0 2px #1d4ed8, 0 0 0 1px rgba(29, 78, 216, 0.30);
  z-index: 5;
}

/* Editing keeps the cell's own box: no extra padding, no height change, so the
   row cannot grow or shift while the editor is open. */
#mapping-v2-view td[data-deep-col].dwg-editing {
  position: relative;
}

/* Seamless in-place input — inherits whatever the cell (or .m2-summary-title for
   the name) was already painting, so the text never changes size on edit. The
   caret is the only affordance; the cell's selection ring stays visible. */
#mapping-v2-view .dwg-input {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
  caret-color: #1d4ed8;
  color: inherit;
  display: block;
  font: inherit !important;
  height: 100%;
  letter-spacing: inherit;
  line-height: inherit;
  margin: 0;
  min-width: 0;
  outline: none;
  padding: 0;
  text-align: inherit;
  width: 100%;
}

#mapping-v2-view td[data-deep-col="dur"] .dwg-input,
#mapping-v2-view td[data-deep-col="planned"] .dwg-input {
  text-align: right;
}

#mapping-v2-view td[data-deep-col].dwg-editing.dwg-editable:hover {
  background: transparent;
  box-shadow: none;
}

body[data-aipe-dt-busy="1"] #mapping-v2-view .dwg-input {
  cursor: text !important;
}
