/* Explicit create/edit affordances for My Task + Knowledge POC. */

.my-task-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.poc-create-button,
.knowledge-create-note {
  min-height: 36px;
  border: 1px solid var(--green);
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 700;
}

.poc-create-button:hover,
.knowledge-create-note:hover {
  filter: brightness(.96);
}

.knowledge-create-note {
  width: 100%;
  margin-top: 12px;
  text-align: left;
}

.notion-edit-hint {
  margin: -8px 0 12px;
  color: var(--soft);
  font-size: 9px;
}

.notion-properties .property-control {
  justify-self: start;
  width: min(280px, 100%);
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 7px;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 0 8px;
  font: inherit;
  font-size: 10px;
}

.notion-properties .property-control:hover {
  border-color: var(--line);
  background: var(--surface-2);
}

.notion-properties .property-control:focus {
  border-color: var(--green);
  background: var(--surface);
}

.notion-properties select.property-control {
  cursor: pointer;
}

.notion-properties input[type="date"].property-control {
  color-scheme: light;
}

[data-theme="dark"] .notion-properties input[type="date"].property-control {
  color-scheme: dark;
}

@media (max-width: 900px) {
  .my-task-header {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .my-task-actions {
    margin-left: auto;
  }
}

@media (max-width: 767px) {
  .my-task-actions,
  .poc-create-button {
    width: 100%;
  }

  .poc-create-button {
    min-height: 42px;
  }

  .notion-properties .property-control {
    width: 100%;
  }
}
