/* Editable in-place text/select primitives */

.editable-display{
  cursor: text;
  border-radius: 4px;
  padding: 1px 4px;
  margin: -1px -4px;
  transition: background 0.12s, box-shadow 0.12s;
  outline: none;
  display: inline-block;
}
.editable-display:hover{
  background: rgba(224, 120, 86, 0.08);
  box-shadow: inset 0 -1px 0 rgba(224, 120, 86, 0.4);
}
.editable-display:focus-visible{
  background: rgba(224, 120, 86, 0.12);
  box-shadow: 0 0 0 2px rgba(224, 120, 86, 0.4);
}
.editable-empty{
  color: rgba(124, 63, 88, 0.5);
  font-style: italic;
}

.editable-input{
  font: inherit;
  color: inherit;
  background: #FFFCF6;
  border: 1px solid rgba(224, 120, 86, 0.5);
  border-radius: 4px;
  padding: 1px 4px;
  margin: -2px -5px;
  outline: none;
  box-shadow: 0 0 0 2px rgba(224, 120, 86, 0.18);
  letter-spacing: inherit;
  text-transform: inherit;
  width: auto;
  min-width: 4ch;
  max-width: 100%;
  box-sizing: border-box;
}
textarea.editable-input{
  resize: vertical;
  min-height: 2.4em;
  width: 100%;
  display: block;
}
select.editable-input{
  cursor: pointer;
}

/* Dark surfaces (drawer head) */
.drawer .dr-head .editable-display:hover{
  background: rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.4);
}
.drawer .dr-head .editable-input{
  background: rgba(255, 255, 255, 0.08);
  color: #FFFCF6;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

/* Inline row affordances */
.inline-row-actions{
  display: inline-flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.12s;
}
.contact:hover .inline-row-actions,
.int-item:hover .inline-row-actions{
  opacity: 1;
}
.inline-row-actions button{
  background: transparent;
  border: 1px solid rgba(124, 63, 88, 0.18);
  border-radius: 4px;
  padding: 4px;
  cursor: pointer;
  color: rgba(124, 63, 88, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.inline-row-actions button:hover{
  background: rgba(224, 120, 86, 0.10);
  color: #7C3F58;
  border-color: rgba(224, 120, 86, 0.4);
}
.inline-row-actions button svg{ width: 14px; height: 14px; }

/* Add-row footer (subtle dashed) */
.inline-add-row{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px dashed rgba(124, 63, 88, 0.25);
  border-radius: 6px;
  color: rgba(124, 63, 88, 0.7);
  font: inherit;
  background: transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.inline-add-row:hover{
  background: rgba(224, 120, 86, 0.06);
  border-color: rgba(224, 120, 86, 0.5);
  color: #7C3F58;
}
.inline-add-row svg{ width: 14px; height: 14px; }
